Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/graphql / dist / models / Checkout.graphql.js
Size: Mime:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const apollo_server_1 = require("apollo-server");
exports.default = apollo_server_1.gql `
  type ShippingState {
    status: String
  }

  # @todo @michael extends CartInfo?
  type CheckoutCartInfo {
    totaltax: String
    total: String
    quantity: String
    subtotal: String
    estsubtotal: String
    discounttotal: String
    discount: [LabelValue]
    giftwrap: String
    shippingmethods: [ShippingMethods]
  }

  type ShippingProperties {
    cartinfo: CheckoutCartInfo
    state: ShippingState
  }

  type SetShippingResponse {
    responseCode: String
    properties: ShippingProperties
  }

  # @todo this is unused bloat? we have LabelValue type?
  type AdditionalInfo {
    label: String
    value: String
  }

  type ShippingMethodState {
    status: String
  }

  type ShippingMethodProperties {
    state: ShippingMethodState
    cartinfo: CheckoutCartInfo
  }

  type ShippingMethodResponse {
    type: String
    properties: ShippingMethodProperties
  }

  type PaymentProductsResponse {
    identifier: String
    name: String
    creditcardinfo: CreditCardInfo
    paymentcardinfo: PaymentCardInfo
    type: String
  }

  type RecalculateBuyInfo {
    pricing: Pricing
  }

  type PaymentCardInfo {
    amount: String
    type: String
  }

  type Card {
    isvalidated: String
    expirationyear: String
    cardid: String
    cardbrand: String
    cardtype: String
    cardnumber: String
    expirationmonth: String
  }

  type CreditCardData {
    cards: [Card]
  }

  type RecalculateProperties {
    buyinfo: RecalculateBuyInfo
    iteminfo: CartItemInfo
    cartinfo: CartInfo
    state: CartState
    userinfo: CartUserInfo
    creditcardinfo: CreditCardData
    paymentcardinfo: PaymentCardInfo
    math: Math
  }

  type AddPaymentInfo {
    products: [PaymentProductsResponse]
  }

  type AddPaymentState {
    status: String
  }

  type AddPaymentProperties {
    state: AddPaymentState
  }

  type AddPaymentResponse {
    type: String
    children: RecalculateProducts
    properties: AddPaymentProperties
    identifier: String
  }

  type DeletePaymentProperties {
    state: DeletePaymentState
  }

  type DeletePaymentResponse {
    type: String
    properties: DeletePaymentProperties
  }

  type GuestProfileState {
    status: String
  }

  type GuestProfileProperties {
    state: GuestProfileState
  }

  type GuestProfileResponse {
    type: String
  }

  type SubmitOrderOrderinfo {
    orderid: String
  }

  type SubmitOrderProperties {
    orderinfo: SubmitOrderOrderinfo
  }

  type SubmitOrderResponse {
    type: String
    responseMessage: String
    properties: SubmitOrderProperties
  }

  type RecalculateProduct {
    identifier: String
    image: String
    name: String
    type: String
    properties: RecalculateProperties
  }

  type RecalculateProducts {
    products: [RecalculateProduct]
  }

  type RecalculateOrderResponse {
    type: String
    responseMessage: String
    properties: RecalculateProperties
    children: RecalculateProducts
  }

  input PaymentCustomParams {
    addCardDetailToProfile: [String]
    setAsDefaultCardInProfile: [String]
    useDefaultCard: [String]
  }

  input ShippingCustomParams {
    addAddressToProfile: [String] = ["false"]
    useDefaultAddress: [String] = ["false"]
    setAsDefaultAddressInProfile: [String] = ["false"]
    overrideAddressValidation: [String] = ["true"]
  }

  input CreditCardInput {
    number: String!
    type: String! # convert to Enum
    cvv: String!
    expirationMonth: String!
    expirationYear: String!
    name: String!
    id: String
  }

  input PaymentAddress {
    addressLine1: String!
    addressLine2: String
    postalCode: String!
    city: String!
    state: String!
    country: String!
    phone: String!
    email: String!
    lastName: String!
    firstName: String!
    deliveryInstruction: String = ""
    customParams: ShippingCustomParams
  }

  input Payment {
    type: String = "creditcard"
    amount: String!
    creditCard: [CreditCardInput!]
    address: [PaymentAddress!]
    customParams: PaymentCustomParams
  }

  input PaymentDetail {
    itemType: String = "payment"
    title: String = "creditcard"
    payment: Payment!
  }

  input DeletePaymentId {
    id: String!
  }

  input DeletePaymentDetails {
    # from jai
    item: DeletePaymentId
    # merged from michael
    items: [DeletePaymentId]
  }

  input PaymentDetails {
    items: [PaymentDetail!] = []
    paymentMethods: [Payment] = []
    shippingAddresses: [PaymentAddress] = []
  }

  input GuestProfileAddressDetails {
    firstName: String!
    lastName: String!
    phone: String!
    email: String!
    type: String = "email"
    postalCode: String!
  }
`;
//# sourceMappingURL=Checkout.graphql.js.map