diff --git a/openapi/api.yaml b/openapi/api.yaml index 60f5153..8d3bcf3 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -4462,6 +4462,51 @@ paths: accountNotes.Fetch()\n\tif e, ok := err.(*recurly.Error); ok {\n\t\tfmt.Printf(\"Failed to retrieve next page: %v\", e)\n\t\tbreak\n\t}\n\tfor i, note := range accountNotes.Data() {\n\t\tfmt.Printf(\"Account Note %3d: %s\\n\",\n\t\t\ti,\n\t\t\tnote.Id,\n\t\t)\n\t}\n}" + post: + tags: + - note + operationId: create_account_note + summary: Create an account note + parameters: + - "$ref": "#/components/parameters/account_id" + requestBody: + content: + application/json: + schema: + "$ref": "#/components/schemas/AccountNoteCreate" + required: true + responses: + '201': + description: An account note. + content: + application/json: + schema: + "$ref": "#/components/schemas/AccountNote" + '400': + description: Bad request; perhaps missing or invalid parameters. + content: + application/json: + schema: + "$ref": "#/components/schemas/Error" + '404': + description: Incorrect site or account ID. + content: + application/json: + schema: + "$ref": "#/components/schemas/Error" + '422': + description: A validation error. + content: + application/json: + schema: + "$ref": "#/components/schemas/Error" + default: + description: Unexpected error. + content: + application/json: + schema: + "$ref": "#/components/schemas/Error" + x-code-samples: [] "/accounts/{account_id}/notes/{account_note_id}": get: tags: @@ -4470,12 +4515,7 @@ paths: summary: Fetch an account note parameters: - "$ref": "#/components/parameters/account_id" - - name: account_note_id - in: path - description: Account Note ID. - required: true - schema: - type: string + - "$ref": "#/components/parameters/account_note_id" responses: '200': description: An account note. @@ -4588,6 +4628,30 @@ paths: {\n\t\tfmt.Printf(\"Resource not found: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected Recurly error: %v\", e)\n\treturn nil, err\n}\nfmt.Printf(\"Fetched Account Note: %v\", accountNote)" + delete: + tags: + - note + operationId: remove_account_note + summary: Delete an account note + parameters: + - "$ref": "#/components/parameters/account_id" + - "$ref": "#/components/parameters/account_note_id" + responses: + '204': + description: Account note deleted. + '404': + description: Incorrect site, account or note ID. + content: + application/json: + schema: + "$ref": "#/components/schemas/Error" + default: + description: Unexpected error. + content: + application/json: + schema: + "$ref": "#/components/schemas/Error" + x-code-samples: [] "/accounts/{account_id}/shipping_addresses": get: tags: @@ -16941,6 +17005,13 @@ components: required: true schema: type: string + account_note_id: + name: account_note_id + in: path + description: Account Note ID. + required: true + schema: + type: string add_on_id: name: add_on_id in: path @@ -18046,6 +18117,13 @@ components: description: The Avalara AvaTax value that can be passed to identify the customer type for tax purposes. The range of values can be A - R (more info at Avalara). Value is case-sensitive. + bill_date: + type: string + title: Bill Date + format: date-time + description: The preferred billing date for the account. This date will + be used as the billing date for when activating new subscriptions on the + account. AccountResponse: type: object properties: @@ -18152,6 +18230,13 @@ components: description: The Avalara AvaTax value that can be passed to identify the customer type for tax purposes. The range of values can be A - R (more info at Avalara). Value is case-sensitive. + bill_date: + title: Bill Date + type: string + format: date-time + description: The preferred billing date for the account. This date will + be used as the billing date for when activating new subscriptions on the + account. AccountNote: type: object required: @@ -18175,6 +18260,14 @@ components: type: string format: date-time readOnly: true + AccountNoteCreate: + type: object + required: + - message + properties: + message: + type: string + description: The content of the account note. AccountMini: type: object title: Account mini details @@ -18488,6 +18581,17 @@ components: offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. If `item_code`/`item_id` is part of the request then `tax_code` must be absent. + harmonized_system_code: + type: string + title: Harmonized System code + description: The Harmonized System (HS) code is an internationally standardized + system of names and numbers to classify traded products. The HS code, + sometimes called Commodity Code, is used by customs authorities around + the world to identify products when assessing duties and taxes. The HS + code may also be referred to as the tariff code or customs code. Values + should contain only digits and decimals. + pattern: "^\\d+(\\.\\d+)*$" + maxLength: 25 display_quantity: type: boolean title: Display quantity? @@ -18710,6 +18814,17 @@ components: offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. If `item_code`/`item_id` is part of the request then `tax_code` must be absent. + harmonized_system_code: + type: string + title: Harmonized System code + description: The Harmonized System (HS) code is an internationally standardized + system of names and numbers to classify traded products. The HS code, + sometimes called Commodity Code, is used by customs authorities around + the world to identify products when assessing duties and taxes. The HS + code may also be referred to as the tariff code or customs code. Values + should contain only digits and decimals. + pattern: "^\\d+(\\.\\d+)*$" + maxLength: 25 currencies: type: array title: Add-on pricing @@ -18865,6 +18980,17 @@ components: offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. If an `Item` is associated to the `AddOn` then `tax_code` must be absent. + harmonized_system_code: + type: string + title: Harmonized System code + description: The Harmonized System (HS) code is an internationally standardized + system of names and numbers to classify traded products. The HS code, + sometimes called Commodity Code, is used by customs authorities around + the world to identify products when assessing duties and taxes. The HS + code may also be referred to as the tariff code or customs code. Values + should contain only digits and decimals. + pattern: "^\\d+(\\.\\d+)*$" + maxLength: 25 display_quantity: type: boolean title: Display quantity? @@ -20207,6 +20333,17 @@ components: codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. + harmonized_system_code: + type: string + title: Harmonized System code + description: The Harmonized System (HS) code is an internationally standardized + system of names and numbers to classify traded products. The HS code, + sometimes called Commodity Code, is used by customs authorities around + the world to identify products when assessing duties and taxes. The HS + code may also be referred to as the tariff code or customs code. Values + should contain only digits and decimals. + pattern: "^\\d+(\\.\\d+)*$" + maxLength: 25 tax_exempt: type: boolean title: Tax exempt? @@ -20317,6 +20454,17 @@ components: codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. + harmonized_system_code: + type: string + title: Harmonized System code + description: The Harmonized System (HS) code is an internationally standardized + system of names and numbers to classify traded products. The HS code, + sometimes called Commodity Code, is used by customs authorities around + the world to identify products when assessing duties and taxes. The HS + code may also be referred to as the tariff code or customs code. Values + should contain only digits and decimals. + pattern: "^\\d+(\\.\\d+)*$" + maxLength: 25 tax_exempt: type: boolean title: Tax exempt? @@ -20415,6 +20563,17 @@ components: codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. + harmonized_system_code: + type: string + title: Harmonized System Code + description: The Harmonized System (HS) code is an internationally standardized + system of names and numbers to classify traded products. The HS code, + sometimes called Commodity Code, is used by customs authorities around + the world to identify products when assessing duties and taxes. The HS + code may also be referred to as the tariff code or customs code. Values + should contain only digits and decimals. + pattern: "^\\d+(\\.\\d+)*$" + maxLength: 25 tax_exempt: type: boolean title: Tax exempt? @@ -21310,6 +21469,17 @@ components: codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. + harmonized_system_code: + type: string + title: Harmonized System Code + description: The Harmonized System (HS) code is an internationally standardized + system of names and numbers to classify traded products. The HS code, + sometimes called Commodity Code, is used by customs authorities around + the world to identify products when assessing duties and taxes. The HS + code may also be referred to as the tariff code or customs code. Values + should contain only digits and decimals. + maxLength: 25 + pattern: "^\\d+(\\.\\d+)*$" tax_info: "$ref": "#/components/schemas/TaxInfo" origin_tax_address_source: @@ -21554,6 +21724,18 @@ components: codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. + harmonized_system_code: + type: string + title: Harmonized System Code + description: The Harmonized System (HS) code is an internationally standardized + system of names and numbers to classify traded products. The HS code, + sometimes called Commodity Code, is used by customs authorities around + the world to identify products when assessing duties and taxes. The HS + code may also be referred to as the tariff code or customs code. Values + should contain only digits and decimals. If `item_code`/`item_id` is part + of the request then `harmonized_system_code` must be absent. + maxLength: 25 + pattern: "^\\d+(\\.\\d+)*$" product_code: type: string title: Product code @@ -21749,6 +21931,17 @@ components: codes using any of these tax integrations. For Recurly's In-the-Box tax offering you can also choose to instead use simple values of `unknown`, `physical`, or `digital` tax codes. + harmonized_system_code: + type: string + title: Harmonized System Code + description: The Harmonized System (HS) code is an internationally standardized + system of names and numbers to classify traded products. The HS code, + sometimes called Commodity Code, is used by customs authorities around + the world to identify products when assessing duties and taxes. The HS + code may also be referred to as the tariff code or customs code. Values + should contain only digits and decimals. + maxLength: 25 + pattern: "^\\d+(\\.\\d+)*$" tax_exempt: type: boolean title: Tax exempt? @@ -22182,6 +22375,22 @@ components: - full_amount - prorated_amount - none + SubscriptionCreateProrationSettings: + type: object + title: Proration Settings + description: Allows you to control how any resulting charges will be calculated + and prorated. + properties: + charge: + "$ref": "#/components/schemas/SubscriptionCreateProrationSettingsChargeEnum" + SubscriptionCreateProrationSettingsChargeEnum: + type: string + title: Charge + description: Determines how the amount charged is determined for this change + default: prorated_amount + enum: + - full_amount + - prorated_amount Settings: type: object properties: @@ -23787,6 +23996,8 @@ components: second limit on creating subscriptions. Should only be used when creating subscriptions in bulk from the API. default: false + proration_settings: + "$ref": "#/components/schemas/SubscriptionCreateProrationSettings" required: - plan_code - currency @@ -23898,6 +24109,8 @@ components: second limit on creating subscriptions. Should only be used when creating subscriptions in bulk from the API. default: false + proration_settings: + "$ref": "#/components/schemas/SubscriptionCreateProrationSettings" required: - plan_code SubscriptionUpdate: diff --git a/src/main/java/com/recurly/v3/Client.java b/src/main/java/com/recurly/v3/Client.java index a4af080..9f27667 100644 --- a/src/main/java/com/recurly/v3/Client.java +++ b/src/main/java/com/recurly/v3/Client.java @@ -764,6 +764,23 @@ public Pager listAccountNotes(String accountId, QueryParams queryPa return new Pager<>(path, paramsMap, this, parameterizedType); } + /** + * Create an account note + * + * @see create_account_note api documentation + * @param accountId Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`. + * @param body The body of the request. + * @return An account note. + */ + public AccountNote createAccountNote(String accountId, AccountNoteCreate body) { + final String url = "/accounts/{account_id}/notes"; + final HashMap urlParams = new HashMap(); + urlParams.put("account_id", accountId); + final String path = this.interpolatePath(url, urlParams); + Type returnType = AccountNote.class; + return this.makeRequest("POST", path, body, returnType); + } + /** * Fetch an account note * @@ -782,6 +799,22 @@ public AccountNote getAccountNote(String accountId, String accountNoteId) { return this.makeRequest("GET", path, returnType); } + /** + * Delete an account note + * + * @see remove_account_note api documentation + * @param accountId Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`. + * @param accountNoteId Account Note ID. + */ + public void removeAccountNote(String accountId, String accountNoteId) { + final String url = "/accounts/{account_id}/notes/{account_note_id}"; + final HashMap urlParams = new HashMap(); + urlParams.put("account_id", accountId); + urlParams.put("account_note_id", accountNoteId); + final String path = this.interpolatePath(url, urlParams); + this.makeRequest("DELETE", path); + } + /** * Fetch a list of an account's shipping addresses * diff --git a/src/main/java/com/recurly/v3/Constants.java b/src/main/java/com/recurly/v3/Constants.java index 78cc3a5..50a4334 100644 --- a/src/main/java/com/recurly/v3/Constants.java +++ b/src/main/java/com/recurly/v3/Constants.java @@ -38,6 +38,17 @@ public enum ProrationSettingsCredit { }; + public enum SubscriptionCreateProrationSettingsCharge { + UNDEFINED, + + @SerializedName("full_amount") + FULL_AMOUNT, + + @SerializedName("prorated_amount") + PRORATED_AMOUNT, + + }; + public enum RelatedType { UNDEFINED, diff --git a/src/main/java/com/recurly/v3/requests/AccountCreate.java b/src/main/java/com/recurly/v3/requests/AccountCreate.java index 0333b94..032c281 100644 --- a/src/main/java/com/recurly/v3/requests/AccountCreate.java +++ b/src/main/java/com/recurly/v3/requests/AccountCreate.java @@ -11,6 +11,7 @@ import com.recurly.v3.Request; import com.recurly.v3.resources.*; import java.util.List; +import org.joda.time.DateTime; public class AccountCreate extends Request { @@ -22,6 +23,14 @@ public class AccountCreate extends Request { @Expose private Address address; + /** + * The preferred billing date for the account. This date will be used as the billing date for when + * activating new subscriptions on the account. + */ + @SerializedName("bill_date") + @Expose + private DateTime billDate; + /** * An enumerable describing the billing behavior of the account, specifically whether the account * is self-paying or will rely on the parent account to pay. @@ -215,6 +224,22 @@ public void setAddress(final Address address) { this.address = address; } + /** + * The preferred billing date for the account. This date will be used as the billing date for when + * activating new subscriptions on the account. + */ + public DateTime getBillDate() { + return this.billDate; + } + + /** + * @param billDate The preferred billing date for the account. This date will be used as the + * billing date for when activating new subscriptions on the account. + */ + public void setBillDate(final DateTime billDate) { + this.billDate = billDate; + } + /** * An enumerable describing the billing behavior of the account, specifically whether the account * is self-paying or will rely on the parent account to pay. diff --git a/src/main/java/com/recurly/v3/requests/AccountNoteCreate.java b/src/main/java/com/recurly/v3/requests/AccountNoteCreate.java new file mode 100644 index 0000000..be46b69 --- /dev/null +++ b/src/main/java/com/recurly/v3/requests/AccountNoteCreate.java @@ -0,0 +1,29 @@ +/** + * This file is automatically created by Recurly's OpenAPI generation process and thus any edits you + * make by hand will be lost. If you wish to make a change to this file, please create a Github + * issue explaining the changes you need and we will usher them to the appropriate places. + */ +package com.recurly.v3.requests; + +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import com.recurly.v3.Request; +import com.recurly.v3.resources.*; + +public class AccountNoteCreate extends Request { + + /** The content of the account note. */ + @SerializedName("message") + @Expose + private String message; + + /** The content of the account note. */ + public String getMessage() { + return this.message; + } + + /** @param message The content of the account note. */ + public void setMessage(final String message) { + this.message = message; + } +} diff --git a/src/main/java/com/recurly/v3/requests/AccountPurchase.java b/src/main/java/com/recurly/v3/requests/AccountPurchase.java index 2113bbd..680dcca 100644 --- a/src/main/java/com/recurly/v3/requests/AccountPurchase.java +++ b/src/main/java/com/recurly/v3/requests/AccountPurchase.java @@ -11,6 +11,7 @@ import com.recurly.v3.Request; import com.recurly.v3.resources.*; import java.util.List; +import org.joda.time.DateTime; public class AccountPurchase extends Request { @@ -22,6 +23,14 @@ public class AccountPurchase extends Request { @Expose private Address address; + /** + * The preferred billing date for the account. This date will be used as the billing date for when + * activating new subscriptions on the account. + */ + @SerializedName("bill_date") + @Expose + private DateTime billDate; + /** * An enumerable describing the billing behavior of the account, specifically whether the account * is self-paying or will rely on the parent account to pay. @@ -214,6 +223,22 @@ public void setAddress(final Address address) { this.address = address; } + /** + * The preferred billing date for the account. This date will be used as the billing date for when + * activating new subscriptions on the account. + */ + public DateTime getBillDate() { + return this.billDate; + } + + /** + * @param billDate The preferred billing date for the account. This date will be used as the + * billing date for when activating new subscriptions on the account. + */ + public void setBillDate(final DateTime billDate) { + this.billDate = billDate; + } + /** * An enumerable describing the billing behavior of the account, specifically whether the account * is self-paying or will rely on the parent account to pay. diff --git a/src/main/java/com/recurly/v3/requests/AccountUpdate.java b/src/main/java/com/recurly/v3/requests/AccountUpdate.java index fde132d..3b6640d 100644 --- a/src/main/java/com/recurly/v3/requests/AccountUpdate.java +++ b/src/main/java/com/recurly/v3/requests/AccountUpdate.java @@ -11,6 +11,7 @@ import com.recurly.v3.Request; import com.recurly.v3.resources.*; import java.util.List; +import org.joda.time.DateTime; public class AccountUpdate extends Request { @@ -18,6 +19,14 @@ public class AccountUpdate extends Request { @Expose private Address address; + /** + * The preferred billing date for the account. This date will be used as the billing date for when + * activating new subscriptions on the account. + */ + @SerializedName("bill_date") + @Expose + private DateTime billDate; + /** * An enumerable describing the billing behavior of the account, specifically whether the account * is self-paying or will rely on the parent account to pay. @@ -188,6 +197,22 @@ public void setAddress(final Address address) { this.address = address; } + /** + * The preferred billing date for the account. This date will be used as the billing date for when + * activating new subscriptions on the account. + */ + public DateTime getBillDate() { + return this.billDate; + } + + /** + * @param billDate The preferred billing date for the account. This date will be used as the + * billing date for when activating new subscriptions on the account. + */ + public void setBillDate(final DateTime billDate) { + this.billDate = billDate; + } + /** * An enumerable describing the billing behavior of the account, specifically whether the account * is self-paying or will rely on the parent account to pay. diff --git a/src/main/java/com/recurly/v3/requests/AddOnCreate.java b/src/main/java/com/recurly/v3/requests/AddOnCreate.java index 869326a..035d660 100644 --- a/src/main/java/com/recurly/v3/requests/AddOnCreate.java +++ b/src/main/java/com/recurly/v3/requests/AddOnCreate.java @@ -80,6 +80,17 @@ public class AddOnCreate extends Request { @Expose private Boolean displayQuantity; + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + @SerializedName("harmonized_system_code") + @Expose + private String harmonizedSystemCode; + /** * Unique code to identify an item. Available when the `Credit Invoices` feature is enabled. If * `item_id` and `item_code` are both present, `item_id` will be used. @@ -381,6 +392,28 @@ public void setDisplayQuantity(final Boolean displayQuantity) { this.displayQuantity = displayQuantity; } + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + public String getHarmonizedSystemCode() { + return this.harmonizedSystemCode; + } + + /** + * @param harmonizedSystemCode The Harmonized System (HS) code is an internationally standardized + * system of names and numbers to classify traded products. The HS code, sometimes called + * Commodity Code, is used by customs authorities around the world to identify products when + * assessing duties and taxes. The HS code may also be referred to as the tariff code or + * customs code. Values should contain only digits and decimals. + */ + public void setHarmonizedSystemCode(final String harmonizedSystemCode) { + this.harmonizedSystemCode = harmonizedSystemCode; + } + /** * Unique code to identify an item. Available when the `Credit Invoices` feature is enabled. If * `item_id` and `item_code` are both present, `item_id` will be used. diff --git a/src/main/java/com/recurly/v3/requests/AddOnUpdate.java b/src/main/java/com/recurly/v3/requests/AddOnUpdate.java index 712c1f6..ce4c848 100644 --- a/src/main/java/com/recurly/v3/requests/AddOnUpdate.java +++ b/src/main/java/com/recurly/v3/requests/AddOnUpdate.java @@ -71,6 +71,17 @@ public class AddOnUpdate extends Request { @Expose private Boolean displayQuantity; + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + @SerializedName("harmonized_system_code") + @Expose + private String harmonizedSystemCode; + /** Add-on ID */ @SerializedName("id") @Expose @@ -311,6 +322,28 @@ public void setDisplayQuantity(final Boolean displayQuantity) { this.displayQuantity = displayQuantity; } + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + public String getHarmonizedSystemCode() { + return this.harmonizedSystemCode; + } + + /** + * @param harmonizedSystemCode The Harmonized System (HS) code is an internationally standardized + * system of names and numbers to classify traded products. The HS code, sometimes called + * Commodity Code, is used by customs authorities around the world to identify products when + * assessing duties and taxes. The HS code may also be referred to as the tariff code or + * customs code. Values should contain only digits and decimals. + */ + public void setHarmonizedSystemCode(final String harmonizedSystemCode) { + this.harmonizedSystemCode = harmonizedSystemCode; + } + /** Add-on ID */ public String getId() { return this.id; diff --git a/src/main/java/com/recurly/v3/requests/ItemCreate.java b/src/main/java/com/recurly/v3/requests/ItemCreate.java index 1e69051..16d671d 100644 --- a/src/main/java/com/recurly/v3/requests/ItemCreate.java +++ b/src/main/java/com/recurly/v3/requests/ItemCreate.java @@ -68,6 +68,17 @@ public class ItemCreate extends Request { @Expose private String externalSku; + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + @SerializedName("harmonized_system_code") + @Expose + private String harmonizedSystemCode; + /** * The ID of a general ledger account. General ledger accounts are only accessible as a part of * the Recurly RevRec Standard and Recurly RevRec Advanced features. @@ -230,6 +241,28 @@ public void setExternalSku(final String externalSku) { this.externalSku = externalSku; } + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + public String getHarmonizedSystemCode() { + return this.harmonizedSystemCode; + } + + /** + * @param harmonizedSystemCode The Harmonized System (HS) code is an internationally standardized + * system of names and numbers to classify traded products. The HS code, sometimes called + * Commodity Code, is used by customs authorities around the world to identify products when + * assessing duties and taxes. The HS code may also be referred to as the tariff code or + * customs code. Values should contain only digits and decimals. + */ + public void setHarmonizedSystemCode(final String harmonizedSystemCode) { + this.harmonizedSystemCode = harmonizedSystemCode; + } + /** * The ID of a general ledger account. General ledger accounts are only accessible as a part of * the Recurly RevRec Standard and Recurly RevRec Advanced features. diff --git a/src/main/java/com/recurly/v3/requests/ItemUpdate.java b/src/main/java/com/recurly/v3/requests/ItemUpdate.java index 971fa2d..6a6ed7f 100644 --- a/src/main/java/com/recurly/v3/requests/ItemUpdate.java +++ b/src/main/java/com/recurly/v3/requests/ItemUpdate.java @@ -68,6 +68,17 @@ public class ItemUpdate extends Request { @Expose private String externalSku; + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + @SerializedName("harmonized_system_code") + @Expose + private String harmonizedSystemCode; + /** * The ID of a general ledger account. General ledger accounts are only accessible as a part of * the Recurly RevRec Standard and Recurly RevRec Advanced features. @@ -230,6 +241,28 @@ public void setExternalSku(final String externalSku) { this.externalSku = externalSku; } + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + public String getHarmonizedSystemCode() { + return this.harmonizedSystemCode; + } + + /** + * @param harmonizedSystemCode The Harmonized System (HS) code is an internationally standardized + * system of names and numbers to classify traded products. The HS code, sometimes called + * Commodity Code, is used by customs authorities around the world to identify products when + * assessing duties and taxes. The HS code may also be referred to as the tariff code or + * customs code. Values should contain only digits and decimals. + */ + public void setHarmonizedSystemCode(final String harmonizedSystemCode) { + this.harmonizedSystemCode = harmonizedSystemCode; + } + /** * The ID of a general ledger account. General ledger accounts are only accessible as a part of * the Recurly RevRec Standard and Recurly RevRec Advanced features. diff --git a/src/main/java/com/recurly/v3/requests/LineItemCreate.java b/src/main/java/com/recurly/v3/requests/LineItemCreate.java index 98f62cd..3fad724 100644 --- a/src/main/java/com/recurly/v3/requests/LineItemCreate.java +++ b/src/main/java/com/recurly/v3/requests/LineItemCreate.java @@ -96,6 +96,18 @@ public class LineItemCreate extends Request { @Expose private DateTime endDate; + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. If `item_code`/`item_id` is part of the request then `harmonized_system_code` + * must be absent. + */ + @SerializedName("harmonized_system_code") + @Expose + private String harmonizedSystemCode; + /** Unique code to identify an item. Available when the Credit Invoices feature is enabled. */ @SerializedName("item_code") @Expose @@ -393,6 +405,30 @@ public void setEndDate(final DateTime endDate) { this.endDate = endDate; } + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. If `item_code`/`item_id` is part of the request then `harmonized_system_code` + * must be absent. + */ + public String getHarmonizedSystemCode() { + return this.harmonizedSystemCode; + } + + /** + * @param harmonizedSystemCode The Harmonized System (HS) code is an internationally standardized + * system of names and numbers to classify traded products. The HS code, sometimes called + * Commodity Code, is used by customs authorities around the world to identify products when + * assessing duties and taxes. The HS code may also be referred to as the tariff code or + * customs code. Values should contain only digits and decimals. If `item_code`/`item_id` is + * part of the request then `harmonized_system_code` must be absent. + */ + public void setHarmonizedSystemCode(final String harmonizedSystemCode) { + this.harmonizedSystemCode = harmonizedSystemCode; + } + /** Unique code to identify an item. Available when the Credit Invoices feature is enabled. */ public String getItemCode() { return this.itemCode; diff --git a/src/main/java/com/recurly/v3/requests/PlanCreate.java b/src/main/java/com/recurly/v3/requests/PlanCreate.java index 6c9ba29..41a4497 100644 --- a/src/main/java/com/recurly/v3/requests/PlanCreate.java +++ b/src/main/java/com/recurly/v3/requests/PlanCreate.java @@ -102,6 +102,17 @@ public class PlanCreate extends Request { @Expose private String dunningCampaignId; + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + @SerializedName("harmonized_system_code") + @Expose + private String harmonizedSystemCode; + /** Hosted pages settings */ @SerializedName("hosted_pages") @Expose @@ -433,6 +444,28 @@ public void setDunningCampaignId(final String dunningCampaignId) { this.dunningCampaignId = dunningCampaignId; } + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + public String getHarmonizedSystemCode() { + return this.harmonizedSystemCode; + } + + /** + * @param harmonizedSystemCode The Harmonized System (HS) code is an internationally standardized + * system of names and numbers to classify traded products. The HS code, sometimes called + * Commodity Code, is used by customs authorities around the world to identify products when + * assessing duties and taxes. The HS code may also be referred to as the tariff code or + * customs code. Values should contain only digits and decimals. + */ + public void setHarmonizedSystemCode(final String harmonizedSystemCode) { + this.harmonizedSystemCode = harmonizedSystemCode; + } + /** Hosted pages settings */ public PlanHostedPages getHostedPages() { return this.hostedPages; diff --git a/src/main/java/com/recurly/v3/requests/PlanUpdate.java b/src/main/java/com/recurly/v3/requests/PlanUpdate.java index e3818e8..edbd58a 100644 --- a/src/main/java/com/recurly/v3/requests/PlanUpdate.java +++ b/src/main/java/com/recurly/v3/requests/PlanUpdate.java @@ -97,6 +97,17 @@ public class PlanUpdate extends Request { @Expose private String dunningCampaignId; + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + @SerializedName("harmonized_system_code") + @Expose + private String harmonizedSystemCode; + /** Hosted pages settings */ @SerializedName("hosted_pages") @Expose @@ -404,6 +415,28 @@ public void setDunningCampaignId(final String dunningCampaignId) { this.dunningCampaignId = dunningCampaignId; } + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + public String getHarmonizedSystemCode() { + return this.harmonizedSystemCode; + } + + /** + * @param harmonizedSystemCode The Harmonized System (HS) code is an internationally standardized + * system of names and numbers to classify traded products. The HS code, sometimes called + * Commodity Code, is used by customs authorities around the world to identify products when + * assessing duties and taxes. The HS code may also be referred to as the tariff code or + * customs code. Values should contain only digits and decimals. + */ + public void setHarmonizedSystemCode(final String harmonizedSystemCode) { + this.harmonizedSystemCode = harmonizedSystemCode; + } + /** Hosted pages settings */ public PlanHostedPages getHostedPages() { return this.hostedPages; diff --git a/src/main/java/com/recurly/v3/requests/SubscriptionCreate.java b/src/main/java/com/recurly/v3/requests/SubscriptionCreate.java index d7823aa..43b2b39 100644 --- a/src/main/java/com/recurly/v3/requests/SubscriptionCreate.java +++ b/src/main/java/com/recurly/v3/requests/SubscriptionCreate.java @@ -195,6 +195,11 @@ public class SubscriptionCreate extends Request { @Expose private String priceSegmentId; + /** Allows you to control how any resulting charges will be calculated and prorated. */ + @SerializedName("proration_settings") + @Expose + private SubscriptionCreateProrationSettings prorationSettings; + /** Optionally override the default quantity of 1. */ @SerializedName("quantity") @Expose @@ -656,6 +661,19 @@ public void setPriceSegmentId(final String priceSegmentId) { this.priceSegmentId = priceSegmentId; } + /** Allows you to control how any resulting charges will be calculated and prorated. */ + public SubscriptionCreateProrationSettings getProrationSettings() { + return this.prorationSettings; + } + + /** + * @param prorationSettings Allows you to control how any resulting charges will be calculated and + * prorated. + */ + public void setProrationSettings(final SubscriptionCreateProrationSettings prorationSettings) { + this.prorationSettings = prorationSettings; + } + /** Optionally override the default quantity of 1. */ public Integer getQuantity() { return this.quantity; diff --git a/src/main/java/com/recurly/v3/requests/SubscriptionCreateProrationSettings.java b/src/main/java/com/recurly/v3/requests/SubscriptionCreateProrationSettings.java new file mode 100644 index 0000000..082e3fb --- /dev/null +++ b/src/main/java/com/recurly/v3/requests/SubscriptionCreateProrationSettings.java @@ -0,0 +1,30 @@ +/** + * This file is automatically created by Recurly's OpenAPI generation process and thus any edits you + * make by hand will be lost. If you wish to make a change to this file, please create a Github + * issue explaining the changes you need and we will usher them to the appropriate places. + */ +package com.recurly.v3.requests; + +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import com.recurly.v3.Constants; +import com.recurly.v3.Request; +import com.recurly.v3.resources.*; + +public class SubscriptionCreateProrationSettings extends Request { + + /** Determines how the amount charged is determined for this change */ + @SerializedName("charge") + @Expose + private Constants.SubscriptionCreateProrationSettingsCharge charge; + + /** Determines how the amount charged is determined for this change */ + public Constants.SubscriptionCreateProrationSettingsCharge getCharge() { + return this.charge; + } + + /** @param charge Determines how the amount charged is determined for this change */ + public void setCharge(final Constants.SubscriptionCreateProrationSettingsCharge charge) { + this.charge = charge; + } +} diff --git a/src/main/java/com/recurly/v3/requests/SubscriptionPurchase.java b/src/main/java/com/recurly/v3/requests/SubscriptionPurchase.java index 1e26e89..5b04e52 100644 --- a/src/main/java/com/recurly/v3/requests/SubscriptionPurchase.java +++ b/src/main/java/com/recurly/v3/requests/SubscriptionPurchase.java @@ -73,6 +73,11 @@ public class SubscriptionPurchase extends Request { @Expose private String priceSegmentId; + /** Allows you to control how any resulting charges will be calculated and prorated. */ + @SerializedName("proration_settings") + @Expose + private SubscriptionCreateProrationSettings prorationSettings; + /** Optionally override the default quantity of 1. */ @SerializedName("quantity") @Expose @@ -261,6 +266,19 @@ public void setPriceSegmentId(final String priceSegmentId) { this.priceSegmentId = priceSegmentId; } + /** Allows you to control how any resulting charges will be calculated and prorated. */ + public SubscriptionCreateProrationSettings getProrationSettings() { + return this.prorationSettings; + } + + /** + * @param prorationSettings Allows you to control how any resulting charges will be calculated and + * prorated. + */ + public void setProrationSettings(final SubscriptionCreateProrationSettings prorationSettings) { + this.prorationSettings = prorationSettings; + } + /** Optionally override the default quantity of 1. */ public Integer getQuantity() { return this.quantity; diff --git a/src/main/java/com/recurly/v3/resources/Account.java b/src/main/java/com/recurly/v3/resources/Account.java index f51f8dd..38fc17d 100644 --- a/src/main/java/com/recurly/v3/resources/Account.java +++ b/src/main/java/com/recurly/v3/resources/Account.java @@ -18,6 +18,14 @@ public class Account extends Resource { @Expose private Address address; + /** + * The preferred billing date for the account. This date will be used as the billing date for when + * activating new subscriptions on the account. + */ + @SerializedName("bill_date") + @Expose + private DateTime billDate; + /** * An enumerable describing the billing behavior of the account, specifically whether the account * is self-paying or will rely on the parent account to pay. @@ -249,6 +257,22 @@ public void setAddress(final Address address) { this.address = address; } + /** + * The preferred billing date for the account. This date will be used as the billing date for when + * activating new subscriptions on the account. + */ + public DateTime getBillDate() { + return this.billDate; + } + + /** + * @param billDate The preferred billing date for the account. This date will be used as the + * billing date for when activating new subscriptions on the account. + */ + public void setBillDate(final DateTime billDate) { + this.billDate = billDate; + } + /** * An enumerable describing the billing behavior of the account, specifically whether the account * is self-paying or will rely on the parent account to pay. diff --git a/src/main/java/com/recurly/v3/resources/AddOn.java b/src/main/java/com/recurly/v3/resources/AddOn.java index eeeb349..58f85a1 100644 --- a/src/main/java/com/recurly/v3/resources/AddOn.java +++ b/src/main/java/com/recurly/v3/resources/AddOn.java @@ -83,6 +83,17 @@ public class AddOn extends Resource { @Expose private String externalSku; + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + @SerializedName("harmonized_system_code") + @Expose + private String harmonizedSystemCode; + /** Add-on ID */ @SerializedName("id") @Expose @@ -369,6 +380,28 @@ public void setExternalSku(final String externalSku) { this.externalSku = externalSku; } + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + public String getHarmonizedSystemCode() { + return this.harmonizedSystemCode; + } + + /** + * @param harmonizedSystemCode The Harmonized System (HS) code is an internationally standardized + * system of names and numbers to classify traded products. The HS code, sometimes called + * Commodity Code, is used by customs authorities around the world to identify products when + * assessing duties and taxes. The HS code may also be referred to as the tariff code or + * customs code. Values should contain only digits and decimals. + */ + public void setHarmonizedSystemCode(final String harmonizedSystemCode) { + this.harmonizedSystemCode = harmonizedSystemCode; + } + /** Add-on ID */ public String getId() { return this.id; diff --git a/src/main/java/com/recurly/v3/resources/Item.java b/src/main/java/com/recurly/v3/resources/Item.java index bf4902d..445707b 100644 --- a/src/main/java/com/recurly/v3/resources/Item.java +++ b/src/main/java/com/recurly/v3/resources/Item.java @@ -78,6 +78,17 @@ public class Item extends Resource { @Expose private String externalSku; + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + @SerializedName("harmonized_system_code") + @Expose + private String harmonizedSystemCode; + /** Item ID */ @SerializedName("id") @Expose @@ -280,6 +291,28 @@ public void setExternalSku(final String externalSku) { this.externalSku = externalSku; } + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + public String getHarmonizedSystemCode() { + return this.harmonizedSystemCode; + } + + /** + * @param harmonizedSystemCode The Harmonized System (HS) code is an internationally standardized + * system of names and numbers to classify traded products. The HS code, sometimes called + * Commodity Code, is used by customs authorities around the world to identify products when + * assessing duties and taxes. The HS code may also be referred to as the tariff code or + * customs code. Values should contain only digits and decimals. + */ + public void setHarmonizedSystemCode(final String harmonizedSystemCode) { + this.harmonizedSystemCode = harmonizedSystemCode; + } + /** Item ID */ public String getId() { return this.id; diff --git a/src/main/java/com/recurly/v3/resources/LineItem.java b/src/main/java/com/recurly/v3/resources/LineItem.java index a5b431a..63e9b56 100644 --- a/src/main/java/com/recurly/v3/resources/LineItem.java +++ b/src/main/java/com/recurly/v3/resources/LineItem.java @@ -134,6 +134,17 @@ public class LineItem extends Resource { @Expose private String externalSku; + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + @SerializedName("harmonized_system_code") + @Expose + private String harmonizedSystemCode; + /** Line item ID */ @SerializedName("id") @Expose @@ -654,6 +665,28 @@ public void setExternalSku(final String externalSku) { this.externalSku = externalSku; } + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + public String getHarmonizedSystemCode() { + return this.harmonizedSystemCode; + } + + /** + * @param harmonizedSystemCode The Harmonized System (HS) code is an internationally standardized + * system of names and numbers to classify traded products. The HS code, sometimes called + * Commodity Code, is used by customs authorities around the world to identify products when + * assessing duties and taxes. The HS code may also be referred to as the tariff code or + * customs code. Values should contain only digits and decimals. + */ + public void setHarmonizedSystemCode(final String harmonizedSystemCode) { + this.harmonizedSystemCode = harmonizedSystemCode; + } + /** Line item ID */ public String getId() { return this.id; diff --git a/src/main/java/com/recurly/v3/resources/Plan.java b/src/main/java/com/recurly/v3/resources/Plan.java index 53ab7b6..8d537ed 100644 --- a/src/main/java/com/recurly/v3/resources/Plan.java +++ b/src/main/java/com/recurly/v3/resources/Plan.java @@ -107,6 +107,17 @@ public class Plan extends Resource { @Expose private String dunningCampaignId; + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + @SerializedName("harmonized_system_code") + @Expose + private String harmonizedSystemCode; + /** Hosted pages settings */ @SerializedName("hosted_pages") @Expose @@ -468,6 +479,28 @@ public void setDunningCampaignId(final String dunningCampaignId) { this.dunningCampaignId = dunningCampaignId; } + /** + * The Harmonized System (HS) code is an internationally standardized system of names and numbers + * to classify traded products. The HS code, sometimes called Commodity Code, is used by customs + * authorities around the world to identify products when assessing duties and taxes. The HS code + * may also be referred to as the tariff code or customs code. Values should contain only digits + * and decimals. + */ + public String getHarmonizedSystemCode() { + return this.harmonizedSystemCode; + } + + /** + * @param harmonizedSystemCode The Harmonized System (HS) code is an internationally standardized + * system of names and numbers to classify traded products. The HS code, sometimes called + * Commodity Code, is used by customs authorities around the world to identify products when + * assessing duties and taxes. The HS code may also be referred to as the tariff code or + * customs code. Values should contain only digits and decimals. + */ + public void setHarmonizedSystemCode(final String harmonizedSystemCode) { + this.harmonizedSystemCode = harmonizedSystemCode; + } + /** Hosted pages settings */ public PlanHostedPages getHostedPages() { return this.hostedPages;