-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Several updates in properties, APMs and Disputes endpoint (#451)
* Update account holder apm * Update payment responses and add new apms * Update account holder schema * Update disputes endpoints and properties
- Loading branch information
1 parent
f574901
commit c6cf94e
Showing
59 changed files
with
1,013 additions
and
132 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
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,55 +1,38 @@ | ||
package com.checkout.common; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.ToString; | ||
|
||
@Data | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public final class AccountHolder { | ||
|
||
private AccountHolderType type; | ||
|
||
@SerializedName("full_name") | ||
private String fullName; | ||
|
||
@SerializedName("first_name") | ||
private String firstName; | ||
|
||
@SerializedName("middle_name") | ||
private String middleName; | ||
|
||
@SerializedName("last_name") | ||
private String lastName; | ||
|
||
private String email; | ||
|
||
private String gender; | ||
|
||
@SerializedName("company_name") | ||
private String companyName; | ||
|
||
@SerializedName("tax_id") | ||
private String taxId; | ||
|
||
@SerializedName("date_of_birth") | ||
private String dateOfBirth; | ||
|
||
@SerializedName("country_of_birth") | ||
private CountryCode countryOfBirth; | ||
|
||
@SerializedName("residential_status") | ||
private String residentialStatus; | ||
|
||
@SerializedName("billing_address") | ||
private Address billingAddress; | ||
|
||
private Phone phone; | ||
|
||
private AccountHolderIdentification identification; | ||
@ToString(callSuper = true) | ||
@EqualsAndHashCode(callSuper = true) | ||
public final class AccountHolder extends AccountHolderBase { | ||
|
||
private Boolean accountNameInquiry; | ||
|
||
@Builder | ||
private AccountHolder( | ||
final AccountHolderType type, | ||
final String fullName, | ||
final String firstName, | ||
final String middleName, | ||
final String lastName, | ||
final String email, | ||
final String gender, | ||
final String companyName, | ||
final String taxId, | ||
final String dateOfBirth, | ||
final CountryCode countryOfBirth, | ||
final String residentialStatus, | ||
final Address billingAddress, | ||
final Phone phone, | ||
final AccountHolderIdentification identification, | ||
final Boolean accountNameInquiry | ||
) { | ||
super(type, fullName, firstName, middleName, lastName, email, gender, companyName, taxId, dateOfBirth, countryOfBirth, residentialStatus, billingAddress, phone, identification); | ||
this.accountNameInquiry = accountNameInquiry; | ||
} | ||
|
||
} |
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,53 @@ | ||
package com.checkout.common; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class AccountHolderBase { | ||
|
||
private AccountHolderType type; | ||
|
||
@SerializedName("full_name") | ||
private String fullName; | ||
|
||
@SerializedName("first_name") | ||
private String firstName; | ||
|
||
@SerializedName("middle_name") | ||
private String middleName; | ||
|
||
@SerializedName("last_name") | ||
private String lastName; | ||
|
||
private String email; | ||
|
||
private String gender; | ||
|
||
@SerializedName("company_name") | ||
private String companyName; | ||
|
||
@SerializedName("tax_id") | ||
private String taxId; | ||
|
||
@SerializedName("date_of_birth") | ||
private String dateOfBirth; | ||
|
||
@SerializedName("country_of_birth") | ||
private CountryCode countryOfBirth; | ||
|
||
@SerializedName("residential_status") | ||
private String residentialStatus; | ||
|
||
@SerializedName("billing_address") | ||
private Address billingAddress; | ||
|
||
private Phone phone; | ||
|
||
private AccountHolderIdentification identification; | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/com/checkout/common/AccountHolderResponse.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,14 @@ | ||
package com.checkout.common; | ||
|
||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.ToString; | ||
|
||
@Data | ||
@ToString(callSuper = true) | ||
@EqualsAndHashCode(callSuper = true) | ||
public final class AccountHolderResponse extends AccountHolderBase { | ||
|
||
private AccountNameInquiryType accountNameInquiry; | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/com/checkout/common/AccountNameInquiryType.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,22 @@ | ||
package com.checkout.common; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
public enum AccountNameInquiryType { | ||
|
||
@SerializedName("full_match") | ||
FULL_MATCH, | ||
|
||
@SerializedName("partial_match") | ||
PARTIAL_MATCH, | ||
|
||
@SerializedName("no_match") | ||
NO_MATCH, | ||
|
||
@SerializedName("not_performed") | ||
NOT_PERFORMED, | ||
|
||
@SerializedName("not_supported") | ||
NOT_SUPPORTED | ||
|
||
} |
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
37 changes: 37 additions & 0 deletions
37
src/main/java/com/checkout/disputes/CompellingEvidence.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,37 @@ | ||
package com.checkout.disputes; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
import java.time.Instant; | ||
import java.util.List; | ||
|
||
public class CompellingEvidence { | ||
|
||
@SerializedName("merchandise_or_service") | ||
private String merchandiseOrService; | ||
|
||
@SerializedName("merchandise_or_service_desc") | ||
private String merchandiseOrServiceDesc; | ||
|
||
@SerializedName("merchandise_or_service_provided_date") | ||
private Instant merchandiseOrServiceProvidedDate; | ||
|
||
@SerializedName("shipping_delivery_status") | ||
private ShippingDeliveryStatusType shippingDeliveryStatus; | ||
|
||
@SerializedName("tracking_information") | ||
private TrackingInformationType trackingInformation; | ||
|
||
@SerializedName("user_id") | ||
private String userId; | ||
|
||
@SerializedName("ip_address") | ||
private String ipAddress; | ||
|
||
@SerializedName("shipping_address") | ||
private ShippingAddress shippingAddress; | ||
|
||
@SerializedName("historical_transactions") | ||
private List<HistoricalTransactions> historicalTransactions; | ||
|
||
} |
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
Oops, something went wrong.