@chevre/factory 4.313.0-alpha.1 → 4.313.0-alpha.11

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.
@@ -73,6 +73,10 @@ export interface IPaymentMethod {
73
73
  */
74
74
  creditCard?: ICreditCard;
75
75
  }
76
+ export interface IAccountsReceivableByServiceType {
77
+ serviceType: string;
78
+ accountsReceivable?: number;
79
+ }
76
80
  /**
77
81
  * 取引対象物
78
82
  */
@@ -92,6 +96,7 @@ export interface IObject {
92
96
  execTranResult?: IExecTranResult;
93
97
  payAction?: IPayAction;
94
98
  onPaymentStatusChanged?: IOnPaymentStatusChanged;
99
+ accountsReceivablesByServiceType?: IAccountsReceivableByServiceType[];
95
100
  }
96
101
  export declare type IObjectWithoutDetail = Pick<IObject, 'typeOf' | 'id' | 'paymentMethod'>;
97
102
  export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObjectWithoutDetail> & {
@@ -63,6 +63,7 @@ export interface ISearchConditions extends AssetTransactionFactory.ISearchCondit
63
63
  };
64
64
  paymentMethodId?: {
65
65
  $eq?: string;
66
+ $in?: string[];
66
67
  };
67
68
  };
68
69
  }
package/lib/index.d.ts CHANGED
@@ -70,6 +70,7 @@ import * as MonetaryAmountFactory from './monetaryAmount';
70
70
  import { IMultilingualString } from './multilingualString';
71
71
  import * as OfferFactory from './offer';
72
72
  import * as OfferCatalogFactory from './offerCatalog';
73
+ import * as OfferItemConditionFactory from './offerItemCondition';
73
74
  import { OfferType } from './offerType';
74
75
  import * as OrderFactory from './order';
75
76
  import { OrderStatus } from './orderStatus';
@@ -322,6 +323,7 @@ export import monetaryAmount = MonetaryAmountFactory;
322
323
  export declare type multilingualString = IMultilingualString;
323
324
  export import offer = OfferFactory;
324
325
  export import offerCatalog = OfferCatalogFactory;
326
+ export import offerItemCondition = OfferItemConditionFactory;
325
327
  export import offerType = OfferType;
326
328
  export import order = OrderFactory;
327
329
  export import orderStatus = OrderStatus;
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.qualitativeValue = exports.propertyValue = exports.project = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerCatalog = exports.offer = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.iam = exports.eventType = exports.eventStatusType = exports.encodingFormat = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.categoryCode = exports.authorization = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
4
- exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.quantitativeValue = void 0;
3
+ exports.propertyValue = exports.project = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.offer = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.iam = exports.eventType = exports.eventStatusType = exports.encodingFormat = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.categoryCode = exports.authorization = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
4
+ exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.quantitativeValue = exports.qualitativeValue = void 0;
5
5
  /**
6
6
  * factory
7
7
  */
@@ -67,6 +67,7 @@ var MerchantReturnPolicyFactory = require("./merchantReturnPolicy");
67
67
  var MonetaryAmountFactory = require("./monetaryAmount");
68
68
  var OfferFactory = require("./offer");
69
69
  var OfferCatalogFactory = require("./offerCatalog");
70
+ var OfferItemConditionFactory = require("./offerItemCondition");
70
71
  var offerType_1 = require("./offerType");
71
72
  var OrderFactory = require("./order");
72
73
  var orderStatus_1 = require("./orderStatus");
@@ -302,6 +303,7 @@ exports.merchantReturnPolicy = MerchantReturnPolicyFactory;
302
303
  exports.monetaryAmount = MonetaryAmountFactory;
303
304
  exports.offer = OfferFactory;
304
305
  exports.offerCatalog = OfferCatalogFactory;
306
+ exports.offerItemCondition = OfferItemConditionFactory;
305
307
  exports.offerType = offerType_1.OfferType;
306
308
  exports.order = OrderFactory;
307
309
  exports.orderStatus = orderStatus_1.OrderStatus;
package/lib/invoice.d.ts CHANGED
@@ -45,6 +45,7 @@ export interface IReservation {
45
45
  ticketToken?: string;
46
46
  };
47
47
  }
48
+ export declare type IAmountOfMovieTicketAsPaymentServiceOutput = Pick<IMonetaryAmount, 'typeOf' | 'value'>;
48
49
  export interface IMovieTicketAsPaymentServiceOutput {
49
50
  /**
50
51
  * 購入管理番号
@@ -54,6 +55,7 @@ export interface IMovieTicketAsPaymentServiceOutput {
54
55
  * 利用対象予約
55
56
  */
56
57
  serviceOutput?: IReservation;
58
+ amount?: IAmountOfMovieTicketAsPaymentServiceOutput;
57
59
  }
58
60
  export declare type IPaymentServiceOutput = IMovieTicketAsPaymentServiceOutput[];
59
61
  /**
@@ -66,7 +68,7 @@ export interface IPaymentMethod {
66
68
  }
67
69
  export declare type ITotalPaymentDue = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
68
70
  /**
69
- * インボイスインターフェース
71
+ * インボイス
70
72
  * {@link https://schema.org/Invoice}
71
73
  */
72
74
  export interface IInvoice {
@@ -1,4 +1,5 @@
1
1
  import { IMonetaryAmount } from './monetaryAmount';
2
+ import { IOfferItemCondition } from './offerItemCondition';
2
3
  import { IThing } from './thing';
3
4
  export declare enum RefundTypeEnumeration {
4
5
  ExchangeRefund = "ExchangeRefund",
@@ -42,20 +43,29 @@ export declare enum MerchantReturnEnumeration {
42
43
  MerchantReturnUnspecified = "MerchantReturnUnspecified"
43
44
  }
44
45
  export declare type IRestockingFee = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
46
+ export declare type IItemCondition = Pick<IOfferItemCondition, 'typeOf' | 'id'> & {
47
+ id: string;
48
+ name: {
49
+ ja: string;
50
+ };
51
+ };
52
+ export declare type ICustomerRemorseReturnFees = ReturnFeesEnumeration;
53
+ export declare type ICustomerRemorseReturnFeesMovieTicket = ReturnFeesEnumeration.FreeReturn | ReturnFeesEnumeration.ReturnFeesCustomerResponsibility;
45
54
  export interface IMerchantReturnPolicy extends Pick<IThing, 'name' | 'url'> {
46
55
  typeOf: 'MerchantReturnPolicy';
47
56
  /**
48
57
  * The type of return fees if the product is returned due to customer remorse.
49
58
  */
50
- customerRemorseReturnFees?: ReturnFeesEnumeration;
59
+ customerRemorseReturnFees?: ICustomerRemorseReturnFees;
51
60
  /**
52
61
  * 決済カード着券取消仕様
53
62
  */
54
- customerRemorseReturnFeesMovieTicket?: ReturnFeesEnumeration;
63
+ customerRemorseReturnFeesMovieTicket?: ICustomerRemorseReturnFeesMovieTicket;
55
64
  /**
56
65
  * Are in-store returns offered?
57
66
  */
58
67
  inStoreReturnsOffered?: boolean;
68
+ itemCondition?: IItemCondition;
59
69
  /**
60
70
  * The merchantReturnDays property indicates the number of days (from purchase)
61
71
  * within which relevant merchant return policy is applicable. Supersedes productReturnDays.
@@ -73,7 +83,7 @@ export interface IMerchantReturnPolicy extends Pick<IThing, 'name' | 'url'> {
73
83
  * Use MonetaryAmount to specify a fixed restocking fee for product returns,
74
84
  * or use Number to specify a percentage of the product price paid by the customer.
75
85
  */
76
- restockingFee?: IRestockingFee | number;
86
+ restockingFee?: IRestockingFee;
77
87
  /**
78
88
  * Indicates (via enumerated options) the return fees policy for a MerchantReturnPolicy
79
89
  */
@@ -0,0 +1,65 @@
1
+ import { IMultilingualString } from './multilingualString';
2
+ import { ProductType } from './product';
3
+ import { IProject } from './project';
4
+ import { IQuantitativeValue } from './quantitativeValue';
5
+ import { ReservationType } from './reservationType';
6
+ import { SortType } from './sortType';
7
+ import { UnitCode } from './unitCode';
8
+ export declare type IGracePeriodBeforeStart = Pick<IQuantitativeValue<UnitCode.Sec>, 'maxValue' | 'minValue' | 'typeOf' | 'unitCode'>;
9
+ export interface IGracePeriodBeforeStartInDays {
10
+ period: Pick<IQuantitativeValue<UnitCode.Day>, 'value' | 'typeOf' | 'unitCode'>;
11
+ time: string;
12
+ timezone: string;
13
+ }
14
+ export interface IItemOffered {
15
+ typeOf: ProductType.EventService;
16
+ serviceOutput?: {
17
+ typeOf: ReservationType.EventReservation;
18
+ /**
19
+ * 未使用のみ
20
+ */
21
+ onlyUnused?: boolean;
22
+ reservationFor: {
23
+ /**
24
+ * n秒前設定
25
+ */
26
+ gracePeriodBeforeStart?: IGracePeriodBeforeStart;
27
+ /**
28
+ * n日時前のHH:mm:ss設定
29
+ */
30
+ gracePeriodBeforeStartInDays?: {
31
+ max?: IGracePeriodBeforeStartInDays;
32
+ min?: IGracePeriodBeforeStartInDays;
33
+ };
34
+ };
35
+ };
36
+ }
37
+ export interface IOfferItemCondition {
38
+ id?: string;
39
+ identifier: string;
40
+ itemOffered: IItemOffered;
41
+ name: IMultilingualString;
42
+ project: Pick<IProject, 'id' | 'typeOf'>;
43
+ typeOf: 'OfferItemCondition';
44
+ }
45
+ export interface ISortOrder {
46
+ identifier?: SortType;
47
+ }
48
+ export interface ISearchConditions {
49
+ limit?: number;
50
+ page?: number;
51
+ sort?: ISortOrder;
52
+ project?: {
53
+ id?: {
54
+ $eq?: string;
55
+ };
56
+ };
57
+ id?: {
58
+ $eq?: string;
59
+ $in?: string[];
60
+ };
61
+ identifier?: {
62
+ $eq?: string;
63
+ $in?: string[];
64
+ };
65
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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, '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
  * 利用可能決済
@@ -66,6 +68,13 @@ export interface ISearchConditions {
66
68
  $eq?: string;
67
69
  $regex?: string;
68
70
  };
71
+ hasMerchantReturnPolicy?: {
72
+ itemCondition?: {
73
+ id?: {
74
+ $eq?: string;
75
+ };
76
+ };
77
+ };
69
78
  /**
70
79
  * 名称
71
80
  */
@@ -1,10 +1,19 @@
1
1
  import { IExtendId } from '../autoGenerated';
2
2
  import * as TaskFactory from '../task';
3
3
  import { TaskName } from '../taskName';
4
- import { ITransaction as IMoneyTransfer } from '../transaction/moneyTransfer';
5
- import { ITransaction as IPlaceOrder } from '../transaction/placeOrder';
6
- import { ITransaction as IReturnOrder } from '../transaction/returnOrder';
7
- export declare type IObject = Pick<IPlaceOrder | IReturnOrder | IMoneyTransfer, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'>;
4
+ import { IObject as IMoneyTransferObject, ITransaction as IMoneyTransfer } from '../transaction/moneyTransfer';
5
+ import { IObject as IPlaceOrderObject, ITransaction as IPlaceOrder } from '../transaction/placeOrder';
6
+ import { IObject as IReturnOrderObject, ITransaction as IReturnOrder } from '../transaction/returnOrder';
7
+ export declare type IObjectAsMoneyTransfer = Pick<IMoneyTransfer, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
8
+ object: Pick<IMoneyTransferObject, 'pendingTransaction'>;
9
+ };
10
+ export declare type IObjectAsPlaceOrder = Pick<IPlaceOrder, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
11
+ object: Pick<IPlaceOrderObject, 'confirmationNumber' | 'orderNumber'>;
12
+ };
13
+ export declare type IObjectAsReturnOrder = Pick<IReturnOrder, 'project' | 'id' | 'typeOf' | 'startDate' | 'endDate'> & {
14
+ object: Pick<IReturnOrderObject, 'order'>;
15
+ };
16
+ export declare type IObject = IObjectAsMoneyTransfer | IObjectAsPlaceOrder | IObjectAsReturnOrder;
8
17
  export interface IData {
9
18
  object: IObject;
10
19
  }
@@ -1,5 +1,4 @@
1
1
  import * as waiter from '@waiter/factory';
2
- import { IAction as IAuthorizeAction, IAttributes as IAuthorizeActionAttributes } from '../action/authorize';
3
2
  import { IAttributes as IMoneyTransferActionAttributes } from '../action/interact/confirm/moneyTransfer';
4
3
  import { IAmount as IMoneyTransferAmount } from '../action/transfer/moneyTransfer';
5
4
  import * as MoneyTransferAssetTransactionFactory from '../assetTransaction/moneyTransfer';
@@ -116,10 +115,6 @@ export interface IObject {
116
115
  * WAITER許可証
117
116
  */
118
117
  passport?: waiter.passport.IPassport;
119
- /**
120
- * 承認アクションリスト
121
- */
122
- authorizeActions?: IAuthorizeAction<IAuthorizeActionAttributes<any, any>>[];
123
118
  }
124
119
  export interface IPotentialActions {
125
120
  /**
@@ -1,6 +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
+ import { ICustomerRemorseReturnFeesMovieTicket, IMerchantReturnPolicy, ReturnFeesEnumeration } from '../merchantReturnPolicy';
4
+ import { IOfferItemCondition } from '../offerItemCondition';
4
5
  import { IProject } from '../project';
5
6
  import * as TransactionFactory from '../transaction';
6
7
  import { TransactionType } from '../transactionType';
@@ -127,8 +128,15 @@ export interface IReturnFeesMovieTicket {
127
128
  /**
128
129
  * 着券取消実行有無
129
130
  */
130
- returnFees: ReturnFeesEnumeration.FreeReturn | ReturnFeesEnumeration.ReturnFeesCustomerResponsibility;
131
+ returnFees: ICustomerRemorseReturnFeesMovieTicket;
132
+ serviceOutput: {
133
+ /**
134
+ * 決済方法区分
135
+ */
136
+ typeOf: string;
137
+ };
131
138
  }
139
+ export declare type IReturnPolicyItemCondition = IOfferItemCondition;
132
140
  /**
133
141
  * 取引に適用される返品ポリシー
134
142
  */
@@ -138,6 +146,7 @@ export declare type IReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merc
138
146
  * 決済カードコードごとの着券取消実行有無
139
147
  */
140
148
  returnFeesMovieTicket?: IReturnFeesMovieTicket[];
149
+ itemCondition?: IReturnPolicyItemCondition;
141
150
  };
142
151
  /**
143
152
  * 取引対象物
@@ -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.1",
3
+ "version": "4.313.0-alpha.11",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",