@chevre/factory 4.352.0-alpha.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.
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.352.0-alpha.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",