@chevre/factory 4.204.0 → 4.207.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.
package/lib/chevre.d.ts CHANGED
@@ -381,7 +381,7 @@ export declare namespace reservation {
381
381
  type ISortOrder<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ISortOrder : ReservationFactory.ISortOrder;
382
382
  type ISeat<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ISeat : ReservationFactory.ISeat;
383
383
  type ISubReservation<T extends ReservationType> = T extends ReservationType.EventReservation ? EventReservationFactory.ISubReservation : T extends ReservationType.ReservationPackage ? ReservationPackageFactory.ISubReservation : any;
384
- type ITicket<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ITicket<IPriceSpecification<T>> : ReservationFactory.ITicket<IPriceSpecification<T>>;
384
+ export import ITicket = ReservationFactory.ITicket;
385
385
  type IUnderName<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.IUnderName : ReservationFactory.IUnderName;
386
386
  type TicketType<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.TicketType : ReservationFactory.TicketType;
387
387
  type ITicketType<T extends ReservationType> = T extends ReservationType.EventReservation ? ReservationFactory.ITicketType : ReservationFactory.ITicketType;
@@ -4,6 +4,7 @@ import * as ActionFactory from '../../action';
4
4
  import { IAttributes as IReturnOrderActionAttributes } from '../../action/transfer/return/order';
5
5
  import { ActionType } from '../../actionType';
6
6
  import { AssetTransactionType } from '../../assetTransactionType';
7
+ import { IPaymentServiceOutput } from '../../invoice';
7
8
  import { IMonetaryAmount } from '../../monetaryAmount';
8
9
  import { OrderType } from '../../order';
9
10
  import { IMovieTicket } from '../../paymentMethod/paymentCard/movieTicket';
@@ -75,22 +76,6 @@ export interface IPaymentMethod {
75
76
  */
76
77
  additionalProperty: IPropertyValue<string>[];
77
78
  }
78
- export interface IMovieTicketAsPaymentServiceOutput {
79
- /**
80
- * 購入管理番号
81
- */
82
- identifier: string;
83
- /**
84
- * 利用対象予約
85
- */
86
- serviceOutput?: {
87
- /**
88
- * 予約価格
89
- */
90
- price?: number;
91
- };
92
- }
93
- export declare type IPaymentServiceOutput = IMovieTicketAsPaymentServiceOutput[];
94
79
  export interface IPaymentService {
95
80
  typeOf: PaymentServiceType;
96
81
  /**
@@ -141,6 +141,11 @@ export interface ISearchConditions {
141
141
  $eq?: string;
142
142
  $in?: string[];
143
143
  };
144
+ object?: {
145
+ paymentMethodId?: {
146
+ $eq?: string;
147
+ };
148
+ };
144
149
  orderNumber?: {
145
150
  $in?: string[];
146
151
  };
@@ -1,5 +1,5 @@
1
1
  import * as GMO from '@motionpicture/gmo-service';
2
- import { IAgent as IPayAgent, IAttributes as IPayActionAttributes, IPayPurpose, IPendingTransaction, IRecipient as IPayRecipient } from '../action/trade/pay';
2
+ import { IAgent as IPayAgent, IAttributes as IPayActionAttributes, IOrderAsPayPurpose, IPayPurpose, IPendingTransaction, IRecipient as IPayRecipient } from '../action/trade/pay';
3
3
  import * as TransactionFactory from '../assetTransaction';
4
4
  import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
@@ -18,8 +18,8 @@ export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<
18
18
  export interface IStartParams extends TransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> {
19
19
  }
20
20
  export interface IPotentialActionsParams {
21
- pay?: {
22
- purpose?: IPayPurpose;
21
+ pay: {
22
+ purpose: IOrderAsPayPurpose;
23
23
  };
24
24
  }
25
25
  /**
@@ -29,7 +29,7 @@ export interface IConfirmParams {
29
29
  id?: string;
30
30
  transactionNumber?: string;
31
31
  endDate?: Date;
32
- potentialActions?: IPotentialActionsParams;
32
+ potentialActions: IPotentialActionsParams;
33
33
  }
34
34
  export declare type IResult = any;
35
35
  export declare type IError = any;
@@ -2,26 +2,47 @@ import { IMonetaryAmount } from './monetaryAmount';
2
2
  import * as OrderFactory from './order';
3
3
  import { PaymentStatusType } from './paymentStatusType';
4
4
  import * as PersonFactory from './person';
5
- import { PersonType } from './personType';
6
- import { IProject } from './project';
7
5
  import * as SellerFactory from './seller';
8
- import { SortType } from './sortType';
6
+ import { PaymentServiceType } from './service/paymentService';
9
7
  export declare type IBroker = SellerFactory.ISeller | PersonFactory.IPerson;
10
8
  export declare type IProvider = SellerFactory.ISeller | PersonFactory.IPerson;
11
9
  export interface IReferenceOrder extends OrderFactory.IOrder {
12
10
  acceptedOffers: OrderFactory.IAcceptedOffer<any>[];
13
11
  }
12
+ export interface IMovieTicketAsPaymentServiceOutput {
13
+ /**
14
+ * 購入管理番号
15
+ */
16
+ identifier: string;
17
+ /**
18
+ * 利用対象予約
19
+ */
20
+ serviceOutput?: {
21
+ /**
22
+ * 予約価格
23
+ */
24
+ price?: number;
25
+ };
26
+ }
27
+ export declare type IPaymentServiceOutput = IMovieTicketAsPaymentServiceOutput[];
28
+ /**
29
+ * 決済方法(サービス)
30
+ */
31
+ export interface IPaymentMethod {
32
+ id: string;
33
+ typeOf: PaymentServiceType;
34
+ serviceOutput?: IPaymentServiceOutput;
35
+ }
14
36
  /**
15
37
  * インボイスインターフェース
16
38
  * {@link https://schema.org/Invoice}
17
39
  */
18
40
  export interface IInvoice {
19
- project: IProject;
20
41
  typeOf: 'Invoice';
21
42
  /**
22
43
  * The identifier for the account the payment will be applied to.
23
44
  */
24
- accountId: string;
45
+ accountId?: string;
25
46
  /**
26
47
  * The time interval used to compute the invoice.
27
48
  */
@@ -54,7 +75,7 @@ export interface IInvoice {
54
75
  /**
55
76
  * The name of the credit card or other method of payment for the order.
56
77
  */
57
- paymentMethod: string;
78
+ paymentMethod: IPaymentMethod;
58
79
  /**
59
80
  * An identifier for the method of payment used (e.g. the last 4 digits of the credit card).
60
81
  */
@@ -62,7 +83,7 @@ export interface IInvoice {
62
83
  /**
63
84
  * The status of payment; whether the invoice has been paid or not.
64
85
  */
65
- paymentStatus: PaymentStatusType;
86
+ paymentStatus?: PaymentStatusType;
66
87
  /**
67
88
  * The service provider, service operator, or service performer; the goods producer.
68
89
  * Another party (a seller) may offer those services or goods on behalf of the provider.
@@ -72,7 +93,7 @@ export interface IInvoice {
72
93
  /**
73
94
  * The Order(s) related to this Invoice. One or more Orders may be combined into a single Invoice.
74
95
  */
75
- referencesOrder: IReferenceOrder;
96
+ referencesOrder?: IReferenceOrder;
76
97
  /**
77
98
  * The date the invoice is scheduled to be paid.
78
99
  */
@@ -85,50 +106,6 @@ export interface IInvoice {
85
106
  /**
86
107
  * ソート条件インターフェース
87
108
  */
88
- export interface ISortOrder {
89
- createdAt?: SortType;
90
- }
91
- export interface ICustomerSearchConditions {
92
- typeOf?: PersonType;
93
- ids?: string[];
94
- identifiers?: PersonFactory.IIdentifier;
95
- /**
96
- * メールアドレス
97
- */
98
- email?: string;
99
- /**
100
- * 電話番号
101
- */
102
- telephone?: string;
103
- memberOf?: {
104
- /**
105
- * 会員番号
106
- */
107
- membershipNumbers?: string[];
108
- };
109
- }
110
- export interface IReferencesOrderSearchConditions {
111
- orderNumbers?: string[];
112
- }
113
109
  /**
114
110
  * インボイス検索条件インターフェース
115
111
  */
116
- export interface ISearchConditions {
117
- limit?: number;
118
- page?: number;
119
- sort?: ISortOrder;
120
- project?: {
121
- id?: {
122
- $eq?: string;
123
- };
124
- };
125
- createdFrom?: Date;
126
- createdThrough?: Date;
127
- accountIds?: string[];
128
- confirmationNumbers?: string[];
129
- customer?: ICustomerSearchConditions;
130
- paymentMethods?: string[];
131
- paymentMethodIds?: string[];
132
- paymentStatuses?: PaymentStatusType[];
133
- referencesOrder?: IReferencesOrderSearchConditions;
134
- }
@@ -1,2 +1,50 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * ソート条件インターフェース
5
+ */
6
+ // export interface ISortOrder {
7
+ // createdAt?: SortType;
8
+ // }
9
+ // export interface ICustomerSearchConditions {
10
+ // typeOf?: PersonType;
11
+ // ids?: string[];
12
+ // identifiers?: PersonFactory.IIdentifier;
13
+ // /**
14
+ // * メールアドレス
15
+ // */
16
+ // email?: string;
17
+ // /**
18
+ // * 電話番号
19
+ // */
20
+ // telephone?: string;
21
+ // memberOf?: {
22
+ // /**
23
+ // * 会員番号
24
+ // */
25
+ // membershipNumbers?: string[];
26
+ // };
27
+ // }
28
+ // export interface IReferencesOrderSearchConditions {
29
+ // orderNumbers?: string[];
30
+ // }
31
+ /**
32
+ * インボイス検索条件インターフェース
33
+ */
34
+ // export interface ISearchConditions {
35
+ // limit?: number;
36
+ // page?: number;
37
+ // sort?: ISortOrder;
38
+ // project?: {
39
+ // id?: { $eq?: string };
40
+ // };
41
+ // createdFrom?: Date;
42
+ // createdThrough?: Date;
43
+ // accountIds?: string[];
44
+ // confirmationNumbers?: string[];
45
+ // customer?: ICustomerSearchConditions;
46
+ // paymentMethods?: string[];
47
+ // paymentMethodIds?: string[];
48
+ // paymentStatuses?: PaymentStatusType[];
49
+ // referencesOrder?: IReferencesOrderSearchConditions;
50
+ // }
@@ -3,6 +3,7 @@ import { IMonetaryAmount } from './monetaryAmount';
3
3
  import { IOffer } from './offer';
4
4
  import { IPermit } from './permit';
5
5
  import { IProject } from './project';
6
+ import { IPropertyValue } from './propertyValue';
6
7
  import { IQuantitativeValue } from './quantitativeValue';
7
8
  import { IServiceType } from './serviceType';
8
9
  import { SortType } from './sortType';
@@ -112,6 +113,7 @@ export interface IProduct extends IThing {
112
113
  * The type of service being offered, e.g. veterans' benefits, emergency relief, etc.
113
114
  */
114
115
  serviceType?: IServiceType;
116
+ additionalProperty?: IPropertyValue<string>[];
115
117
  }
116
118
  export interface ISortOrder {
117
119
  productID?: SortType;
@@ -44,7 +44,7 @@ export interface IReservation extends ReservationFactory.IReservation<IPriceSpec
44
44
  id: string;
45
45
  reservationFor: IReservationFor;
46
46
  reservationNumber: string;
47
- reservedTicket: ReservationFactory.ITicket<IPriceSpecification>;
47
+ reservedTicket: ReservationFactory.ITicket;
48
48
  subReservation?: ISubReservation[];
49
49
  typeOf: ReservationType.EventReservation;
50
50
  }
@@ -7,7 +7,6 @@ import * as SeatFactory from './place/seat';
7
7
  import { PlaceType } from './placeType';
8
8
  import { PriceCurrency } from './priceCurrency';
9
9
  import { IPriceSpecification as IGenericPriceSpecification } from './priceSpecification';
10
- import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
11
10
  import { PriceSpecificationType } from './priceSpecificationType';
12
11
  import { ProductType } from './product';
13
12
  import { IProject } from './project';
@@ -27,7 +26,6 @@ export interface ITicketType {
27
26
  identifier: string;
28
27
  name?: string | IMultilingualString;
29
28
  priceCurrency: PriceCurrency;
30
- priceSpecification?: IUnitPriceSpecification;
31
29
  project: IProject;
32
30
  typeOf: OfferType;
33
31
  validRateLimit?: OfferFactory.IValidRateLimit;
@@ -100,7 +98,7 @@ export declare type IReservationFor = any;
100
98
  /**
101
99
  * 予約チケット情報
102
100
  */
103
- export interface ITicket<T extends IPriceSpecification> {
101
+ export interface ITicket {
104
102
  typeOf: TicketType;
105
103
  /**
106
104
  * The date the ticket was issued.
@@ -117,7 +115,6 @@ export interface ITicket<T extends IPriceSpecification> {
117
115
  /**
118
116
  * The total price for the reservation or ticket, including applicable taxes, shipping, etc.
119
117
  */
120
- totalPrice?: T | number;
121
118
  /**
122
119
  * The currency (in 3-letter ISO 4217 format) of the Reservation's price.
123
120
  */
@@ -198,15 +195,12 @@ export interface IReservation<T extends IPriceSpecification> extends IThing {
198
195
  /**
199
196
  * Web page where reservation can be cancelled.
200
197
  */
201
- cancelReservationUrl?: string;
202
198
  /**
203
199
  * Webpage where the passenger can check in.
204
200
  */
205
- checkinUrl?: string;
206
201
  /**
207
202
  * Web page where reservation can be confirmed.
208
203
  */
209
- confirmReservationUrl?: string;
210
204
  issuedThrough?: {
211
205
  typeOf: ProductType.EventService;
212
206
  serviceType?: IServiceType;
@@ -218,7 +212,6 @@ export interface IReservation<T extends IPriceSpecification> extends IThing {
218
212
  /**
219
213
  * Web page where reservation can be modified.
220
214
  */
221
- modifyReservationUrl?: string;
222
215
  /**
223
216
  * Number of seats if unreserved seating.
224
217
  */
@@ -226,7 +219,7 @@ export interface IReservation<T extends IPriceSpecification> extends IThing {
226
219
  /**
227
220
  * Total price of the Reservation.
228
221
  */
229
- price?: T | number;
222
+ price?: T;
230
223
  /**
231
224
  * The currency (in 3-letter ISO 4217 format) of the Reservation's price.
232
225
  */
@@ -250,7 +243,7 @@ export interface IReservation<T extends IPriceSpecification> extends IThing {
250
243
  /**
251
244
  * A ticket associated with the reservation.
252
245
  */
253
- reservedTicket?: ITicket<T>;
246
+ reservedTicket?: ITicket;
254
247
  /**
255
248
  * The individual reservations included in the package. Typically a repeated property.
256
249
  */
@@ -354,6 +347,15 @@ export interface IProgramMembershipUsedSearchConditions {
354
347
  };
355
348
  };
356
349
  }
350
+ export interface IPriceSearchConditions {
351
+ priceComponent?: {
352
+ appliesToMovieTicket?: {
353
+ identifier?: {
354
+ $eq?: string;
355
+ };
356
+ };
357
+ };
358
+ }
357
359
  /**
358
360
  * 検索条件
359
361
  */
@@ -427,4 +429,5 @@ export interface ISearchConditions<T extends ReservationType> {
427
429
  * 使用メンバーシップ
428
430
  */
429
431
  programMembershipUsed?: IProgramMembershipUsedSearchConditions;
432
+ price?: IPriceSearchConditions;
430
433
  }
@@ -1,6 +1,7 @@
1
1
  import { IOrganization } from '../organization';
2
2
  import { IAvailableChannel } from '../product';
3
3
  import { IProject } from '../project';
4
+ import { IPropertyValue } from '../propertyValue';
4
5
  import { IServiceType } from '../serviceType';
5
6
  import { IThing } from '../thing';
6
7
  export declare enum PaymentServiceType {
@@ -61,4 +62,5 @@ export interface IService extends IThing {
61
62
  * 決済サービスの場合、serviceType.codeValueが決済方法区分
62
63
  */
63
64
  serviceType?: IServiceType;
65
+ additionalProperty?: IPropertyValue<string>[];
64
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.204.0",
3
+ "version": "4.207.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",