@devx-commerce/plugin-gati 0.0.2-beta.71 → 0.0.2-beta.72
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/.medusa/server/src/subscribers/party-master-location.js +2 -2
- package/.medusa/server/src/subscribers/party-master.js +4 -4
- package/.medusa/server/src/subscribers/shipping-info-master.js +2 -2
- package/.medusa/server/src/workflows/style-master/workflows/create-or-update-style-master.js +1 -1
- package/package.json +1 -1
|
@@ -49,7 +49,7 @@ async function handleCreate(container, data) {
|
|
|
49
49
|
address_2: data.firm_add2 || "",
|
|
50
50
|
address_3: data.firm_add3 || "",
|
|
51
51
|
}),
|
|
52
|
-
country_code: data.country === "India" ? "
|
|
52
|
+
country_code: data.country === "India" ? "in" : data.country,
|
|
53
53
|
city: data.firm_city,
|
|
54
54
|
phone: (0, phone_mapper_1.formatIndianPhoneNumber)(data.owner_mobile),
|
|
55
55
|
province: data.state.match(/\[(.*?)\]/)?.[1] || data.state,
|
|
@@ -97,7 +97,7 @@ async function handleUpdate(container, data) {
|
|
|
97
97
|
address_2: data.firm_add2 || "",
|
|
98
98
|
address_3: data.firm_add3 || "",
|
|
99
99
|
}),
|
|
100
|
-
country_code: data.country === "India" ? "
|
|
100
|
+
country_code: data.country === "India" ? "in" : data.country,
|
|
101
101
|
city: data.firm_city,
|
|
102
102
|
phone: (0, phone_mapper_1.formatIndianPhoneNumber)(data.owner_mobile),
|
|
103
103
|
province: data.state.match(/\[(.*?)\]/)?.[1] || data.state,
|
|
@@ -59,7 +59,7 @@ async function handleCreate(container, data) {
|
|
|
59
59
|
address_3: data.firm_add3,
|
|
60
60
|
}),
|
|
61
61
|
city: data.firm_city,
|
|
62
|
-
country_code: data.country === "India" ? "
|
|
62
|
+
country_code: data.country === "India" ? "in" : data.country,
|
|
63
63
|
province: data.state.match(/\[(.*?)\]/)?.[1] || data.state,
|
|
64
64
|
postal_code: data.firm_pin_code,
|
|
65
65
|
phone: (0, phone_mapper_1.formatIndianPhoneNumber)(data.owner_mobile),
|
|
@@ -162,7 +162,7 @@ async function handleUpdate(container, data) {
|
|
|
162
162
|
address_3: data.firm_add3,
|
|
163
163
|
}),
|
|
164
164
|
city: data.firm_city,
|
|
165
|
-
country_code: data.country === "India" ? "
|
|
165
|
+
country_code: data.country === "India" ? "in" : data.country,
|
|
166
166
|
province: data.state.match(/\[(.*?)\]/)?.[1] || data.state,
|
|
167
167
|
postal_code: data.firm_pin_code,
|
|
168
168
|
phone: (0, phone_mapper_1.formatIndianPhoneNumber)(data.owner_mobile),
|
|
@@ -183,7 +183,7 @@ async function handleUpdate(container, data) {
|
|
|
183
183
|
address_3: data.firm_add3,
|
|
184
184
|
}),
|
|
185
185
|
city: data.firm_city,
|
|
186
|
-
country_code: data.country === "India" ? "
|
|
186
|
+
country_code: data.country === "India" ? "in" : data.country,
|
|
187
187
|
province: data.state.match(/\[(.*?)\]/)?.[1] || data.state,
|
|
188
188
|
postal_code: data.firm_pin_code,
|
|
189
189
|
phone: (0, phone_mapper_1.formatIndianPhoneNumber)(data.owner_mobile),
|
|
@@ -207,7 +207,7 @@ async function handleUpdate(container, data) {
|
|
|
207
207
|
address_3: data.firm_add3,
|
|
208
208
|
}),
|
|
209
209
|
city: data.firm_city,
|
|
210
|
-
country_code: data.country === "India" ? "
|
|
210
|
+
country_code: data.country === "India" ? "in" : data.country,
|
|
211
211
|
province: data.state.match(/\[(.*?)\]/)?.[1] || data.state,
|
|
212
212
|
postal_code: data.firm_pin_code,
|
|
213
213
|
phone: (0, phone_mapper_1.formatIndianPhoneNumber)(data.owner_mobile),
|
|
@@ -61,7 +61,7 @@ async function handleCreate(container, shippingInfoId) {
|
|
|
61
61
|
address_1: shipping_info_master.address1,
|
|
62
62
|
address_2: shipping_info_master.address2,
|
|
63
63
|
city: shipping_info_master.city,
|
|
64
|
-
country_code: "
|
|
64
|
+
country_code: "in",
|
|
65
65
|
province: (0, state_helper_1.getStateCode)(shipping_info_master.state),
|
|
66
66
|
postal_code: shipping_info_master.pin_code,
|
|
67
67
|
customer_id: party_master.mapping_id,
|
|
@@ -101,7 +101,7 @@ async function handleUpdate(container, shippingInfoId) {
|
|
|
101
101
|
city: shipping_info_master.city,
|
|
102
102
|
province: (0, state_helper_1.getStateCode)(shipping_info_master.state),
|
|
103
103
|
postal_code: shipping_info_master.pin_code,
|
|
104
|
-
country_code: "
|
|
104
|
+
country_code: "in",
|
|
105
105
|
company: shipping_info_master.shipping_name,
|
|
106
106
|
address_name: shipping_info_master.shipping_name,
|
|
107
107
|
},
|
package/.medusa/server/src/workflows/style-master/workflows/create-or-update-style-master.js
CHANGED
|
@@ -221,7 +221,7 @@ exports.createOrUpdateStyleMasterWorkflow = (0, workflows_sdk_1.createWorkflow)(
|
|
|
221
221
|
values: ["Default"],
|
|
222
222
|
},
|
|
223
223
|
],
|
|
224
|
-
origin_country: "
|
|
224
|
+
origin_country: "in",
|
|
225
225
|
material: styleData.StyleMstDetail.find((i) => i.RawType === "Metal" && i.IsBase)?.RawCode || "",
|
|
226
226
|
height,
|
|
227
227
|
width,
|