-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/feature/improve-deserialization-…
…and-updates' into feature/improve-deserialization-and-updates
- Loading branch information
Showing
30 changed files
with
443 additions
and
21 deletions.
There are no files selected for viewing
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
16 changes: 16 additions & 0 deletions
16
src/main/java/com/checkout/accounts/AdditionalDocument.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,16 @@ | ||
package com.checkout.accounts; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public final class AdditionalDocument { | ||
|
||
private String front; | ||
|
||
} |
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,20 @@ | ||
package com.checkout.accounts; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public final class AdditionalInfo { | ||
|
||
private String field1; | ||
|
||
private String field2; | ||
|
||
private String field3; | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/com/checkout/accounts/ArticlesOfAssociationType.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,13 @@ | ||
package com.checkout.accounts; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
public enum ArticlesOfAssociationType { | ||
|
||
@SerializedName("memorandum_of_association") | ||
MEMORANDUM_OF_ASSOCIATION, | ||
|
||
@SerializedName("articles_of_association") | ||
ARTICLES_OF_ASSOCIATION | ||
|
||
} |
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,18 @@ | ||
package com.checkout.accounts; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public final class BankVerification { | ||
|
||
private BankVerificationType type; | ||
|
||
private String front; | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/checkout/accounts/BankVerificationType.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,10 @@ | ||
package com.checkout.accounts; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
public enum BankVerificationType { | ||
|
||
@SerializedName("bank_statement") | ||
BANK_STATEMENT | ||
|
||
} |
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
18 changes: 18 additions & 0 deletions
18
src/main/java/com/checkout/accounts/DateOfIncorporation.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,18 @@ | ||
package com.checkout.accounts; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public final class DateOfIncorporation { | ||
|
||
private Integer month; | ||
|
||
private Integer year; | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/com/checkout/accounts/FinancialVerification.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,18 @@ | ||
package com.checkout.accounts; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public final class FinancialVerification { | ||
|
||
private FinancialVerificationType type; | ||
|
||
private String front; | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/checkout/accounts/FinancialVerificationType.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,10 @@ | ||
package com.checkout.accounts; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
public enum FinancialVerificationType { | ||
|
||
@SerializedName("financial_statement") | ||
FINANCIAL_STATEMENT | ||
|
||
} |
13 changes: 11 additions & 2 deletions
13
src/main/java/com/checkout/accounts/OnboardEntityRequest.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 |
---|---|---|
@@ -1,27 +1,36 @@ | ||
package com.checkout.accounts; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public final class OnboardEntityRequest { | ||
|
||
private String reference; | ||
|
||
@SerializedName("is_draft") | ||
private boolean isDraft; | ||
|
||
private Profile profile; | ||
|
||
@SerializedName("contact_details") | ||
private ContactDetails contactDetails; | ||
|
||
private Profile profile; | ||
|
||
private Company company; | ||
|
||
private ProcessingDetails processingDetails; | ||
|
||
private Individual individual; | ||
|
||
private OnboardSubEntityDocuments documents; | ||
|
||
@SerializedName("additional_info") | ||
private AdditionalInfo additionalInfo; | ||
|
||
} |
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
35 changes: 35 additions & 0 deletions
35
src/main/java/com/checkout/accounts/ProcessingDetails.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,35 @@ | ||
package com.checkout.accounts; | ||
|
||
import com.checkout.common.Currency; | ||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public final class ProcessingDetails { | ||
|
||
@SerializedName("settlement_country") | ||
private String settlementCountry; | ||
|
||
@SerializedName("target_countries") | ||
private List<String> targetCountries; | ||
|
||
@SerializedName("annual_processing_volume") | ||
private Integer annualProcessingVolume; | ||
|
||
@SerializedName("average_transaction_value") | ||
private Integer averageTransactionValue; | ||
|
||
@SerializedName("highest_transaction_value") | ||
private Integer highestTransactionValue; | ||
|
||
private Currency currency; | ||
|
||
} |
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,18 @@ | ||
package com.checkout.accounts; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public final class ProofOfLegality { | ||
|
||
private ProofOfLegalityType type; | ||
|
||
private String front; | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/checkout/accounts/ProofOfLegalityType.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,10 @@ | ||
package com.checkout.accounts; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
public enum ProofOfLegalityType { | ||
|
||
@SerializedName("proof_of_legality") | ||
PROOF_OF_LEGALITY | ||
|
||
} |
Oops, something went wrong.