@cinerino/sdk 12.12.0-alpha.0 → 12.12.0-alpha.2
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.
- package/example/src/chevre/admin/adminAcceptedPaymentMethods.ts +81 -0
- package/example/src/chevre/default/findSeatsBySection.ts +42 -0
- package/example/src/cloud/transaction/authorizeCreditCardAsyncForcibly.ts +25 -2
- package/example/src/cloud/transaction/processPlaceOrderByCreditCard3DS.ts +7 -92
- package/example/src/cloud/transaction/processPlaceOrderCOAEventByCreditCard.ts +6 -69
- package/example/src/cloud/transaction/processPlaceOrderUsingMemberProgramTier.ts +2 -85
- package/example/src/{searchSeats.ts → findSeats.ts} +9 -8
- package/lib/abstract/chevre/place.d.ts +27 -0
- package/lib/abstract/chevre/place.js +22 -0
- package/lib/abstract/chevreAdmin/acceptedPaymentMethod.d.ts +66 -0
- package/lib/abstract/chevreAdmin/acceptedPaymentMethod.js +134 -0
- package/lib/abstract/chevreAdmin.d.ts +9 -0
- package/lib/abstract/chevreAdmin.js +20 -0
- package/lib/abstract/chevrePay/payment.d.ts +4 -2
- package/lib/abstract/chevrePay/payment.js +9 -1
- package/lib/abstract/cinerino/service/place.d.ts +26 -0
- package/lib/abstract/cinerino/service/place.js +21 -0
- package/lib/abstract/cloud/pay/payment.js +8 -10
- package/lib/bundle.js +864 -655
- package/package.json +2 -2
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
+
function step(op) {
|
|
31
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
+
while (_) try {
|
|
33
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
+
switch (op[0]) {
|
|
36
|
+
case 0: case 1: t = op; break;
|
|
37
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
+
default:
|
|
41
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
+
if (t[2]) _.ops.pop();
|
|
46
|
+
_.trys.pop(); continue;
|
|
47
|
+
}
|
|
48
|
+
op = body.call(thisArg, _);
|
|
49
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
+
exports.AcceptedPaymentMethodService = void 0;
|
|
55
|
+
var http_status_1 = require("http-status");
|
|
56
|
+
var service_1 = require("../service");
|
|
57
|
+
var BASE_URI = '/acceptedPaymentMethods';
|
|
58
|
+
/**
|
|
59
|
+
* 対応決済方法サービス
|
|
60
|
+
*/
|
|
61
|
+
var AcceptedPaymentMethodService = /** @class */ (function (_super) {
|
|
62
|
+
__extends(AcceptedPaymentMethodService, _super);
|
|
63
|
+
function AcceptedPaymentMethodService() {
|
|
64
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
65
|
+
}
|
|
66
|
+
AcceptedPaymentMethodService.prototype.createAcceptedPaymentMethodsByIdentifier = function (
|
|
67
|
+
/**
|
|
68
|
+
* max: 20
|
|
69
|
+
*/
|
|
70
|
+
params, options) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
72
|
+
var itemOfferedId, itemOfferedTypeOf;
|
|
73
|
+
return __generator(this, function (_a) {
|
|
74
|
+
switch (_a.label) {
|
|
75
|
+
case 0:
|
|
76
|
+
itemOfferedId = options.itemOfferedId, itemOfferedTypeOf = options.itemOfferedTypeOf;
|
|
77
|
+
return [4 /*yield*/, this.fetch({
|
|
78
|
+
uri: BASE_URI,
|
|
79
|
+
method: 'POST',
|
|
80
|
+
body: params,
|
|
81
|
+
qs: { itemOfferedId: itemOfferedId, itemOfferedTypeOf: itemOfferedTypeOf },
|
|
82
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
83
|
+
})];
|
|
84
|
+
case 1:
|
|
85
|
+
_a.sent();
|
|
86
|
+
return [2 /*return*/];
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
AcceptedPaymentMethodService.prototype.updateAcceptedPaymentMethodsByIdentifier = function (
|
|
92
|
+
/**
|
|
93
|
+
* max: 20
|
|
94
|
+
*/
|
|
95
|
+
params, options) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
97
|
+
var itemOfferedId, itemOfferedTypeOf;
|
|
98
|
+
return __generator(this, function (_a) {
|
|
99
|
+
switch (_a.label) {
|
|
100
|
+
case 0:
|
|
101
|
+
itemOfferedId = options.itemOfferedId, itemOfferedTypeOf = options.itemOfferedTypeOf;
|
|
102
|
+
return [4 /*yield*/, this.fetch({
|
|
103
|
+
uri: BASE_URI,
|
|
104
|
+
method: 'PUT',
|
|
105
|
+
body: params,
|
|
106
|
+
qs: { itemOfferedId: itemOfferedId, itemOfferedTypeOf: itemOfferedTypeOf },
|
|
107
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
108
|
+
})];
|
|
109
|
+
case 1:
|
|
110
|
+
_a.sent();
|
|
111
|
+
return [2 /*return*/];
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
AcceptedPaymentMethodService.prototype.findAcceptedPaymentMethods = function (params) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
118
|
+
var _this = this;
|
|
119
|
+
return __generator(this, function (_a) {
|
|
120
|
+
return [2 /*return*/, this.fetch({
|
|
121
|
+
uri: BASE_URI,
|
|
122
|
+
method: 'GET',
|
|
123
|
+
qs: params,
|
|
124
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
125
|
+
})
|
|
126
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
127
|
+
return [2 /*return*/, response.json()];
|
|
128
|
+
}); }); })];
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
return AcceptedPaymentMethodService;
|
|
133
|
+
}(service_1.Service));
|
|
134
|
+
exports.AcceptedPaymentMethodService = AcceptedPaymentMethodService;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IAdditionalOptions, IOptions, IUnset as IUnsetOnService } from './service';
|
|
2
|
+
import type { AcceptedPaymentMethodService } from './chevreAdmin/acceptedPaymentMethod';
|
|
2
3
|
import type { CancelReservationAssetTransactionService } from './chevreAdmin/assetTransaction/cancelReservation';
|
|
3
4
|
import type { AuthorizationService } from './chevreAdmin/authorization';
|
|
4
5
|
import type { CreativeWorkService } from './chevreAdmin/creativeWork';
|
|
@@ -21,6 +22,13 @@ import type { ReservationService } from './chevreAdmin/reservation';
|
|
|
21
22
|
import type { SellerService } from './chevreAdmin/seller';
|
|
22
23
|
export declare namespace service {
|
|
23
24
|
type IUnset = IUnsetOnService;
|
|
25
|
+
/**
|
|
26
|
+
* 対応決済方法サービス
|
|
27
|
+
*/
|
|
28
|
+
type AcceptedPaymentMethod = AcceptedPaymentMethodService;
|
|
29
|
+
namespace AcceptedPaymentMethod {
|
|
30
|
+
let svc: typeof AcceptedPaymentMethodService | undefined;
|
|
31
|
+
}
|
|
24
32
|
/**
|
|
25
33
|
* 承認サービス
|
|
26
34
|
*/
|
|
@@ -170,6 +178,7 @@ export declare namespace service {
|
|
|
170
178
|
export declare class ChevreAdmin {
|
|
171
179
|
options: Pick<IOptions, 'auth' | 'endpoint' | 'disableAutoRetry'>;
|
|
172
180
|
constructor(options: Pick<IOptions, 'auth' | 'endpoint' | 'disableAutoRetry'>);
|
|
181
|
+
createAcceptedPaymentMethodInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AcceptedPaymentMethodService>;
|
|
173
182
|
createAuthorizationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AuthorizationService>;
|
|
174
183
|
createCreativeWorkInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CreativeWorkService>;
|
|
175
184
|
createCustomerInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CustomerService>;
|
|
@@ -50,6 +50,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
50
50
|
exports.ChevreAdmin = exports.service = void 0;
|
|
51
51
|
var service;
|
|
52
52
|
(function (service) {
|
|
53
|
+
var AcceptedPaymentMethod;
|
|
54
|
+
(function (AcceptedPaymentMethod) {
|
|
55
|
+
})(AcceptedPaymentMethod = service.AcceptedPaymentMethod || (service.AcceptedPaymentMethod = {}));
|
|
53
56
|
var Authorization;
|
|
54
57
|
(function (Authorization) {
|
|
55
58
|
})(Authorization = service.Authorization || (service.Authorization = {}));
|
|
@@ -121,6 +124,23 @@ var ChevreAdmin = /** @class */ (function () {
|
|
|
121
124
|
function ChevreAdmin(options) {
|
|
122
125
|
this.options = options;
|
|
123
126
|
}
|
|
127
|
+
ChevreAdmin.prototype.createAcceptedPaymentMethodInstance = function (params) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
129
|
+
var _a;
|
|
130
|
+
return __generator(this, function (_b) {
|
|
131
|
+
switch (_b.label) {
|
|
132
|
+
case 0:
|
|
133
|
+
if (!(service.AcceptedPaymentMethod.svc === undefined)) return [3 /*break*/, 2];
|
|
134
|
+
_a = service.AcceptedPaymentMethod;
|
|
135
|
+
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/acceptedPaymentMethod'); })];
|
|
136
|
+
case 1:
|
|
137
|
+
_a.svc = (_b.sent()).AcceptedPaymentMethodService;
|
|
138
|
+
_b.label = 2;
|
|
139
|
+
case 2: return [2 /*return*/, new service.AcceptedPaymentMethod.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
};
|
|
124
144
|
ChevreAdmin.prototype.createAuthorizationInstance = function (params) {
|
|
125
145
|
return __awaiter(this, void 0, void 0, function () {
|
|
126
146
|
var _a;
|
|
@@ -62,8 +62,10 @@ export declare class PaymentService extends Service {
|
|
|
62
62
|
/**
|
|
63
63
|
* 決済ロケーション発行(非同期)
|
|
64
64
|
*/
|
|
65
|
-
|
|
66
|
-
object: IPublishPaymentUrlObject
|
|
65
|
+
publishCreditCardPaymentUrl(params: {
|
|
66
|
+
object: IPublishPaymentUrlObject & {
|
|
67
|
+
ticketToken: string;
|
|
68
|
+
};
|
|
67
69
|
purpose: IPurpose;
|
|
68
70
|
}): Promise<{
|
|
69
71
|
/**
|
|
@@ -161,6 +161,11 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
161
161
|
return __generator(this, function (_a) {
|
|
162
162
|
object = params.object, purpose = params.purpose;
|
|
163
163
|
amount = object.amount, issuedThrough = object.issuedThrough, paymentMethod = object.paymentMethod, creditCard = object.creditCard, method = object.method, paymentMethodId = object.paymentMethodId, name = object.name, additionalProperty = object.additionalProperty, ticketToken = object.ticketToken, eventIdsAsOrderedItem = object.eventIdsAsOrderedItem;
|
|
164
|
+
// paymentMethodId or ticketToken required(2025-12-06~)
|
|
165
|
+
if ((typeof paymentMethodId !== 'string' || paymentMethodId === '')
|
|
166
|
+
&& (typeof ticketToken !== 'string' || ticketToken === '')) {
|
|
167
|
+
throw new factory.errors.ArgumentNull('object.paymentMethodId or object.ticketToken');
|
|
168
|
+
}
|
|
164
169
|
return [2 /*return*/, this.fetch({
|
|
165
170
|
uri: "/payment/" + factory.service.paymentService.PaymentServiceType.CreditCard + "/authorize",
|
|
166
171
|
method: 'POST',
|
|
@@ -242,13 +247,16 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
242
247
|
/**
|
|
243
248
|
* 決済ロケーション発行(非同期)
|
|
244
249
|
*/
|
|
245
|
-
PaymentService.prototype.
|
|
250
|
+
PaymentService.prototype.publishCreditCardPaymentUrl = function (params) {
|
|
246
251
|
return __awaiter(this, void 0, void 0, function () {
|
|
247
252
|
var object, purpose, amount, creditCard, issuedThrough, paymentMethod, method, ticketToken, eventIdsAsOrderedItem;
|
|
248
253
|
var _this = this;
|
|
249
254
|
return __generator(this, function (_a) {
|
|
250
255
|
object = params.object, purpose = params.purpose;
|
|
251
256
|
amount = object.amount, creditCard = object.creditCard, issuedThrough = object.issuedThrough, paymentMethod = object.paymentMethod, method = object.method, ticketToken = object.ticketToken, eventIdsAsOrderedItem = object.eventIdsAsOrderedItem;
|
|
257
|
+
if (typeof ticketToken !== 'string' || ticketToken === '') {
|
|
258
|
+
throw new factory.errors.ArgumentNull('object.ticketToken'); // required(2025-12-06~)
|
|
259
|
+
}
|
|
252
260
|
return [2 /*return*/, this.fetch({
|
|
253
261
|
uri: "/payment/" + factory.service.paymentService.PaymentServiceType.CreditCard + "/publishPaymentUrl",
|
|
254
262
|
method: 'POST',
|
|
@@ -78,6 +78,32 @@ export declare class PlaceService extends Service {
|
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
80
|
}): Promise<ISearchResult<ISeat[]>>;
|
|
81
|
+
/**
|
|
82
|
+
* 座席検索
|
|
83
|
+
*/
|
|
84
|
+
findSeatsByRoom(params: {
|
|
85
|
+
/**
|
|
86
|
+
* max: 100
|
|
87
|
+
*/
|
|
88
|
+
limit: number;
|
|
89
|
+
page: number;
|
|
90
|
+
/**
|
|
91
|
+
* 施設コード
|
|
92
|
+
*/
|
|
93
|
+
movieTheaterCode: string;
|
|
94
|
+
/**
|
|
95
|
+
* ルームコード
|
|
96
|
+
*/
|
|
97
|
+
roomCode: string;
|
|
98
|
+
/**
|
|
99
|
+
* セクションコード
|
|
100
|
+
*/
|
|
101
|
+
sectionCode: string;
|
|
102
|
+
/**
|
|
103
|
+
* 座席区分
|
|
104
|
+
*/
|
|
105
|
+
seatingType?: string;
|
|
106
|
+
}): Promise<ISeat[]>;
|
|
81
107
|
/**
|
|
82
108
|
* ターミナル検索
|
|
83
109
|
*/
|
|
@@ -158,6 +158,27 @@ var PlaceService = /** @class */ (function (_super) {
|
|
|
158
158
|
});
|
|
159
159
|
});
|
|
160
160
|
};
|
|
161
|
+
/**
|
|
162
|
+
* 座席検索
|
|
163
|
+
*/
|
|
164
|
+
PlaceService.prototype.findSeatsByRoom = function (params) {
|
|
165
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
166
|
+
var limit, page, movieTheaterCode, roomCode, sectionCode, seatingType;
|
|
167
|
+
var _this = this;
|
|
168
|
+
return __generator(this, function (_a) {
|
|
169
|
+
limit = params.limit, page = params.page, movieTheaterCode = params.movieTheaterCode, roomCode = params.roomCode, sectionCode = params.sectionCode, seatingType = params.seatingType;
|
|
170
|
+
return [2 /*return*/, this.fetch({
|
|
171
|
+
uri: '/seats',
|
|
172
|
+
method: 'GET',
|
|
173
|
+
qs: { limit: limit, page: page, movieTheaterCode: movieTheaterCode, roomCode: roomCode, sectionCode: sectionCode, seatingType: seatingType },
|
|
174
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
175
|
+
})
|
|
176
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
177
|
+
return [2 /*return*/, response.json()];
|
|
178
|
+
}); }); })];
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
};
|
|
161
182
|
/**
|
|
162
183
|
* ターミナル検索
|
|
163
184
|
*/
|
|
@@ -157,8 +157,7 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
157
157
|
paymentService = _b.sent();
|
|
158
158
|
return [4 /*yield*/, this.issueTicketThroughCreditCardIfNotExists({ object: object, purpose: purpose }, {
|
|
159
159
|
checkPaymentMethodId: true,
|
|
160
|
-
intervalAfterIssueTicketInMS: intervalAfterIssueTicketInMS
|
|
161
|
-
disableIssueTicket: false
|
|
160
|
+
intervalAfterIssueTicketInMS: intervalAfterIssueTicketInMS
|
|
162
161
|
})];
|
|
163
162
|
case 3:
|
|
164
163
|
ticketToken = (_b.sent()).ticketToken;
|
|
@@ -234,12 +233,14 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
234
233
|
paymentService = _b.sent();
|
|
235
234
|
return [4 /*yield*/, this.issueTicketThroughCreditCardIfNotExists({ object: object, purpose: purpose }, {
|
|
236
235
|
checkPaymentMethodId: false,
|
|
237
|
-
intervalAfterIssueTicketInMS: intervalAfterIssueTicketInMS
|
|
238
|
-
disableIssueTicket: false
|
|
236
|
+
intervalAfterIssueTicketInMS: intervalAfterIssueTicketInMS
|
|
239
237
|
})];
|
|
240
238
|
case 3:
|
|
241
239
|
ticketToken = (_b.sent()).ticketToken;
|
|
242
|
-
|
|
240
|
+
if (typeof ticketToken !== 'string' || ticketToken === '') {
|
|
241
|
+
throw new factory.errors.ArgumentNull('object.ticketToken'); // required(2025-12-06~)
|
|
242
|
+
}
|
|
243
|
+
return [2 /*return*/, paymentService.publishCreditCardPaymentUrl({
|
|
243
244
|
object: __assign(__assign({}, object), { ticketToken: ticketToken }),
|
|
244
245
|
purpose: purpose
|
|
245
246
|
})];
|
|
@@ -664,16 +665,13 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
664
665
|
};
|
|
665
666
|
PaymentService.prototype.issueTicketThroughCreditCardIfNotExists = function (params, options) {
|
|
666
667
|
return __awaiter(this, void 0, void 0, function () {
|
|
667
|
-
var object, purpose, checkPaymentMethodId,
|
|
668
|
+
var object, purpose, checkPaymentMethodId, ticketToken, intervalAfterIssueTicketInMS, issueForcibly, paymentMethodId, automaticallyIssuedTicket;
|
|
668
669
|
return __generator(this, function (_a) {
|
|
669
670
|
switch (_a.label) {
|
|
670
671
|
case 0:
|
|
671
672
|
object = params.object, purpose = params.purpose;
|
|
672
|
-
checkPaymentMethodId = options.checkPaymentMethodId
|
|
673
|
+
checkPaymentMethodId = options.checkPaymentMethodId;
|
|
673
674
|
ticketToken = object.ticketToken;
|
|
674
|
-
if (disableIssueTicket) {
|
|
675
|
-
return [2 /*return*/, { ticketToken: ticketToken }];
|
|
676
|
-
}
|
|
677
675
|
intervalAfterIssueTicketInMS = (typeof options.intervalAfterIssueTicketInMS === 'number'
|
|
678
676
|
&& options.intervalAfterIssueTicketInMS > MIN_INTERVAL_AFTER_ISSUE_TICKET_MS)
|
|
679
677
|
? options.intervalAfterIssueTicketInMS
|