shipping-method.api.graphql 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. type Query {
  2. shippingMethods(options: ShippingMethodListOptions): ShippingMethodList!
  3. shippingMethod(id: ID!): ShippingMethod
  4. shippingEligibilityCheckers: [ConfigurableOperationDefinition!]!
  5. shippingCalculators: [ConfigurableOperationDefinition!]!
  6. testShippingMethod(input: TestShippingMethodInput!): TestShippingMethodResult!
  7. testEligibleShippingMethods(input: TestEligibleShippingMethodsInput!): [ShippingMethodQuote!]!
  8. }
  9. type Mutation {
  10. "Create a new ShippingMethod"
  11. createShippingMethod(input: CreateShippingMethodInput!): ShippingMethod!
  12. "Update an existing ShippingMethod"
  13. updateShippingMethod(input: UpdateShippingMethodInput!): ShippingMethod!
  14. "Delete a ShippingMethod"
  15. deleteShippingMethod(id: ID!): DeletionResponse!
  16. }
  17. # generated by generateListOptions function
  18. input ShippingMethodListOptions
  19. input CreateShippingMethodInput {
  20. code: String!
  21. description: String!
  22. checker: ConfigurableOperationInput!
  23. calculator: ConfigurableOperationInput!
  24. }
  25. input UpdateShippingMethodInput {
  26. id: ID!
  27. code: String
  28. description: String
  29. checker: ConfigurableOperationInput
  30. calculator: ConfigurableOperationInput
  31. }
  32. input TestShippingMethodInput {
  33. checker: ConfigurableOperationInput!
  34. calculator: ConfigurableOperationInput!
  35. shippingAddress: CreateAddressInput!
  36. lines: [TestShippingMethodOrderLineInput!]!
  37. }
  38. input TestEligibleShippingMethodsInput {
  39. shippingAddress: CreateAddressInput!
  40. lines: [TestShippingMethodOrderLineInput!]!
  41. }
  42. input TestShippingMethodOrderLineInput {
  43. productVariantId: ID!
  44. quantity: Int!
  45. }
  46. type TestShippingMethodResult {
  47. eligible: Boolean!
  48. quote: TestShippingMethodQuote
  49. }
  50. type TestShippingMethodQuote {
  51. price: Int!
  52. priceWithTax: Int!
  53. description: String!
  54. metadata: JSON
  55. }