@chevre/factory 4.259.0-alpha.1 → 4.259.0-alpha.4

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
  */
@@ -0,0 +1,37 @@
1
+ import { IMerchantReturnPolicy } from '../merchantReturnPolicy';
2
+ import { IMultilingualString } from '../multilingualString';
3
+ import { IProject } from '../project';
4
+ import { IPropertyValue } from '../propertyValue';
5
+ import { SortType } from '../sortType';
6
+ export declare type IOfferMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'customerRemorseReturnFees' | 'customerRemorseReturnFeesMovieTicket'> & {
7
+ project: Pick<IProject, 'id' | 'typeOf'>;
8
+ additionalProperty?: IPropertyValue<string>[];
9
+ id?: string;
10
+ identifier: string;
11
+ name?: IMultilingualString;
12
+ };
13
+ export interface IOfferMerchantReturnPolicySortOrder {
14
+ identifier?: SortType;
15
+ }
16
+ export interface IOfferMerchantReturnPolicySearchConditions {
17
+ limit?: number;
18
+ page?: number;
19
+ sort?: IOfferMerchantReturnPolicySortOrder;
20
+ project?: {
21
+ id?: {
22
+ $eq?: string;
23
+ };
24
+ };
25
+ id?: {
26
+ $eq?: string;
27
+ $in?: string[];
28
+ };
29
+ identifier?: {
30
+ $eq?: string;
31
+ $in?: string[];
32
+ $regex?: string;
33
+ };
34
+ name?: {
35
+ $regex?: string;
36
+ };
37
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,7 @@
1
1
  import { ActionType } from './actionType';
2
2
  import { ICategoryCode } from './categoryCode';
3
3
  import { ItemAvailability } from './itemAvailability';
4
- import { IMerchantReturnPolicy } from './merchantReturnPolicy';
5
4
  import { IMonetaryAmount } from './monetaryAmount';
6
- import { IMultilingualString } from './multilingualString';
7
- import * as SeatReservationOfferFactory from './offer/seatReservation';
8
5
  import { OfferType } from './offerType';
9
6
  import { PriceCurrency } from './priceCurrency';
10
7
  import { IPriceSpecification } from './priceSpecification';
@@ -21,6 +18,8 @@ import * as WebAPIFactory from './service/webAPI';
21
18
  import { SortType } from './sortType';
22
19
  import { IThing } from './thing';
23
20
  import { UnitCode } from './unitCode';
21
+ import { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder } from './offer/merchantReturnPolicy';
22
+ import * as SeatReservationOfferFactory from './offer/seatReservation';
24
23
  /**
25
24
  * オファーカテゴリーインターフェース
26
25
  */
@@ -67,32 +66,11 @@ export interface IValidRateLimit {
67
66
  scope: string;
68
67
  unitInSeconds: number;
69
68
  }
70
- export declare type IOfferMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'customerRemorseReturnFees' | 'customerRemorseReturnFeesMovieTicket'> & {
71
- project: Pick<IProject, 'id' | 'typeOf'>;
72
- additionalProperty?: IPropertyValue<string>[];
73
- id?: string;
69
+ export declare type IHasMerchantReturnPolicy = (Pick<IOfferMerchantReturnPolicy, 'typeOf' | 'id' | 'identifier' | 'name'> & {
70
+ id: string;
74
71
  identifier: string;
75
- name?: IMultilingualString;
76
- };
77
- export declare type IHasMerchantReturnPolicy = Pick<IOfferMerchantReturnPolicy, 'typeOf' | 'id' | 'identifier' | 'name'>[];
78
- export interface IOfferMerchantReturnPolicySearchConditions {
79
- limit?: number;
80
- page?: number;
81
- sort?: any;
82
- project?: {
83
- id?: {
84
- $eq?: string;
85
- };
86
- };
87
- id?: {
88
- $eq?: string;
89
- $in?: string[];
90
- };
91
- identifier?: {
92
- $eq?: string;
93
- $in?: string[];
94
- };
95
- }
72
+ })[];
73
+ export { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder };
96
74
  /**
97
75
  * offer interface
98
76
  * An offer to transfer some rights to an item or to provide a service
@@ -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,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.1",
3
+ "version": "4.259.0-alpha.4",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",