@chevre/factory 4.341.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.
@@ -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
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "restockingFee": {
3
+ /**
4
+ * 返品手数料
5
+ */
6
+ "value": 1
7
+ }
8
+ }
@@ -60,7 +60,8 @@ export type IAcceptedOfferPriceSpecification = ITicketPriceSpecification & {
60
60
  /**
61
61
  * 受け入れられたチケットオファー
62
62
  */
63
- export type IAcceptedOffer4chevre = Pick<ITicketOffer, 'id' | 'identifier' | 'typeOf' | 'priceCurrency' | 'itemOffered' | 'additionalProperty'> & Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'addOn' | 'additionalProperty'> & {
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;
@@ -51,7 +51,7 @@ export type IItemCondition = Pick<IOfferItemCondition, 'typeOf' | 'id'> & {
51
51
  };
52
52
  export type ICustomerRemorseReturnFees = ReturnFeesEnumeration;
53
53
  export type ICustomerRemorseReturnFeesMovieTicket = ReturnFeesEnumeration.FreeReturn | ReturnFeesEnumeration.ReturnFeesCustomerResponsibility;
54
- export interface IMerchantReturnPolicy extends Pick<IThing, 'name' | 'url'> {
54
+ export interface IMerchantReturnPolicy extends Pick<IThing, 'name' | 'sameAs' | 'url'> {
55
55
  typeOf: 'MerchantReturnPolicy';
56
56
  /**
57
57
  * 適用決済方法
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' | 'value'>;
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, 'name' | 'description' | 'alternateName' | 'color' | 'typeOf' | 'id' | 'availability' | 'availableAtOrFrom' | 'category' | 'eligibleMembershipType' | 'eligibleSeatingType' | 'eligibleMonetaryAmount' | 'eligibleSubReservation' | 'eligibleQuantity' | 'offeredThrough' | 'priceCurrency' | 'validFrom' | 'validThrough' | 'validRateLimit' | 'additionalProperty'> {
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/project.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { IMerchantReturnPolicy } from './merchantReturnPolicy';
1
2
  import { IOrganization } from './organization';
2
3
  import { OrganizationType } from './organizationType';
3
4
  import { SortType } from './sortType';
@@ -23,8 +24,6 @@ export interface IOnPaymentStatusChanged {
23
24
  export interface IOnReservationUsed {
24
25
  informAction?: IInformParams[];
25
26
  }
26
- export interface ICognitoSettings {
27
- }
28
27
  /**
29
28
  * 注文ステータス変更時イベント
30
29
  */
@@ -51,7 +50,6 @@ export interface ISendEmailMessageSettings {
51
50
  */
52
51
  export interface ISettings {
53
52
  importEventsInWeeks?: number;
54
- cognito?: ICognitoSettings;
55
53
  onOrderStatusChanged?: IOnOrderStatusChanged;
56
54
  webhook?: IWebhookSettings;
57
55
  sendEmailMessage?: ISendEmailMessageSettings;
@@ -71,6 +69,7 @@ export interface ISubscription {
71
69
  */
72
70
  useOfferCatalogItem?: boolean;
73
71
  }
72
+ export type IHasMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'sameAs' | 'typeOf'>;
74
73
  /**
75
74
  * プロジェクト
76
75
  */
@@ -79,6 +78,7 @@ export interface IProject extends Pick<IOrganization, 'id' | 'logo' | 'name' | '
79
78
  id: string;
80
79
  alternateName?: string;
81
80
  description?: string;
81
+ hasMerchantReturnPolicy?: IHasMerchantReturnPolicy;
82
82
  name?: string;
83
83
  settings?: ISettings;
84
84
  subscription?: ISubscription;
package/lib/thing.d.ts CHANGED
@@ -32,6 +32,7 @@ export interface IThing {
32
32
  * The name of the item.
33
33
  */
34
34
  name?: string | IMultilingualString;
35
+ sameAs?: string;
35
36
  /**
36
37
  * URL of the item.
37
38
  */
@@ -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
  * 事前予約要件(興行オファー承認日時とイベント開始日時の差)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.341.0",
3
+ "version": "4.343.0-alpha.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",