@chevre/factory 4.289.0 → 4.290.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.
|
@@ -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
|
@@ -6,6 +6,7 @@ import { OrganizationType } from './organizationType';
|
|
|
6
6
|
import { PriceCurrency } from './priceCurrency';
|
|
7
7
|
import { IPriceSpecification } from './priceSpecification';
|
|
8
8
|
import { PriceSpecificationType } from './priceSpecificationType';
|
|
9
|
+
import { IProduct } from './product';
|
|
9
10
|
import { IProject } from './project';
|
|
10
11
|
import { IPropertyValue } from './propertyValue';
|
|
11
12
|
import { IQuantitativeValue } from './quantitativeValue';
|
|
@@ -58,6 +59,7 @@ export interface IAvailableAtOrFrom {
|
|
|
58
59
|
*/
|
|
59
60
|
id: string;
|
|
60
61
|
}
|
|
62
|
+
export declare type IItemOffered4addOn = Pick<IProduct, 'description' | 'id' | 'name' | 'productID' | 'typeOf'>;
|
|
61
63
|
/**
|
|
62
64
|
* アドオン
|
|
63
65
|
*/
|
|
@@ -65,11 +67,10 @@ export interface IAddOn {
|
|
|
65
67
|
/**
|
|
66
68
|
* コード
|
|
67
69
|
*/
|
|
68
|
-
identifier
|
|
70
|
+
identifier: string;
|
|
69
71
|
typeOf: OfferType.Offer;
|
|
70
|
-
id
|
|
71
|
-
|
|
72
|
-
itemOffered?: any;
|
|
72
|
+
id: string;
|
|
73
|
+
itemOffered: IItemOffered4addOn;
|
|
73
74
|
priceCurrency: PriceCurrency;
|
|
74
75
|
priceSpecification?: IPriceSpecification<PriceSpecificationType>;
|
|
75
76
|
validFrom?: Date;
|
|
@@ -90,7 +91,6 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
|
|
|
90
91
|
/**
|
|
91
92
|
* The payment method(s) accepted by seller for this offer.
|
|
92
93
|
*/
|
|
93
|
-
acceptedPaymentMethod?: string[];
|
|
94
94
|
/**
|
|
95
95
|
* An additional offer that can only be obtained in combination with the first base offer
|
|
96
96
|
* (e.g. supplements and extensions that are available for a surcharge).
|
|
@@ -99,7 +99,7 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
|
|
|
99
99
|
/**
|
|
100
100
|
* The availability of this item—for example In stock, Out of stock, Pre-order, etc.
|
|
101
101
|
*/
|
|
102
|
-
availability?: ItemAvailability
|
|
102
|
+
availability?: ItemAvailability;
|
|
103
103
|
/**
|
|
104
104
|
* The end of the availability of the product or service included in the offer.
|
|
105
105
|
*/
|
package/lib/product.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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, IOffer as IBaseOffer } from './offer';
|
|
5
5
|
import { IPermit } from './permit';
|
|
6
6
|
import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
|
|
7
7
|
import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
|
|
@@ -258,11 +258,15 @@ export declare type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode.C62>, '
|
|
|
258
258
|
* プロダクトオファーの価格仕様
|
|
259
259
|
*/
|
|
260
260
|
export declare type ITicketPriceSpecification = Omit<ICompoundPriceSpecification<ITicketPriceComponent>, 'project'>;
|
|
261
|
+
export declare type ITicketAddOn = Pick<IBaseAddOn, 'id' | 'identifier' | 'itemOffered' | 'priceCurrency' | 'typeOf' | 'validFrom' | 'validThrough'> & {
|
|
262
|
+
priceSpecification: ITicketUnitPriceComponent;
|
|
263
|
+
};
|
|
261
264
|
/**
|
|
262
265
|
* プロダクトオファー
|
|
263
266
|
* strict definition(2023-02-24~)
|
|
264
267
|
*/
|
|
265
268
|
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'> {
|
|
269
|
+
addOn?: ITicketAddOn[];
|
|
266
270
|
identifier: string;
|
|
267
271
|
priceSpecification: ITicketPriceSpecification;
|
|
268
272
|
itemOffered?: UnitPriceOfferFactory.IItemOffered;
|
package/lib/unitPriceOffer.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ 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
66
|
/**
|
|
67
67
|
* コード
|
|
68
68
|
*/
|
|
@@ -70,7 +70,7 @@ export interface IUnitPriceOffer extends Pick<IOffer, 'project' | 'typeOf' | 'pr
|
|
|
70
70
|
/**
|
|
71
71
|
* 単価仕様
|
|
72
72
|
*/
|
|
73
|
-
priceSpecification
|
|
73
|
+
priceSpecification: IUnitPriceOfferPriceSpecification;
|
|
74
74
|
itemOffered?: IItemOffered;
|
|
75
75
|
addOn?: IAddOn4unitPriceOffer[];
|
|
76
76
|
typeOf: OfferType.Offer;
|