@cinerino/sdk 5.18.0-alpha.13 → 5.18.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.
|
@@ -16423,17 +16423,6 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16423
16423
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
16424
16424
|
};
|
|
16425
16425
|
})();
|
|
16426
|
-
var __assign = (this && this.__assign) || function () {
|
|
16427
|
-
__assign = Object.assign || function(t) {
|
|
16428
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
16429
|
-
s = arguments[i];
|
|
16430
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
16431
|
-
t[p] = s[p];
|
|
16432
|
-
}
|
|
16433
|
-
return t;
|
|
16434
|
-
};
|
|
16435
|
-
return __assign.apply(this, arguments);
|
|
16436
|
-
};
|
|
16437
16426
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16438
16427
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16439
16428
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -16522,21 +16511,50 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
16522
16511
|
/**
|
|
16523
16512
|
* クレジットカード決済承認
|
|
16524
16513
|
*/
|
|
16525
|
-
PaymentService.prototype.authorizeCreditCard = function (params
|
|
16514
|
+
PaymentService.prototype.authorizeCreditCard = function (params) {
|
|
16526
16515
|
return __awaiter(this, void 0, void 0, function () {
|
|
16516
|
+
var object, purpose;
|
|
16527
16517
|
var _this = this;
|
|
16528
16518
|
return __generator(this, function (_a) {
|
|
16519
|
+
object = params.object, purpose = params.purpose;
|
|
16529
16520
|
return [2 /*return*/, this.fetch({
|
|
16530
16521
|
uri: "/payment/" + factory.service.paymentService.PaymentServiceType.CreditCard + "/authorize",
|
|
16531
16522
|
method: 'POST',
|
|
16532
|
-
expectedStatusCodes: [http_status_1.
|
|
16523
|
+
expectedStatusCodes: [http_status_1.CREATED],
|
|
16533
16524
|
// retry 429(2024-04-01~)
|
|
16534
16525
|
// retry 409(2024-04-01~)
|
|
16535
16526
|
// retry 504(2024-04-03~)
|
|
16536
16527
|
retryableStatusCodes: [http_status_1.CONFLICT, http_status_1.GATEWAY_TIMEOUT, http_status_1.TOO_MANY_REQUESTS],
|
|
16537
|
-
body:
|
|
16538
|
-
qs:
|
|
16539
|
-
|
|
16528
|
+
body: { object: object, purpose: purpose },
|
|
16529
|
+
qs: {
|
|
16530
|
+
purpose: { id: params.purpose.id } // 追加(2024-04-03~)
|
|
16531
|
+
}
|
|
16532
|
+
})
|
|
16533
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
16534
|
+
return [2 /*return*/, response.json()];
|
|
16535
|
+
}); }); })];
|
|
16536
|
+
});
|
|
16537
|
+
});
|
|
16538
|
+
};
|
|
16539
|
+
/**
|
|
16540
|
+
* クレジットカード決済承認(非同期)
|
|
16541
|
+
*/
|
|
16542
|
+
PaymentService.prototype.authorizeCreditCardAsync = function (params) {
|
|
16543
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
16544
|
+
var object, purpose;
|
|
16545
|
+
var _this = this;
|
|
16546
|
+
return __generator(this, function (_a) {
|
|
16547
|
+
object = params.object, purpose = params.purpose;
|
|
16548
|
+
return [2 /*return*/, this.fetch({
|
|
16549
|
+
uri: "/payment/" + factory.service.paymentService.PaymentServiceType.CreditCard + "/authorize",
|
|
16550
|
+
method: 'POST',
|
|
16551
|
+
expectedStatusCodes: [http_status_1.ACCEPTED],
|
|
16552
|
+
retryableStatusCodes: [http_status_1.CONFLICT, http_status_1.TOO_MANY_REQUESTS],
|
|
16553
|
+
body: { object: object, purpose: purpose },
|
|
16554
|
+
qs: {
|
|
16555
|
+
async: true,
|
|
16556
|
+
purpose: { id: params.purpose.id } // 追加(2024-04-03~)
|
|
16557
|
+
}
|
|
16540
16558
|
})
|
|
16541
16559
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
16542
16560
|
return [2 /*return*/, response.json()];
|
|
@@ -16547,20 +16565,49 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
16547
16565
|
/**
|
|
16548
16566
|
* MovieTicket決済承認
|
|
16549
16567
|
*/
|
|
16550
|
-
PaymentService.prototype.authorizeMovieTicket = function (params
|
|
16568
|
+
PaymentService.prototype.authorizeMovieTicket = function (params) {
|
|
16551
16569
|
return __awaiter(this, void 0, void 0, function () {
|
|
16570
|
+
var object, purpose;
|
|
16552
16571
|
var _this = this;
|
|
16553
16572
|
return __generator(this, function (_a) {
|
|
16573
|
+
object = params.object, purpose = params.purpose;
|
|
16554
16574
|
return [2 /*return*/, this.fetch({
|
|
16555
16575
|
uri: "/payment/" + factory.service.paymentService.PaymentServiceType.MovieTicket + "/authorize",
|
|
16556
16576
|
method: 'POST',
|
|
16557
|
-
expectedStatusCodes: [http_status_1.
|
|
16577
|
+
expectedStatusCodes: [http_status_1.CREATED],
|
|
16558
16578
|
// retry 429(2024-04-01~)
|
|
16559
16579
|
// retry 409(2024-04-01~)
|
|
16560
16580
|
retryableStatusCodes: [http_status_1.CONFLICT, http_status_1.TOO_MANY_REQUESTS],
|
|
16561
|
-
body:
|
|
16562
|
-
qs:
|
|
16563
|
-
|
|
16581
|
+
body: { object: object, purpose: purpose },
|
|
16582
|
+
qs: {
|
|
16583
|
+
purpose: { id: params.purpose.id } // 追加(2024-04-03~)
|
|
16584
|
+
}
|
|
16585
|
+
})
|
|
16586
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
16587
|
+
return [2 /*return*/, response.json()];
|
|
16588
|
+
}); }); })];
|
|
16589
|
+
});
|
|
16590
|
+
});
|
|
16591
|
+
};
|
|
16592
|
+
/**
|
|
16593
|
+
* MovieTicket決済承認(非同期)
|
|
16594
|
+
*/
|
|
16595
|
+
PaymentService.prototype.authorizeMovieTicketAsync = function (params) {
|
|
16596
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
16597
|
+
var object, purpose;
|
|
16598
|
+
var _this = this;
|
|
16599
|
+
return __generator(this, function (_a) {
|
|
16600
|
+
object = params.object, purpose = params.purpose;
|
|
16601
|
+
return [2 /*return*/, this.fetch({
|
|
16602
|
+
uri: "/payment/" + factory.service.paymentService.PaymentServiceType.MovieTicket + "/authorize",
|
|
16603
|
+
method: 'POST',
|
|
16604
|
+
expectedStatusCodes: [http_status_1.ACCEPTED],
|
|
16605
|
+
retryableStatusCodes: [http_status_1.CONFLICT, http_status_1.TOO_MANY_REQUESTS],
|
|
16606
|
+
body: { object: object, purpose: purpose },
|
|
16607
|
+
qs: {
|
|
16608
|
+
async: true,
|
|
16609
|
+
purpose: { id: params.purpose.id }
|
|
16610
|
+
}
|
|
16564
16611
|
})
|
|
16565
16612
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
16566
16613
|
return [2 /*return*/, response.json()];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cinerino/sdk",
|
|
3
|
-
"version": "5.18.0-alpha.
|
|
3
|
+
"version": "5.18.0-alpha.14",
|
|
4
4
|
"description": "Cinerino SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"browser": {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"watchify": "^3.11.1"
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@chevre/factory": "4.
|
|
95
|
+
"@chevre/factory": "4.369.0-alpha.0",
|
|
96
96
|
"debug": "^3.2.6",
|
|
97
97
|
"http-status": "^1.4.2",
|
|
98
98
|
"idtoken-verifier": "^2.0.3",
|