@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.
@@ -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: 0,
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: {