@chevre/factory 8.2.0-alpha.9 → 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.
@@ -352,16 +352,9 @@ export interface IOrder extends ISimpleOrder {
352
352
  * Date order was returned.
353
353
  */
354
354
  dateReturned?: Date;
355
- /**
356
- * The identifier property represents any kind of identifier for any kind of Thing
357
- */
358
- identifier?: IIdentifier;
359
- /**
360
- * Was the offer accepted as a gift for someone other than the buyer.
361
- */
362
- isGift?: boolean;
363
355
  /**
364
356
  * 注文名称
357
+ * 注文作成後に管理者によって編集可能
365
358
  */
366
359
  name?: string;
367
360
  orderedItem?: IOrderedItem[];
@@ -391,11 +384,6 @@ export interface IOrder extends ISimpleOrder {
391
384
  * The party taking the order (e.g. Amazon.com is a merchant for many sellers). Also accepts a string (e.g. "Amazon.com").
392
385
  */
393
386
  seller: ISeller;
394
- /**
395
- * URL (recommended for confirmation cards/ Search Answers)
396
- * URL of the Order, typically a link to the merchant's website where the user can retrieve further details about an order.
397
- */
398
- url?: string;
399
387
  }
400
388
  /**
401
389
  * ソート条件
@@ -2,7 +2,8 @@ import { IAttributes as ISendEmailMessageActionAttributes } from '../action/tran
2
2
  import { IExtendId } from '../autoGenerated';
3
3
  import { IClientUser } from '../clientUser';
4
4
  import { CreativeWorkType } from '../creativeWorkType';
5
- import { ICustomer as IOrderCustomer, IBroker, IIdentifier as IOrderIdentifier, ISeller as IOrderSeller, IOrder } from '../order';
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';
@@ -31,6 +32,10 @@ export interface IPaymentMethodByPaymentUrl {
31
32
  export interface IObject {
32
33
  broker?: Pick<IBroker, 'id' | 'typeOf'>;
33
34
  customer?: ICustomerInObject;
35
+ /**
36
+ * passportによって決定するカスタマータイプ
37
+ */
38
+ customerType?: string;
34
39
  /**
35
40
  * 確認番号
36
41
  */
@@ -43,6 +48,12 @@ export interface IObject {
43
48
  * 決済URLでの決済情報
44
49
  */
45
50
  paymentMethods?: IPaymentMethodByPaymentUrl;
51
+ /**
52
+ * 取引確定時にセットされる
53
+ * 確定取引であれば存在するはず
54
+ * 2026-06-15~
55
+ */
56
+ orderDate?: Date;
46
57
  name?: never;
47
58
  identifier?: never;
48
59
  clientUser?: never;
@@ -95,25 +106,6 @@ export interface IPotentialActionsParams {
95
106
  };
96
107
  };
97
108
  }
98
- /**
99
- * 取引結果の注文パラメータ
100
- */
101
- export interface IResultOrderParams {
102
- /**
103
- * 注文識別子指定
104
- */
105
- identifier?: IOrderIdentifier;
106
- /**
107
- * 注文確認URLのカスタム指定
108
- */
109
- url?: string;
110
- }
111
- /**
112
- * 取引結果パラメータ
113
- */
114
- export interface IResultParams {
115
- order?: IResultOrderParams;
116
- }
117
109
  /**
118
110
  * 取引確定パラメータ
119
111
  */
@@ -129,12 +121,12 @@ export interface IConfirmParams {
129
121
  * 取引確定後アクション
130
122
  */
131
123
  potentialActions?: IPotentialActionsParams;
132
- /**
133
- * 取引結果
134
- */
135
- result?: IResultParams;
136
124
  }
137
- export type IOrderAsResult = Pick<IOrder, 'confirmationNumber' | 'identifier' | 'orderDate' | 'orderNumber' | 'orderStatus' | 'price' | 'priceCurrency' | 'typeOf' | 'url'> & {};
125
+ export type IOrderAsResult = Pick<IOrder, 'confirmationNumber' | 'orderDate' | 'orderNumber' | 'price' | 'priceCurrency' | 'typeOf'> & {
126
+ orderStatus: OrderStatus.OrderPaymentDue;
127
+ identifier?: never;
128
+ url?: never;
129
+ };
138
130
  export interface IAuthorizeActionAsResult {
139
131
  id: string;
140
132
  }
@@ -144,8 +136,9 @@ export interface IAuthorizeActionAsResult {
144
136
  export interface IResult {
145
137
  /**
146
138
  * 注文
139
+ * optional(2026-06-15~)
147
140
  */
148
- order: IOrderAsResult;
141
+ order?: IOrderAsResult;
149
142
  /**
150
143
  * 取引確定時の同期的な注文コード発行に対応(2024-02-05~)
151
144
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "8.2.0-alpha.9",
3
+ "version": "9.0.0-alpha.0",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [