@chevre/factory 4.360.0-alpha.3 → 4.360.0-alpha.5
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,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;
|
|
@@ -2,7 +2,7 @@ import * as ActionFactory from '../../../action';
|
|
|
2
2
|
import * as OrderFactory from '../../../order';
|
|
3
3
|
import { ObjectType as AuthorizePointAwardActionObjectType } from '../../authorize/award/point';
|
|
4
4
|
import * as GiveActionFactory from '../give';
|
|
5
|
-
export type IAgent = ActionFactory.
|
|
5
|
+
export type IAgent = ActionFactory.IParticipantAsSeller;
|
|
6
6
|
export import ObjectType = AuthorizePointAwardActionObjectType;
|
|
7
7
|
/**
|
|
8
8
|
* ポイント特典付与対象
|
|
@@ -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'>;
|
package/lib/order.d.ts
CHANGED
|
@@ -218,7 +218,6 @@ export type IBroker = Pick<IPerson, 'id' | 'typeOf'>;
|
|
|
218
218
|
export type IParticipantAsReturner = IParticipantAsPerson | IParticipantAsProject | IParticipantAsWebApplication;
|
|
219
219
|
export type IReturner = Pick<IParticipantAsReturner, 'id' | 'typeOf'>;
|
|
220
220
|
export type IIdentifier = IPropertyValue<string>[];
|
|
221
|
-
export type ISimpleSeller = Pick<ISeller, 'id' | 'typeOf' | 'name'>;
|
|
222
221
|
export interface ISimpleOrder {
|
|
223
222
|
/**
|
|
224
223
|
* object type
|
|
@@ -240,7 +239,6 @@ export interface ISimpleOrder {
|
|
|
240
239
|
* Date order was placed.
|
|
241
240
|
*/
|
|
242
241
|
orderDate: Date;
|
|
243
|
-
seller: ISimpleSeller;
|
|
244
242
|
}
|
|
245
243
|
export interface IReservationFor4EventServiceOrderedItem {
|
|
246
244
|
location?: {
|
|
@@ -288,7 +286,7 @@ export interface IOrderedItem {
|
|
|
288
286
|
* 注文
|
|
289
287
|
* {@link https://schema.org/Order}
|
|
290
288
|
*/
|
|
291
|
-
export interface IOrder extends
|
|
289
|
+
export interface IOrder extends ISimpleOrder {
|
|
292
290
|
id?: string;
|
|
293
291
|
project: IProject;
|
|
294
292
|
additionalProperty?: IPropertyValue<string>[];
|