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

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.
@@ -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
  * ペイメントカード決済の場合
@@ -21,8 +21,7 @@ export interface IStepAlterTran extends RecipeFactory.IHowToStep {
21
21
  identifier: RecipeFactory.StepIdentifier.alterTran;
22
22
  itemListElement: [IDirectionAlterTran];
23
23
  }
24
- export interface IHowToSection {
25
- typeOf: 'HowToSection';
24
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
26
25
  itemListElement: [IStepSearchTrade, IStepAlterTran];
27
26
  }
28
27
  export interface IRecipe extends RecipeFactory.IRecipe {
@@ -1,7 +1,11 @@
1
1
  import { factory as surfrockFactory } from '@surfrock/sdk';
2
2
  import * as RecipeFactory from '../recipe';
3
+ export interface ISeatInfoSyncResultAsError {
4
+ name: string;
5
+ message: string;
6
+ }
3
7
  export type ISeatInfoSyncIn = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncIn;
4
- export type ISeatInfoSyncResult = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncResult;
8
+ export type ISeatInfoSyncResult = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncResult | ISeatInfoSyncResultAsError;
5
9
  export interface IDirectionSeatInfoSync extends RecipeFactory.IHowToDirection {
6
10
  beforeMedia: ISeatInfoSyncIn;
7
11
  afterMedia: ISeatInfoSyncResult;
@@ -10,8 +14,7 @@ export interface IStepSeatInfoSync extends RecipeFactory.IHowToStep {
10
14
  identifier: RecipeFactory.StepIdentifier.seatInfoSync;
11
15
  itemListElement: [IDirectionSeatInfoSync];
12
16
  }
13
- export interface IHowToSection {
14
- typeOf: 'HowToSection';
17
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
15
18
  itemListElement: [IStepSeatInfoSync];
16
19
  }
17
20
  export interface IRecipe extends RecipeFactory.IRecipe {
@@ -16,8 +16,7 @@ export interface IStepExecTran extends RecipeFactory.IHowToStep {
16
16
  identifier: RecipeFactory.StepIdentifier.execTran;
17
17
  itemListElement: [IDirectionExecTran];
18
18
  }
19
- export interface IHowToSection {
20
- typeOf: 'HowToSection';
19
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
21
20
  itemListElement: [IStepEntryTran, IStepExecTran];
22
21
  }
23
22
  export interface IRecipe extends RecipeFactory.IRecipe {
@@ -0,0 +1,34 @@
1
+ import type { factory as GMOFactory } from '@motionpicture/gmo-service';
2
+ import * as RecipeFactory from '../recipe';
3
+ export interface IResultAsError {
4
+ name: string;
5
+ message: string;
6
+ }
7
+ export type IOptionalSiteArgs = GMOFactory.credit.IOptionalSiteArgs;
8
+ export type ISearchTradeArgs = GMOFactory.credit.ISearchTradeArgs & IOptionalSiteArgs;
9
+ export type ISearchTradeResult = GMOFactory.credit.ISearchTradeResult;
10
+ export type IAlterTranArgs = GMOFactory.credit.IAlterTranArgs & IOptionalSiteArgs;
11
+ export type IAlterTranResult = GMOFactory.credit.IAlterTranResult | IResultAsError;
12
+ export interface IDirectionSearchTrade extends RecipeFactory.IHowToDirection {
13
+ beforeMedia: ISearchTradeArgs;
14
+ afterMedia: ISearchTradeResult;
15
+ }
16
+ export interface IDirectionAlterTran extends RecipeFactory.IHowToDirection {
17
+ beforeMedia?: IAlterTranArgs;
18
+ afterMedia: IAlterTranResult;
19
+ }
20
+ export interface IStepSearchTrade extends RecipeFactory.IHowToStep {
21
+ identifier: RecipeFactory.StepIdentifier.searchTrade;
22
+ itemListElement: [IDirectionSearchTrade];
23
+ }
24
+ export interface IStepAlterTran extends RecipeFactory.IHowToStep {
25
+ identifier: RecipeFactory.StepIdentifier.alterTran;
26
+ itemListElement: [IDirectionAlterTran];
27
+ }
28
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
29
+ itemListElement: [IStepSearchTrade, IStepAlterTran];
30
+ }
31
+ export interface IRecipe extends RecipeFactory.IRecipe {
32
+ recipeCategory: RecipeFactory.RecipeCategory.refundCreditCard;
33
+ step: IHowToSection[];
34
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,33 @@
1
+ import { factory as surfrockFactory } from '@surfrock/sdk';
2
+ import * as RecipeFactory from '../recipe';
3
+ export interface IResultAsError {
4
+ name: string;
5
+ message: string;
6
+ }
7
+ export type ISeatInfoSyncCancelIn = surfrockFactory.service.seat.seatInfoSyncCancel.ISeatInfoSyncCancelIn;
8
+ export type ISeatInfoSyncCancelResult = surfrockFactory.service.seat.seatInfoSyncCancel.ISeatInfoSyncCancelResult | IResultAsError;
9
+ export type ISeatInfoSyncIn = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncIn;
10
+ export type ISeatInfoSyncResult = surfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncResult | IResultAsError;
11
+ export interface IDirectionSeatInfoSyncCancel extends RecipeFactory.IHowToDirection {
12
+ beforeMedia: ISeatInfoSyncCancelIn;
13
+ afterMedia: ISeatInfoSyncCancelResult;
14
+ }
15
+ export interface IDirectionSeatInfoSync extends RecipeFactory.IHowToDirection {
16
+ beforeMedia: ISeatInfoSyncIn;
17
+ afterMedia: ISeatInfoSyncResult;
18
+ }
19
+ export interface IStepSeatInfoSyncCancel extends RecipeFactory.IHowToStep {
20
+ identifier: RecipeFactory.StepIdentifier.seatInfoSyncCancel;
21
+ itemListElement: [IDirectionSeatInfoSyncCancel];
22
+ }
23
+ export interface IStepSeatInfoSync extends RecipeFactory.IHowToStep {
24
+ identifier: RecipeFactory.StepIdentifier.seatInfoSync;
25
+ itemListElement: [IDirectionSeatInfoSync];
26
+ }
27
+ export interface IHowToSection extends RecipeFactory.IHowToSection {
28
+ itemListElement: [IStepSeatInfoSyncCancel] | [IStepSeatInfoSync];
29
+ }
30
+ export interface IRecipe extends RecipeFactory.IRecipe {
31
+ recipeCategory: RecipeFactory.RecipeCategory.refundMovieTicket;
32
+ step: IHowToSection[];
33
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/recipe.d.ts CHANGED
@@ -3,14 +3,17 @@ import { OrganizationType } from './organizationType';
3
3
  export declare enum RecipeCategory {
4
4
  payCreditCard = "payCreditCard",
5
5
  payMovieTicket = "payMovieTicket",
6
- publishPaymentUrl = "publishPaymentUrl"
6
+ publishPaymentUrl = "publishPaymentUrl",
7
+ refundCreditCard = "refundCreditCard",
8
+ refundMovieTicket = "refundMovieTicket"
7
9
  }
8
10
  export declare enum StepIdentifier {
9
11
  entryTran = "entryTran",
10
12
  execTran = "execTran",
11
13
  searchTrade = "searchTrade",
12
14
  alterTran = "alterTran",
13
- seatInfoSync = "seatInfoSync"
15
+ seatInfoSync = "seatInfoSync",
16
+ seatInfoSyncCancel = "seatInfoSyncCancel"
14
17
  }
15
18
  export interface IHowToDirection {
16
19
  typeOf: 'HowToDirection';
package/lib/recipe.js CHANGED
@@ -6,6 +6,8 @@ var RecipeCategory;
6
6
  RecipeCategory["payCreditCard"] = "payCreditCard";
7
7
  RecipeCategory["payMovieTicket"] = "payMovieTicket";
8
8
  RecipeCategory["publishPaymentUrl"] = "publishPaymentUrl";
9
+ RecipeCategory["refundCreditCard"] = "refundCreditCard";
10
+ RecipeCategory["refundMovieTicket"] = "refundMovieTicket";
9
11
  })(RecipeCategory = exports.RecipeCategory || (exports.RecipeCategory = {}));
10
12
  var StepIdentifier;
11
13
  (function (StepIdentifier) {
@@ -14,4 +16,5 @@ var StepIdentifier;
14
16
  StepIdentifier["searchTrade"] = "searchTrade";
15
17
  StepIdentifier["alterTran"] = "alterTran";
16
18
  StepIdentifier["seatInfoSync"] = "seatInfoSync";
19
+ StepIdentifier["seatInfoSyncCancel"] = "seatInfoSyncCancel";
17
20
  })(StepIdentifier = exports.StepIdentifier || (exports.StepIdentifier = {}));
@@ -1,7 +1,7 @@
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';
4
+ import { IPaymentMethodWithoutDetail } from '../assetTransaction/pay';
5
5
  import { IExtendId } from '../autoGenerated';
6
6
  import { IClientUser } from '../clientUser';
7
7
  import { CreativeWorkType } from '../creativeWorkType';
@@ -25,23 +25,14 @@ export type IAgent = TransactionFactory.IAgent & {
25
25
  };
26
26
  export type ICustomer = OrderFactory.ICustomer;
27
27
  export interface IPaymentMethodByPaymentUrl {
28
- /**
29
- * 決済方法区分
30
- */
31
- typeOf: string;
32
28
  paymentMethodId: string;
33
- paymentUrl: string;
34
29
  issuedThrough: {
35
30
  /**
36
31
  * 発行決済サービスID
37
32
  */
38
33
  id: string;
39
34
  };
40
- entryTranArgs?: IEntryTranArgs;
41
- entryTranResult?: IEntryTranResult;
42
- execTranArgs?: IExecTranArgs;
43
- execTranResult?: IExecTranResult | IExecTran3dsResult;
44
- paymentMethod?: IPaymentMethodWithoutDetail;
35
+ paymentMethod: IPaymentMethodWithoutDetail;
45
36
  }
46
37
  /**
47
38
  * 注文特典口座
@@ -74,11 +65,11 @@ export interface IObject {
74
65
  /**
75
66
  * WAITER許可証トークン
76
67
  */
77
- passportToken?: waiter.passport.IEncodedPassport;
68
+ passportToken?: passport.IEncodedPassport;
78
69
  /**
79
70
  * WAITER許可証
80
71
  */
81
- passport?: waiter.passport.IPassport;
72
+ passport?: passport.IPassport;
82
73
  }
83
74
  export interface IStartParamsWithoutDetail {
84
75
  project: Pick<IProject, 'id' | 'typeOf'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.374.0-alpha.2",
3
+ "version": "4.374.0-alpha.4",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",