@chevre/factory 4.374.0-alpha.7 → 4.374.0-alpha.9
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.
- package/lib/action/accept/coaOffer.d.ts +7 -3
- package/lib/action/check/paymentMethod/movieTicket.d.ts +2 -2
- package/lib/action/interact/confirm/reservation.d.ts +3 -2
- package/lib/recipe/acceptCOAOffer.d.ts +19 -0
- package/lib/recipe/acceptCOAOffer.js +2 -0
- package/lib/recipe/checkMovieTicket.d.ts +19 -0
- package/lib/recipe/checkMovieTicket.js +2 -0
- package/lib/recipe/confirmCOAReserve.d.ts +29 -0
- package/lib/recipe/confirmCOAReserve.js +2 -0
- package/lib/recipe.d.ts +9 -2
- package/lib/recipe.js +7 -0
- package/package.json +1 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
|
-
import { IAcceptedOfferBeforeAuthorize4COA, IAction as IAuthorizeOfferAction, IObjectWithoutDetail, IPurpose
|
|
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
|
|
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?:
|
|
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 =
|
|
10
|
+
export type IObject4COA = IUpdReserveArgs & {
|
|
10
11
|
transactionNumber: string;
|
|
11
12
|
typeOf: 'COAReserveTransaction';
|
|
12
13
|
};
|
|
@@ -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,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,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
|
+
}
|
package/lib/recipe.d.ts
CHANGED
|
@@ -4,8 +4,11 @@ export declare enum RecipeCategory {
|
|
|
4
4
|
payCreditCard = "payCreditCard",
|
|
5
5
|
payMovieTicket = "payMovieTicket",
|
|
6
6
|
publishPaymentUrl = "publishPaymentUrl",
|
|
7
|
+
checkMovieTicket = "checkMovieTicket",
|
|
7
8
|
refundCreditCard = "refundCreditCard",
|
|
8
|
-
refundMovieTicket = "refundMovieTicket"
|
|
9
|
+
refundMovieTicket = "refundMovieTicket",
|
|
10
|
+
acceptCOAOffer = "acceptCOAOffer",
|
|
11
|
+
confirmCOAReserve = "confirmCOAReserve"
|
|
9
12
|
}
|
|
10
13
|
export declare enum StepIdentifier {
|
|
11
14
|
entryTran = "entryTran",
|
|
@@ -13,7 +16,11 @@ export declare enum StepIdentifier {
|
|
|
13
16
|
searchTrade = "searchTrade",
|
|
14
17
|
alterTran = "alterTran",
|
|
15
18
|
seatInfoSync = "seatInfoSync",
|
|
16
|
-
seatInfoSyncCancel = "seatInfoSyncCancel"
|
|
19
|
+
seatInfoSyncCancel = "seatInfoSyncCancel",
|
|
20
|
+
purchaseNumberAuth = "purchaseNumberAuth",
|
|
21
|
+
updTmpReserveSeat = "updTmpReserveSeat",
|
|
22
|
+
updReserve = "updReserve",
|
|
23
|
+
stateReserve = "stateReserve"
|
|
17
24
|
}
|
|
18
25
|
export interface IHowToDirection {
|
|
19
26
|
typeOf: 'HowToDirection';
|
package/lib/recipe.js
CHANGED
|
@@ -6,8 +6,11 @@ var RecipeCategory;
|
|
|
6
6
|
RecipeCategory["payCreditCard"] = "payCreditCard";
|
|
7
7
|
RecipeCategory["payMovieTicket"] = "payMovieTicket";
|
|
8
8
|
RecipeCategory["publishPaymentUrl"] = "publishPaymentUrl";
|
|
9
|
+
RecipeCategory["checkMovieTicket"] = "checkMovieTicket";
|
|
9
10
|
RecipeCategory["refundCreditCard"] = "refundCreditCard";
|
|
10
11
|
RecipeCategory["refundMovieTicket"] = "refundMovieTicket";
|
|
12
|
+
RecipeCategory["acceptCOAOffer"] = "acceptCOAOffer";
|
|
13
|
+
RecipeCategory["confirmCOAReserve"] = "confirmCOAReserve";
|
|
11
14
|
})(RecipeCategory = exports.RecipeCategory || (exports.RecipeCategory = {}));
|
|
12
15
|
var StepIdentifier;
|
|
13
16
|
(function (StepIdentifier) {
|
|
@@ -17,4 +20,8 @@ var StepIdentifier;
|
|
|
17
20
|
StepIdentifier["alterTran"] = "alterTran";
|
|
18
21
|
StepIdentifier["seatInfoSync"] = "seatInfoSync";
|
|
19
22
|
StepIdentifier["seatInfoSyncCancel"] = "seatInfoSyncCancel";
|
|
23
|
+
StepIdentifier["purchaseNumberAuth"] = "purchaseNumberAuth";
|
|
24
|
+
StepIdentifier["updTmpReserveSeat"] = "updTmpReserveSeat";
|
|
25
|
+
StepIdentifier["updReserve"] = "updReserve";
|
|
26
|
+
StepIdentifier["stateReserve"] = "stateReserve";
|
|
20
27
|
})(StepIdentifier = exports.StepIdentifier || (exports.StepIdentifier = {}));
|