@chevre/factory 4.275.0 → 4.276.0-alpha.1

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.
@@ -4,6 +4,7 @@ import * as ActionFactory from '../../action';
4
4
  import { IAttributes as IReturnOrderActionAttributes } from '../../action/transfer/return/order';
5
5
  import { ActionType } from '../../actionType';
6
6
  import { AssetTransactionType } from '../../assetTransactionType';
7
+ import { CreativeWorkType } from '../../creativeWorkType';
7
8
  import { IPaymentServiceOutput, ITotalPaymentDue } from '../../invoice';
8
9
  import { OrderType } from '../../order';
9
10
  import { IMovieTicket } from '../../paymentMethod/paymentCard/movieTicket';
@@ -11,7 +12,7 @@ import { IPropertyValue } from '../../propertyValue';
11
12
  import { PaymentServiceType } from '../../service/paymentService';
12
13
  import { TransactionType } from '../../transactionType';
13
14
  import { IAttributes as IInformActionAttributes } from '../interact/inform';
14
- export declare type IAgent = ActionFactory.IParticipantAsProject;
15
+ export import IAgent = ActionFactory.IParticipantAsProject;
15
16
  export import IRecipient = ActionFactory.IParticipantAsSeller;
16
17
  export interface IOrderAsPayPurpose {
17
18
  typeOf: OrderType.Order;
@@ -114,12 +115,20 @@ export interface IResult {
114
115
  creditCardSales?: ICreditCardSales[];
115
116
  seatInfoSyncResult?: any;
116
117
  }
117
- export interface IAttributes extends ActionFactory.IAttributes<ActionType.PayAction, IObject, IResult> {
118
+ export interface ILocation {
119
+ typeOf: CreativeWorkType.WebApplication;
120
+ /**
121
+ * アプリケーションID
122
+ */
123
+ id: string;
124
+ }
125
+ export interface IAttributes extends Omit<ActionFactory.IAttributes<ActionType.PayAction, IObject, IResult>, 'description' | 'identifier' | 'location'> {
118
126
  agent: IAgent;
119
127
  instrument?: IInstrument;
120
128
  potentialActions?: IPotentialActions;
121
129
  purpose: IPurpose;
122
130
  recipient: IRecipient;
131
+ location?: ILocation;
123
132
  }
124
133
  /**
125
134
  * 決済アクション
@@ -1,5 +1,5 @@
1
1
  import * as GMO from '@motionpicture/gmo-service';
2
- import { IAttributes as IPayActionAttributes, IOrderAsPayPurpose, IPayPurpose, IPendingTransaction, IRecipient as IPayRecipient, ITotalPaymentDue } from '../action/trade/pay';
2
+ import { IAttributes as IPayActionAttributes, ILocation, IOrderAsPayPurpose, IPayPurpose, IPendingTransaction, IRecipient as IPayRecipient, ITotalPaymentDue } from '../action/trade/pay';
3
3
  import * as AssetTransactionFactory from '../assetTransaction';
4
4
  import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
@@ -96,10 +96,12 @@ export interface IObject {
96
96
  }
97
97
  export declare type IObjectWithoutDetail = Pick<IObject, 'typeOf' | 'id' | 'paymentMethod'>;
98
98
  export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObjectWithoutDetail> & {
99
+ location?: ILocation;
99
100
  recipient: IRecipient;
100
101
  purpose?: IPayPurpose;
101
102
  };
102
103
  export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> {
104
+ location?: ILocation;
103
105
  recipient: IRecipient;
104
106
  }
105
107
  export interface IPotentialActions {
package/lib/seller.d.ts CHANGED
@@ -5,7 +5,9 @@ import { IOrganization } from './organization';
5
5
  import { OrganizationType } from './organizationType';
6
6
  import { IProject } from './project';
7
7
  import { IPropertyValue } from './propertyValue';
8
+ import { IQuantitativeValue } from './quantitativeValue';
8
9
  import { SortType } from './sortType';
10
+ import { UnitCode } from './unitCode';
9
11
  export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'url'>;
10
12
  export declare type IHasMerchantReturnPolicy = ISellerMerchantReturnPolicy[];
11
13
  /**
@@ -17,7 +19,13 @@ export interface IPaymentAccepted {
17
19
  */
18
20
  paymentMethodType: string;
19
21
  }
20
- export declare type IMakesOffer = Pick<IOffer, 'typeOf' | 'availableAtOrFrom'>;
22
+ export declare type IEligibleTransactionDuration = Pick<IQuantitativeValue<UnitCode.Sec>, 'maxValue' | 'typeOf' | 'unitCode'>;
23
+ export declare type IMakesOffer = Pick<IOffer, 'typeOf' | 'availableAtOrFrom'> & {
24
+ /**
25
+ * 適用取引期間
26
+ */
27
+ eligibleTransactionDuration?: IEligibleTransactionDuration;
28
+ };
21
29
  export interface ISeller extends Pick<IOrganization, 'typeOf' | 'id' | 'location' | 'telephone' | 'additionalProperty' | 'name' | 'url'> {
22
30
  project: Pick<IProject, 'id' | 'typeOf'>;
23
31
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.275.0",
3
+ "version": "4.276.0-alpha.1",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",