@chevre/factory 4.374.0-alpha.2 → 4.374.0-alpha.20

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 (40) hide show
  1. package/lib/action/accept/coaOffer.d.ts +7 -7
  2. package/lib/action/authorize/invoice.d.ts +20 -0
  3. package/lib/action/authorize/invoice.js +2 -0
  4. package/lib/action/authorize/offer/eventService.d.ts +6 -4
  5. package/lib/action/check/paymentMethod/movieTicket.d.ts +3 -5
  6. package/lib/action/interact/confirm/reservation.d.ts +11 -4
  7. package/lib/action/interact/confirm.d.ts +1 -1
  8. package/lib/action/trade/pay.d.ts +1 -10
  9. package/lib/action/trade/refund.d.ts +8 -6
  10. package/lib/action/transfer/return/reserveTransaction.d.ts +7 -5
  11. package/lib/assetTransaction/pay.d.ts +1 -0
  12. package/lib/assetTransaction/refund.d.ts +2 -1
  13. package/lib/index.d.ts +3 -0
  14. package/lib/index.js +3 -1
  15. package/lib/recipe/acceptCOAOffer.d.ts +19 -0
  16. package/lib/recipe/acceptCOAOffer.js +2 -0
  17. package/lib/recipe/authorizeInvoice.d.ts +25 -0
  18. package/lib/recipe/authorizeInvoice.js +2 -0
  19. package/lib/recipe/authorizeInvoice3ds.d.ts +17 -0
  20. package/lib/recipe/authorizeInvoice3ds.js +2 -0
  21. package/lib/recipe/checkMovieTicket.d.ts +19 -0
  22. package/lib/recipe/checkMovieTicket.js +2 -0
  23. package/lib/recipe/confirmCOAReserve.d.ts +29 -0
  24. package/lib/recipe/confirmCOAReserve.js +2 -0
  25. package/lib/recipe/payCreditCard.d.ts +4 -5
  26. package/lib/recipe/payMovieTicket.d.ts +8 -5
  27. package/lib/recipe/publishPaymentUrl.d.ts +5 -6
  28. package/lib/recipe/refundCreditCard.d.ts +34 -0
  29. package/lib/recipe/refundCreditCard.js +2 -0
  30. package/lib/recipe/refundMovieTicket.d.ts +33 -0
  31. package/lib/recipe/refundMovieTicket.js +2 -0
  32. package/lib/recipe/returnCOAReserve.d.ts +28 -0
  33. package/lib/recipe/returnCOAReserve.js +2 -0
  34. package/lib/recipe.d.ts +20 -7
  35. package/lib/recipe.js +15 -0
  36. package/lib/task/confirmReserveTransaction.d.ts +1 -1
  37. package/lib/task/refund.d.ts +1 -1
  38. package/lib/task/returnReserveTransaction.d.ts +1 -1
  39. package/lib/transaction/placeOrder.d.ts +6 -19
  40. package/package.json +1 -1
@@ -1,9 +1,11 @@
1
1
  import * as ActionFactory from '../../action';
2
- import { IAcceptedOfferBeforeAuthorize4COA, IAction as IAuthorizeOfferAction, IObjectWithoutDetail, IPurpose, IResult as IAuthorizeOfferResult } from '../../action/authorize/offer/eventService';
2
+ import { IAcceptedOfferBeforeAuthorize4COA, IAction as IAuthorizeOfferAction, IObjectWithoutDetail, IPurpose } from '../../action/authorize/offer/eventService';
3
3
  import { ActionType } from '../../actionType';
4
4
  import { OfferType } from '../../offerType';
5
+ import { IRecipe, IUpdTmpReserveSeatArgs, IUpdTmpReserveSeatResult } from '../../recipe/acceptCOAOffer';
5
6
  import { Identifier } from '../../service/webAPI';
6
7
  import * as AcceptActionFactory from '../accept';
8
+ export { IRecipe, IUpdTmpReserveSeatArgs, IUpdTmpReserveSeatResult };
7
9
  export interface IAppliesToSurfrock {
8
10
  identifier: string;
9
11
  serviceOutput: {
@@ -29,7 +31,9 @@ export interface IObject extends Pick<IObjectWithoutDetail<Identifier.COA>, 'acc
29
31
  flgMember: FlgMember;
30
32
  typeOf: OfferType.AggregateOffer;
31
33
  }
32
- export type IAuthorizeCOAOfferResult = Pick<IAuthorizeOfferResult<Identifier.COA>, 'responseBody'>;
34
+ export interface IAuthorizeCOAOfferResult {
35
+ responseBody: Pick<IUpdTmpReserveSeatResult, 'tmpReserveNum'>;
36
+ }
33
37
  export interface IResult {
34
38
  /**
35
39
  * 承認アクションID
@@ -59,12 +63,8 @@ export interface IPotentialActions {
59
63
  }
60
64
  export interface IInstrument {
61
65
  typeOf: 'COAReserveTransaction';
62
- /**
63
- * 仮予約実行時は存在する
64
- */
65
- requestBody?: IAuthorizeOfferResult<Identifier.COA>['requestBody'];
66
66
  }
67
- export interface IAttributes extends AcceptActionFactory.IAttributes<IObject, IResult> {
67
+ export interface IAttributes extends Pick<AcceptActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'object' | 'potentialActions' | 'purpose' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
68
68
  agent: IAgent;
69
69
  instrument: IInstrument;
70
70
  object: IObject;
@@ -0,0 +1,20 @@
1
+ import * as ActionFactory from '../../action';
2
+ import { ActionType } from '../../actionType';
3
+ import { IInvoice } from '../../invoice';
4
+ import { IRecipe as IAuthorizeInvoiceRecipe } from '../../recipe/authorizeInvoice';
5
+ import { IRecipe as IAuthorizeInvoice3dsRecipe } from '../../recipe/authorizeInvoice3ds';
6
+ import * as AuthorizeActionFactory from '../authorize';
7
+ export { IAuthorizeInvoiceRecipe, IAuthorizeInvoice3dsRecipe };
8
+ export type IAgent = ActionFactory.IParticipantAsProject;
9
+ export type IObject = Pick<IInvoice, 'paymentMethodId' | 'typeOf'>;
10
+ export interface IResult {
11
+ }
12
+ export interface IAttributes extends Pick<AuthorizeActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'object' | 'result' | 'project' | 'typeOf'> {
13
+ typeOf: ActionType.AuthorizeAction;
14
+ object: IObject;
15
+ agent: IAgent;
16
+ }
17
+ /**
18
+ * 請求承認アクション
19
+ */
20
+ export type IAction = ActionFactory.IAction<IAttributes>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -51,7 +51,7 @@ export type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IRes
51
51
  /**
52
52
  * 承認アクション結果
53
53
  */
54
- export interface IResult<T extends WebAPIFactory.Identifier> {
54
+ export interface IResult {
55
55
  /**
56
56
  * 決済金額
57
57
  * オファー未指定の場合、金額非確定なので、この属性は存在しない
@@ -66,11 +66,9 @@ export interface IResult<T extends WebAPIFactory.Identifier> {
66
66
  /**
67
67
  * 外部サービスへのリクエスト
68
68
  */
69
- requestBody: IRequestBody<T>;
70
69
  /**
71
70
  * 外部サービスからのレスポンス
72
71
  */
73
- responseBody: IResponseBody<T>;
74
72
  acceptedOffers?: IResultAcceptedOffer[];
75
73
  }
76
74
  export type ExcludedFieldsFromTicketPriceComponent = 'accounting' | 'id' | 'name' | 'priceCurrency' | 'valueAddedTaxIncluded';
@@ -163,6 +161,10 @@ export type IObject<T extends WebAPIFactory.Identifier> = {
163
161
  typeOf: ObjectType;
164
162
  event?: IEvent;
165
163
  acceptedOffer: IAcceptedOffer<T>[];
164
+ /**
165
+ * recipe有(仮予約時)のCOA興行オファー採用アクションID(2024-06-11~)
166
+ */
167
+ id?: string;
166
168
  /**
167
169
  * 進行中取引
168
170
  */
@@ -177,7 +179,7 @@ export interface IPurpose {
177
179
  id: string;
178
180
  }
179
181
  export type IError = any;
180
- export interface IAttributes<T extends WebAPIFactory.Identifier> extends AuthorizeActionFactory.IAttributes<IObject<T>, IResult<T>> {
182
+ export interface IAttributes<T extends WebAPIFactory.Identifier> extends AuthorizeActionFactory.IAttributes<IObject<T>, IResult> {
181
183
  typeOf: ActionType.AuthorizeAction;
182
184
  agent: IAgent;
183
185
  recipient: IRecipient;
@@ -2,12 +2,12 @@ import { factory as surfrockFactory } from '@surfrock/sdk';
2
2
  import * as ActionFactory from '../../../action';
3
3
  import { OrganizationType } from '../../../organizationType';
4
4
  import { IMovieTicketPaymentCard, IMovieTicketServiceOutput } from '../../../paymentMethod/paymentCard/movieTicket';
5
+ import { IPurchaseNumberAuthIn, IPurchaseNumberAuthResult, IRecipe } from '../../../recipe/checkMovieTicket';
5
6
  import { TransactionType } from '../../../transactionType';
6
7
  import * as CheckActionFactory from '../../check';
7
8
  import * as PayActionFactory from '../../trade/pay';
9
+ export { IPurchaseNumberAuthIn, IPurchaseNumberAuthResult, IRecipe };
8
10
  export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
9
- export type IPurchaseNumberAuthIn = surfrockFactory.service.auth.purchaseNumberAuth.IPurchaseNumberAuthIn;
10
- export type IPurchaseNumberAuthResult = surfrockFactory.service.auth.purchaseNumberAuth.IPurchaseNumberAuthResult;
11
11
  export type IPurchaseNumberInfo = surfrockFactory.service.auth.purchaseNumberAuth.IPurchaseNumberInfo;
12
12
  export type IMkknInfo = surfrockFactory.service.auth.purchaseNumberAuth.INvalidTicket;
13
13
  export type IYkknInfo = surfrockFactory.service.auth.purchaseNumberAuth.IValidTicket;
@@ -35,15 +35,13 @@ export interface IPaymentService extends Pick<PayActionFactory.IPaymentService,
35
35
  }
36
36
  export type IObject = IPaymentService[];
37
37
  export interface IResult {
38
- purchaseNumberAuthIn: IPurchaseNumberAuthIn;
39
- purchaseNumberAuthResult: IPurchaseNumberAuthResult;
40
38
  }
41
39
  export type IError = any;
42
40
  export interface IPurpose {
43
41
  typeOf: TransactionType.PlaceOrder;
44
42
  id: string;
45
43
  }
46
- export interface IAttributes extends CheckActionFactory.IAttributes<IObject, IResult> {
44
+ export interface IAttributes extends Pick<CheckActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'object' | 'potentialActions' | 'purpose' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
47
45
  agent: IAgent;
48
46
  object: IObject;
49
47
  purpose?: IPurpose;
@@ -1,23 +1,30 @@
1
- import type * as COA from '@motionpicture/coa-service';
2
1
  import { IParticipantAsProject } from '../../../action';
3
2
  import * as ReserveTransactionFactory from '../../../assetTransaction/reserve';
4
3
  import { AssetTransactionType } from '../../../assetTransactionType';
5
4
  import { ISimpleOrder } from '../../../order';
5
+ import { IRecipe, IUpdReserveArgs } from '../../../recipe/confirmCOAReserve';
6
6
  import * as WebAPIFactory from '../../../service/webAPI';
7
7
  import * as ConfirmActionFactory from '../confirm';
8
+ export { IRecipe as IConfirmCOAReserveRecipe };
8
9
  export type IAgent = IParticipantAsProject;
9
- export type IObject4COA = COA.factory.reserve.IUpdReserveArgs & {
10
+ export type IObject4COA = IUpdReserveArgs & {
11
+ /**
12
+ * 取引番号は必須
13
+ */
10
14
  transactionNumber: string;
11
15
  typeOf: 'COAReserveTransaction';
12
16
  };
13
17
  export type IObject4Chevre = Pick<ReserveTransactionFactory.IConfirmParams, 'transactionNumber' | 'potentialActions'> & {
18
+ /**
19
+ * 取引番号は必須
20
+ */
14
21
  transactionNumber: string;
15
22
  typeOf: AssetTransactionType.Reserve;
16
23
  };
17
24
  export type IObject<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObject4COA : IObject4Chevre;
18
25
  export type IPurpose = ISimpleOrder;
19
- export type IResult = any;
20
- export type IInstrument<T extends WebAPIFactory.Identifier> = WebAPIFactory.IService<T>;
26
+ export interface IResult {
27
+ }
21
28
  export interface IAttributes<T extends WebAPIFactory.Identifier> extends ConfirmActionFactory.IAttributes<IObject<T>, IResult> {
22
29
  agent: IAgent;
23
30
  purpose: IPurpose;
@@ -16,7 +16,7 @@ export interface ITransactionPurpose {
16
16
  export type IPurpose = ITransactionPurpose | OrderFactory.ISimpleOrder;
17
17
  export type IResult = any;
18
18
  export type IPotentialActions = any;
19
- export interface IAttributes<TObject, TResult> extends Pick<ActionFactory.IAttributes<ActionType.ConfirmAction, TObject, TResult>, 'agent' | 'error' | 'object' | 'project' | 'purpose' | 'result' | 'typeOf'> {
19
+ export interface IAttributes<TObject, TResult> extends Pick<ActionFactory.IAttributes<ActionType.ConfirmAction, TObject, TResult>, 'agent' | 'error' | 'object' | 'project' | 'purpose' | 'result' | 'typeOf' | 'sameAs'> {
20
20
  agent: IAgent;
21
21
  purpose: IPurpose;
22
22
  }
@@ -104,17 +104,8 @@ export type ISeatInfoSyncIn = surfrockFactory.service.seat.seatInfoSync.ISeatInf
104
104
  export type ISeatInfoSyncResult = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncResult;
105
105
  export interface IInstrument {
106
106
  typeOf: string;
107
- seatInfoSyncIn?: ISeatInfoSyncIn;
108
107
  }
109
- /**
110
- * 決済結果
111
- */
112
108
  export interface IResult {
113
- /**
114
- * クレジットカード売上結果
115
- */
116
- creditCardSales?: ICreditCardSales[];
117
- seatInfoSyncResult?: ISeatInfoSyncResult;
118
109
  }
119
110
  export interface ILocation {
120
111
  typeOf: CreativeWorkType.WebApplication;
@@ -123,7 +114,7 @@ export interface ILocation {
123
114
  */
124
115
  id: string;
125
116
  }
126
- export interface IAttributes extends Omit<ActionFactory.IAttributes<ActionType.PayAction, IObject, IResult>, 'description' | 'identifier' | 'location'> {
117
+ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.PayAction, IObject, IResult>, 'agent' | 'error' | 'instrument' | 'location' | 'object' | 'potentialActions' | 'purpose' | 'recipient' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
127
118
  agent: IAgent;
128
119
  instrument?: IInstrument;
129
120
  potentialActions?: IPotentialActions;
@@ -2,9 +2,12 @@ import type * as GMO from '@motionpicture/gmo-service';
2
2
  import { factory as surfrockFactory } from '@surfrock/sdk';
3
3
  import * as ActionFactory from '../../action';
4
4
  import { ActionType } from '../../actionType';
5
+ import { IRecipe as IRefundCreditCardRecipe } from '../../recipe/refundCreditCard';
6
+ import { IRecipe as IRefundMovieTicketRecipe } from '../../recipe/refundMovieTicket';
5
7
  import { TransactionType } from '../../transactionType';
6
8
  import { IAttributes as IInformActionAttributes } from '../interact/inform';
7
9
  import { IOrderAsPayPurpose, IPaymentMethod, IPaymentService as IPaymentServiceOnPay, IPurposeAsAssetTransaction, IPurposeAsReturnAction } from './pay';
10
+ export { IRefundCreditCardRecipe, IRefundMovieTicketRecipe };
8
11
  export type IAgent = ActionFactory.IParticipantAsSeller | ActionFactory.IParticipantAsPerson;
9
12
  export type IRecipient = ActionFactory.IParticipant;
10
13
  export type IPaymentService = Omit<IPaymentServiceOnPay, 'paymentMethod'> & {
@@ -12,6 +15,10 @@ export type IPaymentService = Omit<IPaymentServiceOnPay, 'paymentMethod'> & {
12
15
  paymentMethod: Pick<IPaymentMethod, 'accountId' | 'name' | 'paymentMethodId' | 'typeOf' | 'additionalProperty'>;
13
16
  };
14
17
  export type IObject = IPaymentService[];
18
+ export interface IAlterTranResultAsError {
19
+ name: string;
20
+ message: string;
21
+ }
15
22
  export type IAlterTranResult = GMO.factory.credit.IAlterTranResult;
16
23
  export interface ISeatInfoSyncResultAsError {
17
24
  name: string;
@@ -22,11 +29,6 @@ export type ISeatInfoSyncResult = surfrockFactory.service.seat.seatInfoSync.ISea
22
29
  export type ISeatInfoSyncCancelIn = surfrockFactory.service.seat.seatInfoSyncCancel.ISeatInfoSyncCancelIn;
23
30
  export type ISeatInfoSyncCancelResult = surfrockFactory.service.seat.seatInfoSyncCancel.ISeatInfoSyncCancelResult | ISeatInfoSyncResultAsError;
24
31
  export interface IResult {
25
- alterTranResult?: IAlterTranResult[];
26
- seatInfoSyncIn?: ISeatInfoSyncIn;
27
- seatInfoSyncResult?: ISeatInfoSyncResult;
28
- seatInfoSyncCancelIn?: ISeatInfoSyncCancelIn;
29
- seatInfoSyncCancelResult?: ISeatInfoSyncCancelResult;
30
32
  /**
31
33
  * ペイメントカード決済の場合
32
34
  */
@@ -44,7 +46,7 @@ export interface IPurposeAsPlaceOrder {
44
46
  id: string;
45
47
  }
46
48
  export type IPurpose = IOrderAsPayPurpose | IPurposeAsAssetTransaction | IPurposeAsReturnAction | IPurposeAsPlaceOrder;
47
- export interface IAttributes extends ActionFactory.IAttributes<ActionType.RefundAction, IObject, IResult> {
49
+ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.RefundAction, IObject, IResult>, 'agent' | 'error' | 'object' | 'potentialActions' | 'purpose' | 'recipient' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
48
50
  agent: IAgent;
49
51
  recipient?: IRecipient;
50
52
  purpose: IPurpose;
@@ -1,12 +1,13 @@
1
- import type * as COA from '@motionpicture/coa-service';
2
1
  import * as ActionFactory from '../../../action';
3
2
  import { AssetTransactionType } from '../../../assetTransactionType';
4
3
  import { ISimpleOrder } from '../../../order';
4
+ import { IRecipe, IStateReserveArgs } from '../../../recipe/returnCOAReserve';
5
5
  import { Identifier as WebAPIIdentifier, IService } from '../../../service/webAPI';
6
6
  import * as ReturnActionFactory from '../return';
7
+ export { IRecipe as IReturnCOAReserveRecipe };
7
8
  export type IAgent = ActionFactory.IParticipantAsProject;
8
9
  export type IRecipient = ActionFactory.IParticipantAsSeller;
9
- export type IObject4COA = COA.factory.reserve.IStateReserveArgs & {
10
+ export type IObject4COA = IStateReserveArgs & {
10
11
  typeOf: 'COAReserveTransaction';
11
12
  };
12
13
  export interface IObject4Chevre {
@@ -15,9 +16,10 @@ export interface IObject4Chevre {
15
16
  }
16
17
  export type IObject<T extends WebAPIIdentifier> = T extends WebAPIIdentifier.COA ? IObject4COA : IObject4Chevre;
17
18
  export type IPurpose = ISimpleOrder;
18
- export type IResult = any;
19
- export type IInstrument<T extends WebAPIIdentifier> = IService<T>;
20
- export interface IAttributes<T extends WebAPIIdentifier> extends ReturnActionFactory.IAttributes<IObject<T>, IResult> {
19
+ export interface IResult {
20
+ }
21
+ export type IInstrument<T extends WebAPIIdentifier> = Pick<IService<T>, 'identifier' | 'typeOf'>;
22
+ export interface IAttributes<T extends WebAPIIdentifier> extends Pick<ReturnActionFactory.IAttributes<IObject<T>, IResult>, 'typeOf' | 'sameAs' | 'result' | 'recipient' | 'purpose' | 'project' | 'object' | 'instrument' | 'error' | 'agent'> {
21
23
  agent: IAgent;
22
24
  instrument: IInstrument<T>;
23
25
  purpose: IPurpose;
@@ -27,6 +27,7 @@ export type IExecTranArgs = GMOFactory.credit.IExecTranArgs;
27
27
  export type IExecTranResult = GMOFactory.credit.IExecTranResult;
28
28
  export type IExecTran3dsArgs = GMOFactory.credit.IExecTran3dsArgs;
29
29
  export type IExecTran3dsResult = GMOFactory.credit.IExecTran3dsResult;
30
+ export type ISecureTran2Args = GMOFactory.credit.ISecureTran2Args;
30
31
  export type ISecureTran2Result = GMOFactory.credit.ISecureTran2Result;
31
32
  export interface IPaymentMethodAmount extends Pick<IMonetaryAmount, 'currency' | 'typeOf' | 'value'> {
32
33
  value: number;
@@ -43,11 +43,12 @@ export interface IConfirmParams {
43
43
  }
44
44
  export type IResult = any;
45
45
  export type IError = any;
46
+ export type IPotentialRefundActionAttributes = Pick<IRefundActionAttributes, 'agent' | 'object' | 'potentialActions' | 'project' | 'purpose' | 'recipient' | 'typeOf'>;
46
47
  export interface IPotentialActions {
47
48
  /**
48
49
  * 返金アクション
49
50
  */
50
- refund: IRefundActionAttributes[];
51
+ refund: IPotentialRefundActionAttributes[];
51
52
  }
52
53
  export type ITransaction = IExtendId<IAttributes>;
53
54
  /**
package/lib/index.d.ts CHANGED
@@ -10,6 +10,7 @@ import * as ActionFactory from './action';
10
10
  import * as AcceptCOAOfferActionFactory from './action/accept/coaOffer';
11
11
  import * as AcceptPayActionFactory from './action/accept/pay';
12
12
  import * as AuthorizeActionFactory from './action/authorize';
13
+ import * as AuthorizeInvoiceActionFactory from './action/authorize/invoice';
13
14
  import * as AuthorizeEventServiceOfferActionFactory from './action/authorize/offer/eventService';
14
15
  import * as AuthorizeMoneyTransferOfferActionFactory from './action/authorize/offer/moneyTransfer';
15
16
  import * as AuthorizeProductOfferActionFactory from './action/authorize/offer/product';
@@ -214,6 +215,7 @@ export declare namespace action {
214
215
  export import IPurpose = ActionFactory.IPurpose;
215
216
  export import ISortOrder = ActionFactory.ISortOrder;
216
217
  export import ISearchConditions = ActionFactory.ISearchConditions;
218
+ export import ISameAs = ActionFactory.ISameAs;
217
219
  namespace accept {
218
220
  export import coaOffer = AcceptCOAOfferActionFactory;
219
221
  export import pay = AcceptPayActionFactory;
@@ -229,6 +231,7 @@ export declare namespace action {
229
231
  export import moneyTransfer = AuthorizeMoneyTransferOfferActionFactory;
230
232
  export import product = AuthorizeProductOfferActionFactory;
231
233
  }
234
+ export import invoice = AuthorizeInvoiceActionFactory;
232
235
  }
233
236
  namespace cancel {
234
237
  export import reservation = CancelReservationActionFactory;
package/lib/index.js CHANGED
@@ -12,6 +12,7 @@ exports.waiter = waiter;
12
12
  var AccountFactory = require("./account");
13
13
  var AcceptCOAOfferActionFactory = require("./action/accept/coaOffer");
14
14
  var AcceptPayActionFactory = require("./action/accept/pay");
15
+ var AuthorizeInvoiceActionFactory = require("./action/authorize/invoice");
15
16
  var AuthorizeEventServiceOfferActionFactory = require("./action/authorize/offer/eventService");
16
17
  var AuthorizeMoneyTransferOfferActionFactory = require("./action/authorize/offer/moneyTransfer");
17
18
  var AuthorizeProductOfferActionFactory = require("./action/authorize/offer/product");
@@ -171,7 +172,6 @@ exports.actionStatusType = actionStatusType_1.ActionStatusType;
171
172
  exports.actionType = actionType_1.ActionType;
172
173
  var action;
173
174
  (function (action) {
174
- // export import accept = AcceptActionFactory;
175
175
  var accept;
176
176
  (function (accept) {
177
177
  accept.coaOffer = AcceptCOAOfferActionFactory;
@@ -193,6 +193,8 @@ var action;
193
193
  // tslint:disable-next-line:no-shadowed-variable
194
194
  offer.product = AuthorizeProductOfferActionFactory;
195
195
  })(offer = authorize.offer || (authorize.offer = {}));
196
+ // tslint:disable-next-line:no-shadowed-variable
197
+ authorize.invoice = AuthorizeInvoiceActionFactory;
196
198
  })(authorize = action.authorize || (action.authorize = {}));
197
199
  var cancel;
198
200
  (function (cancel) {
@@ -0,0 +1,19 @@
1
+ import type * as COA from '@motionpicture/coa-service';
2
+ import * as RecipeFactory from '../recipe';
3
+ export type IUpdTmpReserveSeatArgs = COA.factory.reserve.IUpdTmpReserveSeatArgs;
4
+ export type IUpdTmpReserveSeatResult = COA.factory.reserve.IUpdTmpReserveSeatResult;
5
+ export interface IDirectionUpdTmpReserveSeat extends RecipeFactory.IHowToDirection {
6
+ beforeMedia?: IUpdTmpReserveSeatArgs;
7
+ afterMedia?: IUpdTmpReserveSeatResult;
8
+ }
9
+ export interface IStepUpdTmpReserveSeat extends RecipeFactory.IHowToStep {
10
+ identifier: RecipeFactory.StepIdentifier.updTmpReserveSeat;
11
+ itemListElement: [IDirectionUpdTmpReserveSeat];
12
+ }
13
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
14
+ itemListElement: [IStepUpdTmpReserveSeat];
15
+ }
16
+ export interface IRecipe extends RecipeFactory.IRecipe {
17
+ recipeCategory: RecipeFactory.RecipeCategory.acceptCOAOffer;
18
+ step: IHowToSection[];
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ import { IEntryTranArgs, IEntryTranResult, IExecTranArgs, IExecTranResult } from '../assetTransaction/pay';
2
+ import * as RecipeFactory from '../recipe';
3
+ export interface IDirectionEntryTran extends RecipeFactory.IHowToDirection {
4
+ beforeMedia?: IEntryTranArgs;
5
+ afterMedia?: IEntryTranResult;
6
+ }
7
+ export interface IDirectionExecTran extends RecipeFactory.IHowToDirection {
8
+ beforeMedia?: IExecTranArgs;
9
+ afterMedia?: IExecTranResult;
10
+ }
11
+ export interface IStepEntryTran extends RecipeFactory.IHowToStep {
12
+ identifier: RecipeFactory.StepIdentifier.entryTran;
13
+ itemListElement: [IDirectionEntryTran];
14
+ }
15
+ export interface IStepExecTran extends RecipeFactory.IHowToStep {
16
+ identifier: RecipeFactory.StepIdentifier.execTran;
17
+ itemListElement: [IDirectionExecTran];
18
+ }
19
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
20
+ itemListElement: [IStepEntryTran, IStepExecTran];
21
+ }
22
+ export interface IRecipe extends RecipeFactory.IRecipe {
23
+ recipeCategory: RecipeFactory.RecipeCategory.authorizeInvoice;
24
+ step: IHowToSection[];
25
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import { ISecureTran2Args, ISecureTran2Result } from '../assetTransaction/pay';
2
+ import * as RecipeFactory from '../recipe';
3
+ export interface IDirectionSecureTran2 extends RecipeFactory.IHowToDirection {
4
+ beforeMedia?: ISecureTran2Args;
5
+ afterMedia?: ISecureTran2Result;
6
+ }
7
+ export interface IStepSecureTran2 extends RecipeFactory.IHowToStep {
8
+ identifier: RecipeFactory.StepIdentifier.secureTran2;
9
+ itemListElement: [IDirectionSecureTran2];
10
+ }
11
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
12
+ itemListElement: [IStepSecureTran2];
13
+ }
14
+ export interface IRecipe extends RecipeFactory.IRecipe {
15
+ recipeCategory: RecipeFactory.RecipeCategory.authorizeInvoice3ds;
16
+ step: IHowToSection[];
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ import { factory as surfrockFactory } from '@surfrock/sdk';
2
+ import * as RecipeFactory from '../recipe';
3
+ export type IPurchaseNumberAuthIn = surfrockFactory.service.auth.purchaseNumberAuth.IPurchaseNumberAuthIn;
4
+ export type IPurchaseNumberAuthResult = surfrockFactory.service.auth.purchaseNumberAuth.IPurchaseNumberAuthResult;
5
+ export interface IDirectionPurchaseNumberAuth extends RecipeFactory.IHowToDirection {
6
+ beforeMedia?: IPurchaseNumberAuthIn;
7
+ afterMedia?: IPurchaseNumberAuthResult;
8
+ }
9
+ export interface IStepPurchaseNumberAuth extends RecipeFactory.IHowToStep {
10
+ identifier: RecipeFactory.StepIdentifier.purchaseNumberAuth;
11
+ itemListElement: [IDirectionPurchaseNumberAuth];
12
+ }
13
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
14
+ itemListElement: [IStepPurchaseNumberAuth];
15
+ }
16
+ export interface IRecipe extends RecipeFactory.IRecipe {
17
+ recipeCategory: RecipeFactory.RecipeCategory.checkMovieTicket;
18
+ step: IHowToSection[];
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ import type * as COA from '@motionpicture/coa-service';
2
+ import * as RecipeFactory from '../recipe';
3
+ export type IStateReserveArgs = COA.factory.reserve.IStateReserveArgs;
4
+ export type IStateReserveResult = COA.factory.reserve.IStateReserveResult;
5
+ export type IUpdReserveArgs = COA.factory.reserve.IUpdReserveArgs;
6
+ export type IUpdReserveResult = COA.factory.reserve.IUpdReserveResult;
7
+ export interface IDirectionStateReserve extends RecipeFactory.IHowToDirection {
8
+ beforeMedia?: IStateReserveArgs;
9
+ afterMedia?: IStateReserveResult;
10
+ }
11
+ export interface IDirectionUpdReserve extends RecipeFactory.IHowToDirection {
12
+ beforeMedia?: IUpdReserveArgs;
13
+ afterMedia?: IUpdReserveResult;
14
+ }
15
+ export interface IStepStateReserve extends RecipeFactory.IHowToStep {
16
+ identifier: RecipeFactory.StepIdentifier.stateReserve;
17
+ itemListElement: [IDirectionStateReserve];
18
+ }
19
+ export interface IStepUpdReserve extends RecipeFactory.IHowToStep {
20
+ identifier: RecipeFactory.StepIdentifier.updReserve;
21
+ itemListElement: [IDirectionUpdReserve];
22
+ }
23
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
24
+ itemListElement: [IStepStateReserve, IStepUpdReserve];
25
+ }
26
+ export interface IRecipe extends RecipeFactory.IRecipe {
27
+ recipeCategory: RecipeFactory.RecipeCategory.confirmCOAReserve;
28
+ step: IHowToSection[];
29
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,12 +6,12 @@ export type ISearchTradeResult = GMOFactory.credit.ISearchTradeResult;
6
6
  export type IAlterTranArgs = GMOFactory.credit.IAlterTranArgs & IOptionalSiteArgs;
7
7
  export type IAlterTranResult = GMOFactory.credit.IAlterTranResult;
8
8
  export interface IDirectionSearchTrade extends RecipeFactory.IHowToDirection {
9
- beforeMedia: ISearchTradeArgs;
10
- afterMedia: ISearchTradeResult;
9
+ beforeMedia?: ISearchTradeArgs;
10
+ afterMedia?: ISearchTradeResult;
11
11
  }
12
12
  export interface IDirectionAlterTran extends RecipeFactory.IHowToDirection {
13
13
  beforeMedia?: IAlterTranArgs;
14
- afterMedia: IAlterTranResult;
14
+ afterMedia?: IAlterTranResult;
15
15
  }
16
16
  export interface IStepSearchTrade extends RecipeFactory.IHowToStep {
17
17
  identifier: RecipeFactory.StepIdentifier.searchTrade;
@@ -21,8 +21,7 @@ export interface IStepAlterTran extends RecipeFactory.IHowToStep {
21
21
  identifier: RecipeFactory.StepIdentifier.alterTran;
22
22
  itemListElement: [IDirectionAlterTran];
23
23
  }
24
- export interface IHowToSection {
25
- typeOf: 'HowToSection';
24
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
26
25
  itemListElement: [IStepSearchTrade, IStepAlterTran];
27
26
  }
28
27
  export interface IRecipe extends RecipeFactory.IRecipe {
@@ -1,17 +1,20 @@
1
1
  import { factory as surfrockFactory } from '@surfrock/sdk';
2
2
  import * as RecipeFactory from '../recipe';
3
+ export interface ISeatInfoSyncResultAsError {
4
+ name: string;
5
+ message: string;
6
+ }
3
7
  export type ISeatInfoSyncIn = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncIn;
4
- export type ISeatInfoSyncResult = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncResult;
8
+ export type ISeatInfoSyncResult = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncResult | ISeatInfoSyncResultAsError;
5
9
  export interface IDirectionSeatInfoSync extends RecipeFactory.IHowToDirection {
6
- beforeMedia: ISeatInfoSyncIn;
7
- afterMedia: ISeatInfoSyncResult;
10
+ beforeMedia?: ISeatInfoSyncIn;
11
+ afterMedia?: ISeatInfoSyncResult;
8
12
  }
9
13
  export interface IStepSeatInfoSync extends RecipeFactory.IHowToStep {
10
14
  identifier: RecipeFactory.StepIdentifier.seatInfoSync;
11
15
  itemListElement: [IDirectionSeatInfoSync];
12
16
  }
13
- export interface IHowToSection {
14
- typeOf: 'HowToSection';
17
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
15
18
  itemListElement: [IStepSeatInfoSync];
16
19
  }
17
20
  export interface IRecipe extends RecipeFactory.IRecipe {
@@ -1,12 +1,12 @@
1
1
  import { IEntryTranArgs, IEntryTranResult, IExecTran3dsResult, IExecTranArgs, IExecTranResult } from '../assetTransaction/pay';
2
2
  import * as RecipeFactory from '../recipe';
3
3
  export interface IDirectionEntryTran extends RecipeFactory.IHowToDirection {
4
- beforeMedia: IEntryTranArgs;
5
- afterMedia: IEntryTranResult;
4
+ beforeMedia?: IEntryTranArgs;
5
+ afterMedia?: IEntryTranResult;
6
6
  }
7
7
  export interface IDirectionExecTran extends RecipeFactory.IHowToDirection {
8
- beforeMedia: IExecTranArgs;
9
- afterMedia: IExecTranResult | IExecTran3dsResult;
8
+ beforeMedia?: IExecTranArgs;
9
+ afterMedia?: IExecTranResult | IExecTran3dsResult;
10
10
  }
11
11
  export interface IStepEntryTran extends RecipeFactory.IHowToStep {
12
12
  identifier: RecipeFactory.StepIdentifier.entryTran;
@@ -16,8 +16,7 @@ export interface IStepExecTran extends RecipeFactory.IHowToStep {
16
16
  identifier: RecipeFactory.StepIdentifier.execTran;
17
17
  itemListElement: [IDirectionExecTran];
18
18
  }
19
- export interface IHowToSection {
20
- typeOf: 'HowToSection';
19
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
21
20
  itemListElement: [IStepEntryTran, IStepExecTran];
22
21
  }
23
22
  export interface IRecipe extends RecipeFactory.IRecipe {
@@ -0,0 +1,34 @@
1
+ import type { factory as GMOFactory } from '@motionpicture/gmo-service';
2
+ import * as RecipeFactory from '../recipe';
3
+ export interface IResultAsError {
4
+ name: string;
5
+ message: string;
6
+ }
7
+ export type IOptionalSiteArgs = GMOFactory.credit.IOptionalSiteArgs;
8
+ export type ISearchTradeArgs = GMOFactory.credit.ISearchTradeArgs & IOptionalSiteArgs;
9
+ export type ISearchTradeResult = GMOFactory.credit.ISearchTradeResult;
10
+ export type IAlterTranArgs = GMOFactory.credit.IAlterTranArgs & IOptionalSiteArgs;
11
+ export type IAlterTranResult = GMOFactory.credit.IAlterTranResult | IResultAsError;
12
+ export interface IDirectionSearchTrade extends RecipeFactory.IHowToDirection {
13
+ beforeMedia?: ISearchTradeArgs;
14
+ afterMedia?: ISearchTradeResult;
15
+ }
16
+ export interface IDirectionAlterTran extends RecipeFactory.IHowToDirection {
17
+ beforeMedia?: IAlterTranArgs;
18
+ afterMedia?: IAlterTranResult;
19
+ }
20
+ export interface IStepSearchTrade extends RecipeFactory.IHowToStep {
21
+ identifier: RecipeFactory.StepIdentifier.searchTrade;
22
+ itemListElement: [IDirectionSearchTrade];
23
+ }
24
+ export interface IStepAlterTran extends RecipeFactory.IHowToStep {
25
+ identifier: RecipeFactory.StepIdentifier.alterTran;
26
+ itemListElement: [IDirectionAlterTran];
27
+ }
28
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
29
+ itemListElement: [IStepSearchTrade, IStepAlterTran];
30
+ }
31
+ export interface IRecipe extends RecipeFactory.IRecipe {
32
+ recipeCategory: RecipeFactory.RecipeCategory.refundCreditCard;
33
+ step: IHowToSection[];
34
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,33 @@
1
+ import { factory as surfrockFactory } from '@surfrock/sdk';
2
+ import * as RecipeFactory from '../recipe';
3
+ export interface IResultAsError {
4
+ name: string;
5
+ message: string;
6
+ }
7
+ export type ISeatInfoSyncCancelIn = surfrockFactory.service.seat.seatInfoSyncCancel.ISeatInfoSyncCancelIn;
8
+ export type ISeatInfoSyncCancelResult = surfrockFactory.service.seat.seatInfoSyncCancel.ISeatInfoSyncCancelResult | IResultAsError;
9
+ export type ISeatInfoSyncIn = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncIn;
10
+ export type ISeatInfoSyncResult = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncResult | IResultAsError;
11
+ export interface IDirectionSeatInfoSyncCancel extends RecipeFactory.IHowToDirection {
12
+ beforeMedia?: ISeatInfoSyncCancelIn;
13
+ afterMedia?: ISeatInfoSyncCancelResult;
14
+ }
15
+ export interface IDirectionSeatInfoSync extends RecipeFactory.IHowToDirection {
16
+ beforeMedia?: ISeatInfoSyncIn;
17
+ afterMedia?: ISeatInfoSyncResult;
18
+ }
19
+ export interface IStepSeatInfoSyncCancel extends RecipeFactory.IHowToStep {
20
+ identifier: RecipeFactory.StepIdentifier.seatInfoSyncCancel;
21
+ itemListElement: [IDirectionSeatInfoSyncCancel];
22
+ }
23
+ export interface IStepSeatInfoSync extends RecipeFactory.IHowToStep {
24
+ identifier: RecipeFactory.StepIdentifier.seatInfoSync;
25
+ itemListElement: [IDirectionSeatInfoSync];
26
+ }
27
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
28
+ itemListElement: [IStepSeatInfoSyncCancel] | [IStepSeatInfoSync];
29
+ }
30
+ export interface IRecipe extends RecipeFactory.IRecipe {
31
+ recipeCategory: RecipeFactory.RecipeCategory.refundMovieTicket;
32
+ step: IHowToSection[];
33
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,28 @@
1
+ import type * as COA from '@motionpicture/coa-service';
2
+ import * as RecipeFactory from '../recipe';
3
+ export type IStateReserveArgs = COA.factory.reserve.IStateReserveArgs;
4
+ export type IStateReserveResult = COA.factory.reserve.IStateReserveResult;
5
+ export type IDelReserveArgs = COA.factory.reserve.IDelReserveArgs;
6
+ export interface IDirectionStateReserve extends RecipeFactory.IHowToDirection {
7
+ beforeMedia?: IStateReserveArgs;
8
+ afterMedia?: IStateReserveResult;
9
+ }
10
+ export interface IDirectionDelReserve extends RecipeFactory.IHowToDirection {
11
+ beforeMedia?: IDelReserveArgs;
12
+ afterMedia?: never;
13
+ }
14
+ export interface IStepStateReserve extends RecipeFactory.IHowToStep {
15
+ identifier: RecipeFactory.StepIdentifier.stateReserve;
16
+ itemListElement: [IDirectionStateReserve];
17
+ }
18
+ export interface IStepDelReserve extends RecipeFactory.IHowToStep {
19
+ identifier: RecipeFactory.StepIdentifier.delReserve;
20
+ itemListElement: [IDirectionDelReserve];
21
+ }
22
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
23
+ itemListElement: [IStepStateReserve, IStepDelReserve];
24
+ }
25
+ export interface IRecipe extends RecipeFactory.IRecipe {
26
+ recipeCategory: RecipeFactory.RecipeCategory.returnCOAReserve;
27
+ step: IHowToSection[];
28
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/recipe.d.ts CHANGED
@@ -1,16 +1,30 @@
1
- import { ActionType } from './actionType';
2
1
  import { OrganizationType } from './organizationType';
3
2
  export declare enum RecipeCategory {
4
3
  payCreditCard = "payCreditCard",
5
4
  payMovieTicket = "payMovieTicket",
6
- publishPaymentUrl = "publishPaymentUrl"
5
+ publishPaymentUrl = "publishPaymentUrl",
6
+ checkMovieTicket = "checkMovieTicket",
7
+ refundCreditCard = "refundCreditCard",
8
+ refundMovieTicket = "refundMovieTicket",
9
+ acceptCOAOffer = "acceptCOAOffer",
10
+ confirmCOAReserve = "confirmCOAReserve",
11
+ returnCOAReserve = "returnCOAReserve",
12
+ authorizeInvoice = "authorizeInvoice",
13
+ authorizeInvoice3ds = "authorizeInvoice3ds"
7
14
  }
8
15
  export declare enum StepIdentifier {
9
16
  entryTran = "entryTran",
10
17
  execTran = "execTran",
11
18
  searchTrade = "searchTrade",
12
19
  alterTran = "alterTran",
13
- seatInfoSync = "seatInfoSync"
20
+ secureTran2 = "secureTran2",
21
+ seatInfoSync = "seatInfoSync",
22
+ seatInfoSyncCancel = "seatInfoSyncCancel",
23
+ purchaseNumberAuth = "purchaseNumberAuth",
24
+ updTmpReserveSeat = "updTmpReserveSeat",
25
+ updReserve = "updReserve",
26
+ stateReserve = "stateReserve",
27
+ delReserve = "delReserve"
14
28
  }
15
29
  export interface IHowToDirection {
16
30
  typeOf: 'HowToDirection';
@@ -26,6 +40,9 @@ export interface IHowToSection {
26
40
  typeOf: 'HowToSection';
27
41
  itemListElement: IHowToStep[];
28
42
  }
43
+ /**
44
+ * action recipe
45
+ */
29
46
  export interface IRecipe {
30
47
  project: {
31
48
  id: string;
@@ -34,8 +51,4 @@ export interface IRecipe {
34
51
  typeOf: 'Recipe';
35
52
  recipeCategory: RecipeCategory;
36
53
  step: IHowToSection[];
37
- recipeFor: {
38
- id: string;
39
- typeOf: ActionType;
40
- };
41
54
  }
package/lib/recipe.js CHANGED
@@ -6,6 +6,14 @@ var RecipeCategory;
6
6
  RecipeCategory["payCreditCard"] = "payCreditCard";
7
7
  RecipeCategory["payMovieTicket"] = "payMovieTicket";
8
8
  RecipeCategory["publishPaymentUrl"] = "publishPaymentUrl";
9
+ RecipeCategory["checkMovieTicket"] = "checkMovieTicket";
10
+ RecipeCategory["refundCreditCard"] = "refundCreditCard";
11
+ RecipeCategory["refundMovieTicket"] = "refundMovieTicket";
12
+ RecipeCategory["acceptCOAOffer"] = "acceptCOAOffer";
13
+ RecipeCategory["confirmCOAReserve"] = "confirmCOAReserve";
14
+ RecipeCategory["returnCOAReserve"] = "returnCOAReserve";
15
+ RecipeCategory["authorizeInvoice"] = "authorizeInvoice";
16
+ RecipeCategory["authorizeInvoice3ds"] = "authorizeInvoice3ds";
9
17
  })(RecipeCategory = exports.RecipeCategory || (exports.RecipeCategory = {}));
10
18
  var StepIdentifier;
11
19
  (function (StepIdentifier) {
@@ -13,5 +21,12 @@ var StepIdentifier;
13
21
  StepIdentifier["execTran"] = "execTran";
14
22
  StepIdentifier["searchTrade"] = "searchTrade";
15
23
  StepIdentifier["alterTran"] = "alterTran";
24
+ StepIdentifier["secureTran2"] = "secureTran2";
16
25
  StepIdentifier["seatInfoSync"] = "seatInfoSync";
26
+ StepIdentifier["seatInfoSyncCancel"] = "seatInfoSyncCancel";
27
+ StepIdentifier["purchaseNumberAuth"] = "purchaseNumberAuth";
28
+ StepIdentifier["updTmpReserveSeat"] = "updTmpReserveSeat";
29
+ StepIdentifier["updReserve"] = "updReserve";
30
+ StepIdentifier["stateReserve"] = "stateReserve";
31
+ StepIdentifier["delReserve"] = "delReserve";
17
32
  })(StepIdentifier = exports.StepIdentifier || (exports.StepIdentifier = {}));
@@ -7,7 +7,7 @@ export type IObject4COAOptimized = Pick<IObject4COA, 'transactionNumber' | 'type
7
7
  optimized: boolean;
8
8
  };
9
9
  export type IObject<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObject4COAOptimized : IObject4Chevre;
10
- export type IData = Omit<IConfirmReservationActionAttributes<WebAPIFactory.Identifier>, 'object'> & {
10
+ export type IData = Pick<IConfirmReservationActionAttributes<WebAPIFactory.Identifier>, 'agent' | 'project' | 'purpose' | 'typeOf'> & {
11
11
  object: IObject<WebAPIFactory.Identifier>;
12
12
  };
13
13
  export interface IAttributes extends TaskFactory.IAttributes {
@@ -2,7 +2,7 @@ import { IAttributes as IRefundActionAttributes } from '../action/trade/refund';
2
2
  import { IExtendId } from '../autoGenerated';
3
3
  import * as TaskFactory from '../task';
4
4
  import { TaskName } from '../taskName';
5
- export type IData = IRefundActionAttributes;
5
+ export type IData = Pick<IRefundActionAttributes, 'agent' | 'object' | 'potentialActions' | 'project' | 'purpose' | 'recipient' | 'typeOf'>;
6
6
  export interface IAttributes extends TaskFactory.IAttributes {
7
7
  name: TaskName.Refund;
8
8
  data: IData;
@@ -3,7 +3,7 @@ import { IExtendId } from '../autoGenerated';
3
3
  import * as WebAPIFactory from '../service/webAPI';
4
4
  import * as TaskFactory from '../task';
5
5
  import { TaskName } from '../taskName';
6
- export type IData = IReturnActionAttributes<WebAPIFactory.Identifier>;
6
+ export type IData = Pick<IReturnActionAttributes<WebAPIFactory.Identifier>, 'agent' | 'instrument' | 'object' | 'project' | 'purpose' | 'recipient' | 'typeOf'>;
7
7
  export interface IAttributes extends TaskFactory.IAttributes {
8
8
  name: TaskName.ReturnReserveTransaction;
9
9
  data: IData;
@@ -1,7 +1,6 @@
1
- import * as waiter from '@waiter/factory';
1
+ import type { passport } from '@waiter/factory';
2
2
  import { AccountType } from '../accountType';
3
3
  import { IAttributes as IOrderActionAttributes } from '../action/trade/order';
4
- import { IEntryTranArgs, IEntryTranResult, IExecTran3dsResult, IExecTranArgs, IExecTranResult, IPaymentMethodWithoutDetail } from '../assetTransaction/pay';
5
4
  import { IExtendId } from '../autoGenerated';
6
5
  import { IClientUser } from '../clientUser';
7
6
  import { CreativeWorkType } from '../creativeWorkType';
@@ -26,22 +25,10 @@ export type IAgent = TransactionFactory.IAgent & {
26
25
  export type ICustomer = OrderFactory.ICustomer;
27
26
  export interface IPaymentMethodByPaymentUrl {
28
27
  /**
29
- * 決済方法区分
28
+ * 決済採用時に発行済の決済方法ID
29
+ * 決済承認時に指定が可能
30
30
  */
31
- typeOf: string;
32
31
  paymentMethodId: string;
33
- paymentUrl: string;
34
- issuedThrough: {
35
- /**
36
- * 発行決済サービスID
37
- */
38
- id: string;
39
- };
40
- entryTranArgs?: IEntryTranArgs;
41
- entryTranResult?: IEntryTranResult;
42
- execTranArgs?: IExecTranArgs;
43
- execTranResult?: IExecTranResult | IExecTran3dsResult;
44
- paymentMethod?: IPaymentMethodWithoutDetail;
45
32
  }
46
33
  /**
47
34
  * 注文特典口座
@@ -68,17 +55,17 @@ export interface IObject {
68
55
  */
69
56
  name?: string;
70
57
  /**
71
- * 外部ロケーションでの決済情報
58
+ * 決済URLでの決済情報
72
59
  */
73
60
  paymentMethods?: IPaymentMethodByPaymentUrl;
74
61
  /**
75
62
  * WAITER許可証トークン
76
63
  */
77
- passportToken?: waiter.passport.IEncodedPassport;
64
+ passportToken?: passport.IEncodedPassport;
78
65
  /**
79
66
  * WAITER許可証
80
67
  */
81
- passport?: waiter.passport.IPassport;
68
+ passport?: passport.IPassport;
82
69
  }
83
70
  export interface IStartParamsWithoutDetail {
84
71
  project: Pick<IProject, 'id' | 'typeOf'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.374.0-alpha.2",
3
+ "version": "4.374.0-alpha.20",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",