Skip to content

Commit

Permalink
Release 1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jan 11, 2024
1 parent 1a933df commit 549d28b
Show file tree
Hide file tree
Showing 33 changed files with 115 additions and 128 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.3.2",
"version": "1.3.3",
"private": false,
"repository": "https://github.com/flagright/flagright-node",
"main": "./index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/businessUserEvents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,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.3.2",
"X-Fern-SDK-Version": "1.3.3",
},
contentType: "application/json",
queryParameters: _queryParams,
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 @@ -56,7 +56,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.3.2",
"X-Fern-SDK-Version": "1.3.3",
},
contentType: "application/json",
body: await serializers.Business.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -126,7 +126,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.3.2",
"X-Fern-SDK-Version": "1.3.3",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
2 changes: 1 addition & 1 deletion src/api/resources/consumerUserEvents/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,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.3.2",
"X-Fern-SDK-Version": "1.3.3",
},
contentType: "application/json",
queryParameters: _queryParams,
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 @@ -55,7 +55,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.3.2",
"X-Fern-SDK-Version": "1.3.3",
},
contentType: "application/json",
body: await serializers.User.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -122,7 +122,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.3.2",
"X-Fern-SDK-Version": "1.3.3",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
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 @@ -63,7 +63,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.3.2",
"X-Fern-SDK-Version": "1.3.3",
},
contentType: "application/json",
body: await serializers.TransactionEvent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
Expand Down Expand Up @@ -133,7 +133,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.3.2",
"X-Fern-SDK-Version": "1.3.3",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
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 @@ -73,7 +73,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.3.2",
"X-Fern-SDK-Version": "1.3.3",
},
contentType: "application/json",
queryParameters: _queryParams,
Expand Down Expand Up @@ -144,7 +144,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.3.2",
"X-Fern-SDK-Version": "1.3.3",
},
contentType: "application/json",
timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,9 @@
/**
* Brand of Card
*/
export type CardDetailsCardBrand =
| "VISA"
| "MASTERCARD"
| "AMERICAN_EXPRESS"
| "DISCOVER"
| "UNIONPAY"
| "RUPAY"
| "JCB";
export type CardBrand = "VISA" | "MASTERCARD" | "AMERICAN_EXPRESS" | "DISCOVER" | "UNIONPAY" | "RUPAY" | "JCB";

export const CardDetailsCardBrand = {
export const CardBrand = {
Visa: "VISA",
Mastercard: "MASTERCARD",
AmericanExpress: "AMERICAN_EXPRESS",
Expand Down
8 changes: 3 additions & 5 deletions src/api/types/CardDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ export interface CardDetails {
cardExpiry?: Flagright.CardExpiry;
/** Last 4 digits of Card */
cardLast4Digits?: string;
/** Brand of Card */
cardBrand?: Flagright.CardDetailsCardBrand;
/** Funding of Card */
cardFunding?: Flagright.CardDetailsCardFunding;
cardBrand?: Flagright.CardBrand;
cardFunding?: Flagright.CardFunding;
/** Authentication of Card */
cardAuthenticated?: boolean;
paymentChannel?: string;
cardType?: Flagright.CardDetailsCardType;
cardType?: Flagright.CardType;
merchantDetails?: Flagright.CardMerchantDetails;
/** Additional information that can be added via tags */
tags?: Flagright.Tag[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
/**
* Funding of Card
*/
export type CardDetailsCardFunding = "CREDIT" | "DEBIT" | "PREPAID";
export type CardFunding = "CREDIT" | "DEBIT" | "PREPAID";

export const CardDetailsCardFunding = {
export const CardFunding = {
Credit: "CREDIT",
Debit: "DEBIT",
Prepaid: "PREPAID",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
* This file was auto-generated by Fern from our API Definition.
*/

export type CardDetailsCardType = "VIRTUAL" | "PHYSICAL";
/**
* Type of card
*/
export type CardType = "VIRTUAL" | "PHYSICAL";

export const CardDetailsCardType = {
export const CardType = {
Virtual: "VIRTUAL",
Physical: "PHYSICAL",
} as const;
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
* This file was auto-generated by Fern from our API Definition.
*/

export type CheckDetailsDeliveryStatus = "COMPLETED" | "PENDING" | "SETTLED" | "CANCELED" | "REFUND" | "DECLINED";
export type CheckDeliveryStatus = "COMPLETED" | "PENDING" | "SETTLED" | "CANCELED" | "REFUND" | "DECLINED";

export const CheckDetailsDeliveryStatus = {
export const CheckDeliveryStatus = {
Completed: "COMPLETED",
Pending: "PENDING",
Settled: "SETTLED",
Expand Down
2 changes: 1 addition & 1 deletion src/api/types/CheckDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface CheckDetails {
checkNumber?: string;
checkIdentifier?: string;
name?: string;
deliveryStatus?: Flagright.CheckDetailsDeliveryStatus;
deliveryStatus?: Flagright.CheckDeliveryStatus;
etaTimestamp?: number;
shippingAddress?: Flagright.Address;
/** Additional information that can be added via tags */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
/**
* Gender of the individual - Male, Female or Non-Binary
*/
export type UserDetailsGender = "M" | "F" | "NB";
export type Gender = "M" | "F" | "NB";

export const UserDetailsGender = {
export const Gender = {
M: "M",
F: "F",
Nb: "NB",
Expand Down
3 changes: 1 addition & 2 deletions src/api/types/MpesaDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import * as Flagright from "..";
export interface MpesaDetails {
/** Business code */
businessShortCode: string;
/** Type of transaction */
transactionType: Flagright.MpesaDetailsTransactionType;
transactionType: Flagright.MpesaTransactionType;
/** Contact Number of the account holder */
phoneNumber: string;
/** Additional information that can be added via tags */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
/**
* Type of transaction
*/
export type MpesaDetailsTransactionType =
export type MpesaTransactionType =
| "CustomerPayBillOnline"
| "CustomerBuyGoodsOnline"
| "SalaryPayment"
| "BusinessPayment"
| "PromotionPayment";

export const MpesaDetailsTransactionType = {
export const MpesaTransactionType = {
CustomerPayBillOnline: "CustomerPayBillOnline",
CustomerBuyGoodsOnline: "CustomerBuyGoodsOnline",
SalaryPayment: "SalaryPayment",
Expand Down
3 changes: 1 addition & 2 deletions src/api/types/UserDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ export interface UserDetails {
dateOfBirth?: string;
countryOfResidence?: Flagright.CountryCode;
countryOfNationality?: Flagright.CountryCode;
/** Gender of the individual - Male, Female or Non-Binary */
gender?: Flagright.UserDetailsGender;
gender?: Flagright.Gender;
}
12 changes: 6 additions & 6 deletions src/api/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export * from "./LegalEntity";
export * from "./SourceOfFunds";
export * from "./ContactDetails";
export * from "./CompanyFinancialDetails";
export * from "./UserDetailsGender";
export * from "./UserDetails";
export * from "./UserRegistrationStatus";
export * from "./BusinessUserSegment";
Expand All @@ -40,15 +39,11 @@ export * from "./BusinessBase";
export * from "./BusinessOptional";
export * from "./BusinessUsersResponse";
export * from "./ConsumerUsersResponse";
export * from "./CardDetailsCardBrand";
export * from "./CardDetailsCardFunding";
export * from "./CardDetailsCardType";
export * from "./CardDetails";
export * from "./IbanDetails";
export * from "./WalletDetails";
export * from "./AchDetails";
export * from "./SwiftDetails";
export * from "./MpesaDetailsTransactionType";
export * from "./MpesaDetails";
export * from "./GenericBankAccountDetails";
export * from "./UpiDetails";
Expand Down Expand Up @@ -101,7 +96,6 @@ export * from "./ListExisted";
export * from "./ListHeader";
export * from "./PaymentMethod";
export * from "./CardMerchantDetails";
export * from "./CheckDetailsDeliveryStatus";
export * from "./CheckDetails";
export * from "./CountryCode";
export * from "./CurrencyCode";
Expand All @@ -119,3 +113,9 @@ export * from "./UserResponse";
export * from "./BusinessWithRulesResult";
export * from "./BusinessResponse";
export * from "./BooleanString";
export * from "./Gender";
export * from "./CardBrand";
export * from "./CardFunding";
export * from "./CardType";
export * from "./MpesaTransactionType";
export * from "./CheckDeliveryStatus";
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ import * as serializers from "..";
import * as Flagright from "../../api";
import * as core from "../../core";

export const CardDetailsCardBrand: core.serialization.Schema<
serializers.CardDetailsCardBrand.Raw,
Flagright.CardDetailsCardBrand
> = core.serialization.enum_(["VISA", "MASTERCARD", "AMERICAN_EXPRESS", "DISCOVER", "UNIONPAY", "RUPAY", "JCB"]);
export const CardBrand: core.serialization.Schema<serializers.CardBrand.Raw, Flagright.CardBrand> =
core.serialization.enum_(["VISA", "MASTERCARD", "AMERICAN_EXPRESS", "DISCOVER", "UNIONPAY", "RUPAY", "JCB"]);

export declare namespace CardDetailsCardBrand {
export declare namespace CardBrand {
type Raw = "VISA" | "MASTERCARD" | "AMERICAN_EXPRESS" | "DISCOVER" | "UNIONPAY" | "RUPAY" | "JCB";
}
12 changes: 6 additions & 6 deletions src/serialization/types/CardDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export const CardDetails: core.serialization.ObjectSchema<serializers.CardDetail
nameOnCard: core.serialization.lazyObject(async () => (await import("..")).ConsumerName).optional(),
cardExpiry: core.serialization.lazyObject(async () => (await import("..")).CardExpiry).optional(),
cardLast4Digits: core.serialization.string().optional(),
cardBrand: core.serialization.lazy(async () => (await import("..")).CardDetailsCardBrand).optional(),
cardFunding: core.serialization.lazy(async () => (await import("..")).CardDetailsCardFunding).optional(),
cardBrand: core.serialization.lazy(async () => (await import("..")).CardBrand).optional(),
cardFunding: core.serialization.lazy(async () => (await import("..")).CardFunding).optional(),
cardAuthenticated: core.serialization.boolean().optional(),
paymentChannel: core.serialization.string().optional(),
cardType: core.serialization.lazy(async () => (await import("..")).CardDetailsCardType).optional(),
cardType: core.serialization.lazy(async () => (await import("..")).CardType).optional(),
merchantDetails: core.serialization.lazyObject(async () => (await import("..")).CardMerchantDetails).optional(),
tags: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).Tag)).optional(),
});
Expand All @@ -33,11 +33,11 @@ export declare namespace CardDetails {
nameOnCard?: serializers.ConsumerName.Raw | null;
cardExpiry?: serializers.CardExpiry.Raw | null;
cardLast4Digits?: string | null;
cardBrand?: serializers.CardDetailsCardBrand.Raw | null;
cardFunding?: serializers.CardDetailsCardFunding.Raw | null;
cardBrand?: serializers.CardBrand.Raw | null;
cardFunding?: serializers.CardFunding.Raw | null;
cardAuthenticated?: boolean | null;
paymentChannel?: string | null;
cardType?: serializers.CardDetailsCardType.Raw | null;
cardType?: serializers.CardType.Raw | null;
merchantDetails?: serializers.CardMerchantDetails.Raw | null;
tags?: serializers.Tag.Raw[] | null;
}
Expand Down
16 changes: 0 additions & 16 deletions src/serialization/types/CardDetailsCardFunding.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/serialization/types/CardDetailsCardType.ts

This file was deleted.

14 changes: 14 additions & 0 deletions src/serialization/types/CardFunding.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as serializers from "..";
import * as Flagright from "../../api";
import * as core from "../../core";

export const CardFunding: core.serialization.Schema<serializers.CardFunding.Raw, Flagright.CardFunding> =
core.serialization.enum_(["CREDIT", "DEBIT", "PREPAID"]);

export declare namespace CardFunding {
type Raw = "CREDIT" | "DEBIT" | "PREPAID";
}
14 changes: 14 additions & 0 deletions src/serialization/types/CardType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as serializers from "..";
import * as Flagright from "../../api";
import * as core from "../../core";

export const CardType: core.serialization.Schema<serializers.CardType.Raw, Flagright.CardType> =
core.serialization.enum_(["VIRTUAL", "PHYSICAL"]);

export declare namespace CardType {
type Raw = "VIRTUAL" | "PHYSICAL";
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import * as serializers from "..";
import * as Flagright from "../../api";
import * as core from "../../core";

export const CheckDetailsDeliveryStatus: core.serialization.Schema<
serializers.CheckDetailsDeliveryStatus.Raw,
Flagright.CheckDetailsDeliveryStatus
export const CheckDeliveryStatus: core.serialization.Schema<
serializers.CheckDeliveryStatus.Raw,
Flagright.CheckDeliveryStatus
> = core.serialization.enum_(["COMPLETED", "PENDING", "SETTLED", "CANCELED", "REFUND", "DECLINED"]);

export declare namespace CheckDetailsDeliveryStatus {
export declare namespace CheckDeliveryStatus {
type Raw = "COMPLETED" | "PENDING" | "SETTLED" | "CANCELED" | "REFUND" | "DECLINED";
}
Loading

0 comments on commit 549d28b

Please sign in to comment.