@chevre/factory 8.1.0-alpha.2 → 8.1.0-alpha.3

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,6 +1,6 @@
1
1
  import { IAction as IPayAction, IPaymentService as IPayObject } from '../action/trade/pay';
2
2
  import { IAction as IRefundAction, IPaymentService as IRefundObject } from '../action/trade/refund';
3
- import { ICustomer, IOrder, ISeller } from '../order';
3
+ import { IOrder, ISeller, IReferencedInvoice } from '../order';
4
4
  import { OrganizationType } from '../organizationType';
5
5
  export type IPayActionObject = Pick<IPayObject, 'id' | 'paymentMethod' | 'typeOf'>;
6
6
  export type IOptimizedPayAction = Pick<IPayAction, 'actionStatus' | 'endDate' | 'id' | 'purpose' | 'startDate' | 'typeOf'> & {
@@ -11,14 +11,17 @@ export type IOptimizedRefundAction = Pick<IRefundAction, 'actionStatus' | 'endDa
11
11
  object: IRefundActionObject[];
12
12
  };
13
13
  export type IAction = IOptimizedPayAction | IOptimizedRefundAction;
14
- export type IOptimizedCustomer = Pick<ICustomer, 'id' | 'typeOf'>;
15
14
  /**
16
15
  * 経理レポートドキュメントに保管される注文
17
16
  * optimize(2026-05-06~)
18
17
  */
19
- export type IOrderAsMainEntity = Pick<IOrder, 'confirmationNumber' | 'id' | 'orderDate' | 'orderNumber' | 'paymentMethods' | 'price' | 'priceCurrency' | 'typeOf'> & {
20
- customer: IOptimizedCustomer;
18
+ export type IOrderAsMainEntity = Pick<IOrder, 'id' | 'orderDate' | 'orderNumber' | 'typeOf'> & {
21
19
  seller: Pick<ISeller, 'id' | 'name' | 'typeOf'>;
20
+ paymentMethods: Pick<IReferencedInvoice, 'paymentMethodId'>[];
21
+ confirmationNumber?: never;
22
+ price?: never;
23
+ priceCurrency?: never;
24
+ customer?: never;
22
25
  broker?: never;
23
26
  orderedItem?: never;
24
27
  acceptedOffers?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "8.1.0-alpha.2",
3
+ "version": "8.1.0-alpha.3",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [