@dropins/storefront-checkout 2.0.1 → 2.1.0-alpha2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (206) hide show
  1. package/api/fragments.d.ts +4 -1
  2. package/api/getCompanyCredit/getCompanyCredit.d.ts +4 -0
  3. package/api/getCompanyCredit/graphql/getCompanyCredit.graphql.d.ts +18 -0
  4. package/api/getCompanyCredit/graphql/index.d.ts +18 -0
  5. package/{errors → api/getCompanyCredit}/index.d.ts +1 -1
  6. package/api/getNegotiableQuote/getNegotiableQuote.d.ts +22 -0
  7. package/api/getNegotiableQuote/graphql/getNegotiableQuote.graphql.d.ts +18 -0
  8. package/api/getNegotiableQuote/graphql/index.d.ts +18 -0
  9. package/{signals → api/getNegotiableQuote}/index.d.ts +2 -2
  10. package/api/getStoreConfig/getStoreConfig.d.ts +1 -0
  11. package/api/graphql/CartAddressFragment.graphql.d.ts +2 -2
  12. package/api/graphql/NegotiableQuoteAddressFragment.graphql.d.ts +19 -0
  13. package/api/graphql/NegotiableQuoteFragment.graphql.d.ts +18 -0
  14. package/api/graphql/{CartPaymentMethodFragment.graphql.d.ts → PaymentMethodFragment.graphql.d.ts} +2 -2
  15. package/api/graphql/ShippingMethodFragment.graphql.d.ts +19 -0
  16. package/api/index.d.ts +2 -2
  17. package/api/initialize/initialize.d.ts +21 -3
  18. package/api/initialize/listeners.d.ts +3 -17
  19. package/api/initializeCheckout/initializeCheckout.d.ts +2 -2
  20. package/api/setBillingAddress/graphql/index.d.ts +19 -0
  21. package/api/{setPaymentMethod/graphql/setPaymentMethod.graphql.d.ts → setBillingAddress/graphql/setBillingAddressOnCartMutation.graphql.d.ts} +2 -2
  22. package/api/setBillingAddress/graphql/setBillingAddressOnQuoteMutation.graphql.d.ts +18 -0
  23. package/api/setBillingAddress/setBillingAddress.d.ts +2 -2
  24. package/api/setPaymentMethod/graphql/index.d.ts +19 -0
  25. package/api/{setBillingAddress/graphql/setBillingAddress.graphql.d.ts → setPaymentMethod/graphql/setPaymentMethodOnCart.graphql.d.ts} +2 -2
  26. package/api/setPaymentMethod/graphql/setPaymentMethodOnQuote.graphql.d.ts +18 -0
  27. package/api/setPaymentMethod/setPaymentMethod.d.ts +2 -2
  28. package/api/setShippingAddress/graphql/index.d.ts +21 -0
  29. package/api/setShippingAddress/graphql/{setShippingAddressAndUseAsBilling.graphql.d.ts → setShippingAddressOnCartAndUseAsBillingMutation.graphql.d.ts} +2 -2
  30. package/api/setShippingAddress/graphql/{setShippingAddress.graphql.d.ts → setShippingAddressOnCartMutation.graphql.d.ts} +2 -2
  31. package/api/setShippingAddress/graphql/setShippingAddressOnQuote.graphql.d.ts +18 -0
  32. package/api/setShippingAddress/graphql/setShippingAddressOnQuoteAndUseAsBillingMutation.graphql.d.ts +18 -0
  33. package/api/setShippingAddress/setShippingAddress.d.ts +1 -1
  34. package/api/setShippingMethods/graphql/index.d.ts +19 -0
  35. package/api/setShippingMethods/graphql/setShippingMethodsOnCart.graphql.d.ts +1 -1
  36. package/api/setShippingMethods/graphql/setShippingMethodsOnQuote.graphql.d.ts +18 -0
  37. package/api/setShippingMethods/index.d.ts +1 -0
  38. package/api/setShippingMethods/setShippingMethods.d.ts +3 -17
  39. package/api/synchronizeCheckout/synchronizeCheckout.d.ts +2 -2
  40. package/api.js +2 -66
  41. package/api.js.map +1 -1
  42. package/chunks/ConditionalWrapper.js +1 -1
  43. package/chunks/ConditionalWrapper.js.map +1 -1
  44. package/chunks/PaymentOnAccount2.js +4 -0
  45. package/chunks/PaymentOnAccount2.js.map +1 -0
  46. package/chunks/PurchaseOrder.js +4 -0
  47. package/chunks/PurchaseOrder.js.map +1 -0
  48. package/chunks/checkout.js.map +1 -1
  49. package/chunks/classifiers.js +4 -0
  50. package/chunks/classifiers.js.map +1 -0
  51. package/chunks/dom.js.map +1 -1
  52. package/chunks/events.js +4 -0
  53. package/chunks/events.js.map +1 -0
  54. package/chunks/events2.js +4 -0
  55. package/chunks/events2.js.map +1 -0
  56. package/chunks/fetch-graphql.js +14 -0
  57. package/chunks/fetch-graphql.js.map +1 -0
  58. package/chunks/getCompanyCredit.js +15 -0
  59. package/chunks/getCompanyCredit.js.map +1 -0
  60. package/chunks/guards.js +4 -0
  61. package/chunks/guards.js.map +1 -0
  62. package/chunks/render.js +10 -0
  63. package/chunks/render.js.map +1 -0
  64. package/chunks/setBillingAddress.js +25 -5
  65. package/chunks/setBillingAddress.js.map +1 -1
  66. package/chunks/setGuestEmailOnCart.js +3 -3
  67. package/chunks/setGuestEmailOnCart.js.map +1 -1
  68. package/chunks/setPaymentMethod.js +21 -6
  69. package/chunks/setPaymentMethod.js.map +1 -1
  70. package/chunks/setShippingAddress.js +109 -0
  71. package/chunks/setShippingAddress.js.map +1 -0
  72. package/chunks/setShippingMethods.js +19 -4
  73. package/chunks/setShippingMethods.js.map +1 -1
  74. package/chunks/synchronizeCheckout.js +13 -5
  75. package/chunks/synchronizeCheckout.js.map +1 -1
  76. package/chunks/transform-shipping-estimate.js +4 -0
  77. package/chunks/transform-shipping-estimate.js.map +1 -0
  78. package/chunks/transform-shipping-methods.js +4 -0
  79. package/chunks/transform-shipping-methods.js.map +1 -0
  80. package/chunks/values.js +1 -1
  81. package/chunks/values.js.map +1 -1
  82. package/components/AddressValidation/AddressValidation.d.ts +14 -0
  83. package/components/AddressValidation/index.d.ts +19 -0
  84. package/components/PaymentMethods/PaymentMethods.d.ts +1 -1
  85. package/components/PaymentOnAccount/PaymentOnAccount.d.ts +17 -0
  86. package/components/PaymentOnAccount/PaymentOnAccountSkeleton.d.ts +4 -0
  87. package/components/PaymentOnAccount/index.d.ts +20 -0
  88. package/components/PurchaseOrder/PurchaseOrder.d.ts +10 -0
  89. package/components/PurchaseOrder/index.d.ts +19 -0
  90. package/components/ShippingMethods/ShippingMethods.d.ts +1 -1
  91. package/components/index.d.ts +4 -1
  92. package/containers/AddressValidation/AddressValidation.d.ts +12 -0
  93. package/containers/AddressValidation/index.d.ts +19 -0
  94. package/containers/AddressValidation.d.ts +3 -0
  95. package/containers/AddressValidation.js +4 -0
  96. package/containers/AddressValidation.js.map +1 -0
  97. package/containers/BillToShippingAddress.js +1 -1
  98. package/containers/BillToShippingAddress.js.map +1 -1
  99. package/containers/EstimateShipping.js +1 -1
  100. package/containers/EstimateShipping.js.map +1 -1
  101. package/containers/LoginForm/LoginForm.d.ts +1 -1
  102. package/containers/LoginForm.js +1 -1
  103. package/containers/LoginForm.js.map +1 -1
  104. package/containers/MergedCartBanner.js +1 -1
  105. package/containers/MergedCartBanner.js.map +1 -1
  106. package/containers/OutOfStock.js +1 -1
  107. package/containers/OutOfStock.js.map +1 -1
  108. package/containers/PaymentMethods/PaymentMethods.d.ts +9 -8
  109. package/containers/PaymentMethods/handlers.d.ts +11 -0
  110. package/containers/PaymentMethods.js +1 -1
  111. package/containers/PaymentMethods.js.map +1 -1
  112. package/containers/PaymentOnAccount/PaymentOnAccount.d.ts +10 -0
  113. package/containers/PaymentOnAccount/index.d.ts +11 -0
  114. package/containers/PaymentOnAccount.d.ts +3 -0
  115. package/containers/PaymentOnAccount.js +4 -0
  116. package/containers/PaymentOnAccount.js.map +1 -0
  117. package/containers/PlaceOrder/PlaceOrder.d.ts +2 -1
  118. package/containers/PlaceOrder.js +1 -1
  119. package/containers/PlaceOrder.js.map +1 -1
  120. package/containers/PurchaseOrder/PurchaseOrder.d.ts +10 -0
  121. package/containers/PurchaseOrder/index.d.ts +19 -0
  122. package/containers/PurchaseOrder.d.ts +3 -0
  123. package/containers/PurchaseOrder.js +4 -0
  124. package/containers/PurchaseOrder.js.map +1 -0
  125. package/containers/ServerError/ServerError.d.ts +2 -1
  126. package/containers/ServerError.js +1 -1
  127. package/containers/ServerError.js.map +1 -1
  128. package/containers/ShippingMethods/ShippingMethods.d.ts +2 -2
  129. package/containers/ShippingMethods.js +1 -1
  130. package/containers/ShippingMethods.js.map +1 -1
  131. package/containers/TermsAndConditions.js +1 -1
  132. package/containers/TermsAndConditions.js.map +1 -1
  133. package/containers/index.d.ts +3 -0
  134. package/data/models/address.d.ts +11 -6
  135. package/data/models/api.d.ts +23 -10
  136. package/data/models/cart.d.ts +7 -7
  137. package/data/models/checkout.d.ts +14 -0
  138. package/data/models/company-credit.d.ts +7 -0
  139. package/data/models/country.d.ts +1 -1
  140. package/data/models/index.d.ts +3 -1
  141. package/data/models/{price.d.ts → money.d.ts} +2 -2
  142. package/data/models/payment-method.d.ts +2 -0
  143. package/data/models/quote.d.ts +16 -0
  144. package/data/models/shipping-estimate.d.ts +4 -4
  145. package/data/models/shipping-method.d.ts +4 -4
  146. package/data/models/values.d.ts +1 -1
  147. package/data/transforms/index.d.ts +9 -1
  148. package/data/transforms/transform-api.d.ts +12 -0
  149. package/data/transforms/{transform-address.d.ts → transform-cart-address.d.ts} +41 -43
  150. package/data/transforms/transform-cart.d.ts +1 -1
  151. package/data/transforms/transform-company-credit.d.ts +7 -0
  152. package/data/transforms/transform-country.d.ts +8 -0
  153. package/data/transforms/transform-custom-attributes.d.ts +5 -0
  154. package/data/transforms/transform-negotiable-quote.d.ts +7 -0
  155. package/data/transforms/transform-payment-methods.d.ts +1 -1
  156. package/data/transforms/transform-quote-address.d.ts +90 -0
  157. package/data/transforms/transform-region.d.ts +8 -0
  158. package/fragments.js +180 -70
  159. package/fragments.js.map +1 -1
  160. package/i18n/en_US.json.d.ts +26 -0
  161. package/lib/enqueueRequest.d.ts +2 -2
  162. package/lib/errors/classifiers.d.ts +38 -0
  163. package/lib/errors/customErrors.d.ts +42 -0
  164. package/lib/errors/index.d.ts +20 -0
  165. package/lib/errors/mapErrorToCode.d.ts +4 -0
  166. package/lib/events.d.ts +3 -2
  167. package/lib/guards.d.ts +18 -0
  168. package/lib/index.d.ts +2 -2
  169. package/lib/state.d.ts +5 -3
  170. package/lib/utils/api.d.ts +16 -0
  171. package/lib/utils/events.d.ts +10 -0
  172. package/lib/utils/forms.d.ts +5 -0
  173. package/lib/utils/fragments.d.ts +19 -0
  174. package/lib/utils/index.d.ts +24 -0
  175. package/lib/utils/meta.d.ts +19 -0
  176. package/lib/utils/transformers.d.ts +6 -0
  177. package/lib/utils.d.ts +1 -0
  178. package/lib/utils.js +4 -0
  179. package/lib/utils.js.map +1 -0
  180. package/package.json +1 -1
  181. package/render.js +4 -4
  182. package/render.js.map +1 -1
  183. package/tests/constants.d.ts +1 -0
  184. package/tests/fixtures/fragments/cart.d.ts +47 -42
  185. package/tests/fixtures/fragments/shipping-address.d.ts +2 -1
  186. package/tests/fixtures/helpers/session-storage.d.ts +68 -0
  187. package/tests/fixtures/index.d.ts +1 -0
  188. package/tests/fixtures/models/index.d.ts +1 -1
  189. package/tests/fixtures/models/quote.d.ts +9 -0
  190. package/tests/fixtures/queries/get-company-credit.d.ts +14 -0
  191. package/tests/fixtures/queries/index.d.ts +1 -0
  192. package/types/api.d.ts +6 -0
  193. package/types/{TitleProps.d.ts → components.d.ts} +2 -1
  194. package/types/guards.d.ts +5 -0
  195. package/types/index.d.ts +22 -0
  196. package/types/storefront.d.ts +165 -0
  197. package/types/utils.d.ts +19 -0
  198. package/chunks/ServerErrorSignal.js +0 -4
  199. package/chunks/ServerErrorSignal.js.map +0 -1
  200. package/chunks/errors.js +0 -14
  201. package/chunks/errors.js.map +0 -1
  202. package/errors/errors.d.ts +0 -30
  203. package/lib/network-error.d.ts +0 -22
  204. package/signals/ServerErrorSignal.d.ts +0 -18
  205. package/types/ComponentTypes.d.ts +0 -18
  206. /package/lib/{dom.d.ts → utils/dom.d.ts} +0 -0
@@ -1,51 +1,29 @@
1
- import { CartAddressInput, GetCartQuery } from '../../__generated__/types';
2
- import { Address as AddressModel, CustomAttribute as CustomAttributeModel, ShippingAddress as ShippingAddressModel, CartAddress as CartAddressModel } from '../models';
1
+ import { AddressInput as AddressInputModel, CartAddress as CartAddressModel, CartShippingAddress as CartShippingAddressModel } from '../models';
2
+ import { GetCartQuery } from '../../__generated__/types';
3
3
 
4
4
  type ShippingAddresses = NonNullable<GetCartQuery['cart']>['shipping_addresses'];
5
- type ShippingAddress = ShippingAddresses[0];
6
- type NonNullableShippingAddress = NonNullable<ShippingAddress>;
7
- type BillingAddress = NonNullable<GetCartQuery['cart']>['billing_address'];
8
- type NonNullableBillingAddress = NonNullable<BillingAddress>;
9
- type CustomAttributes = NonNullableShippingAddress['custom_attributes'] | NonNullableBillingAddress['custom_attributes'];
10
- export declare const transformCustomAttributes: (data: CustomAttributes) => CustomAttributeModel[];
11
- declare const transformBillingAddress: (data: BillingAddress) => AddressModel | undefined;
12
- declare const transformShippingAddresses: (data: ({
5
+ type CartShippingAddress = ShippingAddresses[0];
6
+ type CartBillingAddress = NonNullable<GetCartQuery['cart']>['billing_address'];
7
+ declare const transformCartBillingAddress: (data: CartBillingAddress) => CartAddressModel | undefined;
8
+ declare const transformCartShippingAddress: (data: ({
13
9
  __typename?: "ShippingCartAddress" | undefined;
14
- id?: number | null | undefined;
10
+ city: string;
11
+ company?: string | null | undefined;
12
+ fax?: string | null | undefined;
15
13
  firstname: string;
14
+ id?: number | null | undefined;
16
15
  lastname: string;
17
- company?: string | null | undefined;
18
- street: (string | null)[];
19
- city: string;
16
+ middlename?: string | null | undefined;
20
17
  postcode?: string | null | undefined;
21
- vat_id?: string | null | undefined;
22
- telephone?: string | null | undefined;
23
- same_as_billing: boolean;
24
18
  prefix?: string | null | undefined;
19
+ same_as_billing: boolean;
20
+ street: (string | null)[];
25
21
  suffix?: string | null | undefined;
26
- middlename?: string | null | undefined;
27
- fax?: string | null | undefined;
28
- region?: {
29
- __typename?: "CartAddressRegion" | undefined;
30
- region_id?: number | null | undefined;
31
- code?: string | null | undefined;
32
- label?: string | null | undefined;
33
- } | null | undefined;
34
- country: {
35
- __typename?: "CartAddressCountry" | undefined;
36
- code: string;
37
- label: string;
38
- };
39
- custom_attributes: ({
40
- __typename?: "AttributeSelectedOptions" | undefined;
41
- } | {
42
- __typename?: "AttributeValue" | undefined;
43
- code: string;
44
- value: string;
45
- } | null)[];
22
+ telephone?: string | null | undefined;
23
+ uid: string;
24
+ vat_id?: string | null | undefined;
46
25
  available_shipping_methods?: ({
47
26
  __typename?: "AvailableShippingMethod" | undefined;
48
- available: boolean;
49
27
  carrier_code: string;
50
28
  carrier_title: string;
51
29
  error_message?: string | null | undefined;
@@ -67,6 +45,26 @@ declare const transformShippingAddresses: (data: ({
67
45
  currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
68
46
  };
69
47
  } | null)[] | null | undefined;
48
+ country: {
49
+ __typename?: "CartAddressCountry" | undefined;
50
+ code: string;
51
+ label: string;
52
+ };
53
+ custom_attributes: ({
54
+ __typename?: "AttributeFile" | undefined;
55
+ } | {
56
+ __typename?: "AttributeSelectedOptions" | undefined;
57
+ } | {
58
+ __typename?: "AttributeValue" | undefined;
59
+ code: string;
60
+ value: string;
61
+ } | null)[];
62
+ region?: {
63
+ __typename?: "CartAddressRegion" | undefined;
64
+ region_id?: number | null | undefined;
65
+ code?: string | null | undefined;
66
+ label?: string | null | undefined;
67
+ } | null | undefined;
70
68
  selected_shipping_method?: {
71
69
  __typename?: "SelectedShippingMethod" | undefined;
72
70
  carrier_code: string;
@@ -75,8 +73,8 @@ declare const transformShippingAddresses: (data: ({
75
73
  method_title: string;
76
74
  amount: {
77
75
  __typename?: "Money" | undefined;
78
- value?: number | null | undefined;
79
76
  currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
77
+ value?: number | null | undefined;
80
78
  };
81
79
  price_excl_tax: {
82
80
  __typename?: "Money" | undefined;
@@ -89,7 +87,7 @@ declare const transformShippingAddresses: (data: ({
89
87
  currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
90
88
  };
91
89
  } | null | undefined;
92
- } | null)[]) => ShippingAddressModel[] | undefined;
93
- declare const transformCartAddressModelToInput: (address: CartAddressModel) => CartAddressInput;
94
- export { BillingAddress, ShippingAddress, transformCartAddressModelToInput, transformBillingAddress, transformShippingAddresses, };
95
- //# sourceMappingURL=transform-address.d.ts.map
90
+ } | null)[]) => CartShippingAddressModel[];
91
+ declare const transformAddressToCartAddressInput: <T extends CartAddressModel>(address?: T | null | undefined) => AddressInputModel | undefined;
92
+ export { CartBillingAddress, CartShippingAddress, transformAddressToCartAddressInput, transformCartBillingAddress, transformCartShippingAddress, };
93
+ //# sourceMappingURL=transform-cart-address.d.ts.map
@@ -1,5 +1,5 @@
1
- import { GetCartQuery } from '../../__generated__/types';
2
1
  import { Cart as CartModel } from '../models';
2
+ import { GetCartQuery } from '../../__generated__/types';
3
3
 
4
4
  type Cart = GetCartQuery['cart'];
5
5
  declare const transformCart: (data: Cart) => CartModel | undefined;
@@ -0,0 +1,7 @@
1
+ import { CompanyCredit as CompanyCreditModel } from '../models';
2
+ import { CompanyCredit as CompanyCreditType } from '../../__generated__/types';
3
+
4
+ type OptionalCompanyCredit = CompanyCreditType | null | undefined;
5
+ declare const transformCompanyCredit: (data: OptionalCompanyCredit) => CompanyCreditModel | null;
6
+ export { transformCompanyCredit };
7
+ //# sourceMappingURL=transform-company-credit.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { CartAddressCountry, NegotiableQuoteAddressCountry } from '../../__generated__/types';
2
+ import { Country as CountryModel } from '../models';
3
+
4
+ type AddressCountry = CartAddressCountry | NegotiableQuoteAddressCountry;
5
+ type OptionalAddressCountry = AddressCountry | undefined | null;
6
+ export declare const transformAddressCountry: (data: OptionalAddressCountry) => CountryModel;
7
+ export {};
8
+ //# sourceMappingURL=transform-country.d.ts.map
@@ -0,0 +1,5 @@
1
+ import { CustomAttribute as CustomAttributeModel } from '../models/custom-attribute';
2
+ import { AttributeValue } from '../../__generated__/types';
3
+
4
+ export declare const transformCustomAttributes: (data: Array<AttributeValue | any | null> | null | undefined) => CustomAttributeModel[];
5
+ //# sourceMappingURL=transform-custom-attributes.d.ts.map
@@ -0,0 +1,7 @@
1
+ import { NegotiableQuote as NegotiableQuoteModel } from '../models';
2
+ import { GetNegotiableQuoteQuery } from '../../__generated__/types';
3
+
4
+ type NegotiableQuote = GetNegotiableQuoteQuery['negotiableQuote'];
5
+ export declare const transformNegotiableQuote: (data: NegotiableQuote | undefined) => NegotiableQuoteModel | null;
6
+ export {};
7
+ //# sourceMappingURL=transform-negotiable-quote.d.ts.map
@@ -1,5 +1,5 @@
1
- import { GetCartQuery } from '../../__generated__/types';
2
1
  import { PaymentMethod } from '../models/payment-method';
2
+ import { GetCartQuery } from '../../__generated__/types';
3
3
 
4
4
  type SelectedPaymentMethod = NonNullable<GetCartQuery['cart']>['selected_payment_method'];
5
5
  type AvailablePaymentMethods = NonNullable<GetCartQuery['cart']>['available_payment_methods'];
@@ -0,0 +1,90 @@
1
+ import { Address as AddressModel, ShippingAddress as ShippingAddressModel } from '../models';
2
+ import { GetNegotiableQuoteQuery } from '../../__generated__/types';
3
+
4
+ type QuoteShippingAddresses = NonNullable<GetNegotiableQuoteQuery['negotiableQuote']>['shipping_addresses'];
5
+ type QuoteShippingAddress = QuoteShippingAddresses[0];
6
+ type QuoteBillingAddress = NonNullable<GetNegotiableQuoteQuery['negotiableQuote']>['billing_address'];
7
+ declare const transformQuoteBillingAddress: (data: QuoteBillingAddress) => AddressModel | undefined;
8
+ declare const transformQuoteShippingAddress: (data: ({
9
+ __typename?: "NegotiableQuoteShippingAddress" | undefined;
10
+ city: string;
11
+ company?: string | null | undefined;
12
+ fax?: string | null | undefined;
13
+ firstname: string;
14
+ lastname: string;
15
+ middlename?: string | null | undefined;
16
+ postcode?: string | null | undefined;
17
+ prefix?: string | null | undefined;
18
+ street: (string | null)[];
19
+ suffix?: string | null | undefined;
20
+ telephone?: string | null | undefined;
21
+ uid: string;
22
+ vat_id?: string | null | undefined;
23
+ available_shipping_methods?: ({
24
+ __typename?: "AvailableShippingMethod" | undefined;
25
+ carrier_code: string;
26
+ carrier_title: string;
27
+ error_message?: string | null | undefined;
28
+ method_code?: string | null | undefined;
29
+ method_title?: string | null | undefined;
30
+ amount: {
31
+ __typename?: "Money" | undefined;
32
+ currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
33
+ value?: number | null | undefined;
34
+ };
35
+ price_excl_tax: {
36
+ __typename?: "Money" | undefined;
37
+ value?: number | null | undefined;
38
+ currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
39
+ };
40
+ price_incl_tax: {
41
+ __typename?: "Money" | undefined;
42
+ value?: number | null | undefined;
43
+ currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
44
+ };
45
+ } | null)[] | null | undefined;
46
+ country: {
47
+ __typename?: "NegotiableQuoteAddressCountry" | undefined;
48
+ code: string;
49
+ label: string;
50
+ };
51
+ custom_attributes?: ({
52
+ __typename?: "AttributeFile" | undefined;
53
+ } | {
54
+ __typename?: "AttributeSelectedOptions" | undefined;
55
+ } | {
56
+ __typename?: "AttributeValue" | undefined;
57
+ code: string;
58
+ value: string;
59
+ } | null)[] | null | undefined;
60
+ region?: {
61
+ __typename?: "NegotiableQuoteAddressRegion" | undefined;
62
+ region_id?: number | null | undefined;
63
+ code?: string | null | undefined;
64
+ label?: string | null | undefined;
65
+ } | null | undefined;
66
+ selected_shipping_method?: {
67
+ __typename?: "SelectedShippingMethod" | undefined;
68
+ carrier_code: string;
69
+ carrier_title: string;
70
+ method_code: string;
71
+ method_title: string;
72
+ amount: {
73
+ __typename?: "Money" | undefined;
74
+ currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
75
+ value?: number | null | undefined;
76
+ };
77
+ price_excl_tax: {
78
+ __typename?: "Money" | undefined;
79
+ value?: number | null | undefined;
80
+ currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
81
+ };
82
+ price_incl_tax: {
83
+ __typename?: "Money" | undefined;
84
+ value?: number | null | undefined;
85
+ currency?: import('../../__generated__/types').CurrencyEnum | null | undefined;
86
+ };
87
+ } | null | undefined;
88
+ } | null)[]) => ShippingAddressModel[];
89
+ export { QuoteBillingAddress, QuoteShippingAddress, transformQuoteBillingAddress, transformQuoteShippingAddress, };
90
+ //# sourceMappingURL=transform-quote-address.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { Region as RegionModel } from '../models';
2
+ import { CartAddressRegion, NegotiableQuoteAddressRegion } from '../../__generated__/types';
3
+
4
+ type AddressRegion = CartAddressRegion | NegotiableQuoteAddressRegion;
5
+ type OptionalAddressRegion = AddressRegion | undefined | null;
6
+ export declare const transformAddressRegion: (data: OptionalAddressRegion) => RegionModel | undefined;
7
+ export {};
8
+ //# sourceMappingURL=transform-region.d.ts.map
package/fragments.js CHANGED
@@ -1,117 +1,130 @@
1
1
  /*! Copyright 2025 Adobe
2
2
  All Rights Reserved. */
3
3
  const e=`
4
+ fragment AVAILABLE_SHIPPING_METHOD_FRAGMENT on AvailableShippingMethod {
5
+ amount {
6
+ currency
7
+ value
8
+ }
9
+ carrier_code
10
+ carrier_title
11
+ error_message
12
+ method_code
13
+ method_title
14
+ price_excl_tax {
15
+ value
16
+ currency
17
+ }
18
+ price_incl_tax {
19
+ value
20
+ currency
21
+ }
22
+ }
23
+ `,t=`
24
+ fragment SELECTED_SHIPPING_METHOD_FRAGMENT on SelectedShippingMethod {
25
+ amount {
26
+ currency
27
+ value
28
+ }
29
+ carrier_code
30
+ carrier_title
31
+ method_code
32
+ method_title
33
+ price_excl_tax {
34
+ value
35
+ currency
36
+ }
37
+ price_incl_tax {
38
+ value
39
+ currency
40
+ }
41
+ }
42
+ `,a=`
4
43
  fragment BILLING_CART_ADDRESS_FRAGMENT on BillingCartAddress {
5
- id
6
44
  city
7
- country {
8
- code
9
- label
10
- }
11
- firstname
12
- lastname
13
45
  company
14
- postcode
15
- vat_id
16
- region {
17
- region_id
46
+ country {
18
47
  code
19
48
  label
20
49
  }
21
- street
22
- telephone
23
50
  custom_attributes {
24
51
  ... on AttributeValue {
25
52
  code
26
53
  value
27
54
  }
28
55
  }
29
- prefix
30
- suffix
31
- middlename
32
56
  fax
33
- }
34
- `,t=`
35
- fragment SHIPPING_CART_ADDRESS_FRAGMENT on ShippingCartAddress {
36
- id
37
57
  firstname
58
+ id
38
59
  lastname
39
- company
40
- street
41
- city
60
+ middlename
42
61
  postcode
43
- vat_id
62
+ prefix
44
63
  region {
45
64
  region_id
46
65
  code
47
66
  label
48
67
  }
68
+ street
69
+ suffix
70
+ telephone
71
+ uid
72
+ vat_id
73
+ }
74
+ `,i=`
75
+ fragment SHIPPING_CART_ADDRESS_FRAGMENT on ShippingCartAddress {
76
+ available_shipping_methods {
77
+ ...AVAILABLE_SHIPPING_METHOD_FRAGMENT
78
+ }
79
+ city
80
+ company
49
81
  country {
50
82
  code
51
83
  label
52
84
  }
53
- telephone
54
85
  custom_attributes {
55
86
  ... on AttributeValue {
56
87
  code
57
88
  value
58
89
  }
59
90
  }
60
- available_shipping_methods {
61
- amount {
62
- currency
63
- value
64
- }
65
- available
66
- carrier_code
67
- carrier_title
68
- error_message
69
- method_code
70
- method_title
71
- price_excl_tax {
72
- value
73
- currency
74
- }
75
- price_incl_tax {
76
- value
77
- currency
78
- }
91
+ fax
92
+ firstname
93
+ id
94
+ lastname
95
+ middlename
96
+ postcode
97
+ prefix
98
+ region {
99
+ region_id
100
+ code
101
+ label
79
102
  }
103
+ same_as_billing
80
104
  selected_shipping_method {
81
- amount {
82
- value
83
- currency
84
- }
85
- carrier_code
86
- carrier_title
87
- method_code
88
- method_title
89
- price_excl_tax {
90
- value
91
- currency
92
- }
93
- price_incl_tax {
94
- value
95
- currency
96
- }
105
+ ...SELECTED_SHIPPING_METHOD_FRAGMENT
97
106
  }
98
- same_as_billing
99
- prefix
107
+ street
100
108
  suffix
101
- middlename
102
- fax
109
+ telephone
110
+ uid
111
+ vat_id
103
112
  }
113
+
114
+ ${e}
115
+ ${t}
104
116
  `,_=`
105
117
  fragment AVAILABLE_PAYMENT_METHOD_FRAGMENT on AvailablePaymentMethod {
106
118
  code
107
119
  title
108
120
  }
109
- `,a=`
121
+ `,E=`
110
122
  fragment SELECTED_PAYMENT_METHOD_FRAGMENT on SelectedPaymentMethod {
111
123
  code
112
124
  title
125
+ purchase_order_number
113
126
  }
114
- `,i=`
127
+ `,A=`
115
128
  fragment CHECKOUT_DATA_FRAGMENT on Cart {
116
129
  id
117
130
  is_virtual
@@ -131,15 +144,112 @@ const e=`
131
144
  }
132
145
  }
133
146
 
134
- ${e}
135
- ${t}
136
- ${_}
137
147
  ${a}
148
+ ${i}
149
+ ${_}
150
+ ${E}
138
151
  `,r=`
139
152
  fragment CUSTOMER_FRAGMENT on Customer {
140
153
  firstname
141
154
  lastname
142
155
  email
143
156
  }
144
- `;export{_ as AVAILABLE_PAYMENT_METHOD_FRAGMENT,e as BILLING_CART_ADDRESS_FRAGMENT,i as CHECKOUT_DATA_FRAGMENT,r as CUSTOMER_FRAGMENT,a as SELECTED_PAYMENT_METHOD_FRAGMENT,t as SHIPPING_CART_ADDRESS_FRAGMENT};
157
+ `,n=`
158
+ fragment NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT on NegotiableQuoteBillingAddress {
159
+ city
160
+ company
161
+ country {
162
+ code
163
+ label
164
+ }
165
+ custom_attributes {
166
+ ... on AttributeValue {
167
+ code
168
+ value
169
+ }
170
+ }
171
+ fax
172
+ firstname
173
+ lastname
174
+ middlename
175
+ postcode
176
+ prefix
177
+ region {
178
+ region_id
179
+ code
180
+ label
181
+ }
182
+ street
183
+ suffix
184
+ telephone
185
+ uid
186
+ vat_id
187
+ }
188
+ `,o=`
189
+ fragment NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT on NegotiableQuoteShippingAddress {
190
+ available_shipping_methods {
191
+ ...AVAILABLE_SHIPPING_METHOD_FRAGMENT
192
+ }
193
+ city
194
+ company
195
+ country {
196
+ code
197
+ label
198
+ }
199
+ custom_attributes {
200
+ ... on AttributeValue {
201
+ code
202
+ value
203
+ }
204
+ }
205
+ fax
206
+ firstname
207
+ lastname
208
+ middlename
209
+ postcode
210
+ prefix
211
+ region {
212
+ region_id
213
+ code
214
+ label
215
+ }
216
+ selected_shipping_method {
217
+ ...SELECTED_SHIPPING_METHOD_FRAGMENT
218
+ }
219
+ street
220
+ suffix
221
+ telephone
222
+ uid
223
+ vat_id
224
+ }
225
+
226
+ ${e}
227
+ ${t}
228
+ `,T=`
229
+ fragment NEGOTIABLE_QUOTE_FRAGMENT on NegotiableQuote {
230
+ available_payment_methods {
231
+ ...AVAILABLE_PAYMENT_METHOD_FRAGMENT
232
+ }
233
+ billing_address {
234
+ ...NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT
235
+ }
236
+ email
237
+ is_virtual
238
+ name
239
+ selected_payment_method {
240
+ ...SELECTED_PAYMENT_METHOD_FRAGMENT
241
+ }
242
+ shipping_addresses {
243
+ ...NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT
244
+ }
245
+ status
246
+ total_quantity
247
+ uid
248
+ }
249
+
250
+ ${n}
251
+ ${o}
252
+ ${_}
253
+ ${E}
254
+ `;export{_ as AVAILABLE_PAYMENT_METHOD_FRAGMENT,e as AVAILABLE_SHIPPING_METHOD_FRAGMENT,a as BILLING_CART_ADDRESS_FRAGMENT,A as CHECKOUT_DATA_FRAGMENT,r as CUSTOMER_FRAGMENT,n as NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT,T as NEGOTIABLE_QUOTE_FRAGMENT,o as NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT,E as SELECTED_PAYMENT_METHOD_FRAGMENT,t as SELECTED_SHIPPING_METHOD_FRAGMENT,i as SHIPPING_CART_ADDRESS_FRAGMENT};
145
255
  //# sourceMappingURL=fragments.js.map
package/fragments.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"fragments.js","sources":["/@dropins/storefront-checkout/src/api/graphql/CartAddressFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CartPaymentMethodFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CheckoutDataFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CustomerFragment.graphql.ts"],"sourcesContent":["/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const BILLING_CART_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment BILLING_CART_ADDRESS_FRAGMENT on BillingCartAddress {\n id\n city\n country {\n code\n label\n }\n firstname\n lastname\n company\n postcode\n vat_id\n region {\n region_id\n code\n label\n }\n street\n telephone\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n prefix\n suffix\n middlename\n fax\n }\n`;\n\nexport const SHIPPING_CART_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment SHIPPING_CART_ADDRESS_FRAGMENT on ShippingCartAddress {\n id\n firstname\n lastname\n company\n street\n city\n postcode\n vat_id\n region {\n region_id\n code\n label\n }\n country {\n code\n label\n }\n telephone\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n available_shipping_methods {\n amount {\n currency\n value\n }\n available\n carrier_code\n carrier_title\n error_message\n method_code\n method_title\n price_excl_tax {\n value\n currency\n }\n price_incl_tax {\n value\n currency\n }\n }\n selected_shipping_method {\n amount {\n value\n currency\n }\n carrier_code\n carrier_title\n method_code\n method_title\n price_excl_tax {\n value\n currency\n }\n price_incl_tax {\n value\n currency\n }\n }\n same_as_billing\n prefix\n suffix\n middlename\n fax\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const AVAILABLE_PAYMENT_METHOD_FRAGMENT = /* GraphQL */ `\n fragment AVAILABLE_PAYMENT_METHOD_FRAGMENT on AvailablePaymentMethod {\n code\n title\n }\n`;\n\nexport const SELECTED_PAYMENT_METHOD_FRAGMENT = /* GraphQL */ `\n fragment SELECTED_PAYMENT_METHOD_FRAGMENT on SelectedPaymentMethod {\n code\n title\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n BILLING_CART_ADDRESS_FRAGMENT,\n SHIPPING_CART_ADDRESS_FRAGMENT,\n} from './CartAddressFragment.graphql';\nimport {\n AVAILABLE_PAYMENT_METHOD_FRAGMENT,\n SELECTED_PAYMENT_METHOD_FRAGMENT,\n} from './CartPaymentMethodFragment.graphql';\n\nexport const CHECKOUT_DATA_FRAGMENT = /* GraphQL */ `\n fragment CHECKOUT_DATA_FRAGMENT on Cart {\n id\n is_virtual\n email\n total_quantity\n billing_address {\n ...BILLING_CART_ADDRESS_FRAGMENT\n }\n shipping_addresses {\n ...SHIPPING_CART_ADDRESS_FRAGMENT\n }\n available_payment_methods {\n ...AVAILABLE_PAYMENT_METHOD_FRAGMENT\n }\n selected_payment_method {\n ...SELECTED_PAYMENT_METHOD_FRAGMENT\n }\n }\n\n ${BILLING_CART_ADDRESS_FRAGMENT}\n ${SHIPPING_CART_ADDRESS_FRAGMENT}\n ${AVAILABLE_PAYMENT_METHOD_FRAGMENT}\n ${SELECTED_PAYMENT_METHOD_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const CUSTOMER_FRAGMENT = /* GraphQL */ `\n fragment CUSTOMER_FRAGMENT on Customer {\n firstname\n lastname\n email\n }\n`;\n"],"names":["BILLING_CART_ADDRESS_FRAGMENT","SHIPPING_CART_ADDRESS_FRAGMENT","AVAILABLE_PAYMENT_METHOD_FRAGMENT","SELECTED_PAYMENT_METHOD_FRAGMENT","CHECKOUT_DATA_FRAGMENT","CUSTOMER_FRAGMENT"],"mappings":"AAiBa,MAAAA,EAA8C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiC9CC,EAA+C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,ECjC/CC,EAAkD;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlDC,EAAiD;AAAA;AAAA;AAAA;AAAA;AAAA,ECEjDC,EAAuC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAoBhDJ,CAA6B;AAAA,IAC7BC,CAA8B;AAAA,IAC9BC,CAAiC;AAAA,IACjCC,CAAgC;AAAA,EChCvBE,EAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;"}
1
+ {"version":3,"file":"fragments.js","sources":["/@dropins/storefront-checkout/src/api/graphql/ShippingMethodFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CartAddressFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/PaymentMethodFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CheckoutDataFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/CustomerFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/NegotiableQuoteAddressFragment.graphql.ts","/@dropins/storefront-checkout/src/api/graphql/NegotiableQuoteFragment.graphql.ts"],"sourcesContent":["/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const AVAILABLE_SHIPPING_METHOD_FRAGMENT = /* GraphQL */ `\n fragment AVAILABLE_SHIPPING_METHOD_FRAGMENT on AvailableShippingMethod {\n amount {\n currency\n value\n }\n carrier_code\n carrier_title\n error_message\n method_code\n method_title\n price_excl_tax {\n value\n currency\n }\n price_incl_tax {\n value\n currency\n }\n }\n`;\n\nexport const SELECTED_SHIPPING_METHOD_FRAGMENT = /* GraphQL */ `\n fragment SELECTED_SHIPPING_METHOD_FRAGMENT on SelectedShippingMethod {\n amount {\n currency\n value\n }\n carrier_code\n carrier_title\n method_code\n method_title\n price_excl_tax {\n value\n currency\n }\n price_incl_tax {\n value\n currency\n }\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n AVAILABLE_SHIPPING_METHOD_FRAGMENT,\n SELECTED_SHIPPING_METHOD_FRAGMENT,\n} from './ShippingMethodFragment.graphql';\n\nexport const BILLING_CART_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment BILLING_CART_ADDRESS_FRAGMENT on BillingCartAddress {\n city\n company\n country {\n code\n label\n }\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n fax\n firstname\n id\n lastname\n middlename\n postcode\n prefix\n region {\n region_id\n code\n label\n }\n street\n suffix\n telephone\n uid\n vat_id\n }\n`;\n\nexport const SHIPPING_CART_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment SHIPPING_CART_ADDRESS_FRAGMENT on ShippingCartAddress {\n available_shipping_methods {\n ...AVAILABLE_SHIPPING_METHOD_FRAGMENT\n }\n city\n company\n country {\n code\n label\n }\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n fax\n firstname\n id\n lastname\n middlename\n postcode\n prefix\n region {\n region_id\n code\n label\n }\n same_as_billing\n selected_shipping_method {\n ...SELECTED_SHIPPING_METHOD_FRAGMENT\n }\n street\n suffix\n telephone\n uid\n vat_id\n }\n\n ${AVAILABLE_SHIPPING_METHOD_FRAGMENT}\n ${SELECTED_SHIPPING_METHOD_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const AVAILABLE_PAYMENT_METHOD_FRAGMENT = /* GraphQL */ `\n fragment AVAILABLE_PAYMENT_METHOD_FRAGMENT on AvailablePaymentMethod {\n code\n title\n }\n`;\n\nexport const SELECTED_PAYMENT_METHOD_FRAGMENT = /* GraphQL */ `\n fragment SELECTED_PAYMENT_METHOD_FRAGMENT on SelectedPaymentMethod {\n code\n title\n purchase_order_number\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n BILLING_CART_ADDRESS_FRAGMENT,\n SHIPPING_CART_ADDRESS_FRAGMENT,\n} from './CartAddressFragment.graphql';\nimport {\n AVAILABLE_PAYMENT_METHOD_FRAGMENT,\n SELECTED_PAYMENT_METHOD_FRAGMENT,\n} from './PaymentMethodFragment.graphql';\n\nexport const CHECKOUT_DATA_FRAGMENT = /* GraphQL */ `\n fragment CHECKOUT_DATA_FRAGMENT on Cart {\n id\n is_virtual\n email\n total_quantity\n billing_address {\n ...BILLING_CART_ADDRESS_FRAGMENT\n }\n shipping_addresses {\n ...SHIPPING_CART_ADDRESS_FRAGMENT\n }\n available_payment_methods {\n ...AVAILABLE_PAYMENT_METHOD_FRAGMENT\n }\n selected_payment_method {\n ...SELECTED_PAYMENT_METHOD_FRAGMENT\n }\n }\n\n ${BILLING_CART_ADDRESS_FRAGMENT}\n ${SHIPPING_CART_ADDRESS_FRAGMENT}\n ${AVAILABLE_PAYMENT_METHOD_FRAGMENT}\n ${SELECTED_PAYMENT_METHOD_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2024 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nexport const CUSTOMER_FRAGMENT = /* GraphQL */ `\n fragment CUSTOMER_FRAGMENT on Customer {\n firstname\n lastname\n email\n }\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n AVAILABLE_SHIPPING_METHOD_FRAGMENT,\n SELECTED_SHIPPING_METHOD_FRAGMENT,\n} from './ShippingMethodFragment.graphql';\n\nexport const NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT on NegotiableQuoteBillingAddress {\n city\n company\n country {\n code\n label\n }\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n fax\n firstname\n lastname\n middlename\n postcode\n prefix\n region {\n region_id\n code\n label\n }\n street\n suffix\n telephone\n uid\n vat_id\n }\n`;\n\nexport const NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT = /* GraphQL */ `\n fragment NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT on NegotiableQuoteShippingAddress {\n available_shipping_methods {\n ...AVAILABLE_SHIPPING_METHOD_FRAGMENT\n }\n city\n company\n country {\n code\n label\n }\n custom_attributes {\n ... on AttributeValue {\n code\n value\n }\n }\n fax\n firstname\n lastname\n middlename\n postcode\n prefix\n region {\n region_id\n code\n label\n }\n selected_shipping_method {\n ...SELECTED_SHIPPING_METHOD_FRAGMENT\n }\n street\n suffix\n telephone\n uid\n vat_id\n }\n\n ${AVAILABLE_SHIPPING_METHOD_FRAGMENT}\n ${SELECTED_SHIPPING_METHOD_FRAGMENT}\n`;\n","/********************************************************************\n * ADOBE CONFIDENTIAL\n * __________________\n *\n * Copyright 2025 Adobe\n * All Rights Reserved.\n *\n * NOTICE: All information contained herein is, and remains\n * the property of Adobe and its suppliers, if any. The intellectual\n * and technical concepts contained herein are proprietary to Adobe\n * and its suppliers and are protected by all applicable intellectual\n * property laws, including trade secret and copyright laws.\n * Dissemination of this information or reproduction of this material\n * is strictly forbidden unless prior written permission is obtained\n * from Adobe.\n *******************************************************************/\n\nimport {\n NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT,\n NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT,\n} from './NegotiableQuoteAddressFragment.graphql';\n\nimport {\n AVAILABLE_PAYMENT_METHOD_FRAGMENT,\n SELECTED_PAYMENT_METHOD_FRAGMENT,\n} from './PaymentMethodFragment.graphql';\n\nexport const NEGOTIABLE_QUOTE_FRAGMENT = /* GraphQL */ `\n fragment NEGOTIABLE_QUOTE_FRAGMENT on NegotiableQuote {\n available_payment_methods {\n ...AVAILABLE_PAYMENT_METHOD_FRAGMENT\n }\n billing_address {\n ...NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT\n }\n email\n is_virtual\n name\n selected_payment_method {\n ...SELECTED_PAYMENT_METHOD_FRAGMENT\n }\n shipping_addresses {\n ...NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT\n }\n status\n total_quantity\n uid\n }\n\n ${NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT}\n ${NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT}\n ${AVAILABLE_PAYMENT_METHOD_FRAGMENT}\n ${SELECTED_PAYMENT_METHOD_FRAGMENT}\n`;\n"],"names":["AVAILABLE_SHIPPING_METHOD_FRAGMENT","SELECTED_SHIPPING_METHOD_FRAGMENT","BILLING_CART_ADDRESS_FRAGMENT","SHIPPING_CART_ADDRESS_FRAGMENT","AVAILABLE_PAYMENT_METHOD_FRAGMENT","SELECTED_PAYMENT_METHOD_FRAGMENT","CHECKOUT_DATA_FRAGMENT","CUSTOMER_FRAGMENT","NEGOTIABLE_QUOTE_BILLING_ADDRESS_FRAGMENT","NEGOTIABLE_QUOTE_SHIPPING_ADDRESS_FRAGMENT","NEGOTIABLE_QUOTE_FRAGMENT"],"mappings":"AAiBa,MAAAA,EAAmD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAsBnDC,EAAkD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,ECjBlDC,EAA8C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkC9CC,EAA+C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAwCxDH,CAAkC;AAAA,IAClCC,CAAiC;AAAA,EChFxBG,EAAkD;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlDC,EAAiD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,ECEjDC,EAAuC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAoBhDJ,CAA6B;AAAA,IAC7BC,CAA8B;AAAA,IAC9BC,CAAiC;AAAA,IACjCC,CAAgC;AAAA,EChCvBE,EAAkC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,ECKlCC,EAA0D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiC1DC,EAA2D;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAsCpET,CAAkC;AAAA,IAClCC,CAAiC;AAAA,ECnExBS,EAA0C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAsBnDF,CAAyC;AAAA,IACzCC,CAA0C;AAAA,IAC1CL,CAAiC;AAAA,IACjCC,CAAgC;"}
@@ -1,5 +1,11 @@
1
1
  declare const _default: {
2
2
  "Checkout": {
3
+ "AddressValidation": {
4
+ "title": "Verify your address",
5
+ "subtitle": "To ensure accurate delivery, we suggest the changes highlighted below. Please choose which address you would like to use. If neither option is correct, edit your address.",
6
+ "suggestedAddress": "Suggested Address",
7
+ "originalAddress": "Original Address"
8
+ },
3
9
  "BillToShippingAddress": {
4
10
  "cartSyncError": "We were unable to save your changes. Please try again later.",
5
11
  "title": "Bill to shipping address"
@@ -58,6 +64,22 @@ declare const _default: {
58
64
  "emptyState": "No payment methods available",
59
65
  "title": "Payment"
60
66
  },
67
+ "PaymentOnAccount": {
68
+ "referenceNumberLabel": "Custom Reference Number",
69
+ "referenceNumberPlaceholder": "Enter custom reference number",
70
+ "referenceNumberHint": "",
71
+ "availableCreditLabel": "Available Credit",
72
+ "exceedLimitWarning": "The credit limit is {{creditLimit}}. It will be exceeded by {{exceededAmount}} with this order.",
73
+ "exceedLimitWarningPrefix": "The credit limit is",
74
+ "exceedLimitWarningMiddle": ". It will be exceeded by",
75
+ "exceedLimitWarningSuffix": "with this order.",
76
+ "exceedLimitError": "Payment On Account cannot be used for this order because your order amount exceeds your credit amount."
77
+ },
78
+ "PurchaseOrder": {
79
+ "referenceNumberLabel": "Custom Reference Number",
80
+ "referenceNumberPlaceholder": "Enter custom reference number",
81
+ "referenceNumberHint": ""
82
+ },
61
83
  "PlaceOrder": {
62
84
  "button": "Place Order"
63
85
  },
@@ -67,6 +89,10 @@ declare const _default: {
67
89
  "title": "We were unable to process your order",
68
90
  "unexpected": "An unexpected error occurred while processing your order. Please try again later."
69
91
  },
92
+ "Quote": {
93
+ "permissionDenied": "You do not have permission to checkout with this quote.",
94
+ "dataError": "We were unable to retrieve the quote data. Please try again later."
95
+ },
70
96
  "ShippingMethods": {
71
97
  "cartSyncError": "We were unable to save your changes. Please try again later.",
72
98
  "emptyState": "This order can't be shipped to the address provided. Please review the address details you entered and make sure they're correct.",