Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "sdk-sales/src/sdk/createOrder"

Index

Functions

createNewOrder

  • createNewOrder(billingAddress: CompleteAddress, email: string | null, phone: string | null, firstName: undefined | string, lastName: undefined | string, secondLastName: undefined | string, shippingAddress: CompleteAddress, recaptchaToken: undefined | string): Promise<CreateOrderResponse | APIErrorResponse>
  • Parameters

    • billingAddress: CompleteAddress
    • Optional email: string | null
    • Optional phone: string | null
    • Optional firstName: undefined | string
    • Optional lastName: undefined | string
    • Optional secondLastName: undefined | string
    • Optional shippingAddress: CompleteAddress
    • Optional recaptchaToken: undefined | string

    Returns Promise<CreateOrderResponse | APIErrorResponse>

    Promise resolving to an order. The currentOrder property will be overwritten by the data fetched.

    On success (resolves)
    {
      "total": 0,
      "subtotal": 0,
      "tax": 0,
      "shipping": 0,
      "items": [
         {
           "sku": "string",
           "quantity": 0,
           "shortDescription": "string",
           "name": "string",
           "price": 0,
           "tax": 0,
           "subTotal": 0,
           "total": 0
         }
       ],
      "orderNumber": "1",
      "status": "1",
      "email": "1",
      "phone": "1",
      "subscriptionIDs": "1"
    }
    On error (throws)
    See documentation for corresponding error codes:
    https://redirector.arcpublishing.com/alc/docs/swagger/?url=./arc-products/arc-sales.json#/Checkout_Interaction/createOrder

createOrder

  • createOrder(email: string | null, phone: string | null, billingAddress: CompleteAddress, firstName: undefined | string, lastName: undefined | string, secondLastName: undefined | string, shippingAddress: CompleteAddress, recaptchaToken: undefined | string): Promise<CreateOrderResponse | APIErrorResponse>
  • Parameters

    • email: string | null
    • phone: string | null
    • billingAddress: CompleteAddress
    • Optional firstName: undefined | string
    • Optional lastName: undefined | string
    • Optional secondLastName: undefined | string
    • Optional shippingAddress: CompleteAddress
    • Optional recaptchaToken: undefined | string

    Returns Promise<CreateOrderResponse | APIErrorResponse>

    Promise resolving to an order. The currentOrder property will be overwritten by the data fetched.

    On success (resolves)
    {
      "total": 0,
      "subtotal": 0,
      "tax": 0,
      "shipping": 0,
      "items": [
         {
           "sku": "string",
           "quantity": 0,
           "shortDescription": "string",
           "name": "string",
           "price": 0,
           "tax": 0,
           "subTotal": 0,
           "total": 0
         }
       ],
      "orderNumber": "1",
      "status": "1",
      "email": "1",
      "phone": "1",
      "subscriptionIDs": "1"
    }
    On error (throws)
    See documentation for corresponding error codes:
    https://redirector.arcpublishing.com/alc/docs/swagger/?url=./arc-products/arc-sales.json#/Checkout_Interaction/createOrder