Skip to content

Commit

Permalink
Merge pull request #126 from zakiarsyad/CC-7277/update-java-lib
Browse files Browse the repository at this point in the history
Return installment object on Cards' Charge Response
  • Loading branch information
feliciagojali authored Oct 20, 2022
2 parents 8ad1d1e + 6cd3f86 commit ae640dc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion xendit-java-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group 'com.xendit'
version '1.20.6'
version '1.20.7'

sourceCompatibility = 1.8

Expand Down
2 changes: 1 addition & 1 deletion xendit-java-lib/src/main/java/com/xendit/Xendit.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public String getXenditURL() {
}

public String getVersion() {
return "1.20.6";
return "1.20.7";
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.xendit.model;

import com.google.gson.annotations.SerializedName;
import java.util.Map;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
Expand Down Expand Up @@ -59,4 +60,7 @@ public class CreditCardCharge {

@SerializedName("failure_reason")
private CreditCardEnum.FailureReason failureReason;

@SerializedName("installment")
private Map<String, Object> installment;
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public enum FailureReason {
INACTIVE_CARD,
INVALID_CVN,
PROCESSOR_ERROR,
BIN_BLOCK
BIN_BLOCK,
VALIDATION_ERROR
}

public enum RefundStatus {
Expand All @@ -53,6 +54,7 @@ public enum RefundStatus {

public enum RefundFailureReason {
INSUFFICIENT_BALANCE,
REFUND_FAILED
REFUND_FAILED,
VALIDATION_ERROR
}
}

0 comments on commit ae640dc

Please sign in to comment.