Class Processing


  • public final class Processing
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Processing()  
      Processing​(java.lang.Boolean aft, java.lang.Double discountAmount, java.lang.Double shippingAmount, java.lang.Double taxAmount, java.lang.String invoiceId, java.lang.String brandName, java.lang.String locale, java.util.List<PartnerCustomerRiskData> partnerCustomerRiskData, java.util.List<java.lang.String> customPaymentMethodIds, java.util.List<AirlineData> airlineData, java.util.List<AccommodationData> accommodationData, java.lang.String orderId, java.lang.Long surchargeAmount, java.lang.Double dutyAmount, java.lang.Double shippingTaxAmount, java.lang.String purchaseCountry, MerchantInitiatedReasonType merchantInitiatedReason, java.lang.Long campaignId, java.lang.Double originalOrderAmount, java.lang.String receiptId, java.lang.String merchantCallbackUrl, java.lang.String lineOfBusiness, PanPreferenceType panPreference, java.lang.Boolean provisionNetworkToken)
      Creates a new Processing instance.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Processing.ProcessingBuilder builder()  
      boolean equals​(java.lang.Object o)  
      java.util.List<AccommodationData> getAccommodationData()
      Contains information about the accommodation booked by the customer.
      java.lang.Boolean getAft()
      Indicates whether the payment is an Account Funding Transaction
      java.util.List<AirlineData> getAirlineData()
      Contains information about the airline ticket and flights booked by the customer.
      java.lang.String getBrandName()
      The label that overrides the business name in the PayPal account on the PayPal pages.
      java.lang.Long getCampaignId()
      Unique number of the campaign this payment will be running in.
      java.util.List<java.lang.String> getCustomPaymentMethodIds()
      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.
      java.lang.Double getDiscountAmount()
      The discount amount applied to the transaction by the merchant.
      java.lang.Double getDutyAmount()
      The total charges for any import/export duty included in the transaction.
      java.lang.String getInvoiceId()
      Invoice ID number.
      java.lang.String getLineOfBusiness()
      Beta The line of business that the payment is associated with.
      java.lang.String getLocale()
      The language and region of the customer in ISO 639-2 language code; value consists of language-country.
      java.lang.String getMerchantCallbackUrl()
      A URL which you can use to notify the customer that the order has been created.
      MerchantInitiatedReasonType getMerchantInitiatedReason()
      Indicates the reason for a merchant-initiated payment request.
      java.lang.String getOrderId()
      The number provided by the cardholder.
      java.lang.Double getOriginalOrderAmount()
      The payment for a merchant's order may be split, and the original order price indicates the transaction amount of the entire order.
      PanPreferenceType getPanPreference()
      Specifies the preferred type of Primary Account Number (PAN) for the payment: DPAN: Uses the Checkout.com Network Token.
      java.util.List<PartnerCustomerRiskData> getPartnerCustomerRiskData()
      An array of key-and-value pairs with merchant-specific data for the transaction.
      java.lang.Boolean getProvisionNetworkToken()
      Default: true Indicates whether to provision a network token for the payment.
      java.lang.String getPurchaseCountry()
      The purchase country of the customer.
      java.lang.String getReceiptId()
      Merchant receipt ID.
      java.lang.Double getShippingAmount()
      The total freight or shipping and handling charges for the transaction.
      java.lang.Double getShippingTaxAmount()
      The tax amount of the freight or shipping and handling charges for the transaction.
      java.lang.Long getSurchargeAmount()
      Surcharge amount applied to the transaction in minor units by the merchant.
      java.lang.Double getTaxAmount()
      The customer's value-added tax registration number.
      int hashCode()  
      void setAccommodationData​(java.util.List<AccommodationData> accommodationData)
      Contains information about the accommodation booked by the customer.
      void setAft​(java.lang.Boolean aft)
      Indicates whether the payment is an Account Funding Transaction
      void setAirlineData​(java.util.List<AirlineData> airlineData)
      Contains information about the airline ticket and flights booked by the customer.
      void setBrandName​(java.lang.String brandName)
      The label that overrides the business name in the PayPal account on the PayPal pages.
      void setCampaignId​(java.lang.Long campaignId)
      Unique number of the campaign this payment will be running in.
      void setCustomPaymentMethodIds​(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.
      void setDiscountAmount​(java.lang.Double discountAmount)
      The discount amount applied to the transaction by the merchant.
      void setDutyAmount​(java.lang.Double dutyAmount)
      The total charges for any import/export duty included in the transaction.
      void setInvoiceId​(java.lang.String invoiceId)
      Invoice ID number.
      void setLineOfBusiness​(java.lang.String lineOfBusiness)
      Beta The line of business that the payment is associated with.
      void setLocale​(java.lang.String locale)
      The language and region of the customer in ISO 639-2 language code; value consists of language-country.
      void setMerchantCallbackUrl​(java.lang.String merchantCallbackUrl)
      A URL which you can use to notify the customer that the order has been created.
      void setMerchantInitiatedReason​(MerchantInitiatedReasonType merchantInitiatedReason)
      Indicates the reason for a merchant-initiated payment request.
      void setOrderId​(java.lang.String orderId)
      The number provided by the cardholder.
      void setOriginalOrderAmount​(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.
      void setPanPreference​(PanPreferenceType panPreference)
      Specifies the preferred type of Primary Account Number (PAN) for the payment: DPAN: Uses the Checkout.com Network Token.
      void setPartnerCustomerRiskData​(java.util.List<PartnerCustomerRiskData> partnerCustomerRiskData)
      An array of key-and-value pairs with merchant-specific data for the transaction.
      void setProvisionNetworkToken​(java.lang.Boolean provisionNetworkToken)
      Default: true Indicates whether to provision a network token for the payment.
      void setPurchaseCountry​(java.lang.String purchaseCountry)
      The purchase country of the customer.
      void setReceiptId​(java.lang.String receiptId)
      Merchant receipt ID.
      void setShippingAmount​(java.lang.Double shippingAmount)
      The total freight or shipping and handling charges for the transaction.
      void setShippingTaxAmount​(java.lang.Double shippingTaxAmount)
      The tax amount of the freight or shipping and handling charges for the transaction.
      void setSurchargeAmount​(java.lang.Long surchargeAmount)
      Surcharge amount applied to the transaction in minor units by the merchant.
      void setTaxAmount​(java.lang.Double taxAmount)
      The customer's value-added tax registration number.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Processing

        public Processing()
      • Processing

        public Processing​(java.lang.Boolean aft,
                          java.lang.Double discountAmount,
                          java.lang.Double shippingAmount,
                          java.lang.Double taxAmount,
                          java.lang.String invoiceId,
                          java.lang.String brandName,
                          java.lang.String locale,
                          java.util.List<PartnerCustomerRiskData> partnerCustomerRiskData,
                          java.util.List<java.lang.String> customPaymentMethodIds,
                          java.util.List<AirlineData> airlineData,
                          java.util.List<AccommodationData> accommodationData,
                          java.lang.String orderId,
                          java.lang.Long surchargeAmount,
                          java.lang.Double dutyAmount,
                          java.lang.Double shippingTaxAmount,
                          java.lang.String purchaseCountry,
                          MerchantInitiatedReasonType merchantInitiatedReason,
                          java.lang.Long campaignId,
                          java.lang.Double originalOrderAmount,
                          java.lang.String receiptId,
                          java.lang.String merchantCallbackUrl,
                          java.lang.String lineOfBusiness,
                          PanPreferenceType panPreference,
                          java.lang.Boolean provisionNetworkToken)
        Creates a new Processing instance.
        Parameters:
        aft - Indicates whether the payment is an Account Funding Transaction
        discountAmount - The discount amount applied to the transaction by the merchant.
        shippingAmount - The total freight or shipping and handling charges for the transaction.
        taxAmount - The customer's value-added tax registration number.
        invoiceId - Invoice ID number.
        brandName - The label that overrides the business name in the PayPal account on the PayPal pages.
        locale - The language and region of the customer in ISO 639-2 language code; value consists of language-country.
        partnerCustomerRiskData - An array of key-and-value pairs with merchant-specific data for the transaction.
        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.
        airlineData - Contains information about the airline ticket and flights booked by the customer.
        accommodationData - Contains information about the accommodation booked by the customer.
        orderId - The number provided by the cardholder. Purchase order or invoice number may be used.
        surchargeAmount - Surcharge amount applied to the transaction in minor units by the merchant.
        dutyAmount - The total charges for any import/export duty included in the transaction.
        shippingTaxAmount - The tax amount of the freight or shipping and handling charges for the transaction.
        purchaseCountry - The purchase country of the customer. ISO 3166 alpha-2 purchase country.
        merchantInitiatedReason - Indicates the reason for a merchant-initiated payment request.
        campaignId - Unique number of the campaign this payment will be running in. Only required for Afterpay campaign invoices.
        originalOrderAmount - The payment for a merchant's order may be split, and the original order price indicates the transaction amount of the entire order.
        receiptId - Merchant receipt ID.
        merchantCallbackUrl - A URL which you can use to notify the customer that the order has been created.
        lineOfBusiness - Beta The line of business that the payment is associated with.
        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
        provisionNetworkToken - Default: true Indicates whether to provision a network token for the payment.
    • Method Detail

      • getAft

        public java.lang.Boolean getAft()
        Indicates whether the payment is an Account Funding Transaction
      • getDiscountAmount

        public java.lang.Double getDiscountAmount()
        The discount amount applied to the transaction by the merchant.
      • getShippingAmount

        public java.lang.Double getShippingAmount()
        The total freight or shipping and handling charges for the transaction.
      • getTaxAmount

        public java.lang.Double getTaxAmount()
        The customer's value-added tax registration number.
      • getInvoiceId

        public java.lang.String getInvoiceId()
        Invoice ID number.
      • getBrandName

        public java.lang.String getBrandName()
        The label that overrides the business name in the PayPal account on the PayPal pages.
      • getLocale

        public java.lang.String getLocale()
        The language and region of the customer in ISO 639-2 language code; value consists of language-country.
      • getPartnerCustomerRiskData

        public java.util.List<PartnerCustomerRiskData> getPartnerCustomerRiskData()
        An array of key-and-value pairs with merchant-specific data for the transaction.
      • getCustomPaymentMethodIds

        public java.util.List<java.lang.String> getCustomPaymentMethodIds()
        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.
      • getAirlineData

        public java.util.List<AirlineData> getAirlineData()
        Contains information about the airline ticket and flights booked by the customer.
      • getAccommodationData

        public java.util.List<AccommodationData> getAccommodationData()
        Contains information about the accommodation booked by the customer.
      • getOrderId

        public java.lang.String getOrderId()
        The number provided by the cardholder. Purchase order or invoice number may be used.
      • getSurchargeAmount

        public java.lang.Long getSurchargeAmount()
        Surcharge amount applied to the transaction in minor units by the merchant.
      • getDutyAmount

        public java.lang.Double getDutyAmount()
        The total charges for any import/export duty included in the transaction.
      • getShippingTaxAmount

        public java.lang.Double getShippingTaxAmount()
        The tax amount of the freight or shipping and handling charges for the transaction.
      • getPurchaseCountry

        public java.lang.String getPurchaseCountry()
        The purchase country of the customer. ISO 3166 alpha-2 purchase country.
      • getMerchantInitiatedReason

        public MerchantInitiatedReasonType getMerchantInitiatedReason()
        Indicates the reason for a merchant-initiated payment request.
      • getCampaignId

        public java.lang.Long getCampaignId()
        Unique number of the campaign this payment will be running in. Only required for Afterpay campaign invoices.
      • getOriginalOrderAmount

        public java.lang.Double getOriginalOrderAmount()
        The payment for a merchant's order may be split, and the original order price indicates the transaction amount of the entire order.
      • getReceiptId

        public java.lang.String getReceiptId()
        Merchant receipt ID.
      • getMerchantCallbackUrl

        public java.lang.String getMerchantCallbackUrl()
        A URL which you can use to notify the customer that the order has been created.
      • getLineOfBusiness

        public java.lang.String getLineOfBusiness()
        Beta The line of business that the payment is associated with.
      • getPanPreference

        public PanPreferenceType getPanPreference()
        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
      • getProvisionNetworkToken

        public java.lang.Boolean getProvisionNetworkToken()
        Default: true Indicates whether to provision a network token for the payment.
      • setAft

        public void setAft​(java.lang.Boolean aft)
        Indicates whether the payment is an Account Funding Transaction
      • setDiscountAmount

        public void setDiscountAmount​(java.lang.Double discountAmount)
        The discount amount applied to the transaction by the merchant.
      • setShippingAmount

        public void setShippingAmount​(java.lang.Double shippingAmount)
        The total freight or shipping and handling charges for the transaction.
      • setTaxAmount

        public void setTaxAmount​(java.lang.Double taxAmount)
        The customer's value-added tax registration number.
      • setInvoiceId

        public void setInvoiceId​(java.lang.String invoiceId)
        Invoice ID number.
      • setBrandName

        public void setBrandName​(java.lang.String brandName)
        The label that overrides the business name in the PayPal account on the PayPal pages.
      • setLocale

        public void setLocale​(java.lang.String locale)
        The language and region of the customer in ISO 639-2 language code; value consists of language-country.
      • setPartnerCustomerRiskData

        public void setPartnerCustomerRiskData​(java.util.List<PartnerCustomerRiskData> partnerCustomerRiskData)
        An array of key-and-value pairs with merchant-specific data for the transaction.
      • setCustomPaymentMethodIds

        public void setCustomPaymentMethodIds​(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.
      • setAirlineData

        public void setAirlineData​(java.util.List<AirlineData> airlineData)
        Contains information about the airline ticket and flights booked by the customer.
      • setAccommodationData

        public void setAccommodationData​(java.util.List<AccommodationData> accommodationData)
        Contains information about the accommodation booked by the customer.
      • setOrderId

        public void setOrderId​(java.lang.String orderId)
        The number provided by the cardholder. Purchase order or invoice number may be used.
      • setSurchargeAmount

        public void setSurchargeAmount​(java.lang.Long surchargeAmount)
        Surcharge amount applied to the transaction in minor units by the merchant.
      • setDutyAmount

        public void setDutyAmount​(java.lang.Double dutyAmount)
        The total charges for any import/export duty included in the transaction.
      • setShippingTaxAmount

        public void setShippingTaxAmount​(java.lang.Double shippingTaxAmount)
        The tax amount of the freight or shipping and handling charges for the transaction.
      • setPurchaseCountry

        public void setPurchaseCountry​(java.lang.String purchaseCountry)
        The purchase country of the customer. ISO 3166 alpha-2 purchase country.
      • setMerchantInitiatedReason

        public void setMerchantInitiatedReason​(MerchantInitiatedReasonType merchantInitiatedReason)
        Indicates the reason for a merchant-initiated payment request.
      • setCampaignId

        public void setCampaignId​(java.lang.Long campaignId)
        Unique number of the campaign this payment will be running in. Only required for Afterpay campaign invoices.
      • setOriginalOrderAmount

        public void setOriginalOrderAmount​(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.
      • setReceiptId

        public void setReceiptId​(java.lang.String receiptId)
        Merchant receipt ID.
      • setMerchantCallbackUrl

        public void setMerchantCallbackUrl​(java.lang.String merchantCallbackUrl)
        A URL which you can use to notify the customer that the order has been created.
      • setLineOfBusiness

        public void setLineOfBusiness​(java.lang.String lineOfBusiness)
        Beta The line of business that the payment is associated with.
      • setPanPreference

        public void setPanPreference​(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
      • setProvisionNetworkToken

        public void setProvisionNetworkToken​(java.lang.Boolean provisionNetworkToken)
        Default: true Indicates whether to provision a network token for the payment.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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