Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 26 additions & 8 deletions src/main/java/com/adyen/model/binlookup/Recurring.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,20 @@ public class Recurring {
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a
* payout](https://docs.adyen.com/online-payments/online-payouts).
* payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use
* this when you store payment details and send the raw card number or network token directly in
* your API request.
*/
public enum ContractEnum {
ONECLICK(String.valueOf("ONECLICK")),

ONECLICK_RECURRING(String.valueOf("ONECLICK,RECURRING")),

RECURRING(String.valueOf("RECURRING")),

PAYOUT(String.valueOf("PAYOUT"));
PAYOUT(String.valueOf("PAYOUT")),

EXTERNAL(String.valueOf("EXTERNAL"));

private static final Logger LOG = Logger.getLogger(ContractEnum.class.getName());

Expand Down Expand Up @@ -157,7 +163,9 @@ public Recurring() {}
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a
* payout](https://docs.adyen.com/online-payments/online-payouts).
* payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use
* this when you store payment details and send the raw card number or network token directly in
* your API request.
*
* @param contract The type of recurring contract to be used. Possible values: *
* `ONECLICK` – Payment details can be used to initiate a one-click payment, where
Expand All @@ -168,7 +176,9 @@ public Recurring() {}
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make
* a payout](https://docs.adyen.com/online-payments/online-payouts).
* a payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` -
* Use this when you store payment details and send the raw card number or network token
* directly in your API request.
* @return the current {@code Recurring} instance, allowing for method chaining
*/
public Recurring contract(ContractEnum contract) {
Expand All @@ -186,7 +196,9 @@ public Recurring contract(ContractEnum contract) {
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a
* payout](https://docs.adyen.com/online-payments/online-payouts).
* payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use
* this when you store payment details and send the raw card number or network token directly in
* your API request.
*
* @return contract The type of recurring contract to be used. Possible values: *
* `ONECLICK` – Payment details can be used to initiate a one-click payment, where
Expand All @@ -197,7 +209,9 @@ public Recurring contract(ContractEnum contract) {
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make
* a payout](https://docs.adyen.com/online-payments/online-payouts).
* a payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` -
* Use this when you store payment details and send the raw card number or network token
* directly in your API request.
*/
@JsonProperty(JSON_PROPERTY_CONTRACT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand All @@ -215,7 +229,9 @@ public ContractEnum getContract() {
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a
* payout](https://docs.adyen.com/online-payments/online-payouts).
* payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use
* this when you store payment details and send the raw card number or network token directly in
* your API request.
*
* @param contract The type of recurring contract to be used. Possible values: *
* `ONECLICK` – Payment details can be used to initiate a one-click payment, where
Expand All @@ -226,7 +242,9 @@ public ContractEnum getContract() {
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make
* a payout](https://docs.adyen.com/online-payments/online-payouts).
* a payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` -
* Use this when you store payment details and send the raw card number or network token
* directly in your API request.
*/
@JsonProperty(JSON_PROPERTY_CONTRACT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,11 @@ public void setSubMerchantSubSellerSubSellerNrName(String subMerchantSubSellerSu

/**
* Required for transactions performed by registered payment facilitators. The phone number of the
* sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters
* sub-merchant. * Format: Alphanumeric and special characters * Maximum length: 20 characters
*
* @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by
* registered payment facilitators. The phone number of the sub-merchant.* Format:
* Alphanumeric * Maximum length: 20 characters
* registered payment facilitators. The phone number of the sub-merchant. * Format:
* Alphanumeric and special characters * Maximum length: 20 characters
* @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining
*/
public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPhoneNumber(
Expand All @@ -426,11 +426,11 @@ public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPhoneNumber(

/**
* Required for transactions performed by registered payment facilitators. The phone number of the
* sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters
* sub-merchant. * Format: Alphanumeric and special characters * Maximum length: 20 characters
*
* @return subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by
* registered payment facilitators. The phone number of the sub-merchant.* Format:
* Alphanumeric * Maximum length: 20 characters
* registered payment facilitators. The phone number of the sub-merchant. * Format:
* Alphanumeric and special characters * Maximum length: 20 characters
*/
@JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand All @@ -440,11 +440,11 @@ public String getSubMerchantSubSellerSubSellerNrPhoneNumber() {

/**
* Required for transactions performed by registered payment facilitators. The phone number of the
* sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters
* sub-merchant. * Format: Alphanumeric and special characters * Maximum length: 20 characters
*
* @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by
* registered payment facilitators. The phone number of the sub-merchant.* Format:
* Alphanumeric * Maximum length: 20 characters
* registered payment facilitators. The phone number of the sub-merchant. * Format:
* Alphanumeric and special characters * Maximum length: 20 characters
*/
@JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand Down
34 changes: 26 additions & 8 deletions src/main/java/com/adyen/model/checkout/Recurring.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,20 @@ public class Recurring {
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a
* payout](https://docs.adyen.com/online-payments/online-payouts).
* payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use
* this when you store payment details and send the raw card number or network token directly in
* your API request.
*/
public enum ContractEnum {
ONECLICK(String.valueOf("ONECLICK")),

ONECLICK_RECURRING(String.valueOf("ONECLICK,RECURRING")),

RECURRING(String.valueOf("RECURRING")),

PAYOUT(String.valueOf("PAYOUT"));
PAYOUT(String.valueOf("PAYOUT")),

EXTERNAL(String.valueOf("EXTERNAL"));

private static final Logger LOG = Logger.getLogger(ContractEnum.class.getName());

Expand Down Expand Up @@ -157,7 +163,9 @@ public Recurring() {}
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a
* payout](https://docs.adyen.com/online-payments/online-payouts).
* payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use
* this when you store payment details and send the raw card number or network token directly in
* your API request.
*
* @param contract The type of recurring contract to be used. Possible values: *
* `ONECLICK` – Payment details can be used to initiate a one-click payment, where
Expand All @@ -168,7 +176,9 @@ public Recurring() {}
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make
* a payout](https://docs.adyen.com/online-payments/online-payouts).
* a payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` -
* Use this when you store payment details and send the raw card number or network token
* directly in your API request.
* @return the current {@code Recurring} instance, allowing for method chaining
*/
public Recurring contract(ContractEnum contract) {
Expand All @@ -186,7 +196,9 @@ public Recurring contract(ContractEnum contract) {
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a
* payout](https://docs.adyen.com/online-payments/online-payouts).
* payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use
* this when you store payment details and send the raw card number or network token directly in
* your API request.
*
* @return contract The type of recurring contract to be used. Possible values: *
* `ONECLICK` – Payment details can be used to initiate a one-click payment, where
Expand All @@ -197,7 +209,9 @@ public Recurring contract(ContractEnum contract) {
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make
* a payout](https://docs.adyen.com/online-payments/online-payouts).
* a payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` -
* Use this when you store payment details and send the raw card number or network token
* directly in your API request.
*/
@JsonProperty(JSON_PROPERTY_CONTRACT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand All @@ -215,7 +229,9 @@ public ContractEnum getContract() {
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a
* payout](https://docs.adyen.com/online-payments/online-payouts).
* payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use
* this when you store payment details and send the raw card number or network token directly in
* your API request.
*
* @param contract The type of recurring contract to be used. Possible values: *
* `ONECLICK` – Payment details can be used to initiate a one-click payment, where
Expand All @@ -226,7 +242,9 @@ public ContractEnum getContract() {
* transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp).
* * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the
* shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make
* a payout](https://docs.adyen.com/online-payments/online-payouts).
* a payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` -
* Use this when you store payment details and send the raw card number or network token
* directly in your API request.
*/
@JsonProperty(JSON_PROPERTY_CONTRACT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,11 @@ public void setSubMerchantSubSellerSubSellerNrName(String subMerchantSubSellerSu

/**
* Required for transactions performed by registered payment facilitators. The phone number of the
* sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters
* sub-merchant. * Format: Alphanumeric and special characters * Maximum length: 20 characters
*
* @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by
* registered payment facilitators. The phone number of the sub-merchant.* Format:
* Alphanumeric * Maximum length: 20 characters
* registered payment facilitators. The phone number of the sub-merchant. * Format:
* Alphanumeric and special characters * Maximum length: 20 characters
* @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining
*/
public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPhoneNumber(
Expand All @@ -426,11 +426,11 @@ public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrPhoneNumber(

/**
* Required for transactions performed by registered payment facilitators. The phone number of the
* sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters
* sub-merchant. * Format: Alphanumeric and special characters * Maximum length: 20 characters
*
* @return subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by
* registered payment facilitators. The phone number of the sub-merchant.* Format:
* Alphanumeric * Maximum length: 20 characters
* registered payment facilitators. The phone number of the sub-merchant. * Format:
* Alphanumeric and special characters * Maximum length: 20 characters
*/
@JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand All @@ -440,11 +440,11 @@ public String getSubMerchantSubSellerSubSellerNrPhoneNumber() {

/**
* Required for transactions performed by registered payment facilitators. The phone number of the
* sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters
* sub-merchant. * Format: Alphanumeric and special characters * Maximum length: 20 characters
*
* @param subMerchantSubSellerSubSellerNrPhoneNumber Required for transactions performed by
* registered payment facilitators. The phone number of the sub-merchant.* Format:
* Alphanumeric * Maximum length: 20 characters
* registered payment facilitators. The phone number of the sub-merchant. * Format:
* Alphanumeric and special characters * Maximum length: 20 characters
*/
@JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_PHONE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand Down
Loading