@chevre/factory 4.360.0-alpha.4 → 4.360.0-alpha.6
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.
|
@@ -44,12 +44,10 @@ export interface IResult<T extends WebAPIFactory.Identifier> {
|
|
|
44
44
|
amount: OrderFactory.ITotalPaymentDue[];
|
|
45
45
|
/**
|
|
46
46
|
* 外部サービスへのリクエスト
|
|
47
|
-
* COAの場合存在する
|
|
48
47
|
*/
|
|
49
48
|
requestBody: IRequestBody<T>;
|
|
50
49
|
/**
|
|
51
50
|
* 外部サービスからのレスポンス
|
|
52
|
-
* COAの場合存在する
|
|
53
51
|
*/
|
|
54
52
|
responseBody: IResponseBody<T>;
|
|
55
53
|
acceptedOffers?: IResultAcceptedOffer[];
|
|
@@ -142,6 +140,10 @@ export type IObject<T extends WebAPIFactory.Identifier> = {
|
|
|
142
140
|
* 進行中取引
|
|
143
141
|
*/
|
|
144
142
|
pendingTransaction: IPendingTransaction<T>;
|
|
143
|
+
/**
|
|
144
|
+
* result.acceptedOffers廃止に際して使用有無を保管
|
|
145
|
+
*/
|
|
146
|
+
useResultAcceptedOffers?: boolean;
|
|
145
147
|
} & Omit<IObjectWithoutDetail<T>, 'acceptedOffer' | 'reservationFor'>;
|
|
146
148
|
export interface IPurpose {
|
|
147
149
|
typeOf: TransactionType.PlaceOrder;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as ActionFactory from '../../action';
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
import { IAttributes as IInformActionAttributes } from '../interact/inform';
|
|
4
|
-
import { IPaymentService as IPaymentServiceOnPay, IPurpose as IPayPurpose } from './pay';
|
|
4
|
+
import { IPaymentMethod, IPaymentService as IPaymentServiceOnPay, IPurpose as IPayPurpose } from './pay';
|
|
5
5
|
export type IAgent = ActionFactory.IParticipantAsSeller | ActionFactory.IParticipantAsPerson;
|
|
6
6
|
export type IRecipient = ActionFactory.IParticipant;
|
|
7
|
-
export type IPaymentService = IPaymentServiceOnPay & {
|
|
7
|
+
export type IPaymentService = Omit<IPaymentServiceOnPay, 'paymentMethod'> & {
|
|
8
8
|
refundFee?: number;
|
|
9
|
+
paymentMethod: Pick<IPaymentMethod, 'accountId' | 'name' | 'paymentMethodId' | 'typeOf' | 'additionalProperty'>;
|
|
9
10
|
};
|
|
10
11
|
export type IObject = IPaymentService[];
|
|
11
12
|
export type IResult = any;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
|
+
import { IInvoice } from '../../../invoice';
|
|
2
3
|
import { IReferencedInvoice, ISimpleOrder } from '../../../order';
|
|
3
4
|
import { IAttributes as ISendEmailMessageActionAttributes } from '../../transfer/send/message/email';
|
|
4
5
|
import * as ReturnActionFactory from '../return';
|
|
5
6
|
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
6
7
|
export type IRecipient = ActionFactory.IParticipant;
|
|
7
|
-
export type IObject = IReferencedInvoice
|
|
8
|
+
export type IObject = Pick<IReferencedInvoice, 'accountId' | 'issuedThrough' | 'paymentMethod' | 'paymentMethodId' | 'totalPaymentDue' | 'name' | 'additionalProperty'> & Pick<IInvoice, 'typeOf'>;
|
|
8
9
|
export type IResult = any;
|
|
9
10
|
export interface IPotentialActions {
|
|
10
11
|
/**
|
|
@@ -19,7 +19,7 @@ export interface IObject {
|
|
|
19
19
|
*/
|
|
20
20
|
id: string;
|
|
21
21
|
onPaymentStatusChanged?: IOnPaymentStatusChanged;
|
|
22
|
-
paymentMethod: IPaymentMethod
|
|
22
|
+
paymentMethod: Pick<IPaymentMethod, 'accountId' | 'name' | 'paymentMethodId' | 'typeOf' | 'additionalProperty'>;
|
|
23
23
|
refundFee?: number;
|
|
24
24
|
}
|
|
25
25
|
export type IObjectWithoutDetail = Pick<IObject, 'typeOf' | 'id' | 'paymentMethod' | 'refundFee'>;
|