@chevre/factory 8.2.0 → 9.0.0-alpha.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.
@@ -3,6 +3,7 @@ import { IExtendId } from '../autoGenerated';
3
3
  import { IClientUser } from '../clientUser';
4
4
  import { CreativeWorkType } from '../creativeWorkType';
5
5
  import { ICustomer as IOrderCustomer, IBroker, ISeller as IOrderSeller, IOrder } from '../order';
6
+ import { OrderStatus } from '../orderStatus';
6
7
  import { IProject } from '../project';
7
8
  import { IAgent as IBaseAgent, IPassportBeforeStart, ISeller as IBaseSeller, ISearchConditions as IBaseSearchConditions, ISendEmailMessageParams, IStartParams as IBaseStartParams, IAttributes as IBaseAttributes } from '../transaction';
8
9
  import { TransactionType } from '../transactionType';
@@ -47,6 +48,12 @@ export interface IObject {
47
48
  * 決済URLでの決済情報
48
49
  */
49
50
  paymentMethods?: IPaymentMethodByPaymentUrl;
51
+ /**
52
+ * 取引確定時にセットされる
53
+ * 確定取引であれば存在するはず
54
+ * 2026-06-15~
55
+ */
56
+ orderDate?: Date;
50
57
  name?: never;
51
58
  identifier?: never;
52
59
  clientUser?: never;
@@ -99,19 +106,6 @@ export interface IPotentialActionsParams {
99
106
  };
100
107
  };
101
108
  }
102
- /**
103
- * 取引結果の注文パラメータ
104
- */
105
- export interface IResultOrderParams {
106
- identifier?: never;
107
- url?: never;
108
- }
109
- /**
110
- * 取引結果パラメータ
111
- */
112
- export interface IResultParams {
113
- order?: IResultOrderParams;
114
- }
115
109
  /**
116
110
  * 取引確定パラメータ
117
111
  */
@@ -127,12 +121,9 @@ export interface IConfirmParams {
127
121
  * 取引確定後アクション
128
122
  */
129
123
  potentialActions?: IPotentialActionsParams;
130
- /**
131
- * 取引結果
132
- */
133
- result?: IResultParams;
134
124
  }
135
- export type IOrderAsResult = Pick<IOrder, 'confirmationNumber' | 'orderDate' | 'orderNumber' | 'orderStatus' | 'price' | 'priceCurrency' | 'typeOf'> & {
125
+ export type IOrderAsResult = Pick<IOrder, 'confirmationNumber' | 'orderDate' | 'orderNumber' | 'price' | 'priceCurrency' | 'typeOf'> & {
126
+ orderStatus: OrderStatus.OrderPaymentDue;
136
127
  identifier?: never;
137
128
  url?: never;
138
129
  };
@@ -145,8 +136,9 @@ export interface IAuthorizeActionAsResult {
145
136
  export interface IResult {
146
137
  /**
147
138
  * 注文
139
+ * optional(2026-06-15~)
148
140
  */
149
- order: IOrderAsResult;
141
+ order?: IOrderAsResult;
150
142
  /**
151
143
  * 取引確定時の同期的な注文コード発行に対応(2024-02-05~)
152
144
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "8.2.0",
3
+ "version": "9.0.0-alpha.0",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [