@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
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../factory';
2
- import { IProjectionSearchConditions, IUnset, Service } from '../service';
2
+ import { IOptions, IProjectionSearchConditions, IUnset, Service } from '../service';
3
3
  export declare type IProduct = Omit<factory.product.IProduct, 'offers'> | Omit<factory.service.paymentService.IService, 'provider'>;
4
4
  export declare type IProductWithoutCredentials = Omit<factory.product.IProduct, 'availableChannel' | 'offers'>;
5
5
  export declare type IPaymentServiceWithoutCredentials = Omit<factory.service.paymentService.IService, 'availableChannel' | 'provider'>;
@@ -7,7 +7,7 @@ export declare type ISearchProductsResult = IProductWithoutCredentials | IPaymen
7
7
  /**
8
8
  * プロダクトサービス
9
9
  */
10
- export declare class ProductService extends Service {
10
+ export declare class ProductService extends Service<IOptions> {
11
11
  /**
12
12
  * 作成
13
13
  */
@@ -8,7 +8,7 @@ export interface IGetHealthResult {
8
8
  /**
9
9
  * プロジェクトサービス
10
10
  */
11
- export declare class ProjectService extends Service {
11
+ export declare class ProjectService extends Service<IOptions> {
12
12
  constructor(options: Pick<IOptions, 'auth' | 'endpoint' | 'transporter'>);
13
13
  /**
14
14
  * プロジェクト作成
@@ -11,10 +11,7 @@ export declare class ReservationService extends Service {
11
11
  /**
12
12
  * 予約検索
13
13
  */
14
- search<T extends factory.reservationType>(params: Omit<factory.reservation.ISearchConditions<T>, 'project'> & IProjectionSearchConditions): Promise<ISearchResult<factory.reservation.IReservation<T>[]>>;
15
- /**
16
- * 予約取得
17
- */
14
+ search<T extends factory.reservationType>(params: Omit<factory.reservation.ISearchConditions<T>, 'project' | 'provider'> & IProjectionSearchConditions): Promise<ISearchResult<factory.reservation.IReservation<T>[]>>;
18
15
  /**
19
16
  * 予約部分更新
20
17
  */
@@ -90,20 +90,6 @@ var ReservationService = /** @class */ (function (_super) {
90
90
  });
91
91
  });
92
92
  };
93
- /**
94
- * 予約取得
95
- */
96
- // public async findById<T extends factory.reservationType>(params: {
97
- // id: string;
98
- // }): Promise<factory.reservation.IReservation<T>> {
99
- // return this.fetch({
100
- // uri: `/reservations/${encodeURIComponent(String(params.id))}`,
101
- // method: 'GET',
102
- // // qs: params,
103
- // expectedStatusCodes: [OK]
104
- // })
105
- // .then(async (response) => response.json());
106
- // }
107
93
  /**
108
94
  * 予約部分更新
109
95
  */
@@ -1,10 +1,10 @@
1
1
  import * as factory from '../factory';
2
- import { IAdditionalOptions, IOptions, ISearchResult, IUnset, Service } from '../service';
2
+ import { IOptions, ISearchResult, IUnset, Service } from '../service';
3
3
  import { IMakesProductOffer, IPaymentAccepted, IPaymentServiceByProvider, IProvidePaymentService, ISearchPaymentServiceConditions } from './seller/factory';
4
4
  /**
5
5
  * 販売者サービス
6
6
  */
7
- export declare class SellerService extends Service<IOptions & IAdditionalOptions> {
7
+ export declare class SellerService extends Service<IOptions> {
8
8
  /**
9
9
  * 販売者作成
10
10
  */
@@ -1,10 +1,10 @@
1
1
  import * as factory from '../factory';
2
- import { IProjectionSearchConditions, ISearchResult, Service } from '../service';
2
+ import { IOptions, IProjectionSearchConditions, ISearchResult, Service } from '../service';
3
3
  export declare type TaskName = factory.taskName | string;
4
4
  /**
5
5
  * タスクサービス
6
6
  */
7
- export declare class TaskService extends Service {
7
+ export declare class TaskService extends Service<IOptions> {
8
8
  /**
9
9
  * タスク作成
10
10
  */
@@ -1,4 +1,4 @@
1
- import { Service } from '../service';
1
+ import { IOptions, Service } from '../service';
2
2
  /**
3
3
  * トークンレスポンスインターフェース
4
4
  */
@@ -8,7 +8,7 @@ export interface ITokenResponse {
8
8
  /**
9
9
  * トークンサービス
10
10
  */
11
- export declare class TokenService extends Service {
11
+ export declare class TokenService extends Service<IOptions> {
12
12
  /**
13
13
  * トークンを取得する
14
14
  */
@@ -1,10 +1,10 @@
1
1
  import * as factory from '../../factory';
2
- import { ISearchResult, Service } from '../../service';
2
+ import { IOptions, ISearchResult, Service } from '../../service';
3
3
  import { ISetProfileParams, TransactionService } from '../transaction';
4
4
  /**
5
5
  * 通貨転送取引サービス
6
6
  */
7
- export declare class MoneyTransferTransactionService extends Service implements TransactionService {
7
+ export declare class MoneyTransferTransactionService extends Service<IOptions> implements TransactionService {
8
8
  typeOf: factory.transactionType.MoneyTransfer;
9
9
  /**
10
10
  * 取引を開始する
@@ -1,11 +1,11 @@
1
1
  import * as factory from '../../factory';
2
- import { ISearchResult, Service } from '../../service';
2
+ import { IOptions, ISearchResult, Service } from '../../service';
3
3
  import { ISetProfileParams, TransactionService } from '../transaction';
4
4
  import { IConfirmResult, IStartParams } from './placeOrder/factory';
5
5
  /**
6
6
  * 注文取引サービス
7
7
  */
8
- export declare class PlaceOrderTransactionService extends Service implements TransactionService {
8
+ export declare class PlaceOrderTransactionService extends Service<IOptions> implements TransactionService {
9
9
  typeOf: factory.transactionType.PlaceOrder;
10
10
  /**
11
11
  * 取引開始
@@ -1,10 +1,10 @@
1
1
  import * as factory from '../../factory';
2
- import { ISearchResult, Service } from '../../service';
2
+ import { IOptions, ISearchResult, Service } from '../../service';
3
3
  import { ISetProfileParams, TransactionService } from '../transaction';
4
4
  /**
5
5
  * 返品取引サービス
6
6
  */
7
- export declare class ReturnOrderTransactionService extends Service implements TransactionService {
7
+ export declare class ReturnOrderTransactionService extends Service<IOptions> implements TransactionService {
8
8
  typeOf: factory.transactionType.ReturnOrder;
9
9
  /**
10
10
  * 取引検索
@@ -1,8 +1,8 @@
1
- import { Service } from '../service';
1
+ import { IOptions, Service } from '../service';
2
2
  /**
3
3
  * 取引番号サービス
4
4
  */
5
- export declare class TransactionNumberService extends Service {
5
+ export declare class TransactionNumberService extends Service<IOptions> {
6
6
  /**
7
7
  * 発行
8
8
  */
@@ -1,9 +1,9 @@
1
1
  import * as factory from '../factory';
2
- import { IProjectionSearchConditions, ISearchResult, IUnset, Service } from '../service';
2
+ import { IOptions, IProjectionSearchConditions, ISearchResult, IUnset, Service } from '../service';
3
3
  /**
4
4
  * トリップサービス
5
5
  */
6
- export declare class TripService extends Service {
6
+ export declare class TripService extends Service<IOptions> {
7
7
  /**
8
8
  * 作成
9
9
  */
@@ -1,9 +1,9 @@
1
1
  import * as factory from '../factory';
2
- import { ISearchResult, Service } from '../service';
2
+ import { IOptions, ISearchResult, Service } from '../service';
3
3
  /**
4
4
  * Cognitoユーザープールサービス
5
5
  */
6
- export declare class UserPoolService extends Service {
6
+ export declare class UserPoolService extends Service<IOptions> {
7
7
  /**
8
8
  * ユーザープール取得
9
9
  */
@@ -108,9 +108,6 @@ export declare namespace service {
108
108
  */
109
109
  class Event extends EventService {
110
110
  }
111
- /**
112
- * IAMサービス
113
- */
114
111
  /**
115
112
  * オファーサービス
116
113
  */
@@ -199,10 +199,6 @@ var service;
199
199
  return Event;
200
200
  }(event_1.EventService));
201
201
  service.Event = Event;
202
- /**
203
- * IAMサービス
204
- */
205
- // export class IAM extends IAMService { }
206
202
  /**
207
203
  * オファーサービス
208
204
  */
@@ -3,7 +3,7 @@ import { IOptions, ISearchResult, Service } from '../service';
3
3
  /**
4
4
  * 口座取引サービス
5
5
  */
6
- export declare class AccountTransactionService extends Service {
6
+ export declare class AccountTransactionService extends Service<IOptions> {
7
7
  constructor(options: Pick<IOptions, 'auth' | 'endpoint' | 'transporter'>);
8
8
  /**
9
9
  * 取引検索
@@ -4,7 +4,7 @@ declare type IPermitAsResponse = Omit<factory.permit.IPermit, 'accessCode' | 'ad
4
4
  /**
5
5
  * 許可証サービス
6
6
  */
7
- export declare class PermitService extends Service {
7
+ export declare class PermitService extends Service<IOptions> {
8
8
  constructor(options: Pick<IOptions, 'auth' | 'endpoint' | 'transporter'>);
9
9
  /**
10
10
  * 許可証照会
@@ -121,7 +121,7 @@ export declare class OrderService extends Service {
121
121
  /**
122
122
  * 注文を検索する
123
123
  */
124
- search(params: Omit<factory.order.ISearchConditions, 'project'> & ISearchOrdersOptions): Promise<ISearchResult<Omit<factory.order.IOrder, 'acceptedOffers' | 'discounts' | 'identifier' | 'isGift' | 'returner' | 'url'>[]>>;
124
+ search(params: Omit<factory.order.ISearchConditions, 'project' | 'provider'> & ISearchOrdersOptions): Promise<ISearchResult<Omit<factory.order.IOrder, 'acceptedOffers' | 'discounts' | 'identifier' | 'isGift' | 'returner' | 'url'>[]>>;
125
125
  /**
126
126
  * 返品者検索
127
127
  */
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../../factory';
2
- import { ISearchResult, Service } from '../../service';
2
+ import { IOptions, ISearchResult, Service } from '../../service';
3
3
  export declare type IPermitWithAccountDetails = Omit<factory.permit.IPermit, 'paymentAccount'> & {
4
4
  paymentAccount?: factory.permit.IPaymentAccountWithDetail;
5
5
  };
@@ -14,7 +14,7 @@ export interface ICodeResponse {
14
14
  /**
15
15
  * ユーザー所有権サービス
16
16
  */
17
- export declare class PersonOwnershipInfoService extends Service {
17
+ export declare class PersonOwnershipInfoService extends Service<IOptions> {
18
18
  /**
19
19
  * クレジットカード追加
20
20
  */
@@ -1,11 +1,11 @@
1
1
  import * as factory from '../factory';
2
- import { ISearchResult, Service } from '../service';
2
+ import { IOptions, ISearchResult, Service } from '../service';
3
3
  import { ISearchOrdersOptions } from './order/factory';
4
4
  export declare type IPerson = factory.person.IProfile & factory.person.IPerson;
5
5
  /**
6
6
  * 会員サービス
7
7
  */
8
- export declare class PersonService extends Service {
8
+ export declare class PersonService extends Service<IOptions> {
9
9
  /**
10
10
  * 会員作成
11
11
  */
@@ -8,7 +8,7 @@ export interface IGetHealthResult {
8
8
  /**
9
9
  * プロジェクトサービス
10
10
  */
11
- export declare class ProjectService extends Service {
11
+ export declare class ProjectService extends Service<IOptions> {
12
12
  constructor(options: Pick<IOptions, 'auth' | 'endpoint' | 'transporter'>);
13
13
  /**
14
14
  * プロジェクト検索
@@ -8,7 +8,7 @@ export declare class ReservationService extends Service {
8
8
  /**
9
9
  * 予約検索
10
10
  */
11
- search<T extends factory.reservationType>(params: Omit<factory.reservation.ISearchConditions<T>, 'project'>): Promise<{
11
+ search<T extends factory.reservationType>(params: Omit<factory.reservation.ISearchConditions<T>, 'project' | 'provider'>): Promise<{
12
12
  data: factory.reservation.IReservation<T>[];
13
13
  }>;
14
14
  /**
@@ -1,10 +1,10 @@
1
1
  import { IPaymentAccepted, IPaymentServiceByProvider, ISearchPaymentServiceConditions } from '../chevre/seller/factory';
2
2
  import * as factory from '../factory';
3
- import { ISearchResult, Service } from '../service';
3
+ import { IOptions, ISearchResult, Service } from '../service';
4
4
  /**
5
5
  * 販売者サービス
6
6
  */
7
- export declare class SellerService extends Service {
7
+ export declare class SellerService extends Service<IOptions> {
8
8
  /**
9
9
  * 販売者取得
10
10
  */
@@ -1,6 +1,5 @@
1
1
  import { IAuthorizeCOAEventServiceResult } from '../../chevre/transaction/placeOrder/factory';
2
2
  import * as factory from '../../factory';
3
- import { IOptions } from '../../service';
4
3
  import { PlaceOrderTransactionService } from './placeOrder';
5
4
  interface IAppliesToSurfrock {
6
5
  identifier: string;
@@ -12,7 +11,6 @@ interface IAppliesToSurfrock {
12
11
  * 注文取引サービス(sskts専用)
13
12
  */
14
13
  export declare class PlaceOrderTransaction4ssktsService extends PlaceOrderTransactionService {
15
- constructor(options: IOptions);
16
14
  /**
17
15
  * COAイベントオファー承認
18
16
  */
@@ -70,9 +70,12 @@ var placeOrder_1 = require("./placeOrder");
70
70
  */
71
71
  var PlaceOrderTransaction4ssktsService = /** @class */ (function (_super) {
72
72
  __extends(PlaceOrderTransaction4ssktsService, _super);
73
- function PlaceOrderTransaction4ssktsService(options) {
74
- return _super.call(this, options) || this; /* istanbul ignore next */
73
+ function PlaceOrderTransaction4ssktsService() {
74
+ return _super !== null && _super.apply(this, arguments) || this;
75
75
  }
76
+ // constructor(options: IOptions) {
77
+ // super(options)/* istanbul ignore next */;
78
+ // }
76
79
  /**
77
80
  * COAイベントオファー承認
78
81
  */
@@ -30,7 +30,7 @@ export interface IAdditionalOptions {
30
30
  /**
31
31
  * サービス使用販売者
32
32
  */
33
- seller?: {
33
+ seller: {
34
34
  id: string;
35
35
  };
36
36
  }
@@ -48,8 +48,12 @@ export interface IFetchOptions {
48
48
  /**
49
49
  * base service class
50
50
  */
51
- export declare class Service<T extends IOptions & IAdditionalOptions = IOptions> {
52
- options: IOptions & IAdditionalOptions;
51
+ export declare class Service<T extends IOptions = IOptions & IAdditionalOptions> {
52
+ options: IOptions & {
53
+ seller?: {
54
+ id: string;
55
+ };
56
+ };
53
57
  constructor(options: T);
54
58
  /**
55
59
  * Create and send request to API