github.com/Ingenico-ePayments/connect-sdk-go@v0.0.0-20240318153750-1f8cd329b9c9/domain/payment/Order.go (about)

     1  // This class was auto-generated from the API references found at
     2  // https://epayments-api.developer-ingenico.com/
     3  
     4  package payment
     5  
     6  import "github.com/Ingenico-ePayments/connect-sdk-go/domain/definitions"
     7  
     8  // Order represents class Order
     9  type Order struct {
    10  	AdditionalInput *AdditionalOrderInput      `json:"additionalInput,omitempty"`
    11  	AmountOfMoney   *definitions.AmountOfMoney `json:"amountOfMoney,omitempty"`
    12  	Customer        *Customer                  `json:"customer,omitempty"`
    13  	// Deprecated: Use shoppingCart.items instead
    14  	Items           *[]LineItem                `json:"items,omitempty"`
    15  	References      *OrderReferences           `json:"references,omitempty"`
    16  	// Deprecated: Use Merchant.seller instead
    17  	Seller          *Seller                    `json:"seller,omitempty"`
    18  	Shipping        *Shipping                  `json:"shipping,omitempty"`
    19  	ShoppingCart    *ShoppingCart              `json:"shoppingCart,omitempty"`
    20  }
    21  
    22  // NewOrder constructs a new Order
    23  func NewOrder() *Order {
    24  	return &Order{}
    25  }