@chevre/factory 9.5.0-alpha.9 → 10.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.
@@ -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
  */
@@ -1,52 +1,26 @@
1
1
  import { IAction as IBaseAction } from '../../../action';
2
2
  import { ActionType } from '../../../actionType';
3
- import { IAcceptedTicketOfferWithoutDetail, IObjectWithoutDetail, IPermitIssuedThroughFaceToFace, IPermitIssuedThroughMembershipService } from '../../../assetTransaction/reserve';
4
- import { IEvent } from '../../../event/screeningEvent';
3
+ import { IAcceptedTicketOfferWithoutDetail, IObjectWithoutDetail } from '../../../assetTransaction/reserve';
5
4
  import { OfferType } from '../../../offerType';
6
- import { IPriceSpecification as IUnitPriceSpecification } from '../../../priceSpecification/unitPriceSpecification';
7
- import { ITicketOffer } from '../../../product';
8
5
  import { IAttributes as IBaseAttributes } from '../../authorize';
9
6
  import { IAgent, IError, IInstrumentAsCOAReserveTransaction, IInstrumentAsReserveTransaction, IPurpose, IRecipient, ObjectType } from './any';
10
7
  export { IAgent, IRecipient, IInstrumentAsCOAReserveTransaction, IInstrumentAsReserveTransaction, IError, IPurpose, ObjectType, };
11
8
  export type IInstrumentAsAssetTransaction = IInstrumentAsCOAReserveTransaction | IInstrumentAsReserveTransaction;
12
- export interface IAcceptedOfferInResult extends Pick<ITicketOffer, 'acceptedPaymentMethod' | 'id' | 'typeOf'> {
13
- typeOf: OfferType.Offer;
14
- id: string;
15
- includesObject: {
16
- amountOfThisGood: number;
17
- };
18
- /**
19
- * 取引確定時の検証に必要な情報のみ保管する
20
- */
21
- priceSpecification?: Pick<IUnitPriceSpecification, 'eligibleQuantity'>;
22
- }
23
- export type IAggregateProgramMembershipUsed = (IPermitIssuedThroughFaceToFace | IPermitIssuedThroughMembershipService)[];
24
9
  /**
25
10
  * オファー承認結果としての集計オファー
26
11
  */
27
12
  export interface IResult {
28
13
  typeOf: OfferType.AggregateOffer;
29
- /**
30
- * オファーIDごとの集計
31
- */
32
- offers?: IAcceptedOfferInResult[];
33
- itemOffered?: {
34
- serviceOutput: {
35
- /**
36
- * programMembershipUsed required(2024-08-15~)
37
- */
38
- programMembershipUsed: IAggregateProgramMembershipUsed;
39
- };
40
- };
41
14
  /**
42
15
  * 決済金額
43
16
  * オファー未指定の場合、金額非確定なので、この属性は存在しない
44
17
  */
45
18
  price?: number;
19
+ offers?: never;
20
+ itemOffered?: never;
46
21
  }
47
22
  export type IAcceptedOfferWithoutDetail = IAcceptedTicketOfferWithoutDetail;
48
23
  export { IObjectWithoutDetail };
49
- export type IEventInObject = Pick<IEvent, 'id' | 'typeOf'>;
50
24
  /**
51
25
  * 興行オファー承認アクション対象
52
26
  */
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- // import type { COAFactory } from '@coasystems/factory';
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  exports.ObjectType = void 0;
5
4
  const any_1 = require("./any");
@@ -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;
@@ -1,8 +1,7 @@
1
- import { IAttributes as ISendEmailMessageActionAttributes } from '../action/transfer/send/message/email';
2
1
  import { IExtendId } from '../autoGenerated';
3
2
  import { IClientUser } from '../clientUser';
4
3
  import { CreativeWorkType } from '../creativeWorkType';
5
- import { IAgent as IBaseAgent, ISeller as IBaseSeller, ISearchConditions as IBaseSearchConditions, ISendEmailMessageParams, IStartParams as IBaseStartParams, IAttributes as IBaseAttributes } from '../transaction';
4
+ import { IAgent as IBaseAgent, ISeller as IBaseSeller, ISearchConditions as IBaseSearchConditions, IStartParams as IBaseStartParams, IAttributes as IBaseAttributes } from '../transaction';
6
5
  import { TransactionType } from '../transactionType';
7
6
  export interface IMemberOfPayload {
8
7
  iss: string;
@@ -18,13 +17,6 @@ export type IAgent = IBaseAgent & {
18
17
  memberOfToken?: string;
19
18
  memberOfPayload?: never;
20
19
  };
21
- export interface IPaymentMethodByPaymentUrl {
22
- /**
23
- * 決済採用時に発行済の決済方法ID
24
- * 決済承認時に指定が可能
25
- */
26
- paymentMethodId: string;
27
- }
28
20
  export interface IObject {
29
21
  /**
30
22
  * passportによって決定するカスタマータイプ
@@ -38,16 +30,13 @@ export interface IObject {
38
30
  * 注文番号
39
31
  */
40
32
  orderNumber?: string;
41
- /**
42
- * 決済URLでの決済情報
43
- */
44
- paymentMethods?: IPaymentMethodByPaymentUrl;
45
33
  /**
46
34
  * 取引確定時にセットされる
47
35
  * 確定取引であれば存在するはず
48
36
  * 2026-06-15~
49
37
  */
50
38
  orderDate?: Date;
39
+ paymentMethods?: never;
51
40
  customer?: never;
52
41
  name?: never;
53
42
  identifier?: never;
@@ -80,20 +69,6 @@ export interface IStartParams extends Pick<IBaseStartParams<TransactionType.Plac
80
69
  expiresInSeconds: number;
81
70
  instrument?: IInstrument;
82
71
  }
83
- /**
84
- * 取引確定後アクションパラメータ
85
- */
86
- export interface IPotentialActionsParams {
87
- order?: {
88
- potentialActions?: {
89
- sendOrder?: {
90
- potentialActions?: {
91
- sendEmailMessage?: ISendEmailMessageParams[];
92
- };
93
- };
94
- };
95
- };
96
- }
97
72
  /**
98
73
  * 取引確定パラメータ
99
74
  */
@@ -105,10 +80,6 @@ export interface IConfirmParams {
105
80
  agent?: {
106
81
  id?: string;
107
82
  };
108
- /**
109
- * 取引確定後アクション
110
- */
111
- potentialActions?: IPotentialActionsParams;
112
83
  }
113
84
  export interface IAuthorizeActionAsResult {
114
85
  id: string;
@@ -133,22 +104,7 @@ export interface IResult {
133
104
  * エラー
134
105
  */
135
106
  export type IError = any;
136
- export type IPotentialSendEmailMessageAction = Pick<ISendEmailMessageActionAttributes, 'object'>;
137
- export interface IPotentialSendOrderAction {
138
- potentialActions?: {
139
- sendEmailMessage?: IPotentialSendEmailMessageAction[];
140
- };
141
- }
142
- export interface IOrderPotentialActions {
143
- sendOrder?: IPotentialSendOrderAction;
144
- }
145
- export interface IPotentialActions {
146
- order: {
147
- onOrderProcessing?: {
148
- sendEmailMessage?: IPotentialSendEmailMessageAction[];
149
- };
150
- };
151
- }
107
+ export type IPotentialActions = never;
152
108
  export interface IAttributes extends IBaseAttributes<Omit<IStartParams, 'expiresInSeconds'>, IResult, IError, IPotentialActions> {
153
109
  }
154
110
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "9.5.0-alpha.9",
3
+ "version": "10.0.0-alpha.0",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [