diff --git a/openapi/api.yaml b/openapi/api.yaml index f32d168..28ec81f 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -885,7 +885,7 @@ paths: Alabama St.\"),\n\t\t\tCity: recurly.String(\"San Francisco\"),\n\t\t\tPostalCode: recurly.String(\"94110\"),\n\t\t\tCountry: recurly.String(\"US\"),\n\t\t\tRegion: \ recurly.String(\"CA\"),\n\t\t},\n\t\tNumber: recurly.String(\"4111111111111111\"),\n\t\tMonth: - \ recurly.String(\"12\"),\n\t\tYear: recurly.String(\"22\"),\n\t\tCvv: + \ recurly.String(\"12\"),\n\t\tYear: recurly.String(\"30\"),\n\t\tCvv: \ recurly.String(\"123\"),\n\t},\n}\n\naccount, err := client.CreateAccount(accountReq)\nif e, ok := err.(*recurly.Error); ok {\n\tif e.Type == recurly.ErrorTypeValidation {\n\t\tfmt.Printf(\"Failed validation: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected @@ -3195,6 +3195,7 @@ paths: - "$ref": "#/components/parameters/site_id" - "$ref": "#/components/parameters/account_id" - "$ref": "#/components/parameters/ids" + - "$ref": "#/components/parameters/invoice_state" - "$ref": "#/components/parameters/limit" - "$ref": "#/components/parameters/order" - "$ref": "#/components/parameters/sort_dates" @@ -7394,6 +7395,7 @@ paths: parameters: - "$ref": "#/components/parameters/site_id" - "$ref": "#/components/parameters/ids" + - "$ref": "#/components/parameters/invoice_state" - "$ref": "#/components/parameters/limit" - "$ref": "#/components/parameters/order" - "$ref": "#/components/parameters/sort_dates" @@ -7888,8 +7890,6 @@ paths: summary: Apply available credit to a pending or past due charge invoice description: Apply credit payment to the outstanding balance on an existing charge invoice from an account’s available balance from existing credit invoices. - Credit that was refunded from the invoice cannot be applied back to the invoice - as payment. parameters: - "$ref": "#/components/parameters/site_id" - "$ref": "#/components/parameters/invoice_id" @@ -13059,6 +13059,7 @@ paths: - "$ref": "#/components/parameters/site_id" - "$ref": "#/components/parameters/subscription_id" - "$ref": "#/components/parameters/ids" + - "$ref": "#/components/parameters/invoice_state" - "$ref": "#/components/parameters/limit" - "$ref": "#/components/parameters/order" - "$ref": "#/components/parameters/sort_dates" @@ -14724,6 +14725,18 @@ components: required: true schema: type: string + invoice_state: + name: state + in: query + description: Invoice state. + schema: + type: string + default: all + enum: + - pending + - past_due + - paid + - failed measured_unit_id: name: measured_unit_id in: path @@ -15932,6 +15945,11 @@ components: type: string title: Country description: Country, 2-letter ISO 3166-1 alpha-2 code. + geo_code: + type: string + maxLength: 20 + description: Code that represents a geographic entity (location or object). + Only returned for Sling Vertex Integration AddOnMini: type: object title: Add-on mini details @@ -16652,16 +16670,30 @@ components: properties: account_reference: type: string - description: Used by Adyen gateways. The Shopper Reference value used - when the external token was created. Must be used in conjunction with - gateway_token and gateway_code. + description: Used by Adyen and Braintree gateways. For Adyen The Shopper + Reference value used when the external token was created. Must be + used in conjunction with gateway_token and gateway_code. For Braintree + the PayPal PayerID is populated in the response. maxLength: 264 + card_network_preference: + type: string + description: Represents the card network preference associated with the + billing info for dual badged cards. Must be a supported card network. + enum: + - Bancontact + - CartesBancaires + - Dankort + - MasterCard + - Visa amazon_billing_agreement_id: type: string title: Amazon billing agreement ID paypal_billing_agreement_id: type: string title: PayPal billing agreement ID + roku_billing_agreement_id: + type: string + title: Roku's CIB if billing through Roku fraud_session_id: type: string title: Fraud Session ID @@ -19734,6 +19766,11 @@ components: type: string maxLength: 50 description: Country, 2-letter ISO 3166-1 alpha-2 code. + geo_code: + type: string + maxLength: 20 + description: Code that represents a geographic entity (location or object). + Only returned for Sling Vertex Integration created_at: type: string title: Created at @@ -19789,6 +19826,11 @@ components: type: string maxLength: 50 description: Country, 2-letter ISO 3166-1 alpha-2 code. + geo_code: + type: string + maxLength: 20 + description: Code that represents a geographic entity (location or object). + Only returned for Sling Vertex Integration required: - first_name - last_name @@ -20039,6 +20081,11 @@ components: type: string maxLength: 50 description: Country, 2-letter ISO 3166-1 alpha-2 code. + geo_code: + type: string + maxLength: 20 + description: Code that represents a geographic entity (location or object). + Only returned for Sling Vertex Integration Site: type: object properties: @@ -21334,6 +21381,14 @@ components: remaining_billing_cycles: type: integer description: Represents how many billing cycles are left in a ramp interval. + starting_on: + type: string + format: date-time + title: Date the ramp interval starts + ending_on: + type: string + format: date-time + title: Date the ramp interval ends unit_amount: type: integer description: Represents the price for the ramp interval. @@ -22275,9 +22330,20 @@ components: properties: account_reference: type: string - description: Used by Adyen gateways. The Shopper Reference value used - when the external token was created. + description: Used by Adyen and Braintree gateways. For Adyen the Shopper + Reference value used when the external token was created. For Braintree + the PayPal PayerID is populated in the response. maxLength: 264 + card_network_preference: + type: string + description: Represents the card network preference associated with the + billing info for dual badged cards. Must be a supported card network. + enum: + - Bancontact + - CartesBancaires + - Dankort + - MasterCard + - Visa billing_agreement_id: type: string description: Billing Agreement identifier. Only present for Amazon or Paypal diff --git a/src/main/java/com/recurly/v3/requests/Address.java b/src/main/java/com/recurly/v3/requests/Address.java index 72505a9..0255498 100644 --- a/src/main/java/com/recurly/v3/requests/Address.java +++ b/src/main/java/com/recurly/v3/requests/Address.java @@ -27,6 +27,14 @@ public class Address extends Request { @Expose private String firstName; + /** + * Code that represents a geographic entity (location or object). Only returned for Sling Vertex + * Integration + */ + @SerializedName("geo_code") + @Expose + private String geoCode; + /** Last name */ @SerializedName("last_name") @Expose @@ -87,6 +95,22 @@ public void setFirstName(final String firstName) { this.firstName = firstName; } + /** + * Code that represents a geographic entity (location or object). Only returned for Sling Vertex + * Integration + */ + public String getGeoCode() { + return this.geoCode; + } + + /** + * @param geoCode Code that represents a geographic entity (location or object). Only returned for + * Sling Vertex Integration + */ + public void setGeoCode(final String geoCode) { + this.geoCode = geoCode; + } + /** Last name */ public String getLastName() { return this.lastName; diff --git a/src/main/java/com/recurly/v3/requests/BillingInfoCreate.java b/src/main/java/com/recurly/v3/requests/BillingInfoCreate.java index ae84323..c68ef1e 100644 --- a/src/main/java/com/recurly/v3/requests/BillingInfoCreate.java +++ b/src/main/java/com/recurly/v3/requests/BillingInfoCreate.java @@ -42,6 +42,14 @@ public class BillingInfoCreate extends Request { @Expose private Boolean backupPaymentMethod; + /** + * Represents the card network preference associated with the billing info for dual badged cards. + * Must be a supported card network. + */ + @SerializedName("card_network_preference") + @Expose + private String cardNetworkPreference; + /** Company name */ @SerializedName("company") @Expose @@ -138,6 +146,11 @@ public class BillingInfoCreate extends Request { @Expose private Boolean primaryPaymentMethod; + /** Roku's CIB if billing through Roku */ + @SerializedName("roku_billing_agreement_id") + @Expose + private String rokuBillingAgreementId; + /** The bank's rounting number. (ACH only) */ @SerializedName("routing_number") @Expose @@ -268,6 +281,22 @@ public void setBackupPaymentMethod(final Boolean backupPaymentMethod) { this.backupPaymentMethod = backupPaymentMethod; } + /** + * Represents the card network preference associated with the billing info for dual badged cards. + * Must be a supported card network. + */ + public String getCardNetworkPreference() { + return this.cardNetworkPreference; + } + + /** + * @param cardNetworkPreference Represents the card network preference associated with the billing + * info for dual badged cards. Must be a supported card network. + */ + public void setCardNetworkPreference(final String cardNetworkPreference) { + this.cardNetworkPreference = cardNetworkPreference; + } + /** Company name */ public String getCompany() { return this.company; @@ -465,6 +494,16 @@ public void setPrimaryPaymentMethod(final Boolean primaryPaymentMethod) { this.primaryPaymentMethod = primaryPaymentMethod; } + /** Roku's CIB if billing through Roku */ + public String getRokuBillingAgreementId() { + return this.rokuBillingAgreementId; + } + + /** @param rokuBillingAgreementId Roku's CIB if billing through Roku */ + public void setRokuBillingAgreementId(final String rokuBillingAgreementId) { + this.rokuBillingAgreementId = rokuBillingAgreementId; + } + /** The bank's rounting number. (ACH only) */ public String getRoutingNumber() { return this.routingNumber; diff --git a/src/main/java/com/recurly/v3/requests/GatewayAttributes.java b/src/main/java/com/recurly/v3/requests/GatewayAttributes.java index 9546300..6df378b 100644 --- a/src/main/java/com/recurly/v3/requests/GatewayAttributes.java +++ b/src/main/java/com/recurly/v3/requests/GatewayAttributes.java @@ -13,25 +13,28 @@ public class GatewayAttributes extends Request { /** - * Used by Adyen gateways. The Shopper Reference value used when the external token was created. - * Must be used in conjunction with gateway_token and gateway_code. + * Used by Adyen and Braintree gateways. For Adyen The Shopper Reference value used when the + * external token was created. Must be used in conjunction with gateway_token and gateway_code. + * For Braintree the PayPal PayerID is populated in the response. */ @SerializedName("account_reference") @Expose private String accountReference; /** - * Used by Adyen gateways. The Shopper Reference value used when the external token was created. - * Must be used in conjunction with gateway_token and gateway_code. + * Used by Adyen and Braintree gateways. For Adyen The Shopper Reference value used when the + * external token was created. Must be used in conjunction with gateway_token and gateway_code. + * For Braintree the PayPal PayerID is populated in the response. */ public String getAccountReference() { return this.accountReference; } /** - * @param accountReference Used by Adyen gateways. The Shopper Reference value used when the - * external token was created. Must be used in conjunction with gateway_token and - * gateway_code. + * @param accountReference Used by Adyen and Braintree gateways. For Adyen The Shopper Reference + * value used when the external token was created. Must be used in conjunction with + * gateway_token and gateway_code. For Braintree the PayPal PayerID is populated in the + * response. */ public void setAccountReference(final String accountReference) { this.accountReference = accountReference; diff --git a/src/main/java/com/recurly/v3/requests/InvoiceAddress.java b/src/main/java/com/recurly/v3/requests/InvoiceAddress.java index fe3edce..af469b8 100644 --- a/src/main/java/com/recurly/v3/requests/InvoiceAddress.java +++ b/src/main/java/com/recurly/v3/requests/InvoiceAddress.java @@ -32,6 +32,14 @@ public class InvoiceAddress extends Request { @Expose private String firstName; + /** + * Code that represents a geographic entity (location or object). Only returned for Sling Vertex + * Integration + */ + @SerializedName("geo_code") + @Expose + private String geoCode; + /** Last name */ @SerializedName("last_name") @Expose @@ -107,6 +115,22 @@ public void setFirstName(final String firstName) { this.firstName = firstName; } + /** + * Code that represents a geographic entity (location or object). Only returned for Sling Vertex + * Integration + */ + public String getGeoCode() { + return this.geoCode; + } + + /** + * @param geoCode Code that represents a geographic entity (location or object). Only returned for + * Sling Vertex Integration + */ + public void setGeoCode(final String geoCode) { + this.geoCode = geoCode; + } + /** Last name */ public String getLastName() { return this.lastName; diff --git a/src/main/java/com/recurly/v3/requests/ShippingAddressCreate.java b/src/main/java/com/recurly/v3/requests/ShippingAddressCreate.java index db09335..9542cd9 100644 --- a/src/main/java/com/recurly/v3/requests/ShippingAddressCreate.java +++ b/src/main/java/com/recurly/v3/requests/ShippingAddressCreate.java @@ -33,6 +33,14 @@ public class ShippingAddressCreate extends Request { @Expose private String firstName; + /** + * Code that represents a geographic entity (location or object). Only returned for Sling Vertex + * Integration + */ + @SerializedName("geo_code") + @Expose + private String geoCode; + @SerializedName("last_name") @Expose private String lastName; @@ -113,6 +121,22 @@ public void setFirstName(final String firstName) { this.firstName = firstName; } + /** + * Code that represents a geographic entity (location or object). Only returned for Sling Vertex + * Integration + */ + public String getGeoCode() { + return this.geoCode; + } + + /** + * @param geoCode Code that represents a geographic entity (location or object). Only returned for + * Sling Vertex Integration + */ + public void setGeoCode(final String geoCode) { + this.geoCode = geoCode; + } + public String getLastName() { return this.lastName; } diff --git a/src/main/java/com/recurly/v3/requests/ShippingAddressUpdate.java b/src/main/java/com/recurly/v3/requests/ShippingAddressUpdate.java index af54f2e..8e58ada 100644 --- a/src/main/java/com/recurly/v3/requests/ShippingAddressUpdate.java +++ b/src/main/java/com/recurly/v3/requests/ShippingAddressUpdate.java @@ -33,6 +33,14 @@ public class ShippingAddressUpdate extends Request { @Expose private String firstName; + /** + * Code that represents a geographic entity (location or object). Only returned for Sling Vertex + * Integration + */ + @SerializedName("geo_code") + @Expose + private String geoCode; + /** Shipping Address ID */ @SerializedName("id") @Expose @@ -118,6 +126,22 @@ public void setFirstName(final String firstName) { this.firstName = firstName; } + /** + * Code that represents a geographic entity (location or object). Only returned for Sling Vertex + * Integration + */ + public String getGeoCode() { + return this.geoCode; + } + + /** + * @param geoCode Code that represents a geographic entity (location or object). Only returned for + * Sling Vertex Integration + */ + public void setGeoCode(final String geoCode) { + this.geoCode = geoCode; + } + /** Shipping Address ID */ public String getId() { return this.id; diff --git a/src/main/java/com/recurly/v3/resources/Address.java b/src/main/java/com/recurly/v3/resources/Address.java index 13c17a1..5af2b5a 100644 --- a/src/main/java/com/recurly/v3/resources/Address.java +++ b/src/main/java/com/recurly/v3/resources/Address.java @@ -26,6 +26,14 @@ public class Address extends Resource { @Expose private String firstName; + /** + * Code that represents a geographic entity (location or object). Only returned for Sling Vertex + * Integration + */ + @SerializedName("geo_code") + @Expose + private String geoCode; + /** Last name */ @SerializedName("last_name") @Expose @@ -86,6 +94,22 @@ public void setFirstName(final String firstName) { this.firstName = firstName; } + /** + * Code that represents a geographic entity (location or object). Only returned for Sling Vertex + * Integration + */ + public String getGeoCode() { + return this.geoCode; + } + + /** + * @param geoCode Code that represents a geographic entity (location or object). Only returned for + * Sling Vertex Integration + */ + public void setGeoCode(final String geoCode) { + this.geoCode = geoCode; + } + /** Last name */ public String getLastName() { return this.lastName; diff --git a/src/main/java/com/recurly/v3/resources/GatewayAttributes.java b/src/main/java/com/recurly/v3/resources/GatewayAttributes.java index b8ada1d..0dd83d2 100644 --- a/src/main/java/com/recurly/v3/resources/GatewayAttributes.java +++ b/src/main/java/com/recurly/v3/resources/GatewayAttributes.java @@ -12,22 +12,25 @@ public class GatewayAttributes extends Resource { /** - * Used by Adyen gateways. The Shopper Reference value used when the external token was created. + * Used by Adyen and Braintree gateways. For Adyen the Shopper Reference value used when the + * external token was created. For Braintree the PayPal PayerID is populated in the response. */ @SerializedName("account_reference") @Expose private String accountReference; /** - * Used by Adyen gateways. The Shopper Reference value used when the external token was created. + * Used by Adyen and Braintree gateways. For Adyen the Shopper Reference value used when the + * external token was created. For Braintree the PayPal PayerID is populated in the response. */ public String getAccountReference() { return this.accountReference; } /** - * @param accountReference Used by Adyen gateways. The Shopper Reference value used when the - * external token was created. + * @param accountReference Used by Adyen and Braintree gateways. For Adyen the Shopper Reference + * value used when the external token was created. For Braintree the PayPal PayerID is + * populated in the response. */ public void setAccountReference(final String accountReference) { this.accountReference = accountReference; diff --git a/src/main/java/com/recurly/v3/resources/InvoiceAddress.java b/src/main/java/com/recurly/v3/resources/InvoiceAddress.java index 8ce5d96..716202d 100644 --- a/src/main/java/com/recurly/v3/resources/InvoiceAddress.java +++ b/src/main/java/com/recurly/v3/resources/InvoiceAddress.java @@ -31,6 +31,14 @@ public class InvoiceAddress extends Resource { @Expose private String firstName; + /** + * Code that represents a geographic entity (location or object). Only returned for Sling Vertex + * Integration + */ + @SerializedName("geo_code") + @Expose + private String geoCode; + /** Last name */ @SerializedName("last_name") @Expose @@ -106,6 +114,22 @@ public void setFirstName(final String firstName) { this.firstName = firstName; } + /** + * Code that represents a geographic entity (location or object). Only returned for Sling Vertex + * Integration + */ + public String getGeoCode() { + return this.geoCode; + } + + /** + * @param geoCode Code that represents a geographic entity (location or object). Only returned for + * Sling Vertex Integration + */ + public void setGeoCode(final String geoCode) { + this.geoCode = geoCode; + } + /** Last name */ public String getLastName() { return this.lastName; diff --git a/src/main/java/com/recurly/v3/resources/PaymentMethod.java b/src/main/java/com/recurly/v3/resources/PaymentMethod.java index ec391ae..be1112d 100644 --- a/src/main/java/com/recurly/v3/resources/PaymentMethod.java +++ b/src/main/java/com/recurly/v3/resources/PaymentMethod.java @@ -21,6 +21,14 @@ public class PaymentMethod extends Resource { @Expose private String billingAgreementId; + /** + * Represents the card network preference associated with the billing info for dual badged cards. + * Must be a supported card network. + */ + @SerializedName("card_network_preference") + @Expose + private String cardNetworkPreference; + /** Visa, MasterCard, American Express, Discover, JCB, etc. */ @SerializedName("card_type") @Expose @@ -117,6 +125,22 @@ public void setBillingAgreementId(final String billingAgreementId) { this.billingAgreementId = billingAgreementId; } + /** + * Represents the card network preference associated with the billing info for dual badged cards. + * Must be a supported card network. + */ + public String getCardNetworkPreference() { + return this.cardNetworkPreference; + } + + /** + * @param cardNetworkPreference Represents the card network preference associated with the billing + * info for dual badged cards. Must be a supported card network. + */ + public void setCardNetworkPreference(final String cardNetworkPreference) { + this.cardNetworkPreference = cardNetworkPreference; + } + /** Visa, MasterCard, American Express, Discover, JCB, etc. */ public String getCardType() { return this.cardType; diff --git a/src/main/java/com/recurly/v3/resources/ShippingAddress.java b/src/main/java/com/recurly/v3/resources/ShippingAddress.java index fc65634..799ea1c 100644 --- a/src/main/java/com/recurly/v3/resources/ShippingAddress.java +++ b/src/main/java/com/recurly/v3/resources/ShippingAddress.java @@ -43,6 +43,14 @@ public class ShippingAddress extends Resource { @Expose private String firstName; + /** + * Code that represents a geographic entity (location or object). Only returned for Sling Vertex + * Integration + */ + @SerializedName("geo_code") + @Expose + private String geoCode; + /** Shipping Address ID */ @SerializedName("id") @Expose @@ -158,6 +166,22 @@ public void setFirstName(final String firstName) { this.firstName = firstName; } + /** + * Code that represents a geographic entity (location or object). Only returned for Sling Vertex + * Integration + */ + public String getGeoCode() { + return this.geoCode; + } + + /** + * @param geoCode Code that represents a geographic entity (location or object). Only returned for + * Sling Vertex Integration + */ + public void setGeoCode(final String geoCode) { + this.geoCode = geoCode; + } + /** Shipping Address ID */ public String getId() { return this.id; diff --git a/src/main/java/com/recurly/v3/resources/SubscriptionRampIntervalResponse.java b/src/main/java/com/recurly/v3/resources/SubscriptionRampIntervalResponse.java index 212b599..175324f 100644 --- a/src/main/java/com/recurly/v3/resources/SubscriptionRampIntervalResponse.java +++ b/src/main/java/com/recurly/v3/resources/SubscriptionRampIntervalResponse.java @@ -8,9 +8,15 @@ import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import com.recurly.v3.Resource; +import org.joda.time.DateTime; public class SubscriptionRampIntervalResponse extends Resource { + /** Date the ramp interval ends */ + @SerializedName("ending_on") + @Expose + private DateTime endingOn; + /** Represents how many billing cycles are left in a ramp interval. */ @SerializedName("remaining_billing_cycles") @Expose @@ -21,11 +27,26 @@ public class SubscriptionRampIntervalResponse extends Resource { @Expose private Integer startingBillingCycle; + /** Date the ramp interval starts */ + @SerializedName("starting_on") + @Expose + private DateTime startingOn; + /** Represents the price for the ramp interval. */ @SerializedName("unit_amount") @Expose private Integer unitAmount; + /** Date the ramp interval ends */ + public DateTime getEndingOn() { + return this.endingOn; + } + + /** @param endingOn Date the ramp interval ends */ + public void setEndingOn(final DateTime endingOn) { + this.endingOn = endingOn; + } + /** Represents how many billing cycles are left in a ramp interval. */ public Integer getRemainingBillingCycles() { return this.remainingBillingCycles; @@ -48,6 +69,16 @@ public void setStartingBillingCycle(final Integer startingBillingCycle) { this.startingBillingCycle = startingBillingCycle; } + /** Date the ramp interval starts */ + public DateTime getStartingOn() { + return this.startingOn; + } + + /** @param startingOn Date the ramp interval starts */ + public void setStartingOn(final DateTime startingOn) { + this.startingOn = startingOn; + } + /** Represents the price for the ramp interval. */ public Integer getUnitAmount() { return this.unitAmount;