@chevre/factory 4.347.0-alpha.8 → 4.347.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.
@@ -87,7 +87,7 @@ export interface IPaymentService {
87
87
  paymentMethod: IPaymentMethod;
88
88
  pendingTransaction?: IPendingTransaction;
89
89
  /**
90
- * ムビチケリスト
90
+ * 決済カードリスト
91
91
  */
92
92
  movieTickets?: IMovieTicket[];
93
93
  /**
@@ -63,7 +63,7 @@ export interface IPaymentMethod {
63
63
  */
64
64
  fromLocation?: IFromLocation;
65
65
  /**
66
- * ムビチケリスト
66
+ * 決済カードリスト
67
67
  */
68
68
  movieTickets?: IMovieTicket[];
69
69
  /**
@@ -25,7 +25,7 @@ export declare enum CategorySetIdentifier {
25
25
  */
26
26
  MembershipType = "MembershipType",
27
27
  /**
28
- * 決済カード(ムビチケ券種)区分
28
+ * 決済カード区分
29
29
  */
30
30
  MovieTicketType = "MovieTicketType",
31
31
  /**
@@ -24,7 +24,7 @@ var CategorySetIdentifier;
24
24
  */
25
25
  CategorySetIdentifier["MembershipType"] = "MembershipType";
26
26
  /**
27
- * 決済カード(ムビチケ券種)区分
27
+ * 決済カード区分
28
28
  */
29
29
  CategorySetIdentifier["MovieTicketType"] = "MovieTicketType";
30
30
  /**
package/lib/offer.d.ts CHANGED
@@ -103,6 +103,7 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
103
103
  id?: string;
104
104
  /**
105
105
  * The payment method(s) accepted by seller for this offer.
106
+ * 対応決済方法区分
106
107
  */
107
108
  acceptedPaymentMethod?: IAcceptedPaymentMethod[];
108
109
  /**
@@ -124,15 +125,14 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
124
125
  availabilityStarts?: Date;
125
126
  /**
126
127
  * The place(s) from which the offer can be obtained (e.g. store locations).
128
+ * 利用可能アプリケーション
127
129
  */
128
130
  availableAtOrFrom?: IAvailableAtOrFrom[];
129
131
  /**
130
132
  * A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
133
+ * カテゴリー
131
134
  */
132
135
  category?: ICategory;
133
- /**
134
- * 有効な顧客タイプ
135
- */
136
136
  /**
137
137
  * 有効なメンバーシップタイプ
138
138
  */
@@ -190,10 +190,12 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
190
190
  unacceptedPaymentMethod?: string[];
191
191
  /**
192
192
  * The date when the item becomes valid.
193
+ * 有効期間(from)
193
194
  */
194
195
  validFrom?: Date;
195
196
  /**
196
197
  * The date after when the item is not valid. For example the end of an offer, salary period, or a period of opening hours.
198
+ * 有効期間(through)
197
199
  */
198
200
  validThrough?: Date;
199
201
  /**
@@ -49,17 +49,37 @@ export interface IRelatedOffer {
49
49
  /**
50
50
  * オファーカタログ
51
51
  */
52
- export interface IOfferCatalog extends Pick<IThing, 'name' | 'description' | 'alternateName'> {
52
+ export interface IOfferCatalog extends Pick<IThing, 'name' | 'description'> {
53
53
  project: Pick<IProject, 'id' | 'typeOf'>;
54
54
  typeOf: OfferCatalogType;
55
55
  id?: string;
56
+ /**
57
+ * コード
58
+ */
56
59
  identifier: string;
60
+ /**
61
+ * 説明
62
+ */
63
+ description?: IMultilingualString;
64
+ /**
65
+ * 名称
66
+ */
57
67
  name: IMultilingualString;
68
+ /**
69
+ * アイテムリスト
70
+ */
58
71
  itemListElement: IItemListElement[];
72
+ /**
73
+ * プロダクト
74
+ */
59
75
  itemOffered: IItemOffered;
76
+ /**
77
+ * 追加特性
78
+ */
60
79
  additionalProperty?: IPropertyValue<string>[];
61
80
  /**
62
81
  * 関連オファー
82
+ * サブカタログの場合のみ存在
63
83
  */
64
84
  relatedOffer?: IRelatedOffer;
65
85
  }
package/lib/order.d.ts CHANGED
@@ -448,7 +448,7 @@ export interface ICustomerSearchConditions {
448
448
  export interface IPaymentMethodsSearchConditions {
449
449
  /**
450
450
  * 決済アカウントID
451
- * ムビチケ購入番号、ペイメントカード番号など
451
+ * 決済カードコード、ペイメントカード番号など
452
452
  */
453
453
  accountIds?: string[];
454
454
  /**
@@ -23,15 +23,16 @@ export interface IAppliesToAddOn {
23
23
  * 単価仕様
24
24
  */
25
25
  export interface IPriceSpecification extends Pick<BaseSpecification<PriceSpecificationType.UnitPriceSpecification>, 'project' | 'id' | 'typeOf' | 'name' | 'price' | 'priceCurrency' | 'valueAddedTaxIncluded' | 'accounting' | 'eligibleQuantity' | 'eligibleTransactionVolume'> {
26
+ /**
27
+ * 発生金額
28
+ */
26
29
  price: number;
27
30
  /**
28
31
  * 基準数量
29
32
  */
30
33
  referenceQuantity: IReferenceQuantity;
31
34
  /**
32
- * 適用MovieTicket
33
- * 複数決済カード対応(2022-07-11~)
34
- * Arrayに完全限定(2023-09-01~)
35
+ * 適用決済カード
35
36
  */
36
37
  appliesToMovieTicket?: IAppliesToMovieTicket[];
37
38
  /**
@@ -7,7 +7,7 @@ export declare enum PriceSpecificationType {
7
7
  */
8
8
  PriceSpecification = "PriceSpecification",
9
9
  /**
10
- * カテゴリーコードチャージ仕様
10
+ * 区分加算料金
11
11
  */
12
12
  CategoryCodeChargeSpecification = "CategoryCodeChargeSpecification",
13
13
  /**
@@ -15,7 +15,7 @@ export declare enum PriceSpecificationType {
15
15
  */
16
16
  CompoundPriceSpecification = "CompoundPriceSpecification",
17
17
  /**
18
- * ムビチケ券種区分チャージ仕様
18
+ * 決済カード加算料金
19
19
  */
20
20
  MovieTicketTypeChargeSpecification = "MovieTicketTypeChargeSpecification",
21
21
  /**
@@ -11,7 +11,7 @@ var PriceSpecificationType;
11
11
  */
12
12
  PriceSpecificationType["PriceSpecification"] = "PriceSpecification";
13
13
  /**
14
- * カテゴリーコードチャージ仕様
14
+ * 区分加算料金
15
15
  */
16
16
  PriceSpecificationType["CategoryCodeChargeSpecification"] = "CategoryCodeChargeSpecification";
17
17
  /**
@@ -19,7 +19,7 @@ var PriceSpecificationType;
19
19
  */
20
20
  PriceSpecificationType["CompoundPriceSpecification"] = "CompoundPriceSpecification";
21
21
  /**
22
- * ムビチケ券種区分チャージ仕様
22
+ * 決済カード加算料金
23
23
  */
24
24
  PriceSpecificationType["MovieTicketTypeChargeSpecification"] = "MovieTicketTypeChargeSpecification";
25
25
  /**
package/lib/product.d.ts CHANGED
@@ -2,12 +2,12 @@ import { ICategoryCode } from './categoryCode';
2
2
  import { IMultilingualString } from './multilingualString';
3
3
  import { IName as IOfferName, IOffer as IBaseOffer } from './offer';
4
4
  import { OfferType } from './offerType';
5
- import { IPermit } from './permit';
5
+ import { IAmount as IPermitAmount, IPermit } from './permit';
6
6
  import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
7
7
  import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
8
8
  import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
9
9
  import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
10
- import { IProject } from './project';
10
+ import { IOnPaymentStatusChanged, IProject } from './project';
11
11
  import { IPropertyValue } from './propertyValue';
12
12
  import { IQuantitativeValue } from './quantitativeValue';
13
13
  import { SortType } from './sortType';
@@ -43,10 +43,11 @@ export interface IHasOfferCatalog {
43
43
  typeOf: 'OfferCatalog';
44
44
  id: string;
45
45
  }
46
- export type IMembershipPointsEarned = Pick<IQuantitativeValue<string>, 'name' | 'typeOf' | 'unitText' | 'value'>;
47
- export type IServiceOutput = Pick<IPermit, 'typeOf' | 'amount'> & {
48
- membershipPointsEarned?: IMembershipPointsEarned;
49
- automaticRenewal?: boolean;
46
+ export type IServiceOutput = Pick<IPermit, 'typeOf'> & {
47
+ /**
48
+ * ペイメントカードの場合、通貨区分
49
+ */
50
+ amount?: Pick<IPermitAmount, 'currency' | 'typeOf'>;
50
51
  };
51
52
  /**
52
53
  * 外部サービス認証情報
@@ -62,6 +63,7 @@ export interface IAvailableChannel {
62
63
  typeOf: 'ServiceChannel';
63
64
  serviceUrl?: string;
64
65
  credentials?: ICredentials;
66
+ onPaymentStatusChanged?: IOnPaymentStatusChanged;
65
67
  }
66
68
  export type IServiceType = Pick<ICategoryCode, 'codeValue' | 'inCodeSet' | 'typeOf'>;
67
69
  export type IOffer = Pick<IBaseOffer, 'typeOf' | 'priceCurrency' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'> & {
@@ -78,18 +80,22 @@ export interface IProduct extends Pick<IThing, 'name' | 'description'> {
78
80
  typeOf: ProductType;
79
81
  id?: string;
80
82
  availableChannel?: IAvailableChannel;
81
- description?: IMultilingualString;
83
+ /**
84
+ * 説明
85
+ */
86
+ description?: Pick<IMultilingualString, 'en' | 'ja'>;
82
87
  /**
83
88
  * Indicates an OfferCatalog listing for this Organization, Person, or Service.
89
+ * カタログ
84
90
  */
85
91
  hasOfferCatalog?: IHasOfferCatalog;
86
- name?: IMultilingualString;
87
92
  /**
88
- * An offer to provide this item
93
+ * 名称
89
94
  */
90
- offers?: IOffer[];
95
+ name?: Pick<IMultilingualString, 'en' | 'ja'>;
91
96
  /**
92
97
  * The product identifier, such as ISBN. For example: meta itemprop="productID" content="isbn:123-456-789".
98
+ * プロジェクト内でユニークなプロダクトID
93
99
  */
94
100
  productID: string;
95
101
  /**
@@ -98,6 +104,7 @@ export interface IProduct extends Pick<IThing, 'name' | 'description'> {
98
104
  serviceOutput?: IServiceOutput;
99
105
  /**
100
106
  * The type of service being offered, e.g. veterans' benefits, emergency relief, etc.
107
+ * サービスタイプ(興行区分、メンバーシップ区分、決済方法区分)
101
108
  */
102
109
  serviceType?: IServiceType;
103
110
  additionalProperty?: IPropertyValue<string>[];
@@ -111,7 +118,7 @@ export type ICreateParams = Pick<IProduct, 'typeOf' | 'productID' | 'name' | 'de
111
118
  /**
112
119
  * カタログコードを指定する場合
113
120
  */
114
- identifier: string;
121
+ identifier?: string;
115
122
  };
116
123
  /**
117
124
  * サービスタイプ
@@ -1,7 +1,8 @@
1
1
  import { IInvoice } from '../invoice';
2
+ import { IMultilingualString } from '../multilingualString';
2
3
  import { IIssuedThrough, IPermit } from '../permit';
3
4
  import { IAvailableChannel as IProductAvailableChannel, IServiceType } from '../product';
4
- import { IOnPaymentStatusChanged, IProject } from '../project';
5
+ import { IProject } from '../project';
5
6
  import { IPropertyValue } from '../propertyValue';
6
7
  import { ISeller } from '../seller';
7
8
  import { IThing } from '../thing';
@@ -35,15 +36,15 @@ export interface IProviderCredentials {
35
36
  tokenizationCode?: string;
36
37
  paymentUrl?: IPaymentUrlSettings;
37
38
  /**
38
- * ムビチケ興行会社コード
39
+ * 決済カード興行会社コード
39
40
  */
40
41
  kgygishCd?: string;
41
42
  /**
42
- * ムビチケサイトコード
43
+ * 決済カードサイトコード
43
44
  */
44
45
  stCd?: string;
45
46
  }
46
- export interface IProvider extends Pick<ISeller, 'name' | 'typeOf'> {
47
+ export interface IProvider extends Pick<ISeller, 'typeOf'> {
47
48
  /**
48
49
  * 販売者ID
49
50
  */
@@ -54,7 +55,6 @@ export interface IProvider extends Pick<ISeller, 'name' | 'typeOf'> {
54
55
  credentials?: IProviderCredentials;
55
56
  }
56
57
  export type IAvailableChannel = IProductAvailableChannel & {
57
- onPaymentStatusChanged?: IOnPaymentStatusChanged;
58
58
  totalPaymentDue?: {
59
59
  maxValue?: number;
60
60
  };
@@ -100,15 +100,13 @@ export interface IService extends Pick<IThing, 'name' | 'description'> {
100
100
  typeOf: PaymentServiceType;
101
101
  id?: string;
102
102
  availableChannel?: IAvailableChannel;
103
+ description?: Pick<IMultilingualString, 'en' | 'ja'>;
104
+ name?: Pick<IMultilingualString, 'en' | 'ja'>;
103
105
  /**
104
106
  * The product identifier, such as ISBN.
105
- * プロジェクト内でユニークな想定
107
+ * プロジェクト内でユニークなプロダクトID
106
108
  */
107
109
  productID: string;
108
- /**
109
- * 決済サービス提供者(決済サービスを利用する販売者)
110
- */
111
- provider?: IProvider[];
112
110
  /**
113
111
  * The tangible thing generated by the service, e.g. a passport, permit, etc.
114
112
  * (InvoiceやPermit)
package/lib/thing.d.ts CHANGED
@@ -18,6 +18,7 @@ export interface IThing {
18
18
  color?: string;
19
19
  /**
20
20
  * A description of the item.
21
+ * 説明
21
22
  */
22
23
  description?: string | IMultilingualString;
23
24
  /**
@@ -30,6 +31,7 @@ export interface IThing {
30
31
  image?: string;
31
32
  /**
32
33
  * The name of the item.
34
+ * 名称
33
35
  */
34
36
  name?: string | IMultilingualString;
35
37
  sameAs?: string;
@@ -93,7 +93,7 @@ export interface IReturnOrderActionParams {
93
93
  */
94
94
  refundCreditCard?: IRefundParams[];
95
95
  /**
96
- * ムビチケ着券取消を実行するかどうか
96
+ * 決済カード着券取消を実行するかどうか
97
97
  */
98
98
  /**
99
99
  * Eメール送信アクション
@@ -48,6 +48,9 @@ export interface IAddOn4unitPriceOffer extends Pick<IAddOn, 'typeOf' | 'priceCur
48
48
  itemOffered: IAddOnItemOffered;
49
49
  }
50
50
  export interface ISettings {
51
+ /**
52
+ * 区分加算料金を適用しない
53
+ */
51
54
  ignoreCategoryCodeChargeSpec?: boolean;
52
55
  }
53
56
  export interface IAdvanceBookingRequirement extends Pick<IQuantitativeValue<UnitCode.Sec>, 'typeOf' | 'minValue' | 'unitCode' | 'description'> {
@@ -67,18 +70,36 @@ export interface IUnitPriceOffer extends Pick<IOffer, 'acceptedPaymentMethod' |
67
70
  * コード
68
71
  */
69
72
  identifier: string;
73
+ /**
74
+ * 名称
75
+ */
70
76
  name: IName;
71
77
  /**
72
78
  * 単価仕様
73
79
  */
74
80
  priceSpecification: IUnitPriceOfferPriceSpecification;
81
+ /**
82
+ * プロダクト
83
+ */
75
84
  itemOffered?: IItemOffered;
85
+ /**
86
+ * アドオン
87
+ */
76
88
  addOn?: IAddOn4unitPriceOffer[];
77
89
  typeOf: OfferType.Offer;
90
+ /**
91
+ * 返品ポリシー
92
+ */
78
93
  hasMerchantReturnPolicy?: IHasMerchantReturnPolicy;
94
+ /**
95
+ * オプション
96
+ */
79
97
  settings?: ISettings;
80
98
  }
81
99
  export type ICreateParams = Pick<IUnitPriceOffer, 'acceptedPaymentMethod' | 'eligibleSubReservation' | 'additionalProperty' | 'alternateName' | 'availability' | 'availableAtOrFrom' | 'color' | 'description' | 'identifier' | 'itemOffered' | 'name' | 'settings' | 'validFrom' | 'validRateLimit' | 'validThrough'> & {
100
+ /**
101
+ * アドオン
102
+ */
82
103
  addOn?: {
83
104
  itemOffered: {
84
105
  /**
@@ -87,17 +108,29 @@ export type ICreateParams = Pick<IUnitPriceOffer, 'acceptedPaymentMethod' | 'eli
87
108
  id: string;
88
109
  };
89
110
  }[];
111
+ /**
112
+ * 事前予約要件
113
+ */
90
114
  advanceBookingRequirement?: Pick<IAdvanceBookingRequirement, 'description' | 'minValue'>;
115
+ /**
116
+ * カテゴリー
117
+ */
91
118
  category?: Pick<ICategory, 'codeValue'>;
92
119
  eligibleMembershipType?: Pick<IEligibleCategoryCode, 'codeValue'>[];
93
120
  eligibleMonetaryAmount?: Pick<IEligibleMonetaryAmount, 'currency' | 'value'>[];
94
121
  eligibleSeatingType?: Pick<IEligibleCategoryCode, 'codeValue'>[];
122
+ /**
123
+ * 返品ポリシー
124
+ */
95
125
  hasMerchantReturnPolicy?: {
96
126
  /**
97
127
  * 返品ポリシーコード
98
128
  */
99
129
  identifier: string;
100
130
  }[];
131
+ /**
132
+ * 価格仕様
133
+ */
101
134
  priceSpecification: Pick<IUnitPriceOfferPriceSpecification, 'appliesToMovieTicket' | 'eligibleQuantity' | 'eligibleTransactionVolume' | 'price' | 'referenceQuantity'> & {
102
135
  /**
103
136
  * 勘定内容
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.347.0-alpha.8",
3
+ "version": "4.347.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",