@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 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
- - 取引のonOrderStatusChanged属性を廃止
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
@@ -17,9 +17,6 @@ export interface IPotentialActions {
17
17
  * 現時点で複数口座にポイントを付与することはないが、可能性もこめてリストで持っておく
18
18
  */
19
19
  givePointAward?: IGivePointAwardActionAttributes[];
20
- /**
21
- * 注文通知アクション
22
- */
23
20
  /**
24
21
  * 決済アクションリスト
25
22
  */
@@ -18,9 +18,6 @@ export interface IPotentialActions {
18
18
  * 予約取消アクション
19
19
  */
20
20
  cancelReservation?: ICancelActionAttributes<any, any>[];
21
- /**
22
- * 注文通知アクション
23
- */
24
21
  /**
25
22
  * 返金アクション
26
23
  */
@@ -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
  */
@@ -19,9 +19,6 @@ export interface IPotentialActions {
19
19
  * 予約確定アクション
20
20
  */
21
21
  confirmReservation?: IConfirmReservationActionAttributes<WebAPIFactory.Identifier>[];
22
- /**
23
- * 注文通知アクション
24
- */
25
22
  /**
26
23
  * 通貨転送アクション
27
24
  */
@@ -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
  /**
@@ -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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.182.0-alpha.3",
3
+ "version": "4.183.0-alpha.2",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",