@chevre/factory 4.373.0 → 4.374.0-alpha.1
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/pay.d.ts +2 -1
- package/lib/action/trade/pay.d.ts +8 -2
- package/lib/index.d.ts +2 -0
- package/lib/index.js +3 -1
- package/lib/recipe/payCreditCard.d.ts +31 -0
- package/lib/recipe/payCreditCard.js +2 -0
- package/lib/recipe/payMovieTicket.d.ts +20 -0
- package/lib/recipe/payMovieTicket.js +2 -0
- package/lib/recipe/publishPaymentUrl.d.ts +26 -0
- package/lib/recipe/publishPaymentUrl.js +2 -0
- package/lib/recipe.d.ts +41 -0
- package/lib/recipe.js +17 -0
- package/package.json +1 -1
|
@@ -2,9 +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
6
|
import { TransactionType } from '../../transactionType';
|
|
6
7
|
import * as AcceptActionFactory from '../accept';
|
|
7
|
-
export { IAgent };
|
|
8
|
+
export { IAgent, IRecipe };
|
|
8
9
|
export interface IObject {
|
|
9
10
|
object: IObjectWithoutDetail;
|
|
10
11
|
transactionNumber: string;
|
|
@@ -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?:
|
|
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?:
|
|
117
|
+
seatInfoSyncResult?: ISeatInfoSyncResult;
|
|
112
118
|
}
|
|
113
119
|
export interface ILocation {
|
|
114
120
|
typeOf: CreativeWorkType.WebApplication;
|
package/lib/index.d.ts
CHANGED
|
@@ -109,6 +109,7 @@ import * as PropertyValueFactory from './propertyValue';
|
|
|
109
109
|
import * as LocationFeatureSpecificationFactory from './propertyValue/locationFeatureSpecification';
|
|
110
110
|
import * as QualitativeValueFactory from './qualitativeValue';
|
|
111
111
|
import * as QuantitativeValueFactory from './quantitativeValue';
|
|
112
|
+
import * as RecipeFactory from './recipe';
|
|
112
113
|
import * as AccountingReportFactory from './report/accountingReport';
|
|
113
114
|
import * as ReservationFactory from './reservation';
|
|
114
115
|
import * as BusReservationFactory from './reservation/busReservation';
|
|
@@ -392,6 +393,7 @@ export declare namespace propertyValue {
|
|
|
392
393
|
}
|
|
393
394
|
export import qualitativeValue = QualitativeValueFactory;
|
|
394
395
|
export import quantitativeValue = QuantitativeValueFactory;
|
|
396
|
+
export import recipe = RecipeFactory;
|
|
395
397
|
export declare namespace report {
|
|
396
398
|
export import accountingReport = AccountingReportFactory;
|
|
397
399
|
}
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.project = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.offer = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.iam = exports.eventType = exports.eventStatusType = exports.encodingFormat = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.categoryCode = exports.authorization = exports.aggregateOffer = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
|
|
4
|
-
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = void 0;
|
|
4
|
+
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* factory
|
|
7
7
|
*/
|
|
@@ -100,6 +100,7 @@ var PropertyValueFactory = require("./propertyValue");
|
|
|
100
100
|
var LocationFeatureSpecificationFactory = require("./propertyValue/locationFeatureSpecification");
|
|
101
101
|
var QualitativeValueFactory = require("./qualitativeValue");
|
|
102
102
|
var QuantitativeValueFactory = require("./quantitativeValue");
|
|
103
|
+
var RecipeFactory = require("./recipe");
|
|
103
104
|
var AccountingReportFactory = require("./report/accountingReport");
|
|
104
105
|
var BusReservationFactory = require("./reservation/busReservation");
|
|
105
106
|
var EventReservationFactory = require("./reservation/event");
|
|
@@ -367,6 +368,7 @@ var propertyValue;
|
|
|
367
368
|
})(propertyValue = exports.propertyValue || (exports.propertyValue = {}));
|
|
368
369
|
exports.qualitativeValue = QualitativeValueFactory;
|
|
369
370
|
exports.quantitativeValue = QuantitativeValueFactory;
|
|
371
|
+
exports.recipe = RecipeFactory;
|
|
370
372
|
var report;
|
|
371
373
|
(function (report) {
|
|
372
374
|
report.accountingReport = AccountingReportFactory;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 {
|
|
25
|
+
typeOf: 'HowToSection';
|
|
26
|
+
itemListElement: [IStepSearchTrade, IStepAlterTran];
|
|
27
|
+
}
|
|
28
|
+
export interface IRecipe extends RecipeFactory.IRecipe {
|
|
29
|
+
recipeCategory: RecipeFactory.RecipeCategory.payCreditCard;
|
|
30
|
+
step: IHowToSection[];
|
|
31
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { factory as surfrockFactory } from '@surfrock/sdk';
|
|
2
|
+
import * as RecipeFactory from '../recipe';
|
|
3
|
+
export type ISeatInfoSyncIn = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncIn;
|
|
4
|
+
export type ISeatInfoSyncResult = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncResult;
|
|
5
|
+
export interface IDirectionSeatInfoSync extends RecipeFactory.IHowToDirection {
|
|
6
|
+
beforeMedia: ISeatInfoSyncIn;
|
|
7
|
+
afterMedia: ISeatInfoSyncResult;
|
|
8
|
+
}
|
|
9
|
+
export interface IStepSeatInfoSync extends RecipeFactory.IHowToStep {
|
|
10
|
+
identifier: RecipeFactory.StepIdentifier.seatInfoSync;
|
|
11
|
+
itemListElement: [IDirectionSeatInfoSync];
|
|
12
|
+
}
|
|
13
|
+
export interface IHowToSection {
|
|
14
|
+
typeOf: 'HowToSection';
|
|
15
|
+
itemListElement: [IStepSeatInfoSync];
|
|
16
|
+
}
|
|
17
|
+
export interface IRecipe extends RecipeFactory.IRecipe {
|
|
18
|
+
recipeCategory: RecipeFactory.RecipeCategory.payMovieTicket;
|
|
19
|
+
step: IHowToSection[];
|
|
20
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IEntryTranArgs, IEntryTranResult, IExecTran3dsResult, 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 | IExecTran3dsResult;
|
|
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 {
|
|
20
|
+
typeOf: 'HowToSection';
|
|
21
|
+
itemListElement: [IStepEntryTran, IStepExecTran];
|
|
22
|
+
}
|
|
23
|
+
export interface IRecipe extends RecipeFactory.IRecipe {
|
|
24
|
+
recipeCategory: RecipeFactory.RecipeCategory.publishPaymentUrl;
|
|
25
|
+
step: IHowToSection[];
|
|
26
|
+
}
|
package/lib/recipe.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ActionType } from './actionType';
|
|
2
|
+
import { OrganizationType } from './organizationType';
|
|
3
|
+
export declare enum RecipeCategory {
|
|
4
|
+
payCreditCard = "payCreditCard",
|
|
5
|
+
payMovieTicket = "payMovieTicket",
|
|
6
|
+
publishPaymentUrl = "publishPaymentUrl"
|
|
7
|
+
}
|
|
8
|
+
export declare enum StepIdentifier {
|
|
9
|
+
entryTran = "entryTran",
|
|
10
|
+
execTran = "execTran",
|
|
11
|
+
searchTrade = "searchTrade",
|
|
12
|
+
alterTran = "alterTran",
|
|
13
|
+
seatInfoSync = "seatInfoSync"
|
|
14
|
+
}
|
|
15
|
+
export interface IHowToDirection {
|
|
16
|
+
typeOf: 'HowToDirection';
|
|
17
|
+
beforeMedia?: any;
|
|
18
|
+
afterMedia?: any;
|
|
19
|
+
}
|
|
20
|
+
export interface IHowToStep {
|
|
21
|
+
typeOf: 'HowToStep';
|
|
22
|
+
identifier: StepIdentifier;
|
|
23
|
+
itemListElement: IHowToDirection[];
|
|
24
|
+
}
|
|
25
|
+
export interface IHowToSection {
|
|
26
|
+
typeOf: 'HowToSection';
|
|
27
|
+
itemListElement: IHowToStep[];
|
|
28
|
+
}
|
|
29
|
+
export interface IRecipe {
|
|
30
|
+
project: {
|
|
31
|
+
id: string;
|
|
32
|
+
typeOf: OrganizationType.Project;
|
|
33
|
+
};
|
|
34
|
+
typeOf: 'Recipe';
|
|
35
|
+
recipeCategory: RecipeCategory;
|
|
36
|
+
step: IHowToSection[];
|
|
37
|
+
recipeFor: {
|
|
38
|
+
id: string;
|
|
39
|
+
typeOf: ActionType;
|
|
40
|
+
};
|
|
41
|
+
}
|
package/lib/recipe.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StepIdentifier = exports.RecipeCategory = void 0;
|
|
4
|
+
var RecipeCategory;
|
|
5
|
+
(function (RecipeCategory) {
|
|
6
|
+
RecipeCategory["payCreditCard"] = "payCreditCard";
|
|
7
|
+
RecipeCategory["payMovieTicket"] = "payMovieTicket";
|
|
8
|
+
RecipeCategory["publishPaymentUrl"] = "publishPaymentUrl";
|
|
9
|
+
})(RecipeCategory = exports.RecipeCategory || (exports.RecipeCategory = {}));
|
|
10
|
+
var StepIdentifier;
|
|
11
|
+
(function (StepIdentifier) {
|
|
12
|
+
StepIdentifier["entryTran"] = "entryTran";
|
|
13
|
+
StepIdentifier["execTran"] = "execTran";
|
|
14
|
+
StepIdentifier["searchTrade"] = "searchTrade";
|
|
15
|
+
StepIdentifier["alterTran"] = "alterTran";
|
|
16
|
+
StepIdentifier["seatInfoSync"] = "seatInfoSync";
|
|
17
|
+
})(StepIdentifier = exports.StepIdentifier || (exports.StepIdentifier = {}));
|