Skip to content

Commit

Permalink
Release 1.5.13
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jun 3, 2024
1 parent 56633a2 commit bc853c1
Show file tree
Hide file tree
Showing 24 changed files with 432 additions and 19 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.12",
"version": "1.5.13",
"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.12",
"X-Fern-SDK-Version": "1.5.13",
"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.12",
"X-Fern-SDK-Version": "1.5.13",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/businessUsers/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.12",
"X-Fern-SDK-Version": "1.5.13",
"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.12",
"X-Fern-SDK-Version": "1.5.13",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
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.12",
"X-Fern-SDK-Version": "1.5.13",
"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.12",
"X-Fern-SDK-Version": "1.5.13",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/consumerUsers/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.12",
"X-Fern-SDK-Version": "1.5.13",
"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.12",
"X-Fern-SDK-Version": "1.5.13",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
1 change: 1 addition & 0 deletions src/api/resources/consumerUsers/client/requests/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export interface User {
sourceOfFunds?: Flagright.SourceOfFunds[];
userSegment?: Flagright.ConsumerUserSegment;
pepStatus?: Flagright.PepStatus[];
savedPaymentDetails?: Flagright.UserSavedPaymentDetailsItem[];
/** Additional information that can be added via tags */
tags?: Flagright.Tag[];
}
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 UserSavedPaymentDetailsItem =
| Flagright.UserSavedPaymentDetailsItem.Card
| Flagright.UserSavedPaymentDetailsItem.GenericBankAccount
| Flagright.UserSavedPaymentDetailsItem.Iban
| Flagright.UserSavedPaymentDetailsItem.Ach
| Flagright.UserSavedPaymentDetailsItem.Swift
| Flagright.UserSavedPaymentDetailsItem.Mpesa
| Flagright.UserSavedPaymentDetailsItem.Upi
| Flagright.UserSavedPaymentDetailsItem.Wallet
| Flagright.UserSavedPaymentDetailsItem.Check;

export declare namespace UserSavedPaymentDetailsItem {
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/consumerUsers/types/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from "./UserSavedPaymentDetailsItem";
export * from "./ConsumerUsersCreateResponse";
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.12",
"X-Fern-SDK-Version": "1.5.13",
"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.12",
"X-Fern-SDK-Version": "1.5.13",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/transactions/client/Client.ts
Original file line number Diff line number Diff line change
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.12",
"X-Fern-SDK-Version": "1.5.13",
"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.12",
"X-Fern-SDK-Version": "1.5.13",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
1 change: 1 addition & 0 deletions src/api/types/UserOptional.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export interface UserOptional {
sourceOfFunds?: Flagright.SourceOfFunds[];
userSegment?: Flagright.ConsumerUserSegment;
pepStatus?: Flagright.PepStatus[];
savedPaymentDetails?: Flagright.UserOptionalSavedPaymentDetailsItem[];
/** Additional information that can be added via tags */
tags?: Flagright.Tag[];
}
54 changes: 54 additions & 0 deletions src/api/types/UserOptionalSavedPaymentDetailsItem.ts
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 UserOptionalSavedPaymentDetailsItem =
| Flagright.UserOptionalSavedPaymentDetailsItem.Card
| Flagright.UserOptionalSavedPaymentDetailsItem.GenericBankAccount
| Flagright.UserOptionalSavedPaymentDetailsItem.Iban
| Flagright.UserOptionalSavedPaymentDetailsItem.Ach
| Flagright.UserOptionalSavedPaymentDetailsItem.Swift
| Flagright.UserOptionalSavedPaymentDetailsItem.Mpesa
| Flagright.UserOptionalSavedPaymentDetailsItem.Upi
| Flagright.UserOptionalSavedPaymentDetailsItem.Wallet
| Flagright.UserOptionalSavedPaymentDetailsItem.Check;

export declare namespace UserOptionalSavedPaymentDetailsItem {
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/types/UserWithRulesResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export interface UserWithRulesResult {
sourceOfFunds?: Flagright.SourceOfFunds[];
userSegment?: Flagright.ConsumerUserSegment;
pepStatus?: Flagright.PepStatus[];
savedPaymentDetails?: Flagright.UserWithRulesResultSavedPaymentDetailsItem[];
/** Additional information that can be added via tags */
tags?: Flagright.Tag[];
executedRules?: Flagright.ExecutedRulesResult[];
Expand Down
54 changes: 54 additions & 0 deletions src/api/types/UserWithRulesResultSavedPaymentDetailsItem.ts
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 UserWithRulesResultSavedPaymentDetailsItem =
| Flagright.UserWithRulesResultSavedPaymentDetailsItem.Card
| Flagright.UserWithRulesResultSavedPaymentDetailsItem.GenericBankAccount
| Flagright.UserWithRulesResultSavedPaymentDetailsItem.Iban
| Flagright.UserWithRulesResultSavedPaymentDetailsItem.Ach
| Flagright.UserWithRulesResultSavedPaymentDetailsItem.Swift
| Flagright.UserWithRulesResultSavedPaymentDetailsItem.Mpesa
| Flagright.UserWithRulesResultSavedPaymentDetailsItem.Upi
| Flagright.UserWithRulesResultSavedPaymentDetailsItem.Wallet
| Flagright.UserWithRulesResultSavedPaymentDetailsItem.Check;

export declare namespace UserWithRulesResultSavedPaymentDetailsItem {
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";
}
}
2 changes: 2 additions & 0 deletions src/api/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export * from "./Address";
export * from "./UserBase";
export * from "./UserOptionalSavedPaymentDetailsItem";
export * from "./UserOptional";
export * from "./ConsumerUserSegment";
export * from "./Person";
Expand Down Expand Up @@ -117,6 +118,7 @@ export * from "./FalsePositiveDetails";
export * from "./SanctionsDetails";
export * from "./SanctionsDetailsEntityType";
export * from "./BusinessEntityLink";
export * from "./UserWithRulesResultSavedPaymentDetailsItem";
export * from "./UserWithRulesResult";
export * from "./UserRiskScoreDetails";
export * from "./BusinessWithRulesResultSavedPaymentDetailsItem";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export const User: core.serialization.Schema<serializers.User.Raw, Flagright.Use
pepStatus: core.serialization
.list(core.serialization.lazyObject(async () => (await import("../../../..")).PepStatus))
.optional(),
savedPaymentDetails: core.serialization
.list(core.serialization.lazy(async () => (await import("../../../..")).UserSavedPaymentDetailsItem))
.optional(),
tags: core.serialization
.list(core.serialization.lazyObject(async () => (await import("../../../..")).Tag))
.optional(),
Expand All @@ -60,6 +63,7 @@ export declare namespace User {
sourceOfFunds?: serializers.SourceOfFunds.Raw[] | null;
userSegment?: serializers.ConsumerUserSegment.Raw | null;
pepStatus?: serializers.PepStatus.Raw[] | null;
savedPaymentDetails?: serializers.UserSavedPaymentDetailsItem.Raw[] | null;
tags?: serializers.Tag.Raw[] | null;
}
}
Loading

0 comments on commit bc853c1

Please sign in to comment.