@chevre/factory 5.3.0-alpha.4 → 5.3.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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
|
+
import { IPaymentMethodTicketAsInstrument } from '../../action/trade/pay';
|
|
2
3
|
import { ActionType } from '../../actionType';
|
|
3
4
|
import { IAgent, IObjectWithoutDetail, IPaymentMethodWithoutDetail } from '../../assetTransaction/pay';
|
|
4
5
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
@@ -29,14 +30,7 @@ export interface IPurpose {
|
|
|
29
30
|
typeOf: TransactionType.PlaceOrder;
|
|
30
31
|
id: string;
|
|
31
32
|
}
|
|
32
|
-
|
|
33
|
-
* 決済方法チケット
|
|
34
|
-
*/
|
|
35
|
-
export interface ITicketAsInstrument {
|
|
36
|
-
ticketToken: string;
|
|
37
|
-
typeOf: 'Ticket';
|
|
38
|
-
}
|
|
39
|
-
export type IInstrument = ITicketAsInstrument;
|
|
33
|
+
export type IInstrument = IPaymentMethodTicketAsInstrument;
|
|
40
34
|
/**
|
|
41
35
|
* 決済採用アクション属性
|
|
42
36
|
*/
|
|
@@ -11,7 +11,7 @@ import { IPropertyValue } from '../../propertyValue';
|
|
|
11
11
|
import { IAlterTranResult, IRecipe as IPayCreditCardRecipe } from '../../recipe/payCreditCard';
|
|
12
12
|
import { IRecipe as IPayMovieTicketRecipe, ISeatInfoSyncIn, ISeatInfoSyncResult } from '../../recipe/payMovieTicket';
|
|
13
13
|
import { PaymentServiceType } from '../../service/paymentService';
|
|
14
|
-
import { IAction as
|
|
14
|
+
import { IAction as IAuthorizePaymentAction } from '../authorize/paymentMethod/any';
|
|
15
15
|
import { IPayTransactionAsPurpose, IRefundTransactionAsPurpose } from '../interact/inform';
|
|
16
16
|
import { IAction as IRefundAction } from './refund';
|
|
17
17
|
export { IAlterTranResult, ISeatInfoSyncIn, ISeatInfoSyncResult, IPayCreditCardRecipe, IPayMovieTicketRecipe };
|
|
@@ -110,14 +110,29 @@ export interface IPotentialActions {
|
|
|
110
110
|
informPayment?: IInformPayment[];
|
|
111
111
|
}
|
|
112
112
|
export type IOrderAsInstrument = Pick<IOrder, 'orderNumber' | 'typeOf'>;
|
|
113
|
-
export type IAuthorizeActionAsInstrument = Pick<
|
|
113
|
+
export type IAuthorizeActionAsInstrument = Pick<IAuthorizePaymentAction, 'id' | 'typeOf'>;
|
|
114
114
|
export interface IPayTransactionAsInstrument {
|
|
115
115
|
id: string;
|
|
116
116
|
transactionNumber: string;
|
|
117
117
|
typeOf: AssetTransactionType.Pay;
|
|
118
118
|
}
|
|
119
119
|
export type IRefundActionAsInstrument = Pick<IRefundAction, 'id' | 'typeOf'>;
|
|
120
|
-
|
|
120
|
+
/**
|
|
121
|
+
* 決済方法チケット
|
|
122
|
+
*/
|
|
123
|
+
export interface IPaymentMethodTicketAsInstrument {
|
|
124
|
+
ticketToken: string;
|
|
125
|
+
typeOf: 'Ticket';
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* 注文時の決済アクションツール
|
|
129
|
+
*/
|
|
130
|
+
export type IPlaceOrderRelatedInstrument = IPayTransactionAsInstrument | IOrderAsInstrument | IAuthorizeActionAsInstrument | IPaymentMethodTicketAsInstrument;
|
|
131
|
+
/**
|
|
132
|
+
* 注文返品時の決済アクションツール
|
|
133
|
+
*/
|
|
134
|
+
export type IReturnOrderRelatedInstrument = IRefundActionAsInstrument;
|
|
135
|
+
export type IInstrument = IPlaceOrderRelatedInstrument | IReturnOrderRelatedInstrument;
|
|
121
136
|
export interface IResult {
|
|
122
137
|
}
|
|
123
138
|
export interface ILocation {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAction as IPayAction,
|
|
1
|
+
import { IAction as IPayAction, ILocation, IMovieTicket, IOrderAsPayPurpose, IPendingTransaction, IPlaceOrderRelatedInstrument, 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';
|
|
@@ -161,7 +161,7 @@ export interface IStartParams extends AssetTransactionFactory.IStartParams<Asset
|
|
|
161
161
|
/**
|
|
162
162
|
* add(2025-02-18~)
|
|
163
163
|
*/
|
|
164
|
-
instrument?:
|
|
164
|
+
instrument?: IPlaceOrderRelatedInstrument[];
|
|
165
165
|
}
|
|
166
166
|
export interface IOptimizedPayAction4order {
|
|
167
167
|
object: {
|