@chevre/factory 4.325.0-alpha.2 → 4.325.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.
@@ -98,6 +98,12 @@ export interface IObject {
98
98
  */
99
99
  movieTickets?: IMovieTicket[];
100
100
  }
101
+ export interface IResultPaymentMethod {
102
+ typeOf: IAnyPaymentMethod;
103
+ amount?: {
104
+ currency?: string;
105
+ };
106
+ }
101
107
  export interface IResult {
102
108
  /**
103
109
  * The identifier for the account the payment will be applied to.
@@ -111,6 +117,10 @@ export interface IResult {
111
117
  * 決済方法
112
118
  */
113
119
  paymentMethod: IAnyPaymentMethod;
120
+ /**
121
+ * amount.currencyに対応するために追加(2023-08-13~)
122
+ */
123
+ paymentMethodAsObject?: IResultPaymentMethod;
114
124
  /**
115
125
  * 決済ID
116
126
  */
@@ -1,10 +1,10 @@
1
1
  import * as ActionFactory from '../../../action';
2
- import * as OrderFactory from '../../../order';
2
+ import { IReferencedInvoice, ISimpleOrder } from '../../../order';
3
3
  import { IAttributes as ISendEmailMessageActionAttributes } from '../../transfer/send/message/email';
4
4
  import * as ReturnActionFactory from '../return';
5
5
  export declare type IAgent = ActionFactory.IParticipantAsProject;
6
6
  export declare type IRecipient = ActionFactory.IParticipant;
7
- export declare type IObject = OrderFactory.IPaymentMethod;
7
+ export declare type IObject = IReferencedInvoice;
8
8
  export declare type IResult = any;
9
9
  export interface IPotentialActions {
10
10
  /**
@@ -12,7 +12,7 @@ export interface IPotentialActions {
12
12
  */
13
13
  sendEmailMessage?: ISendEmailMessageActionAttributes[];
14
14
  }
15
- export declare type IPurpose = OrderFactory.ISimpleOrder;
15
+ export declare type IPurpose = ISimpleOrder;
16
16
  export interface IAttributes extends ReturnActionFactory.IAttributes<IObject, IResult> {
17
17
  agent: IAgent;
18
18
  recipient: IRecipient;
package/lib/order.d.ts CHANGED
@@ -25,7 +25,7 @@ import * as BusReservationFactory from './reservation/busReservation';
25
25
  import * as EventReservationFactory from './reservation/event';
26
26
  import { ReservationType } from './reservationType';
27
27
  import { ISeller as IBaseSeller } from './seller';
28
- import { PaymentServiceType } from './service/paymentService';
28
+ import { IPaymentMethodAsServiceOutput, PaymentServiceType } from './service/paymentService';
29
29
  import { SortType } from './sortType';
30
30
  import { IUnitPriceOfferPriceSpecification } from './unitPriceOffer';
31
31
  export interface IProject {
@@ -35,29 +35,21 @@ export interface IProject {
35
35
  export declare enum OrderType {
36
36
  Order = "Order"
37
37
  }
38
- export interface IOrderPaymentMethodIssuedThroughServiceOutput {
39
- paymentMethod?: {
40
- amount?: {
41
- currency: string;
42
- value: number;
43
- };
44
- };
45
- }
46
38
  export interface IOrderPaymentMethodIssuedThrough {
47
39
  typeOf: PaymentServiceType;
48
40
  /**
49
41
  * 発行決済サービスID
50
42
  */
51
43
  id: string;
52
- serviceOutput?: IOrderPaymentMethodIssuedThroughServiceOutput;
53
44
  }
54
45
  export interface ITotalPaymentDue extends Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'> {
55
46
  value: number;
56
47
  }
48
+ export declare type IPaymentMethodOfInvoice = Pick<IPaymentMethodAsServiceOutput, 'amount'>;
57
49
  /**
58
- * 決済方法
50
+ * 請求
59
51
  */
60
- export interface IPaymentMethod {
52
+ export interface IReferencedInvoice {
61
53
  /**
62
54
  * The identifier for the account the payment will be applied to.
63
55
  */
@@ -70,6 +62,11 @@ export interface IPaymentMethod {
70
62
  * 決済方法名称
71
63
  */
72
64
  name: string;
65
+ /**
66
+ * The name of the credit card or other method of payment for the order.
67
+ * 追加(2023-08-13~)
68
+ */
69
+ paymentMethod?: IPaymentMethodOfInvoice;
73
70
  /**
74
71
  * An identifier for the method of payment used (e.g.the last 4 digits of the credit card).
75
72
  */
@@ -326,7 +323,7 @@ export interface IOrder extends Omit<ISimpleOrder, 'customer'> {
326
323
  /**
327
324
  * payment methods
328
325
  */
329
- paymentMethods: IPaymentMethod[];
326
+ paymentMethods: IReferencedInvoice[];
330
327
  /**
331
328
  * Returner
332
329
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.325.0-alpha.2",
3
+ "version": "4.325.0-alpha.3",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",