@cinerino/sdk 7.0.0-alpha.6 → 7.0.0-alpha.7
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.
|
@@ -27,12 +27,17 @@ export declare class PaymentService extends Service {
|
|
|
27
27
|
purpose: IPurpose;
|
|
28
28
|
}): Promise<IAuthorizeResult>;
|
|
29
29
|
/**
|
|
30
|
-
* 決済ロケーション発行
|
|
30
|
+
* 決済採用(決済ロケーション発行)(非同期)
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
publishCreditCardPaymentUrlAsync(params: {
|
|
33
33
|
object: IPublishPaymentUrlObject;
|
|
34
34
|
purpose: IPurpose;
|
|
35
|
-
}): Promise<
|
|
35
|
+
}): Promise<{
|
|
36
|
+
/**
|
|
37
|
+
* task ID
|
|
38
|
+
*/
|
|
39
|
+
id: string;
|
|
40
|
+
}>;
|
|
36
41
|
/**
|
|
37
42
|
* 決済カード認証
|
|
38
43
|
*/
|
|
@@ -105,4 +110,26 @@ export declare class PaymentService extends Service {
|
|
|
105
110
|
};
|
|
106
111
|
purpose: IPurpose;
|
|
107
112
|
}): Promise<IFindAuthorizeActionResult>;
|
|
113
|
+
/**
|
|
114
|
+
* 決済採用アクション検索
|
|
115
|
+
*/
|
|
116
|
+
findAcceptPayAction(params: {
|
|
117
|
+
sameAs: {
|
|
118
|
+
id: string;
|
|
119
|
+
};
|
|
120
|
+
purpose: IPurpose;
|
|
121
|
+
}): Promise<{
|
|
122
|
+
/**
|
|
123
|
+
* アクションステータス
|
|
124
|
+
*/
|
|
125
|
+
actionStatus: factory.actionStatusType;
|
|
126
|
+
/**
|
|
127
|
+
* エラー
|
|
128
|
+
*/
|
|
129
|
+
error?: {
|
|
130
|
+
name?: string;
|
|
131
|
+
message?: string;
|
|
132
|
+
};
|
|
133
|
+
result?: IPublishPaymentUrlResult;
|
|
134
|
+
}>;
|
|
108
135
|
}
|
|
@@ -178,9 +178,9 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
178
178
|
});
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
181
|
-
* 決済ロケーション発行
|
|
181
|
+
* 決済採用(決済ロケーション発行)(非同期)
|
|
182
182
|
*/
|
|
183
|
-
PaymentService.prototype.
|
|
183
|
+
PaymentService.prototype.publishCreditCardPaymentUrlAsync = function (params) {
|
|
184
184
|
return __awaiter(this, void 0, void 0, function () {
|
|
185
185
|
var _a, auth, endpoint, project, seller, disableAutoRetry, retryableStatusCodes, chevrePay, paymentService;
|
|
186
186
|
return __generator(this, function (_b) {
|
|
@@ -201,7 +201,7 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
201
201
|
})];
|
|
202
202
|
case 2:
|
|
203
203
|
paymentService = _b.sent();
|
|
204
|
-
return [2 /*return*/, paymentService.
|
|
204
|
+
return [2 /*return*/, paymentService.publishCreditCardPaymentUrlAsync(params)];
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
207
|
});
|
|
@@ -368,6 +368,35 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
368
368
|
});
|
|
369
369
|
});
|
|
370
370
|
};
|
|
371
|
+
/**
|
|
372
|
+
* 決済採用アクション検索
|
|
373
|
+
*/
|
|
374
|
+
PaymentService.prototype.findAcceptPayAction = function (params) {
|
|
375
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
376
|
+
var sameAs, purpose, _a, auth, endpoint, project, seller, disableAutoRetry, retryableStatusCodes, chevrePay, paymentService;
|
|
377
|
+
return __generator(this, function (_b) {
|
|
378
|
+
switch (_b.label) {
|
|
379
|
+
case 0:
|
|
380
|
+
sameAs = params.sameAs, purpose = params.purpose;
|
|
381
|
+
_a = this.options, auth = _a.auth, endpoint = _a.endpoint, project = _a.project, seller = _a.seller, disableAutoRetry = _a.disableAutoRetry, retryableStatusCodes = _a.retryableStatusCodes;
|
|
382
|
+
return [4 /*yield*/, index_1.loadChevrePay({ auth: auth, endpoint: endpoint, disableAutoRetry: disableAutoRetry })];
|
|
383
|
+
case 1:
|
|
384
|
+
chevrePay = _b.sent();
|
|
385
|
+
return [4 /*yield*/, chevrePay.createPaymentInstance({
|
|
386
|
+
project: project,
|
|
387
|
+
seller: { id: (typeof (seller === null || seller === void 0 ? void 0 : seller.id) === 'string') ? seller.id : '' },
|
|
388
|
+
retryableStatusCodes: __spreadArray([], (Array.isArray(retryableStatusCodes)) ? retryableStatusCodes : [])
|
|
389
|
+
})];
|
|
390
|
+
case 2:
|
|
391
|
+
paymentService = _b.sent();
|
|
392
|
+
return [2 /*return*/, paymentService.findAcceptPayAction({
|
|
393
|
+
sameAs: { id: String(sameAs.id) },
|
|
394
|
+
purpose: purpose
|
|
395
|
+
})];
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
});
|
|
399
|
+
};
|
|
371
400
|
return PaymentService;
|
|
372
401
|
}(service_1.Service));
|
|
373
402
|
exports.PaymentService = PaymentService;
|
package/lib/bundle.js
CHANGED
|
@@ -21795,9 +21795,9 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
21795
21795
|
});
|
|
21796
21796
|
};
|
|
21797
21797
|
/**
|
|
21798
|
-
* 決済ロケーション発行
|
|
21798
|
+
* 決済採用(決済ロケーション発行)(非同期)
|
|
21799
21799
|
*/
|
|
21800
|
-
PaymentService.prototype.
|
|
21800
|
+
PaymentService.prototype.publishCreditCardPaymentUrlAsync = function (params) {
|
|
21801
21801
|
return __awaiter(this, void 0, void 0, function () {
|
|
21802
21802
|
var _a, auth, endpoint, project, seller, disableAutoRetry, retryableStatusCodes, chevrePay, paymentService;
|
|
21803
21803
|
return __generator(this, function (_b) {
|
|
@@ -21818,7 +21818,7 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
21818
21818
|
})];
|
|
21819
21819
|
case 2:
|
|
21820
21820
|
paymentService = _b.sent();
|
|
21821
|
-
return [2 /*return*/, paymentService.
|
|
21821
|
+
return [2 /*return*/, paymentService.publishCreditCardPaymentUrlAsync(params)];
|
|
21822
21822
|
}
|
|
21823
21823
|
});
|
|
21824
21824
|
});
|
|
@@ -21985,6 +21985,35 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
21985
21985
|
});
|
|
21986
21986
|
});
|
|
21987
21987
|
};
|
|
21988
|
+
/**
|
|
21989
|
+
* 決済採用アクション検索
|
|
21990
|
+
*/
|
|
21991
|
+
PaymentService.prototype.findAcceptPayAction = function (params) {
|
|
21992
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
21993
|
+
var sameAs, purpose, _a, auth, endpoint, project, seller, disableAutoRetry, retryableStatusCodes, chevrePay, paymentService;
|
|
21994
|
+
return __generator(this, function (_b) {
|
|
21995
|
+
switch (_b.label) {
|
|
21996
|
+
case 0:
|
|
21997
|
+
sameAs = params.sameAs, purpose = params.purpose;
|
|
21998
|
+
_a = this.options, auth = _a.auth, endpoint = _a.endpoint, project = _a.project, seller = _a.seller, disableAutoRetry = _a.disableAutoRetry, retryableStatusCodes = _a.retryableStatusCodes;
|
|
21999
|
+
return [4 /*yield*/, index_1.loadChevrePay({ auth: auth, endpoint: endpoint, disableAutoRetry: disableAutoRetry })];
|
|
22000
|
+
case 1:
|
|
22001
|
+
chevrePay = _b.sent();
|
|
22002
|
+
return [4 /*yield*/, chevrePay.createPaymentInstance({
|
|
22003
|
+
project: project,
|
|
22004
|
+
seller: { id: (typeof (seller === null || seller === void 0 ? void 0 : seller.id) === 'string') ? seller.id : '' },
|
|
22005
|
+
retryableStatusCodes: __spreadArray([], (Array.isArray(retryableStatusCodes)) ? retryableStatusCodes : [])
|
|
22006
|
+
})];
|
|
22007
|
+
case 2:
|
|
22008
|
+
paymentService = _b.sent();
|
|
22009
|
+
return [2 /*return*/, paymentService.findAcceptPayAction({
|
|
22010
|
+
sameAs: { id: String(sameAs.id) },
|
|
22011
|
+
purpose: purpose
|
|
22012
|
+
})];
|
|
22013
|
+
}
|
|
22014
|
+
});
|
|
22015
|
+
});
|
|
22016
|
+
};
|
|
21988
22017
|
return PaymentService;
|
|
21989
22018
|
}(service_1.Service));
|
|
21990
22019
|
exports.PaymentService = PaymentService;
|