@chevre/factory 4.313.0-alpha.0 → 4.313.0-alpha.10

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;
@@ -412,6 +414,7 @@ export declare namespace task {
412
414
  export import cancelPendingReservation = CancelPendingReservationTaskFactory;
413
415
  export import cancelReservation = CancelReservationTaskFactory;
414
416
  export import deleteAssetTransaction = DeleteAssetTransactionTaskFactory;
417
+ export import deleteTransaction = DeleteTransactionTaskFactory;
415
418
  export import importEventCapacitiesFromCOA = ImportEventCapacitiesFromCOATaskFactory;
416
419
  export import importEventsFromCOA = ImportEventsFromCOATaskFactory;
417
420
  export import importOffersFromCOA = ImportOffersFromCOATaskFactory;
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");
@@ -117,6 +118,7 @@ var CancelMoneyTransferTaskFactory = require("./task/cancelMoneyTransfer");
117
118
  var CancelPendingReservationTaskFactory = require("./task/cancelPendingReservation");
118
119
  var CancelReservationTaskFactory = require("./task/cancelReservation");
119
120
  var DeleteAssetTransactionTaskFactory = require("./task/deleteAssetTransaction");
121
+ var DeleteTransactionTaskFactory = require("./task/deleteTransaction");
120
122
  var ImportEventCapacitiesFromCOATaskFactory = require("./task/importEventCapacitiesFromCOA");
121
123
  var ImportEventsFromCOATaskFactory = require("./task/importEventsFromCOA");
122
124
  var ImportOffersFromCOATaskFactory = require("./task/importOffersFromCOA");
@@ -301,6 +303,7 @@ exports.merchantReturnPolicy = MerchantReturnPolicyFactory;
301
303
  exports.monetaryAmount = MonetaryAmountFactory;
302
304
  exports.offer = OfferFactory;
303
305
  exports.offerCatalog = OfferCatalogFactory;
306
+ exports.offerItemCondition = OfferItemConditionFactory;
304
307
  exports.offerType = offerType_1.OfferType;
305
308
  exports.order = OrderFactory;
306
309
  exports.orderStatus = orderStatus_1.OrderStatus;
@@ -364,6 +367,7 @@ var task;
364
367
  task.cancelPendingReservation = CancelPendingReservationTaskFactory;
365
368
  task.cancelReservation = CancelReservationTaskFactory;
366
369
  task.deleteAssetTransaction = DeleteAssetTransactionTaskFactory;
370
+ task.deleteTransaction = DeleteTransactionTaskFactory;
367
371
  task.importEventCapacitiesFromCOA = ImportEventCapacitiesFromCOATaskFactory;
368
372
  task.importEventsFromCOA = ImportEventsFromCOATaskFactory;
369
373
  task.importOffersFromCOA = ImportOffersFromCOATaskFactory;
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,61 @@
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
+ reservationFor: {
19
+ /**
20
+ * n秒前設定
21
+ */
22
+ gracePeriodBeforeStart?: IGracePeriodBeforeStart;
23
+ /**
24
+ * n日時前のHH:mm:ss設定
25
+ */
26
+ gracePeriodBeforeStartInDays?: {
27
+ max?: IGracePeriodBeforeStartInDays;
28
+ min?: IGracePeriodBeforeStartInDays;
29
+ };
30
+ };
31
+ };
32
+ }
33
+ export interface IOfferItemCondition {
34
+ id?: string;
35
+ identifier: string;
36
+ itemOffered: IItemOffered;
37
+ name: IMultilingualString;
38
+ project: Pick<IProject, 'id' | 'typeOf'>;
39
+ typeOf: 'OfferItemCondition';
40
+ }
41
+ export interface ISortOrder {
42
+ identifier?: SortType;
43
+ }
44
+ export interface ISearchConditions {
45
+ limit?: number;
46
+ page?: number;
47
+ sort?: ISortOrder;
48
+ project?: {
49
+ id?: {
50
+ $eq?: string;
51
+ };
52
+ };
53
+ id?: {
54
+ $eq?: string;
55
+ $in?: string[];
56
+ };
57
+ identifier?: {
58
+ $eq?: string;
59
+ $in?: string[];
60
+ };
61
+ }
@@ -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
  */
@@ -3,13 +3,13 @@ import { IOrder } from '../order';
3
3
  import * as TaskFactory from '../task';
4
4
  import { TaskName } from '../taskName';
5
5
  export interface IData {
6
- object: IOrder;
6
+ object: Pick<IOrder, 'project' | 'typeOf' | 'confirmationNumber' | 'orderDate' | 'orderNumber'>;
7
7
  }
8
8
  export interface IAttributes extends TaskFactory.IAttributes {
9
9
  name: TaskName.DeleteOrder;
10
10
  data: IData;
11
11
  }
12
12
  /**
13
- * 注文削除タスクインターフェース
13
+ * 注文削除タスク
14
14
  */
15
15
  export declare type ITask = IExtendId<IAttributes>;
@@ -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 = IPlaceOrder | IReturnOrder | IMoneyTransfer;
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,6 @@
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
4
  import { IProject } from '../project';
5
5
  import * as TransactionFactory from '../transaction';
6
6
  import { TransactionType } from '../transactionType';
@@ -127,7 +127,13 @@ export interface IReturnFeesMovieTicket {
127
127
  /**
128
128
  * 着券取消実行有無
129
129
  */
130
- returnFees: ReturnFeesEnumeration.FreeReturn | ReturnFeesEnumeration.ReturnFeesCustomerResponsibility;
130
+ returnFees: ICustomerRemorseReturnFeesMovieTicket;
131
+ serviceOutput: {
132
+ /**
133
+ * 決済方法区分
134
+ */
135
+ typeOf: string;
136
+ };
131
137
  }
132
138
  /**
133
139
  * 取引に適用される返品ポリシー
@@ -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.0",
3
+ "version": "4.313.0-alpha.10",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",