@chevre/factory 4.232.0 → 4.235.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.
@@ -3,12 +3,12 @@ import { ActionType } from '../../../actionType';
3
3
  import { TransactionType } from '../../../transactionType';
4
4
  import * as AuthorizeActionFactory from '../../authorize';
5
5
  export declare type IAgent = ActionFactory.IParticipantAsSeller;
6
- export declare type IRecipient = ActionFactory.IParticipant;
6
+ export declare type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
7
7
  export declare enum ObjectType {
8
8
  PointAward = "PointAward"
9
9
  }
10
10
  /**
11
- * オーソリ対象インターフェース
11
+ * オーソリ対象
12
12
  */
13
13
  export interface IObject {
14
14
  typeOf: ObjectType;
@@ -35,7 +35,7 @@ export interface IPurpose {
35
35
  }
36
36
  export declare type IError = any;
37
37
  /**
38
- * ポイントインセンティブ承認アクション属性インターフェース
38
+ * ポイントインセンティブ承認アクション属性
39
39
  */
40
40
  export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
41
41
  typeOf: ActionType.AuthorizeAction;
@@ -45,7 +45,7 @@ export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject,
45
45
  purpose: IPurpose;
46
46
  }
47
47
  /**
48
- * ポイントインセンティブ承認アクションインターフェース
48
+ * ポイントインセンティブ承認アクション
49
49
  * 注文取引のインセンティブとしてポイントを付与する場合に使用されます。
50
50
  */
51
51
  export declare type IAction = ActionFactory.IAction<IAttributes>;
@@ -6,8 +6,8 @@ import * as OrderFactory from '../../../order';
6
6
  import { PriceCurrency } from '../../../priceCurrency';
7
7
  import { TransactionType } from '../../../transactionType';
8
8
  import * as AuthorizeActionFactory from '../../authorize';
9
- export declare type IAgent = ActionFactory.IParticipant;
10
- export declare type IRecipient = ActionFactory.IParticipant;
9
+ export declare type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsSeller;
10
+ export declare type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
11
11
  export declare type IRequestBody = any;
12
12
  export declare type IResponseBody = MoneyTransferTransactionFactory.ITransaction;
13
13
  export import IPendingTransaction = OrderFactory.IMoneyTransferPendingTransaction;
@@ -10,7 +10,7 @@ import { ISeller } from '../../../seller';
10
10
  import { TransactionType } from '../../../transactionType';
11
11
  import * as AuthorizeActionFactory from '../../authorize';
12
12
  export declare type IAgent = ActionFactory.IParticipantAsSeller;
13
- export declare type IRecipient = ActionFactory.IParticipant;
13
+ export declare type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
14
14
  export declare type IService = IProduct;
15
15
  export declare type IAcceptedOfferWithoutDetail = RegisterServiceTransactionFactory.IAcceptedOfferWithoutDetail;
16
16
  export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'price' | 'availability' | 'availableAtOrFrom'> {
@@ -12,7 +12,7 @@ import * as WebAPIFactory from '../../../service/webAPI';
12
12
  import { TransactionType } from '../../../transactionType';
13
13
  import * as AuthorizeActionFactory from '../../authorize';
14
14
  export declare type IAgent = ActionFactory.IParticipantAsSeller;
15
- export declare type IRecipient = ActionFactory.IParticipant;
15
+ export declare type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
16
16
  export declare enum ObjectType {
17
17
  SeatReservation = "SeatReservation"
18
18
  }
@@ -87,7 +87,7 @@ export interface IPurpose {
87
87
  */
88
88
  export declare type IError = any;
89
89
  /**
90
- * 座席予約承認アクションインターフェース
90
+ * 座席予約承認アクション
91
91
  */
92
92
  export interface IAttributes<T extends WebAPIFactory.Identifier> extends AuthorizeActionFactory.IAttributes<IObject<T>, IResult<T>> {
93
93
  typeOf: ActionType.AuthorizeAction;
@@ -12,7 +12,7 @@ import { IPropertyValue } from '../../../propertyValue';
12
12
  import { PaymentServiceType } from '../../../service/paymentService';
13
13
  import { TransactionType } from '../../../transactionType';
14
14
  import * as AuthorizeActionFactory from '../../authorize';
15
- export declare type IAgent = ActionFactory.IParticipant;
15
+ export declare type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
16
16
  export declare type IRecipient = ActionFactory.IParticipantAsSeller;
17
17
  export declare enum ResultType {
18
18
  Payment = "Payment"
@@ -22,7 +22,7 @@ export declare enum ResultType {
22
22
  */
23
23
  export declare type IAnyPaymentMethod = string;
24
24
  /**
25
- * 進行中取引インターフェース
25
+ * 進行中取引
26
26
  */
27
27
  export interface IObjectPendingTransaction {
28
28
  typeOf: AssetTransactionType.MoneyTransfer;
@@ -33,7 +33,7 @@ export declare type IPaymentCard = MoneyTransferActionFactory.IPaymentCard;
33
33
  export import ITokenizedPaymentCard = PayTransactionFactory.ITokenizedPaymentCard;
34
34
  export import IFromLocation = PayTransactionFactory.IFromLocation;
35
35
  /**
36
- * 転送先インターフェース
36
+ * 転送先
37
37
  */
38
38
  export declare type IToLocation = IPaymentCard;
39
39
  export import IPurchaseNumberAuthResult = CheckMovieTicketActionFactory.IPurchaseNumberAuthResult;
@@ -41,12 +41,12 @@ export import IUnauthorizedCardOfMember = CreditCardFactory.IUnauthorizedCardOfM
41
41
  export import IUncheckedCardRaw = CreditCardFactory.IUncheckedCardRaw;
42
42
  export import IUncheckedCardTokenized = CreditCardFactory.IUncheckedCardTokenized;
43
43
  /**
44
- * クレジットカード決済承認アクションに必要なクレジットカード情報インターフェース
44
+ * クレジットカード決済承認アクションに必要なクレジットカード情報
45
45
  */
46
46
  export declare type ICreditCard = IUncheckedCardRaw | IUncheckedCardTokenized | IUnauthorizedCardOfMember;
47
47
  export import IMovieTicket = MovieTicketFactory.IMovieTicket;
48
48
  /**
49
- * 承認対象インターフェース
49
+ * 承認対象
50
50
  */
51
51
  export interface IObject {
52
52
  /**
@@ -189,9 +189,7 @@ export interface IPurpose {
189
189
  id: string;
190
190
  }
191
191
  export declare enum ServiceIdentifier {
192
- Chevre = "Chevre",
193
- GMO = "GMO",
194
- MovieTicket = "MovieTicket"
192
+ Chevre = "Chevre"
195
193
  }
196
194
  export interface IService {
197
195
  typeOf: 'WebAPI';
@@ -199,7 +197,7 @@ export interface IService {
199
197
  }
200
198
  export declare type IInstrument = IService;
201
199
  /**
202
- * 決済承認アクション属性インターフェース
200
+ * 決済承認アクション属性
203
201
  */
204
202
  export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
205
203
  typeOf: ActionType.AuthorizeAction;
@@ -210,6 +208,6 @@ export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject,
210
208
  purpose: IPurpose;
211
209
  }
212
210
  /**
213
- * 決済承認アクションインターフェース
211
+ * 決済承認アクション
214
212
  */
215
213
  export declare type IAction = ActionFactory.IAction<IAttributes>;
@@ -7,7 +7,6 @@ var ResultType;
7
7
  })(ResultType = exports.ResultType || (exports.ResultType = {}));
8
8
  var ServiceIdentifier;
9
9
  (function (ServiceIdentifier) {
10
+ // 現時点で決済取引はChevreのみ対応
10
11
  ServiceIdentifier["Chevre"] = "Chevre";
11
- ServiceIdentifier["GMO"] = "GMO";
12
- ServiceIdentifier["MovieTicket"] = "MovieTicket";
13
12
  })(ServiceIdentifier = exports.ServiceIdentifier || (exports.ServiceIdentifier = {}));
@@ -7,16 +7,12 @@ import { AssetTransactionType } from '../../assetTransactionType';
7
7
  import { IPaymentServiceOutput } from '../../invoice';
8
8
  import { IMonetaryAmount } from '../../monetaryAmount';
9
9
  import { OrderType } from '../../order';
10
- import { OrganizationType } from '../../organizationType';
11
10
  import { IMovieTicket } from '../../paymentMethod/paymentCard/movieTicket';
12
11
  import { IPropertyValue } from '../../propertyValue';
13
12
  import { PaymentServiceType } from '../../service/paymentService';
14
13
  import { TransactionType } from '../../transactionType';
15
14
  import { IAttributes as IInformActionAttributes } from '../interact/inform';
16
- export interface IAgent {
17
- id: string;
18
- typeOf: OrganizationType.Project;
19
- }
15
+ export declare type IAgent = ActionFactory.IParticipantAsProject;
20
16
  export import IRecipient = ActionFactory.IParticipantAsSeller;
21
17
  export interface IOrderAsPayPurpose {
22
18
  typeOf: OrderType.Order;
@@ -2,7 +2,7 @@ import * as ActionFactory from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
3
  import { IAttributes as IInformActionAttributes } from '../interact/inform';
4
4
  import { IPaymentService as IPaymentServiceOnPay, IPayPurpose } from './pay';
5
- export declare type IAgent = ActionFactory.IParticipant;
5
+ export declare type IAgent = ActionFactory.IParticipantAsSeller | ActionFactory.IParticipantAsPerson;
6
6
  export declare type IRecipient = ActionFactory.IParticipant;
7
7
  export declare type IPaymentService = IPaymentServiceOnPay & {
8
8
  refundFee?: number;
@@ -13,7 +13,7 @@ export interface IPendingTransaction {
13
13
  identifier?: string;
14
14
  transactionNumber?: string;
15
15
  }
16
- export declare type IAgent = ActionFactory.IParticipant;
16
+ export declare type IAgent = ActionFactory.IParticipantAsProject | ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsSeller;
17
17
  export declare type IRecipient = ActionFactory.IParticipant;
18
18
  /**
19
19
  * 匿名ロケーション
@@ -11,30 +11,6 @@ import { IPropertyValue } from '../propertyValue';
11
11
  import { PaymentServiceType } from '../service/paymentService';
12
12
  export import IAgent = AssetTransactionFactory.IAgent;
13
13
  export declare type IRecipient = IPayRecipient;
14
- export declare type IObjectWithoutDetail = IObject;
15
- export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> & {
16
- recipient: IRecipient;
17
- purpose?: IPayPurpose;
18
- };
19
- export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> {
20
- recipient: IRecipient;
21
- }
22
- export interface IPotentialActionsParams {
23
- pay: {
24
- purpose: IOrderAsPayPurpose;
25
- };
26
- }
27
- /**
28
- * 確定パラメータ
29
- */
30
- export interface IConfirmParams {
31
- id?: string;
32
- transactionNumber?: string;
33
- endDate?: Date;
34
- potentialActions: IPotentialActionsParams;
35
- }
36
- export declare type IResult = any;
37
- export declare type IError = any;
38
14
  /**
39
15
  * ペイメントカードトークン
40
16
  */
@@ -103,6 +79,8 @@ export interface IPaymentMethod {
103
79
  * 取引対象物
104
80
  */
105
81
  export interface IObject {
82
+ accountId: string;
83
+ paymentMethodId: string;
106
84
  typeOf: PaymentServiceType;
107
85
  /**
108
86
  * 発行決済サービスID
@@ -117,14 +95,43 @@ export interface IObject {
117
95
  payAction?: any;
118
96
  onPaymentStatusChanged?: IOnPaymentStatusChanged;
119
97
  }
98
+ export declare type IObjectWithoutDetail = Omit<IObject, 'accountId' | 'paymentMethodId'>;
99
+ export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObjectWithoutDetail> & {
100
+ recipient: IRecipient;
101
+ purpose?: IPayPurpose;
102
+ };
103
+ export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> {
104
+ recipient: IRecipient;
105
+ }
120
106
  export interface IPotentialActions {
121
107
  /**
122
108
  * 決済アクション
123
109
  */
124
110
  pay: IPayActionAttributes[];
125
111
  }
112
+ export interface IPotentialActionsParams {
113
+ pay: {
114
+ purpose: IOrderAsPayPurpose;
115
+ };
116
+ }
117
+ /**
118
+ * 確定パラメータ
119
+ */
120
+ export interface IConfirmParams {
121
+ id?: string;
122
+ transactionNumber?: string;
123
+ endDate?: Date;
124
+ potentialActions: IPotentialActionsParams;
125
+ }
126
+ export declare type IResult = any;
127
+ export declare type IError = any;
126
128
  export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
127
129
  }
128
130
  export declare type ITransaction = IExtendId<IAttributes>;
129
131
  export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Pay> {
132
+ object?: {
133
+ accountId?: {
134
+ $eq?: string;
135
+ };
136
+ };
130
137
  }
@@ -7,15 +7,23 @@ import { IOnPaymentStatusChanged } from '../project';
7
7
  import { PaymentServiceType } from '../service/paymentService';
8
8
  export import IAgent = AssetTransactionFactory.IAgent;
9
9
  export declare type IRecipient = IRefundRecipient;
10
- export interface IObjectWithoutDetail {
10
+ export declare type IAnyPaymentMethod = AvailablePaymentMethodType;
11
+ /**
12
+ * 取引対象物
13
+ */
14
+ export interface IObject {
15
+ accountId: string;
16
+ paymentMethodId: string;
11
17
  typeOf: PaymentServiceType;
12
18
  /**
13
19
  * 発行決済サービスID
14
20
  */
15
21
  id: string;
22
+ onPaymentStatusChanged?: IOnPaymentStatusChanged;
16
23
  paymentMethod: IPaymentMethod;
17
24
  refundFee?: number;
18
25
  }
26
+ export declare type IObjectWithoutDetail = Omit<IObject, 'accountId' | 'paymentMethodId' | 'onPaymentStatusChanged'>;
19
27
  export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObjectWithoutDetail>;
20
28
  export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObject> {
21
29
  }
@@ -35,20 +43,6 @@ export interface IConfirmParams {
35
43
  }
36
44
  export declare type IResult = any;
37
45
  export declare type IError = any;
38
- export declare type IAnyPaymentMethod = AvailablePaymentMethodType;
39
- /**
40
- * 取引対象物
41
- */
42
- export interface IObject {
43
- typeOf: PaymentServiceType;
44
- /**
45
- * 発行決済サービスID
46
- */
47
- id: string;
48
- onPaymentStatusChanged?: IOnPaymentStatusChanged;
49
- paymentMethod: IPaymentMethod;
50
- refundFee?: number;
51
- }
52
46
  export interface IPotentialActions {
53
47
  /**
54
48
  * 返金アクション
@@ -62,4 +56,9 @@ export declare type ITransaction = IExtendId<IAttributes>;
62
56
  export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
63
57
  }
64
58
  export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Refund> {
59
+ object?: {
60
+ accountId?: {
61
+ $eq?: string;
62
+ };
63
+ };
65
64
  }
@@ -234,7 +234,7 @@ export interface ILocation {
234
234
  */
235
235
  maximumAttendeeCapacity?: number;
236
236
  }
237
- export declare type ISuperEvent = ScreeningEventSeriesFactory.IEvent;
237
+ export declare type ISuperEvent = Omit<ScreeningEventSeriesFactory.IEvent, 'eventStatus' | 'offers'>;
238
238
  export declare type IName = IMultilingualString;
239
239
  /**
240
240
  * イベント属性
@@ -10,7 +10,7 @@ import { PlaceType } from '../placeType';
10
10
  import { PriceCurrency } from '../priceCurrency';
11
11
  import { IProject } from '../project';
12
12
  /**
13
- * 施設コンテンツに対するオファーインターフェース
13
+ * 施設コンテンツに対するオファー
14
14
  */
15
15
  export interface IOffer {
16
16
  project: IProject;
@@ -27,7 +27,7 @@ export interface ISoundFormat {
27
27
  name: string;
28
28
  }
29
29
  /**
30
- * コンテンツインターフェース
30
+ * コンテンツ
31
31
  */
32
32
  export declare type IWorkPerformed = IMovie;
33
33
  export interface IOrganizer {
@@ -65,7 +65,7 @@ export interface ICOAInfo {
65
65
  */
66
66
  dateMvtkBegin: string;
67
67
  }
68
- export interface IAttributes extends EventFactory.IAttributes<EventType.ScreeningEventSeries> {
68
+ export interface IEventSeriesAttributes extends EventFactory.IAttributes<EventType.ScreeningEventSeries> {
69
69
  /**
70
70
  * 字幕利用可能言語
71
71
  */
@@ -91,9 +91,6 @@ export interface IAttributes extends EventFactory.IAttributes<EventType.Screenin
91
91
  */
92
92
  location: {
93
93
  project: IProject;
94
- /**
95
- * スキーマタイプ
96
- */
97
94
  typeOf: PlaceType.MovieTheater;
98
95
  /**
99
96
  * 場所ID
@@ -144,16 +141,17 @@ export interface IAttributes extends EventFactory.IAttributes<EventType.Screenin
144
141
  */
145
142
  coaInfo?: ICOAInfo;
146
143
  }
144
+ export declare type IAttributes = Omit<IEventSeriesAttributes, 'hasOfferCatalog' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity'>;
147
145
  /**
148
- * 施設コンテンツインターフェース
146
+ * 施設コンテンツ
149
147
  */
150
148
  export declare type IEvent = EventFactory.IEvent<IAttributes>;
151
149
  /**
152
- * ソート条件インターフェース
150
+ * ソート条件
153
151
  */
154
152
  export declare type ISortOrder = EventFactory.ISortOrder;
155
153
  /**
156
- * イベントの検索条件インターフェース
154
+ * 検索条件
157
155
  */
158
156
  export interface ISearchConditions extends EventFactory.ISearchConditions<EventType.ScreeningEventSeries> {
159
157
  sort?: ISortOrder;
@@ -8,6 +8,7 @@ import { IPriceSpecification as IUnitPriceSpecification } from '../priceSpecific
8
8
  import { IProject } from '../project';
9
9
  import * as ReservationFactory from '../reservation';
10
10
  import { ReservationType } from '../reservationType';
11
+ export declare type IOptimizedSuperEvent = Omit<ISuperEvent, 'subtitleLanguage' | 'dubLanguage' | 'organizer' | 'offers' | 'endDate' | 'startDate' | 'doorDate' | 'eventStatus'>;
11
12
  export interface IReservationFor {
12
13
  endDate: Date;
13
14
  eventStatus: EventStatusType;
@@ -25,7 +26,7 @@ export interface IReservationFor {
25
26
  name: IEventName;
26
27
  project: IProject;
27
28
  startDate: Date;
28
- superEvent: ISuperEvent;
29
+ superEvent: IOptimizedSuperEvent;
29
30
  typeOf: EventType.ScreeningEvent;
30
31
  doorTime?: Date;
31
32
  }
@@ -5,7 +5,6 @@ import * as MoneyTransferAssetTransactionFactory from '../assetTransaction/money
5
5
  import { AssetTransactionType } from '../assetTransactionType';
6
6
  import { IExtendId } from '../autoGenerated';
7
7
  import { IMonetaryAmount } from '../monetaryAmount';
8
- import { OrganizationType } from '../organizationType';
9
8
  import { PersonType } from '../personType';
10
9
  import { IProject } from '../project';
11
10
  import * as TransactionFactory from '../transaction';
@@ -19,15 +18,7 @@ export interface IRecipientAsPerson {
19
18
  */
20
19
  name?: string;
21
20
  }
22
- export interface IRecipientAsSeller {
23
- typeOf: OrganizationType.Corporation;
24
- id: string;
25
- /**
26
- * 受取人名称
27
- */
28
- name?: string;
29
- }
30
- export declare type IRecipient = IRecipientAsPerson | IRecipientAsSeller;
21
+ export declare type IRecipient = IRecipientAsPerson;
31
22
  export import ISeller = TransactionFactory.ISeller;
32
23
  export import IPaymentCard = MoneyTransferAssetTransactionFactory.IPaymentCard;
33
24
  export import ITokenizedPaymentCard = MoneyTransferAssetTransactionFactory.ITokenizedPaymentCard;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.232.0",
3
+ "version": "4.235.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",