Skip to content

Commit

Permalink
instant conversion typings fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Iulian Masar committed Oct 10, 2023
1 parent 7c00167 commit 0fa8751
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions typings/models/instantConversion.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import { entityBase, models, money, transaction } from "mangopay2-nodejs-sdk";
import { entityBase } from "./entityBase";
import { money } from "./money";
import { transaction } from "./transaction";
import { conversionRate } from "./conversionRate";

export namespace instantConversion {
import ConversionRate = models.ConversionRate;
import TransactionStatus = transaction.TransactionStatus;
import TransactionType = transaction.TransactionType;
import TransactionNature = transaction.TransactionNature;
import MoneyData = money.MoneyData;
import ConversionRateData = conversionRate.ConversionRateData;

interface InstantConversionData extends entityBase.EntityBaseData {
/**
Expand Down Expand Up @@ -36,7 +39,7 @@ export namespace instantConversion {
/**
* Real time indicative market rate of a specific currency pair
*/
ConversionRate: ConversionRate;
ConversionRate: ConversionRateData;

/**
* The status of the transaction.
Expand Down
2 changes: 1 addition & 1 deletion typings/services/InstantConversions.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { base } from "mangopay2-nodejs-sdk";
import { base } from "../base";
import { conversionRate } from "../models/conversionRate";
import { instantConversion } from "../models/instantConversion";
import MethodOverload = base.MethodOverload;
Expand Down

0 comments on commit 0fa8751

Please sign in to comment.