@chevre/factory 4.366.0-alpha.1 → 4.366.0-alpha.3

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.
@@ -7,7 +7,7 @@ import * as ScreeningEventFactory from '../../../event/screeningEvent';
7
7
  import * as OfferFactory from '../../../offer';
8
8
  import * as OrderFactory from '../../../order';
9
9
  import { PriceCurrency } from '../../../priceCurrency';
10
- import { ITicketOffer, ITicketPriceSpecification } from '../../../product';
10
+ import { ICategoryCodeChargePriceComponent, IMovieTicketTypeChargePriceComponent, ITicketOffer, ITicketPriceSpecification, ITicketUnitPriceComponent } from '../../../product';
11
11
  import * as WebAPIFactory from '../../../service/webAPI';
12
12
  import { TransactionType } from '../../../transactionType';
13
13
  import * as AuthorizeActionFactory from '../../authorize';
@@ -73,7 +73,13 @@ export interface IResult<T extends WebAPIFactory.Identifier> {
73
73
  responseBody: IResponseBody<T>;
74
74
  acceptedOffers?: IResultAcceptedOffer[];
75
75
  }
76
- export type IAcceptedOfferPriceSpecification = ITicketPriceSpecification & {
76
+ export type ExcludedFieldsFromTicketPriceComponent = 'accounting' | 'id' | 'name' | 'priceCurrency' | 'valueAddedTaxIncluded';
77
+ export type ITicketPriceComponent = Omit<ICategoryCodeChargePriceComponent, ExcludedFieldsFromTicketPriceComponent> | Omit<IMovieTicketTypeChargePriceComponent, ExcludedFieldsFromTicketPriceComponent> | Omit<ITicketUnitPriceComponent, ExcludedFieldsFromTicketPriceComponent>;
78
+ export type IAcceptedOfferPriceSpecification = Pick<ITicketPriceSpecification, 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'> & {
79
+ /**
80
+ * 承認アクションobjectに不要な属性を除外して再定義(2024-04-09~)
81
+ */
82
+ priceComponent: ITicketPriceComponent[];
77
83
  /**
78
84
  * 複合価格仕様に、指定された適用決済カード情報を付加できるように
79
85
  */
@@ -83,6 +83,7 @@ export interface IAccountsReceivableByServiceType {
83
83
  serviceType: string;
84
84
  accountsReceivable?: number;
85
85
  }
86
+ export type IPayActionInObject = Pick<IPayAction, 'actionStatus' | 'id' | 'typeOf'>;
86
87
  /**
87
88
  * 取引対象物
88
89
  */
@@ -95,14 +96,17 @@ export interface IObject {
95
96
  */
96
97
  id: string;
97
98
  paymentMethod: IPaymentMethod;
99
+ onPaymentStatusChanged?: IOnPaymentStatusChanged;
98
100
  pendingTransaction?: IPendingTransaction;
99
101
  entryTranArgs?: IEntryTranArgs;
100
102
  entryTranResult?: IEntryTranResult;
101
103
  execTranArgs?: IExecTranArgs | IExecTran3dsArgs;
102
104
  execTranResult?: IExecTranResult | IExecTran3dsResult;
103
105
  secureTran2Result?: ISecureTran2Result;
104
- payAction?: IPayAction;
105
- onPaymentStatusChanged?: IOnPaymentStatusChanged;
106
+ /**
107
+ * PaymentServiceType.MovieTicketの場合、着券アクション
108
+ */
109
+ payAction?: IPayActionInObject;
106
110
  accountsReceivablesByServiceType?: IAccountsReceivableByServiceType[];
107
111
  }
108
112
  export interface IPaymentMethodWithoutDetail extends IPaymentMethod {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.366.0-alpha.1",
3
+ "version": "4.366.0-alpha.3",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",