mail.graphql 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # Represents a customer mailing address.
  2. #
  3. # For example, a customer's default address and an order's billing address are both mailling addresses.
  4. type MailingAddress implements Node {
  5. # The first line of the address. Typically the street address or PO Box number.
  6. address1: String
  7. # The second line of the address. Typically the number of the apartment, suite, or unit.
  8. address2: String
  9. # The name of the city, district, village, or town.
  10. city: String
  11. # The name of the customer's company or organization.
  12. company: String
  13. # Whether the address coordinates are valid.
  14. coordinatesValidated: Boolean!
  15. # The name of the country.
  16. country: String
  17. # The two-letter code for the country of the address.
  18. #
  19. # For example, US.
  20. countryCodeV2: CountryCode
  21. # The first name of the customer.
  22. #
  23. # formatted(withName: Boolean = false withCompany: Boolean = true): [String!]!
  24. # A formatted version of the address, customized by the provided arguments.
  25. firstName: String
  26. # A comma-separated list of the values for city, province, and country.
  27. formattedArea: String
  28. # A globally-unique identifier.
  29. id: ID!
  30. # The last name of the customer.
  31. lastName: String
  32. # The latitude coordinate of the customer address.
  33. latitude: Float
  34. # The longitude coordinate of the customer address.
  35. longitude: Float
  36. # The full name of the customer, based on firstName and lastName.
  37. name: String
  38. # A unique phone number for the customer.
  39. #
  40. # Formatted using E.164 standard. For example, +16135551111.
  41. phone: String
  42. # The region of the address, such as the province, state, or district.
  43. province: String
  44. # The two-letter code for the region.
  45. #
  46. # For example, ON.
  47. provinceCode: String
  48. # The zip or postal code of the address.
  49. zip: String
  50. }
  51. # The fields used to create or update a mailing address.
  52. input MailingAddressInput {
  53. # The first line of the address. Typically the street address or PO Box number.
  54. address1: String
  55. # The second line of the address. Typically the number of the apartment, suite, or unit.
  56. address2: String
  57. # The name of the city, district, village, or town.
  58. city: String
  59. # The name of the customer's company or organization.
  60. company: String
  61. # The two-letter code for the country of the address.
  62. countryCode: CountryCode
  63. # The first name of the customer.
  64. firstName: String
  65. # The last name of the customer.
  66. lastName: String
  67. # A unique phone number for the customer.
  68. #
  69. # Formatted using E.164 standard. For example, +16135551111.
  70. phone: String
  71. # The code for the region of the address, such as the province, state, or district.
  72. # For example QC for Quebec, Canada.
  73. provinceCode: String
  74. # The zip or postal code of the address.
  75. zip: String
  76. }