@chevre/factory 4.259.0-alpha.1 → 4.259.0-alpha.4
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/transfer/return/order.d.ts +11 -6
- package/lib/factory/offer/merchantReturnPolicy.d.ts +37 -0
- package/lib/factory/offer/merchantReturnPolicy.js +2 -0
- package/lib/factory/offer.d.ts +6 -28
- package/lib/factory/seller.d.ts +1 -1
- package/lib/factory/taskName.d.ts +0 -6
- package/lib/factory/taskName.js +0 -8
- package/lib/factory/transaction/returnOrder.d.ts +8 -2
- package/package.json +1 -1
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
2
|
import * as OrderFactory from '../../../order';
|
|
3
|
-
import
|
|
4
|
-
import { IAttributes as IRefundActionAttributes } from '../../transfer/return/paymentMethod';
|
|
5
|
-
import { IAttributes as IReturnReserveTransactionActionAttributes } from '../../transfer/return/reserveTransaction';
|
|
3
|
+
import { IAttributes as IReturnPaymentMethodActionAttributes } from '../../transfer/return/paymentMethod';
|
|
6
4
|
import * as ReturnActionFactory from '../return';
|
|
7
5
|
import { IAttributes as ISendEmailMessageActionAttributes } from '../send/message/email';
|
|
8
6
|
import * as ReturnMoneyTransferActionFactory from './moneyTransfer';
|
|
@@ -22,16 +20,23 @@ export declare type IResult = any;
|
|
|
22
20
|
export interface IPotentialActions {
|
|
23
21
|
/**
|
|
24
22
|
* 設定追加(2022-06-08~)
|
|
23
|
+
* 廃止(2022-08-10~)
|
|
25
24
|
*/
|
|
26
|
-
useConfirmRefund: boolean;
|
|
27
25
|
/**
|
|
28
26
|
* 予約取引返却アクション
|
|
27
|
+
* 廃止(2022-08-10~)
|
|
29
28
|
*/
|
|
30
|
-
cancelReservation?: IReturnReserveTransactionActionAttributes<WebAPIFactory.Identifier>[];
|
|
31
29
|
/**
|
|
32
30
|
* 返金アクション
|
|
31
|
+
* 廃止(2022-08-10~)
|
|
32
|
+
* @deprecated Use returnPaymentMethod
|
|
33
33
|
*/
|
|
34
|
-
refund:
|
|
34
|
+
refund: IReturnPaymentMethodActionAttributes[];
|
|
35
|
+
/**
|
|
36
|
+
* 決済返却アクション
|
|
37
|
+
* refundから移行(2022-08-10~)
|
|
38
|
+
*/
|
|
39
|
+
returnPaymentMethod: IReturnPaymentMethodActionAttributes[];
|
|
35
40
|
/**
|
|
36
41
|
* 入金返却アクション
|
|
37
42
|
*/
|
|
@@ -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 = 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
|
-
}
|
|
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
|
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
|
* 利用可能決済インターフェース
|
package/lib/factory/taskName.js
CHANGED
|
@@ -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
|
/**
|