Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Changelog
=========
1.9.7
-------------------
- Deprecate Double to String
-------------------
1.9.6
-------------------
- Added support to CREDIT, PREPAID, FIS, UNKNOWN bank card types.
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.hyperwallet</groupId>
<artifactId>sdk</artifactId>
<version>1.9.7-SNAPSHOT</version>
<version>1.9.7</version>
<packaging>jar</packaging>

<name>hyperwallet-java-sdk</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class HyperwalletPayment extends HyperwalletBaseMonitor {
private String status;
private String transition;
private Date createdOn;
private Double amount;
private String amount;
private String currency;
private String notes;
private String memo;
Expand Down Expand Up @@ -134,16 +134,16 @@ public HyperwalletPayment clearCreatedOn() {
return this;
}

public Double getAmount() {
public String getAmount() {
return amount;
}

public void setAmount(Double amount) {
public void setAmount(String amount) {
addField("amount", amount);
this.amount = amount;
}

public HyperwalletPayment amount(Double amount) {
public HyperwalletPayment amount(String amount) {
addField("amount", amount);
this.amount = amount;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,13 @@ public String key() {

private String destinationToken;

private Double amount;
private String amount;

private Double fee;
private String fee;

private String currency;

private Double foreignExchangeRate;
private String foreignExchangeRate;

private String foreignExchangeCurrency;

Expand Down Expand Up @@ -272,19 +272,19 @@ public void setDestinationToken(String destinationToken) {
this.destinationToken = destinationToken;
}

public Double getAmount() {
public String getAmount() {
return amount;
}

public void setAmount(Double amount) {
public void setAmount(String amount) {
this.amount = amount;
}

public Double getFee() {
public String getFee() {
return fee;
}

public void setFee(Double fee) {
public void setFee(String fee) {
this.fee = fee;
}

Expand All @@ -296,11 +296,11 @@ public void setCurrency(String currency) {
this.currency = currency;
}

public Double getForeignExchangeRate() {
public String getForeignExchangeRate() {
return foreignExchangeRate;
}

public void setForeignExchangeRate(Double foreignExchangeRate) {
public void setForeignExchangeRate(String foreignExchangeRate) {
this.foreignExchangeRate = foreignExchangeRate;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ public static enum Status {QUOTED, SCHEDULED, IN_PROGRESS, VERIFICATION_REQUIRED
private Date createdOn;
private String clientTransferId;
private String sourceToken;
private Double sourceAmount;
private Double sourceFeeAmount;
private String sourceAmount;
private String sourceFeeAmount;
private String sourceCurrency;
private String destinationToken;
private Double destinationAmount;
private Double destinationFeeAmount;
private String destinationAmount;
private String destinationFeeAmount;
private String destinationCurrency;
private List<ForeignExchange> foreignExchanges;
private String notes;
Expand Down Expand Up @@ -139,16 +139,16 @@ public HyperwalletTransfer clearSourceToken() {
return this;
}

public Double getSourceAmount() {
public String getSourceAmount() {
return sourceAmount;
}

public void setSourceAmount(Double sourceAmount) {
public void setSourceAmount(String sourceAmount) {
addField("sourceAmount", sourceAmount);
this.sourceAmount = sourceAmount;
}

public HyperwalletTransfer sourceAmount(Double sourceAmount) {
public HyperwalletTransfer sourceAmount(String sourceAmount) {
addField("sourceAmount", sourceAmount);
this.sourceAmount = sourceAmount;
return this;
Expand All @@ -160,16 +160,16 @@ public HyperwalletTransfer clearSourceAmount() {
return this;
}

public Double getSourceFeeAmount() {
public String getSourceFeeAmount() {
return sourceFeeAmount;
}

public void setSourceFeeAmount(Double sourceFeeAmount) {
public void setSourceFeeAmount(String sourceFeeAmount) {
addField("sourceFeeAmount", sourceFeeAmount);
this.sourceFeeAmount = sourceFeeAmount;
}

public HyperwalletTransfer sourceFeeAmount(Double sourceFeeAmount) {
public HyperwalletTransfer sourceFeeAmount(String sourceFeeAmount) {
addField("sourceFeeAmount", sourceFeeAmount);
this.sourceFeeAmount = sourceFeeAmount;
return this;
Expand Down Expand Up @@ -223,16 +223,16 @@ public HyperwalletTransfer clearDestinationToken() {
return this;
}

public Double getDestinationAmount() {
public String getDestinationAmount() {
return destinationAmount;
}

public void setDestinationAmount(Double destinationAmount) {
public void setDestinationAmount(String destinationAmount) {
addField("destinationAmount", destinationAmount);
this.destinationAmount = destinationAmount;
}

public HyperwalletTransfer destinationAmount(Double destinationAmount) {
public HyperwalletTransfer destinationAmount(String destinationAmount) {
addField("destinationAmount", destinationAmount);
this.destinationAmount = destinationAmount;
return this;
Expand All @@ -244,16 +244,16 @@ public HyperwalletTransfer clearDestinationAmount() {
return this;
}

public Double getDestinationFeeAmount() {
public String getDestinationFeeAmount() {
return destinationFeeAmount;
}

public void setDestinationFeeAmount(Double destinationFeeAmount) {
public void setDestinationFeeAmount(String destinationFeeAmount) {
addField("destinationFeeAmount", destinationFeeAmount);
this.destinationFeeAmount = destinationFeeAmount;
}

public HyperwalletTransfer destinationFeeAmount(Double destinationFeeAmount) {
public HyperwalletTransfer destinationFeeAmount(String destinationFeeAmount) {
addField("destinationFeeAmount", destinationFeeAmount);
this.destinationFeeAmount = destinationFeeAmount;
return this;
Expand Down Expand Up @@ -371,17 +371,17 @@ public HyperwalletTransfer clearForeignExchanges() {
}

public static class ForeignExchange {
private Double sourceAmount;
private String sourceAmount;
private String sourceCurrency;
private Double destinationAmount;
private String destinationAmount;
private String destinationCurrency;
private Double rate;
private String rate;

public Double getSourceAmount() {
public String getSourceAmount() {
return sourceAmount;
}

public void setSourceAmount(Double sourceAmount) {
public void setSourceAmount(String sourceAmount) {
this.sourceAmount = sourceAmount;
}

Expand All @@ -393,11 +393,11 @@ public void setSourceCurrency(String sourceCurrency) {
this.sourceCurrency = sourceCurrency;
}

public Double getDestinationAmount() {
public String getDestinationAmount() {
return destinationAmount;
}

public void setDestinationAmount(Double destinationAmount) {
public void setDestinationAmount(String destinationAmount) {
this.destinationAmount = destinationAmount;
}

Expand All @@ -409,11 +409,11 @@ public void setDestinationCurrency(String destinationCurrency) {
this.destinationCurrency = destinationCurrency;
}

public Double getRate() {
public String getRate() {
return rate;
}

public void setRate(Double rate) {
public void setRate(String rate) {
this.rate = rate;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ public static enum Status {PENDING, FAILED, COMPLETED}
private Status status;
private String clientRefundId;
private String sourceToken;
private Double sourceAmount;
private String sourceAmount;
private String sourceCurrency;
private String destinationToken;
private Double destinationAmount;
private String destinationAmount;
private String destinationCurrency;
private List<ForeignExchange> foreignExchanges;
private Date createdOn;
Expand Down Expand Up @@ -115,16 +115,16 @@ public HyperwalletTransferRefund clearSourceToken() {
return this;
}

public Double getSourceAmount() {
public String getSourceAmount() {
return sourceAmount;
}

public void setSourceAmount(Double sourceAmount) {
public void setSourceAmount(String sourceAmount) {
addField("sourceAmount", sourceAmount);
this.sourceAmount = sourceAmount;
}

public HyperwalletTransferRefund sourceAmount(Double sourceAmount) {
public HyperwalletTransferRefund sourceAmount(String sourceAmount) {
addField("sourceAmount", sourceAmount);
this.sourceAmount = sourceAmount;
return this;
Expand Down Expand Up @@ -178,16 +178,16 @@ public HyperwalletTransferRefund clearDestinationToken() {
return this;
}

public Double getDestinationAmount() {
public String getDestinationAmount() {
return destinationAmount;
}

public void setDestinationAmount(Double destinationAmount) {
public void setDestinationAmount(String destinationAmount) {
addField("destinationAmount", destinationAmount);
this.destinationAmount = destinationAmount;
}

public HyperwalletTransferRefund destinationAmount(Double destinationAmount) {
public HyperwalletTransferRefund destinationAmount(String destinationAmount) {
addField("destinationAmount", destinationAmount);
this.destinationAmount = destinationAmount;
return this;
Expand Down
Loading