Package com.adyen.model.management
Class JCBInfo
- java.lang.Object
-
- com.adyen.model.management.JCBInfo
-
public class JCBInfo extends Object
JCBInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJCBInfo.ServiceLevelEnumSpecifies the service level (settlement type) of this payment method.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MID_NUMBERstatic StringJSON_PROPERTY_REUSE_MID_NUMBERstatic StringJSON_PROPERTY_SERVICE_LEVELstatic StringJSON_PROPERTY_TRANSACTION_DESCRIPTION
-
Constructor Summary
Constructors Constructor Description JCBInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this JCBInfo object is equal to o.static JCBInfofromJson(String jsonString)Create an instance of JCBInfo given an JSON stringStringgetMidNumber()MID (Merchant ID) number.BooleangetReuseMidNumber()Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method.JCBInfo.ServiceLevelEnumgetServiceLevel()Specifies the service level (settlement type) of this payment method.TransactionDescriptionInfogetTransactionDescription()transactionDescriptioninthashCode()JCBInfomidNumber(String midNumber)MID (Merchant ID) number.JCBInforeuseMidNumber(Boolean reuseMidNumber)Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method.JCBInfoserviceLevel(JCBInfo.ServiceLevelEnum serviceLevel)Specifies the service level (settlement type) of this payment method.voidsetMidNumber(String midNumber)MID (Merchant ID) number.voidsetReuseMidNumber(Boolean reuseMidNumber)Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method.voidsetServiceLevel(JCBInfo.ServiceLevelEnum serviceLevel)Specifies the service level (settlement type) of this payment method.voidsetTransactionDescription(TransactionDescriptionInfo transactionDescription)transactionDescriptionStringtoJson()Convert an instance of JCBInfo to an JSON stringStringtoString()JCBInfotransactionDescription(TransactionDescriptionInfo transactionDescription)transactionDescription
-
-
-
Field Detail
-
JSON_PROPERTY_MID_NUMBER
public static final String JSON_PROPERTY_MID_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REUSE_MID_NUMBER
public static final String JSON_PROPERTY_REUSE_MID_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SERVICE_LEVEL
public static final String JSON_PROPERTY_SERVICE_LEVEL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRANSACTION_DESCRIPTION
public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
midNumber
public JCBInfo midNumber(String midNumber)
MID (Merchant ID) number. Format: 10 numeric characters. Must be provided for both `noContract` and `gatewayContract` service levels.- Parameters:
midNumber-- Returns:
- the current
JCBInfoinstance, allowing for method chaining
-
getMidNumber
public String getMidNumber()
MID (Merchant ID) number. Format: 10 numeric characters. Must be provided for both `noContract` and `gatewayContract` service levels.- Returns:
- midNumber
-
setMidNumber
public void setMidNumber(String midNumber)
MID (Merchant ID) number. Format: 10 numeric characters. Must be provided for both `noContract` and `gatewayContract` service levels.- Parameters:
midNumber-
-
reuseMidNumber
public JCBInfo reuseMidNumber(Boolean reuseMidNumber)
Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. This is applicable for both `noContract` and `gatewayContract` service levels. The default value is `false`.- Parameters:
reuseMidNumber-- Returns:
- the current
JCBInfoinstance, allowing for method chaining
-
getReuseMidNumber
public Boolean getReuseMidNumber()
Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. This is applicable for both `noContract` and `gatewayContract` service levels. The default value is `false`.- Returns:
- reuseMidNumber
-
setReuseMidNumber
public void setReuseMidNumber(Boolean reuseMidNumber)
Indicates whether the JCB Merchant ID is reused from a previously setup JCB payment method. This is applicable for both `noContract` and `gatewayContract` service levels. The default value is `false`.- Parameters:
reuseMidNumber-
-
serviceLevel
public JCBInfo serviceLevel(JCBInfo.ServiceLevelEnum serviceLevel)
Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with JCB. * **gatewayContract** — JCB receives the settlement and handles disputes. They then pay out to the merchant directly.- Parameters:
serviceLevel-- Returns:
- the current
JCBInfoinstance, allowing for method chaining
-
getServiceLevel
public JCBInfo.ServiceLevelEnum getServiceLevel()
Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with JCB. * **gatewayContract** — JCB receives the settlement and handles disputes. They then pay out to the merchant directly.- Returns:
- serviceLevel
-
setServiceLevel
public void setServiceLevel(JCBInfo.ServiceLevelEnum serviceLevel)
Specifies the service level (settlement type) of this payment method. Possible values: * **noContract** — Adyen holds the contract with JCB. * **gatewayContract** — JCB receives the settlement and handles disputes. They then pay out to the merchant directly.- Parameters:
serviceLevel-
-
transactionDescription
public JCBInfo transactionDescription(TransactionDescriptionInfo transactionDescription)
transactionDescription- Parameters:
transactionDescription-- Returns:
- the current
JCBInfoinstance, allowing for method chaining
-
getTransactionDescription
public TransactionDescriptionInfo getTransactionDescription()
transactionDescription- Returns:
- transactionDescription
-
setTransactionDescription
public void setTransactionDescription(TransactionDescriptionInfo transactionDescription)
transactionDescription- Parameters:
transactionDescription-
-
equals
public boolean equals(Object o)
Return true if this JCBInfo object is equal to o.
-
fromJson
public static JCBInfo fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of JCBInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of JCBInfo
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to JCBInfo
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of JCBInfo to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-