@cinerino/sdk 15.0.0-alpha.1 → 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/chevreConsole.d.ts +0 -18
- package/lib/abstract/chevreConsole.js +0 -18
- 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/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/chevreConsole/account.d.ts +0 -56
- package/lib/abstract/chevreConsole/account.js +0 -51
- package/lib/abstract/chevreConsole/permit.d.ts +0 -40
- package/lib/abstract/chevreConsole/permit.js +0 -52
- 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
|
@@ -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';
|
|
@@ -40,7 +39,6 @@ import type { PaymentProductService } from './chevreConsole/paymentService';
|
|
|
40
39
|
import type { PaymentServiceChannelService } from './chevreConsole/paymentServiceChannel';
|
|
41
40
|
import type { PendingReservationService } from './chevreConsole/pendingReservation';
|
|
42
41
|
import type { PermissionService } from './chevreConsole/permission';
|
|
43
|
-
import type { PermitService } from './chevreConsole/permit';
|
|
44
42
|
import type { PersonService } from './chevreConsole/person';
|
|
45
43
|
import type { PlaceService } from './chevreConsole/place';
|
|
46
44
|
import type { HasPOSService } from './chevreConsole/place/hasPOS';
|
|
@@ -63,13 +61,6 @@ import type { UserPoolService } from './chevreConsole/userPool';
|
|
|
63
61
|
import type { WebSiteService } from './chevreConsole/webSite';
|
|
64
62
|
export declare namespace service {
|
|
65
63
|
type IUnset = IUnsetOnService;
|
|
66
|
-
/**
|
|
67
|
-
* 口座サービス
|
|
68
|
-
*/
|
|
69
|
-
type Account = AccountService;
|
|
70
|
-
namespace Account {
|
|
71
|
-
let svc: typeof AccountService | undefined;
|
|
72
|
-
}
|
|
73
64
|
/**
|
|
74
65
|
* 経理レポートサービス
|
|
75
66
|
*/
|
|
@@ -301,13 +292,6 @@ export declare namespace service {
|
|
|
301
292
|
namespace Permission {
|
|
302
293
|
let svc: typeof PermissionService | undefined;
|
|
303
294
|
}
|
|
304
|
-
/**
|
|
305
|
-
* 許可証サービス
|
|
306
|
-
*/
|
|
307
|
-
type Permit = PermitService;
|
|
308
|
-
namespace Permit {
|
|
309
|
-
let svc: typeof PermitService | undefined;
|
|
310
|
-
}
|
|
311
295
|
/**
|
|
312
296
|
* 会員サービス
|
|
313
297
|
*/
|
|
@@ -513,7 +497,6 @@ export declare namespace service {
|
|
|
513
497
|
export declare class ChevreConsole {
|
|
514
498
|
options: Pick<IOptions, 'auth' | 'endpoint'>;
|
|
515
499
|
constructor(options: Pick<IOptions, 'auth' | 'endpoint'>);
|
|
516
|
-
createAccountInstance(params: Pick<IOptions, 'project'>): Promise<AccountService>;
|
|
517
500
|
createAccountingReportInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountingReportService>;
|
|
518
501
|
createAccountTitleInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<AccountTitleService>;
|
|
519
502
|
createActionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ActionService>;
|
|
@@ -547,7 +530,6 @@ export declare class ChevreConsole {
|
|
|
547
530
|
createPaymentServiceChannelInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentServiceChannelService>;
|
|
548
531
|
createPendingReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PendingReservationService>;
|
|
549
532
|
createPermissionInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PermissionService>;
|
|
550
|
-
createPermitInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PermitService>;
|
|
551
533
|
createPersonInstance(params: Pick<IOptions, 'project'>): Promise<PersonService>;
|
|
552
534
|
createPlaceInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PlaceService>;
|
|
553
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 = {}));
|
|
@@ -138,9 +135,6 @@ var service;
|
|
|
138
135
|
let Permission;
|
|
139
136
|
(function (Permission) {
|
|
140
137
|
})(Permission = service.Permission || (service.Permission = {}));
|
|
141
|
-
let Permit;
|
|
142
|
-
(function (Permit) {
|
|
143
|
-
})(Permit = service.Permit || (service.Permit = {}));
|
|
144
138
|
let Person;
|
|
145
139
|
(function (Person) {
|
|
146
140
|
})(Person = service.Person || (service.Person = {}));
|
|
@@ -243,12 +237,6 @@ class ChevreConsole {
|
|
|
243
237
|
constructor(options) {
|
|
244
238
|
this.options = options;
|
|
245
239
|
}
|
|
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
240
|
async createAccountingReportInstance(params) {
|
|
253
241
|
if (service.AccountingReport.svc === undefined) {
|
|
254
242
|
service.AccountingReport.svc = (await Promise.resolve().then(() => __importStar(require('./chevreConsole/accountingReport.js')))).AccountingReportService;
|
|
@@ -448,12 +436,6 @@ class ChevreConsole {
|
|
|
448
436
|
}
|
|
449
437
|
return new service.Permission.svc({ ...this.options, ...params, retryableStatusCodes: [] });
|
|
450
438
|
}
|
|
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
439
|
async createPersonInstance(params) {
|
|
458
440
|
if (service.Person.svc === undefined) {
|
|
459
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
|
*/
|
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() {
|