-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update PaymentAgreement model to savecard response i.e verify api
- Loading branch information
1 parent
7219b77
commit 4d533fa
Showing
37 changed files
with
199 additions
and
17 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#Tue Jul 02 14:51:53 AST 2024 | ||
gradle.version=7.4.2 | ||
#Thu Aug 08 10:38:15 AST 2024 | ||
gradle.version=7.4 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#Sun Feb 04 12:32:36 AST 2024 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
library/src/main/java/company/tap/gosellapi/internal/api/models/Contract.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package company.tap.gosellapi.internal.api.models; | ||
|
||
import androidx.annotation.Nullable; | ||
|
||
import com.google.gson.annotations.Expose; | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
import java.io.Serializable; | ||
|
||
public class Contract implements Serializable { | ||
|
||
@SerializedName("id") | ||
@Expose | ||
@Nullable | ||
private String id; | ||
|
||
@SerializedName("customer_id") | ||
@Expose | ||
@Nullable | ||
private String customerId; | ||
|
||
|
||
@SerializedName("type") | ||
@Expose | ||
@Nullable | ||
private String type; | ||
|
||
|
||
@Nullable | ||
public String getId() { | ||
return id; | ||
} | ||
|
||
@Nullable | ||
public String getType() { | ||
return type; | ||
} | ||
|
||
@Nullable | ||
public String getCustomerId() { | ||
return customerId; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
library/src/main/java/company/tap/gosellapi/internal/api/models/Metdata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package company.tap.gosellapi.internal.api.models; | ||
|
||
import androidx.annotation.Nullable; | ||
|
||
import com.google.gson.annotations.Expose; | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
import java.io.Serializable; | ||
|
||
public class Metdata implements Serializable { | ||
|
||
/* @SerializedName("txn_type") | ||
@Expose | ||
@Nullable | ||
private String txnType; | ||
@SerializedName("txn_id") | ||
@Expose | ||
@Nullable | ||
private String txnId; | ||
@SerializedName("terminal_id") | ||
@Expose | ||
@Nullable | ||
private String terminalId; | ||
*/ | ||
} |
86 changes: 86 additions & 0 deletions
86
library/src/main/java/company/tap/gosellapi/internal/api/models/PaymentAgreement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
package company.tap.gosellapi.internal.api.models; | ||
|
||
import androidx.annotation.Nullable; | ||
|
||
import com.google.gson.annotations.Expose; | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
import java.io.Serializable; | ||
import java.util.LinkedList; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public class PaymentAgreement implements Serializable { | ||
@SerializedName("id") | ||
@Expose | ||
@Nullable | ||
private String id; | ||
|
||
@SerializedName("type") | ||
@Expose | ||
@Nullable | ||
private String type; | ||
|
||
|
||
@SerializedName("trace_id") | ||
@Expose | ||
@Nullable | ||
private String traceId; | ||
|
||
@SerializedName("total_payments_count") | ||
@Expose | ||
@Nullable | ||
private int totalPaymentsCount; | ||
|
||
@SerializedName("contract") | ||
@Expose | ||
@Nullable | ||
private Contract contract; | ||
|
||
|
||
@SerializedName("metadata") | ||
@Expose | ||
@Nullable | ||
private Map<String,String> metadata; | ||
|
||
|
||
/** | ||
* get PaymentAgreement ID | ||
* @return PaymentAgreement | ||
*/ | ||
@Nullable | ||
public String getId() { | ||
return id; | ||
} /** | ||
* get PaymentAgreement type | ||
* @return type | ||
*/ | ||
@Nullable | ||
public String getType() { | ||
return type; | ||
} /** | ||
* get PaymentAgreement traceId | ||
* @return PaymentAgreement | ||
*/ | ||
@Nullable | ||
public String getTraceId() { | ||
return traceId; | ||
} /** | ||
* get PaymentAgreement totalPaymentsCount | ||
* @return PaymentAgreement | ||
*/ | ||
@Nullable | ||
public int getTotalPaymentCount() { | ||
return totalPaymentsCount; | ||
} | ||
|
||
|
||
@Nullable | ||
public Contract getContract() { | ||
return contract; | ||
} | ||
@Nullable | ||
public Map<String,String> getMetadata() { | ||
return metadata; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters