From 5eb592cae54dccaa02379224ec4ccc98d911e206 Mon Sep 17 00:00:00 2001 From: "mccormick.wooden" Date: Tue, 19 Nov 2024 15:52:09 -0600 Subject: [PATCH 1/3] update CheckEditable.amount to double --- __tests__/Model/CheckEditableTest.java | 4 +-- docs/CheckEditable.md | 36 +++++++++---------- .../java/com/lob/model/CheckEditable.java | 8 ++--- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/__tests__/Model/CheckEditableTest.java b/__tests__/Model/CheckEditableTest.java index 49d05098..3b2bb680 100755 --- a/__tests__/Model/CheckEditableTest.java +++ b/__tests__/Model/CheckEditableTest.java @@ -20,7 +20,7 @@ public Object[][] checkEditableDpMethod(){ {"from", new AddressDomestic()}, {"to", new AddressDomestic()}, {"bank_account", "fake account"}, - {"amount", 111f}, + {"amount", 147480.18f}, {"logo", "fake logo"}, {"check_bottom", "fake bottom"}, {"attachment", "fake attachment"}, @@ -61,7 +61,7 @@ public void checkEditableTestWithProvidedValue(String prop, Object val) throws E break; } case "amount": { - Float castedVal = (Float)val; + Double castedVal = (Double)val; rec.setAmount(castedVal); Assert.assertEquals(rec.getAmount(), castedVal); break; diff --git a/docs/CheckEditable.md b/docs/CheckEditable.md index 2f40f7ad..9206bf0c 100755 --- a/docs/CheckEditable.md +++ b/docs/CheckEditable.md @@ -5,24 +5,24 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**from** | **Object** | Must either be an address ID or an inline object with correct address parameters. | -**to** | **Object** | Must either be an address ID or an inline object with correct address parameters. | -**bankAccount** | **String** | | -**amount** | **Float** | The payment amount to be sent in US dollars. | -**logo** | **String** | Accepts a remote URL or local file upload to an image to print (in grayscale) in the upper-left corner of your check. | [optional] -**checkBottom** | **String** | The artwork to use on the bottom of the check page. Notes: - HTML merge variables should not include delimiting whitespace. - PDF, PNG, and JPGs must be sized at 8.5\"x11\" at 300 DPI, while supplied HTML will be rendered and trimmed to fit on a 8.5\"x11\" page. - The check bottom will always be printed in black & white. - Must conform to [this template](https://s3-us-west-2.amazonaws.com/public.lob.com/assets/templates/check_bottom_template.pdf). Need more help? Consult our [HTML examples](#section/HTML-Examples). | [optional] -**attachment** | **String** | A document to include with the check. | [optional] -**description** | **String** | An internal description that identifies this resource. Must be no longer than 255 characters. | [optional] -**metadata** | **Map<String, String>** | Use metadata to store custom information for tagging and labeling back to your internal systems. Must be an object with up to 20 key-value pairs. Keys must be at most 40 characters and values must be at most 500 characters. Neither can contain the characters `\"` and `\\`. i.e. '{\"customer_id\" : \"NEWYORK2015\"}' Nested objects are not supported. See [Metadata](#section/Metadata) for more information. | [optional] -**mergeVariables** | **Object** | You can input a merge variable payload object to your template to render dynamic content. For example, if you have a template like: `{{variable_name}}`, pass in `{\"variable_name\": \"Harry\"}` to render `Harry`. `merge_variables` must be an object. Any type of value is accepted as long as the object is valid JSON; you can use `strings`, `numbers`, `booleans`, `arrays`, `objects`, or `null`. The max length of the object is 25,000 characters. If you call `JSON.stringify` on your object, it can be no longer than 25,000 characters. Your variable names cannot contain any whitespace or any of the following special characters: `!`, `\"`, `#`, `%`, `&`, `'`, `(`, `)`, `*`, `+`, `,`, `/`, `;`, `<`, `=`, `>`, `@`, `[`, `\\`, `]`, `^`, `` ` ``, `{`, `|`, `}`, `~`. More instructions can be found in [our guide to using html and merge variables](https://lob.com/resources/guides/general/using-html-and-merge-variables). Depending on your [Merge Variable strictness](https://dashboard.lob.com/#/settings/account) setting, if you define variables in your HTML but do not pass them here, you will either receive an error or the variable will render as an empty string. | [optional] -**sendDate** | **OffsetDateTime** | A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC. | [optional] -**mailType** | [**MailTypeEnum**](#MailTypeEnum) | Checks must be sent `usps_first_class` | [optional] -**memo** | **String** | Text to include on the memo line of the check. | [optional] -**checkNumber** | **Integer** | An integer that designates the check number. | [optional] -**message** | **String** | Max of 400 characters to be included at the bottom of the check page. | [optional] -**billingGroupId** | **String** | An optional string with the billing group ID to tag your usage with. Is used for billing purposes. Requires special activation to use. See [Billing Group API](https://lob.github.io/lob-openapi/#tag/Billing-Groups) for more information. | [optional] +Name | Type | Description | Notes +------------ |------------------------------------| ------------- | ------------- +**from** | **Object** | Must either be an address ID or an inline object with correct address parameters. | +**to** | **Object** | Must either be an address ID or an inline object with correct address parameters. | +**bankAccount** | **String** | | +**amount** | **Double** | The payment amount to be sent in US dollars. | +**logo** | **String** | Accepts a remote URL or local file upload to an image to print (in grayscale) in the upper-left corner of your check. | [optional] +**checkBottom** | **String** | The artwork to use on the bottom of the check page. Notes: - HTML merge variables should not include delimiting whitespace. - PDF, PNG, and JPGs must be sized at 8.5\"x11\" at 300 DPI, while supplied HTML will be rendered and trimmed to fit on a 8.5\"x11\" page. - The check bottom will always be printed in black & white. - Must conform to [this template](https://s3-us-west-2.amazonaws.com/public.lob.com/assets/templates/check_bottom_template.pdf). Need more help? Consult our [HTML examples](#section/HTML-Examples). | [optional] +**attachment** | **String** | A document to include with the check. | [optional] +**description** | **String** | An internal description that identifies this resource. Must be no longer than 255 characters. | [optional] +**metadata** | **Map<String, String>** | Use metadata to store custom information for tagging and labeling back to your internal systems. Must be an object with up to 20 key-value pairs. Keys must be at most 40 characters and values must be at most 500 characters. Neither can contain the characters `\"` and `\\`. i.e. '{\"customer_id\" : \"NEWYORK2015\"}' Nested objects are not supported. See [Metadata](#section/Metadata) for more information. | [optional] +**mergeVariables** | **Object** | You can input a merge variable payload object to your template to render dynamic content. For example, if you have a template like: `{{variable_name}}`, pass in `{\"variable_name\": \"Harry\"}` to render `Harry`. `merge_variables` must be an object. Any type of value is accepted as long as the object is valid JSON; you can use `strings`, `numbers`, `booleans`, `arrays`, `objects`, or `null`. The max length of the object is 25,000 characters. If you call `JSON.stringify` on your object, it can be no longer than 25,000 characters. Your variable names cannot contain any whitespace or any of the following special characters: `!`, `\"`, `#`, `%`, `&`, `'`, `(`, `)`, `*`, `+`, `,`, `/`, `;`, `<`, `=`, `>`, `@`, `[`, `\\`, `]`, `^`, `` ` ``, `{`, `|`, `}`, `~`. More instructions can be found in [our guide to using html and merge variables](https://lob.com/resources/guides/general/using-html-and-merge-variables). Depending on your [Merge Variable strictness](https://dashboard.lob.com/#/settings/account) setting, if you define variables in your HTML but do not pass them here, you will either receive an error or the variable will render as an empty string. | [optional] +**sendDate** | **OffsetDateTime** | A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC. | [optional] +**mailType** | [**MailTypeEnum**](#MailTypeEnum) | Checks must be sent `usps_first_class` | [optional] +**memo** | **String** | Text to include on the memo line of the check. | [optional] +**checkNumber** | **Integer** | An integer that designates the check number. | [optional] +**message** | **String** | Max of 400 characters to be included at the bottom of the check page. | [optional] +**billingGroupId** | **String** | An optional string with the billing group ID to tag your usage with. Is used for billing purposes. Requires special activation to use. See [Billing Group API](https://lob.github.io/lob-openapi/#tag/Billing-Groups) for more information. | [optional] diff --git a/src/main/java/com/lob/model/CheckEditable.java b/src/main/java/com/lob/model/CheckEditable.java index c1e0b0a8..e9c345de 100644 --- a/src/main/java/com/lob/model/CheckEditable.java +++ b/src/main/java/com/lob/model/CheckEditable.java @@ -108,7 +108,7 @@ public String getBankAccount() { @SerializedName(SERIALIZED_NAME_AMOUNT) - private Float amount; + private Double amount; /** * The payment amount to be sent in US dollars. * maximum: 999999.99 @@ -119,7 +119,7 @@ public String getBankAccount() { @ApiModelProperty(required = true, value = "The payment amount to be sent in US dollars.") - public Float getAmount() { + public Double getAmount() { return amount; } @@ -476,7 +476,7 @@ public void setBankAccount(String bankAccount) { /* - public CheckEditable amount(Float amount) { + public CheckEditable amount(Double amount) { this.amount = amount; return this; @@ -484,7 +484,7 @@ public CheckEditable amount(Float amount) { */ - public void setAmount(Float amount) { + public void setAmount(Double amount) { this.amount = amount; } From 824ea9258e03fddcc140f2e97482c5b67513f344 Mon Sep 17 00:00:00 2001 From: McCormick Wooden <60236744+mccormick-wooden@users.noreply.github.com> Date: Tue, 19 Nov 2024 16:03:16 -0600 Subject: [PATCH 2/3] Update CheckEditable.md --- docs/CheckEditable.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/CheckEditable.md b/docs/CheckEditable.md index 9206bf0c..3e11c559 100755 --- a/docs/CheckEditable.md +++ b/docs/CheckEditable.md @@ -5,24 +5,24 @@ ## Properties -Name | Type | Description | Notes ------------- |------------------------------------| ------------- | ------------- -**from** | **Object** | Must either be an address ID or an inline object with correct address parameters. | -**to** | **Object** | Must either be an address ID or an inline object with correct address parameters. | -**bankAccount** | **String** | | -**amount** | **Double** | The payment amount to be sent in US dollars. | -**logo** | **String** | Accepts a remote URL or local file upload to an image to print (in grayscale) in the upper-left corner of your check. | [optional] -**checkBottom** | **String** | The artwork to use on the bottom of the check page. Notes: - HTML merge variables should not include delimiting whitespace. - PDF, PNG, and JPGs must be sized at 8.5\"x11\" at 300 DPI, while supplied HTML will be rendered and trimmed to fit on a 8.5\"x11\" page. - The check bottom will always be printed in black & white. - Must conform to [this template](https://s3-us-west-2.amazonaws.com/public.lob.com/assets/templates/check_bottom_template.pdf). Need more help? Consult our [HTML examples](#section/HTML-Examples). | [optional] -**attachment** | **String** | A document to include with the check. | [optional] -**description** | **String** | An internal description that identifies this resource. Must be no longer than 255 characters. | [optional] -**metadata** | **Map<String, String>** | Use metadata to store custom information for tagging and labeling back to your internal systems. Must be an object with up to 20 key-value pairs. Keys must be at most 40 characters and values must be at most 500 characters. Neither can contain the characters `\"` and `\\`. i.e. '{\"customer_id\" : \"NEWYORK2015\"}' Nested objects are not supported. See [Metadata](#section/Metadata) for more information. | [optional] -**mergeVariables** | **Object** | You can input a merge variable payload object to your template to render dynamic content. For example, if you have a template like: `{{variable_name}}`, pass in `{\"variable_name\": \"Harry\"}` to render `Harry`. `merge_variables` must be an object. Any type of value is accepted as long as the object is valid JSON; you can use `strings`, `numbers`, `booleans`, `arrays`, `objects`, or `null`. The max length of the object is 25,000 characters. If you call `JSON.stringify` on your object, it can be no longer than 25,000 characters. Your variable names cannot contain any whitespace or any of the following special characters: `!`, `\"`, `#`, `%`, `&`, `'`, `(`, `)`, `*`, `+`, `,`, `/`, `;`, `<`, `=`, `>`, `@`, `[`, `\\`, `]`, `^`, `` ` ``, `{`, `|`, `}`, `~`. More instructions can be found in [our guide to using html and merge variables](https://lob.com/resources/guides/general/using-html-and-merge-variables). Depending on your [Merge Variable strictness](https://dashboard.lob.com/#/settings/account) setting, if you define variables in your HTML but do not pass them here, you will either receive an error or the variable will render as an empty string. | [optional] -**sendDate** | **OffsetDateTime** | A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC. | [optional] -**mailType** | [**MailTypeEnum**](#MailTypeEnum) | Checks must be sent `usps_first_class` | [optional] -**memo** | **String** | Text to include on the memo line of the check. | [optional] -**checkNumber** | **Integer** | An integer that designates the check number. | [optional] -**message** | **String** | Max of 400 characters to be included at the bottom of the check page. | [optional] -**billingGroupId** | **String** | An optional string with the billing group ID to tag your usage with. Is used for billing purposes. Requires special activation to use. See [Billing Group API](https://lob.github.io/lob-openapi/#tag/Billing-Groups) for more information. | [optional] +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**from** | **Object** | Must either be an address ID or an inline object with correct address parameters. | +**to** | **Object** | Must either be an address ID or an inline object with correct address parameters. | +**bankAccount** | **String** | | +**amount** | **Double** | The payment amount to be sent in US dollars. | +**logo** | **String** | Accepts a remote URL or local file upload to an image to print (in grayscale) in the upper-left corner of your check. | [optional] +**checkBottom** | **String** | The artwork to use on the bottom of the check page. Notes: - HTML merge variables should not include delimiting whitespace. - PDF, PNG, and JPGs must be sized at 8.5\"x11\" at 300 DPI, while supplied HTML will be rendered and trimmed to fit on a 8.5\"x11\" page. - The check bottom will always be printed in black & white. - Must conform to [this template](https://s3-us-west-2.amazonaws.com/public.lob.com/assets/templates/check_bottom_template.pdf). Need more help? Consult our [HTML examples](#section/HTML-Examples). | [optional] +**attachment** | **String** | A document to include with the check. | [optional] +**description** | **String** | An internal description that identifies this resource. Must be no longer than 255 characters. | [optional] +**metadata** | **Map<String, String>** | Use metadata to store custom information for tagging and labeling back to your internal systems. Must be an object with up to 20 key-value pairs. Keys must be at most 40 characters and values must be at most 500 characters. Neither can contain the characters `\"` and `\\`. i.e. '{\"customer_id\" : \"NEWYORK2015\"}' Nested objects are not supported. See [Metadata](#section/Metadata) for more information. | [optional] +**mergeVariables** | **Object** | You can input a merge variable payload object to your template to render dynamic content. For example, if you have a template like: `{{variable_name}}`, pass in `{\"variable_name\": \"Harry\"}` to render `Harry`. `merge_variables` must be an object. Any type of value is accepted as long as the object is valid JSON; you can use `strings`, `numbers`, `booleans`, `arrays`, `objects`, or `null`. The max length of the object is 25,000 characters. If you call `JSON.stringify` on your object, it can be no longer than 25,000 characters. Your variable names cannot contain any whitespace or any of the following special characters: `!`, `\"`, `#`, `%`, `&`, `'`, `(`, `)`, `*`, `+`, `,`, `/`, `;`, `<`, `=`, `>`, `@`, `[`, `\\`, `]`, `^`, `` ` ``, `{`, `|`, `}`, `~`. More instructions can be found in [our guide to using html and merge variables](https://lob.com/resources/guides/general/using-html-and-merge-variables). Depending on your [Merge Variable strictness](https://dashboard.lob.com/#/settings/account) setting, if you define variables in your HTML but do not pass them here, you will either receive an error or the variable will render as an empty string. | [optional] +**sendDate** | **OffsetDateTime** | A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC. | [optional] +**mailType** | [**MailTypeEnum**](#MailTypeEnum) | Checks must be sent `usps_first_class` | [optional] +**memo** | **String** | Text to include on the memo line of the check. | [optional] +**checkNumber** | **Integer** | An integer that designates the check number. | [optional] +**message** | **String** | Max of 400 characters to be included at the bottom of the check page. | [optional] +**billingGroupId** | **String** | An optional string with the billing group ID to tag your usage with. Is used for billing purposes. Requires special activation to use. See [Billing Group API](https://lob.github.io/lob-openapi/#tag/Billing-Groups) for more information. | [optional] From d26a7012de570547422fd13c4d2f8992deeefb94 Mon Sep 17 00:00:00 2001 From: McCormick Wooden <60236744+mccormick-wooden@users.noreply.github.com> Date: Tue, 19 Nov 2024 16:07:15 -0600 Subject: [PATCH 3/3] Update CheckEditableTest.java --- __tests__/Model/CheckEditableTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/Model/CheckEditableTest.java b/__tests__/Model/CheckEditableTest.java index 3b2bb680..b0371beb 100755 --- a/__tests__/Model/CheckEditableTest.java +++ b/__tests__/Model/CheckEditableTest.java @@ -20,7 +20,7 @@ public Object[][] checkEditableDpMethod(){ {"from", new AddressDomestic()}, {"to", new AddressDomestic()}, {"bank_account", "fake account"}, - {"amount", 147480.18f}, + {"amount", 147480.18d}, {"logo", "fake logo"}, {"check_bottom", "fake bottom"}, {"attachment", "fake attachment"},