Interface OrderMutations

Hierarchy

  • OrderMutations

Properties

create: ((doc: { billingAddress?: Address; contact?: Contact; countryCode: string; currency: string; orderNumber?: string; originEnrollmentId?: string }, userId?: string) => Promise<Order>)

Type declaration

    • (doc: { billingAddress?: Address; contact?: Contact; countryCode: string; currency: string; orderNumber?: string; originEnrollmentId?: string }, userId?: string): Promise<Order>
    • Parameters

      • doc: { billingAddress?: Address; contact?: Contact; countryCode: string; currency: string; orderNumber?: string; originEnrollmentId?: string }
        • Optional billingAddress?: Address
        • Optional contact?: Contact
        • countryCode: string
        • currency: string
        • Optional orderNumber?: string
        • Optional originEnrollmentId?: string
      • Optional userId: string

      Returns Promise<Order>

delete: ((orderId: string, userId?: string) => Promise<number>)

Type declaration

    • (orderId: string, userId?: string): Promise<number>
    • Parameters

      • orderId: string
      • Optional userId: string

      Returns Promise<number>

initProviders: ((order: Order, requestContext: Context) => Promise<Order>)

Type declaration

invalidateProviders: ((unchainedAPI: UnchainedCore, maxAgeDays: number) => Promise<void>)

Type declaration

    • (unchainedAPI: UnchainedCore, maxAgeDays: number): Promise<void>
    • Parameters

      Returns Promise<void>

setDeliveryProvider: ((orderId: string, deliveryProviderId: string, requestContext: Context) => Promise<Order>)

Type declaration

    • (orderId: string, deliveryProviderId: string, requestContext: Context): Promise<Order>
    • Parameters

      • orderId: string
      • deliveryProviderId: string
      • requestContext: Context

      Returns Promise<Order>

setPaymentProvider: ((orderId: string, paymentProviderId: string, requestContext: Context) => Promise<Order>)

Type declaration

    • (orderId: string, paymentProviderId: string, requestContext: Context): Promise<Order>
    • Parameters

      • orderId: string
      • paymentProviderId: string
      • requestContext: Context

      Returns Promise<Order>

updateBillingAddress: ((orderId: string, billingAddress: Address, requestContext: Context) => Promise<Order>)

Type declaration

updateCalculation: ((orderId: string, requestContext: Context) => Promise<Order>)

Type declaration

    • (orderId: string, requestContext: Context): Promise<Order>
    • Parameters

      • orderId: string
      • requestContext: Context

      Returns Promise<Order>

updateContact: ((orderId: string, contact: Contact, requestContext: Context) => Promise<Order>)

Type declaration

updateContext: ((orderId: string, context: any, requestContext: Context) => Promise<boolean>)

Type declaration

    • (orderId: string, context: any, requestContext: Context): Promise<boolean>
    • Parameters

      • orderId: string
      • context: any
      • requestContext: Context

      Returns Promise<boolean>

updateStatus: ((orderId: string, params: { info?: string; status: OrderStatus }, requestContext: Context) => Promise<Order>)

Type declaration