@chevre/factory 9.5.0-alpha.10 → 9.5.0-alpha.12

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,5 +1,5 @@
1
1
  import { IAction as IBaseAction } from '../../action';
2
- import { IAcceptedPaymentMethodOfferAsInstrument, IPaymentMethodTicketAsInstrument } from '../../action/trade/pay';
2
+ import { IPaymentMethodTicketAsInstrument } from '../../action/trade/pay';
3
3
  import { ActionType } from '../../actionType';
4
4
  import { IAgent, IObjectWithoutDetail, IPaymentMethodWithoutDetail } from '../../assetTransaction/pay';
5
5
  import { AssetTransactionType } from '../../assetTransactionType';
@@ -29,7 +29,7 @@ export interface IPurpose {
29
29
  typeOf: TransactionType.PlaceOrder;
30
30
  id: string;
31
31
  }
32
- export type IInstrument = IPaymentMethodTicketAsInstrument | IAcceptedPaymentMethodOfferAsInstrument;
32
+ export type IInstrument = IPaymentMethodTicketAsInstrument;
33
33
  /**
34
34
  * 決済採用アクション属性
35
35
  */
@@ -4,7 +4,6 @@ import { ActionType } from '../../actionType';
4
4
  import { AssetTransactionType } from '../../assetTransactionType';
5
5
  import { CreativeWorkType } from '../../creativeWorkType';
6
6
  import { IPaymentServiceOutput } from '../../invoice';
7
- import { OfferType } from '../../offerType';
8
7
  import { IOrder, ITotalPaymentDue, OrderType } from '../../order';
9
8
  import { IMovieTicketPaymentCard } from '../../paymentMethod/paymentCard/movieTicket';
10
9
  import { IPropertyValue } from '../../propertyValue';
@@ -111,20 +110,15 @@ export interface IPaymentMethodTicketAsInstrument {
111
110
  ticketToken: string;
112
111
  typeOf: 'Ticket';
113
112
  }
113
+ export type IAcceptedPaymentMethodOfferAsInstrument = never;
114
114
  /**
115
- * ツールとしての対応決済方法オファー
115
+ * 決済取引のinstrument
116
116
  */
117
- export interface IAcceptedPaymentMethodOfferAsInstrument {
118
- /**
119
- * 対応決済方法オファーID
120
- */
121
- id: string;
122
- typeOf: OfferType.Offer;
123
- }
117
+ export type IPayTransactionInstrument = IOrderAsInstrument | IAuthorizeActionAsInstrument | IPaymentMethodTicketAsInstrument;
124
118
  /**
125
119
  * 注文時の決済アクションツール
126
120
  */
127
- export type IPlaceOrderRelatedInstrument = IPayTransactionAsInstrument | IOrderAsInstrument | IAuthorizeActionAsInstrument | IPaymentMethodTicketAsInstrument | IAcceptedPaymentMethodOfferAsInstrument;
121
+ export type IPlaceOrderRelatedInstrument = IPayTransactionAsInstrument | IPayTransactionInstrument;
128
122
  /**
129
123
  * 注文返品時の決済アクションツール
130
124
  */
@@ -1,4 +1,4 @@
1
- import { IAction as IPayAction, ILocation, IMovieTicket, IOrderAsPayPurpose, IPlaceOrderRelatedInstrument, IRecipient as IPayRecipient } from '../action/trade/pay';
1
+ import { IAction as IPayAction, ILocation, IMovieTicket, IOrderAsPayPurpose, IPayTransactionInstrument, IRecipient as IPayRecipient } from '../action/trade/pay';
2
2
  import { IAgentAsSeller, ISearchConditions as IBaseSearchConditions, IStartParams as IBaseStartParams, IAttributes as IBaseAttributes } from '../assetTransaction';
3
3
  import { AssetTransactionType } from '../assetTransactionType';
4
4
  import { IExtendId } from '../autoGenerated';
@@ -156,7 +156,7 @@ export interface IStartParams extends IBaseStartParams<AssetTransactionType.Pay,
156
156
  /**
157
157
  * add(2025-02-18~)
158
158
  */
159
- instrument?: IPlaceOrderRelatedInstrument[];
159
+ instrument?: IPayTransactionInstrument[];
160
160
  }
161
161
  export interface IOptimizedPayAction4order {
162
162
  object: {
@@ -1,14 +1,11 @@
1
1
  import { IObjectWithoutDetail, IPurpose } from '../action/authorize/paymentMethod/any';
2
- import { IAcceptedPaymentMethodOfferAsInstrument, ILocation } from '../action/trade/pay';
2
+ import { ILocation } from '../action/trade/pay';
3
3
  import { IExtendId } from '../autoGenerated';
4
4
  import { PaymentServiceType } from '../service/paymentService';
5
5
  import { ITaskAttributes } from '../task';
6
6
  import { TaskName } from '../taskName';
7
- export type IInstrument = IAcceptedPaymentMethodOfferAsInstrument;
7
+ export type IInstrument = never;
8
8
  export interface IData {
9
- project: {
10
- id: string;
11
- };
12
9
  agent: {
13
10
  id: string;
14
11
  };
@@ -33,6 +30,7 @@ export interface IData {
33
30
  * クレジットカードIFあるいは決済カードIFの場合に対応決済方法オファーを指定する
34
31
  */
35
32
  instrument?: IInstrument[];
33
+ project?: never;
36
34
  }
37
35
  export interface IAttributes extends ITaskAttributes {
38
36
  name: TaskName.AuthorizePayment;
@@ -1,30 +1,34 @@
1
1
  import { IAuthorizeCreditCardObject, IPurpose } from '../action/authorize/paymentMethod/any';
2
- import { IAcceptedPaymentMethodOfferAsInstrument, ILocation } from '../action/trade/pay';
2
+ import { ILocation } from '../action/trade/pay';
3
3
  import { IExtendId } from '../autoGenerated';
4
4
  import { PaymentServiceType } from '../service/paymentService';
5
5
  import { ITaskAttributes } from '../task';
6
6
  import { TaskName } from '../taskName';
7
- export type IInstrument = IAcceptedPaymentMethodOfferAsInstrument;
7
+ export type IInstrument = never;
8
8
  export interface IData {
9
- project: {
10
- id: string;
11
- };
12
9
  agent: {
13
10
  id: string;
14
11
  };
15
- object: Pick<IAuthorizeCreditCardObject, 'amount' | 'creditCard' | 'issuedThrough' | 'method' | 'paymentMethod' | 'referencesOrder'>;
12
+ object: Pick<IAuthorizeCreditCardObject, 'amount' | 'creditCard' | 'issuedThrough' | 'method' | 'paymentMethod' | 'referencesOrder' | 'ticketToken'>;
16
13
  purpose: IPurpose;
17
- paymentServiceType: PaymentServiceType;
14
+ paymentServiceType: PaymentServiceType.CreditCard;
18
15
  location: ILocation;
19
16
  /**
20
17
  * add identifier for an unique index(2025-02-25~)
21
- * authorize payment action identifier
18
+ * 採用アクション識別子
19
+ */
20
+ identifier: string;
21
+ /**
22
+ * 注文取引に決済方法IDを保管するかどうかのオプション
23
+ * 2026-07-16~
24
+ * 一時的にサポート
22
25
  */
23
- identifier?: string;
26
+ savePaymentMethodIdInTransaction?: boolean;
24
27
  /**
25
28
  * クレジットカードIFあるいは決済カードIFの場合に対応決済方法オファーを指定する
26
29
  */
27
30
  instrument?: IInstrument[];
31
+ project?: never;
28
32
  }
29
33
  export interface IAttributes extends ITaskAttributes {
30
34
  name: TaskName.PublishPaymentUrl;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "9.5.0-alpha.10",
3
+ "version": "9.5.0-alpha.12",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [