@chevre/factory 4.347.0-alpha.9 → 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.
- package/lib/action/trade/pay.d.ts +1 -1
- package/lib/assetTransaction/pay.d.ts +1 -1
- package/lib/categoryCode.d.ts +1 -1
- package/lib/categoryCode.js +1 -1
- package/lib/offer.d.ts +5 -3
- package/lib/offerCatalog.d.ts +21 -1
- package/lib/order.d.ts +1 -1
- package/lib/priceSpecification/unitPriceSpecification.d.ts +4 -3
- package/lib/priceSpecificationType.d.ts +2 -2
- package/lib/priceSpecificationType.js +2 -2
- package/lib/product.d.ts +12 -6
- package/lib/service/paymentService.d.ts +8 -10
- package/lib/thing.d.ts +2 -0
- package/lib/transaction/returnOrder.d.ts +1 -1
- package/lib/unitPriceOffer.d.ts +33 -0
- package/package.json +1 -1
package/lib/categoryCode.d.ts
CHANGED
package/lib/categoryCode.js
CHANGED
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
|
/**
|
package/lib/offerCatalog.d.ts
CHANGED
|
@@ -49,17 +49,37 @@ export interface IRelatedOffer {
|
|
|
49
49
|
/**
|
|
50
50
|
* オファーカタログ
|
|
51
51
|
*/
|
|
52
|
-
export interface IOfferCatalog extends Pick<IThing, 'name' | 'description'
|
|
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
|
@@ -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
|
-
*
|
|
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
|
@@ -7,7 +7,7 @@ import { IPriceSpecification as ICategoryCodeChargeSpecification } from './price
|
|
|
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';
|
|
@@ -63,6 +63,7 @@ export interface IAvailableChannel {
|
|
|
63
63
|
typeOf: 'ServiceChannel';
|
|
64
64
|
serviceUrl?: string;
|
|
65
65
|
credentials?: ICredentials;
|
|
66
|
+
onPaymentStatusChanged?: IOnPaymentStatusChanged;
|
|
66
67
|
}
|
|
67
68
|
export type IServiceType = Pick<ICategoryCode, 'codeValue' | 'inCodeSet' | 'typeOf'>;
|
|
68
69
|
export type IOffer = Pick<IBaseOffer, 'typeOf' | 'priceCurrency' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'> & {
|
|
@@ -79,18 +80,22 @@ export interface IProduct extends Pick<IThing, 'name' | 'description'> {
|
|
|
79
80
|
typeOf: ProductType;
|
|
80
81
|
id?: string;
|
|
81
82
|
availableChannel?: IAvailableChannel;
|
|
82
|
-
|
|
83
|
+
/**
|
|
84
|
+
* 説明
|
|
85
|
+
*/
|
|
86
|
+
description?: Pick<IMultilingualString, 'en' | 'ja'>;
|
|
83
87
|
/**
|
|
84
88
|
* Indicates an OfferCatalog listing for this Organization, Person, or Service.
|
|
89
|
+
* カタログ
|
|
85
90
|
*/
|
|
86
91
|
hasOfferCatalog?: IHasOfferCatalog;
|
|
87
|
-
name?: IMultilingualString;
|
|
88
92
|
/**
|
|
89
|
-
*
|
|
93
|
+
* 名称
|
|
90
94
|
*/
|
|
91
|
-
|
|
95
|
+
name?: Pick<IMultilingualString, 'en' | 'ja'>;
|
|
92
96
|
/**
|
|
93
97
|
* The product identifier, such as ISBN. For example: meta itemprop="productID" content="isbn:123-456-789".
|
|
98
|
+
* プロジェクト内でユニークなプロダクトID
|
|
94
99
|
*/
|
|
95
100
|
productID: string;
|
|
96
101
|
/**
|
|
@@ -99,6 +104,7 @@ export interface IProduct extends Pick<IThing, 'name' | 'description'> {
|
|
|
99
104
|
serviceOutput?: IServiceOutput;
|
|
100
105
|
/**
|
|
101
106
|
* The type of service being offered, e.g. veterans' benefits, emergency relief, etc.
|
|
107
|
+
* サービスタイプ(興行区分、メンバーシップ区分、決済方法区分)
|
|
102
108
|
*/
|
|
103
109
|
serviceType?: IServiceType;
|
|
104
110
|
additionalProperty?: IPropertyValue<string>[];
|
|
@@ -112,7 +118,7 @@ export type ICreateParams = Pick<IProduct, 'typeOf' | 'productID' | 'name' | 'de
|
|
|
112
118
|
/**
|
|
113
119
|
* カタログコードを指定する場合
|
|
114
120
|
*/
|
|
115
|
-
identifier
|
|
121
|
+
identifier?: string;
|
|
116
122
|
};
|
|
117
123
|
/**
|
|
118
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 {
|
|
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, '
|
|
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;
|
package/lib/unitPriceOffer.d.ts
CHANGED
|
@@ -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
|
* 勘定内容
|