Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • RepositoryBase
    • CheckoutRepository

Index

Methods

  • Adds a product to an existing checkout

    Parameters

    • products: number | CheckoutProductInput[]

      List of products to add or id of variant to be added with quantity 1

    • Optional checkoutId: string

      The checkout id to add the product to. Will use the checkoutId from the user checkout page cookies if not provided

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CheckoutData>>

  • Adds a coupon to an existing checkout

    Parameters

    • coupon: string

      The coupon

    • Optional checkoutId: string

      The checkout id to add the coupon to. Will use the checkoutId from the user checkout page cookies if not provided

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CheckoutAddCouponData>>

  • Adds or creates a kit in an existing checkout

    Parameters

    • input: CheckoutKitInput

      Checkout kit input.

    • Optional customerAccessToken: string

      The customer access token

    • Optional recaptchaToken: string

      The google recaptcha token

    Returns Promise<GraphqlResponse<CheckoutKitData>>

  • Adds metadata to an existing checkout

    Parameters

    • metadata: CheckoutMetadataInput[]

      Array of metadata objects to be added

    • Optional checkoutId: string

      The checkout id to add the metadata to. Will use the checkoutId from the user checkout page cookies if not provided

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CheckoutAddMetadataData>>

  • Adds metadata to a product variant in an existing checkout

    Parameters

    • productVariantId: number

      The product variant id to which the metadata will be added

    • metadata: CheckoutMetadataInput[]

      Array of metadata objects to be added

    • Optional checkoutId: string

      The checkout id to add the metadata to. Will use the checkoutId from the user checkout page cookies if not provided

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CheckoutAddMetadataForProductVariantData>>

  • Associates an address with an existing checkout

    Parameters

    • addressId: string

      The address ID to associate

    • Optional checkoutId: string

      The checkout id. Will use the checkoutId from the user checkout page cookies if not provided

    • Optional customerAccessToken: string

      The customer access token

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CheckoutAddressAssociateData>>

  • Clones a cart by the given checkout ID, returns the newly created checkout ID

    Parameters

    • Optional checkoutId: string

      The checkout id

    • Optional customerAccessToken: string

      The customer access token

    • Optional copyUser: boolean

      Flag indicating whether to copy the existing Customer information to the new Checkout. Default is false

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CheckoutCloneData>>

  • Completes a checkout

    Parameters

    • Optional checkoutId: string

      The existing checkout id

    • Optional comments: string

      Order comments

    • Optional customerAccessToken: string

      The customer access token

    • Optional paymentData: string

      Payment data

    • Optional recaptchaToken: string

      The google recaptcha token

    Returns Promise<{ completeResponse: GraphqlResponse<CheckoutCompleteData>; newCheckout: GraphqlResponse<CheckoutCloneData> }>

  • Creates a new checkout

    Parameters

    • products: number | CheckoutProductInput[]

      List of products to add or id of variant to be added with quantity 1

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CheckoutData>>

  • Associates a customer with an existing checkout

    Parameters

    • Optional checkoutId: string

      The checkout id to associate the customer with

    • Optional customerAccessToken: string

      The customer access token

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CheckoutCustomerAssociateData>>

  • Retrieve information about a checkout

    Parameters

    • Optional checkoutId: string

      The id of the checkout. Will use the checkoutId from the user checkout page cookies if not provided

    Returns Promise<GraphqlResponse<CheckoutData>>

  • Associate the partner with the checkout

    Parameters

    • Optional checkoutId: string

      The checkout id to associate with the partner. Will use the checkoutId from the user checkout page cookies if not provided

    • Optional partnerAccessToken: string

      The partner access token to associante with the checkout. Will be canceled and return null if not provided

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CheckoutData>>

  • Disassociate the checkout with the partner

    Parameters

    • Optional checkoutId: string

      The checkout id to disassociate with the partner. Will use the checkoutId from the user checkout page cookies if not provided

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CheckoutData>>

  • Removes a product from an existing checkout

    Parameters

    • products: number | CheckoutProductInput[]

      List of products to remove or id of variant to be removed with quantity 1

    • Optional checkoutId: string

      The checkout id to remove the product from. Will use the checkoutId from the user checkout page cookies if not provided

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CheckoutData>>

  • Removes a coupon from an existing checkout

    Parameters

    • Optional checkoutId: string

      The checkout id to remove the coupon from. Will use the checkoutId from the user checkout page cookies if not provided

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CheckoutRemoveCouponData>>

  • Removes a kit from an existing checkout

    Parameters

    • input: CheckoutKitInput

      Checkout kit input.

    • Optional customerAccessToken: string

      The customer access token

    • Optional recaptchaToken: string

      The google recaptcha token

    Returns Promise<GraphqlResponse<CheckoutKitData>>

  • Remove Customization to Checkout

    Parameters

    • customizationId: string

      The customization Id

    • productVariantId: number

      The product variant Id to remove customization

    • Optional checkoutId: string

      The existing checkout id

    • Optional customerAccessToken: string

      The customer access token

    • Optional recaptchaToken: string

      The google recaptcha token

    Returns Promise<GraphqlResponse<CheckoutRemoveProductCustomizationData>>

  • Select whether to use current account balance

    Parameters

    • hasCurrentAccount: Boolean

      Use Balance

    • Optional checkoutId: string

      The checkout id

    • Optional customerAccessToken: string

      The customer access token

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CurrentAccountSelectedData>>

  • Selects gift variant in an existing checkout

    Parameters

    • productVariantId: number

      The product variant id that will be selected

    • Optional checkoutId: string

      The checkout id to select the gift variant. Will use the checkoutId from the user checkout page cookies if not provided

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CheckoutGiftVariantSelectionData>>

  • Selects an installment method for an existing checkout

    Parameters

    • selectedPaymentMethodId: string

      The selected payment method ID

    • installmentNumber: number

      The number of installments

    • Optional checkoutId: string

      The checkout id

    • Optional recaptchaToken: string
    • Optional orderId: number

    Returns Promise<GraphqlResponse<CheckoutSelectInstallmentData>>

  • Selects a payment method for an existing checkout

    Parameters

    • paymentMethodId: string

      The payment method ID to select

    • Optional checkoutId: string

      The checkout id

    • Optional recaptchaToken: string
    • Optional orderId: number

    Returns Promise<GraphqlResponse<CheckoutSelectPaymentMethodData>>

  • Selects a shipping quote for an existing checkout

    Parameters

    • shippingQuoteId: string

      The shipping quote ID to select

    • Optional checkoutId: string

      The checkout id

    • Optional recaptchaToken: string

    Returns Promise<GraphqlResponse<CheckoutSelectShippingQuoteData>>

Generated using TypeDoc