@doswiftly/storefront-operations 20.0.0 → 20.1.0

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.
package/AGENTS.md CHANGED
@@ -27,7 +27,7 @@ consumer's `codegen.ts` references this package's `.graphql` files as
27
27
  live in the consumer's repo.
28
28
 
29
29
  <!-- AUTOGEN:STATS:BEGIN — auto-regenerated, do not edit by hand -->
30
- - **Schema version**: 20.0.0
30
+ - **Schema version**: 20.1.0
31
31
  - **Queries**: 52
32
32
  - **Mutations**: 44
33
33
  - **Fragments**: 104
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 20.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e1bda76: Cart addresses now carry full B2B invoice identity end to end. `cartSetShippingAddress` and `cartSetBillingAddress` accept an EU VAT number (`vatNumber`, e.g. `PL1234567890`) alongside the existing tax ID and business registry number, and the cart address now returns all three (`taxId`, `vatNumber`, `regon`) — so a storefront can display and re-confirm exactly what the buyer entered. These values are carried onto the resulting order at checkout, ready for reverse-charge and cross-border B2B invoices.
8
+
9
+ Signed-in shoppers also get their saved default shipping and billing address — including those B2B fields — prefilled into the cart automatically when they create a cart or log in. Anything the shopper has already typed is never overwritten.
10
+
3
11
  ## 20.0.0
4
12
 
5
13
  ### Major Changes
package/README.md CHANGED
@@ -472,7 +472,7 @@ full executable body of each operation.
472
472
  | Fragment | On Type | Description |
473
473
  | --- | --- | --- |
474
474
  | `PickupPoint` | `PickupPoint` | Selected pickup point (parcel locker or collection point) attached to a delivery address. Returned on `MailingAddress.pickupPoint` when the buyer chose a non-home delivery method (`deliveryType` other than `HOME`). Null for home delivery. |
475
- | `MailingAddress` | `MailingAddress` | Customer mailing address — full street/city/state/country/postal code with names and phone. `isDefault` flips when this address is the default for shipping. Carries B2B invoicing fields (`taxId`, `vatNumber`) and the selected `pickupPoint` for parcel locker / collection point deliveries. Spread on the address book UI, checkout shipping/billing forms, and order summaries. |
475
+ | `MailingAddress` | `MailingAddress` | Customer mailing address — full street/city/state/country/postal code with names and phone. `isDefault` flips when this address is the default for shipping. Carries B2B invoicing fields (`taxId`, `vatNumber`, `regon`) and the selected `pickupPoint` for parcel locker / collection point deliveries. Spread on the address book UI, checkout shipping/billing forms, and order summaries. |
476
476
  | `CustomerAccessToken` | `CustomerAccessToken` | Customer access token returned by `customerLogin` / `customerSignup` / `customerActivate` / `customerResetPassword` / `customerRefreshToken`. The token's JWT TTL is 24h; cookie max-age is 30d. |
477
477
  | `Customer` | `Customer` | Customer profile — basic info plus B2B fields (`taxId`, `vatNumber`, `regon`, `companyName`), default address, lifetime stats (`orderCount`, `totalSpent`), marketing preferences. Use on profile / settings pages. |
478
478
  | `Order` | `Order` | Order summary — number, totals (cost / tax / shipping), payment + fulfillment status, shipping address, item count, lifecycle timestamps, plus payment capability signal (`canCreatePayment` + `paymentMethodType`) the storefront uses to decide post-completion payment flow without hard-coded provider checks. Spread on the order list, order detail, and the `cartComplete` mutation result. Line items are not included here. |
package/fragments.graphql CHANGED
@@ -252,7 +252,7 @@ fragment PickupPoint on PickupPoint {
252
252
  address
253
253
  }
254
254
 
255
- # Customer mailing address — full street/city/state/country/postal code with names and phone. `isDefault` flips when this address is the default for shipping. Carries B2B invoicing fields (`taxId`, `vatNumber`) and the selected `pickupPoint` for parcel locker / collection point deliveries. Spread on the address book UI, checkout shipping/billing forms, and order summaries.
255
+ # Customer mailing address — full street/city/state/country/postal code with names and phone. `isDefault` flips when this address is the default for shipping. Carries B2B invoicing fields (`taxId`, `vatNumber`, `regon`) and the selected `pickupPoint` for parcel locker / collection point deliveries. Spread on the address book UI, checkout shipping/billing forms, and order summaries.
256
256
  fragment MailingAddress on MailingAddress {
257
257
  id
258
258
  streetLine1
@@ -271,6 +271,7 @@ fragment MailingAddress on MailingAddress {
271
271
  isDefault
272
272
  taxId
273
273
  vatNumber
274
+ regon
274
275
  pickupPoint {
275
276
  ...PickupPoint
276
277
  }
package/llms-full.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  # DoSwiftly Storefront Operations — Full Reference
2
2
 
3
- > Schema version: **20.0.0**
3
+ > Schema version: **20.1.0**
4
4
  > 52 queries · 44 mutations · 104 fragments
5
5
 
6
6
  Auto-generated from `.graphql` source files. Do not edit by hand — this file is
@@ -2927,7 +2927,7 @@ fragment PickupPoint on PickupPoint {
2927
2927
 
2928
2928
  **Section**: Customer
2929
2929
 
2930
- **Description**: Customer mailing address — full street/city/state/country/postal code with names and phone. `isDefault` flips when this address is the default for shipping. Carries B2B invoicing fields (`taxId`, `vatNumber`) and the selected `pickupPoint` for parcel locker / collection point deliveries. Spread on the address book UI, checkout shipping/billing forms, and order summaries.
2930
+ **Description**: Customer mailing address — full street/city/state/country/postal code with names and phone. `isDefault` flips when this address is the default for shipping. Carries B2B invoicing fields (`taxId`, `vatNumber`, `regon`) and the selected `pickupPoint` for parcel locker / collection point deliveries. Spread on the address book UI, checkout shipping/billing forms, and order summaries.
2931
2931
 
2932
2932
  **Uses fragments**: `PickupPoint`
2933
2933
 
@@ -2951,6 +2951,7 @@ fragment MailingAddress on MailingAddress {
2951
2951
  isDefault
2952
2952
  taxId
2953
2953
  vatNumber
2954
+ regon
2954
2955
  pickupPoint {
2955
2956
  ...PickupPoint
2956
2957
  }
package/operations.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "schemaVersion": "20.0.0",
2
+ "schemaVersion": "20.1.0",
3
3
  "queries": [
4
4
  {
5
5
  "name": "Shop",
@@ -2112,12 +2112,12 @@
2112
2112
  "name": "MailingAddress",
2113
2113
  "kind": "fragment",
2114
2114
  "section": "Customer",
2115
- "description": "Customer mailing address — full street/city/state/country/postal code with names and phone. `isDefault` flips when this address is the default for shipping. Carries B2B invoicing fields (`taxId`, `vatNumber`) and the selected `pickupPoint` for parcel locker / collection point deliveries. Spread on the address book UI, checkout shipping/billing forms, and order summaries.",
2115
+ "description": "Customer mailing address — full street/city/state/country/postal code with names and phone. `isDefault` flips when this address is the default for shipping. Carries B2B invoicing fields (`taxId`, `vatNumber`, `regon`) and the selected `pickupPoint` for parcel locker / collection point deliveries. Spread on the address book UI, checkout shipping/billing forms, and order summaries.",
2116
2116
  "variables": [],
2117
2117
  "fragmentRefs": [
2118
2118
  "PickupPoint"
2119
2119
  ],
2120
- "body": "fragment MailingAddress on MailingAddress {\n id\n streetLine1\n streetLine2\n city\n company\n country\n countryCode\n firstName\n lastName\n name\n phone\n state\n stateCode\n postalCode\n isDefault\n taxId\n vatNumber\n pickupPoint {\n ...PickupPoint\n }\n}",
2120
+ "body": "fragment MailingAddress on MailingAddress {\n id\n streetLine1\n streetLine2\n city\n company\n country\n countryCode\n firstName\n lastName\n name\n phone\n state\n stateCode\n postalCode\n isDefault\n taxId\n vatNumber\n regon\n pickupPoint {\n ...PickupPoint\n }\n}",
2121
2121
  "onType": "MailingAddress"
2122
2122
  },
2123
2123
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doswiftly/storefront-operations",
3
- "version": "20.0.0",
3
+ "version": "20.1.0",
4
4
  "description": "GraphQL operations for DoSwiftly Storefront - SSOT from backend",
5
5
  "homepage": "https://doswiftly.pl",
6
6
  "publishConfig": {
package/schema.graphql CHANGED
@@ -1046,7 +1046,7 @@ type CartAddLinesPayload {
1046
1046
  }
1047
1047
 
1048
1048
  """
1049
- Mailing address used as the shipping or billing address on a cart. Carries an optional pickup point (for parcel locker / collection-point delivery) and optional B2B fields (`taxId`, `regon`).
1049
+ Mailing address used as the shipping or billing address on a cart. Carries an optional pickup point (for parcel locker / collection-point delivery) and optional B2B fields (`taxId`, `vatNumber`, `regon`).
1050
1050
  """
1051
1051
  input CartAddressInput {
1052
1052
  """City"""
@@ -1093,6 +1093,11 @@ input CartAddressInput {
1093
1093
  Buyer tax ID for B2B invoicing (Polish NIP). Persisted on the resulting order at checkout completion.
1094
1094
  """
1095
1095
  taxId: String
1096
+
1097
+ """
1098
+ Buyer EU VAT number for cross-border B2B invoicing (e.g. PL1234567890). Persisted on the resulting order at checkout completion.
1099
+ """
1100
+ vatNumber: String
1096
1101
  }
1097
1102
 
1098
1103
  """
@@ -3828,7 +3833,7 @@ enum LoyaltyTransactionType {
3828
3833
  }
3829
3834
 
3830
3835
  """
3831
- A mailing address — shipping or billing — used on a cart, on the resulting order, or saved in a customer address book. Carries optional B2B fields (`taxId`, `vatNumber`) and an optional `pickupPoint` for parcel locker / collection-point delivery.
3836
+ A mailing address — shipping or billing — used on a cart, on the resulting order, or saved in a customer address book. Carries optional B2B fields (`taxId`, `vatNumber`, `regon`) and an optional `pickupPoint` for parcel locker / collection-point delivery.
3832
3837
  """
3833
3838
  type MailingAddress implements Node {
3834
3839
  """City / town."""
@@ -3881,6 +3886,11 @@ type MailingAddress implements Node {
3881
3886
  """Postal / ZIP code."""
3882
3887
  postalCode: String
3883
3888
 
3889
+ """
3890
+ Buyer business registry number (Polish REGON) carried on a cart address for B2B invoicing. Populated on cart shipping/billing addresses; null on customer address-book entries (REGON is customer-level).
3891
+ """
3892
+ regon: String
3893
+
3884
3894
  """State / province / region name."""
3885
3895
  state: String
3886
3896