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

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.
@@ -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
  * 利用可能決済インターフェース
@@ -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: ISellerMerchantReturnPolicy;
133
+ returnPolicy: IReturnPolicy;
128
134
  }
129
135
  export interface IPotentialActions {
130
136
  /**
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.3",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",