@cinerino/sdk 15.0.0-alpha.1 → 15.0.0-alpha.3

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.
@@ -1,10 +1,8 @@
1
1
  import { IAdditionalOptions, IOptions, IUnset as IUnsetOnService } from './service';
2
- import type { AccountService } from './chevreConsole/account';
3
2
  import type { AccountingReportService } from './chevreConsole/accountingReport';
4
3
  import type { AccountTitleService } from './chevreConsole/accountTitle';
5
4
  import type { ActionService } from './chevreConsole/action';
6
5
  import type { AdditionalPropertyService } from './chevreConsole/additionalProperty';
7
- import type { AdvanceBookingRequirementService } from './chevreConsole/advanceBookingRequirement';
8
6
  import type { AggregateOfferService } from './chevreConsole/aggregateOffer';
9
7
  import type { AggregateReservationService } from './chevreConsole/aggregateReservation';
10
8
  import type { AggregationService } from './chevreConsole/aggregation';
@@ -40,7 +38,6 @@ import type { PaymentProductService } from './chevreConsole/paymentService';
40
38
  import type { PaymentServiceChannelService } from './chevreConsole/paymentServiceChannel';
41
39
  import type { PendingReservationService } from './chevreConsole/pendingReservation';
42
40
  import type { PermissionService } from './chevreConsole/permission';
43
- import type { PermitService } from './chevreConsole/permit';
44
41
  import type { PersonService } from './chevreConsole/person';
45
42
  import type { PlaceService } from './chevreConsole/place';
46
43
  import type { HasPOSService } from './chevreConsole/place/hasPOS';
@@ -63,13 +60,6 @@ import type { UserPoolService } from './chevreConsole/userPool';
63
60
  import type { WebSiteService } from './chevreConsole/webSite';
64
61
  export declare namespace service {
65
62
  type IUnset = IUnsetOnService;
66
- /**
67
- * 口座サービス
68
- */
69
- type Account = AccountService;
70
- namespace Account {
71
- let svc: typeof AccountService | undefined;
72
- }
73
63
  /**
74
64
  * 経理レポートサービス
75
65
  */
@@ -98,13 +88,6 @@ export declare namespace service {
98
88
  namespace AdditionalProperty {
99
89
  let svc: typeof AdditionalPropertyService | undefined;
100
90
  }
101
- /**
102
- * 事前予約要件サービス
103
- */
104
- type AdvanceBookingRequirement = AdvanceBookingRequirementService;
105
- namespace AdvanceBookingRequirement {
106
- let svc: typeof AdvanceBookingRequirementService | undefined;
107
- }
108
91
  /**
109
92
  * 集計オファーサービス
110
93
  */
@@ -301,13 +284,6 @@ export declare namespace service {
301
284
  namespace Permission {
302
285
  let svc: typeof PermissionService | undefined;
303
286
  }
304
- /**
305
- * 許可証サービス
306
- */
307
- type Permit = PermitService;
308
- namespace Permit {
309
- let svc: typeof PermitService | undefined;
310
- }
311
287
  /**
312
288
  * 会員サービス
313
289
  */
@@ -513,12 +489,10 @@ export declare namespace service {
513
489
  export declare class ChevreConsole {
514
490
  options: Pick<IOptions, 'auth' | 'endpoint'>;
515
491
  constructor(options: Pick<IOptions, 'auth' | 'endpoint'>);
516
- createAccountInstance(params: Pick<IOptions, 'project'>): Promise<AccountService>;
517
492
  createAccountingReportInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountingReportService>;
518
493
  createAccountTitleInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountTitleService>;
519
494
  createActionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ActionService>;
520
495
  createAdditionalPropertyInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AdditionalPropertyService>;
521
- createAdvanceBookingRequirementInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AdvanceBookingRequirementService>;
522
496
  createAggregateOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AggregateOfferService>;
523
497
  createAggregateReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AggregateReservationService>;
524
498
  createAggregationInstance(): Promise<AggregationService>;
@@ -547,7 +521,6 @@ export declare class ChevreConsole {
547
521
  createPaymentServiceChannelInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentServiceChannelService>;
548
522
  createPendingReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PendingReservationService>;
549
523
  createPermissionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PermissionService>;
550
- createPermitInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PermitService>;
551
524
  createPersonInstance(params: Pick<IOptions, 'project'>): Promise<PersonService>;
552
525
  createPlaceInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PlaceService>;
553
526
  createHasPOSInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<HasPOSService>;
@@ -36,9 +36,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.ChevreConsole = exports.service = void 0;
37
37
  var service;
38
38
  (function (service) {
39
- let Account;
40
- (function (Account) {
41
- })(Account = service.Account || (service.Account = {}));
42
39
  let AccountingReport;
43
40
  (function (AccountingReport) {
44
41
  })(AccountingReport = service.AccountingReport || (service.AccountingReport = {}));
@@ -51,9 +48,6 @@ var service;
51
48
  let AdditionalProperty;
52
49
  (function (AdditionalProperty) {
53
50
  })(AdditionalProperty = service.AdditionalProperty || (service.AdditionalProperty = {}));
54
- let AdvanceBookingRequirement;
55
- (function (AdvanceBookingRequirement) {
56
- })(AdvanceBookingRequirement = service.AdvanceBookingRequirement || (service.AdvanceBookingRequirement = {}));
57
51
  let AggregateOffer;
58
52
  (function (AggregateOffer) {
59
53
  })(AggregateOffer = service.AggregateOffer || (service.AggregateOffer = {}));
@@ -138,9 +132,6 @@ var service;
138
132
  let Permission;
139
133
  (function (Permission) {
140
134
  })(Permission = service.Permission || (service.Permission = {}));
141
- let Permit;
142
- (function (Permit) {
143
- })(Permit = service.Permit || (service.Permit = {}));
144
135
  let Person;
145
136
  (function (Person) {
146
137
  })(Person = service.Person || (service.Person = {}));
@@ -243,12 +234,6 @@ class ChevreConsole {
243
234
  constructor(options) {
244
235
  this.options = options;
245
236
  }
246
- async createAccountInstance(params) {
247
- if (service.Account.svc === undefined) {
248
- service.Account.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/account.js')))).AccountService;
249
- }
250
- return new service.Account.svc({ ...this.options, ...params, retryableStatusCodes: [] });
251
- }
252
237
  async createAccountingReportInstance(params) {
253
238
  if (service.AccountingReport.svc === undefined) {
254
239
  service.AccountingReport.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/accountingReport.js')))).AccountingReportService;
@@ -273,13 +258,6 @@ class ChevreConsole {
273
258
  }
274
259
  return new service.AdditionalProperty.svc({ ...this.options, ...params, retryableStatusCodes: [] });
275
260
  }
276
- async createAdvanceBookingRequirementInstance(params) {
277
- if (service.AdvanceBookingRequirement.svc === undefined) {
278
- service.AdvanceBookingRequirement.svc =
279
- (await Promise.resolve().then(() => __importStar(require('./chevreConsole/advanceBookingRequirement.js')))).AdvanceBookingRequirementService;
280
- }
281
- return new service.AdvanceBookingRequirement.svc({ ...this.options, ...params, retryableStatusCodes: [] });
282
- }
283
261
  async createAggregateOfferInstance(params) {
284
262
  if (service.AggregateOffer.svc === undefined) {
285
263
  service.AggregateOffer.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/aggregateOffer.js')))).AggregateOfferService;
@@ -448,12 +426,6 @@ class ChevreConsole {
448
426
  }
449
427
  return new service.Permission.svc({ ...this.options, ...params, retryableStatusCodes: [] });
450
428
  }
451
- async createPermitInstance(params) {
452
- if (service.Permit.svc === undefined) {
453
- service.Permit.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/permit.js')))).PermitService;
454
- }
455
- return new service.Permit.svc({ ...this.options, ...params, retryableStatusCodes: [] });
456
- }
457
429
  async createPersonInstance(params) {
458
430
  if (service.Person.svc === undefined) {
459
431
  service.Person.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/person.js')))).PersonService;
@@ -40,9 +40,6 @@ export type IAuthorizeCreditCardObject = Pick<factory.action.authorize.paymentMe
40
40
  eventIdsAsOrderedItem: string[];
41
41
  };
42
42
  export type IAuthorizeMovieTicketObject = Pick<factory.action.authorize.paymentMethod.any.IAuthorizeMovieTicketObject, 'issuedThrough' | 'paymentMethod' | 'movieTickets' | 'name' | 'additionalProperty' | 'ticketToken'>;
43
- export type IAuthorizePaymentCardObject = Pick<factory.action.authorize.paymentMethod.any.IAuthorizePaymentCardObject, 'amount' | 'issuedThrough' | 'paymentMethod' | 'fromLocation' | 'name' | 'additionalProperty'> & {
44
- description?: string;
45
- };
46
43
  export type IPublishPaymentUrlObject = Pick<factory.action.authorize.paymentMethod.any.IAuthorizeCreditCardObject, 'amount' | 'creditCard' | 'issuedThrough' | 'paymentMethod' | 'method' | 'ticketToken'> & {
47
44
  /**
48
45
  * 関連注文に含まれるイベントIDリスト
@@ -1,6 +1,6 @@
1
1
  import { factory } from '../factory';
2
2
  import { Service } from '../service';
3
- import { IAuthorizeAnyPaymentObject, IAuthorizeCreditCardObject, IAuthorizeMovieTicketObject, IAuthorizePaymentCardObject, IAuthorizeResult, ICheckMovieTicketResult, IFindAcceptActionResult, IFindAuthorizeActionResult, IMinimizedCheckMovieTicketResult, IMovieTicketMkknInfo, IMovieTicketYkknInfo, IPublishPaymentUrlObject, IPurpose, ITicket } from './payment/factory';
3
+ import { IAuthorizeAnyPaymentObject, IAuthorizeCreditCardObject, IAuthorizeMovieTicketObject, IAuthorizeResult, ICheckMovieTicketResult, IFindAcceptActionResult, IFindAuthorizeActionResult, IMinimizedCheckMovieTicketResult, IMovieTicketMkknInfo, IMovieTicketYkknInfo, IPublishPaymentUrlObject, IPurpose, ITicket } from './payment/factory';
4
4
  /**
5
5
  * 決済サービス
6
6
  */
@@ -66,13 +66,6 @@ export declare class PaymentService extends Service {
66
66
  */
67
67
  checkedActionId: string;
68
68
  }): Promise<IAuthorizeResult>;
69
- /**
70
- * ペイメントカード決済承認
71
- */
72
- authorizePaymentCard(params: {
73
- object: IAuthorizePaymentCardObject;
74
- purpose: IPurpose;
75
- }): Promise<IAuthorizeResult>;
76
69
  /**
77
70
  * 決済ロケーション発行(非同期)
78
71
  */
@@ -144,32 +144,6 @@ class PaymentService extends service_1.Service {
144
144
  })
145
145
  .then(async (response) => response.json());
146
146
  }
147
- /**
148
- * ペイメントカード決済承認
149
- */
150
- async authorizePaymentCard(params) {
151
- const { object, purpose } = params;
152
- const { amount, issuedThrough, paymentMethod, name, additionalProperty, fromLocation, description } = object;
153
- return this.fetch({
154
- uri: `/payment/${factory_1.factory.product.ProductType.PaymentCard}/authorize`,
155
- method: 'POST',
156
- expectedStatusCodes: [http_status_1.status.CREATED],
157
- body: {
158
- object: {
159
- amount, issuedThrough, paymentMethod,
160
- ...(typeof fromLocation === 'string') ? { fromLocation } : undefined,
161
- ...(typeof name === 'string') ? { name } : undefined,
162
- ...(typeof description === 'string') ? { description } : undefined,
163
- ...(Array.isArray(additionalProperty)) ? { additionalProperty } : undefined
164
- },
165
- purpose
166
- },
167
- qs: {
168
- purpose: { id: purpose.id } // 追加(2024-04-01~)
169
- }
170
- })
171
- .then(async (response) => response.json());
172
- }
173
147
  /**
174
148
  * 決済ロケーション発行(非同期)
175
149
  */
@@ -36,7 +36,7 @@ export declare class OfferService extends Service {
36
36
  /**
37
37
  * 最大長:20
38
38
  */
39
- params: Pick<factory.unitPriceOffer.ICreateParams, 'acceptedPaymentMethod' | 'addOn' | 'additionalProperty' | 'advanceBookingRequirement' | 'alternateName' | 'availability' | 'availableAtOrFrom' | 'category' | 'color' | 'description' | 'eligibleSeatingType' | 'hasMerchantReturnPolicy' | 'identifier' | 'itemOffered' | 'name' | 'priceSpecification' | 'settings' | 'validFrom' | 'validThrough'>[], options: {
39
+ params: Pick<factory.unitPriceOffer.ICreateParams, 'acceptedPaymentMethod' | 'addOn' | 'additionalProperty' | 'alternateName' | 'availability' | 'availableAtOrFrom' | 'category' | 'color' | 'description' | 'eligibleSeatingType' | 'hasMerchantReturnPolicy' | 'identifier' | 'itemOffered' | 'name' | 'priceSpecification' | 'settings' | 'validFrom' | 'validThrough'>[], options: {
40
40
  productType: factory.product.ProductType.EventService | factory.product.ProductType.Product;
41
41
  }): Promise<void>;
42
42
  }
@@ -14,7 +14,6 @@ import type * as CloudSearch from './cloud/search';
14
14
  import type * as CloudTxc from './cloud/txc';
15
15
  import type * as CloudTxn from './cloud/txn';
16
16
  import { factory } from './factory';
17
- import type * as Pecorino from './pecorino';
18
17
  import type * as WaiterAdmin from './waiterAdmin';
19
18
  import * as transporters from './transporters';
20
19
  export declare function loadChevre(...params: ConstructorParameters<typeof Chevre.Chevre>): Promise<Chevre.Chevre>;
@@ -25,7 +24,6 @@ export declare function loadChevreConsole(...params: ConstructorParameters<typeo
25
24
  export declare function loadChevrePay(...params: ConstructorParameters<typeof ChevrePay.ChevrePay>): Promise<ChevrePay.ChevrePay>;
26
25
  export declare function loadChevreTxn(...params: ConstructorParameters<typeof ChevreTxn.ChevreTxn>): Promise<ChevreTxn.ChevreTxn>;
27
26
  export declare function loadChevreTxc(...params: ConstructorParameters<typeof ChevreTxc.ChevreTxc>): Promise<ChevreTxc.ChevreTxc>;
28
- export declare function loadPecorino(): Promise<typeof Pecorino>;
29
27
  export declare function loadService(): Promise<typeof Service>;
30
28
  /**
31
29
  * 管理サービス群を読み込む
@@ -52,5 +50,5 @@ export declare function loadCloudTxc(...params: ConstructorParameters<typeof Clo
52
50
  */
53
51
  export declare function loadCloudTxn(...params: ConstructorParameters<typeof CloudTxn.CloudTxn>): Promise<CloudTxn.CloudTxn>;
54
52
  export declare function loadWaiterAdmin(...params: ConstructorParameters<typeof ChevreAdmin.ChevreAdmin>): Promise<WaiterAdmin.WaiterAdmin>;
55
- export { factory, Chevre as chevre, ChevreAdmic as chevreAdmic, ChevreAdmin as chevreAdmin, ChevreAsset as chevreAsset, ChevreConsole as chevreConsole, ChevrePay as chevrePay, ChevreTxc as chevreTxc, ChevreTxn as chevreTxn, CloudAdmin as cloudAdmin, CloudAsset as cloudAsset, CloudSearch as cloudSearch, CloudPay as cloudPay, CloudTxc as cloudTxc, CloudTxn as cloudTxn, Pecorino as pecorino, Service as service, WaiterAdmin as waiterAdmin };
53
+ export { factory, Chevre as chevre, ChevreAdmic as chevreAdmic, ChevreAdmin as chevreAdmin, ChevreAsset as chevreAsset, ChevreConsole as chevreConsole, ChevrePay as chevrePay, ChevreTxc as chevreTxc, ChevreTxn as chevreTxn, CloudAdmin as cloudAdmin, CloudAsset as cloudAsset, CloudSearch as cloudSearch, CloudPay as cloudPay, CloudTxc as cloudTxc, CloudTxn as cloudTxn, Service as service, WaiterAdmin as waiterAdmin };
56
54
  export { transporters };
@@ -42,7 +42,6 @@ exports.loadChevreConsole = loadChevreConsole;
42
42
  exports.loadChevrePay = loadChevrePay;
43
43
  exports.loadChevreTxn = loadChevreTxn;
44
44
  exports.loadChevreTxc = loadChevreTxc;
45
- exports.loadPecorino = loadPecorino;
46
45
  exports.loadService = loadService;
47
46
  exports.loadCloudAdmin = loadCloudAdmin;
48
47
  exports.loadCloudAsset = loadCloudAsset;
@@ -119,14 +118,6 @@ async function loadChevreTxc(...params) {
119
118
  }
120
119
  return new chevreTxc(...params);
121
120
  }
122
- let pecorino;
123
- /* istanbul ignore next */
124
- async function loadPecorino() {
125
- if (pecorino === undefined) {
126
- pecorino = await Promise.resolve().then(() => __importStar(require('./pecorino.js')));
127
- }
128
- return pecorino;
129
- }
130
121
  let service;
131
122
  /* istanbul ignore next */
132
123
  async function loadService() {