diff --git a/README.md b/README.md index e65d2f57..5ad476bb 100644 --- a/README.md +++ b/README.md @@ -274,16 +274,16 @@ Install the SDK by adding the following dependency in your project's pom.xml fil com.maxio advanced-billing-sdk - 0.0.5 + 1.0.0 ``` You can also view the package at: -https://mvnrepository.com/artifact/com.maxio/advanced-billing-sdk/0.0.5 +https://mvnrepository.com/artifact/com.maxio/advanced-billing-sdk/1.0.0 ## Initialize the API Client -**_Note:_** Documentation for the client can be found [here.](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/client.md) +**_Note:_** Documentation for the client can be found [here.](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/client.md) The following parameters are configurable for the API Client: @@ -292,7 +292,7 @@ The following parameters are configurable for the API Client: | `subdomain` | `String` | The subdomain for your Chargify site.
*Default*: `"subdomain"` | | `domain` | `String` | The Chargify server domain.
*Default*: `"chargify.com"` | | `environment` | Environment | The API environment.
**Default: `Environment.PRODUCTION`** | -| `httpClientConfig` | [`ReadonlyHttpClientConfiguration`](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/http-client-configuration.md) | Http Client Configuration instance. | +| `httpClientConfig` | [`ReadonlyHttpClientConfiguration`](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/http-client-configuration.md) | Http Client Configuration instance. | | `basicAuthUserName` | `String` | The username to use with basic authentication | | `basicAuthPassword` | `String` | The password to use with basic authentication | @@ -326,49 +326,49 @@ This API uses `Basic Authentication`. ## List of APIs -* [API Exports](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/api-exports.md) -* [Advance Invoice](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/advance-invoice.md) -* [Billing Portal](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/billing-portal.md) -* [Custom Fields](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/custom-fields.md) -* [Events-Based Billing Segments](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/events-based-billing-segments.md) -* [Payment Profiles](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/payment-profiles.md) -* [Product Families](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/product-families.md) -* [Product Price Points](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/product-price-points.md) -* [Proforma Invoices](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/proforma-invoices.md) -* [Reason Codes](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/reason-codes.md) -* [Referral Codes](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/referral-codes.md) -* [Sales Commissions](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/sales-commissions.md) -* [Subscription Components](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/subscription-components.md) -* [Subscription Groups](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/subscription-groups.md) -* [Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/subscription-group-invoice-account.md) -* [Subscription Group Status](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/subscription-group-status.md) -* [Subscription Invoice Account](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/subscription-invoice-account.md) -* [Subscription Notes](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/subscription-notes.md) -* [Subscription Products](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/subscription-products.md) -* [Subscription Status](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/subscription-status.md) -* [Coupons](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/coupons.md) -* [Components](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/components.md) -* [Customers](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/customers.md) -* [Events](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/events.md) -* [Insights](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/insights.md) -* [Invoices](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/invoices.md) -* [Offers](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/offers.md) -* [Products](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/products.md) -* [Sites](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/sites.md) -* [Subscriptions](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/subscriptions.md) -* [Webhooks](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/controllers/webhooks.md) +* [API Exports](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/api-exports.md) +* [Advance Invoice](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/advance-invoice.md) +* [Billing Portal](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/billing-portal.md) +* [Custom Fields](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/custom-fields.md) +* [Events-Based Billing Segments](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/events-based-billing-segments.md) +* [Payment Profiles](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/payment-profiles.md) +* [Product Families](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/product-families.md) +* [Product Price Points](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/product-price-points.md) +* [Proforma Invoices](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/proforma-invoices.md) +* [Reason Codes](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/reason-codes.md) +* [Referral Codes](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/referral-codes.md) +* [Sales Commissions](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/sales-commissions.md) +* [Subscription Components](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/subscription-components.md) +* [Subscription Groups](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/subscription-groups.md) +* [Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/subscription-group-invoice-account.md) +* [Subscription Group Status](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/subscription-group-status.md) +* [Subscription Invoice Account](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/subscription-invoice-account.md) +* [Subscription Notes](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/subscription-notes.md) +* [Subscription Products](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/subscription-products.md) +* [Subscription Status](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/subscription-status.md) +* [Coupons](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/coupons.md) +* [Components](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/components.md) +* [Customers](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/customers.md) +* [Events](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/events.md) +* [Insights](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/insights.md) +* [Invoices](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/invoices.md) +* [Offers](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/offers.md) +* [Products](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/products.md) +* [Sites](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/sites.md) +* [Subscriptions](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/subscriptions.md) +* [Webhooks](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/controllers/webhooks.md) ## Classes Documentation -* [Utility Classes](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/utility-classes.md) -* [HttpRequest](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/http-request.md) -* [HttpResponse](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/http-response.md) -* [HttpStringResponse](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/http-string-response.md) -* [HttpContext](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/http-context.md) -* [HttpBodyRequest](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/http-body-request.md) -* [Headers](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/headers.md) -* [ApiException](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/api-exception.md) -* [Configuration Interface](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/configuration-interface.md) -* [HttpClientConfiguration](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/http-client-configuration.md) -* [HttpClientConfiguration.Builder](https://www.github.com/maxio-com/ab-java-sdk/tree/0.0.5/doc/http-client-configuration-builder.md) +* [Utility Classes](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/utility-classes.md) +* [HttpRequest](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/http-request.md) +* [HttpResponse](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/http-response.md) +* [HttpStringResponse](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/http-string-response.md) +* [HttpContext](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/http-context.md) +* [HttpBodyRequest](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/http-body-request.md) +* [Headers](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/headers.md) +* [ApiException](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/api-exception.md) +* [Configuration Interface](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/configuration-interface.md) +* [HttpClientConfiguration](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/http-client-configuration.md) +* [HttpClientConfiguration.Builder](https://www.github.com/maxio-com/ab-java-sdk/tree/1.0.0/doc/http-client-configuration-builder.md) diff --git a/doc/models/bank-account-attributes.md b/doc/models/bank-account-attributes.md index 4204c50c..ddf1f5e9 100644 --- a/doc/models/bank-account-attributes.md +++ b/doc/models/bank-account-attributes.md @@ -13,7 +13,7 @@ | `BankName` | `String` | Optional | (Required when creating a subscription with ACH or GoCardless) The name of the bank where the customer’s account resides | String getBankName() | setBankName(String bankName) | | `BankRoutingNumber` | `String` | Optional | (Required when creating a subscription with ACH. Optional when creating a subscription with GoCardless). The routing number of the bank. It becomes bank_code while passing via GoCardless API | String getBankRoutingNumber() | setBankRoutingNumber(String bankRoutingNumber) | | `BankAccountNumber` | `String` | Optional | (Required when creating a subscription with ACH. Required when creating a subscription with GoCardless and bank_iban is blank) The customerʼs bank account number | String getBankAccountNumber() | setBankAccountNumber(String bankAccountNumber) | -| `BankAccountType` | [`BankAccountType`](../../doc/models/bank-account-type.md) | Optional | Defaults to checking
**Default**: `BankAccountType.CHECKING` | BankAccountType getBankAccountType() | setBankAccountType(BankAccountType bankAccountType) | +| `BankAccountType` | [`BankAccountType`](../../doc/models/bank-account-type.md) | Optional | Defaults to checking | BankAccountType getBankAccountType() | setBankAccountType(BankAccountType bankAccountType) | | `BankBranchCode` | `String` | Optional | (Optional when creating a subscription with GoCardless) Branch code. Alternatively, an IBAN can be provided | String getBankBranchCode() | setBankBranchCode(String bankBranchCode) | | `BankIban` | `String` | Optional | (Optional when creating a subscription with GoCardless). International Bank Account Number. Alternatively, local bank details can be provided | String getBankIban() | setBankIban(String bankIban) | | `BankAccountHolderType` | [`BankAccountHolderType`](../../doc/models/bank-account-holder-type.md) | Optional | Defaults to personal | BankAccountHolderType getBankAccountHolderType() | setBankAccountHolderType(BankAccountHolderType bankAccountHolderType) | @@ -26,11 +26,11 @@ ```json { - "bank_account_type": "checking", "chargify_token": "chargify_token0", "bank_name": "bank_name2", "bank_routing_number": "bank_routing_number8", - "bank_account_number": "bank_account_number4" + "bank_account_number": "bank_account_number4", + "bank_account_type": "checking" } ``` diff --git a/doc/models/bank-account-payment-profile.md b/doc/models/bank-account-payment-profile.md index 417e1d70..030265c2 100644 --- a/doc/models/bank-account-payment-profile.md +++ b/doc/models/bank-account-payment-profile.md @@ -25,7 +25,7 @@ | `BankName` | `String` | Optional | The bank where the account resides | String getBankName() | setBankName(String bankName) | | `MaskedBankRoutingNumber` | `String` | Required | A string representation of the stored bank routing number with all but the last 4 digits marked with X’s (i.e. ‘XXXXXXX1111’). payment_type will be bank_account | String getMaskedBankRoutingNumber() | setMaskedBankRoutingNumber(String maskedBankRoutingNumber) | | `MaskedBankAccountNumber` | `String` | Required | A string representation of the stored bank account number with all but the last 4 digits marked with X’s (i.e. ‘XXXXXXX1111’) | String getMaskedBankAccountNumber() | setMaskedBankAccountNumber(String maskedBankAccountNumber) | -| `BankAccountType` | [`BankAccountType`](../../doc/models/bank-account-type.md) | Optional | Defaults to checking
**Default**: `BankAccountType.CHECKING` | BankAccountType getBankAccountType() | setBankAccountType(BankAccountType bankAccountType) | +| `BankAccountType` | [`BankAccountType`](../../doc/models/bank-account-type.md) | Optional | Defaults to checking | BankAccountType getBankAccountType() | setBankAccountType(BankAccountType bankAccountType) | | `BankAccountHolderType` | [`BankAccountHolderType`](../../doc/models/bank-account-holder-type.md) | Optional | Defaults to personal | BankAccountHolderType getBankAccountHolderType() | setBankAccountHolderType(BankAccountHolderType bankAccountHolderType) | | `PaymentType` | [`PaymentType`](../../doc/models/payment-type.md) | Optional | - | PaymentType getPaymentType() | setPaymentType(PaymentType paymentType) | | `Verified` | `Boolean` | Optional | denotes whether a bank account has been verified by providing the amounts of two small deposits made into the account
**Default**: `false` | Boolean getVerified() | setVerified(Boolean verified) | @@ -38,7 +38,6 @@ { "masked_bank_routing_number": "masked_bank_routing_number8", "masked_bank_account_number": "masked_bank_account_number8", - "bank_account_type": "checking", "verified": false, "id": 188, "first_name": "first_name6", diff --git a/doc/models/bank-account-response.md b/doc/models/bank-account-response.md index 9cbe44fa..c97172fb 100644 --- a/doc/models/bank-account-response.md +++ b/doc/models/bank-account-response.md @@ -18,7 +18,6 @@ "payment_profile": { "masked_bank_routing_number": "masked_bank_routing_number0", "masked_bank_account_number": "masked_bank_account_number6", - "bank_account_type": "checking", "verified": false, "id": 44, "first_name": "first_name4", diff --git a/doc/models/component-price-point-response.md b/doc/models/component-price-point-response.md index eb31dbe5..e337a45f 100644 --- a/doc/models/component-price-point-response.md +++ b/doc/models/component-price-point-response.md @@ -16,7 +16,6 @@ ```json { "price_point": { - "use_site_exchange_rate": true, "id": 248, "type": "default", "default": false, diff --git a/doc/models/component-price-point.md b/doc/models/component-price-point.md index fd6e5c63..8fc4cdad 100644 --- a/doc/models/component-price-point.md +++ b/doc/models/component-price-point.md @@ -20,7 +20,7 @@ | `CreatedAt` | `ZonedDateTime` | Optional | - | ZonedDateTime getCreatedAt() | setCreatedAt(ZonedDateTime createdAt) | | `UpdatedAt` | `ZonedDateTime` | Optional | - | ZonedDateTime getUpdatedAt() | setUpdatedAt(ZonedDateTime updatedAt) | | `Prices` | [`List`](../../doc/models/component-price.md) | Optional | - | List getPrices() | setPrices(List prices) | -| `UseSiteExchangeRate` | `Boolean` | Optional | Whether to use the site level exchange rate or define your own prices for each currency if you have multiple currencies defined on the site.
**Default**: `true` | Boolean getUseSiteExchangeRate() | setUseSiteExchangeRate(Boolean useSiteExchangeRate) | +| `UseSiteExchangeRate` | `Boolean` | Optional | Whether to use the site level exchange rate or define your own prices for each currency if you have multiple currencies defined on the site. Defaults to true during creation. | Boolean getUseSiteExchangeRate() | setUseSiteExchangeRate(Boolean useSiteExchangeRate) | | `SubscriptionId` | `Integer` | Optional | (only used for Custom Pricing - ie. when the price point's type is `custom`) The id of the subscription that the custom price point is for. | Integer getSubscriptionId() | setSubscriptionId(Integer subscriptionId) | | `TaxIncluded` | `Boolean` | Optional | - | Boolean getTaxIncluded() | setTaxIncluded(Boolean taxIncluded) | | `Interval` | `Integer` | Optional | The numerical interval. i.e. an interval of ‘30’ coupled with an interval_unit of day would mean this component price point would renew every 30 days. This property is only available for sites with Multifrequency enabled. | Integer getInterval() | setInterval(Integer interval) | @@ -31,7 +31,6 @@ ```json { - "use_site_exchange_rate": true, "id": 190, "type": "custom", "default": false, diff --git a/doc/models/create-invoice-payment-request.md b/doc/models/create-invoice-payment-request.md index cdbaccae..04ff4ffe 100644 --- a/doc/models/create-invoice-payment-request.md +++ b/doc/models/create-invoice-payment-request.md @@ -10,16 +10,16 @@ | Name | Type | Tags | Description | Getter | Setter | | --- | --- | --- | --- | --- | --- | | `Payment` | [`CreateInvoicePayment`](../../doc/models/create-invoice-payment.md) | Required | - | CreateInvoicePayment getPayment() | setPayment(CreateInvoicePayment payment) | -| `Type` | [`InvoicePaymentType`](../../doc/models/invoice-payment-type.md) | Optional | The type of payment to be applied to an Invoice.
**Default**: `InvoicePaymentType.EXTERNAL` | InvoicePaymentType getType() | setType(InvoicePaymentType type) | +| `Type` | [`InvoicePaymentType`](../../doc/models/invoice-payment-type.md) | Optional | The type of payment to be applied to an Invoice. Defaults to external. | InvoicePaymentType getType() | setType(InvoicePaymentType type) | ## Example (as JSON) ```json { "payment": { - "method": "other", "amount": "String9", "memo": "memo0", + "method": "ach", "details": "details6" }, "type": "external" diff --git a/doc/models/create-invoice-payment.md b/doc/models/create-invoice-payment.md index d7199847..02b15ce8 100644 --- a/doc/models/create-invoice-payment.md +++ b/doc/models/create-invoice-payment.md @@ -11,16 +11,16 @@ | --- | --- | --- | --- | --- | --- | | `Amount` | [`CreateInvoicePaymentAmount`](../../doc/models/containers/create-invoice-payment-amount.md) | Optional | This is a container for one-of cases. | CreateInvoicePaymentAmount getAmount() | setAmount(CreateInvoicePaymentAmount amount) | | `Memo` | `String` | Optional | A description to be attached to the payment. | String getMemo() | setMemo(String memo) | -| `Method` | [`InvoicePaymentMethodType`](../../doc/models/invoice-payment-method-type.md) | Optional | The type of payment method used.
**Default**: `InvoicePaymentMethodType.OTHER` | InvoicePaymentMethodType getMethod() | setMethod(InvoicePaymentMethodType method) | +| `Method` | [`InvoicePaymentMethodType`](../../doc/models/invoice-payment-method-type.md) | Optional | The type of payment method used. Defaults to other. | InvoicePaymentMethodType getMethod() | setMethod(InvoicePaymentMethodType method) | | `Details` | `String` | Optional | Additional information related to the payment method (eg. Check #) | String getDetails() | setDetails(String details) | ## Example (as JSON) ```json { - "method": "other", "amount": "String9", "memo": "memo0", + "method": "cash", "details": "details6" } ``` diff --git a/doc/models/create-multi-invoice-payment-request.md b/doc/models/create-multi-invoice-payment-request.md index a3e22227..02e5dd48 100644 --- a/doc/models/create-multi-invoice-payment-request.md +++ b/doc/models/create-multi-invoice-payment-request.md @@ -16,7 +16,6 @@ ```json { "payment": { - "method": "other", "amount": "String9", "applications": [ { @@ -26,6 +25,7 @@ ], "memo": "memo0", "details": "details6", + "method": "ach", "received_on": "received_on8" } } diff --git a/doc/models/create-multi-invoice-payment.md b/doc/models/create-multi-invoice-payment.md index fd9c26c1..48a5bd47 100644 --- a/doc/models/create-multi-invoice-payment.md +++ b/doc/models/create-multi-invoice-payment.md @@ -11,7 +11,7 @@ | --- | --- | --- | --- | --- | --- | | `Memo` | `String` | Optional | A description to be attached to the payment. | String getMemo() | setMemo(String memo) | | `Details` | `String` | Optional | Additional information related to the payment method (eg. Check #). | String getDetails() | setDetails(String details) | -| `Method` | [`InvoicePaymentMethodType`](../../doc/models/invoice-payment-method-type.md) | Optional | The type of payment method used.
**Default**: `InvoicePaymentMethodType.OTHER` | InvoicePaymentMethodType getMethod() | setMethod(InvoicePaymentMethodType method) | +| `Method` | [`InvoicePaymentMethodType`](../../doc/models/invoice-payment-method-type.md) | Optional | The type of payment method used. Defaults to other. | InvoicePaymentMethodType getMethod() | setMethod(InvoicePaymentMethodType method) | | `Amount` | [`CreateMultiInvoicePaymentAmount`](../../doc/models/containers/create-multi-invoice-payment-amount.md) | Required | This is a container for one-of cases. | CreateMultiInvoicePaymentAmount getAmount() | setAmount(CreateMultiInvoicePaymentAmount amount) | | `ReceivedOn` | `String` | Optional | Date reflecting when the payment was received from a customer. Must be in the past. | String getReceivedOn() | setReceivedOn(String receivedOn) | | `Applications` | [`List`](../../doc/models/create-invoice-payment-application.md) | Required | - | List getApplications() | setApplications(List applications) | @@ -20,7 +20,6 @@ ```json { - "method": "other", "amount": "String7", "applications": [ { @@ -30,6 +29,7 @@ ], "memo": "memo8", "details": "details4", + "method": "credit_card", "received_on": "received_on6" } ``` diff --git a/doc/models/create-payment-profile-request.md b/doc/models/create-payment-profile-request.md index cf2aa897..fe42b587 100644 --- a/doc/models/create-payment-profile-request.md +++ b/doc/models/create-payment-profile-request.md @@ -18,7 +18,6 @@ "payment_profile": { "chargify_token": "tok_9g6hw85pnpt6knmskpwp4ttt", "full_number": "5424000000000015", - "bank_account_type": "checking", "id": 44, "payment_type": "bank_account", "first_name": "first_name4", diff --git a/doc/models/create-payment-profile.md b/doc/models/create-payment-profile.md index 369759b0..2f82c394 100644 --- a/doc/models/create-payment-profile.md +++ b/doc/models/create-payment-profile.md @@ -38,7 +38,7 @@ | `BankRoutingNumber` | `String` | Optional | (Required when creating with ACH. Optional when creating a subscription with GoCardless). The routing number of the bank. It becomes bank_code while passing via GoCardless API | String getBankRoutingNumber() | setBankRoutingNumber(String bankRoutingNumber) | | `BankAccountNumber` | `String` | Optional | (Required when creating with ACH, GoCardless, Stripe BECS Direct Debit and bank_iban is blank) The customerʼs bank account number | String getBankAccountNumber() | setBankAccountNumber(String bankAccountNumber) | | `BankBranchCode` | `String` | Optional | (Optional when creating with GoCardless, required with Stripe BECS Direct Debit) Branch code. Alternatively, an IBAN can be provided | String getBankBranchCode() | setBankBranchCode(String bankBranchCode) | -| `BankAccountType` | [`BankAccountType`](../../doc/models/bank-account-type.md) | Optional | Defaults to checking
**Default**: `BankAccountType.CHECKING` | BankAccountType getBankAccountType() | setBankAccountType(BankAccountType bankAccountType) | +| `BankAccountType` | [`BankAccountType`](../../doc/models/bank-account-type.md) | Optional | Defaults to checking | BankAccountType getBankAccountType() | setBankAccountType(BankAccountType bankAccountType) | | `BankAccountHolderType` | [`BankAccountHolderType`](../../doc/models/bank-account-holder-type.md) | Optional | Defaults to personal | BankAccountHolderType getBankAccountHolderType() | setBankAccountHolderType(BankAccountHolderType bankAccountHolderType) | | `LastFour` | `String` | Optional | (Optional) Used for creating subscription with payment profile imported using vault_token, for proper display in Advanced Billing UI | String getLastFour() | setLastFour(String lastFour) | @@ -48,7 +48,6 @@ { "chargify_token": "tok_9g6hw85pnpt6knmskpwp4ttt", "full_number": "5424000000000015", - "bank_account_type": "checking", "id": 76, "payment_type": "paypal_account", "first_name": "first_name8", diff --git a/doc/models/invoice-payment-method-type.md b/doc/models/invoice-payment-method-type.md index 919b953c..5b3c3461 100644 --- a/doc/models/invoice-payment-method-type.md +++ b/doc/models/invoice-payment-method-type.md @@ -1,7 +1,7 @@ # Invoice Payment Method Type -The type of payment method used. +The type of payment method used. Defaults to other. ## Enumeration diff --git a/doc/models/invoice-payment-type.md b/doc/models/invoice-payment-type.md index a2020a23..1547e4f9 100644 --- a/doc/models/invoice-payment-type.md +++ b/doc/models/invoice-payment-type.md @@ -1,7 +1,7 @@ # Invoice Payment Type -The type of payment to be applied to an Invoice. +The type of payment to be applied to an Invoice. Defaults to external. ## Enumeration diff --git a/doc/models/list-components-price-points-response.md b/doc/models/list-components-price-points-response.md index 80262943..9098560e 100644 --- a/doc/models/list-components-price-points-response.md +++ b/doc/models/list-components-price-points-response.md @@ -17,7 +17,6 @@ { "price_points": [ { - "use_site_exchange_rate": true, "id": 40, "type": "default", "default": false, diff --git a/doc/models/payment-profile-response.md b/doc/models/payment-profile-response.md index 27e98e5b..f29b562f 100644 --- a/doc/models/payment-profile-response.md +++ b/doc/models/payment-profile-response.md @@ -18,7 +18,6 @@ "payment_profile": { "masked_bank_routing_number": "masked_bank_routing_number8", "masked_bank_account_number": "masked_bank_account_number8", - "bank_account_type": "checking", "verified": false, "id": 188, "first_name": "first_name6", diff --git a/doc/models/subscription-group-bank-account.md b/doc/models/subscription-group-bank-account.md index 18a7697f..16a5bea7 100644 --- a/doc/models/subscription-group-bank-account.md +++ b/doc/models/subscription-group-bank-account.md @@ -14,7 +14,7 @@ | `BankRoutingNumber` | `String` | Optional | (Required when creating a subscription with ACH. Optional when creating a subscription with GoCardless). The routing number of the bank. It becomes bank_code while passing via GoCardless API | String getBankRoutingNumber() | setBankRoutingNumber(String bankRoutingNumber) | | `BankIban` | `String` | Optional | (Optional when creating a subscription with GoCardless). International Bank Account Number. Alternatively, local bank details can be provided | String getBankIban() | setBankIban(String bankIban) | | `BankBranchCode` | `String` | Optional | (Optional when creating a subscription with GoCardless) Branch code. Alternatively, an IBAN can be provided | String getBankBranchCode() | setBankBranchCode(String bankBranchCode) | -| `BankAccountType` | [`BankAccountType`](../../doc/models/bank-account-type.md) | Optional | Defaults to checking
**Default**: `BankAccountType.CHECKING` | BankAccountType getBankAccountType() | setBankAccountType(BankAccountType bankAccountType) | +| `BankAccountType` | [`BankAccountType`](../../doc/models/bank-account-type.md) | Optional | Defaults to checking | BankAccountType getBankAccountType() | setBankAccountType(BankAccountType bankAccountType) | | `BankAccountHolderType` | [`BankAccountHolderType`](../../doc/models/bank-account-holder-type.md) | Optional | Defaults to personal | BankAccountHolderType getBankAccountHolderType() | setBankAccountHolderType(BankAccountHolderType bankAccountHolderType) | | `PaymentType` | [`PaymentType`](../../doc/models/payment-type.md) | Optional | - | PaymentType getPaymentType() | setPaymentType(PaymentType paymentType) | | `BillingAddress` | `String` | Optional | - | String getBillingAddress() | setBillingAddress(String billingAddress) | @@ -30,7 +30,6 @@ ```json { - "bank_account_type": "checking", "bank_name": "bank_name2", "bank_account_number": "bank_account_number4", "bank_routing_number": "bank_routing_number8", diff --git a/doc/models/subscription.md b/doc/models/subscription.md index bd77e8ee..87e7ec97 100644 --- a/doc/models/subscription.md +++ b/doc/models/subscription.md @@ -61,7 +61,7 @@ | `OnHoldAt` | `ZonedDateTime` | Optional | The timestamp of the most recent on hold action. | ZonedDateTime getOnHoldAt() | setOnHoldAt(ZonedDateTime onHoldAt) | | `PrepaidDunning` | `Boolean` | Optional | Boolean representing whether the subscription is prepaid and currently in dunning. Only returned for Relationship Invoicing sites with the feature enabled | Boolean getPrepaidDunning() | setPrepaidDunning(Boolean prepaidDunning) | | `Coupons` | [`List`](../../doc/models/subscription-included-coupon.md) | Optional | Additional coupon data. To use this data you also have to include the following param in the request`include[]=coupons`.
Only in Read Subscription Endpoint. | List getCoupons() | setCoupons(List coupons) | -| `DunningCommunicationDelayEnabled` | `Boolean` | Optional | Enable Communication Delay feature, making sure no communication (email or SMS) is sent to the Customer between 9PM and 8AM in time zone set by the `dunning_communication_delay_time_zone` attribute.
**Default**: `false` | Boolean getDunningCommunicationDelayEnabled() | setDunningCommunicationDelayEnabled(Boolean dunningCommunicationDelayEnabled) | +| `DunningCommunicationDelayEnabled` | `Boolean` | Optional | Enable Communication Delay feature, making sure no communication (email or SMS) is sent to the Customer between 9PM and 8AM in time zone set by the `dunning_communication_delay_time_zone` attribute. | Boolean getDunningCommunicationDelayEnabled() | setDunningCommunicationDelayEnabled(Boolean dunningCommunicationDelayEnabled) | | `DunningCommunicationDelayTimeZone` | `String` | Optional | Time zone for the Dunning Communication Delay feature. | String getDunningCommunicationDelayTimeZone() | setDunningCommunicationDelayTimeZone(String dunningCommunicationDelayTimeZone) | | `ReceivesInvoiceEmails` | `Boolean` | Optional | - | Boolean getReceivesInvoiceEmails() | setReceivesInvoiceEmails(Boolean receivesInvoiceEmails) | | `Locale` | `String` | Optional | - | String getLocale() | setLocale(String locale) | @@ -99,7 +99,6 @@ "site_gateway_setting_id": 1, "gateway_handle": null }, - "dunning_communication_delay_enabled": false, "dunning_communication_delay_time_zone": "\"Eastern Time (US & Canada)\"", "id": 96, "state": "soft_failure", diff --git a/doc/models/update-subscription-request.md b/doc/models/update-subscription-request.md index d77a5b79..6eec1d6e 100644 --- a/doc/models/update-subscription-request.md +++ b/doc/models/update-subscription-request.md @@ -16,8 +16,6 @@ ```json { "subscription": { - "product_change_delayed": false, - "dunning_communication_delay_enabled": false, "dunning_communication_delay_time_zone": "\"Eastern Time (US & Canada)\"", "credit_card_attributes": { "full_number": "full_number2", @@ -26,6 +24,7 @@ }, "product_handle": "product_handle6", "product_id": 206, + "product_change_delayed": false, "next_product_id": "next_product_id6" } } diff --git a/doc/models/update-subscription.md b/doc/models/update-subscription.md index 133084bc..d8780b8e 100644 --- a/doc/models/update-subscription.md +++ b/doc/models/update-subscription.md @@ -12,7 +12,7 @@ | `CreditCardAttributes` | [`CreditCardAttributes`](../../doc/models/credit-card-attributes.md) | Optional | - | CreditCardAttributes getCreditCardAttributes() | setCreditCardAttributes(CreditCardAttributes creditCardAttributes) | | `ProductHandle` | `String` | Optional | Set to the handle of a different product to change the subscription's product | String getProductHandle() | setProductHandle(String productHandle) | | `ProductId` | `Integer` | Optional | Set to the id of a different product to change the subscription's product | Integer getProductId() | setProductId(Integer productId) | -| `ProductChangeDelayed` | `Boolean` | Optional | **Default**: `false` | Boolean getProductChangeDelayed() | setProductChangeDelayed(Boolean productChangeDelayed) | +| `ProductChangeDelayed` | `Boolean` | Optional | - | Boolean getProductChangeDelayed() | setProductChangeDelayed(Boolean productChangeDelayed) | | `NextProductId` | `String` | Optional | Set to an empty string to cancel a delayed product change. | String getNextProductId() | setNextProductId(String nextProductId) | | `NextProductPricePointId` | `String` | Optional | - | String getNextProductPricePointId() | setNextProductPricePointId(String nextProductPricePointId) | | `SnapDay` | [`UpdateSubscriptionSnapDay`](../../doc/models/containers/update-subscription-snap-day.md) | Optional | This is a container for one-of cases. | UpdateSubscriptionSnapDay getSnapDay() | setSnapDay(UpdateSubscriptionSnapDay snapDay) | @@ -24,15 +24,13 @@ | `Reference` | `String` | Optional | - | String getReference() | setReference(String reference) | | `CustomPrice` | [`SubscriptionCustomPrice`](../../doc/models/subscription-custom-price.md) | Optional | (Optional) Used in place of `product_price_point_id` to define a custom price point unique to the subscription | SubscriptionCustomPrice getCustomPrice() | setCustomPrice(SubscriptionCustomPrice customPrice) | | `Components` | [`List`](../../doc/models/update-subscription-component.md) | Optional | (Optional) An array of component ids and custom prices to be added to the subscription. | List getComponents() | setComponents(List components) | -| `DunningCommunicationDelayEnabled` | `Boolean` | Optional | Enable Communication Delay feature, making sure no communication (email or SMS) is sent to the Customer between 9PM and 8AM in time zone set by the `dunning_communication_delay_time_zone` attribute.
**Default**: `false` | Boolean getDunningCommunicationDelayEnabled() | setDunningCommunicationDelayEnabled(Boolean dunningCommunicationDelayEnabled) | +| `DunningCommunicationDelayEnabled` | `Boolean` | Optional | Enable Communication Delay feature, making sure no communication (email or SMS) is sent to the Customer between 9PM and 8AM in time zone set by the `dunning_communication_delay_time_zone` attribute. | Boolean getDunningCommunicationDelayEnabled() | setDunningCommunicationDelayEnabled(Boolean dunningCommunicationDelayEnabled) | | `DunningCommunicationDelayTimeZone` | `String` | Optional | Time zone for the Dunning Communication Delay feature. | String getDunningCommunicationDelayTimeZone() | setDunningCommunicationDelayTimeZone(String dunningCommunicationDelayTimeZone) | ## Example (as JSON) ```json { - "product_change_delayed": false, - "dunning_communication_delay_enabled": false, "dunning_communication_delay_time_zone": "\"Eastern Time (US & Canada)\"", "credit_card_attributes": { "full_number": "full_number2", @@ -41,6 +39,7 @@ }, "product_handle": "product_handle2", "product_id": 114, + "product_change_delayed": false, "next_product_id": "next_product_id8" } ``` diff --git a/pom.xml b/pom.xml index 70b06c0c..fa965bd2 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ 4.0.0 com.maxio advanced-billing-sdk - 0.0.5 + 1.0.0 jar Advanced Billing SDK Ultimate billing and pricing flexibility for B2B SaaS. diff --git a/src/main/java/com/maxio/advancedbilling/AdvancedBillingClient.java b/src/main/java/com/maxio/advancedbilling/AdvancedBillingClient.java index 311a6d6c..9ca1f327 100644 --- a/src/main/java/com/maxio/advancedbilling/AdvancedBillingClient.java +++ b/src/main/java/com/maxio/advancedbilling/AdvancedBillingClient.java @@ -93,7 +93,7 @@ public final class AdvancedBillingClient implements Configuration { private static final CompatibilityFactory compatibilityFactory = new CompatibilityFactoryImpl(); - private static String userAgent = "AB SDK Java:0.0.5 on OS {os-info}"; + private static String userAgent = "AB SDK Java:1.0.0 on OS {os-info}"; /** * Current API environment. diff --git a/src/main/java/com/maxio/advancedbilling/models/BankAccountAttributes.java b/src/main/java/com/maxio/advancedbilling/models/BankAccountAttributes.java index 1181539c..a11544cb 100644 --- a/src/main/java/com/maxio/advancedbilling/models/BankAccountAttributes.java +++ b/src/main/java/com/maxio/advancedbilling/models/BankAccountAttributes.java @@ -31,7 +31,6 @@ public class BankAccountAttributes { * Default constructor. */ public BankAccountAttributes() { - bankAccountType = BankAccountType.CHECKING; } /** @@ -381,7 +380,7 @@ public static class Builder { private String bankName; private String bankRoutingNumber; private String bankAccountNumber; - private BankAccountType bankAccountType = BankAccountType.CHECKING; + private BankAccountType bankAccountType; private String bankBranchCode; private String bankIban; private BankAccountHolderType bankAccountHolderType; diff --git a/src/main/java/com/maxio/advancedbilling/models/BankAccountPaymentProfile.java b/src/main/java/com/maxio/advancedbilling/models/BankAccountPaymentProfile.java index 0c54f5de..07f05ee1 100644 --- a/src/main/java/com/maxio/advancedbilling/models/BankAccountPaymentProfile.java +++ b/src/main/java/com/maxio/advancedbilling/models/BankAccountPaymentProfile.java @@ -45,7 +45,6 @@ public class BankAccountPaymentProfile { * Default constructor. */ public BankAccountPaymentProfile() { - bankAccountType = BankAccountType.CHECKING; verified = false; } @@ -885,7 +884,7 @@ public static class Builder { private OptionalNullable customerVaultToken; private OptionalNullable billingAddress2; private String bankName; - private BankAccountType bankAccountType = BankAccountType.CHECKING; + private BankAccountType bankAccountType; private BankAccountHolderType bankAccountHolderType; private PaymentType paymentType; private Boolean verified = false; diff --git a/src/main/java/com/maxio/advancedbilling/models/ComponentPricePoint.java b/src/main/java/com/maxio/advancedbilling/models/ComponentPricePoint.java index d0471f7b..bb76ecf3 100644 --- a/src/main/java/com/maxio/advancedbilling/models/ComponentPricePoint.java +++ b/src/main/java/com/maxio/advancedbilling/models/ComponentPricePoint.java @@ -43,7 +43,6 @@ public class ComponentPricePoint { * Default constructor. */ public ComponentPricePoint() { - useSiteExchangeRate = true; } /** @@ -399,7 +398,7 @@ public void setPrices(List prices) { /** * Getter for UseSiteExchangeRate. * Whether to use the site level exchange rate or define your own prices for each currency if - * you have multiple currencies defined on the site. + * you have multiple currencies defined on the site. Defaults to true during creation. * @return Returns the Boolean */ @JsonGetter("use_site_exchange_rate") @@ -411,7 +410,7 @@ public Boolean getUseSiteExchangeRate() { /** * Setter for UseSiteExchangeRate. * Whether to use the site level exchange rate or define your own prices for each currency if - * you have multiple currencies defined on the site. + * you have multiple currencies defined on the site. Defaults to true during creation. * @param useSiteExchangeRate Value for Boolean */ @JsonSetter("use_site_exchange_rate") @@ -635,7 +634,7 @@ public static class Builder { private ZonedDateTime createdAt; private ZonedDateTime updatedAt; private List prices; - private Boolean useSiteExchangeRate = true; + private Boolean useSiteExchangeRate; private Integer subscriptionId; private Boolean taxIncluded; private OptionalNullable interval; diff --git a/src/main/java/com/maxio/advancedbilling/models/CreateInvoicePayment.java b/src/main/java/com/maxio/advancedbilling/models/CreateInvoicePayment.java index ff07c06e..89fa6caa 100644 --- a/src/main/java/com/maxio/advancedbilling/models/CreateInvoicePayment.java +++ b/src/main/java/com/maxio/advancedbilling/models/CreateInvoicePayment.java @@ -24,7 +24,6 @@ public class CreateInvoicePayment { * Default constructor. */ public CreateInvoicePayment() { - method = InvoicePaymentMethodType.OTHER; } /** @@ -89,7 +88,7 @@ public void setMemo(String memo) { /** * Getter for Method. - * The type of payment method used. + * The type of payment method used. Defaults to other. * @return Returns the InvoicePaymentMethodType */ @JsonGetter("method") @@ -100,7 +99,7 @@ public InvoicePaymentMethodType getMethod() { /** * Setter for Method. - * The type of payment method used. + * The type of payment method used. Defaults to other. * @param method Value for InvoicePaymentMethodType */ @JsonSetter("method") @@ -159,7 +158,7 @@ public Builder toBuilder() { public static class Builder { private CreateInvoicePaymentAmount amount; private String memo; - private InvoicePaymentMethodType method = InvoicePaymentMethodType.OTHER; + private InvoicePaymentMethodType method; private String details; diff --git a/src/main/java/com/maxio/advancedbilling/models/CreateInvoicePaymentRequest.java b/src/main/java/com/maxio/advancedbilling/models/CreateInvoicePaymentRequest.java index d4a8d316..abe281e1 100644 --- a/src/main/java/com/maxio/advancedbilling/models/CreateInvoicePaymentRequest.java +++ b/src/main/java/com/maxio/advancedbilling/models/CreateInvoicePaymentRequest.java @@ -21,7 +21,6 @@ public class CreateInvoicePaymentRequest { * Default constructor. */ public CreateInvoicePaymentRequest() { - type = InvoicePaymentType.EXTERNAL; } /** @@ -56,7 +55,7 @@ public void setPayment(CreateInvoicePayment payment) { /** * Getter for Type. - * The type of payment to be applied to an Invoice. + * The type of payment to be applied to an Invoice. Defaults to external. * @return Returns the InvoicePaymentType */ @JsonGetter("type") @@ -67,7 +66,7 @@ public InvoicePaymentType getType() { /** * Setter for Type. - * The type of payment to be applied to an Invoice. + * The type of payment to be applied to an Invoice. Defaults to external. * @param type Value for InvoicePaymentType */ @JsonSetter("type") @@ -100,7 +99,7 @@ public Builder toBuilder() { */ public static class Builder { private CreateInvoicePayment payment; - private InvoicePaymentType type = InvoicePaymentType.EXTERNAL; + private InvoicePaymentType type; /** * Initialization constructor. diff --git a/src/main/java/com/maxio/advancedbilling/models/CreateMultiInvoicePayment.java b/src/main/java/com/maxio/advancedbilling/models/CreateMultiInvoicePayment.java index 0e2fea2e..7d73f556 100644 --- a/src/main/java/com/maxio/advancedbilling/models/CreateMultiInvoicePayment.java +++ b/src/main/java/com/maxio/advancedbilling/models/CreateMultiInvoicePayment.java @@ -27,7 +27,6 @@ public class CreateMultiInvoicePayment { * Default constructor. */ public CreateMultiInvoicePayment() { - method = InvoicePaymentMethodType.OTHER; } /** @@ -98,7 +97,7 @@ public void setDetails(String details) { /** * Getter for Method. - * The type of payment method used. + * The type of payment method used. Defaults to other. * @return Returns the InvoicePaymentMethodType */ @JsonGetter("method") @@ -109,7 +108,7 @@ public InvoicePaymentMethodType getMethod() { /** * Setter for Method. - * The type of payment method used. + * The type of payment method used. Defaults to other. * @param method Value for InvoicePaymentMethodType */ @JsonSetter("method") @@ -209,7 +208,7 @@ public static class Builder { private List applications; private String memo; private String details; - private InvoicePaymentMethodType method = InvoicePaymentMethodType.OTHER; + private InvoicePaymentMethodType method; private String receivedOn; /** diff --git a/src/main/java/com/maxio/advancedbilling/models/CreatePaymentProfile.java b/src/main/java/com/maxio/advancedbilling/models/CreatePaymentProfile.java index d1ddfd78..4f8d2ce2 100644 --- a/src/main/java/com/maxio/advancedbilling/models/CreatePaymentProfile.java +++ b/src/main/java/com/maxio/advancedbilling/models/CreatePaymentProfile.java @@ -55,7 +55,6 @@ public class CreatePaymentProfile { * Default constructor. */ public CreatePaymentProfile() { - bankAccountType = BankAccountType.CHECKING; } /** @@ -1086,7 +1085,7 @@ public static class Builder { private String bankRoutingNumber; private String bankAccountNumber; private String bankBranchCode; - private BankAccountType bankAccountType = BankAccountType.CHECKING; + private BankAccountType bankAccountType; private BankAccountHolderType bankAccountHolderType; private String lastFour; diff --git a/src/main/java/com/maxio/advancedbilling/models/Subscription.java b/src/main/java/com/maxio/advancedbilling/models/Subscription.java index bc47b268..7c124a53 100644 --- a/src/main/java/com/maxio/advancedbilling/models/Subscription.java +++ b/src/main/java/com/maxio/advancedbilling/models/Subscription.java @@ -89,7 +89,6 @@ public class Subscription { */ public Subscription() { paymentCollectionMethod = CollectionMethod.AUTOMATIC; - dunningCommunicationDelayEnabled = false; } /** @@ -2624,7 +2623,7 @@ public static class Builder { private OptionalNullable onHoldAt; private Boolean prepaidDunning; private List coupons; - private Boolean dunningCommunicationDelayEnabled = false; + private Boolean dunningCommunicationDelayEnabled; private OptionalNullable dunningCommunicationDelayTimeZone; private OptionalNullable receivesInvoiceEmails; private OptionalNullable locale; diff --git a/src/main/java/com/maxio/advancedbilling/models/SubscriptionGroupBankAccount.java b/src/main/java/com/maxio/advancedbilling/models/SubscriptionGroupBankAccount.java index 1f51f025..fdb4653b 100644 --- a/src/main/java/com/maxio/advancedbilling/models/SubscriptionGroupBankAccount.java +++ b/src/main/java/com/maxio/advancedbilling/models/SubscriptionGroupBankAccount.java @@ -35,7 +35,6 @@ public class SubscriptionGroupBankAccount { * Default constructor. */ public SubscriptionGroupBankAccount() { - bankAccountType = BankAccountType.CHECKING; } /** @@ -476,7 +475,7 @@ public static class Builder { private String bankRoutingNumber; private String bankIban; private String bankBranchCode; - private BankAccountType bankAccountType = BankAccountType.CHECKING; + private BankAccountType bankAccountType; private BankAccountHolderType bankAccountHolderType; private PaymentType paymentType; private String billingAddress; diff --git a/src/main/java/com/maxio/advancedbilling/models/UpdateSubscription.java b/src/main/java/com/maxio/advancedbilling/models/UpdateSubscription.java index 4708f384..2120e567 100644 --- a/src/main/java/com/maxio/advancedbilling/models/UpdateSubscription.java +++ b/src/main/java/com/maxio/advancedbilling/models/UpdateSubscription.java @@ -41,8 +41,6 @@ public class UpdateSubscription { * Default constructor. */ public UpdateSubscription() { - productChangeDelayed = false; - dunningCommunicationDelayEnabled = OptionalNullable.of(false); } /** @@ -596,7 +594,7 @@ public static class Builder { private CreditCardAttributes creditCardAttributes; private String productHandle; private Integer productId; - private Boolean productChangeDelayed = false; + private Boolean productChangeDelayed; private String nextProductId; private String nextProductPricePointId; private UpdateSubscriptionSnapDay snapDay; @@ -608,8 +606,7 @@ public static class Builder { private String reference; private SubscriptionCustomPrice customPrice; private List components; - private OptionalNullable dunningCommunicationDelayEnabled = - OptionalNullable.of(false); + private OptionalNullable dunningCommunicationDelayEnabled; private OptionalNullable dunningCommunicationDelayTimeZone; diff --git a/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerPauseSubscriptionTest.java b/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerPauseSubscriptionTest.java index 710a2593..ba2d9532 100644 --- a/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerPauseSubscriptionTest.java +++ b/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerPauseSubscriptionTest.java @@ -29,7 +29,7 @@ void shouldPauseActiveSubscription() throws IOException, ApiException { // then assertThat(pausedSubscription).usingRecursiveComparison() .ignoringFields("state", "updatedAt", "onHoldAt", "prepaidDunning", - "productPricePointType") + "productPricePointType", "dunningCommunicationDelayEnabled") .isEqualTo(subscription); assertThat(pausedSubscription.getState()).isEqualTo(SubscriptionState.ON_HOLD); assertThat(pausedSubscription.getUpdatedAt()).isAfter(timestamp); @@ -53,7 +53,7 @@ void shouldPauseActiveSubscriptionSettingAutomaticallyResumeAt() throws IOExcept // then assertThat(pausedSubscription).usingRecursiveComparison() .ignoringFields("state", "updatedAt", "onHoldAt", "prepaidDunning", - "productPricePointType", "automaticallyResumeAt") + "productPricePointType", "automaticallyResumeAt", "dunningCommunicationDelayEnabled") .isEqualTo(subscription); assertThat(pausedSubscription.getState()).isEqualTo(SubscriptionState.ON_HOLD); assertThat(pausedSubscription.getUpdatedAt()).isAfter(timestamp); @@ -85,7 +85,7 @@ void shouldUpdatePausedSubscriptionAutomaticResumptionDateToNull() throws IOExce // then assertThat(pausedSubscription).usingRecursiveComparison() .ignoringFields("state", "updatedAt", "onHoldAt", "prepaidDunning", - "productPricePointType", "automaticallyResumeAt") + "productPricePointType", "automaticallyResumeAt", "dunningCommunicationDelayEnabled") .isEqualTo(subscription); assertThat(pausedSubscription.getState()).isEqualTo(SubscriptionState.ON_HOLD); assertThat(pausedSubscription.getUpdatedAt()).isAfter(timestamp); diff --git a/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerReactivateSubscriptionTest.java b/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerReactivateSubscriptionTest.java index 6644e0eb..0a87fcfb 100644 --- a/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerReactivateSubscriptionTest.java +++ b/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerReactivateSubscriptionTest.java @@ -43,7 +43,8 @@ void shouldReactivateSubscription() throws IOException, ApiException { // then assertThat(reactivatedSubscription).usingRecursiveComparison() - .ignoringFields("updatedAt", "cancelAtEndOfPeriod", "previousState", "productPricePointType") + .ignoringFields("updatedAt", "cancelAtEndOfPeriod", "previousState", "productPricePointType", + "dunningCommunicationDelayEnabled") .isEqualTo(subscription); assertThat(reactivatedSubscription.getPreviousState()).isEqualTo(CANCELED); } diff --git a/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerResumeSubscriptionTest.java b/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerResumeSubscriptionTest.java index a82a0315..dc23edfa 100644 --- a/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerResumeSubscriptionTest.java +++ b/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerResumeSubscriptionTest.java @@ -28,7 +28,8 @@ void shouldResumePausedSubscription() throws IOException, ApiException { // then assertThat(resumedSubscription).usingRecursiveComparison() - .ignoringFields("updatedAt", "prepaidDunning", "previousState", "productPricePointType") + .ignoringFields("updatedAt", "prepaidDunning", "previousState", "productPricePointType", + "dunningCommunicationDelayEnabled") .isEqualTo(subscription); assertThat(resumedSubscription.getUpdatedAt()).isAfter(timestamp); assertThat(resumedSubscription.getState()).isEqualTo(ACTIVE); diff --git a/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerRetrySubscriptionTest.java b/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerRetrySubscriptionTest.java index cce229f3..499a7a03 100644 --- a/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerRetrySubscriptionTest.java +++ b/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerRetrySubscriptionTest.java @@ -23,7 +23,7 @@ void shouldRetryFailedSubscription() throws IOException, ApiException { // then assertThat(retriedSubscription).usingRecursiveComparison() - .ignoringFields("productPricePointType", "prepaidDunning", "updatedAt") + .ignoringFields("productPricePointType", "prepaidDunning", "updatedAt", "dunningCommunicationDelayEnabled") .isEqualTo(subscription); } diff --git a/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerUpdateAutomaticResumptionTest.java b/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerUpdateAutomaticResumptionTest.java index eb34353a..b0e180b9 100644 --- a/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerUpdateAutomaticResumptionTest.java +++ b/tests/src/test/java/com/maxio/advancedbilling/controllers/subscriptionstatus/SubscriptionStatusControllerUpdateAutomaticResumptionTest.java @@ -34,7 +34,7 @@ void shouldUpdatePausedSubscriptionAutomaticResumptionDate() throws IOException, // then assertThat(pausedSubscription).usingRecursiveComparison() .ignoringFields("state", "updatedAt", "onHoldAt", "prepaidDunning", - "productPricePointType", "automaticallyResumeAt") + "productPricePointType", "automaticallyResumeAt", "dunningCommunicationDelayEnabled") .isEqualTo(subscription); assertThat(pausedSubscription.getState()).isEqualTo(SubscriptionState.ON_HOLD); assertThat(pausedSubscription.getUpdatedAt()).isAfter(timestamp);