@cinerino/sdk 12.13.0-alpha.0 → 12.13.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/example/src/chevre/admin/adminAcceptedPaymentMethods.ts +85 -21
- package/example/src/chevre/{adminScreeningEventSeries.ts → admin/adminEventSeries.ts} +4 -4
- package/example/src/chevre/admin/findPaymentServices.ts +3 -3
- package/example/src/cloud/transaction/authorizeCreditCardAsyncForcibly.ts +6 -0
- package/example/src/cloud/transaction/processPlaceOrderByCreditCard3DS.ts +23 -3
- package/example/src/cloud/transaction/processPlaceOrderCOAEventByCreditCard.ts +4 -2
- package/example/src/cloud/transaction/processPlaceOrderUsingMemberProgramTier.ts +2 -1
- package/example/src/cloud/transaction/processPlaceOrderUsingTicketIssuedThroughCreditCard.ts +2 -1
- package/lib/abstract/chevreAdmin/eventSeries.d.ts +46 -0
- package/lib/abstract/chevreAdmin/eventSeries.js +22 -2
- package/lib/abstract/chevreAdmin/{paymentService.d.ts → paymentMethod.d.ts} +5 -5
- package/lib/abstract/chevreAdmin/{paymentService.js → paymentMethod.js} +12 -10
- package/lib/abstract/chevreAdmin.d.ts +6 -6
- package/lib/abstract/chevreAdmin.js +9 -9
- package/lib/abstract/chevreConsole/eventSeries.d.ts +11 -1
- package/lib/abstract/chevreConsole/eventSeries.js +2 -1
- package/lib/abstract/chevrePay/payment.d.ts +12 -0
- package/lib/abstract/chevrePay/payment.js +10 -6
- package/lib/abstract/cloud/pay/payment.d.ts +12 -0
- package/lib/abstract/cloud/pay/payment.js +26 -16
- package/lib/bundle.js +83 -46
- package/package.json +1 -1
- package/example/src/chevre/transaction/processPlaceOrderCOA.ts +0 -403
|
@@ -5,10 +5,12 @@ import * as client from '../../../../lib/index';
|
|
|
5
5
|
import * as auth from '../../auth/authAsAdmin';
|
|
6
6
|
|
|
7
7
|
const PROJECT_ID = String(process.env.PROJECT_ID);
|
|
8
|
-
const SELLER_ID = '
|
|
9
|
-
const OFFER_IDENTIFIER = '20251204eventOffer01';
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
const SELLER_ID = '59d20831e53ebc2b4e774466';
|
|
9
|
+
// const OFFER_IDENTIFIER = '20251204eventOffer01';
|
|
10
|
+
// /**
|
|
11
|
+
// * 決済サービスID
|
|
12
|
+
// */
|
|
13
|
+
// const PAYMENT_METHOD_ID = '5f9a52994f3709000abe6417';
|
|
12
14
|
|
|
13
15
|
// tslint:disable-next-line:max-func-body-length
|
|
14
16
|
async function main() {
|
|
@@ -17,6 +19,13 @@ async function main() {
|
|
|
17
19
|
const loginTicket = authClient.verifyIdToken({});
|
|
18
20
|
console.log('username is', loginTicket.getUsername());
|
|
19
21
|
|
|
22
|
+
const adminEventSeriesService = await (await client.loadChevreAdmin({
|
|
23
|
+
endpoint: <string>process.env.CHEVRE_ENDPOINT,
|
|
24
|
+
auth: authClient
|
|
25
|
+
})).createEventSeriesInstance({
|
|
26
|
+
project: { id: PROJECT_ID },
|
|
27
|
+
seller: { id: SELLER_ID }
|
|
28
|
+
});
|
|
20
29
|
const acceptedPaymentMethodService = await (await client.loadChevreAdmin({
|
|
21
30
|
endpoint: <string>process.env.CHEVRE_ENDPOINT,
|
|
22
31
|
auth: authClient
|
|
@@ -24,7 +33,64 @@ async function main() {
|
|
|
24
33
|
project: { id: PROJECT_ID },
|
|
25
34
|
seller: { id: SELLER_ID }
|
|
26
35
|
});
|
|
36
|
+
const adminPaymentMethodService = await (await client.loadChevreAdmin({
|
|
37
|
+
endpoint: <string>process.env.CHEVRE_ENDPOINT,
|
|
38
|
+
auth: authClient
|
|
39
|
+
})).createPaymentMethodInstance({
|
|
40
|
+
project: { id: PROJECT_ID },
|
|
41
|
+
seller: { id: SELLER_ID }
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
// 施設コンテンツの対応決済方法管理を有効にする
|
|
45
|
+
await adminEventSeriesService.upsertByVersion([
|
|
46
|
+
{
|
|
47
|
+
eventStatus: client.factory.eventStatusType.EventScheduled,
|
|
48
|
+
videoFormat: [],
|
|
49
|
+
kanaName: '',
|
|
50
|
+
startDate: moment('2023-12-09T12:00:00Z')
|
|
51
|
+
.toDate(),
|
|
52
|
+
endDate: moment('2034-12-09T15:00:00Z')
|
|
53
|
+
.toDate(),
|
|
54
|
+
typeOf: client.factory.eventType.ScreeningEventSeries,
|
|
55
|
+
duration: 'PT2H',
|
|
56
|
+
name: { ja: '対応決済方法管理のペット', en: 'Pet(adminAcceptedPaymentMethod)' },
|
|
57
|
+
location: {
|
|
58
|
+
id: '5bfb841d5a78d7948369979a'
|
|
59
|
+
},
|
|
60
|
+
workPerformed: {
|
|
61
|
+
identifier: '1622100',
|
|
62
|
+
version: '99'
|
|
63
|
+
},
|
|
64
|
+
offers: {
|
|
65
|
+
typeOf: client.factory.offerType.AggregateOffer // 対応決済方法管理を有効にする
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
]);
|
|
69
|
+
|
|
70
|
+
const eventSeries = (await adminEventSeriesService.findEventSeries({
|
|
71
|
+
limit: 1,
|
|
72
|
+
page: 1,
|
|
73
|
+
locationId: '5bfb841d5a78d7948369979a',
|
|
74
|
+
workPerformedIdentifier: '1622100',
|
|
75
|
+
workPerformedVersion: '99'
|
|
76
|
+
}))
|
|
77
|
+
.shift();
|
|
78
|
+
console.log(eventSeries);
|
|
79
|
+
if (eventSeries === undefined) {
|
|
80
|
+
throw new Error('eventSeries not found');
|
|
81
|
+
}
|
|
82
|
+
// return;
|
|
83
|
+
const itemOfferedId = eventSeries.id;
|
|
84
|
+
|
|
85
|
+
// 対応させたい決済サービス検索
|
|
86
|
+
const paymentServices = await adminPaymentMethodService.findPaymentMethods({
|
|
87
|
+
limit: 20,
|
|
88
|
+
page: 1
|
|
89
|
+
});
|
|
90
|
+
console.log(paymentServices);
|
|
91
|
+
console.log(paymentServices.length, 'paymentServices found');
|
|
27
92
|
|
|
93
|
+
// 対応させたい決済サービス全てについて対応決済方法を作成
|
|
28
94
|
const now = new Date();
|
|
29
95
|
const validFrom = moment(now)
|
|
30
96
|
.toDate();
|
|
@@ -32,14 +98,13 @@ async function main() {
|
|
|
32
98
|
.add(1, 'minutes')
|
|
33
99
|
.toDate();
|
|
34
100
|
await acceptedPaymentMethodService.createAcceptedPaymentMethodsByIdentifier(
|
|
35
|
-
|
|
36
|
-
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
],
|
|
101
|
+
paymentServices.map((paymentService) => ({
|
|
102
|
+
identifier: `Accept${paymentService.serviceType.codeValue}`,
|
|
103
|
+
validFrom,
|
|
104
|
+
validThrough,
|
|
105
|
+
acceptedPaymentMethod: { id: paymentService.id }
|
|
106
|
+
|
|
107
|
+
})),
|
|
43
108
|
{
|
|
44
109
|
itemOfferedId,
|
|
45
110
|
itemOfferedTypeOf: client.factory.eventType.ScreeningEventSeries
|
|
@@ -48,14 +113,13 @@ async function main() {
|
|
|
48
113
|
console.log('created.');
|
|
49
114
|
|
|
50
115
|
await acceptedPaymentMethodService.updateAcceptedPaymentMethodsByIdentifier(
|
|
51
|
-
|
|
52
|
-
{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
],
|
|
116
|
+
paymentServices.map((paymentService) => ({
|
|
117
|
+
identifier: `Accept${paymentService.serviceType.codeValue}`,
|
|
118
|
+
validFrom,
|
|
119
|
+
validThrough,
|
|
120
|
+
acceptedPaymentMethod: { id: paymentService.id }
|
|
121
|
+
|
|
122
|
+
})),
|
|
59
123
|
{
|
|
60
124
|
itemOfferedId,
|
|
61
125
|
itemOfferedTypeOf: client.factory.eventType.ScreeningEventSeries
|
|
@@ -64,7 +128,7 @@ async function main() {
|
|
|
64
128
|
console.log('updated.');
|
|
65
129
|
|
|
66
130
|
const offers = await acceptedPaymentMethodService.findAcceptedPaymentMethods({
|
|
67
|
-
limit:
|
|
131
|
+
limit: 20,
|
|
68
132
|
page: 1,
|
|
69
133
|
// itemOfferedId: '691511df7d9f0e2df3d6dcf7'
|
|
70
134
|
itemOfferedId: itemOfferedId
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// tslint:disable:no-console
|
|
2
2
|
// tslint:disable-next-line:no-implicit-dependencies
|
|
3
3
|
import * as moment from 'moment';
|
|
4
|
-
import { factory, loadChevreAdmin } from '
|
|
5
|
-
import * as auth from '
|
|
4
|
+
import { factory, loadChevreAdmin } from '../../../../lib/index';
|
|
5
|
+
import * as auth from '../../auth/authAsAdmin';
|
|
6
6
|
|
|
7
7
|
const project = { id: String(process.env.PROJECT_ID) };
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ async function main() {
|
|
|
12
12
|
const loginTicket = authClient.verifyIdToken({});
|
|
13
13
|
console.log('username is', loginTicket.getUsername());
|
|
14
14
|
|
|
15
|
-
const
|
|
15
|
+
const adminEventSeriesService = await (await loadChevreAdmin({
|
|
16
16
|
endpoint: <string>process.env.CHEVRE_ENDPOINT,
|
|
17
17
|
auth: authClient
|
|
18
18
|
})).createEventSeriesInstance({
|
|
@@ -20,7 +20,7 @@ async function main() {
|
|
|
20
20
|
seller: { id: '' }
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
await
|
|
23
|
+
await adminEventSeriesService.upsertByVersion([
|
|
24
24
|
{
|
|
25
25
|
eventStatus: factory.eventStatusType.EventScheduled,
|
|
26
26
|
videoFormat: [
|
|
@@ -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
|
|
@@ -19,6 +19,12 @@ export function authorizeCreditCardAsyncForcibly(params: {
|
|
|
19
19
|
typeOf: client.factory.transactionType.PlaceOrder;
|
|
20
20
|
id: string;
|
|
21
21
|
};
|
|
22
|
+
instrumentOptions: {
|
|
23
|
+
/**
|
|
24
|
+
* 対応決済方法オファーIDリスト
|
|
25
|
+
*/
|
|
26
|
+
acceptedPaymentMethodOfferIds: string[];
|
|
27
|
+
};
|
|
22
28
|
}) {
|
|
23
29
|
return async (repos: {
|
|
24
30
|
paymentService: client.cloudPay.service.Payment;
|
|
@@ -173,9 +173,17 @@ async function main() {
|
|
|
173
173
|
issuedThrough: { id: paymentServiceId },
|
|
174
174
|
ticketToken,
|
|
175
175
|
eventIdsAsOrderedItem: eventIds
|
|
176
|
+
// eventIdsAsOrderedItem: []
|
|
177
|
+
// eventIdsAsOrderedItem: ['xx', 'xx']
|
|
178
|
+
// eventIdsAsOrderedItem: ['xx', 'xxx']
|
|
176
179
|
// eventIdsAsOrderedItem: ['xxx', ...eventIds] // 存在しないイベントを指定すれば決済採用失敗
|
|
177
180
|
},
|
|
178
|
-
purpose: { id: transaction.id, typeOf: client.factory.transactionType.PlaceOrder }
|
|
181
|
+
purpose: { id: transaction.id, typeOf: client.factory.transactionType.PlaceOrder },
|
|
182
|
+
instrumentOptions: {
|
|
183
|
+
acceptedPaymentMethodOfferIds: [
|
|
184
|
+
'693e43e6929e69df1e88b189'
|
|
185
|
+
] // TODO
|
|
186
|
+
}
|
|
179
187
|
})({ paymentService });
|
|
180
188
|
console.log('paymentUrl published.', paymentMethodId, paymentUrl);
|
|
181
189
|
|
|
@@ -192,7 +200,8 @@ async function main() {
|
|
|
192
200
|
issuedThrough: { id: paymentServiceId },
|
|
193
201
|
eventIdsAsOrderedItem: eventIds
|
|
194
202
|
},
|
|
195
|
-
purpose: { id: transaction.id, typeOf: client.factory.transactionType.PlaceOrder }
|
|
203
|
+
purpose: { id: transaction.id, typeOf: client.factory.transactionType.PlaceOrder },
|
|
204
|
+
instrumentOptions: { acceptedPaymentMethodOfferIds: [] }
|
|
196
205
|
})({ paymentService });
|
|
197
206
|
console.log('paymentUrl published.', publishPaymentUrlAsyncForciblySecondResult);
|
|
198
207
|
} catch (error) {
|
|
@@ -233,7 +242,12 @@ async function main() {
|
|
|
233
242
|
// eventIdsAsOrderedItem: ['xx', 'xx']
|
|
234
243
|
// eventIdsAsOrderedItem: ['xx', 'xxx']
|
|
235
244
|
},
|
|
236
|
-
purpose: { id: transaction.id, typeOf: client.factory.transactionType.PlaceOrder }
|
|
245
|
+
purpose: { id: transaction.id, typeOf: client.factory.transactionType.PlaceOrder },
|
|
246
|
+
instrumentOptions: {
|
|
247
|
+
acceptedPaymentMethodOfferIds: [
|
|
248
|
+
'693e43e6929e69df1e88b189'
|
|
249
|
+
] // TODO
|
|
250
|
+
}
|
|
237
251
|
})({ paymentService });
|
|
238
252
|
console.log('credit card payment authorized', creditCardPaymentAuth.id);
|
|
239
253
|
|
|
@@ -508,6 +522,12 @@ function publishPaymentUrlAsyncForcibly(params: {
|
|
|
508
522
|
typeOf: client.factory.transactionType.PlaceOrder;
|
|
509
523
|
id: string;
|
|
510
524
|
};
|
|
525
|
+
instrumentOptions: {
|
|
526
|
+
/**
|
|
527
|
+
* 対応決済方法オファーIDリスト
|
|
528
|
+
*/
|
|
529
|
+
acceptedPaymentMethodOfferIds: string[];
|
|
530
|
+
};
|
|
511
531
|
}) {
|
|
512
532
|
return async (repos: {
|
|
513
533
|
paymentService: client.cloudPay.service.Payment;
|
|
@@ -127,7 +127,8 @@ async function main() {
|
|
|
127
127
|
issuedThrough: { id: PAYMENT_SERVICE_ID },
|
|
128
128
|
eventIdsAsOrderedItem: [screeningEvent.id]
|
|
129
129
|
},
|
|
130
|
-
purpose: { id: transaction.id, typeOf: client.factory.transactionType.PlaceOrder }
|
|
130
|
+
purpose: { id: transaction.id, typeOf: client.factory.transactionType.PlaceOrder },
|
|
131
|
+
instrumentOptions: { acceptedPaymentMethodOfferIds: [] }
|
|
131
132
|
})({ paymentService });
|
|
132
133
|
console.log('credit card payment authorized', creditCardPaymentAuth.id);
|
|
133
134
|
// throw new Error('force error');
|
|
@@ -153,7 +154,8 @@ async function main() {
|
|
|
153
154
|
issuedThrough: { id: PAYMENT_SERVICE_ID },
|
|
154
155
|
eventIdsAsOrderedItem: [screeningEvent.id]
|
|
155
156
|
},
|
|
156
|
-
purpose: { id: transaction.id, typeOf: client.factory.transactionType.PlaceOrder }
|
|
157
|
+
purpose: { id: transaction.id, typeOf: client.factory.transactionType.PlaceOrder },
|
|
158
|
+
instrumentOptions: { acceptedPaymentMethodOfferIds: [] }
|
|
157
159
|
})({ paymentService });
|
|
158
160
|
console.log('credit card payment authorized', creditCardPaymentAuth.id);
|
|
159
161
|
|
|
@@ -187,7 +187,8 @@ async function main() {
|
|
|
187
187
|
issuedThrough: { id: paymentServiceId },
|
|
188
188
|
eventIdsAsOrderedItem: authorizeSeatReservationResults.map(({ eventId }) => eventId)
|
|
189
189
|
},
|
|
190
|
-
purpose: { id: transaction.id, typeOf: client.factory.transactionType.PlaceOrder }
|
|
190
|
+
purpose: { id: transaction.id, typeOf: client.factory.transactionType.PlaceOrder },
|
|
191
|
+
instrumentOptions: { acceptedPaymentMethodOfferIds: [] }
|
|
191
192
|
})({ paymentService });
|
|
192
193
|
console.log('credit card payment authorized', creditCardPaymentAuth.id);
|
|
193
194
|
|
package/example/src/cloud/transaction/processPlaceOrderUsingTicketIssuedThroughCreditCard.ts
CHANGED
|
@@ -209,7 +209,8 @@ async function main() {
|
|
|
209
209
|
ticketToken, // メンバーシップチケットを指定
|
|
210
210
|
eventIdsAsOrderedItem: [EVENT_ID]
|
|
211
211
|
},
|
|
212
|
-
purpose: { id: transaction.id, typeOf: client.factory.transactionType.PlaceOrder }
|
|
212
|
+
purpose: { id: transaction.id, typeOf: client.factory.transactionType.PlaceOrder },
|
|
213
|
+
instrumentOptions: { acceptedPaymentMethodOfferIds: [] }
|
|
213
214
|
})({ paymentService });
|
|
214
215
|
console.log('credit card payment authorized', creditCardPaymentAuth.id);
|
|
215
216
|
|
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
2
|
import { Service } from '../service';
|
|
3
|
+
export interface IFindParams {
|
|
4
|
+
/**
|
|
5
|
+
* max: 20
|
|
6
|
+
*/
|
|
7
|
+
limit: number;
|
|
8
|
+
page: number;
|
|
9
|
+
sortByStartDate?: factory.sortType;
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* 施設ID
|
|
13
|
+
*/
|
|
14
|
+
locationId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* コンテンツコード
|
|
17
|
+
*/
|
|
18
|
+
workPerformedIdentifier?: string;
|
|
19
|
+
/**
|
|
20
|
+
* バージョン
|
|
21
|
+
*/
|
|
22
|
+
workPerformedVersion?: string;
|
|
23
|
+
/**
|
|
24
|
+
* 音響方式区分コード
|
|
25
|
+
*/
|
|
26
|
+
soundFormatType?: string;
|
|
27
|
+
/**
|
|
28
|
+
* 上映方式区分コード
|
|
29
|
+
*/
|
|
30
|
+
videoFormatType?: string;
|
|
31
|
+
/**
|
|
32
|
+
* 名称部分一致
|
|
33
|
+
*/
|
|
34
|
+
nameRegex?: string;
|
|
35
|
+
/**
|
|
36
|
+
* 追加特性名称
|
|
37
|
+
*/
|
|
38
|
+
additionalPropertyName?: string;
|
|
39
|
+
/**
|
|
40
|
+
* 終了日時がいつ以降
|
|
41
|
+
*/
|
|
42
|
+
endDateGte?: Date;
|
|
43
|
+
}
|
|
44
|
+
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'>;
|
|
3
45
|
/**
|
|
4
46
|
* 施設コンテンツサービス
|
|
5
47
|
*/
|
|
@@ -9,4 +51,8 @@ export declare class EventSeriesService extends Service {
|
|
|
9
51
|
* 存在しなければ作成し、存在すれば置換
|
|
10
52
|
*/
|
|
11
53
|
upsertByVersion(params: factory.eventSeries.ICreateParams[]): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* 施設コンテンツ検索
|
|
56
|
+
*/
|
|
57
|
+
findEventSeries(params: IFindParams): Promise<IEventSeriesAsFindResult[]>;
|
|
12
58
|
}
|
|
@@ -53,8 +53,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
54
|
exports.EventSeriesService = void 0;
|
|
55
55
|
var http_status_1 = require("http-status");
|
|
56
|
-
var factory = require("../factory");
|
|
57
56
|
var service_1 = require("../service");
|
|
57
|
+
var BASE_URI = '/eventSeries';
|
|
58
58
|
/**
|
|
59
59
|
* 施設コンテンツサービス
|
|
60
60
|
*/
|
|
@@ -72,7 +72,8 @@ var EventSeriesService = /** @class */ (function (_super) {
|
|
|
72
72
|
return __generator(this, function (_a) {
|
|
73
73
|
switch (_a.label) {
|
|
74
74
|
case 0: return [4 /*yield*/, this.fetch({
|
|
75
|
-
uri:
|
|
75
|
+
// uri: `/events/${factory.eventType.ScreeningEventSeries}`, // renew path(2025-12-15~)
|
|
76
|
+
uri: BASE_URI,
|
|
76
77
|
method: 'PUT',
|
|
77
78
|
body: params,
|
|
78
79
|
qs: {},
|
|
@@ -85,6 +86,25 @@ var EventSeriesService = /** @class */ (function (_super) {
|
|
|
85
86
|
});
|
|
86
87
|
});
|
|
87
88
|
};
|
|
89
|
+
/**
|
|
90
|
+
* 施設コンテンツ検索
|
|
91
|
+
*/
|
|
92
|
+
EventSeriesService.prototype.findEventSeries = function (params) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
94
|
+
var _this = this;
|
|
95
|
+
return __generator(this, function (_a) {
|
|
96
|
+
return [2 /*return*/, this.fetch({
|
|
97
|
+
uri: BASE_URI,
|
|
98
|
+
method: 'GET',
|
|
99
|
+
qs: params,
|
|
100
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
101
|
+
})
|
|
102
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
103
|
+
return [2 /*return*/, response.json()];
|
|
104
|
+
}); }); })];
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
};
|
|
88
108
|
return EventSeriesService;
|
|
89
109
|
}(service_1.Service));
|
|
90
110
|
exports.EventSeriesService = EventSeriesService;
|
|
@@ -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
|
*/
|
|
@@ -48,15 +48,15 @@ export interface IFindParams {
|
|
|
48
48
|
paymentMethodType?: string;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* 決済方法サービス
|
|
52
52
|
*/
|
|
53
|
-
export declare class
|
|
53
|
+
export declare class PaymentMethodService extends Service {
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* 決済方法検索
|
|
56
56
|
* 公開属性のみ
|
|
57
57
|
* 管理者の決済サービス読取権限で使用可能
|
|
58
58
|
* 2025-10-18~
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
findPaymentMethods(params: IFindParams): Promise<IPaymentMethodAsFindResult[]>;
|
|
61
61
|
}
|
|
62
62
|
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;
|
|
@@ -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
|
});
|
|
@@ -10,8 +10,18 @@ declare type IProjection = {
|
|
|
10
10
|
export declare class EventSeriesService extends Service {
|
|
11
11
|
/**
|
|
12
12
|
* 施設コンテンツ検索
|
|
13
|
+
* @deprecated use chevreAdmin
|
|
13
14
|
*/
|
|
14
|
-
|
|
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
|
+
};
|
|
15
25
|
typeOf: factory.eventType.ScreeningEventSeries;
|
|
16
26
|
$projection?: IProjection;
|
|
17
27
|
}): Promise<factory.eventSeries.IEvent[]>;
|
|
@@ -65,8 +65,9 @@ var EventSeriesService = /** @class */ (function (_super) {
|
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
67
|
* 施設コンテンツ検索
|
|
68
|
+
* @deprecated use chevreAdmin
|
|
68
69
|
*/
|
|
69
|
-
EventSeriesService.prototype.
|
|
70
|
+
EventSeriesService.prototype.findEventSeriesDeprecated = function (params) {
|
|
70
71
|
return __awaiter(this, void 0, void 0, function () {
|
|
71
72
|
var _this = this;
|
|
72
73
|
return __generator(this, function (_a) {
|
|
@@ -37,6 +37,12 @@ export declare class PaymentService extends Service {
|
|
|
37
37
|
authorizeCreditCard(params: {
|
|
38
38
|
object: IAuthorizeCreditCardObject;
|
|
39
39
|
purpose: IPurpose;
|
|
40
|
+
instrumentOptions: {
|
|
41
|
+
/**
|
|
42
|
+
* 対応決済方法オファーIDリスト
|
|
43
|
+
*/
|
|
44
|
+
acceptedPaymentMethodOfferIds: string[];
|
|
45
|
+
};
|
|
40
46
|
}, __?: {}): Promise<IAuthorizeResult>;
|
|
41
47
|
/**
|
|
42
48
|
* 決済カード決済承認
|
|
@@ -67,6 +73,12 @@ export declare class PaymentService extends Service {
|
|
|
67
73
|
ticketToken: string;
|
|
68
74
|
};
|
|
69
75
|
purpose: IPurpose;
|
|
76
|
+
instrumentOptions: {
|
|
77
|
+
/**
|
|
78
|
+
* 対応決済方法オファーIDリスト
|
|
79
|
+
*/
|
|
80
|
+
acceptedPaymentMethodOfferIds: string[];
|
|
81
|
+
};
|
|
70
82
|
}): Promise<{
|
|
71
83
|
/**
|
|
72
84
|
* task ID
|