@chevre/domain 21.8.0-alpha.13 → 21.8.0-alpha.14

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.
@@ -73,15 +73,27 @@ function createPaymentMethods(params) {
73
73
  var _a, _b, _c;
74
74
  const result = a.result;
75
75
  const paymentMethodAmountCurrencyByAuthorizeAction = (_b = (_a = result.paymentMethodAsObject) === null || _a === void 0 ? void 0 : _a.amount) === null || _b === void 0 ? void 0 : _b.currency;
76
- const paymentMethodOfInvoice = (typeof paymentMethodAmountCurrencyByAuthorizeAction === 'string') ?
77
- { amount: { currency: paymentMethodAmountCurrencyByAuthorizeAction } }
78
- : undefined;
79
76
  // 決済方法区分は必ず存在するはず(2023-08-15~)
80
77
  const paymentMethodType = (_c = result.paymentMethodAsObject) === null || _c === void 0 ? void 0 : _c.typeOf;
81
78
  if (typeof paymentMethodType !== 'string') {
82
79
  throw new factory.errors.NotFound('authorizePaymentAction.result.paymentMethodAsObject.typeOf');
83
80
  }
84
- paymentMethods.push(Object.assign({ accountId: result.accountId, additionalProperty: (Array.isArray(result.additionalProperty)) ? result.additionalProperty : [], issuedThrough: result.issuedThrough, name: result.name, paymentMethodId: result.paymentMethodId, paymentStatus: result.paymentStatus, totalPaymentDue: result.totalPaymentDue, typeOf: paymentMethodType }, (paymentMethodOfInvoice !== undefined) ? { paymentMethod: paymentMethodOfInvoice } : undefined));
81
+ const paymentMethodOfInvoice = Object.assign({ identifier: paymentMethodType }, (typeof paymentMethodAmountCurrencyByAuthorizeAction === 'string') ?
82
+ { amount: { currency: paymentMethodAmountCurrencyByAuthorizeAction } }
83
+ : undefined);
84
+ paymentMethods.push({
85
+ accountId: result.accountId,
86
+ additionalProperty: (Array.isArray(result.additionalProperty)) ? result.additionalProperty : [],
87
+ issuedThrough: result.issuedThrough,
88
+ name: result.name,
89
+ paymentMethodId: result.paymentMethodId,
90
+ paymentStatus: result.paymentStatus,
91
+ totalPaymentDue: result.totalPaymentDue,
92
+ typeOf: paymentMethodType,
93
+ // CreditCardIFのカード通貨区分を追加(2023-08-15~)
94
+ // 決済方法区分を保証(2023-08-28~)
95
+ paymentMethod: paymentMethodOfInvoice
96
+ });
85
97
  });
86
98
  // 決済方法から注文金額の計算
87
99
  // price += authorizePaymentActions
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "dependencies": {
12
- "@chevre/factory": "4.327.0-alpha.3",
12
+ "@chevre/factory": "4.327.0-alpha.4",
13
13
  "@cinerino/sdk": "3.165.0",
14
14
  "@motionpicture/coa-service": "9.2.0",
15
15
  "@motionpicture/gmo-service": "5.2.0",
@@ -117,5 +117,5 @@
117
117
  "postversion": "git push origin --tags",
118
118
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
119
119
  },
120
- "version": "21.8.0-alpha.13"
120
+ "version": "21.8.0-alpha.14"
121
121
  }