@chevre/factory 4.259.0-alpha.2 → 4.259.0-alpha.5

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.
@@ -1,8 +1,6 @@
1
1
  import * as ActionFactory from '../../../action';
2
2
  import * as OrderFactory from '../../../order';
3
- import * as WebAPIFactory from '../../../service/webAPI';
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: IRefundActionAttributes[];
34
+ refund: IReturnPaymentMethodActionAttributes[];
35
+ /**
36
+ * 決済返却アクション
37
+ * refundから移行(2022-08-10~)
38
+ */
39
+ returnPaymentMethod: IReturnPaymentMethodActionAttributes[];
35
40
  /**
36
41
  * 入金返却アクション
37
42
  */
@@ -66,7 +66,10 @@ export interface IValidRateLimit {
66
66
  scope: string;
67
67
  unitInSeconds: number;
68
68
  }
69
- export declare type IHasMerchantReturnPolicy = Pick<IOfferMerchantReturnPolicy, 'typeOf' | 'id' | 'identifier' | 'name'>[];
69
+ export declare type IHasMerchantReturnPolicy = (Pick<IOfferMerchantReturnPolicy, 'typeOf' | 'id' | 'identifier' | 'name'> & {
70
+ id: string;
71
+ identifier: string;
72
+ })[];
70
73
  export { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder };
71
74
  /**
72
75
  * offer interface
@@ -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' | 'returnFees'>;
8
+ export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee'>;
9
9
  export declare type IHasMerchantReturnPolicy = ISellerMerchantReturnPolicy[];
10
10
  /**
11
11
  * 利用可能決済インターフェース
@@ -32,12 +32,6 @@ export declare enum TaskName {
32
32
  * 通貨転送
33
33
  */
34
34
  ConfirmMoneyTransfer = "confirmMoneyTransfer",
35
- /**
36
- * 決済
37
- */
38
- /**
39
- * 返金
40
- */
41
35
  /**
42
36
  * サービス登録
43
37
  */
@@ -36,14 +36,6 @@ var TaskName;
36
36
  * 通貨転送
37
37
  */
38
38
  TaskName["ConfirmMoneyTransfer"] = "confirmMoneyTransfer";
39
- /**
40
- * 決済
41
- */
42
- // ConfirmPay = 'confirmPay',
43
- /**
44
- * 返金
45
- */
46
- // ConfirmRefund = 'confirmRefund',
47
39
  /**
48
40
  * サービス登録
49
41
  */
@@ -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,33 @@ export interface IConfirmParams {
118
118
  */
119
119
  potentialActions?: IPotentialActionsParams;
120
120
  }
121
+ export interface IReturnFeesMovieTicket {
122
+ /**
123
+ * 決済カードコード
124
+ */
125
+ identifier: string;
126
+ /**
127
+ * 着券取消実行有無
128
+ */
129
+ returnFees: ReturnFeesEnumeration.FreeReturn | ReturnFeesEnumeration.ReturnFeesCustomerResponsibility;
130
+ }
131
+ /**
132
+ * 取引に適用される返品ポリシー
133
+ */
134
+ export declare type IReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'returnFees'> & {
135
+ returnFees: ReturnFeesEnumeration;
136
+ /**
137
+ * 決済カードコードごとの着券取消実行有無
138
+ */
139
+ returnFeesMovieTicket?: IReturnFeesMovieTicket[];
140
+ };
121
141
  /**
122
142
  * 取引対象物
123
143
  */
124
144
  export interface IObject {
125
145
  order: IReturnableOrder[];
126
146
  reason: Reason;
127
- returnPolicy: ISellerMerchantReturnPolicy;
147
+ returnPolicy: IReturnPolicy;
128
148
  }
129
149
  export interface IPotentialActions {
130
150
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.259.0-alpha.2",
3
+ "version": "4.259.0-alpha.5",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",