Class PlatformPayment
- java.lang.Object
-
- com.adyen.model.transactionwebhooks.PlatformPayment
-
public class PlatformPayment extends Object
PlatformPayment
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlatformPayment.PlatformPaymentTypeEnumSpecifies the nature of the transfer.static classPlatformPayment.TypeEnum**platformPayment**
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCEstatic StringJSON_PROPERTY_MODIFICATION_PSP_REFERENCEstatic StringJSON_PROPERTY_PAYMENT_MERCHANT_REFERENCEstatic StringJSON_PROPERTY_PLATFORM_PAYMENT_TYPEstatic StringJSON_PROPERTY_PSP_PAYMENT_REFERENCEstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description PlatformPayment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this PlatformPayment object is equal to o.static PlatformPaymentfromJson(String jsonString)Create an instance of PlatformPayment given an JSON stringStringgetModificationMerchantReference()The capture's merchant reference included in the transfer.StringgetModificationPspReference()The capture reference included in the transfer.StringgetPaymentMerchantReference()The payment's merchant reference included in the transfer.PlatformPayment.PlatformPaymentTypeEnumgetPlatformPaymentType()Specifies the nature of the transfer.StringgetPspPaymentReference()The payment reference included in the transfer.PlatformPayment.TypeEnumgetType()**platformPayment**inthashCode()PlatformPaymentmodificationMerchantReference(String modificationMerchantReference)The capture's merchant reference included in the transfer.PlatformPaymentmodificationPspReference(String modificationPspReference)The capture reference included in the transfer.PlatformPaymentpaymentMerchantReference(String paymentMerchantReference)The payment's merchant reference included in the transfer.PlatformPaymentplatformPaymentType(PlatformPayment.PlatformPaymentTypeEnum platformPaymentType)Specifies the nature of the transfer.PlatformPaymentpspPaymentReference(String pspPaymentReference)The payment reference included in the transfer.voidsetModificationMerchantReference(String modificationMerchantReference)The capture's merchant reference included in the transfer.voidsetModificationPspReference(String modificationPspReference)The capture reference included in the transfer.voidsetPaymentMerchantReference(String paymentMerchantReference)The payment's merchant reference included in the transfer.voidsetPlatformPaymentType(PlatformPayment.PlatformPaymentTypeEnum platformPaymentType)Specifies the nature of the transfer.voidsetPspPaymentReference(String pspPaymentReference)The payment reference included in the transfer.voidsetType(PlatformPayment.TypeEnum type)**platformPayment**StringtoJson()Convert an instance of PlatformPayment to an JSON stringStringtoString()PlatformPaymenttype(PlatformPayment.TypeEnum type)**platformPayment**
-
-
-
Field Detail
-
JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE
public static final String JSON_PROPERTY_MODIFICATION_MERCHANT_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MODIFICATION_PSP_REFERENCE
public static final String JSON_PROPERTY_MODIFICATION_PSP_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_MERCHANT_REFERENCE
public static final String JSON_PROPERTY_PAYMENT_MERCHANT_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PLATFORM_PAYMENT_TYPE
public static final String JSON_PROPERTY_PLATFORM_PAYMENT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PSP_PAYMENT_REFERENCE
public static final String JSON_PROPERTY_PSP_PAYMENT_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
modificationMerchantReference
public PlatformPayment modificationMerchantReference(String modificationMerchantReference)
The capture's merchant reference included in the transfer.- Parameters:
modificationMerchantReference-- Returns:
- the current
PlatformPaymentinstance, allowing for method chaining
-
getModificationMerchantReference
public String getModificationMerchantReference()
The capture's merchant reference included in the transfer.- Returns:
- modificationMerchantReference
-
setModificationMerchantReference
public void setModificationMerchantReference(String modificationMerchantReference)
The capture's merchant reference included in the transfer.- Parameters:
modificationMerchantReference-
-
modificationPspReference
public PlatformPayment modificationPspReference(String modificationPspReference)
The capture reference included in the transfer.- Parameters:
modificationPspReference-- Returns:
- the current
PlatformPaymentinstance, allowing for method chaining
-
getModificationPspReference
public String getModificationPspReference()
The capture reference included in the transfer.- Returns:
- modificationPspReference
-
setModificationPspReference
public void setModificationPspReference(String modificationPspReference)
The capture reference included in the transfer.- Parameters:
modificationPspReference-
-
paymentMerchantReference
public PlatformPayment paymentMerchantReference(String paymentMerchantReference)
The payment's merchant reference included in the transfer.- Parameters:
paymentMerchantReference-- Returns:
- the current
PlatformPaymentinstance, allowing for method chaining
-
getPaymentMerchantReference
public String getPaymentMerchantReference()
The payment's merchant reference included in the transfer.- Returns:
- paymentMerchantReference
-
setPaymentMerchantReference
public void setPaymentMerchantReference(String paymentMerchantReference)
The payment's merchant reference included in the transfer.- Parameters:
paymentMerchantReference-
-
platformPaymentType
public PlatformPayment platformPaymentType(PlatformPayment.PlatformPaymentTypeEnum platformPaymentType)
Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax.- Parameters:
platformPaymentType-- Returns:
- the current
PlatformPaymentinstance, allowing for method chaining
-
getPlatformPaymentType
public PlatformPayment.PlatformPaymentTypeEnum getPlatformPaymentType()
Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax.- Returns:
- platformPaymentType
-
setPlatformPaymentType
public void setPlatformPaymentType(PlatformPayment.PlatformPaymentTypeEnum platformPaymentType)
Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: for all the transaction fees due to Adyen. This is the sum of Adyen's commission and Adyen's markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform's commission on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user's balance account. * **VAT**: for the Value Added Tax.- Parameters:
platformPaymentType-
-
pspPaymentReference
public PlatformPayment pspPaymentReference(String pspPaymentReference)
The payment reference included in the transfer.- Parameters:
pspPaymentReference-- Returns:
- the current
PlatformPaymentinstance, allowing for method chaining
-
getPspPaymentReference
public String getPspPaymentReference()
The payment reference included in the transfer.- Returns:
- pspPaymentReference
-
setPspPaymentReference
public void setPspPaymentReference(String pspPaymentReference)
The payment reference included in the transfer.- Parameters:
pspPaymentReference-
-
type
public PlatformPayment type(PlatformPayment.TypeEnum type)
**platformPayment**- Parameters:
type-- Returns:
- the current
PlatformPaymentinstance, allowing for method chaining
-
getType
public PlatformPayment.TypeEnum getType()
**platformPayment**- Returns:
- type
-
setType
public void setType(PlatformPayment.TypeEnum type)
**platformPayment**- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this PlatformPayment object is equal to o.
-
fromJson
public static PlatformPayment fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PlatformPayment given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PlatformPayment
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PlatformPayment
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PlatformPayment to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-