@chevre/factory 4.351.0 → 4.352.0-alpha.1

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.
package/lib/action.d.ts CHANGED
@@ -90,6 +90,9 @@ export interface ISearchConditions {
90
90
  limit?: number;
91
91
  page?: number;
92
92
  sort?: ISortOrder;
93
+ id?: {
94
+ $nin?: string[];
95
+ };
93
96
  project?: {
94
97
  id?: {
95
98
  $eq?: string;
@@ -123,11 +123,29 @@ export interface IStartParams extends AssetTransactionFactory.IStartParams<Asset
123
123
  location?: ILocation;
124
124
  recipient: IRecipient;
125
125
  }
126
+ export interface IOptimizedPayAction4order {
127
+ object: {
128
+ paymentMethod: {
129
+ /**
130
+ * 決済取引番号
131
+ */
132
+ paymentMethodId: string;
133
+ };
134
+ };
135
+ /**
136
+ * 決済元の注文
137
+ */
138
+ purpose: Pick<IOrderAsPayPurpose, 'typeOf'> & {
139
+ confirmationNumber: string;
140
+ orderNumber: string;
141
+ };
142
+ typeOf?: never;
143
+ }
126
144
  export interface IPotentialActions {
127
145
  /**
128
146
  * 決済アクション
129
147
  */
130
- pay: IPayActionAttributes[];
148
+ pay: IPayActionAttributes[] | IOptimizedPayAction4order[];
131
149
  }
132
150
  export interface IPotentialActionsParams {
133
151
  pay: {
package/lib/task/pay.d.ts CHANGED
@@ -1,8 +1,11 @@
1
1
  import { IAttributes as IPayActionAttributes } from '../action/trade/pay';
2
+ import { IOptimizedPayAction4order } from '../assetTransaction/pay';
2
3
  import { IExtendId } from '../autoGenerated';
3
4
  import * as TaskFactory from '../task';
4
5
  import { TaskName } from '../taskName';
5
- export type IData = IPayActionAttributes;
6
+ export { IOptimizedPayAction4order };
7
+ export type IPayActionData = IPayActionAttributes;
8
+ export type IData = IPayActionData | IOptimizedPayAction4order;
6
9
  export interface IAttributes extends TaskFactory.IAttributes {
7
10
  name: TaskName.Pay;
8
11
  data: IData;
@@ -178,6 +178,9 @@ export interface IConfirmParams {
178
178
  export type IOrderAsResult = OrderFactory.IOrder & {
179
179
  acceptedOffers: OrderFactory.IAcceptedOffer<OrderFactory.IItemOffered>[];
180
180
  };
181
+ export interface IAuthorizeActionAsResult {
182
+ id: string;
183
+ }
181
184
  /**
182
185
  * 取引結果
183
186
  */
@@ -186,6 +189,14 @@ export interface IResult {
186
189
  * 注文
187
190
  */
188
191
  order: IOrderAsResult;
192
+ /**
193
+ * 承認アクションID(2024-01-17~)
194
+ */
195
+ authorizeActions?: IAuthorizeActionAsResult[];
196
+ /**
197
+ * オファー数(2024-01-17~)
198
+ */
199
+ numAcceptedOffers?: number;
189
200
  }
190
201
  /**
191
202
  * エラー
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.351.0",
3
+ "version": "4.352.0-alpha.1",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",