@chevre/factory 4.257.0 → 4.258.0

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.
@@ -13,6 +13,7 @@ export declare type IAgent = ActionFactory.IParticipantAsSeller;
13
13
  export declare type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
14
14
  export declare type IService = IProduct;
15
15
  export declare type IAcceptedOfferWithoutDetail = RegisterServiceTransactionFactory.IAcceptedOfferWithoutDetail;
16
+ export declare type ISellerMakesOffer = Pick<ISeller, 'project' | 'id' | 'name' | 'typeOf'>;
16
17
  export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'price' | 'availability' | 'availableAtOrFrom'> {
17
18
  /**
18
19
  * オファー対象アイテム
@@ -21,7 +22,7 @@ export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'price' | 'availa
21
22
  /**
22
23
  * 販売者
23
24
  */
24
- seller: ISeller;
25
+ seller: ISellerMakesOffer;
25
26
  priceSpecification?: ITicketPriceSpecification;
26
27
  }
27
28
  export declare type IObjectWithoutDetail = IAcceptedOfferWithoutDetail[];
@@ -6,11 +6,18 @@ export declare enum RefundTypeEnumeration {
6
6
  StoreCreditRefund = "StoreCreditRefund"
7
7
  }
8
8
  export declare enum ReturnFeesEnumeration {
9
+ /**
10
+ * Specifies that product returns are free of charge for the customer.
11
+ */
9
12
  FreeReturn = "FreeReturn",
10
- OriginalShippingFees = "OriginalShippingFees",
13
+ /**
14
+ * Specifies that the customer must pay a restocking fee when returning a product
15
+ */
11
16
  RestockingFees = "RestockingFees",
12
- ReturnFeesCustomerResponsibility = "ReturnFeesCustomerResponsibility",
13
- ReturnShippingFees = "ReturnShippingFees"
17
+ /**
18
+ * Specifies that product returns must be paid for, and are the responsibility of, the customer.
19
+ */
20
+ ReturnFeesCustomerResponsibility = "ReturnFeesCustomerResponsibility"
14
21
  }
15
22
  /**
16
23
  * 返品ポリシーインターフェース
@@ -9,11 +9,20 @@ var RefundTypeEnumeration;
9
9
  })(RefundTypeEnumeration = exports.RefundTypeEnumeration || (exports.RefundTypeEnumeration = {}));
10
10
  var ReturnFeesEnumeration;
11
11
  (function (ReturnFeesEnumeration) {
12
+ /**
13
+ * Specifies that product returns are free of charge for the customer.
14
+ */
12
15
  ReturnFeesEnumeration["FreeReturn"] = "FreeReturn";
13
- ReturnFeesEnumeration["OriginalShippingFees"] = "OriginalShippingFees";
16
+ // OriginalShippingFees = 'OriginalShippingFees',
17
+ /**
18
+ * Specifies that the customer must pay a restocking fee when returning a product
19
+ */
14
20
  ReturnFeesEnumeration["RestockingFees"] = "RestockingFees";
21
+ /**
22
+ * Specifies that product returns must be paid for, and are the responsibility of, the customer.
23
+ */
15
24
  ReturnFeesEnumeration["ReturnFeesCustomerResponsibility"] = "ReturnFeesCustomerResponsibility";
16
- ReturnFeesEnumeration["ReturnShippingFees"] = "ReturnShippingFees";
25
+ // ReturnShippingFees = 'ReturnShippingFees'
17
26
  })(ReturnFeesEnumeration = exports.ReturnFeesEnumeration || (exports.ReturnFeesEnumeration = {}));
18
27
  /**
19
28
  * 返品ポリシーインターフェース
@@ -1,9 +1,7 @@
1
- import { IMerchantReturnPolicy } from './merchantReturnPolicy';
2
1
  import { IMultilingualString } from './multilingualString';
3
2
  import { IPlace } from './place';
4
3
  import { IPropertyValue } from './propertyValue';
5
4
  import { IThing } from './thing';
6
- export declare type IHasMerchantReturnPolicy = IMerchantReturnPolicy[];
7
5
  export declare type ILocation = IPlace;
8
6
  export declare type IParentOrganization = IOrganization;
9
7
  /**
@@ -13,10 +11,6 @@ export interface IOrganization extends IThing {
13
11
  typeOf: string;
14
12
  id?: string;
15
13
  email?: string;
16
- /**
17
- * Indicates a MerchantReturnPolicy that may be applicable.
18
- */
19
- hasMerchantReturnPolicy?: IHasMerchantReturnPolicy;
20
14
  legalName?: IMultilingualString;
21
15
  location?: ILocation;
22
16
  logo?: string;
@@ -1,9 +1,12 @@
1
+ import { IMerchantReturnPolicy } from './merchantReturnPolicy';
1
2
  import { IMultilingualString } from './multilingualString';
2
3
  import { IOrganization } from './organization';
3
4
  import { OrganizationType } from './organizationType';
4
5
  import { IProject } from './project';
5
6
  import { IPropertyValue } from './propertyValue';
6
7
  import { SortType } from './sortType';
8
+ export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'returnFees'>;
9
+ export declare type IHasMerchantReturnPolicy = ISellerMerchantReturnPolicy[];
7
10
  /**
8
11
  * 利用可能決済インターフェース
9
12
  */
@@ -13,15 +16,16 @@ export interface IPaymentAccepted {
13
16
  */
14
17
  paymentMethodType: string;
15
18
  }
16
- /**
17
- * サービス提供エリアインターフェース
18
- */
19
- export interface ISeller extends IOrganization {
19
+ export interface ISeller extends Pick<IOrganization, 'typeOf' | 'id' | 'location' | 'telephone' | 'additionalProperty' | 'name' | 'url'> {
20
20
  project: IProject;
21
21
  /**
22
22
  * The geographic area where a service or offered item is provided.
23
23
  */
24
- branchCode?: string;
24
+ branchCode: string;
25
+ /**
26
+ * Indicates a MerchantReturnPolicy that may be applicable.
27
+ */
28
+ hasMerchantReturnPolicy?: IHasMerchantReturnPolicy;
25
29
  name: IMultilingualString;
26
30
  /**
27
31
  * A pointer to products or services offered by the organization or person.
@@ -1,7 +1,7 @@
1
1
  import { IAttributes as IReturnOrderActionAttributes } from '../action/transfer/return/order';
2
2
  import { IExtendId } from '../autoGenerated';
3
- import { IMerchantReturnPolicy } from '../merchantReturnPolicy';
4
3
  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;
@@ -124,7 +124,7 @@ export interface IConfirmParams {
124
124
  export interface IObject {
125
125
  order: IReturnableOrder[];
126
126
  reason: Reason;
127
- returnPolicy: IMerchantReturnPolicy;
127
+ returnPolicy: ISellerMerchantReturnPolicy;
128
128
  }
129
129
  export interface IPotentialActions {
130
130
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.257.0",
3
+ "version": "4.258.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",