@cinerino/sdk 16.4.0-alpha.0 → 16.4.0-alpha.10
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/lib/abstract/chevre/event.d.ts +1 -3
- package/lib/abstract/chevre/event.js +3 -3
- package/lib/abstract/chevreConsole/asyncAction.d.ts +13 -0
- package/lib/abstract/chevreConsole/asyncAction.js +20 -0
- package/lib/abstract/chevreConsole/ownershipInfo.d.ts +10 -20
- package/lib/abstract/chevreConsole/ownershipInfo.js +2 -6
- package/lib/abstract/chevreConsole/scheduledTask.d.ts +13 -0
- package/lib/abstract/chevreConsole/scheduledTask.js +20 -0
- package/lib/abstract/chevreConsole/task.d.ts +7 -3
- package/lib/abstract/chevreConsole/task.js +1 -1
- package/lib/abstract/chevreConsole.d.ts +18 -9
- package/lib/abstract/chevreConsole.js +18 -9
- package/lib/abstract/cinerino/service/event.d.ts +0 -2
- package/lib/abstract/cinerino/service/event.js +3 -7
- package/lib/abstract/cloud/txc/transaction/placeOrder.js +0 -26
- package/lib/bundle.js +3 -3
- package/lib/bundle.js.map +4 -4
- package/package.json +2 -2
- package/lib/abstract/chevreConsole/assetTransaction/reserve.d.ts +0 -25
- package/lib/abstract/chevreConsole/assetTransaction/reserve.js +0 -59
|
@@ -65,9 +65,7 @@ export declare class EventService extends Service {
|
|
|
65
65
|
*/
|
|
66
66
|
findSeatOffersDeprecated(params: {
|
|
67
67
|
id: string;
|
|
68
|
-
} & Pick<factory.place.seat.ISearchConditions, 'additionalProperty' | 'branchCode' | 'containedInPlace' | 'limit' | 'name' | 'page' | 'parentOrganization' | 'seatingType' | 'sort'
|
|
69
|
-
useDefaultSection: boolean;
|
|
70
|
-
}): Promise<ISeatAsEventOffer[]>;
|
|
68
|
+
} & Pick<factory.place.seat.ISearchConditions, 'additionalProperty' | 'branchCode' | 'containedInPlace' | 'limit' | 'name' | 'page' | 'parentOrganization' | 'seatingType' | 'sort'>): Promise<ISeatAsEventOffer[]>;
|
|
71
69
|
/**
|
|
72
70
|
* オファーで利用可能な適用決済カード条件を検索する
|
|
73
71
|
*/
|
|
@@ -67,15 +67,15 @@ class EventService extends service_1.Service {
|
|
|
67
67
|
* イベントに対する座席検索
|
|
68
68
|
* @deprecated use find seatOffers
|
|
69
69
|
*/
|
|
70
|
-
async findSeatOffersDeprecated(params
|
|
70
|
+
async findSeatOffersDeprecated(params) {
|
|
71
71
|
const { id, ...query } = params;
|
|
72
|
-
const { useDefaultSection } = options;
|
|
72
|
+
// const { useDefaultSection } = options;
|
|
73
73
|
return this.fetch({
|
|
74
74
|
uri: `/events/${encodeURIComponent(String(id))}/seats`,
|
|
75
75
|
method: 'GET',
|
|
76
76
|
qs: {
|
|
77
77
|
...query,
|
|
78
|
-
useDefaultSection
|
|
78
|
+
// useDefaultSection
|
|
79
79
|
},
|
|
80
80
|
expectedStatusCodes: [http_status_1.status.OK]
|
|
81
81
|
})
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { factory } from '../factory';
|
|
2
|
+
import { IOptions, Service } from '../service';
|
|
3
|
+
type IFindParams = Pick<factory.task.ISearchConditions, 'id' | 'name' | 'runsFrom' | 'runsThrough' | 'status' | 'limit' | 'page' | 'sort'>;
|
|
4
|
+
type IKeyOfProjection = keyof factory.task.ITask<factory.taskName>;
|
|
5
|
+
/**
|
|
6
|
+
* 非同期アクションサービス
|
|
7
|
+
*/
|
|
8
|
+
export declare class AsyncActionService extends Service<IOptions> {
|
|
9
|
+
findAsyncActions(params: IFindParams & {
|
|
10
|
+
$projection?: Partial<Record<IKeyOfProjection, 1>>;
|
|
11
|
+
}): Promise<factory.task.ITask<factory.taskName>[]>;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AsyncActionService = void 0;
|
|
4
|
+
const http_status_1 = require("http-status");
|
|
5
|
+
const service_1 = require("../service");
|
|
6
|
+
/**
|
|
7
|
+
* 非同期アクションサービス
|
|
8
|
+
*/
|
|
9
|
+
class AsyncActionService extends service_1.Service {
|
|
10
|
+
async findAsyncActions(params) {
|
|
11
|
+
return this.fetch({
|
|
12
|
+
uri: '/asyncActions',
|
|
13
|
+
method: 'GET',
|
|
14
|
+
qs: params,
|
|
15
|
+
expectedStatusCodes: [http_status_1.status.OK]
|
|
16
|
+
})
|
|
17
|
+
.then(async (response) => response.json());
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.AsyncActionService = AsyncActionService;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { factory } from '../factory';
|
|
2
|
-
import {
|
|
3
|
-
type
|
|
4
|
-
type IReservationWithDetail = IEventReservation;
|
|
5
|
-
type IGoodWithDetail = IReservationWithDetail | factory.permit.IPermit;
|
|
6
|
-
export type IOwnershipInfo = (factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood> | (Omit<factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood>, 'typeOfGood'> & {
|
|
7
|
-
typeOfGood: IGoodWithDetail;
|
|
8
|
-
})) & {
|
|
2
|
+
import { Service } from '../service';
|
|
3
|
+
export type IOwnershipInfoAsFindResult = factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood> & {
|
|
9
4
|
/**
|
|
10
5
|
* 所有権ID
|
|
11
6
|
*/
|
|
12
7
|
id: string;
|
|
13
8
|
};
|
|
9
|
+
type IFindParams = Pick<factory.ownershipInfo.ISearchConditions, 'limit' | 'ownedFromGte' | 'ownedFromLte' | 'page' | 'sort'> & {
|
|
10
|
+
/**
|
|
11
|
+
* max: 10
|
|
12
|
+
*/
|
|
13
|
+
limit: number;
|
|
14
|
+
page: number;
|
|
15
|
+
};
|
|
14
16
|
/**
|
|
15
17
|
* 所有権サービス
|
|
16
18
|
*/
|
|
@@ -18,18 +20,6 @@ export declare class OwnershipInfoService extends Service {
|
|
|
18
20
|
/**
|
|
19
21
|
* 所有権検索
|
|
20
22
|
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* max: 10
|
|
24
|
-
*/
|
|
25
|
-
limit?: number;
|
|
26
|
-
/**
|
|
27
|
-
* 所有物詳細を取得する
|
|
28
|
-
* typeOfGood.issuedThrough.typeOf.$eqの指定が必須です
|
|
29
|
-
*/
|
|
30
|
-
includeGoodWithDetails?: '1';
|
|
31
|
-
ownedFromGte?: Date;
|
|
32
|
-
ownedFromLte?: Date;
|
|
33
|
-
}): Promise<ISearchResult<IOwnershipInfo[]>>;
|
|
23
|
+
findOwnershipInfos(params: IFindParams): Promise<IOwnershipInfoAsFindResult[]>;
|
|
34
24
|
}
|
|
35
25
|
export {};
|
|
@@ -10,18 +10,14 @@ class OwnershipInfoService extends service_1.Service {
|
|
|
10
10
|
/**
|
|
11
11
|
* 所有権検索
|
|
12
12
|
*/
|
|
13
|
-
async
|
|
13
|
+
async findOwnershipInfos(params) {
|
|
14
14
|
return this.fetch({
|
|
15
15
|
uri: '/ownershipInfos',
|
|
16
16
|
method: 'GET',
|
|
17
17
|
qs: params,
|
|
18
18
|
expectedStatusCodes: [http_status_1.status.OK]
|
|
19
19
|
})
|
|
20
|
-
.then(async (response) =>
|
|
21
|
-
return {
|
|
22
|
-
data: await response.json()
|
|
23
|
-
};
|
|
24
|
-
});
|
|
20
|
+
.then(async (response) => response.json());
|
|
25
21
|
}
|
|
26
22
|
}
|
|
27
23
|
exports.OwnershipInfoService = OwnershipInfoService;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { factory } from '../factory';
|
|
2
|
+
import { IOptions, Service } from '../service';
|
|
3
|
+
type IFindParams = Pick<factory.task.ISearchConditions, 'id' | 'name' | 'runsFrom' | 'runsThrough' | 'status' | 'limit' | 'page' | 'sort'>;
|
|
4
|
+
type IKeyOfProjection = keyof factory.task.ITask<factory.taskName>;
|
|
5
|
+
/**
|
|
6
|
+
* 予定タスクサービス
|
|
7
|
+
*/
|
|
8
|
+
export declare class ScheduledTaskService extends Service<IOptions> {
|
|
9
|
+
findScheduledTasks(params: IFindParams & {
|
|
10
|
+
$projection?: Partial<Record<IKeyOfProjection, 1>>;
|
|
11
|
+
}): Promise<factory.task.ITask<factory.taskName>[]>;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScheduledTaskService = void 0;
|
|
4
|
+
const http_status_1 = require("http-status");
|
|
5
|
+
const service_1 = require("../service");
|
|
6
|
+
/**
|
|
7
|
+
* 予定タスクサービス
|
|
8
|
+
*/
|
|
9
|
+
class ScheduledTaskService extends service_1.Service {
|
|
10
|
+
async findScheduledTasks(params) {
|
|
11
|
+
return this.fetch({
|
|
12
|
+
uri: '/scheduledTasks',
|
|
13
|
+
method: 'GET',
|
|
14
|
+
qs: params,
|
|
15
|
+
expectedStatusCodes: [http_status_1.status.OK]
|
|
16
|
+
})
|
|
17
|
+
.then(async (response) => response.json());
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.ScheduledTaskService = ScheduledTaskService;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { factory } from '../factory';
|
|
2
2
|
import { IOptions, Service } from '../service';
|
|
3
3
|
type IKeyOfProjection = keyof factory.task.ITask<factory.taskName>;
|
|
4
|
+
type IFindParams = Pick<factory.task.ISearchConditions, 'dateAborted' | 'id' | 'identifier' | 'limit' | 'name' | 'page' | 'runsFrom' | 'runsThrough' | 'sort' | 'status'> & {
|
|
5
|
+
$projection?: Partial<Record<IKeyOfProjection, 1>>;
|
|
6
|
+
data?: never;
|
|
7
|
+
lastTriedFrom?: never;
|
|
8
|
+
lastTriedThrough?: never;
|
|
9
|
+
};
|
|
4
10
|
/**
|
|
5
11
|
* タスクサービス
|
|
6
12
|
*/
|
|
@@ -15,8 +21,6 @@ export declare class TaskService extends Service<IOptions> {
|
|
|
15
21
|
/**
|
|
16
22
|
* タスク検索
|
|
17
23
|
*/
|
|
18
|
-
|
|
19
|
-
$projection?: Partial<Record<IKeyOfProjection, 1>>;
|
|
20
|
-
}): Promise<factory.task.ITask<factory.taskName>[]>;
|
|
24
|
+
findTasks(params: IFindParams): Promise<factory.task.ITask<factory.taskName>[]>;
|
|
21
25
|
}
|
|
22
26
|
export {};
|
|
@@ -8,7 +8,6 @@ import type { AggregateReservationService } from './chevreConsole/aggregateReser
|
|
|
8
8
|
import type { AggregationService } from './chevreConsole/aggregation';
|
|
9
9
|
import type { AssetTransactionService } from './chevreConsole/assetTransaction';
|
|
10
10
|
import type { PayAssetTransactionService } from './chevreConsole/assetTransaction/pay';
|
|
11
|
-
import type { ReserveAssetTransactionService } from './chevreConsole/assetTransaction/reserve';
|
|
12
11
|
import type { AuthorizationService } from './chevreConsole/authorization';
|
|
13
12
|
import type { CategoryCodeService } from './chevreConsole/categoryCode';
|
|
14
13
|
import type { CreativeWorkService } from './chevreConsole/creativeWork';
|
|
@@ -49,6 +48,8 @@ import type { ReservationService } from './chevreConsole/reservation';
|
|
|
49
48
|
import type { SellerService } from './chevreConsole/seller';
|
|
50
49
|
import type { SellerMakesOfferService } from './chevreConsole/sellerMakesOffer';
|
|
51
50
|
import type { SellerReturnPolicyService } from './chevreConsole/sellerReturnPolicy';
|
|
51
|
+
import type { AsyncActionService } from './chevreConsole/asyncAction';
|
|
52
|
+
import type { ScheduledTaskService } from './chevreConsole/scheduledTask';
|
|
52
53
|
import type { TaskService } from './chevreConsole/task';
|
|
53
54
|
import type { TicketService } from './chevreConsole/ticket';
|
|
54
55
|
import type { TokenService } from './chevreConsole/token';
|
|
@@ -390,6 +391,20 @@ export declare namespace service {
|
|
|
390
391
|
namespace SellerReturnPolicy {
|
|
391
392
|
let svc: typeof SellerReturnPolicyService | undefined;
|
|
392
393
|
}
|
|
394
|
+
/**
|
|
395
|
+
* 非同期アクションサービス
|
|
396
|
+
*/
|
|
397
|
+
type AsyncAction = AsyncActionService;
|
|
398
|
+
namespace AsyncAction {
|
|
399
|
+
let svc: typeof AsyncActionService | undefined;
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* 予定タスクサービス
|
|
403
|
+
*/
|
|
404
|
+
type ScheduledTask = ScheduledTaskService;
|
|
405
|
+
namespace ScheduledTask {
|
|
406
|
+
let svc: typeof ScheduledTaskService | undefined;
|
|
407
|
+
}
|
|
393
408
|
/**
|
|
394
409
|
* タスクサービス
|
|
395
410
|
*/
|
|
@@ -419,13 +434,6 @@ export declare namespace service {
|
|
|
419
434
|
namespace Pay {
|
|
420
435
|
let svc: typeof PayAssetTransactionService | undefined;
|
|
421
436
|
}
|
|
422
|
-
/**
|
|
423
|
-
* 予約取引サービス
|
|
424
|
-
*/
|
|
425
|
-
type Reserve = ReserveAssetTransactionService;
|
|
426
|
-
namespace Reserve {
|
|
427
|
-
let svc: typeof ReserveAssetTransactionService | undefined;
|
|
428
|
-
}
|
|
429
437
|
}
|
|
430
438
|
/**
|
|
431
439
|
* トークンサービス
|
|
@@ -528,11 +536,12 @@ export declare class ChevreConsole {
|
|
|
528
536
|
createSellerInstance(params: Pick<IOptions, 'project'>): Promise<SellerService>;
|
|
529
537
|
createSellerMakesOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<SellerMakesOfferService>;
|
|
530
538
|
createSellerReturnPolicyInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<SellerReturnPolicyService>;
|
|
539
|
+
createAsyncActionInstance(params: Pick<IOptions, 'project'>): Promise<AsyncActionService>;
|
|
540
|
+
createScheduledTaskInstance(params: Pick<IOptions, 'project'>): Promise<ScheduledTaskService>;
|
|
531
541
|
createTaskInstance(params: Pick<IOptions, 'project'>): Promise<TaskService>;
|
|
532
542
|
createTicketInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<TicketService>;
|
|
533
543
|
createAssetTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AssetTransactionService>;
|
|
534
544
|
createPayAssetTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PayAssetTransactionService>;
|
|
535
|
-
createReserveAssetTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ReserveAssetTransactionService>;
|
|
536
545
|
createTokenInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<TokenService>;
|
|
537
546
|
createPlaceOrderTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PlaceOrderTransactionService>;
|
|
538
547
|
createReturnOrderTransactionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ReturnOrderTransactionService>;
|
|
@@ -180,6 +180,12 @@ var service;
|
|
|
180
180
|
let SellerReturnPolicy;
|
|
181
181
|
(function (SellerReturnPolicy) {
|
|
182
182
|
})(SellerReturnPolicy = service.SellerReturnPolicy || (service.SellerReturnPolicy = {}));
|
|
183
|
+
let AsyncAction;
|
|
184
|
+
(function (AsyncAction) {
|
|
185
|
+
})(AsyncAction = service.AsyncAction || (service.AsyncAction = {}));
|
|
186
|
+
let ScheduledTask;
|
|
187
|
+
(function (ScheduledTask) {
|
|
188
|
+
})(ScheduledTask = service.ScheduledTask || (service.ScheduledTask = {}));
|
|
183
189
|
let Task;
|
|
184
190
|
(function (Task) {
|
|
185
191
|
})(Task = service.Task || (service.Task = {}));
|
|
@@ -194,9 +200,6 @@ var service;
|
|
|
194
200
|
let Pay;
|
|
195
201
|
(function (Pay) {
|
|
196
202
|
})(Pay = assetTransaction.Pay || (assetTransaction.Pay = {}));
|
|
197
|
-
let Reserve;
|
|
198
|
-
(function (Reserve) {
|
|
199
|
-
})(Reserve = assetTransaction.Reserve || (assetTransaction.Reserve = {}));
|
|
200
203
|
})(assetTransaction = service.assetTransaction || (service.assetTransaction = {}));
|
|
201
204
|
let Token;
|
|
202
205
|
(function (Token) {
|
|
@@ -513,6 +516,18 @@ class ChevreConsole {
|
|
|
513
516
|
}
|
|
514
517
|
return new service.SellerReturnPolicy.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
515
518
|
}
|
|
519
|
+
async createAsyncActionInstance(params) {
|
|
520
|
+
if (service.AsyncAction.svc === undefined) {
|
|
521
|
+
service.AsyncAction.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/asyncAction')))).AsyncActionService;
|
|
522
|
+
}
|
|
523
|
+
return new service.AsyncAction.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
524
|
+
}
|
|
525
|
+
async createScheduledTaskInstance(params) {
|
|
526
|
+
if (service.ScheduledTask.svc === undefined) {
|
|
527
|
+
service.ScheduledTask.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/scheduledTask.js')))).ScheduledTaskService;
|
|
528
|
+
}
|
|
529
|
+
return new service.ScheduledTask.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
530
|
+
}
|
|
516
531
|
async createTaskInstance(params) {
|
|
517
532
|
if (service.Task.svc === undefined) {
|
|
518
533
|
service.Task.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/task.js')))).TaskService;
|
|
@@ -537,12 +552,6 @@ class ChevreConsole {
|
|
|
537
552
|
}
|
|
538
553
|
return new service.assetTransaction.Pay.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
539
554
|
}
|
|
540
|
-
async createReserveAssetTransactionInstance(params) {
|
|
541
|
-
if (service.assetTransaction.Reserve.svc === undefined) {
|
|
542
|
-
service.assetTransaction.Reserve.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/assetTransaction/reserve.js')))).ReserveAssetTransactionService;
|
|
543
|
-
}
|
|
544
|
-
return new service.assetTransaction.Reserve.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
545
|
-
}
|
|
546
555
|
async createTokenInstance(params) {
|
|
547
556
|
if (service.Token.svc === undefined) {
|
|
548
557
|
service.Token.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/token.js')))).TokenService;
|
|
@@ -183,8 +183,6 @@ export declare class EventService extends Service {
|
|
|
183
183
|
};
|
|
184
184
|
limit: number;
|
|
185
185
|
page: number;
|
|
186
|
-
}, options?: {
|
|
187
|
-
useDefaultSection?: boolean;
|
|
188
186
|
}): Promise<ISearchResult<Omit<ISeatAsEventOffer, 'containedInPlace'>[]> & {
|
|
189
187
|
/**
|
|
190
188
|
* デフォルトセクションコード
|
|
@@ -112,16 +112,12 @@ class EventService extends service_1.Service {
|
|
|
112
112
|
* 自動的にルームのひとつめのセクションが選択されます
|
|
113
113
|
* @deprecated use SeatOfferService
|
|
114
114
|
*/
|
|
115
|
-
async findSeatOffersDeprecated(params
|
|
116
|
-
const { event,
|
|
117
|
-
const useDefaultSection = options?.useDefaultSection === true;
|
|
115
|
+
async findSeatOffersDeprecated(params) {
|
|
116
|
+
const { event, limit, page } = params;
|
|
118
117
|
return this.fetch({
|
|
119
118
|
uri: `/events/${encodeURIComponent(String(event.id))}/seats`,
|
|
120
119
|
method: 'GET',
|
|
121
|
-
qs: {
|
|
122
|
-
...query,
|
|
123
|
-
useDefaultSection
|
|
124
|
-
},
|
|
120
|
+
qs: { limit, page },
|
|
125
121
|
expectedStatusCodes: [http_status_1.status.OK]
|
|
126
122
|
})
|
|
127
123
|
.then(async (response) => {
|
|
@@ -13,19 +13,6 @@ class PlaceOrderCOAService extends service_1.Service {
|
|
|
13
13
|
* COA興行オファー承認
|
|
14
14
|
*/
|
|
15
15
|
async createSeatReservationAuthorization(params) {
|
|
16
|
-
// return this.fetch({
|
|
17
|
-
// uri: `/transactions/${this.typeOf}/${params.purpose.id}/actions/authorize/seatReservation`,
|
|
18
|
-
// method: 'POST',
|
|
19
|
-
// expectedStatusCodes: [status.CREATED],
|
|
20
|
-
// body: {
|
|
21
|
-
// eventIdentifier: params.object.event.id,
|
|
22
|
-
// offers: params.object.acceptedOffer,
|
|
23
|
-
// ...(typeof params.object.appliesToSurfrock?.serviceOutput?.typeOf === 'string')
|
|
24
|
-
// ? { appliesToSurfrock: params.object.appliesToSurfrock }
|
|
25
|
-
// : undefined
|
|
26
|
-
// }
|
|
27
|
-
// })
|
|
28
|
-
// .then(async (response) => response.json());
|
|
29
16
|
const { object, purpose } = params;
|
|
30
17
|
const { event, acceptedOffer, appliesToSurfrock } = object;
|
|
31
18
|
const appliesToSurfrockIdentifier = (typeof appliesToSurfrock?.identifier === 'string' && appliesToSurfrock.identifier.length > 0)
|
|
@@ -104,19 +91,6 @@ class PlaceOrderCOAService extends service_1.Service {
|
|
|
104
91
|
* 完了ステータスの承認アクションに対して券種変更する際に使用
|
|
105
92
|
*/
|
|
106
93
|
async changeSeatReservationOffers(params) {
|
|
107
|
-
// return this.fetch({
|
|
108
|
-
// uri: `/transactions/${this.typeOf}/${params.purpose.id}/actions/authorize/seatReservation/${params.id}`,
|
|
109
|
-
// method: 'PATCH',
|
|
110
|
-
// expectedStatusCodes: [status.OK],
|
|
111
|
-
// body: {
|
|
112
|
-
// eventIdentifier: params.object.event.id,
|
|
113
|
-
// offers: params.object.acceptedOffer,
|
|
114
|
-
// ...(typeof params.object.appliesToSurfrock?.serviceOutput?.typeOf === 'string')
|
|
115
|
-
// ? { appliesToSurfrock: params.object.appliesToSurfrock }
|
|
116
|
-
// : undefined
|
|
117
|
-
// }
|
|
118
|
-
// })
|
|
119
|
-
// .then(async (response) => response.json());
|
|
120
94
|
const { id, object, purpose } = params;
|
|
121
95
|
const { event, acceptedOffer, appliesToSurfrock } = object;
|
|
122
96
|
const appliesToSurfrockIdentifier = (typeof appliesToSurfrock?.identifier === 'string' && appliesToSurfrock.identifier.length > 0)
|