@chevre/factory 4.289.0 → 4.290.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.
|
@@ -58,10 +58,12 @@ export declare type IAcceptedOfferPriceSpecification = ITicketPriceSpecification
|
|
|
58
58
|
*/
|
|
59
59
|
appliesToMovieTicket?: ReserveTransactionFactory.IAcceptedAppliesToMovieTicket;
|
|
60
60
|
};
|
|
61
|
+
export declare type IAcceptedAddOn = Pick<OfferFactory.IAddOn, 'typeOf' | 'id' | 'priceCurrency'>;
|
|
61
62
|
/**
|
|
62
63
|
* 受け入れられたチケットオファー
|
|
63
64
|
*/
|
|
64
|
-
export declare type IAcceptedOffer4chevre = Pick<ITicketOffer, 'id' | 'identifier' | 'typeOf' | 'priceCurrency' | 'itemOffered' | '
|
|
65
|
+
export declare type IAcceptedOffer4chevre = Pick<ITicketOffer, 'id' | 'identifier' | 'typeOf' | 'priceCurrency' | 'itemOffered' | 'additionalProperty'> & Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'addOn' | 'additionalProperty'> & {
|
|
66
|
+
addOn?: IAcceptedAddOn[];
|
|
65
67
|
itemOffered?: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
|
|
66
68
|
priceSpecification: IAcceptedOfferPriceSpecification;
|
|
67
69
|
};
|
package/lib/offer.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { ICategoryCode } from './categoryCode';
|
|
2
2
|
import { ItemAvailability } from './itemAvailability';
|
|
3
3
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
4
|
+
import { IMultilingualString } from './multilingualString';
|
|
4
5
|
import { OfferType } from './offerType';
|
|
5
6
|
import { OrganizationType } from './organizationType';
|
|
6
7
|
import { PriceCurrency } from './priceCurrency';
|
|
7
8
|
import { IPriceSpecification } from './priceSpecification';
|
|
8
9
|
import { PriceSpecificationType } from './priceSpecificationType';
|
|
10
|
+
import { IProduct } from './product';
|
|
9
11
|
import { IProject } from './project';
|
|
10
12
|
import { IPropertyValue } from './propertyValue';
|
|
11
13
|
import { IQuantitativeValue } from './quantitativeValue';
|
|
@@ -58,6 +60,7 @@ export interface IAvailableAtOrFrom {
|
|
|
58
60
|
*/
|
|
59
61
|
id: string;
|
|
60
62
|
}
|
|
63
|
+
export declare type IItemOffered4addOn = Pick<IProduct, 'description' | 'id' | 'name' | 'productID' | 'typeOf'>;
|
|
61
64
|
/**
|
|
62
65
|
* アドオン
|
|
63
66
|
*/
|
|
@@ -65,17 +68,17 @@ export interface IAddOn {
|
|
|
65
68
|
/**
|
|
66
69
|
* コード
|
|
67
70
|
*/
|
|
68
|
-
identifier
|
|
71
|
+
identifier: string;
|
|
69
72
|
typeOf: OfferType.Offer;
|
|
70
|
-
id
|
|
71
|
-
|
|
72
|
-
itemOffered?: any;
|
|
73
|
+
id: string;
|
|
74
|
+
itemOffered: IItemOffered4addOn;
|
|
73
75
|
priceCurrency: PriceCurrency;
|
|
74
76
|
priceSpecification?: IPriceSpecification<PriceSpecificationType>;
|
|
75
77
|
validFrom?: Date;
|
|
76
78
|
validThrough?: Date;
|
|
77
79
|
}
|
|
78
80
|
export declare type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode.C62>, 'maxValue' | 'typeOf' | 'unitCode' | 'value'>;
|
|
81
|
+
export declare type IName = IMultilingualString;
|
|
79
82
|
/**
|
|
80
83
|
* offer interface
|
|
81
84
|
* An offer to transfer some rights to an item or to provide a service
|
|
@@ -90,7 +93,6 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
|
|
|
90
93
|
/**
|
|
91
94
|
* The payment method(s) accepted by seller for this offer.
|
|
92
95
|
*/
|
|
93
|
-
acceptedPaymentMethod?: string[];
|
|
94
96
|
/**
|
|
95
97
|
* An additional offer that can only be obtained in combination with the first base offer
|
|
96
98
|
* (e.g. supplements and extensions that are available for a surcharge).
|
|
@@ -99,7 +101,7 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
|
|
|
99
101
|
/**
|
|
100
102
|
* The availability of this item—for example In stock, Out of stock, Pre-order, etc.
|
|
101
103
|
*/
|
|
102
|
-
availability?: ItemAvailability
|
|
104
|
+
availability?: ItemAvailability;
|
|
103
105
|
/**
|
|
104
106
|
* The end of the availability of the product or service included in the offer.
|
|
105
107
|
*/
|
|
@@ -148,6 +150,7 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
|
|
|
148
150
|
* The item being offered.
|
|
149
151
|
*/
|
|
150
152
|
itemOffered?: any;
|
|
153
|
+
name?: IName;
|
|
151
154
|
/**
|
|
152
155
|
* オファー供給サービス
|
|
153
156
|
*/
|
package/lib/product.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ActionType } from './actionType';
|
|
2
2
|
import { ICategoryCode } from './categoryCode';
|
|
3
3
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
4
|
-
import { IOffer as IBaseOffer } from './offer';
|
|
4
|
+
import { IAddOn as IBaseAddOn, IName as IOfferName, IOffer as IBaseOffer } from './offer';
|
|
5
|
+
import { OfferType } from './offerType';
|
|
5
6
|
import { IPermit } from './permit';
|
|
6
7
|
import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
|
|
7
8
|
import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
|
|
@@ -258,13 +259,19 @@ export declare type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode.C62>, '
|
|
|
258
259
|
* プロダクトオファーの価格仕様
|
|
259
260
|
*/
|
|
260
261
|
export declare type ITicketPriceSpecification = Omit<ICompoundPriceSpecification<ITicketPriceComponent>, 'project'>;
|
|
262
|
+
export declare type ITicketAddOn = Pick<IBaseAddOn, 'id' | 'identifier' | 'itemOffered' | 'priceCurrency' | 'typeOf' | 'validFrom' | 'validThrough'> & {
|
|
263
|
+
priceSpecification: ITicketUnitPriceComponent;
|
|
264
|
+
};
|
|
261
265
|
/**
|
|
262
266
|
* プロダクトオファー
|
|
263
267
|
* strict definition(2023-02-24~)
|
|
264
268
|
*/
|
|
265
269
|
export interface ITicketOffer extends Pick<IBaseOffer, 'name' | 'description' | 'alternateName' | 'color' | 'typeOf' | 'id' | 'addOn' | 'availability' | 'availableAtOrFrom' | 'category' | 'eligibleMembershipType' | 'eligibleSeatingType' | 'eligibleMonetaryAmount' | 'eligibleSubReservation' | 'eligibleQuantity' | 'offeredThrough' | 'priceCurrency' | 'validFrom' | 'validThrough' | 'validRateLimit' | 'additionalProperty'> {
|
|
270
|
+
addOn?: ITicketAddOn[];
|
|
266
271
|
identifier: string;
|
|
272
|
+
name: IOfferName;
|
|
267
273
|
priceSpecification: ITicketPriceSpecification;
|
|
268
274
|
itemOffered?: UnitPriceOfferFactory.IItemOffered;
|
|
269
275
|
sortIndex?: number;
|
|
276
|
+
typeOf: OfferType.Offer;
|
|
270
277
|
}
|
package/lib/unitPriceOffer.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ActionType } from './actionType';
|
|
2
|
-
import {
|
|
2
|
+
import { ItemAvailability } from './itemAvailability';
|
|
3
|
+
import { IAddOn, IName, IOffer } from './offer';
|
|
3
4
|
import { OfferType } from './offerType';
|
|
4
5
|
import { IAmount as IPermitAmount, IDepositAmount, IPaymentAmount } from './permit';
|
|
5
6
|
import { IAppliesToMovieTicket, IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
|
|
@@ -51,8 +52,7 @@ export interface IItemOffered {
|
|
|
51
52
|
export declare type IUnitPriceOfferPriceSpecification = Omit<IUnitPriceSpecification, 'appliesToMovieTicket' | 'project'> & {
|
|
52
53
|
appliesToMovieTicket?: IAppliesToMovieTicket[];
|
|
53
54
|
};
|
|
54
|
-
export
|
|
55
|
-
}
|
|
55
|
+
export declare type IAddOnItemOffered = Pick<IProduct, 'typeOf' | 'id' | 'name'>;
|
|
56
56
|
export interface IAddOn4unitPriceOffer extends Pick<IAddOn, 'typeOf' | 'priceCurrency'> {
|
|
57
57
|
itemOffered: IAddOnItemOffered;
|
|
58
58
|
}
|
|
@@ -62,15 +62,17 @@ export interface ISettings {
|
|
|
62
62
|
/**
|
|
63
63
|
* 単価オファー
|
|
64
64
|
*/
|
|
65
|
-
export interface IUnitPriceOffer extends Pick<IOffer, 'project' | 'typeOf' | 'priceCurrency' | 'id' | 'identifier' | 'name' | 'description' | 'alternateName' | 'availability' | 'availableAtOrFrom' | 'itemOffered' | 'priceSpecification' | '
|
|
65
|
+
export interface IUnitPriceOffer extends Pick<IOffer, 'project' | 'typeOf' | 'priceCurrency' | 'id' | 'identifier' | 'name' | 'description' | 'alternateName' | 'availability' | 'availableAtOrFrom' | 'itemOffered' | 'priceSpecification' | 'additionalProperty' | 'color' | 'category' | 'eligibleSeatingType' | 'eligibleMembershipType' | 'eligibleMonetaryAmount' | 'eligibleSubReservation' | 'validFrom' | 'validThrough' | 'validRateLimit'> {
|
|
66
|
+
availability: ItemAvailability;
|
|
66
67
|
/**
|
|
67
68
|
* コード
|
|
68
69
|
*/
|
|
69
70
|
identifier: string;
|
|
71
|
+
name: IName;
|
|
70
72
|
/**
|
|
71
73
|
* 単価仕様
|
|
72
74
|
*/
|
|
73
|
-
priceSpecification
|
|
75
|
+
priceSpecification: IUnitPriceOfferPriceSpecification;
|
|
74
76
|
itemOffered?: IItemOffered;
|
|
75
77
|
addOn?: IAddOn4unitPriceOffer[];
|
|
76
78
|
typeOf: OfferType.Offer;
|