@chevre/factory 4.374.0-alpha.9 → 4.374.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 (36) hide show
  1. package/lib/action/accept/coaOffer.d.ts +2 -6
  2. package/lib/action/accept/pay.d.ts +2 -2
  3. package/lib/action/authorize/invoice.d.ts +25 -0
  4. package/lib/action/authorize/invoice.js +2 -0
  5. package/lib/action/authorize/offer/eventService.d.ts +6 -4
  6. package/lib/action/check/paymentMethod/movieTicket.d.ts +3 -9
  7. package/lib/action/interact/confirm/reservation.d.ts +8 -2
  8. package/lib/action/interact/confirm.d.ts +1 -1
  9. package/lib/action/trade/pay.d.ts +12 -19
  10. package/lib/action/trade/refund.d.ts +9 -16
  11. package/lib/action/transfer/return/reserveTransaction.d.ts +7 -5
  12. package/lib/action.d.ts +3 -2
  13. package/lib/assetTransaction/pay.d.ts +2 -23
  14. package/lib/assetTransaction/refund.d.ts +2 -1
  15. package/lib/index.d.ts +3 -0
  16. package/lib/index.js +3 -1
  17. package/lib/recipe/authorizeInvoice.d.ts +29 -0
  18. package/lib/recipe/authorizeInvoice.js +2 -0
  19. package/lib/recipe/authorizeInvoice3ds.d.ts +19 -0
  20. package/lib/recipe/authorizeInvoice3ds.js +2 -0
  21. package/lib/recipe/checkMovieTicket.d.ts +6 -3
  22. package/lib/recipe/payCreditCard.d.ts +6 -6
  23. package/lib/recipe/payMovieTicket.d.ts +3 -3
  24. package/lib/recipe/publishPaymentUrl.d.ts +7 -1
  25. package/lib/recipe/refundCreditCard.d.ts +6 -6
  26. package/lib/recipe/refundMovieTicket.d.ts +5 -5
  27. package/lib/recipe/returnCOAReserve.d.ts +28 -0
  28. package/lib/recipe/returnCOAReserve.js +2 -0
  29. package/lib/recipe.d.ts +10 -7
  30. package/lib/recipe.js +5 -0
  31. package/lib/task/authorizePayment.d.ts +0 -1
  32. package/lib/task/confirmReserveTransaction.d.ts +1 -1
  33. package/lib/task/pay.d.ts +15 -4
  34. package/lib/task/refund.d.ts +1 -1
  35. package/lib/task/returnReserveTransaction.d.ts +1 -1
  36. package/package.json +2 -2
@@ -32,7 +32,7 @@ export interface IObject extends Pick<IObjectWithoutDetail<Identifier.COA>, 'acc
32
32
  typeOf: OfferType.AggregateOffer;
33
33
  }
34
34
  export interface IAuthorizeCOAOfferResult {
35
- responseBody: IUpdTmpReserveSeatResult;
35
+ responseBody: Pick<IUpdTmpReserveSeatResult, 'tmpReserveNum'>;
36
36
  }
37
37
  export interface IResult {
38
38
  /**
@@ -63,12 +63,8 @@ export interface IPotentialActions {
63
63
  }
64
64
  export interface IInstrument {
65
65
  typeOf: 'COAReserveTransaction';
66
- /**
67
- * 仮予約実行時は存在する
68
- */
69
- requestBody?: IUpdTmpReserveSeatArgs;
70
66
  }
71
- 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'> {
72
68
  agent: IAgent;
73
69
  instrument: IInstrument;
74
70
  object: IObject;
@@ -2,10 +2,10 @@ import * as ActionFactory from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
3
  import { IAgent, IObjectWithoutDetail } from '../../assetTransaction/pay';
4
4
  import { AssetTransactionType } from '../../assetTransactionType';
5
- import { IRecipe } from '../../recipe/publishPaymentUrl';
5
+ import { IExecTran3dsArgs, IExecTran3dsResult, IRecipe } from '../../recipe/publishPaymentUrl';
6
6
  import { TransactionType } from '../../transactionType';
7
7
  import * as AcceptActionFactory from '../accept';
8
- export { IAgent, IRecipe };
8
+ export { IExecTran3dsArgs, IExecTran3dsResult, IAgent, IRecipe };
9
9
  export interface IObject {
10
10
  object: IObjectWithoutDetail;
11
11
  transactionNumber: string;
@@ -0,0 +1,25 @@
1
+ import * as ActionFactory from '../../action';
2
+ import { ActionType } from '../../actionType';
3
+ import { AssetTransactionType } from '../../assetTransactionType';
4
+ import { IInvoice } from '../../invoice';
5
+ import { IEntryTranArgs, IEntryTranResult, IExecTranArgs, IExecTranResult, IRecipe as IAuthorizeInvoiceRecipe } from '../../recipe/authorizeInvoice';
6
+ import { IRecipe as IAuthorizeInvoice3dsRecipe, ISecureTran2Args, ISecureTran2Result } from '../../recipe/authorizeInvoice3ds';
7
+ import * as AuthorizeActionFactory from '../authorize';
8
+ export { IEntryTranArgs, IEntryTranResult, IExecTranArgs, IExecTranResult, ISecureTran2Args, ISecureTran2Result, IAuthorizeInvoiceRecipe, IAuthorizeInvoice3dsRecipe };
9
+ export type IAgent = ActionFactory.IParticipantAsProject;
10
+ export type IObject = Pick<IInvoice, 'paymentMethodId' | 'typeOf'>;
11
+ export interface IResult {
12
+ }
13
+ export interface ISameAs extends ActionFactory.ISameAs {
14
+ typeOf: AssetTransactionType.Pay;
15
+ }
16
+ export interface IAttributes extends Pick<AuthorizeActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'object' | 'result' | 'project' | 'typeOf' | 'sameAs'> {
17
+ typeOf: ActionType.AuthorizeAction;
18
+ object: IObject;
19
+ agent: IAgent;
20
+ sameAs: ISameAs;
21
+ }
22
+ /**
23
+ * 請求承認アクション
24
+ */
25
+ 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;
@@ -1,16 +1,12 @@
1
- import { factory as surfrockFactory } from '@surfrock/sdk';
2
1
  import * as ActionFactory from '../../../action';
3
2
  import { OrganizationType } from '../../../organizationType';
4
3
  import { IMovieTicketPaymentCard, IMovieTicketServiceOutput } from '../../../paymentMethod/paymentCard/movieTicket';
5
- import { IPurchaseNumberAuthIn, IPurchaseNumberAuthResult, IRecipe } from '../../../recipe/checkMovieTicket';
4
+ import { IMkknInfo, IPurchaseNumberAuthIn, IPurchaseNumberAuthResult, IPurchaseNumberInfo, IRecipe, IYkknInfo } from '../../../recipe/checkMovieTicket';
6
5
  import { TransactionType } from '../../../transactionType';
7
6
  import * as CheckActionFactory from '../../check';
8
7
  import * as PayActionFactory from '../../trade/pay';
9
- export { IPurchaseNumberAuthIn, IPurchaseNumberAuthResult, IRecipe };
8
+ export { IMkknInfo, IYkknInfo, IPurchaseNumberInfo, IPurchaseNumberAuthIn, IPurchaseNumberAuthResult, IRecipe };
10
9
  export type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
11
- export type IPurchaseNumberInfo = surfrockFactory.service.auth.purchaseNumberAuth.IPurchaseNumberInfo;
12
- export type IMkknInfo = surfrockFactory.service.auth.purchaseNumberAuth.INvalidTicket;
13
- export type IYkknInfo = surfrockFactory.service.auth.purchaseNumberAuth.IValidTicket;
14
10
  /**
15
11
  * 認証対象の決済カード
16
12
  */
@@ -35,15 +31,13 @@ export interface IPaymentService extends Pick<PayActionFactory.IPaymentService,
35
31
  }
36
32
  export type IObject = IPaymentService[];
37
33
  export interface IResult {
38
- purchaseNumberAuthIn: IPurchaseNumberAuthIn;
39
- purchaseNumberAuthResult: IPurchaseNumberAuthResult;
40
34
  }
41
35
  export type IError = any;
42
36
  export interface IPurpose {
43
37
  typeOf: TransactionType.PlaceOrder;
44
38
  id: string;
45
39
  }
46
- export interface IAttributes extends CheckActionFactory.IAttributes<IObject, IResult> {
40
+ export interface IAttributes extends Pick<CheckActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'object' | 'potentialActions' | 'purpose' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
47
41
  agent: IAgent;
48
42
  object: IObject;
49
43
  purpose?: IPurpose;
@@ -8,17 +8,23 @@ import * as ConfirmActionFactory from '../confirm';
8
8
  export { IRecipe as IConfirmCOAReserveRecipe };
9
9
  export type IAgent = IParticipantAsProject;
10
10
  export type IObject4COA = IUpdReserveArgs & {
11
+ /**
12
+ * 取引番号は必須
13
+ */
11
14
  transactionNumber: string;
12
15
  typeOf: 'COAReserveTransaction';
13
16
  };
14
17
  export type IObject4Chevre = Pick<ReserveTransactionFactory.IConfirmParams, 'transactionNumber' | 'potentialActions'> & {
18
+ /**
19
+ * 取引番号は必須
20
+ */
15
21
  transactionNumber: string;
16
22
  typeOf: AssetTransactionType.Reserve;
17
23
  };
18
24
  export type IObject<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObject4COA : IObject4Chevre;
19
25
  export type IPurpose = ISimpleOrder;
20
- export type IResult = any;
21
- export type IInstrument<T extends WebAPIFactory.Identifier> = WebAPIFactory.IService<T>;
26
+ export interface IResult {
27
+ }
22
28
  export interface IAttributes<T extends WebAPIFactory.Identifier> extends ConfirmActionFactory.IAttributes<IObject<T>, IResult> {
23
29
  agent: IAgent;
24
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
  }
@@ -1,5 +1,3 @@
1
- import type { factory as GMOFactory } from '@motionpicture/gmo-service';
2
- import { factory as surfrockFactory } from '@surfrock/sdk';
3
1
  import * as AccountFactory from '../../account';
4
2
  import * as ActionFactory from '../../action';
5
3
  import { IAttributes as IReturnOrderActionAttributes } from '../../action/transfer/return/order';
@@ -10,11 +8,11 @@ import { IPaymentServiceOutput } from '../../invoice';
10
8
  import { ITotalPaymentDue, OrderType } from '../../order';
11
9
  import { IMovieTicketPaymentCard } from '../../paymentMethod/paymentCard/movieTicket';
12
10
  import { IPropertyValue } from '../../propertyValue';
13
- import { IRecipe as IPayCreditCardRecipe } from '../../recipe/payCreditCard';
14
- import { IRecipe as IPayMovieTicketRecipe } from '../../recipe/payMovieTicket';
11
+ import { IAlterTranResult, IRecipe as IPayCreditCardRecipe } from '../../recipe/payCreditCard';
12
+ import { IRecipe as IPayMovieTicketRecipe, ISeatInfoSyncIn, ISeatInfoSyncResult } from '../../recipe/payMovieTicket';
15
13
  import { PaymentServiceType } from '../../service/paymentService';
16
14
  import { IAttributes as IInformActionAttributes } from '../interact/inform';
17
- export { IPayCreditCardRecipe, IPayMovieTicketRecipe };
15
+ export { IAlterTranResult, ISeatInfoSyncIn, ISeatInfoSyncResult, IPayCreditCardRecipe, IPayMovieTicketRecipe };
18
16
  export import IAgent = ActionFactory.IParticipantAsProject;
19
17
  export import IRecipient = ActionFactory.IParticipantAsSeller;
20
18
  export interface IOrderAsPayPurpose {
@@ -43,7 +41,6 @@ export interface IPendingTransaction {
43
41
  };
44
42
  };
45
43
  }
46
- export type ICreditCardSales = GMOFactory.credit.IAlterTranResult;
47
44
  /**
48
45
  * 決済方法インターフェース
49
46
  */
@@ -100,21 +97,12 @@ export interface IPotentialActions {
100
97
  add2report: boolean;
101
98
  informPayment?: IInformPayment[];
102
99
  }
103
- export type ISeatInfoSyncIn = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncIn;
104
- export type ISeatInfoSyncResult = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncResult;
105
100
  export interface IInstrument {
106
- typeOf: string;
107
- seatInfoSyncIn?: ISeatInfoSyncIn;
101
+ id: string;
102
+ transactionNumber: string;
103
+ typeOf: AssetTransactionType.Pay;
108
104
  }
109
- /**
110
- * 決済結果
111
- */
112
105
  export interface IResult {
113
- /**
114
- * クレジットカード売上結果
115
- */
116
- creditCardSales?: ICreditCardSales[];
117
- seatInfoSyncResult?: ISeatInfoSyncResult;
118
106
  }
119
107
  export interface ILocation {
120
108
  typeOf: CreativeWorkType.WebApplication;
@@ -123,8 +111,13 @@ export interface ILocation {
123
111
  */
124
112
  id: string;
125
113
  }
126
- export interface IAttributes extends Omit<ActionFactory.IAttributes<ActionType.PayAction, IObject, IResult>, 'description' | 'identifier' | 'location'> {
114
+ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.PayAction, IObject, IResult>, 'agent' | 'error' | 'instrument' | 'location' | 'object' | 'potentialActions' | 'purpose' | 'recipient' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
127
115
  agent: IAgent;
116
+ /**
117
+ * redefine IInstrument(2024-06-15~)
118
+ * 注文決済の場合、決済取引として存在(2024-06-15~)
119
+ * 返品手数料決済の場合、存在しない
120
+ */
128
121
  instrument?: IInstrument;
129
122
  potentialActions?: IPotentialActions;
130
123
  purpose: IPurpose;
@@ -1,14 +1,12 @@
1
- import type * as GMO from '@motionpicture/gmo-service';
2
- import { factory as surfrockFactory } from '@surfrock/sdk';
3
1
  import * as ActionFactory from '../../action';
4
2
  import { ActionType } from '../../actionType';
5
- import { IRecipe as IRefundCreditCardRecipe } from '../../recipe/refundCreditCard';
6
- import { IRecipe as IRefundMovieTicketRecipe } from '../../recipe/refundMovieTicket';
3
+ import { IAlterTranResult, IRecipe as IRefundCreditCardRecipe } from '../../recipe/refundCreditCard';
4
+ import { IRecipe as IRefundMovieTicketRecipe, ISeatInfoSyncCancelIn, ISeatInfoSyncCancelResult, ISeatInfoSyncIn, ISeatInfoSyncResult } from '../../recipe/refundMovieTicket';
7
5
  import { TransactionType } from '../../transactionType';
8
6
  import { IAttributes as IInformActionAttributes } from '../interact/inform';
9
7
  import { IOrderAsPayPurpose, IPaymentMethod, IPaymentService as IPaymentServiceOnPay, IPurposeAsAssetTransaction, IPurposeAsReturnAction } from './pay';
10
- export { IRefundCreditCardRecipe, IRefundMovieTicketRecipe };
11
- export type IAgent = ActionFactory.IParticipantAsSeller | ActionFactory.IParticipantAsPerson;
8
+ export { IAlterTranResult, ISeatInfoSyncCancelIn, ISeatInfoSyncCancelResult, ISeatInfoSyncIn, ISeatInfoSyncResult, IRefundCreditCardRecipe, IRefundMovieTicketRecipe };
9
+ export type IAgent = ActionFactory.IParticipantAsSeller;
12
10
  export type IRecipient = ActionFactory.IParticipant;
13
11
  export type IPaymentService = Omit<IPaymentServiceOnPay, 'paymentMethod'> & {
14
12
  refundFee?: number;
@@ -19,19 +17,11 @@ export interface IAlterTranResultAsError {
19
17
  name: string;
20
18
  message: string;
21
19
  }
22
- export type IAlterTranResult = GMO.factory.credit.IAlterTranResult;
23
20
  export interface ISeatInfoSyncResultAsError {
24
21
  name: string;
25
22
  message: string;
26
23
  }
27
- export type ISeatInfoSyncIn = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncIn;
28
- export type ISeatInfoSyncResult = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncResult | ISeatInfoSyncResultAsError;
29
- export type ISeatInfoSyncCancelIn = surfrockFactory.service.seat.seatInfoSyncCancel.ISeatInfoSyncCancelIn;
30
- export type ISeatInfoSyncCancelResult = surfrockFactory.service.seat.seatInfoSyncCancel.ISeatInfoSyncCancelResult | ISeatInfoSyncResultAsError;
31
24
  export interface IResult {
32
- alterTranResult?: (IAlterTranResult | IAlterTranResultAsError)[];
33
- seatInfoSyncResult?: ISeatInfoSyncResult;
34
- seatInfoSyncCancelResult?: ISeatInfoSyncCancelResult;
35
25
  /**
36
26
  * ペイメントカード決済の場合
37
27
  */
@@ -48,8 +38,11 @@ export interface IPurposeAsPlaceOrder {
48
38
  typeOf: TransactionType.PlaceOrder;
49
39
  id: string;
50
40
  }
51
- export type IPurpose = IOrderAsPayPurpose | IPurposeAsAssetTransaction | IPurposeAsReturnAction | IPurposeAsPlaceOrder;
52
- export interface IAttributes extends ActionFactory.IAttributes<ActionType.RefundAction, IObject, IResult> {
41
+ export type IPurpose = IOrderAsPayPurpose | // 決済カードIF承認時の着券取消の場合
42
+ IPurposeAsReturnAction | // 注文返品の場合
43
+ IPurposeAsPlaceOrder | // 注文取引における発行済決済URL無効化の場合
44
+ IPurposeAsAssetTransaction;
45
+ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.RefundAction, IObject, IResult>, 'agent' | 'error' | 'object' | 'potentialActions' | 'purpose' | 'recipient' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
53
46
  agent: IAgent;
54
47
  recipient?: IRecipient;
55
48
  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;
package/lib/action.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { ActionStatusType } from './actionStatusType';
2
2
  import { ActionType } from './actionType';
3
+ import { AssetTransactionType } from './assetTransactionType';
3
4
  import { IExtendId } from './autoGenerated';
4
5
  import { CreativeWorkType } from './creativeWorkType';
5
6
  import { OrganizationType } from './organizationType';
@@ -47,10 +48,10 @@ export interface IPurpose {
47
48
  }
48
49
  export interface ISameAs {
49
50
  /**
50
- * タスクID
51
+ * タスクID or 資産取引ID
51
52
  */
52
53
  id: string;
53
- typeOf: 'Task';
54
+ typeOf: 'Task' | AssetTransactionType.Pay;
54
55
  }
55
56
  /**
56
57
  * アクション属性
@@ -1,5 +1,4 @@
1
- import type { factory as GMOFactory } from '@motionpicture/gmo-service';
2
- import { IAction as IPayAction, IAttributes as IPayActionAttributes, ILocation, IMovieTicket, IOrderAsPayPurpose, IPendingTransaction, IPurpose as IPayPurpose, IRecipient as IPayRecipient } from '../action/trade/pay';
1
+ import { IAction as IPayAction, ILocation, IMovieTicket, IOrderAsPayPurpose, IPendingTransaction, IPurpose as IPayPurpose, IRecipient as IPayRecipient } from '../action/trade/pay';
3
2
  import * as AssetTransactionFactory from '../assetTransaction';
4
3
  import { AssetTransactionType } from '../assetTransactionType';
5
4
  import { IExtendId } from '../autoGenerated';
@@ -21,13 +20,6 @@ export type IFromLocation = ITokenizedPaymentCard;
21
20
  */
22
21
  type ICreditCard = (IUncheckedCardRaw | IUncheckedCardTokenized | IUnauthorizedCardOfMember) & ICreditCard3DS;
23
22
  export { ICreditCard, ICreditCard3DS, IUnauthorizedCardOfMember, IUncheckedCardRaw, IUncheckedCardTokenized };
24
- export type IEntryTranArgs = GMOFactory.credit.IEntryTranArgs;
25
- export type IEntryTranResult = GMOFactory.credit.IEntryTranResult;
26
- export type IExecTranArgs = GMOFactory.credit.IExecTranArgs;
27
- export type IExecTranResult = GMOFactory.credit.IExecTranResult;
28
- export type IExecTran3dsArgs = GMOFactory.credit.IExecTran3dsArgs;
29
- export type IExecTran3dsResult = GMOFactory.credit.IExecTran3dsResult;
30
- export type ISecureTran2Result = GMOFactory.credit.ISecureTran2Result;
31
23
  export interface IPaymentMethodAmount extends Pick<IMonetaryAmount, 'currency' | 'typeOf' | 'value'> {
32
24
  value: number;
33
25
  }
@@ -98,15 +90,6 @@ export interface IObject {
98
90
  paymentMethod: IPaymentMethod;
99
91
  onPaymentStatusChanged?: IOnPaymentStatusChanged;
100
92
  pendingTransaction?: IPendingTransaction;
101
- entryTranArgs?: IEntryTranArgs;
102
- entryTranResult?: IEntryTranResult;
103
- execTranArgs?: IExecTranArgs | IExecTran3dsArgs;
104
- execTranResult?: IExecTranResult | IExecTran3dsResult;
105
- secureTran2Result?: ISecureTran2Result;
106
- /**
107
- * PaymentServiceType.MovieTicketの場合、着券アクション
108
- */
109
- payAction?: IPayActionInObject;
110
93
  accountsReceivablesByServiceType?: IAccountsReceivableByServiceType[];
111
94
  }
112
95
  export interface IPaymentMethodWithoutDetail extends IPaymentMethod {
@@ -143,13 +126,9 @@ export interface IOptimizedPayAction4order {
143
126
  confirmationNumber: string;
144
127
  orderNumber: string;
145
128
  };
146
- typeOf?: never;
147
129
  }
148
130
  export interface IPotentialActions {
149
- /**
150
- * 決済アクション
151
- */
152
- pay: IPayActionAttributes[] | IOptimizedPayAction4order[];
131
+ pay: IOptimizedPayAction4order[];
153
132
  }
154
133
  export interface IPotentialActionsParams {
155
134
  pay: {
@@ -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,29 @@
1
+ import type { factory as GMO } from '@motionpicture/gmo-service';
2
+ import * as RecipeFactory from '../recipe';
3
+ export type IEntryTranArgs = GMO.credit.IEntryTranArgs;
4
+ export type IEntryTranResult = GMO.credit.IEntryTranResult;
5
+ export type IExecTranArgs = GMO.credit.IExecTranArgs;
6
+ export type IExecTranResult = GMO.credit.IExecTranResult;
7
+ export interface IDirectionEntryTran extends RecipeFactory.IHowToDirection {
8
+ beforeMedia?: IEntryTranArgs;
9
+ afterMedia?: IEntryTranResult;
10
+ }
11
+ export interface IDirectionExecTran extends RecipeFactory.IHowToDirection {
12
+ beforeMedia?: IExecTranArgs;
13
+ afterMedia?: IExecTranResult;
14
+ }
15
+ export interface IStepEntryTran extends RecipeFactory.IHowToStep {
16
+ identifier: RecipeFactory.StepIdentifier.entryTran;
17
+ itemListElement: [IDirectionEntryTran];
18
+ }
19
+ export interface IStepExecTran extends RecipeFactory.IHowToStep {
20
+ identifier: RecipeFactory.StepIdentifier.execTran;
21
+ itemListElement: [IDirectionExecTran];
22
+ }
23
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
24
+ itemListElement: [IStepEntryTran, IStepExecTran];
25
+ }
26
+ export interface IRecipe extends RecipeFactory.IRecipe {
27
+ recipeCategory: RecipeFactory.RecipeCategory.authorizeInvoice;
28
+ step: IHowToSection[];
29
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ import type { factory as GMO } from '@motionpicture/gmo-service';
2
+ import * as RecipeFactory from '../recipe';
3
+ export type ISecureTran2Args = GMO.credit.ISecureTran2Args;
4
+ export type ISecureTran2Result = GMO.credit.ISecureTran2Result;
5
+ export interface IDirectionSecureTran2 extends RecipeFactory.IHowToDirection {
6
+ beforeMedia?: ISecureTran2Args;
7
+ afterMedia?: ISecureTran2Result;
8
+ }
9
+ export interface IStepSecureTran2 extends RecipeFactory.IHowToStep {
10
+ identifier: RecipeFactory.StepIdentifier.secureTran2;
11
+ itemListElement: [IDirectionSecureTran2];
12
+ }
13
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
14
+ itemListElement: [IStepSecureTran2];
15
+ }
16
+ export interface IRecipe extends RecipeFactory.IRecipe {
17
+ recipeCategory: RecipeFactory.RecipeCategory.authorizeInvoice3ds;
18
+ step: IHowToSection[];
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,10 @@
1
- import { factory as surfrockFactory } from '@surfrock/sdk';
1
+ import type { factory as SFR } from '@surfrock/sdk';
2
2
  import * as RecipeFactory from '../recipe';
3
- export type IPurchaseNumberAuthIn = surfrockFactory.service.auth.purchaseNumberAuth.IPurchaseNumberAuthIn;
4
- export type IPurchaseNumberAuthResult = surfrockFactory.service.auth.purchaseNumberAuth.IPurchaseNumberAuthResult;
3
+ export type IPurchaseNumberAuthIn = SFR.service.auth.purchaseNumberAuth.IPurchaseNumberAuthIn;
4
+ export type IPurchaseNumberAuthResult = SFR.service.auth.purchaseNumberAuth.IPurchaseNumberAuthResult;
5
+ export type IPurchaseNumberInfo = SFR.service.auth.purchaseNumberAuth.IPurchaseNumberInfo;
6
+ export type IMkknInfo = SFR.service.auth.purchaseNumberAuth.INvalidTicket;
7
+ export type IYkknInfo = SFR.service.auth.purchaseNumberAuth.IValidTicket;
5
8
  export interface IDirectionPurchaseNumberAuth extends RecipeFactory.IHowToDirection {
6
9
  beforeMedia?: IPurchaseNumberAuthIn;
7
10
  afterMedia?: IPurchaseNumberAuthResult;
@@ -1,10 +1,10 @@
1
- import type { factory as GMOFactory } from '@motionpicture/gmo-service';
1
+ import type { factory as GMO } from '@motionpicture/gmo-service';
2
2
  import * as RecipeFactory from '../recipe';
3
- export type IOptionalSiteArgs = GMOFactory.credit.IOptionalSiteArgs;
4
- export type ISearchTradeArgs = GMOFactory.credit.ISearchTradeArgs & IOptionalSiteArgs;
5
- export type ISearchTradeResult = GMOFactory.credit.ISearchTradeResult;
6
- export type IAlterTranArgs = GMOFactory.credit.IAlterTranArgs & IOptionalSiteArgs;
7
- export type IAlterTranResult = GMOFactory.credit.IAlterTranResult;
3
+ export type IOptionalSiteArgs = GMO.credit.IOptionalSiteArgs;
4
+ export type ISearchTradeArgs = GMO.credit.ISearchTradeArgs & IOptionalSiteArgs;
5
+ export type ISearchTradeResult = GMO.credit.ISearchTradeResult;
6
+ export type IAlterTranArgs = GMO.credit.IAlterTranArgs & IOptionalSiteArgs;
7
+ export type IAlterTranResult = GMO.credit.IAlterTranResult;
8
8
  export interface IDirectionSearchTrade extends RecipeFactory.IHowToDirection {
9
9
  beforeMedia?: ISearchTradeArgs;
10
10
  afterMedia?: ISearchTradeResult;
@@ -1,11 +1,11 @@
1
- import { factory as surfrockFactory } from '@surfrock/sdk';
1
+ import type { factory as SFR } from '@surfrock/sdk';
2
2
  import * as RecipeFactory from '../recipe';
3
3
  export interface ISeatInfoSyncResultAsError {
4
4
  name: string;
5
5
  message: string;
6
6
  }
7
- export type ISeatInfoSyncIn = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncIn;
8
- export type ISeatInfoSyncResult = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncResult | ISeatInfoSyncResultAsError;
7
+ export type ISeatInfoSyncIn = SFR.service.seat.seatInfoSync.ISeatInfoSyncIn;
8
+ export type ISeatInfoSyncResult = SFR.service.seat.seatInfoSync.ISeatInfoSyncResult | ISeatInfoSyncResultAsError;
9
9
  export interface IDirectionSeatInfoSync extends RecipeFactory.IHowToDirection {
10
10
  beforeMedia?: ISeatInfoSyncIn;
11
11
  afterMedia?: ISeatInfoSyncResult;
@@ -1,5 +1,11 @@
1
- import { IEntryTranArgs, IEntryTranResult, IExecTran3dsResult, IExecTranArgs, IExecTranResult } from '../assetTransaction/pay';
1
+ import type { factory as GMO } from '@motionpicture/gmo-service';
2
2
  import * as RecipeFactory from '../recipe';
3
+ export type IEntryTranArgs = GMO.credit.IEntryTranArgs;
4
+ export type IEntryTranResult = GMO.credit.IEntryTranResult;
5
+ export type IExecTranArgs = GMO.credit.IExecTranArgs;
6
+ export type IExecTranResult = GMO.credit.IExecTranResult;
7
+ export type IExecTran3dsArgs = GMO.credit.IExecTran3dsArgs;
8
+ export type IExecTran3dsResult = GMO.credit.IExecTran3dsResult;
3
9
  export interface IDirectionEntryTran extends RecipeFactory.IHowToDirection {
4
10
  beforeMedia?: IEntryTranArgs;
5
11
  afterMedia?: IEntryTranResult;
@@ -1,14 +1,14 @@
1
- import type { factory as GMOFactory } from '@motionpicture/gmo-service';
1
+ import type { factory as GMO } from '@motionpicture/gmo-service';
2
2
  import * as RecipeFactory from '../recipe';
3
3
  export interface IResultAsError {
4
4
  name: string;
5
5
  message: string;
6
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;
7
+ export type IOptionalSiteArgs = GMO.credit.IOptionalSiteArgs;
8
+ export type ISearchTradeArgs = GMO.credit.ISearchTradeArgs & IOptionalSiteArgs;
9
+ export type ISearchTradeResult = GMO.credit.ISearchTradeResult;
10
+ export type IAlterTranArgs = GMO.credit.IAlterTranArgs & IOptionalSiteArgs;
11
+ export type IAlterTranResult = GMO.credit.IAlterTranResult | IResultAsError;
12
12
  export interface IDirectionSearchTrade extends RecipeFactory.IHowToDirection {
13
13
  beforeMedia?: ISearchTradeArgs;
14
14
  afterMedia?: ISearchTradeResult;
@@ -1,13 +1,13 @@
1
- import { factory as surfrockFactory } from '@surfrock/sdk';
1
+ import type { factory as SFR } from '@surfrock/sdk';
2
2
  import * as RecipeFactory from '../recipe';
3
3
  export interface IResultAsError {
4
4
  name: string;
5
5
  message: string;
6
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;
7
+ export type ISeatInfoSyncCancelIn = SFR.service.seat.seatInfoSyncCancel.ISeatInfoSyncCancelIn;
8
+ export type ISeatInfoSyncCancelResult = SFR.service.seat.seatInfoSyncCancel.ISeatInfoSyncCancelResult | IResultAsError;
9
+ export type ISeatInfoSyncIn = SFR.service.seat.seatInfoSync.ISeatInfoSyncIn;
10
+ export type ISeatInfoSyncResult = SFR.service.seat.seatInfoSync.ISeatInfoSyncResult | IResultAsError;
11
11
  export interface IDirectionSeatInfoSyncCancel extends RecipeFactory.IHowToDirection {
12
12
  beforeMedia?: ISeatInfoSyncCancelIn;
13
13
  afterMedia?: ISeatInfoSyncCancelResult;
@@ -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,4 +1,3 @@
1
- import { ActionType } from './actionType';
2
1
  import { OrganizationType } from './organizationType';
3
2
  export declare enum RecipeCategory {
4
3
  payCreditCard = "payCreditCard",
@@ -8,19 +7,24 @@ export declare enum RecipeCategory {
8
7
  refundCreditCard = "refundCreditCard",
9
8
  refundMovieTicket = "refundMovieTicket",
10
9
  acceptCOAOffer = "acceptCOAOffer",
11
- confirmCOAReserve = "confirmCOAReserve"
10
+ confirmCOAReserve = "confirmCOAReserve",
11
+ returnCOAReserve = "returnCOAReserve",
12
+ authorizeInvoice = "authorizeInvoice",
13
+ authorizeInvoice3ds = "authorizeInvoice3ds"
12
14
  }
13
15
  export declare enum StepIdentifier {
14
16
  entryTran = "entryTran",
15
17
  execTran = "execTran",
16
18
  searchTrade = "searchTrade",
17
19
  alterTran = "alterTran",
20
+ secureTran2 = "secureTran2",
18
21
  seatInfoSync = "seatInfoSync",
19
22
  seatInfoSyncCancel = "seatInfoSyncCancel",
20
23
  purchaseNumberAuth = "purchaseNumberAuth",
21
24
  updTmpReserveSeat = "updTmpReserveSeat",
22
25
  updReserve = "updReserve",
23
- stateReserve = "stateReserve"
26
+ stateReserve = "stateReserve",
27
+ delReserve = "delReserve"
24
28
  }
25
29
  export interface IHowToDirection {
26
30
  typeOf: 'HowToDirection';
@@ -36,6 +40,9 @@ export interface IHowToSection {
36
40
  typeOf: 'HowToSection';
37
41
  itemListElement: IHowToStep[];
38
42
  }
43
+ /**
44
+ * action recipe
45
+ */
39
46
  export interface IRecipe {
40
47
  project: {
41
48
  id: string;
@@ -44,8 +51,4 @@ export interface IRecipe {
44
51
  typeOf: 'Recipe';
45
52
  recipeCategory: RecipeCategory;
46
53
  step: IHowToSection[];
47
- recipeFor: {
48
- id: string;
49
- typeOf: ActionType;
50
- };
51
54
  }
package/lib/recipe.js CHANGED
@@ -11,6 +11,9 @@ var RecipeCategory;
11
11
  RecipeCategory["refundMovieTicket"] = "refundMovieTicket";
12
12
  RecipeCategory["acceptCOAOffer"] = "acceptCOAOffer";
13
13
  RecipeCategory["confirmCOAReserve"] = "confirmCOAReserve";
14
+ RecipeCategory["returnCOAReserve"] = "returnCOAReserve";
15
+ RecipeCategory["authorizeInvoice"] = "authorizeInvoice";
16
+ RecipeCategory["authorizeInvoice3ds"] = "authorizeInvoice3ds";
14
17
  })(RecipeCategory = exports.RecipeCategory || (exports.RecipeCategory = {}));
15
18
  var StepIdentifier;
16
19
  (function (StepIdentifier) {
@@ -18,10 +21,12 @@ var StepIdentifier;
18
21
  StepIdentifier["execTran"] = "execTran";
19
22
  StepIdentifier["searchTrade"] = "searchTrade";
20
23
  StepIdentifier["alterTran"] = "alterTran";
24
+ StepIdentifier["secureTran2"] = "secureTran2";
21
25
  StepIdentifier["seatInfoSync"] = "seatInfoSync";
22
26
  StepIdentifier["seatInfoSyncCancel"] = "seatInfoSyncCancel";
23
27
  StepIdentifier["purchaseNumberAuth"] = "purchaseNumberAuth";
24
28
  StepIdentifier["updTmpReserveSeat"] = "updTmpReserveSeat";
25
29
  StepIdentifier["updReserve"] = "updReserve";
26
30
  StepIdentifier["stateReserve"] = "stateReserve";
31
+ StepIdentifier["delReserve"] = "delReserve";
27
32
  })(StepIdentifier = exports.StepIdentifier || (exports.StepIdentifier = {}));
@@ -20,7 +20,6 @@ export interface IData {
20
20
  * アクション失敗時に即時に決済取引を中止するかどうか
21
21
  */
22
22
  useCancelPayTransactionOnFailed: boolean;
23
- useCheckMovieTicketBeforePay: boolean;
24
23
  useCheckByIdentifierIfNotYet: boolean;
25
24
  useUnlockTransactionProcess: boolean;
26
25
  };
@@ -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 {
package/lib/task/pay.d.ts CHANGED
@@ -1,11 +1,22 @@
1
- import { IAttributes as IPayActionAttributes } from '../action/trade/pay';
1
+ import { IAttributes as IPayActionAttributes, IPurposeAsReturnAction } from '../action/trade/pay';
2
2
  import { IOptimizedPayAction4order } from '../assetTransaction/pay';
3
3
  import { IExtendId } from '../autoGenerated';
4
4
  import * as TaskFactory from '../task';
5
5
  import { TaskName } from '../taskName';
6
- export { IOptimizedPayAction4order };
7
- export type IPayActionData = Pick<IPayActionAttributes, 'agent' | 'instrument' | 'location' | 'object' | 'potentialActions' | 'project' | 'purpose' | 'recipient' | 'typeOf'>;
8
- export type IData = IPayActionData | IOptimizedPayAction4order;
6
+ /**
7
+ * 返品手数料決済の場合
8
+ */
9
+ export interface IPayReturnFeeAction extends Pick<IPayActionAttributes, 'object' | 'potentialActions' | 'purpose' | 'typeOf'> {
10
+ purpose: IPurposeAsReturnAction;
11
+ }
12
+ /**
13
+ * 注文決済の場合
14
+ */
15
+ export type IPayOrderAction = Pick<IOptimizedPayAction4order, 'object' | 'purpose'> & {
16
+ typeOf?: never;
17
+ potentialActions?: never;
18
+ };
19
+ export type IData = IPayReturnFeeAction | IPayOrderAction;
9
20
  export interface IAttributes extends TaskFactory.IAttributes {
10
21
  name: TaskName.Pay;
11
22
  data: IData;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.374.0-alpha.9",
3
+ "version": "4.374.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -56,7 +56,7 @@
56
56
  "@aws-sdk/client-cognito-identity-provider": "3.438.0",
57
57
  "@motionpicture/coa-service": "9.4.0",
58
58
  "@motionpicture/gmo-service": "5.3.0",
59
- "@surfrock/sdk": "1.3.0-alpha.2",
59
+ "@surfrock/sdk": "1.3.0",
60
60
  "@waiter/factory": "2.2.0",
61
61
  "setprototypeof": "1.2.0"
62
62
  },