@chevre/factory 4.360.0-alpha.4 → 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;
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.360.0-alpha.4",
3
+ "version": "4.360.0-alpha.5",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",