@chevre/factory 4.256.0 → 4.259.0-alpha.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/factory/action/authorize/offer/product.d.ts +2 -1
- package/lib/factory/action/authorize/offer/seatReservation.d.ts +14 -1
- package/lib/factory/assetTransaction/reserve.d.ts +0 -7
- package/lib/factory/merchantReturnPolicy.d.ts +18 -3
- package/lib/factory/merchantReturnPolicy.js +11 -2
- package/lib/factory/offer.d.ts +31 -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[];
|
|
@@ -48,7 +48,20 @@ export interface IResult<T extends WebAPIFactory.Identifier> {
|
|
|
48
48
|
responseBody: IResponseBody<T>;
|
|
49
49
|
acceptedOffers?: IResultAcceptedOffer[];
|
|
50
50
|
}
|
|
51
|
-
export declare type
|
|
51
|
+
export declare type IAcceptedOfferPriceSpecification = ScreeningEventFactory.ITicketPriceSpecification & {
|
|
52
|
+
/**
|
|
53
|
+
* 複合価格仕様に、指定された適用決済カード情報を付加できるように
|
|
54
|
+
*/
|
|
55
|
+
appliesToMovieTicket?: ReserveTransactionFactory.IAcceptedAppliesToMovieTicket;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* 受け入れられたチケットオファー
|
|
59
|
+
*/
|
|
60
|
+
export declare type IAcceptedOffer4chevre = Pick<ScreeningEventFactory.ITicketOffer, 'id' | 'identifier' | 'typeOf' | 'priceCurrency' | 'itemOffered' | 'addOn' | 'additionalProperty'> & Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'addOn' | 'additionalProperty' | 'paymentMethod'> & {
|
|
61
|
+
itemOffered?: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
|
|
62
|
+
priceSpecification: IAcceptedOfferPriceSpecification;
|
|
63
|
+
movieTicketIdentifire?: string;
|
|
64
|
+
};
|
|
52
65
|
export declare type IAcceptedOfferWithoutDetail4chevre = ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail;
|
|
53
66
|
export declare type IObjectWithoutDetail4chevre = ReserveTransactionFactory.IObjectWithoutDetail;
|
|
54
67
|
export declare type IAcceptedOffer4COA = ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail & OfferFactory.seatReservation.IOfferWithDetails;
|
|
@@ -3,7 +3,6 @@ import { ActionType } from '../actionType';
|
|
|
3
3
|
import * as AssetTransactionFactory from '../assetTransaction';
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
|
-
import { ITicketOffer } from '../event/screeningEvent';
|
|
7
6
|
import { IMovieTicket } from '../paymentMethod/paymentCard/movieTicket';
|
|
8
7
|
import { IPointAward } from '../product';
|
|
9
8
|
import { IPropertyValue } from '../propertyValue';
|
|
@@ -152,9 +151,6 @@ export interface IAcceptedTicketOfferWithoutDetail {
|
|
|
152
151
|
/**
|
|
153
152
|
* 受け入れられたチケットオファー
|
|
154
153
|
*/
|
|
155
|
-
export declare type IAcceptedTicketOffer = Omit<IAcceptedTicketOfferWithoutDetail, 'priceSpecification'> & ITicketOffer & {
|
|
156
|
-
itemOffered?: IAcceptedTicketOfferItemOffered;
|
|
157
|
-
};
|
|
158
154
|
export interface IAcceptedOffer4object {
|
|
159
155
|
id: string;
|
|
160
156
|
itemOffered: IAcceptedTicketOfferItemOffered4object;
|
|
@@ -168,9 +164,6 @@ export interface IAcceptedOffer4object {
|
|
|
168
164
|
*/
|
|
169
165
|
export interface IConfirmingReservation {
|
|
170
166
|
id: string;
|
|
171
|
-
/**
|
|
172
|
-
* Any additional text to appear on a ticket, such as additional privileges or identifiers.
|
|
173
|
-
*/
|
|
174
167
|
reservedTicket?: {
|
|
175
168
|
/**
|
|
176
169
|
* チケット発行者
|
|
@@ -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 = 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
|
+
}
|
|
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
|
*/
|
|
@@ -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
|
/**
|