@chevre/factory 4.324.0-alpha.0 → 4.324.0-alpha.2

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,6 +1,5 @@
1
1
  import * as COA from '@motionpicture/coa-service';
2
2
  import * as ActionFactory from '../../../action';
3
- import { ITotalPaymentDue } from '../../../action/trade/pay';
4
3
  import { ActionType } from '../../../actionType';
5
4
  import * as ReserveTransactionFactory from '../../../assetTransaction/reserve';
6
5
  import { AssetTransactionType } from '../../../assetTransactionType';
@@ -35,7 +34,7 @@ export interface IResult<T extends WebAPIFactory.Identifier> {
35
34
  * オファーに対して必要な金額
36
35
  * currencyを口座タイプとして扱う
37
36
  */
38
- amount: ITotalPaymentDue[];
37
+ amount: OrderFactory.ITotalPaymentDue[];
39
38
  /**
40
39
  * 外部リクエストエンドポイント
41
40
  */
@@ -1,10 +1,10 @@
1
1
  import * as ActionFactory from '../../../action';
2
2
  import * as CheckMovieTicketActionFactory from '../../../action/check/paymentMethod/movieTicket';
3
- import { IMovieTicket, ITotalPaymentDue } from '../../../action/trade/pay';
3
+ import { IMovieTicket } from '../../../action/trade/pay';
4
4
  import { ActionType } from '../../../actionType';
5
5
  import * as PayTransactionFactory from '../../../assetTransaction/pay';
6
6
  import { AssetTransactionType } from '../../../assetTransactionType';
7
- import { IPaymentMethodIssuedThrough } from '../../../order';
7
+ import { IOrderPaymentMethodIssuedThrough, ITotalPaymentDue } from '../../../order';
8
8
  import * as CreditCardFactory from '../../../paymentMethod/paymentCard/creditCard';
9
9
  import { PaymentStatusType } from '../../../paymentStatusType';
10
10
  import { IPropertyValue } from '../../../propertyValue';
@@ -105,8 +105,8 @@ export interface IResult {
105
105
  accountId: string;
106
106
  /**
107
107
  * The amount of money.
108
+ * 廃止(2023-08-07~)
108
109
  */
109
- amount: number;
110
110
  /**
111
111
  * 決済方法
112
112
  */
@@ -132,7 +132,7 @@ export interface IResult {
132
132
  */
133
133
  additionalProperty?: IPropertyValue<string>[];
134
134
  typeOf: ResultType;
135
- issuedThrough: IPaymentMethodIssuedThrough;
135
+ issuedThrough: IOrderPaymentMethodIssuedThrough;
136
136
  }
137
137
  export interface IPurpose {
138
138
  typeOf: TransactionType;
@@ -5,8 +5,8 @@ import { IAttributes as IReturnOrderActionAttributes } from '../../action/transf
5
5
  import { ActionType } from '../../actionType';
6
6
  import { AssetTransactionType } from '../../assetTransactionType';
7
7
  import { CreativeWorkType } from '../../creativeWorkType';
8
- import { IPaymentServiceOutput, ITotalPaymentDue } from '../../invoice';
9
- import { OrderType } from '../../order';
8
+ import { IPaymentServiceOutput } from '../../invoice';
9
+ import { ITotalPaymentDue, OrderType } from '../../order';
10
10
  import { IMovieTicket as IMovieTicketPaymentCard } from '../../paymentMethod/paymentCard/movieTicket';
11
11
  import { IPropertyValue } from '../../propertyValue';
12
12
  import { PaymentServiceType } from '../../service/paymentService';
@@ -134,4 +134,3 @@ export interface IAttributes extends Omit<ActionFactory.IAttributes<ActionType.P
134
134
  * 決済アクション
135
135
  */
136
136
  export declare type IAction = ActionFactory.IAction<IAttributes>;
137
- export { ITotalPaymentDue };
@@ -1,12 +1,13 @@
1
1
  import * as GMO from '@motionpicture/gmo-service';
2
- import { IAction as IPayAction, IAttributes as IPayActionAttributes, ILocation, IMovieTicket, IOrderAsPayPurpose, IPendingTransaction, IPurpose as IPayPurpose, IRecipient as IPayRecipient, ITotalPaymentDue } from '../action/trade/pay';
2
+ import { IAction as IPayAction, IAttributes as IPayActionAttributes, ILocation, IMovieTicket, IOrderAsPayPurpose, IPendingTransaction, IPurpose as IPayPurpose, IRecipient as IPayRecipient } from '../action/trade/pay';
3
3
  import * as AssetTransactionFactory from '../assetTransaction';
4
4
  import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
6
+ import { ITotalPaymentDue } from '../order';
6
7
  import { IUnauthorizedCardOfMember, IUncheckedCardRaw, IUncheckedCardTokenized } from '../paymentMethod/paymentCard/creditCard';
7
8
  import { IOnPaymentStatusChanged } from '../project';
8
9
  import { IPropertyValue } from '../propertyValue';
9
- import { PaymentServiceType } from '../service/paymentService';
10
+ import { ICreditCardAsPaymentServiceOutput, PaymentServiceType } from '../service/paymentService';
10
11
  export import IAgent = AssetTransactionFactory.IAgent;
11
12
  export declare type IRecipient = IPayRecipient;
12
13
  /**
@@ -88,6 +89,7 @@ export interface IObject {
88
89
  * 発行決済サービスID
89
90
  */
90
91
  id: string;
92
+ serviceOutput?: ICreditCardAsPaymentServiceOutput;
91
93
  paymentMethod: IPaymentMethod;
92
94
  pendingTransaction?: IPendingTransaction;
93
95
  entryTranArgs?: IEntryTranArgs;
@@ -5,7 +5,6 @@ import * as OfferFactory from '../offer';
5
5
  import { OfferType } from '../offerType';
6
6
  import { OrganizationType } from '../organizationType';
7
7
  import { PlaceType } from '../placeType';
8
- import { PriceCurrency } from '../priceCurrency';
9
8
  import { IServiceType as IProductServiceType, ProductType } from '../product';
10
9
  import * as ReservationFactory from '../reservation';
11
10
  import { ReservationType } from '../reservationType';
@@ -130,7 +129,6 @@ export import IEligibleQuantity = OfferFactory.IEligibleQuantity;
130
129
  */
131
130
  export interface IOffer {
132
131
  typeOf: OfferType.Offer;
133
- priceCurrency: PriceCurrency.JPY;
134
132
  /**
135
133
  * 情報提供終了日時(オンライン取引アプリケーションの設定)
136
134
  * @deprecated Use seller.makesOffer
@@ -4,7 +4,6 @@ import * as ScreeningEventSeriesFactory from '../event/screeningEventSeries';
4
4
  import { EventType } from '../eventType';
5
5
  import { OfferType } from '../offerType';
6
6
  import { PlaceType } from '../placeType';
7
- import { PriceCurrency } from '../priceCurrency';
8
7
  import { IServiceType as IProductServiceType, ProductType } from '../product';
9
8
  import * as ReservationFactory from '../reservation';
10
9
  import { ReservationType } from '../reservationType';
@@ -62,7 +61,6 @@ export import IEligibleQuantity = AnyEventFactory.IEligibleQuantity;
62
61
  */
63
62
  export interface IOffer {
64
63
  typeOf: OfferType.Offer;
65
- priceCurrency: PriceCurrency.JPY;
66
64
  /**
67
65
  * 情報提供終了日時(オンライン取引アプリケーションの設定)
68
66
  * @deprecated Use seller.makesOffer
@@ -92,7 +90,7 @@ export interface IOffer {
92
90
  unacceptedPaymentMethod?: string[];
93
91
  seller: ISeller;
94
92
  }
95
- export declare type IOffer4COA = Pick<IOffer, 'typeOf' | 'offeredThrough' | 'priceCurrency'> & {
93
+ export declare type IOffer4COA = Pick<IOffer, 'typeOf' | 'offeredThrough'> & {
96
94
  itemOffered: {
97
95
  serviceOutput: Pick<IServiceOutput, 'reservedTicket'>;
98
96
  };
@@ -6,13 +6,11 @@ import { ILanguage } from '../language';
6
6
  import { IMultilingualString } from '../multilingualString';
7
7
  import { OfferType } from '../offerType';
8
8
  import { PlaceType } from '../placeType';
9
- import { PriceCurrency } from '../priceCurrency';
10
9
  /**
11
10
  * 施設コンテンツに対するオファー
12
11
  */
13
12
  export interface IOffer {
14
13
  typeOf: OfferType.Offer;
15
- priceCurrency: PriceCurrency.JPY;
16
14
  /**
17
15
  * 利用不可決済方法区分
18
16
  */
package/lib/event.d.ts CHANGED
@@ -7,7 +7,7 @@ import * as PlaceFactory from './place';
7
7
  import { IProject } from './project';
8
8
  import { IPropertyValue } from './propertyValue';
9
9
  import { SortType } from './sortType';
10
- export declare type IOffer = Omit<OfferFactory.IOffer, 'project'>;
10
+ export declare type IOffer = Pick<OfferFactory.IOffer, 'typeOf' | 'unacceptedPaymentMethod' | 'seller' | 'eligibleQuantity' | 'itemOffered' | 'offeredThrough'>;
11
11
  export interface IAttributes<T extends EventType> {
12
12
  project: Pick<IProject, 'id' | 'typeOf'>;
13
13
  /**
package/lib/invoice.d.ts CHANGED
@@ -8,7 +8,7 @@ import { IAppliesToMovieTicket, IPriceSpecification as IMovieTicketTypeChargeSpe
8
8
  import { IAppliesToAddOn as IUnitPriceSpecAppliesToAddOn, IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
9
9
  import { IPriceSpecification } from './reservation/event';
10
10
  import * as SellerFactory from './seller';
11
- import { PaymentServiceType } from './service/paymentService';
11
+ import { ICreditCardAsPaymentServiceOutput, PaymentServiceType } from './service/paymentService';
12
12
  export declare type IBroker = SellerFactory.ISeller | PersonFactory.IPerson;
13
13
  export declare type IProvider = SellerFactory.ISeller | PersonFactory.IPerson;
14
14
  export interface IReferenceOrder extends OrderFactory.IOrder {
@@ -57,7 +57,7 @@ export interface IMovieTicketAsPaymentServiceOutput {
57
57
  serviceOutput?: IReservation;
58
58
  amount?: IAmountOfMovieTicketAsPaymentServiceOutput;
59
59
  }
60
- export declare type IPaymentServiceOutput = IMovieTicketAsPaymentServiceOutput[];
60
+ export declare type IPaymentServiceOutput = IMovieTicketAsPaymentServiceOutput[] | ICreditCardAsPaymentServiceOutput;
61
61
  /**
62
62
  * 決済方法(サービス)
63
63
  */
@@ -66,9 +66,6 @@ export interface IPaymentMethod {
66
66
  typeOf: PaymentServiceType;
67
67
  serviceOutput?: IPaymentServiceOutput;
68
68
  }
69
- export declare type ITotalPaymentDue = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'> & {
70
- value: number;
71
- };
72
69
  /**
73
70
  * インボイス
74
71
  * {@link https://schema.org/Invoice}
@@ -137,5 +134,5 @@ export interface IInvoice {
137
134
  /**
138
135
  * The total amount due.
139
136
  */
140
- totalPaymentDue?: ITotalPaymentDue;
137
+ totalPaymentDue?: OrderFactory.ITotalPaymentDue;
141
138
  }
package/lib/order.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from './action';
2
- import { IPaymentService, ITotalPaymentDue } from './action/trade/pay';
3
2
  import { IAmount as IMoneyTransferAmount, IPaymentCard as IPaymentCardAsMoneyTransferToLocation } from './action/transfer/moneyTransfer';
4
3
  import { ActionType } from './actionType';
5
4
  import { AssetTransactionType } from './assetTransactionType';
6
5
  import { ICreativeWork as IWebApplication } from './creativeWork/softwareApplication/webApplication';
7
6
  import { ICustomer as ICustomerOrganization } from './customer';
8
7
  import { EventType } from './eventType';
8
+ import { IMonetaryAmount } from './monetaryAmount';
9
9
  import { IMultilingualString } from './multilingualString';
10
10
  import { IOffer } from './offer';
11
11
  import { OrderStatus } from './orderStatus';
@@ -24,6 +24,7 @@ import { IProgramMembershipUsedSearchConditions, ITicket, ITicketType } from './
24
24
  import * as BusReservationFactory from './reservation/busReservation';
25
25
  import * as EventReservationFactory from './reservation/event';
26
26
  import { ReservationType } from './reservationType';
27
+ import { ICreditCardAsPaymentServiceOutput, PaymentServiceType } from './service/paymentService';
27
28
  import { SortType } from './sortType';
28
29
  import { IUnitPriceOfferPriceSpecification } from './unitPriceOffer';
29
30
  export interface IProject {
@@ -33,7 +34,17 @@ export interface IProject {
33
34
  export declare enum OrderType {
34
35
  Order = "Order"
35
36
  }
36
- export declare type IPaymentMethodIssuedThrough = Pick<IPaymentService, 'typeOf' | 'id' | 'serviceOutput'>;
37
+ export interface IOrderPaymentMethodIssuedThrough {
38
+ typeOf: PaymentServiceType;
39
+ /**
40
+ * 発行決済サービスID
41
+ */
42
+ id: string;
43
+ serviceOutput?: ICreditCardAsPaymentServiceOutput;
44
+ }
45
+ export interface ITotalPaymentDue extends Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'> {
46
+ value: number;
47
+ }
37
48
  /**
38
49
  * 決済方法
39
50
  */
@@ -62,7 +73,7 @@ export interface IPaymentMethod {
62
73
  * 追加特性
63
74
  */
64
75
  additionalProperty: IPropertyValue<string>[];
65
- issuedThrough: IPaymentMethodIssuedThrough;
76
+ issuedThrough: IOrderPaymentMethodIssuedThrough;
66
77
  }
67
78
  /**
68
79
  * ディスカウント
@@ -58,7 +58,20 @@ export declare type IAvailableChannel = IProductAvailableChannel & {
58
58
  };
59
59
  };
60
60
  /**
61
- * 決済サービスインターフェース
61
+ * CreditCardIF決済サービスのカード属性
62
+ * ポイントカード情報など
63
+ */
64
+ export interface ICreditCardAsPaymentServiceOutput {
65
+ amount?: {
66
+ /**
67
+ * 通貨区分
68
+ */
69
+ currency: string;
70
+ };
71
+ }
72
+ export declare type IServiceOutput = ICreditCardAsPaymentServiceOutput;
73
+ /**
74
+ * 決済サービス
62
75
  * {@link https://schema.org/Service}
63
76
  */
64
77
  export interface IService extends Pick<IThing, 'name' | 'description'> {
@@ -71,6 +84,10 @@ export interface IService extends Pick<IThing, 'name' | 'description'> {
71
84
  * 決済サービス提供者(決済サービスを利用する販売者)
72
85
  */
73
86
  provider?: IProvider[];
87
+ /**
88
+ * 提供元のカード情報
89
+ */
90
+ serviceOutput?: IServiceOutput;
74
91
  /**
75
92
  * The type of service being offered, e.g. veterans' benefits, emergency relief, etc.
76
93
  * 決済サービスの場合、serviceType.codeValueが決済方法区分
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.324.0-alpha.0",
3
+ "version": "4.324.0-alpha.2",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",