@chevre/factory 4.255.0 → 4.258.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 +28 -19
- package/lib/factory/merchantReturnPolicy.d.ts +10 -3
- package/lib/factory/merchantReturnPolicy.js +11 -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';
|
|
@@ -100,6 +99,32 @@ export interface IAcceptedAddOn {
|
|
|
100
99
|
id?: string;
|
|
101
100
|
}
|
|
102
101
|
export declare type IAcceptedPaymentMethod = IMovieTicket;
|
|
102
|
+
export interface ISingleAcceptedAppliesToMovieTicket {
|
|
103
|
+
/**
|
|
104
|
+
* 適用決済カード識別子
|
|
105
|
+
*/
|
|
106
|
+
identifier?: string;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* 複数承認適用決済カード
|
|
110
|
+
* 複数指定の場合、カード識別子と決済方法区分の組み合わせで指定します
|
|
111
|
+
*/
|
|
112
|
+
export declare type IMultipleAcceptedAppliesToMovieTicket = {
|
|
113
|
+
/**
|
|
114
|
+
* 適用決済カード識別子
|
|
115
|
+
*/
|
|
116
|
+
identifier?: string;
|
|
117
|
+
serviceOutput?: {
|
|
118
|
+
/**
|
|
119
|
+
* 決済方法区分
|
|
120
|
+
*/
|
|
121
|
+
typeOf?: string;
|
|
122
|
+
};
|
|
123
|
+
}[];
|
|
124
|
+
/**
|
|
125
|
+
* 承認適用決済カード
|
|
126
|
+
*/
|
|
127
|
+
export declare type IAcceptedAppliesToMovieTicket = ISingleAcceptedAppliesToMovieTicket | IMultipleAcceptedAppliesToMovieTicket;
|
|
103
128
|
/**
|
|
104
129
|
* 受け入れられたチケットオファー(詳細なし)
|
|
105
130
|
*/
|
|
@@ -120,30 +145,17 @@ export interface IAcceptedTicketOfferWithoutDetail {
|
|
|
120
145
|
paymentMethod?: IAcceptedPaymentMethod;
|
|
121
146
|
additionalProperty?: IPropertyValue<string>[];
|
|
122
147
|
priceSpecification?: {
|
|
123
|
-
appliesToMovieTicket?:
|
|
124
|
-
/**
|
|
125
|
-
* 適用MovieTicket購入番号
|
|
126
|
-
*/
|
|
127
|
-
identifier?: string;
|
|
128
|
-
};
|
|
148
|
+
appliesToMovieTicket?: IAcceptedAppliesToMovieTicket;
|
|
129
149
|
};
|
|
130
150
|
}
|
|
131
151
|
/**
|
|
132
152
|
* 受け入れられたチケットオファー
|
|
133
153
|
*/
|
|
134
|
-
export declare type IAcceptedTicketOffer = Omit<IAcceptedTicketOfferWithoutDetail, 'priceSpecification'> & ITicketOffer & {
|
|
135
|
-
itemOffered?: IAcceptedTicketOfferItemOffered;
|
|
136
|
-
};
|
|
137
154
|
export interface IAcceptedOffer4object {
|
|
138
155
|
id: string;
|
|
139
156
|
itemOffered: IAcceptedTicketOfferItemOffered4object;
|
|
140
157
|
priceSpecification?: {
|
|
141
|
-
appliesToMovieTicket?:
|
|
142
|
-
/**
|
|
143
|
-
* 適用MovieTicket購入番号
|
|
144
|
-
*/
|
|
145
|
-
identifier?: string;
|
|
146
|
-
};
|
|
158
|
+
appliesToMovieTicket?: IAcceptedAppliesToMovieTicket;
|
|
147
159
|
};
|
|
148
160
|
}
|
|
149
161
|
/**
|
|
@@ -152,9 +164,6 @@ export interface IAcceptedOffer4object {
|
|
|
152
164
|
*/
|
|
153
165
|
export interface IConfirmingReservation {
|
|
154
166
|
id: string;
|
|
155
|
-
/**
|
|
156
|
-
* Any additional text to appear on a ticket, such as additional privileges or identifiers.
|
|
157
|
-
*/
|
|
158
167
|
reservedTicket?: {
|
|
159
168
|
/**
|
|
160
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
|
* 返品ポリシーインターフェース
|
|
@@ -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
|
* 返品ポリシーインターフェース
|
|
@@ -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
|
/**
|