@misiki/gocommerce-connector 0.26.0 → 0.27.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/dist/{index-BWwh1d1q.d.cts → index-BY0qUnNO.d.cts} +7 -0
- package/dist/{index-BWwh1d1q.d.ts → index-BY0qUnNO.d.ts} +7 -0
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs +4 -2
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.d.cts +1 -1
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +4 -2
- package/dist/services/index.js.map +1 -1
- package/package.json +1 -1
package/dist/services/index.cjs
CHANGED
|
@@ -961,7 +961,7 @@ function toOrder(o) {
|
|
|
961
961
|
taxIncluded: o.tax_inclusive,
|
|
962
962
|
total: toMajor(o.total),
|
|
963
963
|
refunded: toMajor(o.refunded),
|
|
964
|
-
codCharges:
|
|
964
|
+
codCharges: toMajor(o.payment_fee),
|
|
965
965
|
coupon: code ? { code } : null,
|
|
966
966
|
userEmail: o.email,
|
|
967
967
|
email: o.email,
|
|
@@ -2365,6 +2365,7 @@ var PaymentMethodService = class extends BaseService {
|
|
|
2365
2365
|
title: m.name,
|
|
2366
2366
|
description: "",
|
|
2367
2367
|
img: drive(m.code).img ?? null,
|
|
2368
|
+
fee: toMajor(m.fee),
|
|
2368
2369
|
rank: i,
|
|
2369
2370
|
active: true,
|
|
2370
2371
|
isActive: true
|
|
@@ -3232,7 +3233,8 @@ var StoreService = class extends BaseService {
|
|
|
3232
3233
|
currency: {
|
|
3233
3234
|
...base.currency ?? {},
|
|
3234
3235
|
code,
|
|
3235
|
-
symbol: sameCurrency ? base.currency?.symbol ?? symbolFor(code) : symbolFor(code)
|
|
3236
|
+
symbol: sameCurrency ? base.currency?.symbol ?? symbolFor(code) : symbolFor(code),
|
|
3237
|
+
includesTax: profile?.prices_include_tax
|
|
3236
3238
|
},
|
|
3237
3239
|
language: ready.language,
|
|
3238
3240
|
plugins: {
|