Package com.adyen.model.management
Class Merchant
- java.lang.Object
-
- com.adyen.model.management.Merchant
-
public class Merchant extends Object
Merchant
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMerchant.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CAPTURE_DELAYstatic StringSERIALIZED_NAME_COMPANY_IDstatic StringSERIALIZED_NAME_DATA_CENTERSstatic StringSERIALIZED_NAME_DEFAULT_SHOPPER_INTERACTIONstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_LINKSstatic StringSERIALIZED_NAME_MERCHANT_CITYstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_PRICING_PLANstatic StringSERIALIZED_NAME_PRIMARY_SETTLEMENT_CURRENCYstatic StringSERIALIZED_NAME_REFERENCEstatic StringSERIALIZED_NAME_SHOP_WEB_ADDRESSstatic StringSERIALIZED_NAME_STATUS
-
Constructor Summary
Constructors Constructor Description Merchant()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MerchantaddDataCentersItem(DataCenter dataCentersItem)MerchantcaptureDelay(String captureDelay)MerchantcompanyId(String companyId)MerchantdataCenters(List<DataCenter> dataCenters)MerchantdefaultShopperInteraction(String defaultShopperInteraction)Merchantdescription(String description)booleanequals(Object o)static MerchantfromJson(String jsonString)Create an instance of Merchant given an JSON stringStringgetCaptureDelay()The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant account.StringgetCompanyId()The unique identifier of the company account this merchant belongs toList<DataCenter>getDataCenters()List of available data centers.StringgetDefaultShopperInteraction()The default [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) value used when processing payments through this merchant account.StringgetDescription()Your description for the merchant account, maximum 300 charactersStringgetId()The unique identifier of the merchant account.MerchantLinksgetLinks()Get linksStringgetMerchantCity()The city where the legal entity of this merchant account is registered.StringgetName()The name of the legal entity associated with the merchant account.StringgetPricingPlan()Only applies to merchant accounts managed by Adyen's partners.StringgetPrimarySettlementCurrency()The currency of the country where the legal entity of this merchant account is registered.StringgetReference()Reference of the merchant account.StringgetShopWebAddress()The URL for the ecommerce website used with this merchant account.StringgetStatus()The status of the merchant account.inthashCode()Merchantid(String id)Merchantlinks(MerchantLinks links)MerchantmerchantCity(String merchantCity)Merchantname(String name)MerchantpricingPlan(String pricingPlan)MerchantprimarySettlementCurrency(String primarySettlementCurrency)Merchantreference(String reference)voidsetCaptureDelay(String captureDelay)voidsetCompanyId(String companyId)voidsetDataCenters(List<DataCenter> dataCenters)voidsetDefaultShopperInteraction(String defaultShopperInteraction)voidsetDescription(String description)voidsetId(String id)voidsetLinks(MerchantLinks links)voidsetMerchantCity(String merchantCity)voidsetName(String name)voidsetPricingPlan(String pricingPlan)voidsetPrimarySettlementCurrency(String primarySettlementCurrency)voidsetReference(String reference)voidsetShopWebAddress(String shopWebAddress)voidsetStatus(String status)MerchantshopWebAddress(String shopWebAddress)Merchantstatus(String status)StringtoJson()Convert an instance of Merchant to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_LINKS
public static final String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CAPTURE_DELAY
public static final String SERIALIZED_NAME_CAPTURE_DELAY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COMPANY_ID
public static final String SERIALIZED_NAME_COMPANY_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DATA_CENTERS
public static final String SERIALIZED_NAME_DATA_CENTERS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEFAULT_SHOPPER_INTERACTION
public static final String SERIALIZED_NAME_DEFAULT_SHOPPER_INTERACTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_CITY
public static final String SERIALIZED_NAME_MERCHANT_CITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRICING_PLAN
public static final String SERIALIZED_NAME_PRICING_PLAN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PRIMARY_SETTLEMENT_CURRENCY
public static final String SERIALIZED_NAME_PRIMARY_SETTLEMENT_CURRENCY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REFERENCE
public static final String SERIALIZED_NAME_REFERENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SHOP_WEB_ADDRESS
public static final String SERIALIZED_NAME_SHOP_WEB_ADDRESS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
links
public Merchant links(MerchantLinks links)
-
getLinks
public MerchantLinks getLinks()
Get links- Returns:
- links
-
setLinks
public void setLinks(MerchantLinks links)
-
getCaptureDelay
public String getCaptureDelay()
The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to **29**- Returns:
- captureDelay
-
setCaptureDelay
public void setCaptureDelay(String captureDelay)
-
getCompanyId
public String getCompanyId()
The unique identifier of the company account this merchant belongs to- Returns:
- companyId
-
setCompanyId
public void setCompanyId(String companyId)
-
dataCenters
public Merchant dataCenters(List<DataCenter> dataCenters)
-
addDataCentersItem
public Merchant addDataCentersItem(DataCenter dataCentersItem)
-
getDataCenters
public List<DataCenter> getDataCenters()
List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers.- Returns:
- dataCenters
-
setDataCenters
public void setDataCenters(List<DataCenter> dataCenters)
-
defaultShopperInteraction
public Merchant defaultShopperInteraction(String defaultShopperInteraction)
-
getDefaultShopperInteraction
public String getDefaultShopperInteraction()
The default [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) value used when processing payments through this merchant account.- Returns:
- defaultShopperInteraction
-
setDefaultShopperInteraction
public void setDefaultShopperInteraction(String defaultShopperInteraction)
-
getDescription
public String getDescription()
Your description for the merchant account, maximum 300 characters- Returns:
- description
-
setDescription
public void setDescription(String description)
-
getId
public String getId()
The unique identifier of the merchant account.- Returns:
- id
-
setId
public void setId(String id)
-
getMerchantCity
public String getMerchantCity()
The city where the legal entity of this merchant account is registered.- Returns:
- merchantCity
-
setMerchantCity
public void setMerchantCity(String merchantCity)
-
getName
public String getName()
The name of the legal entity associated with the merchant account.- Returns:
- name
-
setName
public void setName(String name)
-
getPricingPlan
public String getPricingPlan()
Only applies to merchant accounts managed by Adyen's partners. The name of the pricing plan assigned to the merchant account.- Returns:
- pricingPlan
-
setPricingPlan
public void setPricingPlan(String pricingPlan)
-
primarySettlementCurrency
public Merchant primarySettlementCurrency(String primarySettlementCurrency)
-
getPrimarySettlementCurrency
public String getPrimarySettlementCurrency()
The currency of the country where the legal entity of this merchant account is registered. Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal entity based in the United States has USD as the primary settlement currency.- Returns:
- primarySettlementCurrency
-
setPrimarySettlementCurrency
public void setPrimarySettlementCurrency(String primarySettlementCurrency)
-
getReference
public String getReference()
Reference of the merchant account.- Returns:
- reference
-
setReference
public void setReference(String reference)
-
getShopWebAddress
public String getShopWebAddress()
The URL for the ecommerce website used with this merchant account.- Returns:
- shopWebAddress
-
setShopWebAddress
public void setShopWebAddress(String shopWebAddress)
-
getStatus
public String getStatus()
The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You cannot process new payments but you can still modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled.- Returns:
- status
-
setStatus
public void setStatus(String status)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to Merchant
-
fromJson
public static Merchant fromJson(String jsonString) throws IOException
Create an instance of Merchant given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Merchant
- Throws:
IOException- if the JSON string is invalid with respect to Merchant
-
toJson
public String toJson()
Convert an instance of Merchant to an JSON string- Returns:
- JSON string
-
-