Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates an order for an Outpost.
Synopsis
- data CreateOrder = CreateOrder' {}
- newCreateOrder :: Text -> NonEmpty LineItemRequest -> PaymentOption -> CreateOrder
- createOrder_paymentTerm :: Lens' CreateOrder (Maybe PaymentTerm)
- createOrder_outpostIdentifier :: Lens' CreateOrder Text
- createOrder_lineItems :: Lens' CreateOrder (NonEmpty LineItemRequest)
- createOrder_paymentOption :: Lens' CreateOrder PaymentOption
- data CreateOrderResponse = CreateOrderResponse' {
- order :: Maybe Order
- httpStatus :: Int
- newCreateOrderResponse :: Int -> CreateOrderResponse
- createOrderResponse_order :: Lens' CreateOrderResponse (Maybe Order)
- createOrderResponse_httpStatus :: Lens' CreateOrderResponse Int
Creating a Request
data CreateOrder Source #
See: newCreateOrder
smart constructor.
CreateOrder' | |
|
Instances
:: Text | |
-> NonEmpty LineItemRequest | |
-> PaymentOption | |
-> CreateOrder |
Create a value of CreateOrder
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:paymentTerm:CreateOrder'
, createOrder_paymentTerm
- The payment terms for the order.
$sel:outpostIdentifier:CreateOrder'
, createOrder_outpostIdentifier
- The ID or the Amazon Resource Name (ARN) of the Outpost.
$sel:lineItems:CreateOrder'
, createOrder_lineItems
- The line items that make up the order.
$sel:paymentOption:CreateOrder'
, createOrder_paymentOption
- The payment option for the order.
Request Lenses
createOrder_paymentTerm :: Lens' CreateOrder (Maybe PaymentTerm) Source #
The payment terms for the order.
createOrder_outpostIdentifier :: Lens' CreateOrder Text Source #
The ID or the Amazon Resource Name (ARN) of the Outpost.
createOrder_lineItems :: Lens' CreateOrder (NonEmpty LineItemRequest) Source #
The line items that make up the order.
createOrder_paymentOption :: Lens' CreateOrder PaymentOption Source #
The payment option for the order.
Destructuring the Response
data CreateOrderResponse Source #
See: newCreateOrderResponse
smart constructor.
CreateOrderResponse' | |
|
Instances
newCreateOrderResponse Source #
Create a value of CreateOrderResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:order:CreateOrderResponse'
, createOrderResponse_order
- Information about this order.
$sel:httpStatus:CreateOrderResponse'
, createOrderResponse_httpStatus
- The response's http status code.
Response Lenses
createOrderResponse_order :: Lens' CreateOrderResponse (Maybe Order) Source #
Information about this order.
createOrderResponse_httpStatus :: Lens' CreateOrderResponse Int Source #
The response's http status code.