Skip to content

Commit

Permalink
Release 1.5.10
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed May 21, 2024
1 parent 58b811d commit 5e49229
Show file tree
Hide file tree
Showing 59 changed files with 1,453 additions and 197 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flagright",
"version": "1.5.9",
"version": "1.5.10",
"private": false,
"repository": "https://github.com/flagright/flagright-node",
"main": "./index.js",
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/businessUserEvents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class BusinessUserEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.9",
"X-Fern-SDK-Version": "1.5.10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -172,7 +172,7 @@ export class BusinessUserEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.9",
"X-Fern-SDK-Version": "1.5.10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
10 changes: 5 additions & 5 deletions src/api/resources/businessUsers/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ export class BusinessUsers {
*
* @example
* await flagright.businessUsers.create({
* userId: "userId",
* createdTimestamp: 1.1,
* legalEntity: {
* companyGeneralDetails: {
* legalName: "Ozkan Hazelnut Export JSC",
* businessIndustry: ["Farming"],
* mainProductsServicesSold: ["Hazelnut"]
* }
* },
* userId: "userId",
* createdTimestamp: 1.1
* }
* })
*/
public async create(
Expand All @@ -69,7 +69,7 @@ export class BusinessUsers {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.9",
"X-Fern-SDK-Version": "1.5.10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -166,7 +166,7 @@ export class BusinessUsers {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.9",
"X-Fern-SDK-Version": "1.5.10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/businessUsers/client/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export {};
export * from "./requests";
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,22 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as Flagright from "..";
import * as Flagright from "../../../..";

/**
* @example
* {
* userId: "userId",
* createdTimestamp: 1.1,
* legalEntity: {
* companyGeneralDetails: {
* legalName: "Ozkan Hazelnut Export JSC",
* businessIndustry: ["Farming"],
* mainProductsServicesSold: ["Hazelnut"]
* }
* }
* }
*/
export interface Business {
/** Unique user ID for the user */
userId: string;
Expand All @@ -21,7 +35,7 @@ export interface Business {
allowedPaymentMethods?: Flagright.PaymentMethod[];
linkedEntities?: Flagright.BusinessEntityLink;
acquisitionChannel?: Flagright.AcquisitionChannel;
savedPaymentDetails?: Flagright.BusinessOptionalSavedPaymentDetailsItem[];
savedPaymentDetails?: Flagright.BusinessSavedPaymentDetailsItem[];
mccDetails?: Flagright.MccDetails;
/** Additional information that can be added via tags */
tags?: Flagright.Tag[];
Expand Down
1 change: 1 addition & 0 deletions src/api/resources/businessUsers/client/requests/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { Business } from "./Business";
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Flagright from "../../..";

export type BusinessSavedPaymentDetailsItem =
| Flagright.BusinessSavedPaymentDetailsItem.Card
| Flagright.BusinessSavedPaymentDetailsItem.GenericBankAccount
| Flagright.BusinessSavedPaymentDetailsItem.Iban
| Flagright.BusinessSavedPaymentDetailsItem.Ach
| Flagright.BusinessSavedPaymentDetailsItem.Swift
| Flagright.BusinessSavedPaymentDetailsItem.Mpesa
| Flagright.BusinessSavedPaymentDetailsItem.Upi
| Flagright.BusinessSavedPaymentDetailsItem.Wallet
| Flagright.BusinessSavedPaymentDetailsItem.Check;

export declare namespace BusinessSavedPaymentDetailsItem {
interface Card extends Flagright.CardDetails {
method: "CARD";
}

interface GenericBankAccount extends Flagright.GenericBankAccountDetails {
method: "GENERIC_BANK_ACCOUNT";
}

interface Iban extends Flagright.IbanDetails {
method: "IBAN";
}

interface Ach extends Flagright.AchDetails {
method: "ACH";
}

interface Swift extends Flagright.SwiftDetails {
method: "SWIFT";
}

interface Mpesa extends Flagright.MpesaDetails {
method: "MPESA";
}

interface Upi extends Flagright.UpiDetails {
method: "UPI";
}

interface Wallet extends Flagright.WalletDetails {
method: "WALLET";
}

interface Check extends Flagright.CheckDetails {
method: "CHECK";
}
}
1 change: 1 addition & 0 deletions src/api/resources/businessUsers/types/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from "./BusinessSavedPaymentDetailsItem";
export * from "./BusinessUsersCreateResponse";
4 changes: 2 additions & 2 deletions src/api/resources/consumerUserEvents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class ConsumerUserEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.9",
"X-Fern-SDK-Version": "1.5.10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -172,7 +172,7 @@ export class ConsumerUserEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.9",
"X-Fern-SDK-Version": "1.5.10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
10 changes: 5 additions & 5 deletions src/api/resources/consumerUsers/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export class ConsumerUsers {
*
* @example
* await flagright.consumerUsers.create({
* userId: "96647cfd9e8fe66ee0f3362e011e34e8",
* createdTimestamp: 1641654664000,
* userDetails: {
* name: {
* firstName: "Baran",
Expand Down Expand Up @@ -83,9 +85,7 @@ export class ConsumerUsers {
* tags: [{
* key: "customKey",
* value: "customValue"
* }],
* userId: "96647cfd9e8fe66ee0f3362e011e34e8",
* createdTimestamp: 1641654664000
* }]
* })
*/
public async create(
Expand All @@ -102,7 +102,7 @@ export class ConsumerUsers {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.9",
"X-Fern-SDK-Version": "1.5.10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -199,7 +199,7 @@ export class ConsumerUsers {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.9",
"X-Fern-SDK-Version": "1.5.10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/consumerUsers/client/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export {};
export * from "./requests";
77 changes: 77 additions & 0 deletions src/api/resources/consumerUsers/client/requests/User.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as Flagright from "../../../..";

/**
* @example
* {
* userId: "96647cfd9e8fe66ee0f3362e011e34e8",
* createdTimestamp: 1641654664000,
* userDetails: {
* name: {
* firstName: "Baran",
* middleName: "Realblood",
* lastName: "Ozkan"
* },
* dateOfBirth: "1991-01-01",
* countryOfResidence: Flagright.CountryCode.Us,
* countryOfNationality: Flagright.CountryCode.De
* },
* legalDocuments: [{
* documentType: "passport",
* documentNumber: "Z9431P",
* documentIssuedDate: 1639939034000,
* documentExpirationDate: 1839939034000,
* documentIssuedCountry: Flagright.CountryCode.De,
* tags: [{
* key: "customerType",
* value: "wallet"
* }]
* }],
* contactDetails: {
* emailIds: ["[email protected]"],
* contactNumbers: ["+37112345432"],
* websites: ["flagright.com"],
* addresses: [{
* addressLines: ["Klara-Franke Str 20"],
* postcode: "10557",
* city: "Berlin",
* state: "Berlin",
* country: "Germany",
* tags: [{
* key: "customKey",
* value: "customValue"
* }]
* }]
* },
* tags: [{
* key: "customKey",
* value: "customValue"
* }]
* }
*/
export interface User {
/** Unique user ID */
userId: string;
/** Timestamp when userId is created */
createdTimestamp: number;
userDetails?: Flagright.UserDetails;
userStateDetails?: Flagright.UserStateDetails;
kycStatusDetails?: Flagright.KycStatusDetails;
employmentStatus?: Flagright.EmploymentStatus;
occupation?: string;
/** User's legal identity documents - See Document Model for details */
legalDocuments?: Flagright.LegalDocument[];
contactDetails?: Flagright.ContactDetails;
transactionLimits?: Flagright.TransactionLimits;
riskLevel?: Flagright.RiskLevel;
acquisitionChannel?: Flagright.AcquisitionChannel;
reasonForAccountOpening?: string[];
sourceOfFunds?: Flagright.SourceOfFunds[];
userSegment?: Flagright.ConsumerUserSegment;
pepStatus?: Flagright.PepStatus[];
/** Additional information that can be added via tags */
tags?: Flagright.Tag[];
}
1 change: 1 addition & 0 deletions src/api/resources/consumerUsers/client/requests/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { User } from "./User";
2 changes: 2 additions & 0 deletions src/api/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ export * as transactionEvents from "./transactionEvents";
export * as consumerUserEvents from "./consumerUserEvents";
export * as businessUserEvents from "./businessUserEvents";
export * from "./transactions/client/requests";
export * from "./consumerUsers/client/requests";
export * from "./businessUsers/client/requests";
export * from "./consumerUserEvents/client/requests";
export * from "./businessUserEvents/client/requests";
4 changes: 2 additions & 2 deletions src/api/resources/transactionEvents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class TransactionEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.9",
"X-Fern-SDK-Version": "1.5.10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -176,7 +176,7 @@ export class TransactionEvents {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.9",
"X-Fern-SDK-Version": "1.5.10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
16 changes: 8 additions & 8 deletions src/api/resources/transactions/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ export class Transactions {
* @example
* await flagright.transactions.verify({
* body: {
* type: Flagright.TransactionType.Deposit,
* transactionId: "7b80a539eea6e78acbd6d458e5971482",
* timestamp: 1641654664000,
* originUserId: "8650a2611d0771cba03310f74bf6",
* destinationUserId: "9350a2611e0771cba03310f74bf6",
* originAmountDetails: {
* transactionAmount: 800,
* transactionCurrency: Flagright.CurrencyCode.Eur,
Expand Down Expand Up @@ -93,12 +98,7 @@ export class Transactions {
* tags: [{
* key: "customKey",
* value: "customValue"
* }],
* type: Flagright.TransactionType.Deposit,
* transactionId: "7b80a539eea6e78acbd6d458e5971482",
* timestamp: 1641654664000,
* originUserId: "8650a2611d0771cba03310f74bf6",
* destinationUserId: "9350a2611e0771cba03310f74bf6"
* }]
* }
* })
*/
Expand Down Expand Up @@ -126,7 +126,7 @@ export class Transactions {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.9",
"X-Fern-SDK-Version": "1.5.10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -224,7 +224,7 @@ export class Transactions {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.9",
"X-Fern-SDK-Version": "1.5.10",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ import * as Flagright from "../../../..";
* @example
* {
* body: {
* type: Flagright.TransactionType.Deposit,
* transactionId: "7b80a539eea6e78acbd6d458e5971482",
* timestamp: 1641654664000,
* originUserId: "8650a2611d0771cba03310f74bf6",
* destinationUserId: "9350a2611e0771cba03310f74bf6",
* originAmountDetails: {
* transactionAmount: 800,
* transactionCurrency: Flagright.CurrencyCode.Eur,
Expand Down Expand Up @@ -49,12 +54,7 @@ import * as Flagright from "../../../..";
* tags: [{
* key: "customKey",
* value: "customValue"
* }],
* type: Flagright.TransactionType.Deposit,
* transactionId: "7b80a539eea6e78acbd6d458e5971482",
* timestamp: 1641654664000,
* originUserId: "8650a2611d0771cba03310f74bf6",
* destinationUserId: "9350a2611e0771cba03310f74bf6"
* }]
* }
* }
*/
Expand Down
Loading

0 comments on commit 5e49229

Please sign in to comment.