@cinerino/sdk 15.0.0-alpha.0 → 15.0.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/lib/abstract/chevre.d.ts +0 -9
- package/lib/abstract/chevre.js +0 -9
- package/lib/abstract/chevreAdmin.d.ts +0 -9
- package/lib/abstract/chevreAdmin.js +0 -9
- package/lib/abstract/chevreConsole.d.ts +0 -27
- package/lib/abstract/chevreConsole.js +0 -27
- package/lib/abstract/chevrePay/payment/factory.d.ts +0 -3
- package/lib/abstract/chevrePay/payment.d.ts +1 -8
- package/lib/abstract/chevrePay/payment.js +0 -26
- package/lib/abstract/chevreTxn/offer.d.ts +1 -1
- package/lib/abstract/cloud/admin.d.ts +0 -9
- package/lib/abstract/cloud/admin.js +0 -9
- package/lib/abstract/cloud/search.d.ts +0 -12
- package/lib/abstract/cloud/search.js +0 -15
- package/lib/abstract/cloud/txn/offer.d.ts +1 -1
- package/lib/abstract/index.d.ts +1 -3
- package/lib/abstract/index.js +0 -9
- package/lib/bundle.js +3 -3
- package/lib/bundle.js.map +4 -4
- package/lib/index.d.ts +2 -2
- package/lib/index.js +1 -2
- package/package.json +2 -2
- package/lib/abstract/chevre/productOffer.d.ts +0 -33
- package/lib/abstract/chevre/productOffer.js +0 -21
- package/lib/abstract/chevreAdmin/productOffer.d.ts +0 -79
- package/lib/abstract/chevreAdmin/productOffer.js +0 -67
- package/lib/abstract/chevreConsole/account.d.ts +0 -56
- package/lib/abstract/chevreConsole/account.js +0 -51
- package/lib/abstract/chevreConsole/comment.d.ts +0 -36
- package/lib/abstract/chevreConsole/comment.js +0 -39
- package/lib/abstract/chevreConsole/permit.d.ts +0 -40
- package/lib/abstract/chevreConsole/permit.js +0 -52
- package/lib/abstract/cloud/admin/productOffer.d.ts +0 -48
- package/lib/abstract/cloud/admin/productOffer.js +0 -55
- package/lib/abstract/cloud/search/productOffer.d.ts +0 -11
- package/lib/abstract/cloud/search/productOffer.js +0 -25
- package/lib/abstract/pecorino/accountTransaction.d.ts +0 -28
- package/lib/abstract/pecorino/accountTransaction.js +0 -68
- package/lib/abstract/pecorino/permit.d.ts +0 -39
- package/lib/abstract/pecorino/permit.js +0 -40
- package/lib/abstract/pecorino.d.ts +0 -19
- package/lib/abstract/pecorino.js +0 -25
package/lib/abstract/chevre.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ import type { PaymentProductService } from './chevre/paymentService';
|
|
|
10
10
|
import type { PlaceService } from './chevre/place';
|
|
11
11
|
import type { HasPOSService } from './chevre/place/hasPOS';
|
|
12
12
|
import type { ProductService } from './chevre/product';
|
|
13
|
-
import type { ProductOfferService } from './chevre/productOffer';
|
|
14
13
|
import type { SeatOfferService } from './chevre/seatOffer';
|
|
15
14
|
import type { SellerService } from './chevre/seller';
|
|
16
15
|
export declare namespace service {
|
|
@@ -94,13 +93,6 @@ export declare namespace service {
|
|
|
94
93
|
namespace Product {
|
|
95
94
|
let svc: typeof ProductService | undefined;
|
|
96
95
|
}
|
|
97
|
-
/**
|
|
98
|
-
* プロダクトオファーサービス
|
|
99
|
-
*/
|
|
100
|
-
type ProductOffer = ProductOfferService;
|
|
101
|
-
namespace ProductOffer {
|
|
102
|
-
let svc: typeof ProductOfferService | undefined;
|
|
103
|
-
}
|
|
104
96
|
/**
|
|
105
97
|
* 座席オファーサービス
|
|
106
98
|
*/
|
|
@@ -133,7 +125,6 @@ export declare class Chevre {
|
|
|
133
125
|
createPlaceInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PlaceService>;
|
|
134
126
|
createHasPOSInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<HasPOSService>;
|
|
135
127
|
createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
|
|
136
|
-
createProductOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductOfferService>;
|
|
137
128
|
createSeatOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<SeatOfferService>;
|
|
138
129
|
createSellerInstance(params: Pick<IOptions, 'project'>): Promise<SellerService>;
|
|
139
130
|
}
|
package/lib/abstract/chevre.js
CHANGED
|
@@ -72,9 +72,6 @@ var service;
|
|
|
72
72
|
let Product;
|
|
73
73
|
(function (Product) {
|
|
74
74
|
})(Product = service.Product || (service.Product = {}));
|
|
75
|
-
let ProductOffer;
|
|
76
|
-
(function (ProductOffer) {
|
|
77
|
-
})(ProductOffer = service.ProductOffer || (service.ProductOffer = {}));
|
|
78
75
|
let SeatOffer;
|
|
79
76
|
(function (SeatOffer) {
|
|
80
77
|
})(SeatOffer = service.SeatOffer || (service.SeatOffer = {}));
|
|
@@ -156,12 +153,6 @@ class Chevre {
|
|
|
156
153
|
}
|
|
157
154
|
return new service.Product.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
158
155
|
}
|
|
159
|
-
async createProductOfferInstance(params) {
|
|
160
|
-
if (service.ProductOffer.svc === undefined) {
|
|
161
|
-
service.ProductOffer.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/productOffer.js')))).ProductOfferService;
|
|
162
|
-
}
|
|
163
|
-
return new service.ProductOffer.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
164
|
-
}
|
|
165
156
|
async createSeatOfferInstance(params) {
|
|
166
157
|
if (service.SeatOffer.svc === undefined) {
|
|
167
158
|
service.SeatOffer.svc = (await Promise.resolve().then(() => __importStar(require('./chevre/seatOffer.js')))).SeatOfferService;
|
|
@@ -17,7 +17,6 @@ import type { OfferCatalogItemService } from './chevreAdmin/offerCatalogItem';
|
|
|
17
17
|
import type { OrderService } from './chevreAdmin/order';
|
|
18
18
|
import type { PaymentMethodService } from './chevreAdmin/paymentMethod';
|
|
19
19
|
import type { ProductService } from './chevreAdmin/product';
|
|
20
|
-
import type { ProductOfferService } from './chevreAdmin/productOffer';
|
|
21
20
|
import type { ReservationService } from './chevreAdmin/reservation';
|
|
22
21
|
import type { RoomService } from './chevreAdmin/room';
|
|
23
22
|
import type { SeatService } from './chevreAdmin/seat';
|
|
@@ -123,13 +122,6 @@ export declare namespace service {
|
|
|
123
122
|
namespace Product {
|
|
124
123
|
let svc: typeof ProductService | undefined;
|
|
125
124
|
}
|
|
126
|
-
/**
|
|
127
|
-
* プロダクトオファーサービス
|
|
128
|
-
*/
|
|
129
|
-
type ProductOffer = ProductOfferService;
|
|
130
|
-
namespace ProductOffer {
|
|
131
|
-
let svc: typeof ProductOfferService | undefined;
|
|
132
|
-
}
|
|
133
125
|
/**
|
|
134
126
|
* 予約サービス
|
|
135
127
|
*/
|
|
@@ -219,7 +211,6 @@ export declare class ChevreAdmin {
|
|
|
219
211
|
createOrderInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OrderService>;
|
|
220
212
|
createPaymentMethodInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentMethodService>;
|
|
221
213
|
createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
|
|
222
|
-
createProductOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductOfferService>;
|
|
223
214
|
createReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ReservationService>;
|
|
224
215
|
/**
|
|
225
216
|
* 販売者指定必須
|
|
@@ -78,9 +78,6 @@ var service;
|
|
|
78
78
|
let Product;
|
|
79
79
|
(function (Product) {
|
|
80
80
|
})(Product = service.Product || (service.Product = {}));
|
|
81
|
-
let ProductOffer;
|
|
82
|
-
(function (ProductOffer) {
|
|
83
|
-
})(ProductOffer = service.ProductOffer || (service.ProductOffer = {}));
|
|
84
81
|
let Reservation;
|
|
85
82
|
(function (Reservation) {
|
|
86
83
|
})(Reservation = service.Reservation || (service.Reservation = {}));
|
|
@@ -207,12 +204,6 @@ class ChevreAdmin {
|
|
|
207
204
|
}
|
|
208
205
|
return new service.Product.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
209
206
|
}
|
|
210
|
-
async createProductOfferInstance(params) {
|
|
211
|
-
if (service.ProductOffer.svc === undefined) {
|
|
212
|
-
service.ProductOffer.svc = (await Promise.resolve().then(() => __importStar(require('./chevreAdmin/productOffer.js')))).ProductOfferService;
|
|
213
|
-
}
|
|
214
|
-
return new service.ProductOffer.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
215
|
-
}
|
|
216
207
|
async createReservationInstance(params) {
|
|
217
208
|
if (service.Reservation.svc === undefined) {
|
|
218
209
|
service.Reservation.svc = (await Promise.resolve().then(() => __importStar(require('./chevreAdmin/reservation.js')))).ReservationService;
|
|
@@ -1,5 +1,4 @@
|
|
|
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';
|
|
@@ -13,7 +12,6 @@ import type { PayAssetTransactionService } from './chevreConsole/assetTransactio
|
|
|
13
12
|
import type { ReserveAssetTransactionService } from './chevreConsole/assetTransaction/reserve';
|
|
14
13
|
import type { AuthorizationService } from './chevreConsole/authorization';
|
|
15
14
|
import type { CategoryCodeService } from './chevreConsole/categoryCode';
|
|
16
|
-
import type { CommentService } from './chevreConsole/comment';
|
|
17
15
|
import type { CreativeWorkService } from './chevreConsole/creativeWork';
|
|
18
16
|
import type { CustomerService } from './chevreConsole/customer';
|
|
19
17
|
import type { CustomerTypeService } from './chevreConsole/customerType';
|
|
@@ -41,7 +39,6 @@ import type { PaymentProductService } from './chevreConsole/paymentService';
|
|
|
41
39
|
import type { PaymentServiceChannelService } from './chevreConsole/paymentServiceChannel';
|
|
42
40
|
import type { PendingReservationService } from './chevreConsole/pendingReservation';
|
|
43
41
|
import type { PermissionService } from './chevreConsole/permission';
|
|
44
|
-
import type { PermitService } from './chevreConsole/permit';
|
|
45
42
|
import type { PersonService } from './chevreConsole/person';
|
|
46
43
|
import type { PlaceService } from './chevreConsole/place';
|
|
47
44
|
import type { HasPOSService } from './chevreConsole/place/hasPOS';
|
|
@@ -64,13 +61,6 @@ import type { UserPoolService } from './chevreConsole/userPool';
|
|
|
64
61
|
import type { WebSiteService } from './chevreConsole/webSite';
|
|
65
62
|
export declare namespace service {
|
|
66
63
|
type IUnset = IUnsetOnService;
|
|
67
|
-
/**
|
|
68
|
-
* 口座サービス
|
|
69
|
-
*/
|
|
70
|
-
type Account = AccountService;
|
|
71
|
-
namespace Account {
|
|
72
|
-
let svc: typeof AccountService | undefined;
|
|
73
|
-
}
|
|
74
64
|
/**
|
|
75
65
|
* 経理レポートサービス
|
|
76
66
|
*/
|
|
@@ -141,13 +131,6 @@ export declare namespace service {
|
|
|
141
131
|
namespace CategoryCode {
|
|
142
132
|
let svc: typeof CategoryCodeService | undefined;
|
|
143
133
|
}
|
|
144
|
-
/**
|
|
145
|
-
* コメントサービス
|
|
146
|
-
*/
|
|
147
|
-
type Comment = CommentService;
|
|
148
|
-
namespace Comment {
|
|
149
|
-
let svc: typeof CommentService | undefined;
|
|
150
|
-
}
|
|
151
134
|
/**
|
|
152
135
|
* コンテンツサービス
|
|
153
136
|
*/
|
|
@@ -309,13 +292,6 @@ export declare namespace service {
|
|
|
309
292
|
namespace Permission {
|
|
310
293
|
let svc: typeof PermissionService | undefined;
|
|
311
294
|
}
|
|
312
|
-
/**
|
|
313
|
-
* 許可証サービス
|
|
314
|
-
*/
|
|
315
|
-
type Permit = PermitService;
|
|
316
|
-
namespace Permit {
|
|
317
|
-
let svc: typeof PermitService | undefined;
|
|
318
|
-
}
|
|
319
295
|
/**
|
|
320
296
|
* 会員サービス
|
|
321
297
|
*/
|
|
@@ -521,7 +497,6 @@ export declare namespace service {
|
|
|
521
497
|
export declare class ChevreConsole {
|
|
522
498
|
options: Pick<IOptions, 'auth' | 'endpoint'>;
|
|
523
499
|
constructor(options: Pick<IOptions, 'auth' | 'endpoint'>);
|
|
524
|
-
createAccountInstance(params: Pick<IOptions, 'project'>): Promise<AccountService>;
|
|
525
500
|
createAccountingReportInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountingReportService>;
|
|
526
501
|
createAccountTitleInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountTitleService>;
|
|
527
502
|
createActionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ActionService>;
|
|
@@ -531,7 +506,6 @@ export declare class ChevreConsole {
|
|
|
531
506
|
createAggregateReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AggregateReservationService>;
|
|
532
507
|
createAggregationInstance(): Promise<AggregationService>;
|
|
533
508
|
createAuthorizationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AuthorizationService>;
|
|
534
|
-
createCommentInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CommentService>;
|
|
535
509
|
createCreativeWorkInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CreativeWorkService>;
|
|
536
510
|
createCategoryCodeInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CategoryCodeService>;
|
|
537
511
|
createCustomerInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<CustomerService>;
|
|
@@ -556,7 +530,6 @@ export declare class ChevreConsole {
|
|
|
556
530
|
createPaymentServiceChannelInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentServiceChannelService>;
|
|
557
531
|
createPendingReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PendingReservationService>;
|
|
558
532
|
createPermissionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PermissionService>;
|
|
559
|
-
createPermitInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PermitService>;
|
|
560
533
|
createPersonInstance(params: Pick<IOptions, 'project'>): Promise<PersonService>;
|
|
561
534
|
createPlaceInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PlaceService>;
|
|
562
535
|
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 = {}));
|
|
@@ -69,9 +66,6 @@ var service;
|
|
|
69
66
|
let CategoryCode;
|
|
70
67
|
(function (CategoryCode) {
|
|
71
68
|
})(CategoryCode = service.CategoryCode || (service.CategoryCode = {}));
|
|
72
|
-
let Comment;
|
|
73
|
-
(function (Comment) {
|
|
74
|
-
})(Comment = service.Comment || (service.Comment = {}));
|
|
75
69
|
let CreativeWork;
|
|
76
70
|
(function (CreativeWork) {
|
|
77
71
|
})(CreativeWork = service.CreativeWork || (service.CreativeWork = {}));
|
|
@@ -141,9 +135,6 @@ var service;
|
|
|
141
135
|
let Permission;
|
|
142
136
|
(function (Permission) {
|
|
143
137
|
})(Permission = service.Permission || (service.Permission = {}));
|
|
144
|
-
let Permit;
|
|
145
|
-
(function (Permit) {
|
|
146
|
-
})(Permit = service.Permit || (service.Permit = {}));
|
|
147
138
|
let Person;
|
|
148
139
|
(function (Person) {
|
|
149
140
|
})(Person = service.Person || (service.Person = {}));
|
|
@@ -246,12 +237,6 @@ class ChevreConsole {
|
|
|
246
237
|
constructor(options) {
|
|
247
238
|
this.options = options;
|
|
248
239
|
}
|
|
249
|
-
async createAccountInstance(params) {
|
|
250
|
-
if (service.Account.svc === undefined) {
|
|
251
|
-
service.Account.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/account.js')))).AccountService;
|
|
252
|
-
}
|
|
253
|
-
return new service.Account.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
254
|
-
}
|
|
255
240
|
async createAccountingReportInstance(params) {
|
|
256
241
|
if (service.AccountingReport.svc === undefined) {
|
|
257
242
|
service.AccountingReport.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/accountingReport.js')))).AccountingReportService;
|
|
@@ -307,12 +292,6 @@ class ChevreConsole {
|
|
|
307
292
|
}
|
|
308
293
|
return new service.Authorization.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
309
294
|
}
|
|
310
|
-
async createCommentInstance(params) {
|
|
311
|
-
if (service.Comment.svc === undefined) {
|
|
312
|
-
service.Comment.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/comment.js')))).CommentService;
|
|
313
|
-
}
|
|
314
|
-
return new service.Comment.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
315
|
-
}
|
|
316
295
|
async createCreativeWorkInstance(params) {
|
|
317
296
|
if (service.CreativeWork.svc === undefined) {
|
|
318
297
|
service.CreativeWork.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/creativeWork.js')))).CreativeWorkService;
|
|
@@ -457,12 +436,6 @@ class ChevreConsole {
|
|
|
457
436
|
}
|
|
458
437
|
return new service.Permission.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
459
438
|
}
|
|
460
|
-
async createPermitInstance(params) {
|
|
461
|
-
if (service.Permit.svc === undefined) {
|
|
462
|
-
service.Permit.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/permit.js')))).PermitService;
|
|
463
|
-
}
|
|
464
|
-
return new service.Permit.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
465
|
-
}
|
|
466
439
|
async createPersonInstance(params) {
|
|
467
440
|
if (service.Person.svc === undefined) {
|
|
468
441
|
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,
|
|
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
|
*/
|
|
@@ -16,7 +16,7 @@ export declare class OfferService extends Service {
|
|
|
16
16
|
audience: Pick<factory.action.authorize.offer.eventService.IPurpose, 'id'>;
|
|
17
17
|
eventId: string;
|
|
18
18
|
eventOfferId?: string;
|
|
19
|
-
ticketedOffer?: Pick<factory.authorization.IOfferAsObject, 'token'
|
|
19
|
+
ticketedOffer?: Pick<factory.authorization.IOfferAsObject, 'token'>;
|
|
20
20
|
}): Promise<IOfferTicket>;
|
|
21
21
|
/**
|
|
22
22
|
* 興行オファー承認
|
|
@@ -12,7 +12,6 @@ import type { OfferCatalogItemService } from './admin/offerCatalogItem';
|
|
|
12
12
|
import type { OrderService } from './admin/order';
|
|
13
13
|
import type { PaymentMethodService } from './admin/paymentMethod';
|
|
14
14
|
import type { ProductService } from './admin/product';
|
|
15
|
-
import type { ProductOfferService } from './admin/productOffer';
|
|
16
15
|
import type { ReservationService } from './admin/reservation';
|
|
17
16
|
import type { SellerService } from './admin/seller';
|
|
18
17
|
export declare namespace service {
|
|
@@ -108,13 +107,6 @@ export declare namespace service {
|
|
|
108
107
|
namespace Product {
|
|
109
108
|
let svc: typeof ProductService | undefined;
|
|
110
109
|
}
|
|
111
|
-
/**
|
|
112
|
-
* プロダクトオファーサービス
|
|
113
|
-
*/
|
|
114
|
-
type ProductOffer = ProductOfferService;
|
|
115
|
-
namespace ProductOffer {
|
|
116
|
-
let svc: typeof ProductOfferService | undefined;
|
|
117
|
-
}
|
|
118
110
|
/**
|
|
119
111
|
* 予約サービス
|
|
120
112
|
*/
|
|
@@ -149,7 +141,6 @@ export declare class CloudAdmin {
|
|
|
149
141
|
createOrderInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OrderService>;
|
|
150
142
|
createPaymentMethodInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentMethodService>;
|
|
151
143
|
createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
|
|
152
|
-
createProductOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductOfferService>;
|
|
153
144
|
createReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ReservationService>;
|
|
154
145
|
createSellerInstance(params: Pick<IOptions, 'project'>): Promise<SellerService>;
|
|
155
146
|
}
|
|
@@ -75,9 +75,6 @@ var service;
|
|
|
75
75
|
let Product;
|
|
76
76
|
(function (Product) {
|
|
77
77
|
})(Product = service.Product || (service.Product = {}));
|
|
78
|
-
let ProductOffer;
|
|
79
|
-
(function (ProductOffer) {
|
|
80
|
-
})(ProductOffer = service.ProductOffer || (service.ProductOffer = {}));
|
|
81
78
|
let Reservation;
|
|
82
79
|
(function (Reservation) {
|
|
83
80
|
})(Reservation = service.Reservation || (service.Reservation = {}));
|
|
@@ -178,12 +175,6 @@ class CloudAdmin {
|
|
|
178
175
|
}
|
|
179
176
|
return new service.Product.svc({ ...this.options, ...params, retryableStatusCodes: defaultRetryableStatusCodes });
|
|
180
177
|
}
|
|
181
|
-
async createProductOfferInstance(params) {
|
|
182
|
-
if (service.ProductOffer.svc === undefined) {
|
|
183
|
-
service.ProductOffer.svc = (await Promise.resolve().then(() => __importStar(require('./admin/productOffer.js')))).ProductOfferService;
|
|
184
|
-
}
|
|
185
|
-
return new service.ProductOffer.svc({ ...this.options, ...params, retryableStatusCodes: defaultRetryableStatusCodes });
|
|
186
|
-
}
|
|
187
178
|
async createReservationInstance(params) {
|
|
188
179
|
if (service.Reservation.svc === undefined) {
|
|
189
180
|
service.Reservation.svc = (await Promise.resolve().then(() => __importStar(require('./admin/reservation.js')))).ReservationService;
|
|
@@ -4,7 +4,6 @@ import type { EventOfferService } from './search/eventOffer';
|
|
|
4
4
|
import type { PaymentProductService } from './search/paymentService';
|
|
5
5
|
import type { PlaceService } from './search/place';
|
|
6
6
|
import type { ProductService } from './search/product';
|
|
7
|
-
import type { ProductOfferService } from './search/productOffer';
|
|
8
7
|
import type { SeatOfferService } from './search/seatOffer';
|
|
9
8
|
/**
|
|
10
9
|
* publicリソース検索サービス群
|
|
@@ -45,13 +44,6 @@ export declare namespace service {
|
|
|
45
44
|
namespace Product {
|
|
46
45
|
let svc: typeof ProductService | undefined;
|
|
47
46
|
}
|
|
48
|
-
/**
|
|
49
|
-
* プロダクトオファーサービス
|
|
50
|
-
*/
|
|
51
|
-
type ProductOffer = ProductOfferService;
|
|
52
|
-
namespace ProductOffer {
|
|
53
|
-
let svc: typeof ProductOfferService | undefined;
|
|
54
|
-
}
|
|
55
47
|
/**
|
|
56
48
|
* 座席オファーサービス
|
|
57
49
|
*/
|
|
@@ -78,10 +70,6 @@ export declare class CloudSearch {
|
|
|
78
70
|
* プロダクトサービスインスタンス生成
|
|
79
71
|
*/
|
|
80
72
|
createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
|
|
81
|
-
/**
|
|
82
|
-
* プロダクトオファーサービスインスタンス生成
|
|
83
|
-
*/
|
|
84
|
-
createProductOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductOfferService>;
|
|
85
73
|
/**
|
|
86
74
|
* イベントオファーサービスインスタンス生成
|
|
87
75
|
* 販売者指定必須
|
|
@@ -55,9 +55,6 @@ var service;
|
|
|
55
55
|
let Product;
|
|
56
56
|
(function (Product) {
|
|
57
57
|
})(Product = service.Product || (service.Product = {}));
|
|
58
|
-
let ProductOffer;
|
|
59
|
-
(function (ProductOffer) {
|
|
60
|
-
})(ProductOffer = service.ProductOffer || (service.ProductOffer = {}));
|
|
61
58
|
let SeatOffer;
|
|
62
59
|
(function (SeatOffer) {
|
|
63
60
|
})(SeatOffer = service.SeatOffer || (service.SeatOffer = {}));
|
|
@@ -107,18 +104,6 @@ class CloudSearch {
|
|
|
107
104
|
retryableStatusCodes: defaultRetryableStatusCodes
|
|
108
105
|
});
|
|
109
106
|
}
|
|
110
|
-
/**
|
|
111
|
-
* プロダクトオファーサービスインスタンス生成
|
|
112
|
-
*/
|
|
113
|
-
async createProductOfferInstance(params) {
|
|
114
|
-
if (service.ProductOffer.svc === undefined) {
|
|
115
|
-
service.ProductOffer.svc = (await Promise.resolve().then(() => __importStar(require('./search/productOffer.js')))).ProductOfferService;
|
|
116
|
-
}
|
|
117
|
-
return new service.ProductOffer.svc({
|
|
118
|
-
...this.options, ...params,
|
|
119
|
-
retryableStatusCodes: defaultRetryableStatusCodes
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
107
|
/**
|
|
123
108
|
* イベントオファーサービスインスタンス生成
|
|
124
109
|
* 販売者指定必須
|
|
@@ -12,7 +12,7 @@ export declare class OfferService extends Service {
|
|
|
12
12
|
audience: Pick<factory.action.authorize.offer.eventService.IPurpose, 'id'>;
|
|
13
13
|
eventId: string;
|
|
14
14
|
eventOfferId?: string;
|
|
15
|
-
ticketedOffer?: Pick<factory.authorization.IOfferAsObject, 'token'
|
|
15
|
+
ticketedOffer?: Pick<factory.authorization.IOfferAsObject, 'token'>;
|
|
16
16
|
}): Promise<IOfferTicket>;
|
|
17
17
|
/**
|
|
18
18
|
* 興行オファー承認
|
package/lib/abstract/index.d.ts
CHANGED
|
@@ -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,
|
|
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 };
|
package/lib/abstract/index.js
CHANGED
|
@@ -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() {
|