@chevre/factory 4.257.0 → 4.259.0-alpha.1
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/factory/action/authorize/offer/product.d.ts +2 -1
- package/lib/factory/merchantReturnPolicy.d.ts +18 -3
- package/lib/factory/merchantReturnPolicy.js +11 -2
- package/lib/factory/offer.d.ts +36 -2
- package/lib/factory/organization.d.ts +0 -6
- package/lib/factory/seller.d.ts +9 -5
- package/lib/factory/transaction/returnOrder.d.ts +2 -2
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ export declare type IAgent = ActionFactory.IParticipantAsSeller;
|
|
|
13
13
|
export declare type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
14
14
|
export declare type IService = IProduct;
|
|
15
15
|
export declare type IAcceptedOfferWithoutDetail = RegisterServiceTransactionFactory.IAcceptedOfferWithoutDetail;
|
|
16
|
+
export declare type ISellerMakesOffer = Pick<ISeller, 'project' | 'id' | 'name' | 'typeOf'>;
|
|
16
17
|
export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'price' | 'availability' | 'availableAtOrFrom'> {
|
|
17
18
|
/**
|
|
18
19
|
* オファー対象アイテム
|
|
@@ -21,7 +22,7 @@ export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'price' | 'availa
|
|
|
21
22
|
/**
|
|
22
23
|
* 販売者
|
|
23
24
|
*/
|
|
24
|
-
seller:
|
|
25
|
+
seller: ISellerMakesOffer;
|
|
25
26
|
priceSpecification?: ITicketPriceSpecification;
|
|
26
27
|
}
|
|
27
28
|
export declare type IObjectWithoutDetail = IAcceptedOfferWithoutDetail[];
|
|
@@ -6,11 +6,18 @@ export declare enum RefundTypeEnumeration {
|
|
|
6
6
|
StoreCreditRefund = "StoreCreditRefund"
|
|
7
7
|
}
|
|
8
8
|
export declare enum ReturnFeesEnumeration {
|
|
9
|
+
/**
|
|
10
|
+
* Specifies that product returns are free of charge for the customer.
|
|
11
|
+
*/
|
|
9
12
|
FreeReturn = "FreeReturn",
|
|
10
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Specifies that the customer must pay a restocking fee when returning a product
|
|
15
|
+
*/
|
|
11
16
|
RestockingFees = "RestockingFees",
|
|
12
|
-
|
|
13
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Specifies that product returns must be paid for, and are the responsibility of, the customer.
|
|
19
|
+
*/
|
|
20
|
+
ReturnFeesCustomerResponsibility = "ReturnFeesCustomerResponsibility"
|
|
14
21
|
}
|
|
15
22
|
/**
|
|
16
23
|
* 返品ポリシーインターフェース
|
|
@@ -36,6 +43,14 @@ export declare enum MerchantReturnEnumeration {
|
|
|
36
43
|
}
|
|
37
44
|
export interface IMerchantReturnPolicy extends IThing {
|
|
38
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;
|
|
39
54
|
/**
|
|
40
55
|
* Are in-store returns offered?
|
|
41
56
|
*/
|
|
@@ -9,11 +9,20 @@ var RefundTypeEnumeration;
|
|
|
9
9
|
})(RefundTypeEnumeration = exports.RefundTypeEnumeration || (exports.RefundTypeEnumeration = {}));
|
|
10
10
|
var ReturnFeesEnumeration;
|
|
11
11
|
(function (ReturnFeesEnumeration) {
|
|
12
|
+
/**
|
|
13
|
+
* Specifies that product returns are free of charge for the customer.
|
|
14
|
+
*/
|
|
12
15
|
ReturnFeesEnumeration["FreeReturn"] = "FreeReturn";
|
|
13
|
-
|
|
16
|
+
// OriginalShippingFees = 'OriginalShippingFees',
|
|
17
|
+
/**
|
|
18
|
+
* Specifies that the customer must pay a restocking fee when returning a product
|
|
19
|
+
*/
|
|
14
20
|
ReturnFeesEnumeration["RestockingFees"] = "RestockingFees";
|
|
21
|
+
/**
|
|
22
|
+
* Specifies that product returns must be paid for, and are the responsibility of, the customer.
|
|
23
|
+
*/
|
|
15
24
|
ReturnFeesEnumeration["ReturnFeesCustomerResponsibility"] = "ReturnFeesCustomerResponsibility";
|
|
16
|
-
|
|
25
|
+
// ReturnShippingFees = 'ReturnShippingFees'
|
|
17
26
|
})(ReturnFeesEnumeration = exports.ReturnFeesEnumeration || (exports.ReturnFeesEnumeration = {}));
|
|
18
27
|
/**
|
|
19
28
|
* 返品ポリシーインターフェース
|
package/lib/factory/offer.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ActionType } from './actionType';
|
|
2
2
|
import { ICategoryCode } from './categoryCode';
|
|
3
3
|
import { ItemAvailability } from './itemAvailability';
|
|
4
|
+
import { IMerchantReturnPolicy } from './merchantReturnPolicy';
|
|
4
5
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
6
|
+
import { IMultilingualString } from './multilingualString';
|
|
5
7
|
import * as SeatReservationOfferFactory from './offer/seatReservation';
|
|
6
8
|
import { OfferType } from './offerType';
|
|
7
9
|
import { PriceCurrency } from './priceCurrency';
|
|
@@ -23,7 +25,7 @@ import { UnitCode } from './unitCode';
|
|
|
23
25
|
* オファーカテゴリーインターフェース
|
|
24
26
|
*/
|
|
25
27
|
export interface ICategory {
|
|
26
|
-
project: IProject
|
|
28
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
27
29
|
id?: string;
|
|
28
30
|
codeValue?: string;
|
|
29
31
|
name?: any;
|
|
@@ -65,6 +67,32 @@ export interface IValidRateLimit {
|
|
|
65
67
|
scope: string;
|
|
66
68
|
unitInSeconds: number;
|
|
67
69
|
}
|
|
70
|
+
export declare type IOfferMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'customerRemorseReturnFees' | 'customerRemorseReturnFeesMovieTicket'> & {
|
|
71
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
72
|
+
additionalProperty?: IPropertyValue<string>[];
|
|
73
|
+
id?: string;
|
|
74
|
+
identifier: string;
|
|
75
|
+
name?: IMultilingualString;
|
|
76
|
+
};
|
|
77
|
+
export declare type IHasMerchantReturnPolicy = Pick<IOfferMerchantReturnPolicy, 'typeOf' | 'id' | 'identifier' | 'name'>[];
|
|
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
|
+
}
|
|
68
96
|
/**
|
|
69
97
|
* offer interface
|
|
70
98
|
* An offer to transfer some rights to an item or to provide a service
|
|
@@ -73,7 +101,7 @@ export interface IValidRateLimit {
|
|
|
73
101
|
* {@link https://schema.org/Offer}
|
|
74
102
|
*/
|
|
75
103
|
export interface IOffer extends IThing {
|
|
76
|
-
project: IProject
|
|
104
|
+
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
77
105
|
typeOf: OfferType;
|
|
78
106
|
id?: string;
|
|
79
107
|
/**
|
|
@@ -138,6 +166,7 @@ export interface IOffer extends IThing {
|
|
|
138
166
|
* オファーが有効となる地域
|
|
139
167
|
*/
|
|
140
168
|
eligibleRegion?: any;
|
|
169
|
+
hasMerchantReturnPolicy?: IHasMerchantReturnPolicy;
|
|
141
170
|
/**
|
|
142
171
|
* The item being offered.
|
|
143
172
|
*/
|
|
@@ -336,6 +365,11 @@ export interface ISearchConditions {
|
|
|
336
365
|
$eq?: string;
|
|
337
366
|
};
|
|
338
367
|
};
|
|
368
|
+
hasMerchantReturnPolicy?: {
|
|
369
|
+
id?: {
|
|
370
|
+
$eq?: string;
|
|
371
|
+
};
|
|
372
|
+
};
|
|
339
373
|
id?: {
|
|
340
374
|
$eq?: string;
|
|
341
375
|
$in?: string[];
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { IMerchantReturnPolicy } from './merchantReturnPolicy';
|
|
2
1
|
import { IMultilingualString } from './multilingualString';
|
|
3
2
|
import { IPlace } from './place';
|
|
4
3
|
import { IPropertyValue } from './propertyValue';
|
|
5
4
|
import { IThing } from './thing';
|
|
6
|
-
export declare type IHasMerchantReturnPolicy = IMerchantReturnPolicy[];
|
|
7
5
|
export declare type ILocation = IPlace;
|
|
8
6
|
export declare type IParentOrganization = IOrganization;
|
|
9
7
|
/**
|
|
@@ -13,10 +11,6 @@ export interface IOrganization extends IThing {
|
|
|
13
11
|
typeOf: string;
|
|
14
12
|
id?: string;
|
|
15
13
|
email?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Indicates a MerchantReturnPolicy that may be applicable.
|
|
18
|
-
*/
|
|
19
|
-
hasMerchantReturnPolicy?: IHasMerchantReturnPolicy;
|
|
20
14
|
legalName?: IMultilingualString;
|
|
21
15
|
location?: ILocation;
|
|
22
16
|
logo?: string;
|
package/lib/factory/seller.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { IMerchantReturnPolicy } from './merchantReturnPolicy';
|
|
1
2
|
import { IMultilingualString } from './multilingualString';
|
|
2
3
|
import { IOrganization } from './organization';
|
|
3
4
|
import { OrganizationType } from './organizationType';
|
|
4
5
|
import { IProject } from './project';
|
|
5
6
|
import { IPropertyValue } from './propertyValue';
|
|
6
7
|
import { SortType } from './sortType';
|
|
8
|
+
export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'returnFees'>;
|
|
9
|
+
export declare type IHasMerchantReturnPolicy = ISellerMerchantReturnPolicy[];
|
|
7
10
|
/**
|
|
8
11
|
* 利用可能決済インターフェース
|
|
9
12
|
*/
|
|
@@ -13,15 +16,16 @@ export interface IPaymentAccepted {
|
|
|
13
16
|
*/
|
|
14
17
|
paymentMethodType: string;
|
|
15
18
|
}
|
|
16
|
-
|
|
17
|
-
* サービス提供エリアインターフェース
|
|
18
|
-
*/
|
|
19
|
-
export interface ISeller extends IOrganization {
|
|
19
|
+
export interface ISeller extends Pick<IOrganization, 'typeOf' | 'id' | 'location' | 'telephone' | 'additionalProperty' | 'name' | 'url'> {
|
|
20
20
|
project: IProject;
|
|
21
21
|
/**
|
|
22
22
|
* The geographic area where a service or offered item is provided.
|
|
23
23
|
*/
|
|
24
|
-
branchCode
|
|
24
|
+
branchCode: string;
|
|
25
|
+
/**
|
|
26
|
+
* Indicates a MerchantReturnPolicy that may be applicable.
|
|
27
|
+
*/
|
|
28
|
+
hasMerchantReturnPolicy?: IHasMerchantReturnPolicy;
|
|
25
29
|
name: IMultilingualString;
|
|
26
30
|
/**
|
|
27
31
|
* A pointer to products or services offered by the organization or person.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IAttributes as IReturnOrderActionAttributes } from '../action/transfer/return/order';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import { IMerchantReturnPolicy } from '../merchantReturnPolicy';
|
|
4
3
|
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;
|
|
@@ -124,7 +124,7 @@ export interface IConfirmParams {
|
|
|
124
124
|
export interface IObject {
|
|
125
125
|
order: IReturnableOrder[];
|
|
126
126
|
reason: Reason;
|
|
127
|
-
returnPolicy:
|
|
127
|
+
returnPolicy: ISellerMerchantReturnPolicy;
|
|
128
128
|
}
|
|
129
129
|
export interface IPotentialActions {
|
|
130
130
|
/**
|