@cinerino/sdk 12.13.0-alpha.1 → 12.13.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.
- package/example/src/chevre/admin/adminAcceptedPaymentMethods.ts +3 -3
- package/example/src/chevre/admin/findPaymentServices.ts +3 -3
- package/lib/abstract/chevreAdmin/eventSeries.d.ts +18 -1
- package/lib/abstract/chevreAdmin/{paymentService.d.ts → paymentMethod.d.ts} +5 -7
- package/lib/abstract/chevreAdmin/{paymentService.js → paymentMethod.js} +12 -10
- package/lib/abstract/chevreAdmin/product.d.ts +4 -2
- package/lib/abstract/chevreAdmin.d.ts +6 -6
- package/lib/abstract/chevreAdmin.js +9 -9
- package/lib/abstract/chevreConsole/eventSeries.d.ts +10 -1
- package/lib/bundle.js +22 -20
- package/package.json +1 -1
|
@@ -33,10 +33,10 @@ async function main() {
|
|
|
33
33
|
project: { id: PROJECT_ID },
|
|
34
34
|
seller: { id: SELLER_ID }
|
|
35
35
|
});
|
|
36
|
-
const
|
|
36
|
+
const adminPaymentMethodService = await (await client.loadChevreAdmin({
|
|
37
37
|
endpoint: <string>process.env.CHEVRE_ENDPOINT,
|
|
38
38
|
auth: authClient
|
|
39
|
-
})).
|
|
39
|
+
})).createPaymentMethodInstance({
|
|
40
40
|
project: { id: PROJECT_ID },
|
|
41
41
|
seller: { id: SELLER_ID }
|
|
42
42
|
});
|
|
@@ -83,7 +83,7 @@ async function main() {
|
|
|
83
83
|
const itemOfferedId = eventSeries.id;
|
|
84
84
|
|
|
85
85
|
// 対応させたい決済サービス検索
|
|
86
|
-
const paymentServices = await
|
|
86
|
+
const paymentServices = await adminPaymentMethodService.findPaymentMethods({
|
|
87
87
|
limit: 20,
|
|
88
88
|
page: 1
|
|
89
89
|
});
|
|
@@ -11,15 +11,15 @@ async function main() {
|
|
|
11
11
|
const loginTicket = authClient.verifyIdToken({});
|
|
12
12
|
console.log('username is', loginTicket.getUsername());
|
|
13
13
|
|
|
14
|
-
const
|
|
14
|
+
const adminPaymentMethodService = await (await client.loadChevreAdmin({
|
|
15
15
|
endpoint: <string>process.env.CHEVRE_ENDPOINT,
|
|
16
16
|
auth: authClient
|
|
17
|
-
})).
|
|
17
|
+
})).createPaymentMethodInstance({
|
|
18
18
|
project: { id: PROJECT_ID },
|
|
19
19
|
seller: { id: SELLER_ID }
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
const data = await
|
|
22
|
+
const data = await adminPaymentMethodService.findPaymentMethods({
|
|
23
23
|
limit: 10,
|
|
24
24
|
page: 1
|
|
25
25
|
// typeOf: client.factory.service.paymentService.PaymentServiceType.MovieTicket
|
|
@@ -6,6 +6,7 @@ export interface IFindParams {
|
|
|
6
6
|
*/
|
|
7
7
|
limit: number;
|
|
8
8
|
page: number;
|
|
9
|
+
sortByStartDate?: factory.sortType;
|
|
9
10
|
id?: string;
|
|
10
11
|
/**
|
|
11
12
|
* 施設ID
|
|
@@ -19,8 +20,24 @@ export interface IFindParams {
|
|
|
19
20
|
* バージョン
|
|
20
21
|
*/
|
|
21
22
|
workPerformedVersion?: string;
|
|
23
|
+
/**
|
|
24
|
+
* 音響方式区分コード
|
|
25
|
+
*/
|
|
26
|
+
soundFormatType?: string;
|
|
27
|
+
/**
|
|
28
|
+
* 上映方式区分コード
|
|
29
|
+
*/
|
|
30
|
+
videoFormatType?: string;
|
|
31
|
+
/**
|
|
32
|
+
* 追加特性名称
|
|
33
|
+
*/
|
|
34
|
+
additionalPropertyName?: string;
|
|
35
|
+
/**
|
|
36
|
+
* 終了日時がいつ以降
|
|
37
|
+
*/
|
|
38
|
+
endDateGte?: Date;
|
|
22
39
|
}
|
|
23
|
-
export declare type IEventSeriesAsFindResult = Pick<factory.eventSeries.IEvent, 'additionalProperty' | 'alternativeHeadline' | 'description' | 'dubLanguage' | 'duration' | 'endDate' | 'headline' | 'kanaName' | 'location' | 'name' | 'offers' | 'organizer' | 'soundFormat' | 'startDate' | 'subtitleLanguage' | 'typeOf' | 'videoFormat' | 'workPerformed' | 'id'>;
|
|
40
|
+
export declare type IEventSeriesAsFindResult = Pick<factory.eventSeries.IEvent, 'additionalProperty' | 'alternativeHeadline' | 'description' | 'dubLanguage' | 'duration' | 'endDate' | 'headline' | 'kanaName' | 'location' | 'name' | 'offers' | 'organizer' | 'soundFormat' | 'startDate' | 'subtitleLanguage' | 'typeOf' | 'videoFormat' | 'workPerformed' | 'id' | 'coaInfo' | 'identifier'>;
|
|
24
41
|
/**
|
|
25
42
|
* 施設コンテンツサービス
|
|
26
43
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
2
|
import { Service } from '../service';
|
|
3
|
-
declare type
|
|
3
|
+
declare type IPaymentMethodAsFindResult = Pick<factory.service.paymentService.IService, 'additionalProperty' | 'description' | 'name' | 'productID' | 'serviceOutput' | 'serviceType' | 'typeOf'> & {
|
|
4
4
|
/**
|
|
5
5
|
* 決済サービスID
|
|
6
6
|
*/
|
|
@@ -20,10 +20,8 @@ export interface IFindParams {
|
|
|
20
20
|
availableChannelId?: string;
|
|
21
21
|
id?: string;
|
|
22
22
|
ids?: string[];
|
|
23
|
-
nameRegex?: string;
|
|
24
23
|
productID?: string;
|
|
25
24
|
productIDs?: string[];
|
|
26
|
-
productIDRegex?: string;
|
|
27
25
|
/**
|
|
28
26
|
* プロバイダーに指定IDの販売者が含まれる
|
|
29
27
|
*/
|
|
@@ -48,15 +46,15 @@ export interface IFindParams {
|
|
|
48
46
|
paymentMethodType?: string;
|
|
49
47
|
}
|
|
50
48
|
/**
|
|
51
|
-
*
|
|
49
|
+
* 決済方法サービス
|
|
52
50
|
*/
|
|
53
|
-
export declare class
|
|
51
|
+
export declare class PaymentMethodService extends Service {
|
|
54
52
|
/**
|
|
55
|
-
*
|
|
53
|
+
* 決済方法検索
|
|
56
54
|
* 公開属性のみ
|
|
57
55
|
* 管理者の決済サービス読取権限で使用可能
|
|
58
56
|
* 2025-10-18~
|
|
59
57
|
*/
|
|
60
|
-
|
|
58
|
+
findPaymentMethods(params: IFindParams): Promise<IPaymentMethodAsFindResult[]>;
|
|
61
59
|
}
|
|
62
60
|
export {};
|
|
@@ -51,25 +51,27 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
-
exports.
|
|
54
|
+
exports.PaymentMethodService = void 0;
|
|
55
55
|
var http_status_1 = require("http-status");
|
|
56
56
|
var service_1 = require("../service");
|
|
57
|
-
|
|
57
|
+
// rebase(2025-12-17~)
|
|
58
|
+
// const BASE_URI = '/paymentServices';
|
|
59
|
+
var BASE_URI = '/paymentMethods';
|
|
58
60
|
/**
|
|
59
|
-
*
|
|
61
|
+
* 決済方法サービス
|
|
60
62
|
*/
|
|
61
|
-
var
|
|
62
|
-
__extends(
|
|
63
|
-
function
|
|
63
|
+
var PaymentMethodService = /** @class */ (function (_super) {
|
|
64
|
+
__extends(PaymentMethodService, _super);
|
|
65
|
+
function PaymentMethodService() {
|
|
64
66
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
65
67
|
}
|
|
66
68
|
/**
|
|
67
|
-
*
|
|
69
|
+
* 決済方法検索
|
|
68
70
|
* 公開属性のみ
|
|
69
71
|
* 管理者の決済サービス読取権限で使用可能
|
|
70
72
|
* 2025-10-18~
|
|
71
73
|
*/
|
|
72
|
-
|
|
74
|
+
PaymentMethodService.prototype.findPaymentMethods = function (params) {
|
|
73
75
|
return __awaiter(this, void 0, void 0, function () {
|
|
74
76
|
var _this = this;
|
|
75
77
|
return __generator(this, function (_a) {
|
|
@@ -85,6 +87,6 @@ var PaymentProductService = /** @class */ (function (_super) {
|
|
|
85
87
|
});
|
|
86
88
|
});
|
|
87
89
|
};
|
|
88
|
-
return
|
|
90
|
+
return PaymentMethodService;
|
|
89
91
|
}(service_1.Service));
|
|
90
|
-
exports.
|
|
92
|
+
exports.PaymentMethodService = PaymentMethodService;
|
|
@@ -30,7 +30,8 @@ export interface IFindParams {
|
|
|
30
30
|
/**
|
|
31
31
|
* 名称部分一致
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
nameContains?: string;
|
|
34
|
+
nameRegex?: never;
|
|
34
35
|
/**
|
|
35
36
|
* プロダクトコード完全一致
|
|
36
37
|
*/
|
|
@@ -38,7 +39,8 @@ export interface IFindParams {
|
|
|
38
39
|
/**
|
|
39
40
|
* プロダクトコード部分一致
|
|
40
41
|
*/
|
|
41
|
-
|
|
42
|
+
productIDContains?: string;
|
|
43
|
+
productIDRegex?: never;
|
|
42
44
|
/**
|
|
43
45
|
* 興行区分コード
|
|
44
46
|
*/
|
|
@@ -15,7 +15,7 @@ import type { OfferService } from './chevreAdmin/offer';
|
|
|
15
15
|
import type { OfferCatalogService } from './chevreAdmin/offerCatalog';
|
|
16
16
|
import type { OfferCatalogItemService } from './chevreAdmin/offerCatalogItem';
|
|
17
17
|
import type { OrderService } from './chevreAdmin/order';
|
|
18
|
-
import type {
|
|
18
|
+
import type { PaymentMethodService } from './chevreAdmin/paymentMethod';
|
|
19
19
|
import type { ProductService } from './chevreAdmin/product';
|
|
20
20
|
import type { ProductOfferService } from './chevreAdmin/productOffer';
|
|
21
21
|
import type { ReservationService } from './chevreAdmin/reservation';
|
|
@@ -107,11 +107,11 @@ export declare namespace service {
|
|
|
107
107
|
let svc: typeof OrderService | undefined;
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
110
|
+
* 決済方法サービス
|
|
111
111
|
*/
|
|
112
|
-
type
|
|
113
|
-
namespace
|
|
114
|
-
let svc: typeof
|
|
112
|
+
type PaymentMethod = PaymentMethodService;
|
|
113
|
+
namespace PaymentMethod {
|
|
114
|
+
let svc: typeof PaymentMethodService | undefined;
|
|
115
115
|
}
|
|
116
116
|
/**
|
|
117
117
|
* プロダクトサービス
|
|
@@ -190,7 +190,7 @@ export declare class ChevreAdmin {
|
|
|
190
190
|
createNoteInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<NoteService>;
|
|
191
191
|
createNoteAboutOrderInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<NoteAboutOrderService>;
|
|
192
192
|
createOrderInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<OrderService>;
|
|
193
|
-
|
|
193
|
+
createPaymentMethodInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<PaymentMethodService>;
|
|
194
194
|
createProductInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductService>;
|
|
195
195
|
createProductOfferInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ProductOfferService>;
|
|
196
196
|
createReservationInstance(params: Pick<IOptions, 'project'> & Pick<IAdditionalOptions, 'seller'>): Promise<ReservationService>;
|
|
@@ -86,9 +86,9 @@ var service;
|
|
|
86
86
|
var Order;
|
|
87
87
|
(function (Order) {
|
|
88
88
|
})(Order = service.Order || (service.Order = {}));
|
|
89
|
-
var
|
|
90
|
-
(function (
|
|
91
|
-
})(
|
|
89
|
+
var PaymentMethod;
|
|
90
|
+
(function (PaymentMethod) {
|
|
91
|
+
})(PaymentMethod = service.PaymentMethod || (service.PaymentMethod = {}));
|
|
92
92
|
var Product;
|
|
93
93
|
(function (Product) {
|
|
94
94
|
})(Product = service.Product || (service.Product = {}));
|
|
@@ -328,19 +328,19 @@ var ChevreAdmin = /** @class */ (function () {
|
|
|
328
328
|
});
|
|
329
329
|
});
|
|
330
330
|
};
|
|
331
|
-
ChevreAdmin.prototype.
|
|
331
|
+
ChevreAdmin.prototype.createPaymentMethodInstance = function (params) {
|
|
332
332
|
return __awaiter(this, void 0, void 0, function () {
|
|
333
333
|
var _a;
|
|
334
334
|
return __generator(this, function (_b) {
|
|
335
335
|
switch (_b.label) {
|
|
336
336
|
case 0:
|
|
337
|
-
if (!(service.
|
|
338
|
-
_a = service.
|
|
339
|
-
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/
|
|
337
|
+
if (!(service.PaymentMethod.svc === undefined)) return [3 /*break*/, 2];
|
|
338
|
+
_a = service.PaymentMethod;
|
|
339
|
+
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/paymentMethod'); })];
|
|
340
340
|
case 1:
|
|
341
|
-
_a.svc = (_b.sent()).
|
|
341
|
+
_a.svc = (_b.sent()).PaymentMethodService;
|
|
342
342
|
_b.label = 2;
|
|
343
|
-
case 2: return [2 /*return*/, new service.
|
|
343
|
+
case 2: return [2 /*return*/, new service.PaymentMethod.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
|
|
344
344
|
}
|
|
345
345
|
});
|
|
346
346
|
});
|
|
@@ -12,7 +12,16 @@ export declare class EventSeriesService extends Service {
|
|
|
12
12
|
* 施設コンテンツ検索
|
|
13
13
|
* @deprecated use chevreAdmin
|
|
14
14
|
*/
|
|
15
|
-
findEventSeriesDeprecated(params:
|
|
15
|
+
findEventSeriesDeprecated(params: Pick<factory.eventSeries.ISearchConditions, 'additionalProperty' | 'endFrom' | 'id' | 'inSessionFrom' | 'limit' | 'name' | 'page' | 'sort' | 'soundFormat' | 'videoFormat' | 'workPerformed'> & {
|
|
16
|
+
location?: {
|
|
17
|
+
branchCode?: never;
|
|
18
|
+
/**
|
|
19
|
+
* 施設ID
|
|
20
|
+
*/
|
|
21
|
+
id?: {
|
|
22
|
+
$eq?: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
16
25
|
typeOf: factory.eventType.ScreeningEventSeries;
|
|
17
26
|
$projection?: IProjection;
|
|
18
27
|
}): Promise<factory.eventSeries.IEvent[]>;
|
package/lib/bundle.js
CHANGED
|
@@ -2479,9 +2479,9 @@ var service;
|
|
|
2479
2479
|
var Order;
|
|
2480
2480
|
(function (Order) {
|
|
2481
2481
|
})(Order = service.Order || (service.Order = {}));
|
|
2482
|
-
var
|
|
2483
|
-
(function (
|
|
2484
|
-
})(
|
|
2482
|
+
var PaymentMethod;
|
|
2483
|
+
(function (PaymentMethod) {
|
|
2484
|
+
})(PaymentMethod = service.PaymentMethod || (service.PaymentMethod = {}));
|
|
2485
2485
|
var Product;
|
|
2486
2486
|
(function (Product) {
|
|
2487
2487
|
})(Product = service.Product || (service.Product = {}));
|
|
@@ -2721,19 +2721,19 @@ var ChevreAdmin = /** @class */ (function () {
|
|
|
2721
2721
|
});
|
|
2722
2722
|
});
|
|
2723
2723
|
};
|
|
2724
|
-
ChevreAdmin.prototype.
|
|
2724
|
+
ChevreAdmin.prototype.createPaymentMethodInstance = function (params) {
|
|
2725
2725
|
return __awaiter(this, void 0, void 0, function () {
|
|
2726
2726
|
var _a;
|
|
2727
2727
|
return __generator(this, function (_b) {
|
|
2728
2728
|
switch (_b.label) {
|
|
2729
2729
|
case 0:
|
|
2730
|
-
if (!(service.
|
|
2731
|
-
_a = service.
|
|
2732
|
-
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/
|
|
2730
|
+
if (!(service.PaymentMethod.svc === undefined)) return [3 /*break*/, 2];
|
|
2731
|
+
_a = service.PaymentMethod;
|
|
2732
|
+
return [4 /*yield*/, Promise.resolve().then(function () { return require('./chevreAdmin/paymentMethod'); })];
|
|
2733
2733
|
case 1:
|
|
2734
|
-
_a.svc = (_b.sent()).
|
|
2734
|
+
_a.svc = (_b.sent()).PaymentMethodService;
|
|
2735
2735
|
_b.label = 2;
|
|
2736
|
-
case 2: return [2 /*return*/, new service.
|
|
2736
|
+
case 2: return [2 /*return*/, new service.PaymentMethod.svc(__assign(__assign(__assign({}, this.options), params), { retryableStatusCodes: [] }))];
|
|
2737
2737
|
}
|
|
2738
2738
|
});
|
|
2739
2739
|
});
|
|
@@ -2879,7 +2879,7 @@ var ChevreAdmin = /** @class */ (function () {
|
|
|
2879
2879
|
}());
|
|
2880
2880
|
exports.ChevreAdmin = ChevreAdmin;
|
|
2881
2881
|
|
|
2882
|
-
},{"./chevreAdmin/acceptedPaymentMethod":22,"./chevreAdmin/assetTransaction/cancelReservation":23,"./chevreAdmin/authorization":24,"./chevreAdmin/creativeWork":25,"./chevreAdmin/customer":26,"./chevreAdmin/event":27,"./chevreAdmin/eventOffer":28,"./chevreAdmin/eventSeries":29,"./chevreAdmin/me":30,"./chevreAdmin/member":31,"./chevreAdmin/note":32,"./chevreAdmin/noteAboutOrder":33,"./chevreAdmin/offer":34,"./chevreAdmin/offerCatalog":35,"./chevreAdmin/offerCatalogItem":36,"./chevreAdmin/order":37,"./chevreAdmin/
|
|
2882
|
+
},{"./chevreAdmin/acceptedPaymentMethod":22,"./chevreAdmin/assetTransaction/cancelReservation":23,"./chevreAdmin/authorization":24,"./chevreAdmin/creativeWork":25,"./chevreAdmin/customer":26,"./chevreAdmin/event":27,"./chevreAdmin/eventOffer":28,"./chevreAdmin/eventSeries":29,"./chevreAdmin/me":30,"./chevreAdmin/member":31,"./chevreAdmin/note":32,"./chevreAdmin/noteAboutOrder":33,"./chevreAdmin/offer":34,"./chevreAdmin/offerCatalog":35,"./chevreAdmin/offerCatalogItem":36,"./chevreAdmin/order":37,"./chevreAdmin/paymentMethod":38,"./chevreAdmin/product":39,"./chevreAdmin/productOffer":40,"./chevreAdmin/reservation":41,"./chevreAdmin/seller":42}],22:[function(require,module,exports){
|
|
2883
2883
|
"use strict";
|
|
2884
2884
|
var __extends = (this && this.__extends) || (function () {
|
|
2885
2885
|
var extendStatics = function (d, b) {
|
|
@@ -4834,25 +4834,27 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
4834
4834
|
}
|
|
4835
4835
|
};
|
|
4836
4836
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4837
|
-
exports.
|
|
4837
|
+
exports.PaymentMethodService = void 0;
|
|
4838
4838
|
var http_status_1 = require("http-status");
|
|
4839
4839
|
var service_1 = require("../service");
|
|
4840
|
-
|
|
4840
|
+
// rebase(2025-12-17~)
|
|
4841
|
+
// const BASE_URI = '/paymentServices';
|
|
4842
|
+
var BASE_URI = '/paymentMethods';
|
|
4841
4843
|
/**
|
|
4842
|
-
*
|
|
4844
|
+
* 決済方法サービス
|
|
4843
4845
|
*/
|
|
4844
|
-
var
|
|
4845
|
-
__extends(
|
|
4846
|
-
function
|
|
4846
|
+
var PaymentMethodService = /** @class */ (function (_super) {
|
|
4847
|
+
__extends(PaymentMethodService, _super);
|
|
4848
|
+
function PaymentMethodService() {
|
|
4847
4849
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
4848
4850
|
}
|
|
4849
4851
|
/**
|
|
4850
|
-
*
|
|
4852
|
+
* 決済方法検索
|
|
4851
4853
|
* 公開属性のみ
|
|
4852
4854
|
* 管理者の決済サービス読取権限で使用可能
|
|
4853
4855
|
* 2025-10-18~
|
|
4854
4856
|
*/
|
|
4855
|
-
|
|
4857
|
+
PaymentMethodService.prototype.findPaymentMethods = function (params) {
|
|
4856
4858
|
return __awaiter(this, void 0, void 0, function () {
|
|
4857
4859
|
var _this = this;
|
|
4858
4860
|
return __generator(this, function (_a) {
|
|
@@ -4868,9 +4870,9 @@ var PaymentProductService = /** @class */ (function (_super) {
|
|
|
4868
4870
|
});
|
|
4869
4871
|
});
|
|
4870
4872
|
};
|
|
4871
|
-
return
|
|
4873
|
+
return PaymentMethodService;
|
|
4872
4874
|
}(service_1.Service));
|
|
4873
|
-
exports.
|
|
4875
|
+
exports.PaymentMethodService = PaymentMethodService;
|
|
4874
4876
|
|
|
4875
4877
|
},{"../service":181,"http-status":471}],39:[function(require,module,exports){
|
|
4876
4878
|
"use strict";
|