Class MidServiceNotificationData
- java.lang.Object
-
- com.adyen.model.managementwebhooks.MidServiceNotificationData
-
public class MidServiceNotificationData extends Object
MidServiceNotificationData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMidServiceNotificationData.StatusEnumThe status of the request to add a payment method.static classMidServiceNotificationData.VerificationStatusEnumPayment method status.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ALLOWEDstatic StringJSON_PROPERTY_ENABLEDstatic StringJSON_PROPERTY_IDstatic StringJSON_PROPERTY_MERCHANT_IDstatic StringJSON_PROPERTY_REFERENCEstatic StringJSON_PROPERTY_STATUSstatic StringJSON_PROPERTY_STORE_IDstatic StringJSON_PROPERTY_TYPEstatic StringJSON_PROPERTY_VERIFICATION_STATUS
-
Constructor Summary
Constructors Constructor Description MidServiceNotificationData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MidServiceNotificationDataallowed(Boolean allowed)MidServiceNotificationDataenabled(Boolean enabled)booleanequals(Object o)Return true if this MidServiceNotificationData object is equal to o.static MidServiceNotificationDatafromJson(String jsonString)Create an instance of MidServiceNotificationData given an JSON stringBooleangetAllowed()Indicates whether receiving payments is allowed.BooleangetEnabled()Indicates whether the payment method is enabled (**true**) or disabled (**false**).StringgetId()The unique identifier of the resource.StringgetMerchantId()The unique identifier of the merchant account.StringgetReference()Your reference for the payment method.MidServiceNotificationData.StatusEnumgetStatus()The status of the request to add a payment method.StringgetStoreId()The unique identifier of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), if any.StringgetType()Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).MidServiceNotificationData.VerificationStatusEnumgetVerificationStatus()Payment method status.inthashCode()MidServiceNotificationDataid(String id)MidServiceNotificationDatamerchantId(String merchantId)MidServiceNotificationDatareference(String reference)voidsetAllowed(Boolean allowed)Indicates whether receiving payments is allowed.voidsetEnabled(Boolean enabled)Indicates whether the payment method is enabled (**true**) or disabled (**false**).voidsetId(String id)The unique identifier of the resource.voidsetMerchantId(String merchantId)The unique identifier of the merchant account.voidsetReference(String reference)Your reference for the payment method.voidsetStatus(MidServiceNotificationData.StatusEnum status)The status of the request to add a payment method.voidsetStoreId(String storeId)The unique identifier of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), if any.voidsetType(String type)Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).voidsetVerificationStatus(MidServiceNotificationData.VerificationStatusEnum verificationStatus)Payment method status.MidServiceNotificationDatastatus(MidServiceNotificationData.StatusEnum status)MidServiceNotificationDatastoreId(String storeId)StringtoJson()Convert an instance of MidServiceNotificationData to an JSON stringStringtoString()MidServiceNotificationDatatype(String type)MidServiceNotificationDataverificationStatus(MidServiceNotificationData.VerificationStatusEnum verificationStatus)
-
-
-
Field Detail
-
JSON_PROPERTY_ALLOWED
public static final String JSON_PROPERTY_ALLOWED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ENABLED
public static final String JSON_PROPERTY_ENABLED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_ID
public static final String JSON_PROPERTY_MERCHANT_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFERENCE
public static final String JSON_PROPERTY_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORE_ID
public static final String JSON_PROPERTY_STORE_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VERIFICATION_STATUS
public static final String JSON_PROPERTY_VERIFICATION_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
allowed
public MidServiceNotificationData allowed(Boolean allowed)
-
getAllowed
public Boolean getAllowed()
Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account.- Returns:
- allowed
-
setAllowed
public void setAllowed(Boolean allowed)
Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account.- Parameters:
allowed-
-
enabled
public MidServiceNotificationData enabled(Boolean enabled)
-
getEnabled
public Boolean getEnabled()
Indicates whether the payment method is enabled (**true**) or disabled (**false**).- Returns:
- enabled
-
setEnabled
public void setEnabled(Boolean enabled)
Indicates whether the payment method is enabled (**true**) or disabled (**false**).- Parameters:
enabled-
-
id
public MidServiceNotificationData id(String id)
-
getId
public String getId()
The unique identifier of the resource.- Returns:
- id
-
setId
public void setId(String id)
The unique identifier of the resource.- Parameters:
id-
-
merchantId
public MidServiceNotificationData merchantId(String merchantId)
-
getMerchantId
public String getMerchantId()
The unique identifier of the merchant account.- Returns:
- merchantId
-
setMerchantId
public void setMerchantId(String merchantId)
The unique identifier of the merchant account.- Parameters:
merchantId-
-
reference
public MidServiceNotificationData reference(String reference)
-
getReference
public String getReference()
Your reference for the payment method.- Returns:
- reference
-
setReference
public void setReference(String reference)
Your reference for the payment method.- Parameters:
reference-
-
status
public MidServiceNotificationData status(MidServiceNotificationData.StatusEnum status)
-
getStatus
public MidServiceNotificationData.StatusEnum getStatus()
The status of the request to add a payment method. Possible values: * **success**: the payment method was added. * **failure**: the request failed. * **capabilityPending**: the **receivePayments** capability is not allowed.- Returns:
- status
-
setStatus
public void setStatus(MidServiceNotificationData.StatusEnum status)
The status of the request to add a payment method. Possible values: * **success**: the payment method was added. * **failure**: the request failed. * **capabilityPending**: the **receivePayments** capability is not allowed.- Parameters:
status-
-
storeId
public MidServiceNotificationData storeId(String storeId)
-
getStoreId
public String getStoreId()
The unique identifier of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), if any.- Returns:
- storeId
-
setStoreId
public void setStoreId(String storeId)
The unique identifier of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/merchants/{id}/paymentMethodSettings__reqParam_storeId), if any.- Parameters:
storeId-
-
type
public MidServiceNotificationData type(String type)
-
getType
public String getType()
Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).- Returns:
- type
-
setType
public void setType(String type)
Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api).- Parameters:
type-
-
verificationStatus
public MidServiceNotificationData verificationStatus(MidServiceNotificationData.VerificationStatusEnum verificationStatus)
-
getVerificationStatus
public MidServiceNotificationData.VerificationStatusEnum getVerificationStatus()
Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected**- Returns:
- verificationStatus
-
setVerificationStatus
public void setVerificationStatus(MidServiceNotificationData.VerificationStatusEnum verificationStatus)
Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected**- Parameters:
verificationStatus-
-
equals
public boolean equals(Object o)
Return true if this MidServiceNotificationData object is equal to o.
-
fromJson
public static MidServiceNotificationData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of MidServiceNotificationData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of MidServiceNotificationData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to MidServiceNotificationData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of MidServiceNotificationData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-