Skip to content

Commit

Permalink
Merge pull request #268 from Mangopay/feature/RecurringPaymentNewFields
Browse files Browse the repository at this point in the history
MPSDK-963: Added Status in PUT object
  • Loading branch information
SoloJr authored Oct 20, 2021
2 parents 32ae3df + cdc9109 commit 0d8880c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ public class RecurringPaymentUpdate extends EntityBase {
@SerializedName("Shipping")
private Shipping shipping;

@SerializedName("Status")
private String status;

public String getCardId() {
return cardId;
}
Expand All @@ -43,6 +46,10 @@ public void setShipping(Shipping shipping) {
this.shipping = shipping;
}

public String getStatus() { return status; }

public void setStatus(String status) { this.status = status; }

@Override
public Map<String, Type> getSubObjects() {
Map<String, Type> result = super.getSubObjects();
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/com/mangopay/core/mangopay.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#Thu Oct 14 15:42:11 EEST 2021
#Mon Oct 18 20:54:26 EEST 2021
version=2.18.0
1 change: 1 addition & 0 deletions src/test/java/com/mangopay/core/PayInApiImplTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,7 @@ public void testUpdateRecurringPayment() {
update.setBilling(this.getNewBilling());
update.getBilling().setFirstName("TEST");
update.setShipping(this.getNewShipping());
update.setStatus("ENDED");

RecurringPaymentExtended updated = this.api.getPayInApi().updateRecurringPayment(get.getId(), update);
assertNotNull(updated);
Expand Down

0 comments on commit 0d8880c

Please sign in to comment.