diff --git a/__tests__/Model/CheckEditableTest.java b/__tests__/Model/CheckEditableTest.java index 49d05098..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", 111f}, + {"amount", 147480.18d}, {"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..3e11c559 100755 --- a/docs/CheckEditable.md +++ b/docs/CheckEditable.md @@ -10,7 +10,7 @@ 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. | +**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] 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; }