@chevre/factory 4.374.0-alpha.23 → 4.374.0-alpha.25
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.
|
@@ -98,7 +98,9 @@ export interface IPotentialActions {
|
|
|
98
98
|
informPayment?: IInformPayment[];
|
|
99
99
|
}
|
|
100
100
|
export interface IInstrument {
|
|
101
|
-
|
|
101
|
+
id: string;
|
|
102
|
+
transactionNumber: string;
|
|
103
|
+
typeOf: AssetTransactionType.Pay;
|
|
102
104
|
}
|
|
103
105
|
export interface IResult {
|
|
104
106
|
}
|
|
@@ -111,6 +113,11 @@ export interface ILocation {
|
|
|
111
113
|
}
|
|
112
114
|
export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.PayAction, IObject, IResult>, 'agent' | 'error' | 'instrument' | 'location' | 'object' | 'potentialActions' | 'purpose' | 'recipient' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
|
|
113
115
|
agent: IAgent;
|
|
116
|
+
/**
|
|
117
|
+
* redefine IInstrument(2024-06-15~)
|
|
118
|
+
* 注文決済の場合、決済取引として存在(2024-06-15~)
|
|
119
|
+
* 返品手数料決済の場合、存在しない
|
|
120
|
+
*/
|
|
114
121
|
instrument?: IInstrument;
|
|
115
122
|
potentialActions?: IPotentialActions;
|
|
116
123
|
purpose: IPurpose;
|
|
@@ -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;
|
|
@@ -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;
|