Skip to content

Commit

Permalink
fix: change merchant category code type
Browse files Browse the repository at this point in the history
  • Loading branch information
stevecl5 committed Aug 22, 2024
1 parent 73a4c04 commit 1093c84
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class Transaction extends MdxBase<Transaction> {
@XmlElement(name = "member_id")
private String memberId;
@XmlElement(name = "merchant_category_code")
private String merchantCategoryCode;
private Integer merchantCategoryCode;
@XmlElement(name = "memo")
private String memo;
@XmlElement(name = "metadata")
Expand Down Expand Up @@ -179,14 +179,22 @@ public final void setMemberId(String newMemberId) {
this.memberId = newMemberId;
}

public final String getMerchantCategoryCode() {
public final Integer getMerchantCategoryCode() {
return merchantCategoryCode;
}

public final void setMerchantCategoryCode(String merchantCategoryCode) {
public final void setMerchantCategoryCode(Integer merchantCategoryCode) {
this.merchantCategoryCode = merchantCategoryCode;
}

/**
* @deprecated use {@link #setMerchantCategoryCode(Integer)}
*/
@Deprecated
public final void setMerchantCategoryCode(String merchantCategoryCode) {
this.merchantCategoryCode = Integer.parseInt(merchantCategoryCode);
}

public final String getMemo() {
return memo;
}
Expand Down

0 comments on commit 1093c84

Please sign in to comment.