@cinerino/sdk 3.160.0 → 3.161.0

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.
Files changed (111) hide show
  1. package/example/playground/public/lib/bundle.js +183 -170
  2. package/example/src/authorizeOrder.ts +2 -1
  3. package/example/src/cancelReservations.ts +2 -1
  4. package/example/src/chevre/assetTransaction/processReserve.ts +4 -3
  5. package/example/src/chevre/authorizeOrder.ts +2 -1
  6. package/example/src/chevre/createEvents.ts +2 -1
  7. package/example/src/chevre/createOrder.ts +2 -1
  8. package/example/src/chevre/findOrderByConfirmationNumber.ts +2 -1
  9. package/example/src/chevre/searchAcceptedOffersByConfirmationNumber.ts +2 -1
  10. package/example/src/chevre/searchEventOffers.ts +2 -1
  11. package/example/src/chevre/searchEvents.ts +2 -1
  12. package/example/src/chevre/searchReservations.ts +2 -1
  13. package/example/src/chevre/updateOrder.ts +2 -1
  14. package/example/src/createCommentOnOrder.ts +2 -1
  15. package/example/src/createEvents.ts +2 -1
  16. package/example/src/findOrderByConfirmationNumber.ts +2 -1
  17. package/example/src/getMembershipOwnershipCode.ts +4 -2
  18. package/example/src/openAccountByToken.ts +2 -1
  19. package/example/src/person/manageReservationToken.ts +4 -2
  20. package/example/src/searchOffers.ts +2 -1
  21. package/example/src/searchOrderAcceptedOffers.ts +2 -1
  22. package/example/src/searchOrders.ts +2 -1
  23. package/example/src/searchPaymentServices.ts +3 -28
  24. package/example/src/searchPaymentServicesOnMovieTicketIF.ts +2 -1
  25. package/example/src/searchProducts.ts +2 -1
  26. package/example/src/searchProjects.ts +29 -0
  27. package/example/src/searchSellers.ts +30 -0
  28. package/example/src/transaction/checkPaymentCard.ts +2 -1
  29. package/example/src/transaction/processMoneyTransfer.ts +4 -2
  30. package/example/src/transaction/processMoneyTransferFromOrder.ts +2 -1
  31. package/example/src/transaction/processOrderMoneyTransferByCash.ts +6 -3
  32. package/example/src/transaction/processOrderMoneyTransferByCreditCard.ts +6 -3
  33. package/example/src/transaction/processPlaceOrderByAnonymousCreditCardAndMembership.ts +6 -3
  34. package/example/src/transaction/processPlaceOrderByAnonymousCreditCardAndMyMembership.ts +9 -5
  35. package/example/src/transaction/processPlaceOrderByCash.ts +12 -6
  36. package/example/src/transaction/processPlaceOrderByMovieTicket.ts +6 -3
  37. package/example/src/transaction/processPlaceOrderByNewMembershipCoupon4COA.ts +6 -3
  38. package/example/src/transaction/processPlaceOrderByPaymentCard.ts +6 -3
  39. package/example/src/transaction/processPublishPaymentUrl.ts +6 -3
  40. package/example/src/transaction/processReturnOrder.ts +2 -1
  41. package/example/src/transaction/searchEventOffers.ts +4 -2
  42. package/example/src/transaction/test/lockTransactionTest.ts +2 -1
  43. package/example/src/updateOrder.ts +2 -1
  44. package/lib/abstract/chevre/account.d.ts +2 -2
  45. package/lib/abstract/chevre/accountTitle.d.ts +2 -2
  46. package/lib/abstract/chevre/accountTransaction.d.ts +2 -2
  47. package/lib/abstract/chevre/action.d.ts +2 -2
  48. package/lib/abstract/chevre/additionalProperty.d.ts +2 -2
  49. package/lib/abstract/chevre/aggregation.d.ts +1 -1
  50. package/lib/abstract/chevre/assetTransaction/cancelReservation.d.ts +2 -2
  51. package/lib/abstract/chevre/assetTransaction/moneyTransfer.d.ts +2 -2
  52. package/lib/abstract/chevre/assetTransaction/pay.d.ts +2 -2
  53. package/lib/abstract/chevre/assetTransaction/refund.d.ts +2 -2
  54. package/lib/abstract/chevre/assetTransaction/registerService.d.ts +2 -2
  55. package/lib/abstract/chevre/assetTransaction/reserve.d.ts +2 -2
  56. package/lib/abstract/chevre/assetTransaction.d.ts +2 -2
  57. package/lib/abstract/chevre/authorization.d.ts +2 -2
  58. package/lib/abstract/chevre/award.d.ts +2 -2
  59. package/lib/abstract/chevre/categoryCode.d.ts +2 -2
  60. package/lib/abstract/chevre/comment.d.ts +2 -2
  61. package/lib/abstract/chevre/creativeWork.d.ts +2 -2
  62. package/lib/abstract/chevre/customer.d.ts +2 -2
  63. package/lib/abstract/chevre/emailMessage.d.ts +2 -2
  64. package/lib/abstract/chevre/event.d.ts +2 -2
  65. package/lib/abstract/chevre/holdReservation.d.ts +2 -2
  66. package/lib/abstract/chevre/iam.d.ts +2 -2
  67. package/lib/abstract/chevre/me.d.ts +1 -1
  68. package/lib/abstract/chevre/merchantReturnPolicy.d.ts +2 -2
  69. package/lib/abstract/chevre/offer.d.ts +2 -2
  70. package/lib/abstract/chevre/offerCatalog.d.ts +2 -2
  71. package/lib/abstract/chevre/offerItemCondition.d.ts +2 -2
  72. package/lib/abstract/chevre/order.d.ts +3 -3
  73. package/lib/abstract/chevre/payment.d.ts +2 -2
  74. package/lib/abstract/chevre/permit.d.ts +2 -2
  75. package/lib/abstract/chevre/person/ownershipInfo.d.ts +2 -2
  76. package/lib/abstract/chevre/person.d.ts +2 -2
  77. package/lib/abstract/chevre/place.d.ts +2 -2
  78. package/lib/abstract/chevre/priceSpecification.d.ts +2 -2
  79. package/lib/abstract/chevre/product.d.ts +2 -2
  80. package/lib/abstract/chevre/project.d.ts +1 -1
  81. package/lib/abstract/chevre/reservation.d.ts +1 -4
  82. package/lib/abstract/chevre/reservation.js +0 -14
  83. package/lib/abstract/chevre/seller.d.ts +2 -2
  84. package/lib/abstract/chevre/task.d.ts +2 -2
  85. package/lib/abstract/chevre/token.d.ts +2 -2
  86. package/lib/abstract/chevre/transaction/moneyTransfer.d.ts +2 -2
  87. package/lib/abstract/chevre/transaction/placeOrder.d.ts +2 -2
  88. package/lib/abstract/chevre/transaction/returnOrder.d.ts +2 -2
  89. package/lib/abstract/chevre/transactionNumber.d.ts +2 -2
  90. package/lib/abstract/chevre/trip.d.ts +2 -2
  91. package/lib/abstract/chevre/userPool.d.ts +2 -2
  92. package/lib/abstract/index.d.ts +0 -3
  93. package/lib/abstract/index.js +0 -4
  94. package/lib/abstract/pecorino/accountTransaction.d.ts +1 -1
  95. package/lib/abstract/pecorino/permit.d.ts +1 -1
  96. package/lib/abstract/service/order.d.ts +1 -1
  97. package/lib/abstract/service/person/ownershipInfo.d.ts +2 -2
  98. package/lib/abstract/service/person.d.ts +2 -2
  99. package/lib/abstract/service/project.d.ts +1 -1
  100. package/lib/abstract/service/reservation.d.ts +1 -1
  101. package/lib/abstract/service/seller.d.ts +2 -2
  102. package/lib/abstract/service/transaction/placeOrder4sskts.d.ts +0 -2
  103. package/lib/abstract/service/transaction/placeOrder4sskts.js +5 -2
  104. package/lib/abstract/service.d.ts +7 -3
  105. package/lib/bundle.js +165 -172
  106. package/package.json +2 -2
  107. package/example/src/chevre/publishTransactionNumber.ts +0 -30
  108. package/example/src/chevre/searchCreditCards.ts +0 -33
  109. package/example/src/searchScreeningRooms.ts +0 -32
  110. package/example/src/transaction/processOrderMembershipByCreditCard.ts +0 -220
  111. package/example/src/transaction/test/rateLimitTransactionTest.ts +0 -70
@@ -27,7 +27,8 @@ async function main() {
27
27
  const orderService = new client.service.Order({
28
28
  endpoint: <string>process.env.API_ENDPOINT,
29
29
  auth: authClient,
30
- project: project
30
+ project: project,
31
+ seller: { id: '' }
31
32
  });
32
33
  // 電話番号を使用して注文に対してコードを発行
33
34
  const confirmationNumber = '2701';
@@ -13,7 +13,8 @@ async function main() {
13
13
  const reservationService = new client.service.Reservation({
14
14
  endpoint: <string>process.env.API_ENDPOINT,
15
15
  auth: authClient,
16
- project: project
16
+ project: project,
17
+ seller: { id: '' }
17
18
  });
18
19
  await reservationService.cancel({
19
20
  project: { id: project.id, typeOf: client.factory.organizationType.Project },
@@ -15,7 +15,8 @@ const auth = new client.auth.ClientCredentials({
15
15
  const eventService = new client.chevre.service.Event({
16
16
  endpoint: <string>process.env.CHEVRE_ENDPOINT,
17
17
  auth: auth,
18
- project
18
+ project,
19
+ seller: { id: '' }
19
20
  });
20
21
  const reserveService = new client.chevre.service.assetTransaction.Reserve({
21
22
  endpoint: <string>process.env.CHEVRE_ENDPOINT,
@@ -122,7 +123,7 @@ async function main() {
122
123
  console.log('予約を開始しました', transaction.object.subReservation?.map((r) => r.id)
123
124
  .join(','));
124
125
  console.log(transaction.object.subReservation?.map((r) => {
125
- return `${r.id} ${r.reservationNumber} ${r.reservationStatus} ${r.underName?.name}`;
126
+ return `${r.id} ${r.reservationNumber} ${r.underName?.name}`;
126
127
  })
127
128
  .join('\n'));
128
129
 
@@ -175,7 +176,7 @@ async function main() {
175
176
  console.log('予約を開始しました', transaction.object.subReservation?.map((r) => r.id)
176
177
  .join(','));
177
178
  console.log(transaction.object.subReservation?.map((r) => {
178
- return `${r.id} ${r.reservationNumber} ${r.reservationStatus} ${r.underName?.name}`;
179
+ return `${r.id} ${r.reservationNumber} ${r.underName?.name}`;
179
180
  })
180
181
  .join('\n'));
181
182
 
@@ -13,7 +13,8 @@ async function main() {
13
13
  const orderService = new client.chevre.service.Order({
14
14
  endpoint: <string>process.env.CHEVRE_ENDPOINT,
15
15
  auth: authClient,
16
- project
16
+ project,
17
+ seller: { id: '' }
17
18
  });
18
19
 
19
20
  const { code } = await orderService.authorize({
@@ -13,7 +13,8 @@ async function main() {
13
13
  const eventService = new chevre.service.Event({
14
14
  endpoint: <string>process.env.CHEVRE_ENDPOINT,
15
15
  auth: authClient,
16
- project
16
+ project,
17
+ seller: { id: '' }
17
18
  });
18
19
 
19
20
  const createdEvents = await eventService.create(
@@ -13,7 +13,8 @@ async function main() {
13
13
  const orderService = new client.chevre.service.Order({
14
14
  endpoint: <string>process.env.CHEVRE_ENDPOINT,
15
15
  auth: authClient,
16
- project
16
+ project,
17
+ seller: { id: '' }
17
18
  });
18
19
 
19
20
  const order = await orderService.createWithoutTransaction({
@@ -20,7 +20,8 @@ async function main() {
20
20
  const orderService = new client.chevre.service.Order({
21
21
  endpoint: <string>process.env.CHEVRE_ENDPOINT,
22
22
  auth: authClient,
23
- project
23
+ project,
24
+ seller: { id: '' }
24
25
  });
25
26
 
26
27
  const orders = await orderService.findByConfirmationNumber({
@@ -20,7 +20,8 @@ async function main() {
20
20
  const orderService = new client.chevre.service.Order({
21
21
  endpoint: <string>process.env.CHEVRE_ENDPOINT,
22
22
  auth: authClient,
23
- project
23
+ project,
24
+ seller: { id: '' }
24
25
  });
25
26
 
26
27
  const offers = await orderService.searchAcceptedOffersByConfirmationNumber({
@@ -13,7 +13,8 @@ async function main() {
13
13
  const eventService = new client.chevre.service.Event({
14
14
  endpoint: <string>process.env.CHEVRE_ENDPOINT,
15
15
  auth: authClient,
16
- project: { id: PROJECT_ID }
16
+ project: { id: PROJECT_ID },
17
+ seller: { id: '' }
17
18
  });
18
19
 
19
20
  const offers = await eventService.searchTicketOffers({
@@ -15,7 +15,8 @@ async function main() {
15
15
  const eventService = new client.chevre.service.Event({
16
16
  endpoint: <string>process.env.CHEVRE_ENDPOINT,
17
17
  auth: authClient,
18
- project: { id: PROJECT_ID }
18
+ project: { id: PROJECT_ID },
19
+ seller: { id: '' }
19
20
  });
20
21
 
21
22
  const result = await eventService.search({
@@ -15,7 +15,8 @@ async function main() {
15
15
  const reservationService = new client.chevre.service.Reservation({
16
16
  endpoint: <string>process.env.CHEVRE_ENDPOINT,
17
17
  auth: authClient,
18
- project
18
+ project,
19
+ seller: { id: '' }
19
20
  });
20
21
 
21
22
  const { data } = await reservationService.search({
@@ -13,7 +13,8 @@ async function main() {
13
13
  const orderService = new client.chevre.service.Order({
14
14
  endpoint: <string>process.env.CHEVRE_ENDPOINT,
15
15
  auth: authClient,
16
- project
16
+ project,
17
+ seller: { id: '' }
17
18
  });
18
19
 
19
20
  await orderService.updateChangeableAttributes({
@@ -14,7 +14,8 @@ async function main() {
14
14
  const commentService = new client.service.Comment({
15
15
  endpoint: <string>process.env.API_ENDPOINT,
16
16
  auth: authClient,
17
- project: { id: 'cinerino' }
17
+ project: { id: 'cinerino' },
18
+ seller: { id: '' }
18
19
  });
19
20
 
20
21
  const createdComment = await commentService.create({
@@ -13,7 +13,8 @@ async function main() {
13
13
  const eventService = new client.service.Event({
14
14
  endpoint: <string>process.env.API_ENDPOINT,
15
15
  auth: authClient,
16
- project: { id: 'cinerino' }
16
+ project: { id: 'cinerino' },
17
+ seller: { id: '' }
17
18
  });
18
19
 
19
20
  await eventService.createManyIfNotExist({
@@ -17,7 +17,8 @@ async function main() {
17
17
  const orderService = new client.service.Order({
18
18
  endpoint: <string>process.env.API_ENDPOINT,
19
19
  auth: authClient,
20
- project: { id: 'cinerino' }
20
+ project: { id: 'cinerino' },
21
+ seller: { id: '' }
21
22
  });
22
23
  const orders = await orderService.findByConfirmationNumber({
23
24
  confirmationNumber: '0551',
@@ -21,12 +21,14 @@ async function main() {
21
21
  const outputService = new client.service.Permit({
22
22
  endpoint: <string>process.env.API_ENDPOINT,
23
23
  auth: authClient,
24
- project: project
24
+ project: project,
25
+ seller: { id: '' }
25
26
  });
26
27
  const tokenService = new client.service.Token({
27
28
  endpoint: <string>process.env.API_ENDPOINT,
28
29
  auth: authClient,
29
- project: project
30
+ project: project,
31
+ seller: { id: '' }
30
32
  });
31
33
 
32
34
  const identifier = '581637641267608';
@@ -16,7 +16,8 @@ async function main() {
16
16
  const accountService = new client.service.Account({
17
17
  endpoint: <string>process.env.API_ENDPOINT,
18
18
  auth: authClient,
19
- project: { id: 'cinerino' }
19
+ project: { id: 'cinerino' },
20
+ seller: { id: '' }
20
21
  });
21
22
 
22
23
  await accountService.openByToken({
@@ -23,12 +23,14 @@ async function main() {
23
23
  const reservationService = new client.service.Reservation({
24
24
  endpoint: <string>process.env.API_ENDPOINT,
25
25
  auth: authClient,
26
- project
26
+ project,
27
+ seller: { id: '' }
27
28
  });
28
29
  const tokenService = new client.service.Token({
29
30
  endpoint: <string>process.env.API_ENDPOINT,
30
31
  auth: authClient,
31
- project
32
+ project,
33
+ seller: { id: '' }
32
34
  });
33
35
 
34
36
  const searchMyReservationsResult = await personOwnershipInfoService.searchMyReservations({
@@ -16,7 +16,8 @@ async function main() {
16
16
  const offerService = new client.service.Offer({
17
17
  endpoint: <string>process.env.API_ENDPOINT,
18
18
  auth: authClient,
19
- project: { id: 'cinerino' }
19
+ project: { id: 'cinerino' },
20
+ seller: { id: '' }
20
21
  });
21
22
 
22
23
  const { data } = await offerService.search({
@@ -15,7 +15,8 @@ async function main() {
15
15
  const orderService = new client.service.Order({
16
16
  endpoint: <string>process.env.API_ENDPOINT,
17
17
  auth: authClient,
18
- project: { id: 'cinerino' }
18
+ project: { id: 'cinerino' },
19
+ seller: { id: '' }
19
20
  });
20
21
 
21
22
  const acceptedOffers = await orderService.searchAcceptedOffersByOrderNumber(
@@ -16,7 +16,8 @@ async function main() {
16
16
  const orderService = new client.service.Order({
17
17
  endpoint: <string>process.env.API_ENDPOINT,
18
18
  auth: authClient,
19
- project: { id: 'cinerino' }
19
+ project: { id: 'cinerino' },
20
+ seller: { id: 'xxx' }
20
21
  });
21
22
 
22
23
  const now = new Date();
@@ -23,43 +23,18 @@ async function main() {
23
23
  const productService = new client.service.Product({
24
24
  endpoint: <string>process.env.API_ENDPOINT,
25
25
  auth: authClient,
26
- project: { id: projectId }
26
+ project: { id: projectId },
27
+ seller: { id: '' }
27
28
  });
28
29
 
29
30
  const { data } = await productService.search({
30
31
  typeOf: { $eq: client.factory.service.paymentService.PaymentServiceType.CreditCard }
31
32
  });
32
33
  console.log(data.length, 'paymentServices returned');
33
- (<client.factory.service.paymentService.IService[]>data).forEach((paymentService) => {
34
+ data.forEach((paymentService) => {
34
35
  console.log('----------------------------------------------');
35
36
  const paymentMethodType = (paymentService.serviceType !== undefined) ? paymentService.serviceType.codeValue : undefined;
36
37
  console.log('決済方法区分:', paymentMethodType);
37
-
38
- const providers = paymentService.provider;
39
- const providerCount = Array.isArray(providers) ? providers.length : 0;
40
- console.log(providerCount, '件の販売者が提供しています');
41
- if (Array.isArray(providers) && providerCount > 0) {
42
- console.log('ひとつめの販売者について...');
43
- const credentials = providers[0]?.credentials;
44
- let shopId;
45
- let tokenizationCode;
46
- let paymentUrlExpiresInSeconds: number | undefined;
47
- if (credentials !== undefined) {
48
- shopId = credentials.shopId;
49
- tokenizationCode = credentials.tokenizationCode;
50
- paymentUrlExpiresInSeconds = credentials.paymentUrl?.expiresInSeconds;
51
- }
52
- console.log('ショップID:', shopId);
53
- if (typeof paymentUrlExpiresInSeconds === 'number') {
54
- console.log('外部決済URLを発行する必要があります(トークンでの決済承認は不可)');
55
- } else {
56
- if (typeof tokenizationCode === 'string' && tokenizationCode.length > 0) {
57
- console.log('トークン化はSonyPaymentで対応');
58
- } else {
59
- console.log('トークン化はGMOで対応');
60
- }
61
- }
62
- }
63
38
  });
64
39
  }
65
40
 
@@ -23,7 +23,8 @@ async function main() {
23
23
  const productService = new client.service.Product({
24
24
  endpoint: <string>process.env.API_ENDPOINT,
25
25
  auth: authClient,
26
- project: { id: projectId }
26
+ project: { id: projectId },
27
+ seller: { id: '' }
27
28
  });
28
29
 
29
30
  const { data } = await productService.search({
@@ -23,7 +23,8 @@ async function main() {
23
23
  const productService = new client.service.Product({
24
24
  endpoint: <string>process.env.API_ENDPOINT,
25
25
  auth: authClient,
26
- project: { id: projectId }
26
+ project: { id: projectId },
27
+ seller: { id: '' }
27
28
  });
28
29
 
29
30
  const { data } = await productService.search({
@@ -0,0 +1,29 @@
1
+ // tslint:disable:no-console
2
+ // tslint:disable-next-line:no-implicit-dependencies
3
+ import * as client from '../../lib/index';
4
+ import * as auth from './auth/authAsAdmin';
5
+
6
+ async function main() {
7
+ const authClient = await auth.login();
8
+ await authClient.refreshAccessToken();
9
+ const loginTicket = authClient.verifyIdToken({});
10
+ console.log('username is', loginTicket.getUsername());
11
+
12
+ const projectService = new client.service.Project({
13
+ endpoint: <string>process.env.API_ENDPOINT,
14
+ auth: authClient
15
+ });
16
+
17
+ const { data } = await projectService.search({
18
+ limit: 10,
19
+ page: 1
20
+ });
21
+ console.log(data);
22
+ console.log(data.length, 'projects returned');
23
+ }
24
+
25
+ main()
26
+ .then(() => {
27
+ console.log('success!');
28
+ })
29
+ .catch(console.error);
@@ -0,0 +1,30 @@
1
+ // tslint:disable:no-console
2
+ // tslint:disable-next-line:no-implicit-dependencies
3
+ import * as client from '../../lib/index';
4
+ import * as auth from './auth/authAsAdmin';
5
+
6
+ async function main() {
7
+ const authClient = await auth.login();
8
+ await authClient.refreshAccessToken();
9
+ const loginTicket = authClient.verifyIdToken({});
10
+ console.log('username is', loginTicket.getUsername());
11
+
12
+ const sellerService = new client.service.Seller({
13
+ endpoint: <string>process.env.API_ENDPOINT,
14
+ auth: authClient,
15
+ project: { id: 'xxx' }
16
+ });
17
+
18
+ const { data } = await sellerService.search({
19
+ limit: 10,
20
+ page: 1
21
+ });
22
+ console.log(data);
23
+ console.log(data.length, 'projects returned');
24
+ }
25
+
26
+ main()
27
+ .then(() => {
28
+ console.log('success!');
29
+ })
30
+ .catch(console.error);
@@ -20,7 +20,8 @@ const authClient = new client.auth.ClientCredentials({
20
20
  const paymentService = new client.service.Payment({
21
21
  endpoint: <string>process.env.API_ENDPOINT,
22
22
  auth: authClient,
23
- project: { id: projectId }
23
+ project: { id: projectId },
24
+ seller: { id: '' }
24
25
  });
25
26
 
26
27
  export async function main() {
@@ -24,7 +24,8 @@ async function main() {
24
24
  const moneyTransferService = new client.service.txn.MoneyTransfer({
25
25
  endpoint: <string>process.env.API_ENDPOINT,
26
26
  auth: authClient,
27
- project
27
+ project,
28
+ seller: { id: '' }
28
29
  });
29
30
  const personOwnershipInfoService = new client.service.person.OwnershipInfo({
30
31
  endpoint: <string>process.env.API_ENDPOINT,
@@ -39,7 +40,8 @@ async function main() {
39
40
  const tokenService = new client.service.Token({
40
41
  endpoint: <string>process.env.API_ENDPOINT,
41
42
  auth: authClient,
42
- project
43
+ project,
44
+ seller: { id: '' }
43
45
  });
44
46
 
45
47
  const amount: client.factory.monetaryAmount.IMonetaryAmount = {
@@ -18,7 +18,8 @@ async function main() {
18
18
  const moneyTransferService = new client.service.txn.MoneyTransfer({
19
19
  endpoint: <string>process.env.API_ENDPOINT,
20
20
  auth,
21
- project
21
+ project,
22
+ seller: { id: '' }
22
23
  });
23
24
  const sellerService = new client.service.Seller({
24
25
  endpoint: <string>process.env.API_ENDPOINT,
@@ -19,7 +19,8 @@ async function main() {
19
19
  const offerService = new client.service.Offer({
20
20
  endpoint: <string>process.env.API_ENDPOINT,
21
21
  auth: authClient,
22
- project: { id: projectId }
22
+ project: { id: projectId },
23
+ seller: { id: '' }
23
24
  });
24
25
  const sellerService = new client.service.Seller({
25
26
  endpoint: <string>process.env.API_ENDPOINT,
@@ -29,12 +30,14 @@ async function main() {
29
30
  const placeOrderService = new client.service.txn.PlaceOrder({
30
31
  endpoint: <string>process.env.API_ENDPOINT,
31
32
  auth: authClient,
32
- project: { id: projectId }
33
+ project: { id: projectId },
34
+ seller: { id: '' }
33
35
  });
34
36
  const paymentService = new client.service.Payment({
35
37
  endpoint: <string>process.env.API_ENDPOINT,
36
38
  auth: authClient,
37
- project: { id: projectId }
39
+ project: { id: projectId },
40
+ seller: { id: '' }
38
41
  });
39
42
 
40
43
  // 入金金額
@@ -19,7 +19,8 @@ const authClient = new client.auth.ClientCredentials({
19
19
  const offerService = new client.service.Offer({
20
20
  endpoint: <string>process.env.API_ENDPOINT,
21
21
  auth: authClient,
22
- project: { id: projectId }
22
+ project: { id: projectId },
23
+ seller: { id: '' }
23
24
  });
24
25
  const sellerService = new client.service.Seller({
25
26
  endpoint: <string>process.env.API_ENDPOINT,
@@ -29,12 +30,14 @@ const sellerService = new client.service.Seller({
29
30
  const placeOrderService = new client.service.txn.PlaceOrder({
30
31
  endpoint: <string>process.env.API_ENDPOINT,
31
32
  auth: authClient,
32
- project: { id: projectId }
33
+ project: { id: projectId },
34
+ seller: { id: '' }
33
35
  });
34
36
  const paymentService = new client.service.Payment({
35
37
  endpoint: <string>process.env.API_ENDPOINT,
36
38
  auth: authClient,
37
- project: { id: projectId }
39
+ project: { id: projectId },
40
+ seller: { id: '' }
38
41
  });
39
42
 
40
43
  // tslint:disable-next-line:max-func-body-length
@@ -17,7 +17,8 @@ const profile = {
17
17
  const eventService = new client.service.Event({
18
18
  endpoint: <string>process.env.API_ENDPOINT,
19
19
  auth,
20
- project
20
+ project,
21
+ seller: { id: '' }
21
22
  });
22
23
 
23
24
  const sellerService = new client.service.Seller({
@@ -29,13 +30,15 @@ const sellerService = new client.service.Seller({
29
30
  const placeOrderService = new client.service.txn.PlaceOrder({
30
31
  endpoint: <string>process.env.API_ENDPOINT,
31
32
  auth,
32
- project
33
+ project,
34
+ seller: { id: '' }
33
35
  });
34
36
 
35
37
  const paymentService = new client.service.Payment({
36
38
  endpoint: <string>process.env.API_ENDPOINT,
37
39
  auth,
38
- project
40
+ project,
41
+ seller: { id: '' }
39
42
  });
40
43
 
41
44
  // tslint:disable-next-line:max-func-body-length
@@ -24,7 +24,8 @@ async function main() {
24
24
  const eventService = new client.service.Event({
25
25
  endpoint: <string>process.env.API_ENDPOINT,
26
26
  auth: authClient,
27
- project
27
+ project,
28
+ seller: { id: '' }
28
29
  });
29
30
 
30
31
  const sellerService = new client.service.Seller({
@@ -36,13 +37,15 @@ async function main() {
36
37
  const placeOrderService = new client.service.txn.PlaceOrder({
37
38
  endpoint: <string>process.env.API_ENDPOINT,
38
39
  auth: authClient,
39
- project
40
+ project,
41
+ seller: { id: '' }
40
42
  });
41
43
 
42
44
  const paymentService = new client.service.Payment({
43
45
  endpoint: <string>process.env.API_ENDPOINT,
44
46
  auth: authClient,
45
- project
47
+ project,
48
+ seller: { id: '' }
46
49
  });
47
50
 
48
51
  const ownershipInfoService = new client.service.person.OwnershipInfo({
@@ -54,7 +57,8 @@ async function main() {
54
57
  const tokenService = new client.service.Token({
55
58
  endpoint: <string>process.env.API_ENDPOINT,
56
59
  auth: authClient,
57
- project
60
+ project,
61
+ seller: { id: '' }
58
62
  });
59
63
 
60
64
  // 取引に使用するクレジットカードを決定する
@@ -137,7 +141,7 @@ async function main() {
137
141
 
138
142
  const numEvents = 1;
139
143
  let amount = 0;
140
- const authorizeSeatReservationResults = [];
144
+ const authorizeSeatReservationResults: any[] = [];
141
145
 
142
146
  // tslint:disable-next-line:no-increment-decrement
143
147
  for (let i = 0; i < numEvents; i++) {
@@ -27,7 +27,8 @@ async function main() {
27
27
  const eventService = new client.service.Event({
28
28
  endpoint: <string>process.env.API_ENDPOINT,
29
29
  auth: authClient,
30
- project
30
+ project,
31
+ seller: { id: '' }
31
32
  });
32
33
  const sellerService = new client.service.Seller({
33
34
  endpoint: <string>process.env.API_ENDPOINT,
@@ -37,27 +38,32 @@ async function main() {
37
38
  const customerService = new client.service.Customer({
38
39
  endpoint: <string>process.env.API_ENDPOINT,
39
40
  auth: authClient,
40
- project
41
+ project,
42
+ seller: { id: '' }
41
43
  });
42
44
  const placeOrderService = new client.service.txn.PlaceOrder({
43
45
  endpoint: <string>process.env.API_ENDPOINT,
44
46
  auth: authClient,
45
- project
47
+ project,
48
+ seller: { id: '' }
46
49
  });
47
50
  const orderService = new client.service.Order({
48
51
  endpoint: <string>process.env.API_ENDPOINT,
49
52
  auth: authClient,
50
- project
53
+ project,
54
+ seller: { id: '' }
51
55
  });
52
56
  const deliveryService = new client.service.Delivery({
53
57
  endpoint: <string>process.env.API_ENDPOINT,
54
58
  auth: authClient,
55
- project
59
+ project,
60
+ seller: { id: '' }
56
61
  });
57
62
  const paymentService = new client.service.Payment({
58
63
  endpoint: <string>process.env.API_ENDPOINT,
59
64
  auth: authClient,
60
- project
65
+ project,
66
+ seller: { id: '' }
61
67
  });
62
68
 
63
69
  console.log('finding profile...');
@@ -41,7 +41,8 @@ async function main() {
41
41
  const eventService = new client.service.Event({
42
42
  endpoint: <string>process.env.API_ENDPOINT,
43
43
  auth: authClient,
44
- project
44
+ project,
45
+ seller: { id: '' }
45
46
  });
46
47
  const sellerService = new client.service.Seller({
47
48
  endpoint: <string>process.env.API_ENDPOINT,
@@ -51,12 +52,14 @@ async function main() {
51
52
  const placeOrderService = new client.service.txn.PlaceOrder({
52
53
  endpoint: <string>process.env.API_ENDPOINT,
53
54
  auth: authClient,
54
- project
55
+ project,
56
+ seller: { id: '' }
55
57
  });
56
58
  const paymentService = new client.service.Payment({
57
59
  endpoint: <string>process.env.API_ENDPOINT,
58
60
  auth: authClient,
59
- project
61
+ project,
62
+ seller: { id: '' }
60
63
  });
61
64
 
62
65
  // 販売劇場検索