Class Processing.ProcessingBuilder
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.flow.paymentsessionscomplete.requests.Processing.ProcessingBuilder
-
- Enclosing class:
- Processing
public static class Processing.ProcessingBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Processing.ProcessingBuilderaccommodationData(java.util.List<AccommodationData> accommodationData)Contains information about the accommodation booked by the customer.Processing.ProcessingBuilderaft(java.lang.Boolean aft)Indicates whether the payment is an Account Funding TransactionProcessing.ProcessingBuilderairlineData(java.util.List<AirlineData> airlineData)Contains information about the airline ticket and flights booked by the customer.Processing.ProcessingBuilderbrandName(java.lang.String brandName)The label that overrides the business name in the PayPal account on the PayPal pages.Processingbuild()Processing.ProcessingBuildercampaignId(java.lang.Long campaignId)Unique number of the campaign this payment will be running in.Processing.ProcessingBuildercustomPaymentMethodIds(java.util.List<java.lang.String> customPaymentMethodIds)Promo codes - An array that can be used to define which of the configured payment options within a payment category (pay_later, pay_over_time, etc.) should be shown for this purchase.Processing.ProcessingBuilderdiscountAmount(java.lang.Double discountAmount)The discount amount applied to the transaction by the merchant.Processing.ProcessingBuilderdutyAmount(java.lang.Double dutyAmount)The total charges for any import/export duty included in the transaction.Processing.ProcessingBuilderinvoiceId(java.lang.String invoiceId)Invoice ID number.Processing.ProcessingBuilderlineOfBusiness(java.lang.String lineOfBusiness)Beta The line of business that the payment is associated with.Processing.ProcessingBuilderlocale(java.lang.String locale)The language and region of the customer in ISO 639-2 language code; value consists of language-country.Processing.ProcessingBuildermerchantCallbackUrl(java.lang.String merchantCallbackUrl)A URL which you can use to notify the customer that the order has been created.Processing.ProcessingBuildermerchantInitiatedReason(MerchantInitiatedReasonType merchantInitiatedReason)Indicates the reason for a merchant-initiated payment request.Processing.ProcessingBuilderorderId(java.lang.String orderId)The number provided by the cardholder.Processing.ProcessingBuilderoriginalOrderAmount(java.lang.Double originalOrderAmount)The payment for a merchant's order may be split, and the original order price indicates the transaction amount of the entire order.Processing.ProcessingBuilderpanPreference(PanPreferenceType panPreference)Specifies the preferred type of Primary Account Number (PAN) for the payment: DPAN: Uses the Checkout.com Network Token.Processing.ProcessingBuilderpartnerCustomerRiskData(java.util.List<PartnerCustomerRiskData> partnerCustomerRiskData)An array of key-and-value pairs with merchant-specific data for the transaction.Processing.ProcessingBuilderprovisionNetworkToken(java.lang.Boolean provisionNetworkToken)Default: true Indicates whether to provision a network token for the payment.Processing.ProcessingBuilderpurchaseCountry(java.lang.String purchaseCountry)The purchase country of the customer.Processing.ProcessingBuilderreceiptId(java.lang.String receiptId)Merchant receipt ID.Processing.ProcessingBuildershippingAmount(java.lang.Double shippingAmount)The total freight or shipping and handling charges for the transaction.Processing.ProcessingBuildershippingTaxAmount(java.lang.Double shippingTaxAmount)The tax amount of the freight or shipping and handling charges for the transaction.Processing.ProcessingBuildersurchargeAmount(java.lang.Long surchargeAmount)Surcharge amount applied to the transaction in minor units by the merchant.Processing.ProcessingBuildertaxAmount(java.lang.Double taxAmount)The customer's value-added tax registration number.java.lang.StringtoString()
-
-
-
Method Detail
-
aft
public Processing.ProcessingBuilder aft(java.lang.Boolean aft)
Indicates whether the payment is an Account Funding Transaction- Returns:
this.
-
discountAmount
public Processing.ProcessingBuilder discountAmount(java.lang.Double discountAmount)
The discount amount applied to the transaction by the merchant.- Returns:
this.
-
shippingAmount
public Processing.ProcessingBuilder shippingAmount(java.lang.Double shippingAmount)
The total freight or shipping and handling charges for the transaction.- Returns:
this.
-
taxAmount
public Processing.ProcessingBuilder taxAmount(java.lang.Double taxAmount)
The customer's value-added tax registration number.- Returns:
this.
-
invoiceId
public Processing.ProcessingBuilder invoiceId(java.lang.String invoiceId)
Invoice ID number.- Returns:
this.
-
brandName
public Processing.ProcessingBuilder brandName(java.lang.String brandName)
The label that overrides the business name in the PayPal account on the PayPal pages.- Returns:
this.
-
locale
public Processing.ProcessingBuilder locale(java.lang.String locale)
The language and region of the customer in ISO 639-2 language code; value consists of language-country.- Returns:
this.
-
partnerCustomerRiskData
public Processing.ProcessingBuilder partnerCustomerRiskData(java.util.List<PartnerCustomerRiskData> partnerCustomerRiskData)
An array of key-and-value pairs with merchant-specific data for the transaction.- Returns:
this.
-
customPaymentMethodIds
public Processing.ProcessingBuilder customPaymentMethodIds(java.util.List<java.lang.String> customPaymentMethodIds)
Promo codes - An array that can be used to define which of the configured payment options within a payment category (pay_later, pay_over_time, etc.) should be shown for this purchase.- Returns:
this.
-
airlineData
public Processing.ProcessingBuilder airlineData(java.util.List<AirlineData> airlineData)
Contains information about the airline ticket and flights booked by the customer.- Returns:
this.
-
accommodationData
public Processing.ProcessingBuilder accommodationData(java.util.List<AccommodationData> accommodationData)
Contains information about the accommodation booked by the customer.- Returns:
this.
-
orderId
public Processing.ProcessingBuilder orderId(java.lang.String orderId)
The number provided by the cardholder. Purchase order or invoice number may be used.- Returns:
this.
-
surchargeAmount
public Processing.ProcessingBuilder surchargeAmount(java.lang.Long surchargeAmount)
Surcharge amount applied to the transaction in minor units by the merchant.- Returns:
this.
-
dutyAmount
public Processing.ProcessingBuilder dutyAmount(java.lang.Double dutyAmount)
The total charges for any import/export duty included in the transaction.- Returns:
this.
-
shippingTaxAmount
public Processing.ProcessingBuilder shippingTaxAmount(java.lang.Double shippingTaxAmount)
The tax amount of the freight or shipping and handling charges for the transaction.- Returns:
this.
-
purchaseCountry
public Processing.ProcessingBuilder purchaseCountry(java.lang.String purchaseCountry)
The purchase country of the customer. ISO 3166 alpha-2 purchase country.- Returns:
this.
-
merchantInitiatedReason
public Processing.ProcessingBuilder merchantInitiatedReason(MerchantInitiatedReasonType merchantInitiatedReason)
Indicates the reason for a merchant-initiated payment request.- Returns:
this.
-
campaignId
public Processing.ProcessingBuilder campaignId(java.lang.Long campaignId)
Unique number of the campaign this payment will be running in. Only required for Afterpay campaign invoices.- Returns:
this.
-
originalOrderAmount
public Processing.ProcessingBuilder originalOrderAmount(java.lang.Double originalOrderAmount)
The payment for a merchant's order may be split, and the original order price indicates the transaction amount of the entire order.- Returns:
this.
-
receiptId
public Processing.ProcessingBuilder receiptId(java.lang.String receiptId)
Merchant receipt ID.- Returns:
this.
-
merchantCallbackUrl
public Processing.ProcessingBuilder merchantCallbackUrl(java.lang.String merchantCallbackUrl)
A URL which you can use to notify the customer that the order has been created.- Returns:
this.
-
lineOfBusiness
public Processing.ProcessingBuilder lineOfBusiness(java.lang.String lineOfBusiness)
Beta The line of business that the payment is associated with.- Returns:
this.
-
panPreference
public Processing.ProcessingBuilder panPreference(PanPreferenceType panPreference)
Specifies the preferred type of Primary Account Number (PAN) for the payment: DPAN: Uses the Checkout.com Network Token. FPAN: Uses the full card number. Note: This only works when source.type is any of: cards instruments tokens- Returns:
this.
-
provisionNetworkToken
public Processing.ProcessingBuilder provisionNetworkToken(java.lang.Boolean provisionNetworkToken)
Default: true Indicates whether to provision a network token for the payment.- Returns:
this.
-
build
public Processing build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-