@cinerino/sdk 10.21.0-alpha.8 → 10.21.0
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/playground/public/lib/bundle.js +1662 -943
- package/example/src/chevre/searchProjects.ts +17 -1
- package/example/src/cloud/transaction/processPlaceOrderByCreditCard3DS.ts +50 -3
- package/example/src/cloud/transaction/processPlaceOrderUsingMemberProgramTier.ts +517 -0
- package/example/src/findEventById.ts +12 -3
- package/lib/abstract/chevre/event.d.ts +3 -0
- package/lib/abstract/chevreAdmin/advanceBookingRequirement.d.ts +19 -0
- package/lib/abstract/chevreAdmin/{assetTransaction/refund.js → advanceBookingRequirement.js} +41 -37
- package/lib/abstract/chevreAdmin/assetTransaction/cancelReservation.d.ts +0 -13
- package/lib/abstract/chevreAdmin/assetTransaction/cancelReservation.js +9 -70
- package/lib/abstract/chevreAdmin/assetTransaction/pay.d.ts +0 -5
- package/lib/abstract/chevreAdmin/assetTransaction/pay.js +32 -51
- package/lib/abstract/chevreAdmin/eventOffer.d.ts +32 -0
- package/lib/abstract/chevreAdmin/eventOffer.js +169 -0
- package/lib/abstract/chevreAdmin/identity.d.ts +2 -2
- package/lib/abstract/chevreAdmin/identityProvider.d.ts +1 -1
- package/lib/abstract/chevreAdmin/identityProvider.js +2 -2
- package/lib/abstract/chevreAdmin/issuer.d.ts +12 -2
- package/lib/abstract/chevreAdmin/memberProgram.d.ts +38 -2
- package/lib/abstract/chevreAdmin/memberProgram.js +31 -4
- package/lib/abstract/chevreAdmin/offerCatalog.d.ts +8 -3
- package/lib/abstract/chevreAdmin/offerCatalogItem.d.ts +4 -3
- package/lib/abstract/chevreAdmin/paymentService.d.ts +18 -5
- package/lib/abstract/chevreAdmin/paymentServiceChannel.d.ts +2 -2
- package/lib/abstract/chevreAdmin/paymentServiceChannel.js +2 -2
- package/lib/abstract/chevreAdmin/pendingReservation.d.ts +58 -0
- package/lib/abstract/chevreAdmin/pendingReservation.js +104 -0
- package/lib/abstract/chevreAdmin/task.d.ts +2 -6
- package/lib/abstract/chevreAdmin/task.js +12 -13
- package/lib/abstract/chevreAdmin/webSite.d.ts +23 -0
- package/lib/abstract/chevreAdmin/webSite.js +138 -0
- package/lib/abstract/chevreAdmin.d.ts +36 -9
- package/lib/abstract/chevreAdmin.js +81 -20
- package/lib/abstract/chevrePay/payment/factory.d.ts +5 -5
- package/lib/abstract/cinerino/service/event.d.ts +7 -3
- package/lib/abstract/cinerino/service/event.js +24 -18
- package/lib/bundle.js +1716 -960
- package/package.json +2 -2
- package/example/src/chevre/assetTransaction/processCancelReservation.ts +0 -61
- package/example/src/chevre/assetTransaction/processPayMovieTicket.ts +0 -101
- package/example/src/chevre/assetTransaction/processPublishPaymentUrl.ts +0 -95
- package/example/src/chevre/assetTransaction/processRefundCreditCard.ts +0 -76
- package/lib/abstract/chevreAdmin/assetTransaction/refund.d.ts +0 -24
|
@@ -0,0 +1,138 @@
|
|
|
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.WebSiteService = void 0;
|
|
55
|
+
var http_status_1 = require("http-status");
|
|
56
|
+
var service_1 = require("../service");
|
|
57
|
+
/**
|
|
58
|
+
* admin web site
|
|
59
|
+
*/
|
|
60
|
+
var WebSiteService = /** @class */ (function (_super) {
|
|
61
|
+
__extends(WebSiteService, _super);
|
|
62
|
+
function WebSiteService() {
|
|
63
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
|
+
}
|
|
65
|
+
WebSiteService.prototype.create = function (params) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
67
|
+
var _this = this;
|
|
68
|
+
return __generator(this, function (_a) {
|
|
69
|
+
return [2 /*return*/, this.fetch({
|
|
70
|
+
uri: '/webSites',
|
|
71
|
+
method: 'POST',
|
|
72
|
+
body: params,
|
|
73
|
+
expectedStatusCodes: [http_status_1.CREATED]
|
|
74
|
+
})
|
|
75
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
76
|
+
return [2 /*return*/, response.json()];
|
|
77
|
+
}); }); })];
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
WebSiteService.prototype.projectFields = function (params) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var _this = this;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
return [2 /*return*/, this.fetch({
|
|
86
|
+
uri: '/webSites',
|
|
87
|
+
method: 'GET',
|
|
88
|
+
qs: params,
|
|
89
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
90
|
+
})
|
|
91
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
92
|
+
return [2 /*return*/, response.json()];
|
|
93
|
+
}); }); })];
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
WebSiteService.prototype.certifyById = function (params) {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
99
|
+
var id;
|
|
100
|
+
return __generator(this, function (_a) {
|
|
101
|
+
switch (_a.label) {
|
|
102
|
+
case 0:
|
|
103
|
+
id = params.id;
|
|
104
|
+
return [4 /*yield*/, this.fetch({
|
|
105
|
+
uri: "/webSites/" + encodeURIComponent(String(id)) + "/certified",
|
|
106
|
+
method: 'PUT',
|
|
107
|
+
// body,
|
|
108
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
109
|
+
})];
|
|
110
|
+
case 1:
|
|
111
|
+
_a.sent();
|
|
112
|
+
return [2 /*return*/];
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
WebSiteService.prototype.deleteById = function (params) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
119
|
+
var id;
|
|
120
|
+
return __generator(this, function (_a) {
|
|
121
|
+
switch (_a.label) {
|
|
122
|
+
case 0:
|
|
123
|
+
id = params.id;
|
|
124
|
+
return [4 /*yield*/, this.fetch({
|
|
125
|
+
uri: "/webSites/" + encodeURIComponent(String(id)),
|
|
126
|
+
method: 'DELETE',
|
|
127
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
128
|
+
})];
|
|
129
|
+
case 1:
|
|
130
|
+
_a.sent();
|
|
131
|
+
return [2 /*return*/];
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
return WebSiteService;
|
|
137
|
+
}(service_1.Service));
|
|
138
|
+
exports.WebSiteService = WebSiteService;
|
|
@@ -5,6 +5,7 @@ import type { AccountTitleService } from './chevreAdmin/accountTitle';
|
|
|
5
5
|
import type { AccountTransactionService } from './chevreAdmin/accountTransaction';
|
|
6
6
|
import type { ActionService } from './chevreAdmin/action';
|
|
7
7
|
import type { AdditionalPropertyService } from './chevreAdmin/additionalProperty';
|
|
8
|
+
import type { AdvanceBookingRequirementService } from './chevreAdmin/advanceBookingRequirement';
|
|
8
9
|
import type { AggregateOfferService } from './chevreAdmin/aggregateOffer';
|
|
9
10
|
import type { AggregateReservationService } from './chevreAdmin/aggregateReservation';
|
|
10
11
|
import type { AggregationService } from './chevreAdmin/aggregation';
|
|
@@ -12,7 +13,6 @@ import type { AssetTransactionService } from './chevreAdmin/assetTransaction';
|
|
|
12
13
|
import type { CancelReservationAssetTransactionService } from './chevreAdmin/assetTransaction/cancelReservation';
|
|
13
14
|
import type { MoneyTransferAssetTransactionService } from './chevreAdmin/assetTransaction/moneyTransfer';
|
|
14
15
|
import type { PayAssetTransactionService } from './chevreAdmin/assetTransaction/pay';
|
|
15
|
-
import type { RefundAssetTransactionService } from './chevreAdmin/assetTransaction/refund';
|
|
16
16
|
import type { RegisterServiceAssetTransactionService } from './chevreAdmin/assetTransaction/registerService';
|
|
17
17
|
import type { ReserveAssetTransactionService } from './chevreAdmin/assetTransaction/reserve';
|
|
18
18
|
import type { AuthorizationService } from './chevreAdmin/authorization';
|
|
@@ -23,6 +23,7 @@ import type { CustomerService } from './chevreAdmin/customer';
|
|
|
23
23
|
import type { CustomerTypeService } from './chevreAdmin/customerType';
|
|
24
24
|
import type { EmailMessageService } from './chevreAdmin/emailMessage';
|
|
25
25
|
import type { EventService } from './chevreAdmin/event';
|
|
26
|
+
import type { EventOfferService } from './chevreAdmin/eventOffer';
|
|
26
27
|
import type { EventSeriesService } from './chevreAdmin/eventSeries';
|
|
27
28
|
import type { HasMerchantReturnPolicyService } from './chevreAdmin/hasMerchantReturnPolicy';
|
|
28
29
|
import type { IAMService } from './chevreAdmin/iam';
|
|
@@ -43,6 +44,7 @@ import type { OrderService } from './chevreAdmin/order';
|
|
|
43
44
|
import type { OwnershipInfoService } from './chevreAdmin/ownershipInfo';
|
|
44
45
|
import type { PaymentProductService } from './chevreAdmin/paymentService';
|
|
45
46
|
import type { PaymentServiceChannelService } from './chevreAdmin/paymentServiceChannel';
|
|
47
|
+
import type { PendingReservationService } from './chevreAdmin/pendingReservation';
|
|
46
48
|
import type { PermissionService } from './chevreAdmin/permission';
|
|
47
49
|
import type { PermitService } from './chevreAdmin/permit';
|
|
48
50
|
import type { PersonService } from './chevreAdmin/person';
|
|
@@ -66,6 +68,7 @@ import type { ReturnOrderTransactionService } from './chevreAdmin/transaction/re
|
|
|
66
68
|
import type { TransactionNumberService } from './chevreAdmin/transactionNumber';
|
|
67
69
|
import type { TripService } from './chevreAdmin/trip';
|
|
68
70
|
import type { UserPoolService } from './chevreAdmin/userPool';
|
|
71
|
+
import type { WebSiteService } from './chevreAdmin/webSite';
|
|
69
72
|
export declare namespace service {
|
|
70
73
|
type IUnset = IUnsetOnService;
|
|
71
74
|
/**
|
|
@@ -110,6 +113,13 @@ export declare namespace service {
|
|
|
110
113
|
namespace AdditionalProperty {
|
|
111
114
|
let svc: typeof AdditionalPropertyService | undefined;
|
|
112
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* 事前予約要件サービス
|
|
118
|
+
*/
|
|
119
|
+
type AdvanceBookingRequirement = AdvanceBookingRequirementService;
|
|
120
|
+
namespace AdvanceBookingRequirement {
|
|
121
|
+
let svc: typeof AdvanceBookingRequirementService | undefined;
|
|
122
|
+
}
|
|
113
123
|
/**
|
|
114
124
|
* 集計オファーサービス
|
|
115
125
|
*/
|
|
@@ -187,6 +197,13 @@ export declare namespace service {
|
|
|
187
197
|
namespace Event {
|
|
188
198
|
let svc: typeof EventService | undefined;
|
|
189
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* イベントオファーサービス
|
|
202
|
+
*/
|
|
203
|
+
type EventOffer = EventOfferService;
|
|
204
|
+
namespace EventOffer {
|
|
205
|
+
let svc: typeof EventOfferService | undefined;
|
|
206
|
+
}
|
|
190
207
|
/**
|
|
191
208
|
* 施設コンテンツサービス
|
|
192
209
|
*/
|
|
@@ -299,6 +316,13 @@ export declare namespace service {
|
|
|
299
316
|
namespace PaymentServiceChannel {
|
|
300
317
|
let svc: typeof PaymentServiceChannelService | undefined;
|
|
301
318
|
}
|
|
319
|
+
/**
|
|
320
|
+
* 保留予約サービス
|
|
321
|
+
*/
|
|
322
|
+
type PendingReservation = PendingReservationService;
|
|
323
|
+
namespace PendingReservation {
|
|
324
|
+
let svc: typeof PendingReservationService | undefined;
|
|
325
|
+
}
|
|
302
326
|
/**
|
|
303
327
|
* 権限サービス
|
|
304
328
|
*/
|
|
@@ -472,13 +496,6 @@ export declare namespace service {
|
|
|
472
496
|
namespace Pay {
|
|
473
497
|
let svc: typeof PayAssetTransactionService | undefined;
|
|
474
498
|
}
|
|
475
|
-
/**
|
|
476
|
-
* 返金取引サービス
|
|
477
|
-
*/
|
|
478
|
-
type Refund = RefundAssetTransactionService;
|
|
479
|
-
namespace Refund {
|
|
480
|
-
let svc: typeof RefundAssetTransactionService | undefined;
|
|
481
|
-
}
|
|
482
499
|
/**
|
|
483
500
|
* サービス登録取引
|
|
484
501
|
*/
|
|
@@ -548,6 +565,13 @@ export declare namespace service {
|
|
|
548
565
|
namespace UserPool {
|
|
549
566
|
let svc: typeof UserPoolService | undefined;
|
|
550
567
|
}
|
|
568
|
+
/**
|
|
569
|
+
* admin web site
|
|
570
|
+
*/
|
|
571
|
+
type WebSite = WebSiteService;
|
|
572
|
+
namespace WebSite {
|
|
573
|
+
let svc: typeof WebSiteService | undefined;
|
|
574
|
+
}
|
|
551
575
|
}
|
|
552
576
|
/**
|
|
553
577
|
* 管理サービス
|
|
@@ -561,6 +585,7 @@ export declare class ChevreAdmin {
|
|
|
561
585
|
createAccountTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountTransactionService>;
|
|
562
586
|
createActionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ActionService>;
|
|
563
587
|
createAdditionalPropertyInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AdditionalPropertyService>;
|
|
588
|
+
createAdvanceBookingRequirementInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AdvanceBookingRequirementService>;
|
|
564
589
|
createAggregateOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AggregateOfferService>;
|
|
565
590
|
createAggregateReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AggregateReservationService>;
|
|
566
591
|
createAggregationInstance(): Promise<AggregationService>;
|
|
@@ -572,6 +597,7 @@ export declare class ChevreAdmin {
|
|
|
572
597
|
createCustomerTypeInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CustomerTypeService>;
|
|
573
598
|
createEmailMessageInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EmailMessageService>;
|
|
574
599
|
createEventInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventService>;
|
|
600
|
+
createEventOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventOfferService>;
|
|
575
601
|
createEventSeriesInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<EventSeriesService>;
|
|
576
602
|
createHasMerchantReturnPolicyInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<HasMerchantReturnPolicyService>;
|
|
577
603
|
createIAMInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<IAMService>;
|
|
@@ -588,6 +614,7 @@ export declare class ChevreAdmin {
|
|
|
588
614
|
createOwnershipInfoInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OwnershipInfoService>;
|
|
589
615
|
createPaymentProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentProductService>;
|
|
590
616
|
createPaymentServiceChannelInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentServiceChannelService>;
|
|
617
|
+
createPendingReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PendingReservationService>;
|
|
591
618
|
createPermissionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PermissionService>;
|
|
592
619
|
createPermitInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PermitService>;
|
|
593
620
|
createPersonInstance(params: Pick<IOptions, 'project'>): Promise<PersonService>;
|
|
@@ -612,7 +639,6 @@ export declare class ChevreAdmin {
|
|
|
612
639
|
createCancelReservationAssetTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CancelReservationAssetTransactionService>;
|
|
613
640
|
createMoneyTransferAssetTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<MoneyTransferAssetTransactionService>;
|
|
614
641
|
createPayAssetTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PayAssetTransactionService>;
|
|
615
|
-
createRefundAssetTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<RefundAssetTransactionService>;
|
|
616
642
|
createRegisterServiceAssetTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<RegisterServiceAssetTransactionService>;
|
|
617
643
|
createReserveAssetTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ReserveAssetTransactionService>;
|
|
618
644
|
createTokenInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<TokenService>;
|
|
@@ -622,4 +648,5 @@ export declare class ChevreAdmin {
|
|
|
622
648
|
createTransactionNumberInstance(params: Pick<IOptions, 'project'>): Promise<TransactionNumberService>;
|
|
623
649
|
createTripInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<TripService>;
|
|
624
650
|
createUserPoolInstance(params: Pick<IOptions, 'project'>): Promise<UserPoolService>;
|
|
651
|
+
createWebSiteInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<WebSiteService>;
|
|
625
652
|
}
|
|
@@ -68,6 +68,9 @@ var service;
|
|
|
68
68
|
var AdditionalProperty;
|
|
69
69
|
(function (AdditionalProperty) {
|
|
70
70
|
})(AdditionalProperty = service.AdditionalProperty || (service.AdditionalProperty = {}));
|
|
71
|
+
var AdvanceBookingRequirement;
|
|
72
|
+
(function (AdvanceBookingRequirement) {
|
|
73
|
+
})(AdvanceBookingRequirement = service.AdvanceBookingRequirement || (service.AdvanceBookingRequirement = {}));
|
|
71
74
|
var AggregateOffer;
|
|
72
75
|
(function (AggregateOffer) {
|
|
73
76
|
})(AggregateOffer = service.AggregateOffer || (service.AggregateOffer = {}));
|
|
@@ -101,6 +104,9 @@ var service;
|
|
|
101
104
|
var Event;
|
|
102
105
|
(function (Event) {
|
|
103
106
|
})(Event = service.Event || (service.Event = {}));
|
|
107
|
+
var EventOffer;
|
|
108
|
+
(function (EventOffer) {
|
|
109
|
+
})(EventOffer = service.EventOffer || (service.EventOffer = {}));
|
|
104
110
|
var EventSeries;
|
|
105
111
|
(function (EventSeries) {
|
|
106
112
|
})(EventSeries = service.EventSeries || (service.EventSeries = {}));
|
|
@@ -149,6 +155,9 @@ var service;
|
|
|
149
155
|
var PaymentServiceChannel;
|
|
150
156
|
(function (PaymentServiceChannel) {
|
|
151
157
|
})(PaymentServiceChannel = service.PaymentServiceChannel || (service.PaymentServiceChannel = {}));
|
|
158
|
+
var PendingReservation;
|
|
159
|
+
(function (PendingReservation) {
|
|
160
|
+
})(PendingReservation = service.PendingReservation || (service.PendingReservation = {}));
|
|
152
161
|
var Permission;
|
|
153
162
|
(function (Permission) {
|
|
154
163
|
})(Permission = service.Permission || (service.Permission = {}));
|
|
@@ -230,9 +239,6 @@ var service;
|
|
|
230
239
|
var Pay;
|
|
231
240
|
(function (Pay) {
|
|
232
241
|
})(Pay = assetTransaction.Pay || (assetTransaction.Pay = {}));
|
|
233
|
-
var Refund;
|
|
234
|
-
(function (Refund) {
|
|
235
|
-
})(Refund = assetTransaction.Refund || (assetTransaction.Refund = {}));
|
|
236
242
|
var RegisterService;
|
|
237
243
|
(function (RegisterService) {
|
|
238
244
|
})(RegisterService = assetTransaction.RegisterService || (assetTransaction.RegisterService = {}));
|
|
@@ -267,6 +273,9 @@ var service;
|
|
|
267
273
|
var UserPool;
|
|
268
274
|
(function (UserPool) {
|
|
269
275
|
})(UserPool = service.UserPool || (service.UserPool = {}));
|
|
276
|
+
var WebSite;
|
|
277
|
+
(function (WebSite) {
|
|
278
|
+
})(WebSite = service.WebSite || (service.WebSite = {}));
|
|
270
279
|
})(service = exports.service || (exports.service = {}));
|
|
271
280
|
/**
|
|
272
281
|
* 管理サービス
|
|
@@ -377,6 +386,24 @@ var ChevreAdmin = /** @class */ (function () {
|
|
|
377
386
|
});
|
|
378
387
|
});
|
|
379
388
|
};
|
|
389
|
+
ChevreAdmin.prototype.createAdvanceBookingRequirementInstance = function (params) {
|
|
390
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
391
|
+
var _a;
|
|
392
|
+
return __generator(this, function (_b) {
|
|
393
|
+
switch (_b.label) {
|
|
394
|
+
case 0:
|
|
395
|
+
if (!(service.AdvanceBookingRequirement.svc === undefined)) return [3 /*break*/, 2];
|
|
396
|
+
_a = service.AdvanceBookingRequirement;
|
|
397
|
+
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/advanceBookingRequirement'); })];
|
|
398
|
+
case 1:
|
|
399
|
+
_a.svc =
|
|
400
|
+
(_b.sent()).AdvanceBookingRequirementService;
|
|
401
|
+
_b.label = 2;
|
|
402
|
+
case 2: return [2 /*return*/, new service.AdvanceBookingRequirement.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
|
|
403
|
+
}
|
|
404
|
+
});
|
|
405
|
+
});
|
|
406
|
+
};
|
|
380
407
|
ChevreAdmin.prototype.createAggregateOfferInstance = function (params) {
|
|
381
408
|
return __awaiter(this, void 0, void 0, function () {
|
|
382
409
|
var _a;
|
|
@@ -564,6 +591,23 @@ var ChevreAdmin = /** @class */ (function () {
|
|
|
564
591
|
});
|
|
565
592
|
});
|
|
566
593
|
};
|
|
594
|
+
ChevreAdmin.prototype.createEventOfferInstance = function (params) {
|
|
595
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
596
|
+
var _a;
|
|
597
|
+
return __generator(this, function (_b) {
|
|
598
|
+
switch (_b.label) {
|
|
599
|
+
case 0:
|
|
600
|
+
if (!(service.EventOffer.svc === undefined)) return [3 /*break*/, 2];
|
|
601
|
+
_a = service.EventOffer;
|
|
602
|
+
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/eventOffer'); })];
|
|
603
|
+
case 1:
|
|
604
|
+
_a.svc = (_b.sent()).EventOfferService;
|
|
605
|
+
_b.label = 2;
|
|
606
|
+
case 2: return [2 /*return*/, new service.EventOffer.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
|
|
607
|
+
}
|
|
608
|
+
});
|
|
609
|
+
});
|
|
610
|
+
};
|
|
567
611
|
ChevreAdmin.prototype.createEventSeriesInstance = function (params) {
|
|
568
612
|
return __awaiter(this, void 0, void 0, function () {
|
|
569
613
|
var _a;
|
|
@@ -836,6 +880,23 @@ var ChevreAdmin = /** @class */ (function () {
|
|
|
836
880
|
});
|
|
837
881
|
});
|
|
838
882
|
};
|
|
883
|
+
ChevreAdmin.prototype.createPendingReservationInstance = function (params) {
|
|
884
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
885
|
+
var _a;
|
|
886
|
+
return __generator(this, function (_b) {
|
|
887
|
+
switch (_b.label) {
|
|
888
|
+
case 0:
|
|
889
|
+
if (!(service.PendingReservation.svc === undefined)) return [3 /*break*/, 2];
|
|
890
|
+
_a = service.PendingReservation;
|
|
891
|
+
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/pendingReservation'); })];
|
|
892
|
+
case 1:
|
|
893
|
+
_a.svc = (_b.sent()).PendingReservationService;
|
|
894
|
+
_b.label = 2;
|
|
895
|
+
case 2: return [2 /*return*/, new service.PendingReservation.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
|
|
896
|
+
}
|
|
897
|
+
});
|
|
898
|
+
});
|
|
899
|
+
};
|
|
839
900
|
ChevreAdmin.prototype.createPermissionInstance = function (params) {
|
|
840
901
|
return __awaiter(this, void 0, void 0, function () {
|
|
841
902
|
var _a;
|
|
@@ -1246,23 +1307,6 @@ var ChevreAdmin = /** @class */ (function () {
|
|
|
1246
1307
|
});
|
|
1247
1308
|
});
|
|
1248
1309
|
};
|
|
1249
|
-
ChevreAdmin.prototype.createRefundAssetTransactionInstance = function (params) {
|
|
1250
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1251
|
-
var _a;
|
|
1252
|
-
return __generator(this, function (_b) {
|
|
1253
|
-
switch (_b.label) {
|
|
1254
|
-
case 0:
|
|
1255
|
-
if (!(service.assetTransaction.Refund.svc === undefined)) return [3 /*break*/, 2];
|
|
1256
|
-
_a = service.assetTransaction.Refund;
|
|
1257
|
-
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/assetTransaction/refund'); })];
|
|
1258
|
-
case 1:
|
|
1259
|
-
_a.svc = (_b.sent()).RefundAssetTransactionService;
|
|
1260
|
-
_b.label = 2;
|
|
1261
|
-
case 2: return [2 /*return*/, new service.assetTransaction.Refund.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
|
|
1262
|
-
}
|
|
1263
|
-
});
|
|
1264
|
-
});
|
|
1265
|
-
};
|
|
1266
1310
|
ChevreAdmin.prototype.createRegisterServiceAssetTransactionInstance = function (params) {
|
|
1267
1311
|
return __awaiter(this, void 0, void 0, function () {
|
|
1268
1312
|
var _a;
|
|
@@ -1418,6 +1462,23 @@ var ChevreAdmin = /** @class */ (function () {
|
|
|
1418
1462
|
});
|
|
1419
1463
|
});
|
|
1420
1464
|
};
|
|
1465
|
+
ChevreAdmin.prototype.createWebSiteInstance = function (params) {
|
|
1466
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1467
|
+
var _a;
|
|
1468
|
+
return __generator(this, function (_b) {
|
|
1469
|
+
switch (_b.label) {
|
|
1470
|
+
case 0:
|
|
1471
|
+
if (!(service.WebSite.svc === undefined)) return [3 /*break*/, 2];
|
|
1472
|
+
_a = service.WebSite;
|
|
1473
|
+
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/webSite'); })];
|
|
1474
|
+
case 1:
|
|
1475
|
+
_a.svc = (_b.sent()).WebSiteService;
|
|
1476
|
+
_b.label = 2;
|
|
1477
|
+
case 2: return [2 /*return*/, new service.WebSite.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
|
|
1478
|
+
}
|
|
1479
|
+
});
|
|
1480
|
+
});
|
|
1481
|
+
};
|
|
1421
1482
|
return ChevreAdmin;
|
|
1422
1483
|
}());
|
|
1423
1484
|
exports.ChevreAdmin = ChevreAdmin;
|
|
@@ -31,13 +31,13 @@ export declare type IMovieTicketMkknInfo = factory.action.check.paymentMethod.mo
|
|
|
31
31
|
*/
|
|
32
32
|
knyknrNo: string;
|
|
33
33
|
};
|
|
34
|
-
export declare type IAuthorizeAnyPaymentObject = Pick<factory.action.authorize.paymentMethod.any.
|
|
35
|
-
export declare type IAuthorizeCreditCardObject = Pick<factory.action.authorize.paymentMethod.any.
|
|
36
|
-
export declare type IAuthorizeMovieTicketObject = Pick<factory.action.authorize.paymentMethod.any.
|
|
37
|
-
export declare type IAuthorizePaymentCardObject = Pick<factory.action.authorize.paymentMethod.any.
|
|
34
|
+
export declare type IAuthorizeAnyPaymentObject = Pick<factory.action.authorize.paymentMethod.any.IAuthorizeAnyPaymentObject, 'amount' | 'issuedThrough' | 'paymentMethod' | 'name' | 'additionalProperty' | 'ticketToken'>;
|
|
35
|
+
export declare type IAuthorizeCreditCardObject = Pick<factory.action.authorize.paymentMethod.any.IAuthorizeCreditCardObject, 'amount' | 'issuedThrough' | 'paymentMethod' | 'creditCard' | 'method' | 'paymentMethodId' | 'name' | 'additionalProperty' | 'ticketToken'>;
|
|
36
|
+
export declare type IAuthorizeMovieTicketObject = Pick<factory.action.authorize.paymentMethod.any.IAuthorizeMovieTicketObject, 'issuedThrough' | 'paymentMethod' | 'movieTickets' | 'name' | 'additionalProperty' | 'ticketToken'>;
|
|
37
|
+
export declare type IAuthorizePaymentCardObject = Pick<factory.action.authorize.paymentMethod.any.IAuthorizePaymentCardObject, 'amount' | 'issuedThrough' | 'paymentMethod' | 'fromLocation' | 'name' | 'additionalProperty'> & {
|
|
38
38
|
description?: string;
|
|
39
39
|
};
|
|
40
|
-
export declare type IPublishPaymentUrlObject = Pick<factory.action.authorize.paymentMethod.any.
|
|
40
|
+
export declare type IPublishPaymentUrlObject = Pick<factory.action.authorize.paymentMethod.any.IAuthorizeCreditCardObject, 'amount' | 'creditCard' | 'issuedThrough' | 'paymentMethod' | 'method'>;
|
|
41
41
|
export declare type IPublishPaymentUrlResult = Pick<factory.action.accept.pay.IResult, 'paymentMethodId' | 'paymentUrl'>;
|
|
42
42
|
export interface IFindAuthorizeActionResult {
|
|
43
43
|
/**
|
|
@@ -183,15 +183,16 @@ export declare class EventService extends Service {
|
|
|
183
183
|
}): Promise<ISearchSellerMakesOfferResult[]>;
|
|
184
184
|
/**
|
|
185
185
|
* イベント取得
|
|
186
|
+
* alias of search
|
|
186
187
|
*/
|
|
187
|
-
findById
|
|
188
|
+
findById(params: {
|
|
188
189
|
id: string;
|
|
189
190
|
/**
|
|
190
191
|
* イベントタイプ
|
|
191
192
|
* 興行イベント
|
|
192
193
|
*/
|
|
193
|
-
typeOf:
|
|
194
|
-
}): Promise<IEvent<
|
|
194
|
+
typeOf: factory.eventType.ScreeningEvent;
|
|
195
|
+
}): Promise<IEvent<factory.eventType.ScreeningEvent>>;
|
|
195
196
|
/**
|
|
196
197
|
* イベントに対する座席検索
|
|
197
198
|
*/
|
|
@@ -226,6 +227,9 @@ export declare class EventService extends Service {
|
|
|
226
227
|
* 区分加算料金を適用しないオファーには含まれない
|
|
227
228
|
*/
|
|
228
229
|
includePotentialSpec?: boolean;
|
|
230
|
+
/**
|
|
231
|
+
* サブカタログに含まれるオファーを検索する場合、強制的にサブカタログの適用決済カード条件に変更されます
|
|
232
|
+
*/
|
|
229
233
|
priceSpecification?: {
|
|
230
234
|
/**
|
|
231
235
|
* 適用決済カード条件
|
|
@@ -201,29 +201,35 @@ var EventService = /** @class */ (function (_super) {
|
|
|
201
201
|
};
|
|
202
202
|
/**
|
|
203
203
|
* イベント取得
|
|
204
|
+
* alias of search
|
|
204
205
|
*/
|
|
205
206
|
EventService.prototype.findById = function (params) {
|
|
206
207
|
return __awaiter(this, void 0, void 0, function () {
|
|
207
|
-
var id, typeOf;
|
|
208
|
-
var _this = this;
|
|
208
|
+
var id, typeOf, event;
|
|
209
209
|
return __generator(this, function (_a) {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
210
|
+
switch (_a.label) {
|
|
211
|
+
case 0:
|
|
212
|
+
id = params.id, typeOf = params.typeOf;
|
|
213
|
+
if (![
|
|
214
|
+
// factory.eventType.Event,
|
|
215
|
+
factory.eventType.ScreeningEvent
|
|
216
|
+
// factory.eventType.ScreeningEventSeries
|
|
217
|
+
].includes(typeOf)) {
|
|
218
|
+
throw new factory.errors.Argument('typeOf', 'invalid event type');
|
|
219
|
+
}
|
|
220
|
+
return [4 /*yield*/, this.search({
|
|
221
|
+
limit: 1,
|
|
222
|
+
page: 1,
|
|
223
|
+
typeOf: typeOf,
|
|
224
|
+
id: { $eq: String(id) }
|
|
225
|
+
})];
|
|
226
|
+
case 1:
|
|
227
|
+
event = (_a.sent()).data.shift();
|
|
228
|
+
if (event === undefined) {
|
|
229
|
+
throw new factory.errors.NotFound(typeOf);
|
|
230
|
+
}
|
|
231
|
+
return [2 /*return*/, event];
|
|
217
232
|
}
|
|
218
|
-
return [2 /*return*/, this.fetch({
|
|
219
|
-
uri: "/events/" + encodeURIComponent(String(id)),
|
|
220
|
-
method: 'GET',
|
|
221
|
-
expectedStatusCodes: [http_status_1.OK],
|
|
222
|
-
qs: { typeOf: typeOf }
|
|
223
|
-
})
|
|
224
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
225
|
-
return [2 /*return*/, response.json()];
|
|
226
|
-
}); }); })];
|
|
227
233
|
});
|
|
228
234
|
});
|
|
229
235
|
};
|