@chevre/factory 4.259.0-alpha.0 → 4.259.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.
|
@@ -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
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { ActionType } from './actionType';
|
|
2
2
|
import { ICategoryCode } from './categoryCode';
|
|
3
3
|
import { ItemAvailability } from './itemAvailability';
|
|
4
|
-
import { IMerchantReturnPolicy } from './merchantReturnPolicy';
|
|
5
4
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
6
|
-
import { IMultilingualString } from './multilingualString';
|
|
7
|
-
import * as SeatReservationOfferFactory from './offer/seatReservation';
|
|
8
5
|
import { OfferType } from './offerType';
|
|
9
6
|
import { PriceCurrency } from './priceCurrency';
|
|
10
7
|
import { IPriceSpecification } from './priceSpecification';
|
|
@@ -21,6 +18,8 @@ import * as WebAPIFactory from './service/webAPI';
|
|
|
21
18
|
import { SortType } from './sortType';
|
|
22
19
|
import { IThing } from './thing';
|
|
23
20
|
import { UnitCode } from './unitCode';
|
|
21
|
+
import { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder } from './offer/merchantReturnPolicy';
|
|
22
|
+
import * as SeatReservationOfferFactory from './offer/seatReservation';
|
|
24
23
|
/**
|
|
25
24
|
* オファーカテゴリーインターフェース
|
|
26
25
|
*/
|
|
@@ -67,32 +66,11 @@ export interface IValidRateLimit {
|
|
|
67
66
|
scope: string;
|
|
68
67
|
unitInSeconds: number;
|
|
69
68
|
}
|
|
70
|
-
export declare type
|
|
71
|
-
|
|
72
|
-
additionalProperty?: IPropertyValue<string>[];
|
|
73
|
-
id?: string;
|
|
69
|
+
export declare type IHasMerchantReturnPolicy = (Pick<IOfferMerchantReturnPolicy, 'typeOf' | 'id' | 'identifier' | 'name'> & {
|
|
70
|
+
id: string;
|
|
74
71
|
identifier: string;
|
|
75
|
-
|
|
76
|
-
};
|
|
77
|
-
export declare type IHasMerchantReturnPolicy = IOfferMerchantReturnPolicy[];
|
|
78
|
-
export interface IOfferMerchantReturnPolicySearchConditions {
|
|
79
|
-
limit?: number;
|
|
80
|
-
page?: number;
|
|
81
|
-
sort?: any;
|
|
82
|
-
project?: {
|
|
83
|
-
id?: {
|
|
84
|
-
$eq?: string;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
id?: {
|
|
88
|
-
$eq?: string;
|
|
89
|
-
$in?: string[];
|
|
90
|
-
};
|
|
91
|
-
identifier?: {
|
|
92
|
-
$eq?: string;
|
|
93
|
-
$in?: string[];
|
|
94
|
-
};
|
|
95
|
-
}
|
|
72
|
+
})[];
|
|
73
|
+
export { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder };
|
|
96
74
|
/**
|
|
97
75
|
* offer interface
|
|
98
76
|
* An offer to transfer some rights to an item or to provide a service
|
|
@@ -365,6 +343,11 @@ export interface ISearchConditions {
|
|
|
365
343
|
$eq?: string;
|
|
366
344
|
};
|
|
367
345
|
};
|
|
346
|
+
hasMerchantReturnPolicy?: {
|
|
347
|
+
id?: {
|
|
348
|
+
$eq?: string;
|
|
349
|
+
};
|
|
350
|
+
};
|
|
368
351
|
id?: {
|
|
369
352
|
$eq?: string;
|
|
370
353
|
$in?: string[];
|
package/lib/factory/seller.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { OrganizationType } from './organizationType';
|
|
|
5
5
|
import { IProject } from './project';
|
|
6
6
|
import { IPropertyValue } from './propertyValue';
|
|
7
7
|
import { SortType } from './sortType';
|
|
8
|
-
export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee'
|
|
8
|
+
export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee'>;
|
|
9
9
|
export declare type IHasMerchantReturnPolicy = ISellerMerchantReturnPolicy[];
|
|
10
10
|
/**
|
|
11
11
|
* 利用可能決済インターフェース
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IAttributes as IReturnOrderActionAttributes } from '../action/transfer/return/order';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
|
+
import { IMerchantReturnPolicy, ReturnFeesEnumeration } from '../merchantReturnPolicy';
|
|
3
4
|
import { IProject } from '../project';
|
|
4
|
-
import { ISellerMerchantReturnPolicy } from '../seller';
|
|
5
5
|
import * as TransactionFactory from '../transaction';
|
|
6
6
|
import { TransactionType } from '../transactionType';
|
|
7
7
|
export declare type IAgent = TransactionFactory.IAgent;
|
|
@@ -118,13 +118,19 @@ export interface IConfirmParams {
|
|
|
118
118
|
*/
|
|
119
119
|
potentialActions?: IPotentialActionsParams;
|
|
120
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* 取引に適用される返品ポリシー
|
|
123
|
+
*/
|
|
124
|
+
export declare type IReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'returnFees'> & {
|
|
125
|
+
returnFees: ReturnFeesEnumeration;
|
|
126
|
+
};
|
|
121
127
|
/**
|
|
122
128
|
* 取引対象物
|
|
123
129
|
*/
|
|
124
130
|
export interface IObject {
|
|
125
131
|
order: IReturnableOrder[];
|
|
126
132
|
reason: Reason;
|
|
127
|
-
returnPolicy:
|
|
133
|
+
returnPolicy: IReturnPolicy;
|
|
128
134
|
}
|
|
129
135
|
export interface IPotentialActions {
|
|
130
136
|
/**
|