@chevre/factory 4.214.0 → 4.217.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.
- package/lib/factory/action/trade/pay.d.ts +9 -4
- package/lib/factory/action/trade/refund.d.ts +9 -0
- package/lib/factory/action/transfer/give/pointAward.d.ts +9 -3
- package/lib/factory/action/transfer/return/moneyTransfer.d.ts +7 -2
- package/lib/factory/action/transfer/return/order.d.ts +2 -1
- package/lib/factory/action/transfer/return/paymentMethod.d.ts +7 -1
- package/lib/factory/action/transfer/return/pointAward.d.ts +7 -2
- package/lib/factory/action/transfer/return/reservation.d.ts +7 -2
- package/lib/factory/assetTransaction/moneyTransfer.d.ts +9 -9
- package/lib/factory/assetTransaction/pay.d.ts +5 -2
- package/lib/factory/assetTransaction/refund.d.ts +5 -4
- package/lib/factory/task/givePointAward.d.ts +1 -1
- package/lib/factory/taskName.d.ts +2 -2
- package/lib/factory/taskName.js +2 -2
- package/package.json +1 -1
|
@@ -7,14 +7,18 @@ import { AssetTransactionType } from '../../assetTransactionType';
|
|
|
7
7
|
import { IPaymentServiceOutput } from '../../invoice';
|
|
8
8
|
import { IMonetaryAmount } from '../../monetaryAmount';
|
|
9
9
|
import { OrderType } from '../../order';
|
|
10
|
+
import { OrganizationType } from '../../organizationType';
|
|
10
11
|
import { IMovieTicket } from '../../paymentMethod/paymentCard/movieTicket';
|
|
11
12
|
import { IPropertyValue } from '../../propertyValue';
|
|
12
13
|
import { ISeller } from '../../seller';
|
|
13
14
|
import { PaymentServiceType } from '../../service/paymentService';
|
|
14
15
|
import { TransactionType } from '../../transactionType';
|
|
15
16
|
import { IAttributes as IInformActionAttributes } from '../interact/inform';
|
|
16
|
-
export
|
|
17
|
-
|
|
17
|
+
export interface IAgent {
|
|
18
|
+
id: string;
|
|
19
|
+
typeOf: OrganizationType.Project;
|
|
20
|
+
}
|
|
21
|
+
export declare type IRecipient = Omit<ISeller, 'branchCode' | 'paymentAccepted'>;
|
|
18
22
|
export interface IOrderAsPayPurpose {
|
|
19
23
|
typeOf: OrderType.Order;
|
|
20
24
|
confirmationNumber?: string;
|
|
@@ -116,12 +120,13 @@ export interface IResult {
|
|
|
116
120
|
seatInfoSyncResult?: any;
|
|
117
121
|
}
|
|
118
122
|
export interface IAttributes extends ActionFactory.IAttributes<ActionType.PayAction, IObject, IResult> {
|
|
123
|
+
agent: IAgent;
|
|
119
124
|
instrument?: IInstrument;
|
|
120
125
|
potentialActions?: IPotentialActions;
|
|
121
126
|
purpose: IPurpose;
|
|
122
|
-
recipient
|
|
127
|
+
recipient: IRecipient;
|
|
123
128
|
}
|
|
124
129
|
/**
|
|
125
|
-
*
|
|
130
|
+
* 決済アクション
|
|
126
131
|
*/
|
|
127
132
|
export declare type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
|
+
import { ISeller } from '../../seller';
|
|
3
4
|
import { IAttributes as IInformActionAttributes } from '../interact/inform';
|
|
4
5
|
import { IPaymentService as IPaymentServiceOnPay, IPayPurpose } from './pay';
|
|
6
|
+
/**
|
|
7
|
+
* agentはSeller
|
|
8
|
+
*/
|
|
9
|
+
export interface IAgentAsSeller extends Omit<ISeller, 'branchCode' | 'paymentAccepted'> {
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
export declare type IAgent = IAgentAsSeller | ActionFactory.IParticipant;
|
|
5
13
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
6
14
|
export declare type IPaymentService = IPaymentServiceOnPay & {
|
|
7
15
|
refundFee?: number;
|
|
@@ -14,6 +22,7 @@ export interface IPotentialActions {
|
|
|
14
22
|
}
|
|
15
23
|
export declare type IPurpose = IPayPurpose;
|
|
16
24
|
export interface IAttributes extends ActionFactory.IAttributes<ActionType.RefundAction, IObject, IResult> {
|
|
25
|
+
agent: IAgent;
|
|
17
26
|
recipient?: IRecipient;
|
|
18
27
|
purpose: IPurpose;
|
|
19
28
|
potentialActions?: IPotentialActions;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import * as OrderFactory from '../../../order';
|
|
2
|
+
import { OrganizationType } from '../../../organizationType';
|
|
2
3
|
import { ObjectType as AuthorizePointAwardActionObjectType } from '../../authorize/award/point';
|
|
3
4
|
import * as GiveActionFactory from '../give';
|
|
5
|
+
export interface IAgent {
|
|
6
|
+
id: string;
|
|
7
|
+
typeOf: OrganizationType.Project;
|
|
8
|
+
}
|
|
4
9
|
export import ObjectType = AuthorizePointAwardActionObjectType;
|
|
5
10
|
/**
|
|
6
|
-
*
|
|
11
|
+
* ポイント特典付与対象インターフェース
|
|
7
12
|
*/
|
|
8
13
|
export interface IObject {
|
|
9
14
|
typeOf: ObjectType;
|
|
@@ -33,14 +38,15 @@ export interface IObject {
|
|
|
33
38
|
export declare type IResult = any;
|
|
34
39
|
/**
|
|
35
40
|
* 目的は注文
|
|
36
|
-
*
|
|
41
|
+
* 注文に対する特典としてポイントが付与される仕組み
|
|
37
42
|
*/
|
|
38
43
|
export declare type IPurpose = OrderFactory.ISimpleOrder;
|
|
39
44
|
export declare type IPotentialActions = any;
|
|
40
45
|
export interface IAttributes extends GiveActionFactory.IAttributes<IObject, IResult> {
|
|
46
|
+
agent: IAgent;
|
|
41
47
|
purpose: IPurpose;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
|
-
*
|
|
50
|
+
* ポイント特典付与アクション
|
|
45
51
|
*/
|
|
46
52
|
export declare type IAction = GiveActionFactory.IAction<IAttributes>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
|
+
import { OrganizationType } from '../../../organizationType';
|
|
2
3
|
import * as MoneyTransferActionFactory from '../moneyTransfer';
|
|
3
4
|
import * as ReturnActionFactory from '../return';
|
|
4
|
-
export
|
|
5
|
+
export interface IAgent {
|
|
6
|
+
id: string;
|
|
7
|
+
typeOf: OrganizationType.Project;
|
|
8
|
+
}
|
|
5
9
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
6
10
|
/**
|
|
7
11
|
* 返却対象は入金アクション
|
|
@@ -11,10 +15,11 @@ export declare type IResult = any;
|
|
|
11
15
|
export interface IPotentialActions {
|
|
12
16
|
}
|
|
13
17
|
export interface IAttributes extends ReturnActionFactory.IAttributes<IObject, IResult> {
|
|
18
|
+
agent: IAgent;
|
|
14
19
|
recipient: IRecipient;
|
|
15
20
|
potentialActions?: IPotentialActions;
|
|
16
21
|
}
|
|
17
22
|
/**
|
|
18
|
-
*
|
|
23
|
+
* 入金返却アクション
|
|
19
24
|
*/
|
|
20
25
|
export declare type IAction = ReturnActionFactory.IAction<IAttributes>;
|
|
@@ -41,10 +41,11 @@ export interface IPotentialActions {
|
|
|
41
41
|
sendEmailMessage?: ISendEmailMessageActionAttributes[];
|
|
42
42
|
}
|
|
43
43
|
export interface IAttributes extends ReturnActionFactory.IAttributes<IObject, IResult> {
|
|
44
|
+
agent: IAgent;
|
|
44
45
|
recipient: IRecipient;
|
|
45
46
|
potentialActions?: IPotentialActions;
|
|
46
47
|
}
|
|
47
48
|
/**
|
|
48
|
-
*
|
|
49
|
+
* 返品アクション
|
|
49
50
|
*/
|
|
50
51
|
export declare type IAction = ReturnActionFactory.IAction<IAttributes>;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
2
|
import { ActionType } from '../../../actionType';
|
|
3
3
|
import * as OrderFactory from '../../../order';
|
|
4
|
+
import { OrganizationType } from '../../../organizationType';
|
|
4
5
|
import { IAttributes as ISendEmailMessageActionAttributes } from '../../transfer/send/message/email';
|
|
6
|
+
export interface IAgent {
|
|
7
|
+
id: string;
|
|
8
|
+
typeOf: OrganizationType.Project;
|
|
9
|
+
}
|
|
5
10
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
6
11
|
export declare type IObject = OrderFactory.IPaymentMethod;
|
|
7
12
|
export declare type IResult = any;
|
|
@@ -13,11 +18,12 @@ export interface IPotentialActions {
|
|
|
13
18
|
}
|
|
14
19
|
export declare type IPurpose = OrderFactory.ISimpleOrder;
|
|
15
20
|
export interface IAttributes extends ActionFactory.IAttributes<ActionType.ReturnAction, IObject, IResult> {
|
|
21
|
+
agent: IAgent;
|
|
16
22
|
recipient: IRecipient;
|
|
17
23
|
purpose: IPurpose;
|
|
18
24
|
potentialActions?: IPotentialActions;
|
|
19
25
|
}
|
|
20
26
|
/**
|
|
21
|
-
*
|
|
27
|
+
* 決済返却アクション
|
|
22
28
|
*/
|
|
23
29
|
export declare type IAction = ActionFactory.IAction<IAttributes>;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
2
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
3
3
|
import { ISimpleOrder } from '../../../order';
|
|
4
|
+
import { OrganizationType } from '../../../organizationType';
|
|
4
5
|
import * as ReturnActionFactory from '../return';
|
|
5
|
-
export
|
|
6
|
+
export interface IAgent {
|
|
7
|
+
id: string;
|
|
8
|
+
typeOf: OrganizationType.Project;
|
|
9
|
+
}
|
|
6
10
|
export declare type IRecipient = ActionFactory.IParticipant;
|
|
7
11
|
/**
|
|
8
12
|
* 入金取引識別子で指定する場合のオブジェクト
|
|
@@ -28,11 +32,12 @@ export declare type IResult = any;
|
|
|
28
32
|
export interface IPotentialActions {
|
|
29
33
|
}
|
|
30
34
|
export interface IAttributes extends ReturnActionFactory.IAttributes<IObject, IResult> {
|
|
35
|
+
agent: IAgent;
|
|
31
36
|
recipient: IRecipient;
|
|
32
37
|
potentialActions?: IPotentialActions;
|
|
33
38
|
purpose: IPurpose;
|
|
34
39
|
}
|
|
35
40
|
/**
|
|
36
|
-
*
|
|
41
|
+
* ポイント特典返却アクション
|
|
37
42
|
*/
|
|
38
43
|
export declare type IAction = ReturnActionFactory.IAction<IAttributes>;
|
|
@@ -4,8 +4,12 @@ import { ActionType } from '../../../actionType';
|
|
|
4
4
|
import * as CancelReservationAssetTransactionFactory from '../../../assetTransaction/cancelReservation';
|
|
5
5
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
6
6
|
import { ISimpleOrder } from '../../../order';
|
|
7
|
+
import { OrganizationType } from '../../../organizationType';
|
|
7
8
|
import { Identifier as WebAPIIdentifier } from '../../../service/webAPI';
|
|
8
|
-
export
|
|
9
|
+
export interface IAgent {
|
|
10
|
+
id: string;
|
|
11
|
+
typeOf: OrganizationType.Project;
|
|
12
|
+
}
|
|
9
13
|
export declare type IObject4COA = COA.factory.reserve.IStateReserveArgs;
|
|
10
14
|
export interface IObject4Chevre {
|
|
11
15
|
typeOf: AssetTransactionType.Reserve;
|
|
@@ -17,10 +21,11 @@ export declare type IPurpose = ISimpleOrder;
|
|
|
17
21
|
export declare type IResult = any;
|
|
18
22
|
export declare type IPotentialActions = CancelReservationAssetTransactionFactory.IPotentialActionsParams;
|
|
19
23
|
export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.ReturnAction, TObject, TResult> {
|
|
24
|
+
agent: IAgent;
|
|
20
25
|
potentialActions?: IPotentialActions;
|
|
21
26
|
purpose?: IPurpose;
|
|
22
27
|
}
|
|
23
28
|
/**
|
|
24
|
-
*
|
|
29
|
+
* 予約返却アクション
|
|
25
30
|
*/
|
|
26
31
|
export declare type IAction<TAttributes extends IAttributes<IObject<WebAPIIdentifier>, IResult>> = ActionFactory.IAction<TAttributes>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { IAttributes as IMoneyTransferActionAttributes, ILocation, IPendingTransaction, IRecipient as IMoneyTransferRecipient } from '../action/transfer/moneyTransfer';
|
|
1
|
+
import { IAgent as IMoneyTransferAgent, IAttributes as IMoneyTransferActionAttributes, ILocation, IPendingTransaction, IRecipient as IMoneyTransferRecipient } from '../action/transfer/moneyTransfer';
|
|
2
2
|
import * as TransactionFactory from '../assetTransaction';
|
|
3
3
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
4
4
|
import { IExtendId } from '../autoGenerated';
|
|
5
5
|
import { IMonetaryAmount } from '../monetaryAmount';
|
|
6
6
|
import { OrderType } from '../order';
|
|
7
7
|
import { PermitType } from '../permit';
|
|
8
|
-
export declare type IAgent =
|
|
8
|
+
export declare type IAgent = IMoneyTransferAgent;
|
|
9
9
|
export declare type IRecipient = IMoneyTransferRecipient;
|
|
10
10
|
export declare type IFromLocation = ILocation;
|
|
11
11
|
export declare type IToLocation = ILocation;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* ペイメントカード
|
|
14
14
|
*/
|
|
15
15
|
export interface IPaymentCard {
|
|
16
16
|
typeOf: PermitType;
|
|
@@ -29,7 +29,7 @@ export interface IPaymentCard {
|
|
|
29
29
|
*/
|
|
30
30
|
export declare type ITokenizedPaymentCard = string;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* 転送元としての注文
|
|
33
33
|
*/
|
|
34
34
|
export interface IOrderAsFromLocation {
|
|
35
35
|
typeOf: OrderType;
|
|
@@ -39,7 +39,7 @@ export interface IOrderAsFromLocation {
|
|
|
39
39
|
export declare type IFromLocationBeforeStart = IOrderAsFromLocation | IPaymentCard | ITokenizedPaymentCard;
|
|
40
40
|
export declare type IToLocationBeforeStart = IOrderAsFromLocation | IPaymentCard;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* 取引対象物
|
|
43
43
|
*/
|
|
44
44
|
export interface IObject {
|
|
45
45
|
/**
|
|
@@ -105,12 +105,12 @@ export interface IPotentialActions {
|
|
|
105
105
|
*/
|
|
106
106
|
moneyTransfer: IMoneyTransferActionAttributes[];
|
|
107
107
|
}
|
|
108
|
-
export declare type ITransaction = IExtendId<IAttributes>;
|
|
109
|
-
/**
|
|
110
|
-
* 転送取引インターフェース
|
|
111
|
-
*/
|
|
112
108
|
export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
113
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* 転送取引
|
|
112
|
+
*/
|
|
113
|
+
export declare type ITransaction = IExtendId<IAttributes>;
|
|
114
114
|
export interface ISearchConditions extends TransactionFactory.ISearchConditions<AssetTransactionType.MoneyTransfer> {
|
|
115
115
|
object?: {
|
|
116
116
|
fromLocation?: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as GMO from '@motionpicture/gmo-service';
|
|
2
|
-
import {
|
|
2
|
+
import { IParticipant } from '../action';
|
|
3
|
+
import { IAttributes as IPayActionAttributes, IOrderAsPayPurpose, IPayPurpose, IPendingTransaction, IRecipient as IPayRecipient } from '../action/trade/pay';
|
|
3
4
|
import * as TransactionFactory from '../assetTransaction';
|
|
4
5
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
6
|
import { IExtendId } from '../autoGenerated';
|
|
@@ -9,13 +10,15 @@ import { IMovieTicket } from '../paymentMethod/paymentCard/movieTicket';
|
|
|
9
10
|
import { IOnPaymentStatusChanged } from '../project';
|
|
10
11
|
import { IPropertyValue } from '../propertyValue';
|
|
11
12
|
import { PaymentServiceType } from '../service/paymentService';
|
|
12
|
-
export declare type IAgent =
|
|
13
|
+
export declare type IAgent = IParticipant;
|
|
13
14
|
export declare type IRecipient = IPayRecipient;
|
|
14
15
|
export declare type IObjectWithoutDetail = IObject;
|
|
15
16
|
export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> & {
|
|
17
|
+
recipient: IRecipient;
|
|
16
18
|
purpose?: IPayPurpose;
|
|
17
19
|
};
|
|
18
20
|
export interface IStartParams extends TransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> {
|
|
21
|
+
recipient: IRecipient;
|
|
19
22
|
}
|
|
20
23
|
export interface IPotentialActionsParams {
|
|
21
24
|
pay: {
|
|
@@ -4,8 +4,9 @@ import * as TransactionFactory from '../assetTransaction';
|
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
6
|
import { IOnPaymentStatusChanged } from '../project';
|
|
7
|
+
import { ISeller } from '../seller';
|
|
7
8
|
import { PaymentServiceType } from '../service/paymentService';
|
|
8
|
-
export declare type IAgent =
|
|
9
|
+
export declare type IAgent = ISeller;
|
|
9
10
|
export declare type IRecipient = IRefundRecipient;
|
|
10
11
|
export interface IObjectWithoutDetail {
|
|
11
12
|
typeOf: PaymentServiceType;
|
|
@@ -25,7 +26,7 @@ export interface IPotentialActionsParams {
|
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
|
-
*
|
|
29
|
+
* 確定パラメーター
|
|
29
30
|
*/
|
|
30
31
|
export interface IConfirmParams {
|
|
31
32
|
id?: string;
|
|
@@ -37,7 +38,7 @@ export declare type IResult = any;
|
|
|
37
38
|
export declare type IError = any;
|
|
38
39
|
export declare type IAnyPaymentMethod = AvailablePaymentMethodType;
|
|
39
40
|
/**
|
|
40
|
-
*
|
|
41
|
+
* 取引対象物
|
|
41
42
|
*/
|
|
42
43
|
export interface IObject {
|
|
43
44
|
typeOf: PaymentServiceType;
|
|
@@ -57,7 +58,7 @@ export interface IPotentialActions {
|
|
|
57
58
|
}
|
|
58
59
|
export declare type ITransaction = IExtendId<IAttributes>;
|
|
59
60
|
/**
|
|
60
|
-
*
|
|
61
|
+
* 返金取引
|
|
61
62
|
*/
|
|
62
63
|
export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
63
64
|
}
|
|
@@ -60,7 +60,7 @@ export declare enum TaskName {
|
|
|
60
60
|
*/
|
|
61
61
|
DeleteMember = "deleteMember",
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* ポイント特典付与
|
|
64
64
|
*/
|
|
65
65
|
GivePointAward = "givePointAward",
|
|
66
66
|
/**
|
|
@@ -80,7 +80,7 @@ export declare enum TaskName {
|
|
|
80
80
|
*/
|
|
81
81
|
ReturnMoneyTransfer = "returnMoneyTransfer",
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
83
|
+
* ポイント特典返却
|
|
84
84
|
*/
|
|
85
85
|
ReturnPointAward = "returnPointAward",
|
|
86
86
|
/**
|
package/lib/factory/taskName.js
CHANGED
|
@@ -64,7 +64,7 @@ var TaskName;
|
|
|
64
64
|
*/
|
|
65
65
|
TaskName["DeleteMember"] = "deleteMember";
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* ポイント特典付与
|
|
68
68
|
*/
|
|
69
69
|
TaskName["GivePointAward"] = "givePointAward";
|
|
70
70
|
/**
|
|
@@ -84,7 +84,7 @@ var TaskName;
|
|
|
84
84
|
*/
|
|
85
85
|
TaskName["ReturnMoneyTransfer"] = "returnMoneyTransfer";
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* ポイント特典返却
|
|
88
88
|
*/
|
|
89
89
|
TaskName["ReturnPointAward"] = "returnPointAward";
|
|
90
90
|
/**
|