Transient commit related to new PENDING payment state for synchronization with Pierre
Implement new API notifyPendingRefundOfStateChanged and notifyPendingPaymentOfStateChanged to handle PENDING payments
Fix typo
Merge remote-tracking branch 'origin/master' into bitcoin
pom.xml: update killbill-oss-parent to 0.5.14

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
payment: add APIs to retrieve all payments for a given tenant

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
payment: search bugfixes

When listing all payments or payment methods, don't ignore records
that are in Kill Bill but not in the plugins. These exist, regardless
of what the plugin returned.

Also, regarding payments, don't ignore the ones which are associated
with a deleted payment method (the payment method had to be active at
the time of payment).

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>
search: implement new search APIs

Refactor the existing search code to share most of the logic across modules.

Update to latest Kill Bill APIs and implement search for refunds, custom fields and tags.
Expose also invoice pagination endpoint in JAX-RS.

Implement refund lookup with plugin info.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Merge remote-tracking branch 'origin/master' into bitcoin

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>

Conflicts:
	jaxrs/src/main/java/com/ning/billing/jaxrs/resources/JaxRsResourceBase.java
	payment/src/main/java/com/ning/billing/payment/api/DefaultPaymentApi.java
	util/src/main/java/com/ning/billing/util/customfield/api/DefaultCustomFieldUserApi.java
	util/src/main/java/com/ning/billing/util/customfield/dao/CustomFieldDao.java
	util/src/main/java/com/ning/billing/util/customfield/dao/CustomFieldSqlDao.java
	util/src/test/java/com/ning/billing/util/customfield/dao/MockCustomFieldDao.java
beatrix: update tests plugins

Bump killbill-notification-test to 1.7.3 and
killbill-payment-test to 1.6.3.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
invoice: never return null for invoiceItems and invoicePayments

By convention, our code assumes that empty collections are returned instead, even if
it's not populated.

This fixes a Guava preconditions check failure in the invoice pagination endpoint.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
payment: fix pagination query for refunds

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
jaxrs: make TenantJson extend JsonBase

This is to be able to populate audit logs.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
server: make tests use com.ning.billing:killbill-client-java

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
server: add missing tests for pagination and search endpoints

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Merge remote-tracking branch 'origin/master' into bitcoin

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>

Conflicts:
	pom.xml
	util/src/main/java/com/ning/billing/util/customfield/api/DefaultCustomFieldUserApi.java