@chevre/factory 4.394.0-alpha.3 → 4.394.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,6 +1,6 @@
1
1
  import * as ActionFactory from '../../../action';
2
2
  import { ICustomerRemorseReturnFeesMovieTicket, IMerchantReturnPolicy, ReturnFeesEnumeration } from '../../../merchantReturnPolicy';
3
- import { IOfferItemCondition } from '../../../offerItemCondition';
3
+ import { IOfferItemCondition, OfferItemCondition } from '../../../offerItemCondition';
4
4
  import * as OrderFactory from '../../../order';
5
5
  import { IAttributes as IReturnInvoiceActionAttributes } from '../../transfer/return/invoice';
6
6
  import * as ReturnActionFactory from '../return';
@@ -53,7 +53,7 @@ export interface IReturnFeesMovieTicket {
53
53
  typeOf: string;
54
54
  };
55
55
  }
56
- export type IReturnPolicyItemCondition = Pick<IOfferItemCondition, 'id' | 'identifier' | 'itemOffered' | 'typeOf'>;
56
+ export type IReturnPolicyItemConditionAsObject = Pick<IOfferItemCondition, 'id' | 'identifier' | 'itemOffered' | 'typeOf'>;
57
57
  /**
58
58
  * 返品取引に適用される返品ポリシー
59
59
  * 販売者の返品ポリシー、あるいは、プロジェクトの返品ポリシーから選択される
@@ -64,13 +64,19 @@ export type IReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantRetu
64
64
  * 決済カードコードごとの着券取消実行有無
65
65
  */
66
66
  returnFeesMovieTicket?: IReturnFeesMovieTicket[];
67
- itemCondition?: IReturnPolicyItemCondition;
67
+ /**
68
+ * extend string(2025-05-18~)
69
+ */
70
+ itemCondition?: IReturnPolicyItemConditionAsObject | OfferItemCondition;
68
71
  /**
69
72
  * ポリシー識別子
70
73
  * プロジェクト自動生成、あるいは、販売者返品ポリシーコード
71
74
  */
72
75
  identifier?: string;
73
76
  };
77
+ /**
78
+ * 返品取引開始時に採用された返品ポリシー
79
+ */
74
80
  export type IReturnPolicyAsInstrument = Pick<IReturnPolicy, 'identifier' | 'restockingFee' | 'returnFees' | 'typeOf'>;
75
81
  export type IInstrument = [IReturnPolicyAsInstrument];
76
82
  export interface IAttributes extends Pick<ReturnActionFactory.IAttributes<IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'recipient' | 'project' | 'potentialActions' | 'object' | 'error' | 'agent' | 'instrument'> {
@@ -63,3 +63,10 @@ export interface ISearchConditions {
63
63
  $in?: string[];
64
64
  };
65
65
  }
66
+ /**
67
+ * stringとしてのアイテムコンディション定義
68
+ * プロジェクトのカスタム返品ポリシー利用時に使用される
69
+ */
70
+ export declare enum OfferItemCondition {
71
+ NewCondition = "NewCondition"
72
+ }
@@ -1,2 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OfferItemCondition = void 0;
4
+ /**
5
+ * stringとしてのアイテムコンディション定義
6
+ * プロジェクトのカスタム返品ポリシー利用時に使用される
7
+ */
8
+ var OfferItemCondition;
9
+ (function (OfferItemCondition) {
10
+ OfferItemCondition["NewCondition"] = "NewCondition";
11
+ })(OfferItemCondition = exports.OfferItemCondition || (exports.OfferItemCondition = {}));
package/lib/project.d.ts CHANGED
@@ -53,6 +53,10 @@ export interface ISubscription {
53
53
  * プロダクトの複数カタログ管理を利用するかどうか
54
54
  */
55
55
  useMultipleProductCatalogs?: boolean;
56
+ /**
57
+ * メンバープログラムティア対応のイベントオファー使用有無
58
+ */
59
+ useEventOfferValidForMemberTier?: boolean;
56
60
  }
57
61
  export type IHasMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'sameAs' | 'typeOf'> & {
58
62
  /**
@@ -122,6 +122,9 @@ export interface IConfirmParams {
122
122
  export interface IObject {
123
123
  order: IReturnableOrder[];
124
124
  reason: Reason;
125
+ /**
126
+ * 返品取引開始時に採用された返品ポリシー
127
+ */
125
128
  returnPolicy: IReturnPolicy;
126
129
  usedReservationExists?: boolean;
127
130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.394.0-alpha.3",
3
+ "version": "4.394.0-alpha.5",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",