Class OrderFields.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Create an instance of the builder for OrderFields
    • Method Detail

      • setTransactionId

        public OrderFields.Builder setTransactionId​(@Nullable
                                                    java.lang.String transactionId)
        Set the Transaction Id of the order to be retroclaimed
        Parameters:
        transactionId - transaction id of the order
        Returns:
        The Builder object
      • setBusinessDate

        public OrderFields.Builder setBusinessDate​(@Nullable
                                                   java.lang.String businessDate)
        Set the Business Date of the order to be retroclaimed
        Parameters:
        businessDate - date of the order
        Returns:
        The Builder object
      • setPlaceId

        public OrderFields.Builder setPlaceId​(@Nullable
                                              java.lang.String placeId)
        Set the Place Id of the order to be retroclaimed
        Parameters:
        placeId - string value of the place id
        Returns:
        this Builder object
      • setRegisterName

        public OrderFields.Builder setRegisterName​(@Nullable
                                                   java.lang.String registerName)
        Set the Register name from the order to be retroclaimed
        Parameters:
        registerName - value of the register name
        Returns:
        the Builder object
      • setSubtotal

        public OrderFields.Builder setSubtotal​(@Nullable
                                               java.lang.Double subtotal)
        Set the subtotal of the order
        Parameters:
        subtotal - value of the subtotal
        Returns:
        this Builder object
      • setLastFourDigits

        public OrderFields.Builder setLastFourDigits​(@Nullable
                                                     java.lang.String lastFourDigits)
        Set the last four digits of the credit card used
        Parameters:
        lastFourDigits - last 4 digits of the credit card
        Returns:
        this Builder object
      • setChargedAmount

        public OrderFields.Builder setChargedAmount​(@Nullable
                                                    java.lang.Double chargedAmount)
        Set the charged amount
        Parameters:
        chargedAmount - charged amount to the credit card
        Returns:
        this Builder project
      • setTotalAmount

        public OrderFields.Builder setTotalAmount​(@Nullable
                                                  java.lang.Double totalAmount)
        Set the total amount
        Parameters:
        totalAmount - total amount paid for this transaction
        Returns:
        this Builder project