@chevre/factory 4.374.0-alpha.22 → 4.374.0-alpha.24
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,5 +1,6 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
|
+
import { AssetTransactionType } from '../../assetTransactionType';
|
|
3
4
|
import { IInvoice } from '../../invoice';
|
|
4
5
|
import { IEntryTranArgs, IEntryTranResult, IExecTranArgs, IExecTranResult, IRecipe as IAuthorizeInvoiceRecipe } from '../../recipe/authorizeInvoice';
|
|
5
6
|
import { IRecipe as IAuthorizeInvoice3dsRecipe, ISecureTran2Args, ISecureTran2Result } from '../../recipe/authorizeInvoice3ds';
|
|
@@ -9,10 +10,14 @@ export type IAgent = ActionFactory.IParticipantAsProject;
|
|
|
9
10
|
export type IObject = Pick<IInvoice, 'paymentMethodId' | 'typeOf'>;
|
|
10
11
|
export interface IResult {
|
|
11
12
|
}
|
|
12
|
-
export interface
|
|
13
|
+
export interface ISameAs extends ActionFactory.ISameAs {
|
|
14
|
+
typeOf: AssetTransactionType.Pay;
|
|
15
|
+
}
|
|
16
|
+
export interface IAttributes extends Pick<AuthorizeActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'object' | 'result' | 'project' | 'typeOf' | 'sameAs'> {
|
|
13
17
|
typeOf: ActionType.AuthorizeAction;
|
|
14
18
|
object: IObject;
|
|
15
19
|
agent: IAgent;
|
|
20
|
+
sameAs: ISameAs;
|
|
16
21
|
}
|
|
17
22
|
/**
|
|
18
23
|
* 請求承認アクション
|
|
@@ -6,7 +6,7 @@ import { TransactionType } from '../../transactionType';
|
|
|
6
6
|
import { IAttributes as IInformActionAttributes } from '../interact/inform';
|
|
7
7
|
import { IOrderAsPayPurpose, IPaymentMethod, IPaymentService as IPaymentServiceOnPay, IPurposeAsAssetTransaction, IPurposeAsReturnAction } from './pay';
|
|
8
8
|
export { IAlterTranResult, ISeatInfoSyncCancelIn, ISeatInfoSyncCancelResult, ISeatInfoSyncIn, ISeatInfoSyncResult, IRefundCreditCardRecipe, IRefundMovieTicketRecipe };
|
|
9
|
-
export type IAgent = ActionFactory.IParticipantAsSeller
|
|
9
|
+
export type IAgent = ActionFactory.IParticipantAsSeller;
|
|
10
10
|
export type IRecipient = ActionFactory.IParticipant;
|
|
11
11
|
export type IPaymentService = Omit<IPaymentServiceOnPay, 'paymentMethod'> & {
|
|
12
12
|
refundFee?: number;
|
|
@@ -38,7 +38,10 @@ export interface IPurposeAsPlaceOrder {
|
|
|
38
38
|
typeOf: TransactionType.PlaceOrder;
|
|
39
39
|
id: string;
|
|
40
40
|
}
|
|
41
|
-
export type IPurpose = IOrderAsPayPurpose |
|
|
41
|
+
export type IPurpose = IOrderAsPayPurpose | // 決済カードIF承認時の着券取消の場合
|
|
42
|
+
IPurposeAsReturnAction | // 注文返品の場合
|
|
43
|
+
IPurposeAsPlaceOrder | // 注文取引における発行済決済URL無効化の場合
|
|
44
|
+
IPurposeAsAssetTransaction;
|
|
42
45
|
export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.RefundAction, IObject, IResult>, 'agent' | 'error' | 'object' | 'potentialActions' | 'purpose' | 'recipient' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
|
|
43
46
|
agent: IAgent;
|
|
44
47
|
recipient?: IRecipient;
|
package/lib/action.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ActionStatusType } from './actionStatusType';
|
|
2
2
|
import { ActionType } from './actionType';
|
|
3
|
+
import { AssetTransactionType } from './assetTransactionType';
|
|
3
4
|
import { IExtendId } from './autoGenerated';
|
|
4
5
|
import { CreativeWorkType } from './creativeWorkType';
|
|
5
6
|
import { OrganizationType } from './organizationType';
|
|
@@ -47,10 +48,10 @@ export interface IPurpose {
|
|
|
47
48
|
}
|
|
48
49
|
export interface ISameAs {
|
|
49
50
|
/**
|
|
50
|
-
* タスクID
|
|
51
|
+
* タスクID or 資産取引ID
|
|
51
52
|
*/
|
|
52
53
|
id: string;
|
|
53
|
-
typeOf: 'Task';
|
|
54
|
+
typeOf: 'Task' | AssetTransactionType.Pay;
|
|
54
55
|
}
|
|
55
56
|
/**
|
|
56
57
|
* アクション属性
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAction as IPayAction,
|
|
1
|
+
import { IAction as IPayAction, ILocation, IMovieTicket, IOrderAsPayPurpose, IPendingTransaction, IPurpose as IPayPurpose, IRecipient as IPayRecipient } from '../action/trade/pay';
|
|
2
2
|
import * as AssetTransactionFactory from '../assetTransaction';
|
|
3
3
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
4
4
|
import { IExtendId } from '../autoGenerated';
|
|
@@ -126,13 +126,9 @@ export interface IOptimizedPayAction4order {
|
|
|
126
126
|
confirmationNumber: string;
|
|
127
127
|
orderNumber: string;
|
|
128
128
|
};
|
|
129
|
-
typeOf?: never;
|
|
130
129
|
}
|
|
131
130
|
export interface IPotentialActions {
|
|
132
|
-
|
|
133
|
-
* 決済アクション
|
|
134
|
-
*/
|
|
135
|
-
pay: IPayActionAttributes[] | IOptimizedPayAction4order[];
|
|
131
|
+
pay: IOptimizedPayAction4order[];
|
|
136
132
|
}
|
|
137
133
|
export interface IPotentialActionsParams {
|
|
138
134
|
pay: {
|
package/lib/task/pay.d.ts
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
|
-
import { IAttributes as IPayActionAttributes } from '../action/trade/pay';
|
|
1
|
+
import { IAttributes as IPayActionAttributes, IPurposeAsReturnAction } from '../action/trade/pay';
|
|
2
2
|
import { IOptimizedPayAction4order } from '../assetTransaction/pay';
|
|
3
3
|
import { IExtendId } from '../autoGenerated';
|
|
4
4
|
import * as TaskFactory from '../task';
|
|
5
5
|
import { TaskName } from '../taskName';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
/**
|
|
7
|
+
* 返品手数料決済の場合
|
|
8
|
+
*/
|
|
9
|
+
export interface IPayReturnFeeAction extends Pick<IPayActionAttributes, 'object' | 'potentialActions' | 'purpose' | 'typeOf'> {
|
|
10
|
+
purpose: IPurposeAsReturnAction;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 注文決済の場合
|
|
14
|
+
*/
|
|
15
|
+
export type IPayOrderAction = Pick<IOptimizedPayAction4order, 'object' | 'purpose'> & {
|
|
16
|
+
typeOf?: never;
|
|
17
|
+
potentialActions?: never;
|
|
18
|
+
};
|
|
19
|
+
export type IData = IPayReturnFeeAction | IPayOrderAction;
|
|
9
20
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
10
21
|
name: TaskName.Pay;
|
|
11
22
|
data: IData;
|