@chevre/factory 4.182.0-alpha.3 → 4.183.0-alpha.2
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/CHANGELOG.md +17 -6
- package/lib/factory/action/trade/order.d.ts +0 -3
- package/lib/factory/action/transfer/return/order.d.ts +0 -3
- package/lib/factory/action/transfer/return/paymentMethod.d.ts +0 -3
- package/lib/factory/action/transfer/send/order.d.ts +0 -3
- package/lib/factory/merchantReturnPolicy.d.ts +8 -0
- package/lib/factory/merchantReturnPolicy.js +2 -0
- package/lib/factory/project.d.ts +0 -7
- package/lib/factory/transaction/placeOrder.d.ts +0 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,14 +8,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|
|
8
8
|
|
|
9
9
|
### Added
|
|
10
10
|
|
|
11
|
-
- 注文削除タスクを追加
|
|
12
|
-
- 取引削除タスクを追加
|
|
13
|
-
|
|
14
11
|
### Changed
|
|
15
12
|
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
13
|
+
- 返品ポリシーを拡張
|
|
14
|
+
- プロジェクトの返品手数料設定を廃止
|
|
15
|
+
- プロジェクトの顧客ユーザープール設定を廃止
|
|
16
|
+
- 注文取引確定パラメータを最適化
|
|
19
17
|
|
|
20
18
|
### Deprecated
|
|
21
19
|
|
|
@@ -25,6 +23,19 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|
|
25
23
|
|
|
26
24
|
### Security
|
|
27
25
|
|
|
26
|
+
## v4.182.0 - 2022-01-12
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- 注文削除タスクを追加
|
|
31
|
+
- 取引削除タスクを追加
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
|
|
35
|
+
- 返金後注文通知を廃止
|
|
36
|
+
- 取引のonOrderStatusChanged属性を廃止
|
|
37
|
+
- 注文ステータス変更後の注文通知アクションを廃止
|
|
38
|
+
|
|
28
39
|
## v4.181.0 - 2021-12-27
|
|
29
40
|
|
|
30
41
|
### Changed
|
|
@@ -6,9 +6,6 @@ export declare type IRecipient = ActionFactory.IParticipant;
|
|
|
6
6
|
export declare type IObject = OrderFactory.IPaymentMethod;
|
|
7
7
|
export declare type IResult = any;
|
|
8
8
|
export interface IPotentialActions {
|
|
9
|
-
/**
|
|
10
|
-
* 注文通知アクション
|
|
11
|
-
*/
|
|
12
9
|
/**
|
|
13
10
|
* 返金処理完了を通知するEメール送信アクション
|
|
14
11
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IMonetaryAmount } from './monetaryAmount';
|
|
1
2
|
import { IThing } from './thing';
|
|
2
3
|
export declare enum RefundTypeEnumeration {
|
|
3
4
|
ExchangeRefund = "ExchangeRefund",
|
|
@@ -5,8 +6,10 @@ export declare enum RefundTypeEnumeration {
|
|
|
5
6
|
StoreCreditRefund = "StoreCreditRefund"
|
|
6
7
|
}
|
|
7
8
|
export declare enum ReturnFeesEnumeration {
|
|
9
|
+
FreeReturn = "FreeReturn",
|
|
8
10
|
OriginalShippingFees = "OriginalShippingFees",
|
|
9
11
|
RestockingFees = "RestockingFees",
|
|
12
|
+
ReturnFeesCustomerResponsibility = "ReturnFeesCustomerResponsibility",
|
|
10
13
|
ReturnShippingFees = "ReturnShippingFees"
|
|
11
14
|
}
|
|
12
15
|
/**
|
|
@@ -50,6 +53,11 @@ export interface IMerchantReturnPolicy extends IThing {
|
|
|
50
53
|
* A refundType, from an enumerated list.
|
|
51
54
|
*/
|
|
52
55
|
refundType?: RefundTypeEnumeration;
|
|
56
|
+
/**
|
|
57
|
+
* Use MonetaryAmount to specify a fixed restocking fee for product returns,
|
|
58
|
+
* or use Number to specify a percentage of the product price paid by the customer.
|
|
59
|
+
*/
|
|
60
|
+
restockingFee?: IMonetaryAmount | number;
|
|
53
61
|
/**
|
|
54
62
|
* Indicates (via enumerated options) the return fees policy for a MerchantReturnPolicy
|
|
55
63
|
*/
|
|
@@ -9,8 +9,10 @@ var RefundTypeEnumeration;
|
|
|
9
9
|
})(RefundTypeEnumeration = exports.RefundTypeEnumeration || (exports.RefundTypeEnumeration = {}));
|
|
10
10
|
var ReturnFeesEnumeration;
|
|
11
11
|
(function (ReturnFeesEnumeration) {
|
|
12
|
+
ReturnFeesEnumeration["FreeReturn"] = "FreeReturn";
|
|
12
13
|
ReturnFeesEnumeration["OriginalShippingFees"] = "OriginalShippingFees";
|
|
13
14
|
ReturnFeesEnumeration["RestockingFees"] = "RestockingFees";
|
|
15
|
+
ReturnFeesEnumeration["ReturnFeesCustomerResponsibility"] = "ReturnFeesCustomerResponsibility";
|
|
14
16
|
ReturnFeesEnumeration["ReturnShippingFees"] = "ReturnShippingFees";
|
|
15
17
|
})(ReturnFeesEnumeration = exports.ReturnFeesEnumeration || (exports.ReturnFeesEnumeration = {}));
|
|
16
18
|
/**
|
package/lib/factory/project.d.ts
CHANGED
|
@@ -25,12 +25,6 @@ export interface IOnReservationUsed {
|
|
|
25
25
|
informAction?: IInformParams[];
|
|
26
26
|
}
|
|
27
27
|
export interface ICognitoSettings {
|
|
28
|
-
/**
|
|
29
|
-
* 顧客ユーザープール
|
|
30
|
-
*/
|
|
31
|
-
customerUserPool: {
|
|
32
|
-
id: string;
|
|
33
|
-
};
|
|
34
28
|
}
|
|
35
29
|
/**
|
|
36
30
|
* 注文ステータス変更時イベントインターフェース
|
|
@@ -58,7 +52,6 @@ export interface ISettings {
|
|
|
58
52
|
cognito?: ICognitoSettings;
|
|
59
53
|
onOrderStatusChanged?: IOnOrderStatusChanged;
|
|
60
54
|
webhook?: IWebhookSettings;
|
|
61
|
-
returnFee?: number;
|
|
62
55
|
sendgridApiKey?: string;
|
|
63
56
|
transactionWebhookUrls?: string[];
|
|
64
57
|
useMyCreditCards?: boolean;
|
|
@@ -70,9 +70,6 @@ export interface IObject {
|
|
|
70
70
|
* 承認アクションリスト
|
|
71
71
|
*/
|
|
72
72
|
authorizeActions: IAuthorizeAction<IAuthorizeActionAttributes<any, any>>[];
|
|
73
|
-
/**
|
|
74
|
-
* 注文ステータス変更時イベント
|
|
75
|
-
*/
|
|
76
73
|
potentialActions?: {
|
|
77
74
|
givePointAward?: IGivePointAwardParams[];
|
|
78
75
|
};
|
|
@@ -88,9 +85,6 @@ export interface IStartParamsWithoutDetail {
|
|
|
88
85
|
clientUser?: IClientUser;
|
|
89
86
|
customer?: OrderFactory.ICustomer;
|
|
90
87
|
passport?: TransactionFactory.IPassportBeforeStart;
|
|
91
|
-
/**
|
|
92
|
-
* 注文ステータス変更時イベント
|
|
93
|
-
*/
|
|
94
88
|
/**
|
|
95
89
|
* 注文名称
|
|
96
90
|
*/
|
|
@@ -132,10 +126,8 @@ export interface IGivePointAwardParams {
|
|
|
132
126
|
export interface IPotentialActionsParams {
|
|
133
127
|
order?: {
|
|
134
128
|
potentialActions?: {
|
|
135
|
-
givePointAward?: IGivePointAwardParams[];
|
|
136
129
|
sendOrder?: {
|
|
137
130
|
potentialActions?: {
|
|
138
|
-
confirmReservation?: IConfirmReservationParams[];
|
|
139
131
|
sendEmailMessage?: ISendEmailMessageParams[];
|
|
140
132
|
};
|
|
141
133
|
};
|