@chevre/factory 4.258.0 → 4.259.0-alpha.2
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.
|
@@ -43,6 +43,14 @@ export declare enum MerchantReturnEnumeration {
|
|
|
43
43
|
}
|
|
44
44
|
export interface IMerchantReturnPolicy extends IThing {
|
|
45
45
|
typeOf: 'MerchantReturnPolicy';
|
|
46
|
+
/**
|
|
47
|
+
* The type of return fees if the product is returned due to customer remorse.
|
|
48
|
+
*/
|
|
49
|
+
customerRemorseReturnFees?: ReturnFeesEnumeration;
|
|
50
|
+
/**
|
|
51
|
+
* 決済カード着券取消仕様
|
|
52
|
+
*/
|
|
53
|
+
customerRemorseReturnFeesMovieTicket?: ReturnFeesEnumeration;
|
|
46
54
|
/**
|
|
47
55
|
* Are in-store returns offered?
|
|
48
56
|
*/
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IMerchantReturnPolicy } from '../merchantReturnPolicy';
|
|
2
|
+
import { IMultilingualString } from '../multilingualString';
|
|
3
|
+
import { IProject } from '../project';
|
|
4
|
+
import { IPropertyValue } from '../propertyValue';
|
|
5
|
+
import { SortType } from '../sortType';
|
|
6
|
+
export declare type IOfferMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'customerRemorseReturnFees' | 'customerRemorseReturnFeesMovieTicket'> & {
|
|
7
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
8
|
+
additionalProperty?: IPropertyValue<string>[];
|
|
9
|
+
id?: string;
|
|
10
|
+
identifier: string;
|
|
11
|
+
name?: IMultilingualString;
|
|
12
|
+
};
|
|
13
|
+
export interface IOfferMerchantReturnPolicySortOrder {
|
|
14
|
+
identifier?: SortType;
|
|
15
|
+
}
|
|
16
|
+
export interface IOfferMerchantReturnPolicySearchConditions {
|
|
17
|
+
limit?: number;
|
|
18
|
+
page?: number;
|
|
19
|
+
sort?: IOfferMerchantReturnPolicySortOrder;
|
|
20
|
+
project?: {
|
|
21
|
+
id?: {
|
|
22
|
+
$eq?: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
id?: {
|
|
26
|
+
$eq?: string;
|
|
27
|
+
$in?: string[];
|
|
28
|
+
};
|
|
29
|
+
identifier?: {
|
|
30
|
+
$eq?: string;
|
|
31
|
+
$in?: string[];
|
|
32
|
+
$regex?: string;
|
|
33
|
+
};
|
|
34
|
+
name?: {
|
|
35
|
+
$regex?: string;
|
|
36
|
+
};
|
|
37
|
+
}
|
package/lib/factory/offer.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { ActionType } from './actionType';
|
|
|
2
2
|
import { ICategoryCode } from './categoryCode';
|
|
3
3
|
import { ItemAvailability } from './itemAvailability';
|
|
4
4
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
5
|
-
import * as SeatReservationOfferFactory from './offer/seatReservation';
|
|
6
5
|
import { OfferType } from './offerType';
|
|
7
6
|
import { PriceCurrency } from './priceCurrency';
|
|
8
7
|
import { IPriceSpecification } from './priceSpecification';
|
|
@@ -19,11 +18,13 @@ import * as WebAPIFactory from './service/webAPI';
|
|
|
19
18
|
import { SortType } from './sortType';
|
|
20
19
|
import { IThing } from './thing';
|
|
21
20
|
import { UnitCode } from './unitCode';
|
|
21
|
+
import { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder } from './offer/merchantReturnPolicy';
|
|
22
|
+
import * as SeatReservationOfferFactory from './offer/seatReservation';
|
|
22
23
|
/**
|
|
23
24
|
* オファーカテゴリーインターフェース
|
|
24
25
|
*/
|
|
25
26
|
export interface ICategory {
|
|
26
|
-
project: IProject
|
|
27
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
27
28
|
id?: string;
|
|
28
29
|
codeValue?: string;
|
|
29
30
|
name?: any;
|
|
@@ -65,6 +66,8 @@ export interface IValidRateLimit {
|
|
|
65
66
|
scope: string;
|
|
66
67
|
unitInSeconds: number;
|
|
67
68
|
}
|
|
69
|
+
export declare type IHasMerchantReturnPolicy = Pick<IOfferMerchantReturnPolicy, 'typeOf' | 'id' | 'identifier' | 'name'>[];
|
|
70
|
+
export { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder };
|
|
68
71
|
/**
|
|
69
72
|
* offer interface
|
|
70
73
|
* An offer to transfer some rights to an item or to provide a service
|
|
@@ -73,7 +76,7 @@ export interface IValidRateLimit {
|
|
|
73
76
|
* {@link https://schema.org/Offer}
|
|
74
77
|
*/
|
|
75
78
|
export interface IOffer extends IThing {
|
|
76
|
-
project: IProject
|
|
79
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
77
80
|
typeOf: OfferType;
|
|
78
81
|
id?: string;
|
|
79
82
|
/**
|
|
@@ -138,6 +141,7 @@ export interface IOffer extends IThing {
|
|
|
138
141
|
* オファーが有効となる地域
|
|
139
142
|
*/
|
|
140
143
|
eligibleRegion?: any;
|
|
144
|
+
hasMerchantReturnPolicy?: IHasMerchantReturnPolicy;
|
|
141
145
|
/**
|
|
142
146
|
* The item being offered.
|
|
143
147
|
*/
|
|
@@ -336,6 +340,11 @@ export interface ISearchConditions {
|
|
|
336
340
|
$eq?: string;
|
|
337
341
|
};
|
|
338
342
|
};
|
|
343
|
+
hasMerchantReturnPolicy?: {
|
|
344
|
+
id?: {
|
|
345
|
+
$eq?: string;
|
|
346
|
+
};
|
|
347
|
+
};
|
|
339
348
|
id?: {
|
|
340
349
|
$eq?: string;
|
|
341
350
|
$in?: string[];
|