@chevre/factory 4.313.0-alpha.5 → 4.313.0-alpha.7

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.
@@ -44,16 +44,18 @@ export declare enum MerchantReturnEnumeration {
44
44
  }
45
45
  export declare type IRestockingFee = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
46
46
  export declare type IItemCondition = Pick<IOfferItemCondition, 'typeOf' | 'id'>;
47
+ export declare type ICustomerRemorseReturnFees = ReturnFeesEnumeration;
48
+ export declare type ICustomerRemorseReturnFeesMovieTicket = ReturnFeesEnumeration.FreeReturn | ReturnFeesEnumeration.ReturnFeesCustomerResponsibility;
47
49
  export interface IMerchantReturnPolicy extends Pick<IThing, 'name' | 'url'> {
48
50
  typeOf: 'MerchantReturnPolicy';
49
51
  /**
50
52
  * The type of return fees if the product is returned due to customer remorse.
51
53
  */
52
- customerRemorseReturnFees?: ReturnFeesEnumeration;
54
+ customerRemorseReturnFees?: ICustomerRemorseReturnFees;
53
55
  /**
54
56
  * 決済カード着券取消仕様
55
57
  */
56
- customerRemorseReturnFeesMovieTicket?: ReturnFeesEnumeration;
58
+ customerRemorseReturnFeesMovieTicket?: ICustomerRemorseReturnFeesMovieTicket;
57
59
  /**
58
60
  * Are in-store returns offered?
59
61
  */
@@ -76,7 +78,7 @@ export interface IMerchantReturnPolicy extends Pick<IThing, 'name' | 'url'> {
76
78
  * Use MonetaryAmount to specify a fixed restocking fee for product returns,
77
79
  * or use Number to specify a percentage of the product price paid by the customer.
78
80
  */
79
- restockingFee?: IRestockingFee | number;
81
+ restockingFee?: IRestockingFee;
80
82
  /**
81
83
  * Indicates (via enumerated options) the return fees policy for a MerchantReturnPolicy
82
84
  */
package/lib/seller.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IMerchantReturnPolicy } from './merchantReturnPolicy';
1
+ import { IMerchantReturnPolicy, IRestockingFee } from './merchantReturnPolicy';
2
2
  import { IMultilingualString } from './multilingualString';
3
3
  import { IOffer } from './offer';
4
4
  import { IOrganization } from './organization';
@@ -8,7 +8,9 @@ import { IPropertyValue } from './propertyValue';
8
8
  import { IQuantitativeValue } from './quantitativeValue';
9
9
  import { SortType } from './sortType';
10
10
  import { UnitCode } from './unitCode';
11
- export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'itemCondition' | 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'url'>;
11
+ export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'itemCondition' | 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'url'> & {
12
+ restockingFee: IRestockingFee;
13
+ };
12
14
  export declare type IHasMerchantReturnPolicy = ISellerMerchantReturnPolicy[];
13
15
  /**
14
16
  * 利用可能決済
@@ -1,6 +1,6 @@
1
1
  import { IAttributes as IReturnOrderActionAttributes } from '../action/transfer/return/order';
2
2
  import { IExtendId } from '../autoGenerated';
3
- import { IMerchantReturnPolicy, ReturnFeesEnumeration } from '../merchantReturnPolicy';
3
+ import { ICustomerRemorseReturnFeesMovieTicket, IMerchantReturnPolicy, ReturnFeesEnumeration } from '../merchantReturnPolicy';
4
4
  import { IProject } from '../project';
5
5
  import * as TransactionFactory from '../transaction';
6
6
  import { TransactionType } from '../transactionType';
@@ -127,7 +127,13 @@ export interface IReturnFeesMovieTicket {
127
127
  /**
128
128
  * 着券取消実行有無
129
129
  */
130
- returnFees: ReturnFeesEnumeration.FreeReturn | ReturnFeesEnumeration.ReturnFeesCustomerResponsibility;
130
+ returnFees: ICustomerRemorseReturnFeesMovieTicket;
131
+ serviceOutput: {
132
+ /**
133
+ * 決済方法区分
134
+ */
135
+ typeOf: string;
136
+ };
131
137
  }
132
138
  /**
133
139
  * 取引に適用される返品ポリシー
@@ -1,9 +1,11 @@
1
- import { IMerchantReturnPolicy } from '../merchantReturnPolicy';
1
+ import { ICustomerRemorseReturnFees, ICustomerRemorseReturnFeesMovieTicket, IMerchantReturnPolicy } from '../merchantReturnPolicy';
2
2
  import { IMultilingualString } from '../multilingualString';
3
3
  import { IProject } from '../project';
4
4
  import { IPropertyValue } from '../propertyValue';
5
5
  import { SortType } from '../sortType';
6
6
  export declare type IOfferMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'customerRemorseReturnFees' | 'customerRemorseReturnFeesMovieTicket'> & {
7
+ customerRemorseReturnFees: ICustomerRemorseReturnFees;
8
+ customerRemorseReturnFeesMovieTicket: ICustomerRemorseReturnFeesMovieTicket;
7
9
  project: Pick<IProject, 'id' | 'typeOf'>;
8
10
  additionalProperty?: IPropertyValue<string>[];
9
11
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.313.0-alpha.5",
3
+ "version": "4.313.0-alpha.7",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",