@akinon/pz-tabby-extension 2.0.19-rc.2 → 2.0.19-rc.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @akinon/pz-tabby-extension
2
2
 
3
+ ## 2.0.19-rc.3
4
+
5
+ ### Patch Changes
6
+
7
+ - a3e2acbf: ZERO-4487: ensure Tabby shipping_address city/address/zip are never empty
8
+
3
9
  ## 2.0.19-rc.2
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/pz-tabby-extension",
3
- "version": "2.0.19-rc.2",
3
+ "version": "2.0.19-rc.3",
4
4
  "license": "MIT",
5
5
  "main": "src/index.tsx",
6
6
  "peerDependencies": {
@@ -67,9 +67,9 @@ export const TabbyPaymentGateway = async ({
67
67
  salt,
68
68
  hash,
69
69
  shipping_address: {
70
- city: preOrder?.pre_order?.shipping_address?.city?.name,
71
- address: preOrder?.pre_order?.shipping_address?.line,
72
- zip: preOrder?.pre_order?.shipping_address?.postcode ?? '0'
70
+ city: preOrder?.pre_order?.shipping_address?.city?.name || 'N/A',
71
+ address: preOrder?.pre_order?.shipping_address?.line || 'N/A',
72
+ zip: preOrder?.pre_order?.shipping_address?.postcode || '00000'
73
73
  },
74
74
  order_items: preOrder?.pre_order?.basket?.basketitem_set?.map(
75
75
  (item: any) => ({
@@ -104,9 +104,9 @@ export const TabbyPaymentGateway = async ({
104
104
  name: `${order_history?.billing_address?.first_name} ${order_history?.billing_address?.last_name}`
105
105
  },
106
106
  shipping_address: {
107
- city: order_history?.shipping_address?.city?.name,
108
- address: order_history?.shipping_address?.line,
109
- zip: order_history?.shipping_address?.postcode ?? '0'
107
+ city: order_history?.shipping_address?.city?.name || 'N/A',
108
+ address: order_history?.shipping_address?.line || 'N/A',
109
+ zip: order_history?.shipping_address?.postcode || '00000'
110
110
  },
111
111
  order_items: groupByProductId(order_history?.orderitem_set)
112
112
  })) ?? []