Class Processing.ProcessingBuilder

  • Enclosing class:
    Processing

    public static class Processing.ProcessingBuilder
    extends java.lang.Object
    • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object