@chevre/domain 23.2.0-alpha.3 → 23.2.0-alpha.4
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.
|
@@ -41,6 +41,10 @@ export declare function creatPayTransactionStartParams(params: {
|
|
|
41
41
|
* 決済方法チケット
|
|
42
42
|
*/
|
|
43
43
|
ticketToken?: string;
|
|
44
|
+
/**
|
|
45
|
+
* ツールとしての対応決済方法オファー
|
|
46
|
+
*/
|
|
47
|
+
instrument: factory.action.trade.pay.IAcceptedPaymentMethodOfferAsInstrument[];
|
|
44
48
|
}): factory.assetTransaction.pay.IStartParamsWithoutDetail & {
|
|
45
49
|
instrument: factory.action.trade.pay.IPlaceOrderRelatedInstrument[];
|
|
46
50
|
};
|
|
@@ -79,7 +79,8 @@ function creatPayTransactionStartParams(params) {
|
|
|
79
79
|
const instrument = [
|
|
80
80
|
{ id: params.action.id, typeOf: params.action.typeOf },
|
|
81
81
|
{ orderNumber, typeOf: factory.order.OrderType.Order },
|
|
82
|
-
...(ticketAsInstrument !== undefined) ? [ticketAsInstrument] : [] // add ticketAsInstrument(2025-11-25~)
|
|
82
|
+
...(ticketAsInstrument !== undefined) ? [ticketAsInstrument] : [], // add ticketAsInstrument(2025-11-25~)
|
|
83
|
+
...(Array.isArray(params.instrument)) ? params.instrument : [] // instrumentを対応決済方法オファーに対応(2025-12-14~)
|
|
83
84
|
];
|
|
84
85
|
return Object.assign({ project: { id: params.transaction.project.id, typeOf: factory.organizationType.Project }, typeOf: factory.assetTransactionType.Pay, transactionNumber: params.transactionNumber, agent: {
|
|
85
86
|
typeOf: params.transaction.seller.typeOf,
|
|
@@ -539,7 +539,8 @@ function authorize(params) {
|
|
|
539
539
|
// orderNumber required(2025-02-14~)
|
|
540
540
|
order: { confirmationNumber, orderNumber },
|
|
541
541
|
action: { id: action.id, typeOf: action.typeOf },
|
|
542
|
-
ticketToken
|
|
542
|
+
ticketToken,
|
|
543
|
+
instrument: params.instrument
|
|
543
544
|
});
|
|
544
545
|
payTransaction = yield PayTransactionService.start(startParams, Object.assign({
|
|
545
546
|
// useCheckByIdentifierIfNotYet: params.options.useCheckByIdentifierIfNotYet,
|
|
@@ -53,7 +53,7 @@ function call(params) {
|
|
|
53
53
|
const useCredentialsRepo = typeof paymentServiceId === 'string' && paymentServiceId !== ''
|
|
54
54
|
&& typeof credentialsExpireInSeconds === 'number' && credentialsExpireInSeconds > 0;
|
|
55
55
|
try {
|
|
56
|
-
yield (0, any_1.authorize)(Object.assign(Object.assign({}, params.data), { sameAs: { id: params.id } // タスクIDを関連付け(2024-04-20~)
|
|
56
|
+
yield (0, any_1.authorize)(Object.assign(Object.assign({}, params.data), { instrument: (Array.isArray(params.data.instrument)) ? params.data.instrument : [], sameAs: { id: params.id } // タスクIDを関連付け(2024-04-20~)
|
|
57
57
|
}))({
|
|
58
58
|
acceptedPaymentMethod: new acceptedPaymentMethod_1.AcceptedPaymentMethodRepo(connection),
|
|
59
59
|
accountingReport: new accountingReport_1.AccountingReportRepo(connection),
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@aws-sdk/client-cognito-identity-provider": "3.600.0",
|
|
13
13
|
"@aws-sdk/credential-providers": "3.600.0",
|
|
14
|
-
"@chevre/factory": "5.4.0-alpha.
|
|
14
|
+
"@chevre/factory": "5.4.0-alpha.8",
|
|
15
15
|
"@cinerino/sdk": "12.12.1",
|
|
16
16
|
"@motionpicture/coa-service": "9.6.0",
|
|
17
17
|
"@motionpicture/gmo-service": "5.4.0-alpha.1",
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"postversion": "git push origin --tags",
|
|
116
116
|
"prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
|
|
117
117
|
},
|
|
118
|
-
"version": "23.2.0-alpha.
|
|
118
|
+
"version": "23.2.0-alpha.4"
|
|
119
119
|
}
|