Skip to content

Commit

Permalink
Merge branch 'davidwebster48-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
incarnate committed Feb 9, 2016
2 parents 71c58f8 + 41449f7 commit f6507ec
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,16 @@ public String getExpiryMonth() {

/**
* Set card's expiry month
* This can optionally include a leading zero for one digit months.
*
* @param expiryMonth Card expiry month
*/
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@JsonProperty("ExpiryMonth")
public void setExpiryMonth(String expiryMonth) {
if (expiryMonth != null && expiryMonth.length() == 1) {
expiryMonth = "0" + expiryMonth;
}
this.expiryMonth = expiryMonth;
}

Expand Down

0 comments on commit f6507ec

Please sign in to comment.