Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fiatconnect/fiatconnect-types

Package Overview
Dependencies
Maintainers
5
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fiatconnect/fiatconnect-types - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

14

CHANGELOG.md

@@ -5,3 +5,15 @@ # Changelog

### [4.0.0](https://github.com/fiatconnect/fiatconnect-types/compare/v3.3.0...v4.0.0) (2022-05-25)
## [4.1.0](https://github.com/fiatconnect/fiatconnect-types/compare/v4.0.0...v4.1.0) (2022-06-06)
### Features
* add new fiat account schemas ([#31](https://github.com/fiatconnect/fiatconnect-types/issues/31)) ([1ed5cff](https://github.com/fiatconnect/fiatconnect-types/commit/1ed5cffba2056d5db800086bc5689bf0ac78cee2))
### Bug Fixes
* **FiatType:** match with specification ([#30](https://github.com/fiatconnect/fiatconnect-types/issues/30)) ([5d47e22](https://github.com/fiatconnect/fiatconnect-types/commit/5d47e22e6a2c15b24d34a48cf5f00217f61ce9f7))
## [4.0.0](https://github.com/fiatconnect/fiatconnect-types/compare/v3.3.0...v4.0.0) (2022-05-25)
### ⚠ BREAKING CHANGES

@@ -8,0 +20,0 @@ * **transfer request body:** Removed unused TransferRequestBody fields ([#34]((https://github.com/fiatconnect/fiatconnect-types/issues/34))) ([e175ee9](https://github.com/fiatconnect/specification/commit/e175ee9acd92a462d8f3669278992ac10b40ac99))

@@ -184,3 +184,4 @@ export declare type ClockResponse = {

EUR = "EUR",
REAL = "REAL",
BRL = "BRL",
GNF = "GNF",
INR = "INR",

@@ -211,3 +212,5 @@ NGN = "NGN",

MobileMoney = "MobileMoney",
DuniaWallet = "DuniaWallet"
DuniaWallet = "DuniaWallet",
IBANNumber = "IBANNumber",
IFSCAccount = "IFSCAccount"
}

@@ -239,2 +242,13 @@ export declare enum FiatAccountType {

};
export declare type IBANNumber = RequiredFiatAccountSchemaFields & {
iban: string;
country: string;
fiatAccountType: FiatAccountType.BankAccount;
};
export declare type IFSCAccount = RequiredFiatAccountSchemaFields & {
ifsc: string;
accountNumber: string;
country: string;
fiatAccountType: FiatAccountType.BankAccount;
};
export declare enum SupportedOperatorEnum {

@@ -241,0 +255,0 @@ ORANGE = "ORANGE",

5

dist/index.js

@@ -102,3 +102,4 @@ "use strict";

FiatType["EUR"] = "EUR";
FiatType["REAL"] = "REAL";
FiatType["BRL"] = "BRL";
FiatType["GNF"] = "GNF";
FiatType["INR"] = "INR";

@@ -133,2 +134,4 @@ FiatType["NGN"] = "NGN";

FiatAccountSchema["DuniaWallet"] = "DuniaWallet";
FiatAccountSchema["IBANNumber"] = "IBANNumber";
FiatAccountSchema["IFSCAccount"] = "IFSCAccount";
})(FiatAccountSchema = exports.FiatAccountSchema || (exports.FiatAccountSchema = {}));

@@ -135,0 +138,0 @@ var FiatAccountType;

{
"name": "@fiatconnect/fiatconnect-types",
"version": "4.0.0",
"version": "4.1.0",
"description": "Types used in the FiatConnect specification. Offered as standalone module for payment providers and wallets to both use for FiatConnect APIs and integrations.",

@@ -5,0 +5,0 @@ "scripts": {

@@ -1,2 +0,1 @@

/*

@@ -69,3 +68,3 @@ / Types for request and response bodies.

allowedValues: {
[key:string]: string[]
[key: string]: string[]
}

@@ -96,3 +95,3 @@ }

allowedValues: {
[key:string]: string[]
[key: string]: string[]
}

@@ -130,6 +129,5 @@ }

// Response body for GET /accounts/:fiatAccountSchema
export type GetFiatAccountsResponse = Partial<Record<
FiatAccountType,
ObfuscatedFiatAccountData[]
>>
export type GetFiatAccountsResponse = Partial<
Record<FiatAccountType, ObfuscatedFiatAccountData[]>
>

@@ -181,3 +179,3 @@ // Response body for POST /accounts/:fiatAccountSchema

transferAddress: string
};
}

@@ -297,3 +295,4 @@ /*

EUR = 'EUR',
REAL = 'REAL',
BRL = 'BRL',
GNF = 'GNF',
INR = 'INR',

@@ -328,2 +327,4 @@ NGN = 'NGN',

DuniaWallet = 'DuniaWallet',
IBANNumber = 'IBANNumber',
IFSCAccount = 'IFSCAccount',
}

@@ -334,20 +335,20 @@

MobileMoney = 'MobileMoney',
DuniaWallet = 'DuniaWallet'
DuniaWallet = 'DuniaWallet',
}
interface RequiredFiatAccountSchemaFields {
accountName: string;
institutionName: string;
fiatAccountType: FiatAccountType,
accountName: string
institutionName: string
fiatAccountType: FiatAccountType
}
export type AccountNumber = RequiredFiatAccountSchemaFields & {
accountNumber: string,
country: string,
accountNumber: string
country: string
fiatAccountType: FiatAccountType.BankAccount
}
export type MobileMoney = RequiredFiatAccountSchemaFields & {
mobile: string,
country: string,
operator: SupportedOperatorEnum,
mobile: string
country: string
operator: SupportedOperatorEnum
fiatAccountType: FiatAccountType.MobileMoney

@@ -357,6 +358,19 @@ }

export type DuniaWallet = RequiredFiatAccountSchemaFields & {
mobile: string;
fiatAccountType: FiatAccountType.DuniaWallet;
};
mobile: string
fiatAccountType: FiatAccountType.DuniaWallet
}
export type IBANNumber = RequiredFiatAccountSchemaFields & {
iban: string
country: string
fiatAccountType: FiatAccountType.BankAccount
}
export type IFSCAccount = RequiredFiatAccountSchemaFields & {
ifsc: string
accountNumber: string
country: string
fiatAccountType: FiatAccountType.BankAccount
}
export enum SupportedOperatorEnum {

@@ -363,0 +377,0 @@ ORANGE = 'ORANGE',

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc