@chevre/factory 4.392.0-alpha.13 → 4.392.0-alpha.15

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,4 +1,6 @@
1
1
  import * as ActionFactory from '../../../action';
2
+ import { ICustomerRemorseReturnFeesMovieTicket, IMerchantReturnPolicy, ReturnFeesEnumeration } from '../../../merchantReturnPolicy';
3
+ import { IOfferItemCondition } from '../../../offerItemCondition';
2
4
  import * as OrderFactory from '../../../order';
3
5
  import { IAttributes as IReturnInvoiceActionAttributes } from '../../transfer/return/invoice';
4
6
  import * as ReturnActionFactory from '../return';
@@ -35,12 +37,48 @@ export interface IPotentialActions {
35
37
  */
36
38
  sendEmailMessage?: IPotentialSendEmailMessageAction[];
37
39
  }
38
- export interface IAttributes extends Pick<ReturnActionFactory.IAttributes<IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'recipient' | 'project' | 'potentialActions' | 'object' | 'error' | 'agent'> {
40
+ export interface IReturnFeesMovieTicket {
41
+ /**
42
+ * 決済カードコード
43
+ */
44
+ identifier: string;
45
+ /**
46
+ * 着券取消実行有無
47
+ */
48
+ returnFees: ICustomerRemorseReturnFeesMovieTicket;
49
+ serviceOutput: {
50
+ /**
51
+ * 決済方法区分
52
+ */
53
+ typeOf: string;
54
+ };
55
+ }
56
+ export type IReturnPolicyItemCondition = Pick<IOfferItemCondition, 'id' | 'identifier' | 'itemOffered' | 'typeOf'>;
57
+ /**
58
+ * 返品取引に適用される返品ポリシー
59
+ * 販売者の返品ポリシー、あるいは、プロジェクトの返品ポリシーから選択される
60
+ */
61
+ export type IReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'returnFees' | 'applicablePaymentMethod'> & {
62
+ returnFees: ReturnFeesEnumeration;
63
+ /**
64
+ * 決済カードコードごとの着券取消実行有無
65
+ */
66
+ returnFeesMovieTicket?: IReturnFeesMovieTicket[];
67
+ itemCondition?: IReturnPolicyItemCondition;
68
+ /**
69
+ * ポリシー識別子(プロジェクト自動生成)
70
+ */
71
+ identifier?: string;
72
+ };
73
+ export type IReturnPolicyAsInstrument = Pick<IReturnPolicy, 'identifier' | 'restockingFee' | 'returnFees' | 'typeOf'>;
74
+ export type IInstrument = [IReturnPolicyAsInstrument];
75
+ export interface IAttributes extends Pick<ReturnActionFactory.IAttributes<IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'recipient' | 'project' | 'potentialActions' | 'object' | 'error' | 'agent' | 'instrument'> {
39
76
  agent: IAgent;
40
77
  recipient: IRecipient;
41
78
  potentialActions?: IPotentialActions;
79
+ instrument: IInstrument;
42
80
  }
43
81
  /**
44
- * 返品アクション
82
+ * return order action
45
83
  */
46
84
  export type IAction = ReturnActionFactory.IAction<IAttributes>;
package/lib/seller.d.ts CHANGED
@@ -89,14 +89,9 @@ export interface ISearchConditions {
89
89
  $regex?: string;
90
90
  };
91
91
  hasMerchantReturnPolicy?: {
92
- applicablePaymentMethod?: {
92
+ identifier?: {
93
93
  $eq?: string;
94
94
  };
95
- itemCondition?: {
96
- id?: {
97
- $eq?: string;
98
- };
99
- };
100
95
  };
101
96
  id?: {
102
97
  $eq?: string;
@@ -38,4 +38,12 @@ export interface ISearchConditions {
38
38
  $eq?: number;
39
39
  };
40
40
  };
41
+ applicablePaymentMethod?: {
42
+ $eq?: string;
43
+ };
44
+ itemCondition?: {
45
+ id?: {
46
+ $eq?: string;
47
+ };
48
+ };
41
49
  }
@@ -1,7 +1,5 @@
1
- import { IAttributes as IReturnOrderActionAttributes } from '../action/transfer/return/order';
1
+ import { IAttributes as IReturnOrderActionAttributes, IReturnPolicy } from '../action/transfer/return/order';
2
2
  import { IExtendId } from '../autoGenerated';
3
- import { ICustomerRemorseReturnFeesMovieTicket, IMerchantReturnPolicy, ReturnFeesEnumeration } from '../merchantReturnPolicy';
4
- import { IOfferItemCondition } from '../offerItemCondition';
5
3
  import { IProject } from '../project';
6
4
  import * as TransactionFactory from '../transaction';
7
5
  import { TransactionType } from '../transactionType';
@@ -118,39 +116,6 @@ export interface IConfirmParams {
118
116
  */
119
117
  potentialActions?: IPotentialActionsParams;
120
118
  }
121
- export interface IReturnFeesMovieTicket {
122
- /**
123
- * 決済カードコード
124
- */
125
- identifier: string;
126
- /**
127
- * 着券取消実行有無
128
- */
129
- returnFees: ICustomerRemorseReturnFeesMovieTicket;
130
- serviceOutput: {
131
- /**
132
- * 決済方法区分
133
- */
134
- typeOf: string;
135
- };
136
- }
137
- export type IReturnPolicyItemCondition = Pick<IOfferItemCondition, 'id' | 'identifier' | 'itemOffered' | 'typeOf'>;
138
- /**
139
- * 取引に適用される返品ポリシー
140
- * 販売者の返品ポリシー、あるいは、プロジェクトの返品ポリシーから選択される
141
- */
142
- export type IReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'returnFees' | 'applicablePaymentMethod'> & {
143
- returnFees: ReturnFeesEnumeration;
144
- /**
145
- * 決済カードコードごとの着券取消実行有無
146
- */
147
- returnFeesMovieTicket?: IReturnFeesMovieTicket[];
148
- itemCondition?: IReturnPolicyItemCondition;
149
- /**
150
- * ポリシー識別子(プロジェクト自動生成)
151
- */
152
- identifier?: string;
153
- };
154
119
  /**
155
120
  * 取引対象物
156
121
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.392.0-alpha.13",
3
+ "version": "4.392.0-alpha.15",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",