@chevre/factory 4.342.0 → 4.343.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.
- package/example/customReturnPolicyRequest.json +81 -0
- package/example/customReturnPolicyResponse.json +8 -0
- package/lib/action/authorize/offer/seatReservation.d.ts +2 -1
- package/lib/offer.d.ts +11 -1
- package/lib/priceSpecification.d.ts +4 -0
- package/lib/product.d.ts +2 -2
- package/lib/unitPriceOffer.d.ts +1 -2
- package/package.json +1 -1
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"order": {
|
|
3
|
+
"orderDate": "2023-11-14T04:16:04.840Z",
|
|
4
|
+
"price": 2700,
|
|
5
|
+
"acceptedOffers": [
|
|
6
|
+
{
|
|
7
|
+
"itemOffered": {
|
|
8
|
+
"additionalProperty": [],
|
|
9
|
+
"reservationFor": {
|
|
10
|
+
"doorTime": "2023-11-14T09:15:00.000Z",
|
|
11
|
+
"endDate": "2023-11-14T11:45:00.000Z",
|
|
12
|
+
"startDate": "2023-11-14T09:15:00.000Z"
|
|
13
|
+
},
|
|
14
|
+
"reservedTicket": {
|
|
15
|
+
"ticketedSeat": {
|
|
16
|
+
"typeOf": "Seat",
|
|
17
|
+
"seatNumber": "B-1",
|
|
18
|
+
"seatRow": "",
|
|
19
|
+
"seatSection": "Default",
|
|
20
|
+
"seatingType": [
|
|
21
|
+
"Meal"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"priceSpecification": {
|
|
27
|
+
"priceComponent": [
|
|
28
|
+
{
|
|
29
|
+
"price": 1800,
|
|
30
|
+
"referenceQuantity": {
|
|
31
|
+
"typeOf": "QuantitativeValue",
|
|
32
|
+
"value": 1,
|
|
33
|
+
"unitCode": "C62"
|
|
34
|
+
},
|
|
35
|
+
"typeOf": "UnitPriceSpecification"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"price": 500,
|
|
39
|
+
"typeOf": "CategoryCodeChargeSpecification",
|
|
40
|
+
"appliesToCategoryCode": [
|
|
41
|
+
{
|
|
42
|
+
"typeOf": "CategoryCode",
|
|
43
|
+
"codeValue": "Meal",
|
|
44
|
+
"inCodeSet": {
|
|
45
|
+
"typeOf": "CategoryCodeSet",
|
|
46
|
+
"identifier": "SeatingType"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"typeOf": "UnitPriceSpecification",
|
|
53
|
+
"price": 400,
|
|
54
|
+
"referenceQuantity": {
|
|
55
|
+
"typeOf": "QuantitativeValue",
|
|
56
|
+
"value": 1,
|
|
57
|
+
"unitCode": "C62"
|
|
58
|
+
},
|
|
59
|
+
"appliesToAddOn": [
|
|
60
|
+
{
|
|
61
|
+
"typeOf": "Offer",
|
|
62
|
+
"id": "7k7bbepxp",
|
|
63
|
+
"identifier": "addOn-drink-m",
|
|
64
|
+
"itemOffered": {
|
|
65
|
+
"id": "62b90fef5b3eb4000b75150f",
|
|
66
|
+
"name": {
|
|
67
|
+
"ja": "ドリンク",
|
|
68
|
+
"en": "drinks"
|
|
69
|
+
},
|
|
70
|
+
"productID": "drinks",
|
|
71
|
+
"typeOf": "Product"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -60,7 +60,8 @@ export type IAcceptedOfferPriceSpecification = ITicketPriceSpecification & {
|
|
|
60
60
|
/**
|
|
61
61
|
* 受け入れられたチケットオファー
|
|
62
62
|
*/
|
|
63
|
-
export type IAcceptedOffer4chevre = Pick<ITicketOffer, '
|
|
63
|
+
export type IAcceptedOffer4chevre = Pick<ITicketOffer, 'acceptedPaymentMethod' | // add(2023-11-15~)
|
|
64
|
+
'id' | 'identifier' | 'typeOf' | 'priceCurrency' | 'itemOffered' | 'additionalProperty'> & Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'addOn' | 'additionalProperty'> & {
|
|
64
65
|
addOn?: ReserveTransactionFactory.IAcceptedAddOn[];
|
|
65
66
|
itemOffered?: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
|
|
66
67
|
priceSpecification: IAcceptedOfferPriceSpecification;
|
package/lib/offer.d.ts
CHANGED
|
@@ -79,8 +79,17 @@ export interface IAddOn {
|
|
|
79
79
|
validFrom?: Date;
|
|
80
80
|
validThrough?: Date;
|
|
81
81
|
}
|
|
82
|
-
export type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode.C62>, 'maxValue' | 'typeOf' | 'unitCode'
|
|
82
|
+
export type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode.C62>, 'maxValue' | 'typeOf' | 'unitCode'>;
|
|
83
83
|
export type IName = IMultilingualString;
|
|
84
|
+
/**
|
|
85
|
+
* 利用可能決済方法
|
|
86
|
+
*/
|
|
87
|
+
export interface IAcceptedPaymentMethod {
|
|
88
|
+
/**
|
|
89
|
+
* 決済方法区分コード
|
|
90
|
+
*/
|
|
91
|
+
identifier: string;
|
|
92
|
+
}
|
|
84
93
|
/**
|
|
85
94
|
* offer interface
|
|
86
95
|
* An offer to transfer some rights to an item or to provide a service
|
|
@@ -95,6 +104,7 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
|
|
|
95
104
|
/**
|
|
96
105
|
* The payment method(s) accepted by seller for this offer.
|
|
97
106
|
*/
|
|
107
|
+
acceptedPaymentMethod?: IAcceptedPaymentMethod[];
|
|
98
108
|
/**
|
|
99
109
|
* An additional offer that can only be obtained in combination with the first base offer
|
|
100
110
|
* (e.g. supplements and extensions that are available for a surcharge).
|
|
@@ -20,6 +20,10 @@ export interface IAccounting {
|
|
|
20
20
|
*/
|
|
21
21
|
accountsReceivable?: number;
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* 適用数量
|
|
25
|
+
* n以上n以下のアイテム数に適用する設定
|
|
26
|
+
*/
|
|
23
27
|
export type IEligibleQuantity = Pick<IQuantitativeValue<UnitCode>, 'maxValue' | 'minValue' | 'typeOf' | 'unitCode'>;
|
|
24
28
|
export type IEligibleTransactionVolume = Pick<IPriceSpecification<PriceSpecificationType>, 'typeOf' | 'price' | 'priceCurrency' | 'valueAddedTaxIncluded'>;
|
|
25
29
|
/**
|
package/lib/product.d.ts
CHANGED
|
@@ -237,9 +237,9 @@ export type ITicketPriceSpecification = Omit<ICompoundPriceSpecification<ITicket
|
|
|
237
237
|
export import IMinimizedTicketAddOn = UnitPriceOfferFactory.IAddOn4unitPriceOffer;
|
|
238
238
|
/**
|
|
239
239
|
* プロダクトオファー
|
|
240
|
-
* strict definition(2023-02-24~)
|
|
241
240
|
*/
|
|
242
|
-
export interface ITicketOffer extends Pick<IBaseOffer, '
|
|
241
|
+
export interface ITicketOffer extends Pick<IBaseOffer, 'acceptedPaymentMethod' | // add(2023-11-15~)
|
|
242
|
+
'name' | 'description' | 'alternateName' | 'color' | 'typeOf' | 'id' | 'availability' | 'availableAtOrFrom' | 'category' | 'eligibleMembershipType' | 'eligibleSeatingType' | 'eligibleMonetaryAmount' | 'eligibleSubReservation' | 'eligibleQuantity' | 'offeredThrough' | 'priceCurrency' | 'validFrom' | 'validThrough' | 'validRateLimit' | 'additionalProperty'> {
|
|
243
243
|
addOn?: IMinimizedTicketAddOn[];
|
|
244
244
|
identifier: string;
|
|
245
245
|
name: IOfferName;
|
package/lib/unitPriceOffer.d.ts
CHANGED
|
@@ -40,7 +40,6 @@ export interface IItemOffered {
|
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* 単価オファーの価格仕様
|
|
43
|
-
* 最適化(Pickで表現)(2023-09-01~)
|
|
44
43
|
*/
|
|
45
44
|
export type IUnitPriceOfferPriceSpecification = Pick<IUnitPriceSpecification, 'accounting' | 'appliesToMovieTicket' | 'eligibleQuantity' | 'eligibleTransactionVolume' | 'name' | 'price' | 'priceCurrency' | 'referenceQuantity' | 'typeOf' | 'valueAddedTaxIncluded'>;
|
|
46
45
|
export type IAddOnItemOffered = Pick<IProduct, 'typeOf' | 'id' | 'name'>;
|
|
@@ -56,7 +55,7 @@ export type IAvailability = ItemAvailability.InStock | ItemAvailability.OutOfSto
|
|
|
56
55
|
/**
|
|
57
56
|
* 単価オファー
|
|
58
57
|
*/
|
|
59
|
-
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'> {
|
|
58
|
+
export interface IUnitPriceOffer extends Pick<IOffer, 'acceptedPaymentMethod' | 'project' | 'typeOf' | 'priceCurrency' | 'id' | 'identifier' | 'name' | 'description' | 'alternateName' | 'availability' | 'availableAtOrFrom' | 'itemOffered' | 'priceSpecification' | 'additionalProperty' | 'color' | 'category' | 'eligibleSeatingType' | 'eligibleMembershipType' | 'eligibleMonetaryAmount' | 'eligibleSubReservation' | 'validFrom' | 'validThrough' | 'validRateLimit'> {
|
|
60
59
|
/**
|
|
61
60
|
* The amount of time that is required between accepting the offer and the actual usage of the resource or service.
|
|
62
61
|
* 事前予約要件(興行オファー承認日時とイベント開始日時の差)
|