@chevre/factory 4.374.0-alpha.0 → 4.374.0-alpha.10

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.
@@ -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: IUpdTmpReserveSeatResult;
36
+ }
33
37
  export interface IResult {
34
38
  /**
35
39
  * 承認アクションID
@@ -62,7 +66,7 @@ export interface IInstrument {
62
66
  /**
63
67
  * 仮予約実行時は存在する
64
68
  */
65
- requestBody?: IAuthorizeOfferResult<Identifier.COA>['requestBody'];
69
+ requestBody?: IUpdTmpReserveSeatArgs;
66
70
  }
67
71
  export interface IAttributes extends AcceptActionFactory.IAttributes<IObject, IResult> {
68
72
  agent: IAgent;
@@ -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;
@@ -1,12 +1,13 @@
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 & {
10
11
  transactionNumber: string;
11
12
  typeOf: 'COAReserveTransaction';
12
13
  };
@@ -1,4 +1,5 @@
1
1
  import type { factory as GMOFactory } from '@motionpicture/gmo-service';
2
+ import { factory as surfrockFactory } from '@surfrock/sdk';
2
3
  import * as AccountFactory from '../../account';
3
4
  import * as ActionFactory from '../../action';
4
5
  import { IAttributes as IReturnOrderActionAttributes } from '../../action/transfer/return/order';
@@ -9,8 +10,11 @@ import { IPaymentServiceOutput } from '../../invoice';
9
10
  import { ITotalPaymentDue, OrderType } from '../../order';
10
11
  import { IMovieTicketPaymentCard } from '../../paymentMethod/paymentCard/movieTicket';
11
12
  import { IPropertyValue } from '../../propertyValue';
13
+ import { IRecipe as IPayCreditCardRecipe } from '../../recipe/payCreditCard';
14
+ import { IRecipe as IPayMovieTicketRecipe } from '../../recipe/payMovieTicket';
12
15
  import { PaymentServiceType } from '../../service/paymentService';
13
16
  import { IAttributes as IInformActionAttributes } from '../interact/inform';
17
+ export { IPayCreditCardRecipe, IPayMovieTicketRecipe };
14
18
  export import IAgent = ActionFactory.IParticipantAsProject;
15
19
  export import IRecipient = ActionFactory.IParticipantAsSeller;
16
20
  export interface IOrderAsPayPurpose {
@@ -96,9 +100,11 @@ export interface IPotentialActions {
96
100
  add2report: boolean;
97
101
  informPayment?: IInformPayment[];
98
102
  }
103
+ export type ISeatInfoSyncIn = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncIn;
104
+ export type ISeatInfoSyncResult = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncResult;
99
105
  export interface IInstrument {
100
106
  typeOf: string;
101
- seatInfoSyncIn?: any;
107
+ seatInfoSyncIn?: ISeatInfoSyncIn;
102
108
  }
103
109
  /**
104
110
  * 決済結果
@@ -108,7 +114,7 @@ export interface IResult {
108
114
  * クレジットカード売上結果
109
115
  */
110
116
  creditCardSales?: ICreditCardSales[];
111
- seatInfoSyncResult?: any;
117
+ seatInfoSyncResult?: ISeatInfoSyncResult;
112
118
  }
113
119
  export interface ILocation {
114
120
  typeOf: CreativeWorkType.WebApplication;
@@ -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,10 +29,8 @@ 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;
32
+ alterTranResult?: (IAlterTranResult | IAlterTranResultAsError)[];
27
33
  seatInfoSyncResult?: ISeatInfoSyncResult;
28
- seatInfoSyncCancelIn?: ISeatInfoSyncCancelIn;
29
34
  seatInfoSyncCancelResult?: ISeatInfoSyncCancelResult;
30
35
  /**
31
36
  * ペイメントカード決済の場合
@@ -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,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 });
@@ -0,0 +1,30 @@
1
+ import type { factory as GMOFactory } from '@motionpicture/gmo-service';
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;
8
+ export interface IDirectionSearchTrade extends RecipeFactory.IHowToDirection {
9
+ beforeMedia?: ISearchTradeArgs;
10
+ afterMedia?: ISearchTradeResult;
11
+ }
12
+ export interface IDirectionAlterTran extends RecipeFactory.IHowToDirection {
13
+ beforeMedia?: IAlterTranArgs;
14
+ afterMedia?: IAlterTranResult;
15
+ }
16
+ export interface IStepSearchTrade extends RecipeFactory.IHowToStep {
17
+ identifier: RecipeFactory.StepIdentifier.searchTrade;
18
+ itemListElement: [IDirectionSearchTrade];
19
+ }
20
+ export interface IStepAlterTran extends RecipeFactory.IHowToStep {
21
+ identifier: RecipeFactory.StepIdentifier.alterTran;
22
+ itemListElement: [IDirectionAlterTran];
23
+ }
24
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
25
+ itemListElement: [IStepSearchTrade, IStepAlterTran];
26
+ }
27
+ export interface IRecipe extends RecipeFactory.IRecipe {
28
+ recipeCategory: RecipeFactory.RecipeCategory.payCreditCard;
29
+ step: IHowToSection[];
30
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ import { factory as surfrockFactory } from '@surfrock/sdk';
2
+ import * as RecipeFactory from '../recipe';
3
+ export interface ISeatInfoSyncResultAsError {
4
+ name: string;
5
+ message: string;
6
+ }
7
+ export type ISeatInfoSyncIn = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncIn;
8
+ export type ISeatInfoSyncResult = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncResult | ISeatInfoSyncResultAsError;
9
+ export interface IDirectionSeatInfoSync extends RecipeFactory.IHowToDirection {
10
+ beforeMedia?: ISeatInfoSyncIn;
11
+ afterMedia?: ISeatInfoSyncResult;
12
+ }
13
+ export interface IStepSeatInfoSync extends RecipeFactory.IHowToStep {
14
+ identifier: RecipeFactory.StepIdentifier.seatInfoSync;
15
+ itemListElement: [IDirectionSeatInfoSync];
16
+ }
17
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
18
+ itemListElement: [IStepSeatInfoSync];
19
+ }
20
+ export interface IRecipe extends RecipeFactory.IRecipe {
21
+ recipeCategory: RecipeFactory.RecipeCategory.payMovieTicket;
22
+ step: IHowToSection[];
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,10 +16,8 @@ export interface IStepExecTran extends RecipeFactory.IHowToStep {
16
16
  identifier: RecipeFactory.StepIdentifier.execTran;
17
17
  itemListElement: [IDirectionExecTran];
18
18
  }
19
- export type IHowToStep = IStepEntryTran | IStepExecTran;
20
- export interface IHowToSection {
21
- typeOf: 'HowToSection';
22
- itemListElement: IHowToStep[];
19
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
20
+ itemListElement: [IStepEntryTran, IStepExecTran];
23
21
  }
24
22
  export interface IRecipe extends RecipeFactory.IRecipe {
25
23
  recipeCategory: RecipeFactory.RecipeCategory.publishPaymentUrl;
@@ -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 });
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
- publishPaymentUrl = "publishPaymentUrl"
3
+ payCreditCard = "payCreditCard",
4
+ payMovieTicket = "payMovieTicket",
5
+ publishPaymentUrl = "publishPaymentUrl",
6
+ checkMovieTicket = "checkMovieTicket",
7
+ refundCreditCard = "refundCreditCard",
8
+ refundMovieTicket = "refundMovieTicket",
9
+ acceptCOAOffer = "acceptCOAOffer",
10
+ confirmCOAReserve = "confirmCOAReserve"
5
11
  }
6
12
  export declare enum StepIdentifier {
7
13
  entryTran = "entryTran",
8
- execTran = "execTran"
14
+ execTran = "execTran",
15
+ searchTrade = "searchTrade",
16
+ alterTran = "alterTran",
17
+ seatInfoSync = "seatInfoSync",
18
+ seatInfoSyncCancel = "seatInfoSyncCancel",
19
+ purchaseNumberAuth = "purchaseNumberAuth",
20
+ updTmpReserveSeat = "updTmpReserveSeat",
21
+ updReserve = "updReserve",
22
+ stateReserve = "stateReserve"
9
23
  }
10
24
  export interface IHowToDirection {
11
25
  typeOf: 'HowToDirection';
12
- beforeMedia: any;
13
- afterMedia: any;
26
+ beforeMedia?: any;
27
+ afterMedia?: any;
14
28
  }
15
29
  export interface IHowToStep {
16
30
  typeOf: 'HowToStep';
@@ -21,6 +35,9 @@ export interface IHowToSection {
21
35
  typeOf: 'HowToSection';
22
36
  itemListElement: IHowToStep[];
23
37
  }
38
+ /**
39
+ * action recipe
40
+ */
24
41
  export interface IRecipe {
25
42
  project: {
26
43
  id: string;
@@ -29,8 +46,4 @@ export interface IRecipe {
29
46
  typeOf: 'Recipe';
30
47
  recipeCategory: RecipeCategory;
31
48
  step: IHowToSection[];
32
- recipeFor: {
33
- id: string;
34
- typeOf: ActionType;
35
- };
36
49
  }
package/lib/recipe.js CHANGED
@@ -3,10 +3,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.StepIdentifier = exports.RecipeCategory = void 0;
4
4
  var RecipeCategory;
5
5
  (function (RecipeCategory) {
6
+ RecipeCategory["payCreditCard"] = "payCreditCard";
7
+ RecipeCategory["payMovieTicket"] = "payMovieTicket";
6
8
  RecipeCategory["publishPaymentUrl"] = "publishPaymentUrl";
9
+ RecipeCategory["checkMovieTicket"] = "checkMovieTicket";
10
+ RecipeCategory["refundCreditCard"] = "refundCreditCard";
11
+ RecipeCategory["refundMovieTicket"] = "refundMovieTicket";
12
+ RecipeCategory["acceptCOAOffer"] = "acceptCOAOffer";
13
+ RecipeCategory["confirmCOAReserve"] = "confirmCOAReserve";
7
14
  })(RecipeCategory = exports.RecipeCategory || (exports.RecipeCategory = {}));
8
15
  var StepIdentifier;
9
16
  (function (StepIdentifier) {
10
17
  StepIdentifier["entryTran"] = "entryTran";
11
18
  StepIdentifier["execTran"] = "execTran";
19
+ StepIdentifier["searchTrade"] = "searchTrade";
20
+ StepIdentifier["alterTran"] = "alterTran";
21
+ StepIdentifier["seatInfoSync"] = "seatInfoSync";
22
+ StepIdentifier["seatInfoSyncCancel"] = "seatInfoSyncCancel";
23
+ StepIdentifier["purchaseNumberAuth"] = "purchaseNumberAuth";
24
+ StepIdentifier["updTmpReserveSeat"] = "updTmpReserveSeat";
25
+ StepIdentifier["updReserve"] = "updReserve";
26
+ StepIdentifier["stateReserve"] = "stateReserve";
12
27
  })(StepIdentifier = exports.StepIdentifier || (exports.StepIdentifier = {}));
package/lib/task/pay.d.ts CHANGED
@@ -4,7 +4,7 @@ import { IExtendId } from '../autoGenerated';
4
4
  import * as TaskFactory from '../task';
5
5
  import { TaskName } from '../taskName';
6
6
  export { IOptimizedPayAction4order };
7
- export type IPayActionData = IPayActionAttributes;
7
+ export type IPayActionData = Pick<IPayActionAttributes, 'agent' | 'instrument' | 'location' | 'object' | 'potentialActions' | 'project' | 'purpose' | 'recipient' | 'typeOf'>;
8
8
  export type IData = IPayActionData | IOptimizedPayAction4order;
9
9
  export interface IAttributes extends TaskFactory.IAttributes {
10
10
  name: TaskName.Pay;
@@ -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.0",
3
+ "version": "4.374.0-alpha.10",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",