@chevre/factory 4.343.0-alpha.0 → 4.343.0-alpha.3

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.
@@ -1,17 +1,41 @@
1
1
  {
2
2
  "order": {
3
+ /**
4
+ * 注文日時
5
+ */
3
6
  "orderDate": "2023-11-14T04:16:04.840Z",
7
+ /**
8
+ * 注文金額
9
+ */
4
10
  "price": 2700,
11
+ /**
12
+ * 注文アイテム
13
+ */
5
14
  "acceptedOffers": [
6
15
  {
16
+ /**
17
+ * アイテム(予約)
18
+ */
7
19
  "itemOffered": {
20
+ /**
21
+ * 追加特性
22
+ */
8
23
  "additionalProperty": [],
24
+ /**
25
+ * イベント
26
+ */
9
27
  "reservationFor": {
10
28
  "doorTime": "2023-11-14T09:15:00.000Z",
11
29
  "endDate": "2023-11-14T11:45:00.000Z",
12
30
  "startDate": "2023-11-14T09:15:00.000Z"
13
31
  },
32
+ /**
33
+ * 予約チケット
34
+ */
14
35
  "reservedTicket": {
36
+ /**
37
+ * 指定座席
38
+ */
15
39
  "ticketedSeat": {
16
40
  "typeOf": "Seat",
17
41
  "seatNumber": "B-1",
@@ -23,6 +47,9 @@
23
47
  }
24
48
  }
25
49
  },
50
+ /**
51
+ * 価格仕様
52
+ */
26
53
  "priceSpecification": {
27
54
  "priceComponent": [
28
55
  {
@@ -32,11 +59,20 @@
32
59
  "value": 1,
33
60
  "unitCode": "C62"
34
61
  },
62
+ /**
63
+ * 単価仕様
64
+ */
35
65
  "typeOf": "UnitPriceSpecification"
36
66
  },
37
67
  {
38
68
  "price": 500,
69
+ /**
70
+ * 区分加算料金
71
+ */
39
72
  "typeOf": "CategoryCodeChargeSpecification",
73
+ /**
74
+ * 適用区分
75
+ */
40
76
  "appliesToCategoryCode": [
41
77
  {
42
78
  "typeOf": "CategoryCode",
@@ -49,6 +85,9 @@
49
85
  ]
50
86
  },
51
87
  {
88
+ /**
89
+ * アドオン単価仕様
90
+ */
52
91
  "typeOf": "UnitPriceSpecification",
53
92
  "price": 400,
54
93
  "referenceQuantity": {
@@ -56,17 +95,22 @@
56
95
  "value": 1,
57
96
  "unitCode": "C62"
58
97
  },
98
+ /**
99
+ * 適用アドオン
100
+ */
59
101
  "appliesToAddOn": [
60
102
  {
61
103
  "typeOf": "Offer",
62
104
  "id": "7k7bbepxp",
63
105
  "identifier": "addOn-drink-m",
64
106
  "itemOffered": {
65
- "id": "62b90fef5b3eb4000b75150f",
66
107
  "name": {
67
108
  "ja": "ドリンク",
68
109
  "en": "drinks"
69
110
  },
111
+ /**
112
+ * アドオンプロダクトID
113
+ */
70
114
  "productID": "drinks",
71
115
  "typeOf": "Product"
72
116
  }
@@ -0,0 +1,2 @@
1
+ import { ICategoryCode } from './categoryCode';
2
+ export type IBusinessEntityType = Pick<ICategoryCode, 'codeValue' | 'typeOf'>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,6 +12,10 @@ export declare enum CategorySetIdentifier {
12
12
  * 通貨区分
13
13
  */
14
14
  CurrencyType = "CurrencyType",
15
+ /**
16
+ * カスタマータイプ
17
+ */
18
+ CustomerType = "CustomerType",
15
19
  /**
16
20
  * 配給区分
17
21
  */
@@ -11,6 +11,10 @@ var CategorySetIdentifier;
11
11
  * 通貨区分
12
12
  */
13
13
  CategorySetIdentifier["CurrencyType"] = "CurrencyType";
14
+ /**
15
+ * カスタマータイプ
16
+ */
17
+ CategorySetIdentifier["CustomerType"] = "CustomerType";
14
18
  /**
15
19
  * 配給区分
16
20
  */
package/lib/seller.d.ts CHANGED
@@ -1,6 +1,7 @@
1
+ import { IBusinessEntityType } from './businessEntityType';
1
2
  import { IMerchantReturnPolicy, IRestockingFee } from './merchantReturnPolicy';
2
3
  import { IMultilingualString } from './multilingualString';
3
- import { IOffer } from './offer';
4
+ import { IAvailableAtOrFrom, IOffer } from './offer';
4
5
  import { IOrganization } from './organization';
5
6
  import { OrganizationType } from './organizationType';
6
7
  import { IProject } from './project';
@@ -22,12 +23,17 @@ export interface IPaymentAccepted {
22
23
  paymentMethodType: string;
23
24
  }
24
25
  export type IEligibleTransactionDuration = Pick<IQuantitativeValue<UnitCode.Sec>, 'maxValue' | 'typeOf' | 'unitCode'>;
25
- export type IMakesOffer = Pick<IOffer, 'typeOf' | 'availableAtOrFrom'> & {
26
+ export interface IMakesOffer extends Pick<IOffer, 'typeOf' | 'availableAtOrFrom'> {
27
+ availableAtOrFrom: IAvailableAtOrFrom[];
28
+ /**
29
+ * 適用カスタマータイプ
30
+ */
31
+ eligibleCustomerType?: IBusinessEntityType[];
26
32
  /**
27
33
  * 適用取引期間
28
34
  */
29
- eligibleTransactionDuration?: IEligibleTransactionDuration;
30
- };
35
+ eligibleTransactionDuration: IEligibleTransactionDuration;
36
+ }
31
37
  export interface ISeller extends Pick<IOrganization, 'typeOf' | 'id' | 'location' | 'telephone' | 'additionalProperty' | 'name' | 'url'> {
32
38
  project: Pick<IProject, 'id' | 'typeOf'>;
33
39
  /**
@@ -40,7 +46,7 @@ export interface ISeller extends Pick<IOrganization, 'typeOf' | 'id' | 'location
40
46
  hasMerchantReturnPolicy?: IHasMerchantReturnPolicy;
41
47
  name: IMultilingualString;
42
48
  /**
43
- * A pointer to products or services offered by the organization or person.
49
+ * 各アプリケーションに対するオファー
44
50
  */
45
51
  makesOffer?: IMakesOffer[];
46
52
  paymentAccepted?: IPaymentAccepted[];
@@ -71,7 +71,6 @@ export interface IObject {
71
71
  }
72
72
  export interface IStartParamsWithoutDetail {
73
73
  project: Pick<IProject, 'id' | 'typeOf'>;
74
- expiresInSeconds?: number;
75
74
  agent: IAgent;
76
75
  seller: {
77
76
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.343.0-alpha.0",
3
+ "version": "4.343.0-alpha.3",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,7 +59,7 @@
59
59
  "@motionpicture/coa-service": "9.2.0",
60
60
  "@motionpicture/gmo-service": "^5.0.0",
61
61
  "@surfrock/sdk": "1.1.0",
62
- "@waiter/factory": "2.1.0",
62
+ "@waiter/factory": "2.2.0-alpha.3",
63
63
  "setprototypeof": "1.2.0"
64
64
  },
65
65
  "repository": {