Skip to content

Commit

Permalink
Release 1.6.25
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Sep 9, 2024
1 parent 017ae72 commit fc4961c
Show file tree
Hide file tree
Showing 38 changed files with 105 additions and 57 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.6.24",
"version": "1.6.25",
"private": false,
"repository": "https://github.com/flagright/flagright-node",
"main": "./index.js",
Expand Down
8 changes: 4 additions & 4 deletions src/api/resources/batch/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class Batch {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.24",
"X-Fern-SDK-Version": "1.6.25",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -163,7 +163,7 @@ export class Batch {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.24",
"X-Fern-SDK-Version": "1.6.25",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -263,7 +263,7 @@ export class Batch {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.24",
"X-Fern-SDK-Version": "1.6.25",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -361,7 +361,7 @@ export class Batch {
"x-api-key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.6.24",
"X-Fern-SDK-Version": "1.6.25",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
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 @@ -75,7 +75,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.6.24",
"X-Fern-SDK-Version": "1.6.25",
"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.6.24",
"X-Fern-SDK-Version": "1.6.25",
"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 @@ -70,7 +70,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.6.24",
"X-Fern-SDK-Version": "1.6.25",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -168,7 +168,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.6.24",
"X-Fern-SDK-Version": "1.6.25",
"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 @@ -53,7 +53,7 @@ export declare namespace BusinessSavedPaymentDetailsItem {
method: "CHECK";
}

interface Cash extends Flagright.CheckDetails {
interface Cash extends Flagright.CashDetails {
method: "CASH";
}
}
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 @@ -77,7 +77,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.6.24",
"X-Fern-SDK-Version": "1.6.25",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -174,7 +174,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.6.24",
"X-Fern-SDK-Version": "1.6.25",
"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 @@ -103,7 +103,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.6.24",
"X-Fern-SDK-Version": "1.6.25",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -201,7 +201,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.6.24",
"X-Fern-SDK-Version": "1.6.25",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
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 @@ -80,7 +80,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.6.24",
"X-Fern-SDK-Version": "1.6.25",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -178,7 +178,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.6.24",
"X-Fern-SDK-Version": "1.6.25",
"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 @@ -127,7 +127,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.6.24",
"X-Fern-SDK-Version": "1.6.25",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -226,7 +226,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.6.24",
"X-Fern-SDK-Version": "1.6.25",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
2 changes: 1 addition & 1 deletion src/api/types/BusinessOptionalSavedPaymentDetailsItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export declare namespace BusinessOptionalSavedPaymentDetailsItem {
method: "CHECK";
}

interface Cash extends Flagright.CheckDetails {
interface Cash extends Flagright.CashDetails {
method: "CASH";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export declare namespace BusinessWithRulesResultSavedPaymentDetailsItem {
method: "CHECK";
}

interface Cash extends Flagright.CheckDetails {
interface Cash extends Flagright.CashDetails {
method: "CASH";
}
}
8 changes: 8 additions & 0 deletions src/api/types/CashDetails.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

export interface CashDetails {
/** Identifier for the cash transaction */
identifier?: string;
}
12 changes: 10 additions & 2 deletions src/api/types/CheckDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as Flagright from "..";

export interface CheckDetails {
/** Identifier for the cash transaction */
identifier?: string;
checkNumber?: string;
checkIdentifier?: string;
name?: string;
deliveryStatus?: Flagright.CheckDeliveryStatus;
etaTimestamp?: number;
shippingAddress?: Flagright.Address;
/** Additional information that can be added via tags */
tags?: Flagright.Tag[];
}
2 changes: 1 addition & 1 deletion src/api/types/TransactionDestinationPaymentDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export declare namespace TransactionDestinationPaymentDetails {
method: "CHECK";
}

interface Cash extends Flagright.CheckDetails {
interface Cash extends Flagright.CashDetails {
method: "CASH";
}
}
2 changes: 1 addition & 1 deletion src/api/types/TransactionOriginPaymentDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export declare namespace TransactionOriginPaymentDetails {
method: "CHECK";
}

interface Cash extends Flagright.CheckDetails {
interface Cash extends Flagright.CashDetails {
method: "CASH";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export declare namespace TransactionUpdatableDestinationPaymentDetails {
method: "CHECK";
}

interface Cash extends Flagright.CheckDetails {
interface Cash extends Flagright.CashDetails {
method: "CASH";
}
}
2 changes: 1 addition & 1 deletion src/api/types/TransactionUpdatableOriginPaymentDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export declare namespace TransactionUpdatableOriginPaymentDetails {
method: "CHECK";
}

interface Cash extends Flagright.CheckDetails {
interface Cash extends Flagright.CashDetails {
method: "CASH";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export declare namespace TransactionWithRulesResultDestinationPaymentDetails {
method: "CHECK";
}

interface Cash extends Flagright.CheckDetails {
interface Cash extends Flagright.CashDetails {
method: "CASH";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export declare namespace TransactionWithRulesResultOriginPaymentDetails {
method: "CHECK";
}

interface Cash extends Flagright.CheckDetails {
interface Cash extends Flagright.CashDetails {
method: "CASH";
}
}
2 changes: 1 addition & 1 deletion src/api/types/UserOptionalSavedPaymentDetailsItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export declare namespace UserOptionalSavedPaymentDetailsItem {
method: "CHECK";
}

interface Cash extends Flagright.CheckDetails {
interface Cash extends Flagright.CashDetails {
method: "CASH";
}
}
2 changes: 1 addition & 1 deletion src/api/types/UserSavedPaymentDetailsItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export declare namespace UserSavedPaymentDetailsItem {
method: "CHECK";
}

interface Cash extends Flagright.CheckDetails {
interface Cash extends Flagright.CashDetails {
method: "CASH";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export declare namespace UserWithRulesResultSavedPaymentDetailsItem {
method: "CHECK";
}

interface Cash extends Flagright.CheckDetails {
interface Cash extends Flagright.CashDetails {
method: "CASH";
}
}
1 change: 1 addition & 0 deletions src/api/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export * from "./ListHeader";
export * from "./PaymentMethod";
export * from "./CardMerchantDetails";
export * from "./CheckDetails";
export * from "./CashDetails";
export * from "./CountryCode";
export * from "./CurrencyCode";
export * from "./MccDetails";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const BusinessSavedPaymentDetailsItem: core.serialization.Schema<
UPI: core.serialization.lazyObject(async () => (await import("../../..")).UpiDetails),
WALLET: core.serialization.lazyObject(async () => (await import("../../..")).WalletDetails),
CHECK: core.serialization.lazyObject(async () => (await import("../../..")).CheckDetails),
CASH: core.serialization.lazyObject(async () => (await import("../../..")).CheckDetails),
CASH: core.serialization.lazyObject(async () => (await import("../../..")).CashDetails),
})
.transform<Flagright.BusinessSavedPaymentDetailsItem>({
transform: (value) => value,
Expand Down Expand Up @@ -78,7 +78,7 @@ export declare namespace BusinessSavedPaymentDetailsItem {
method: "CHECK";
}

interface Cash extends serializers.CheckDetails.Raw {
interface Cash extends serializers.CashDetails.Raw {
method: "CASH";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const BusinessOptionalSavedPaymentDetailsItem: core.serialization.Schema<
UPI: core.serialization.lazyObject(async () => (await import("..")).UpiDetails),
WALLET: core.serialization.lazyObject(async () => (await import("..")).WalletDetails),
CHECK: core.serialization.lazyObject(async () => (await import("..")).CheckDetails),
CASH: core.serialization.lazyObject(async () => (await import("..")).CheckDetails),
CASH: core.serialization.lazyObject(async () => (await import("..")).CashDetails),
})
.transform<Flagright.BusinessOptionalSavedPaymentDetailsItem>({
transform: (value) => value,
Expand Down Expand Up @@ -76,7 +76,7 @@ export declare namespace BusinessOptionalSavedPaymentDetailsItem {
method: "CHECK";
}

interface Cash extends serializers.CheckDetails.Raw {
interface Cash extends serializers.CashDetails.Raw {
method: "CASH";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const BusinessWithRulesResultSavedPaymentDetailsItem: core.serialization.
UPI: core.serialization.lazyObject(async () => (await import("..")).UpiDetails),
WALLET: core.serialization.lazyObject(async () => (await import("..")).WalletDetails),
CHECK: core.serialization.lazyObject(async () => (await import("..")).CheckDetails),
CASH: core.serialization.lazyObject(async () => (await import("..")).CheckDetails),
CASH: core.serialization.lazyObject(async () => (await import("..")).CashDetails),
})
.transform<Flagright.BusinessWithRulesResultSavedPaymentDetailsItem>({
transform: (value) => value,
Expand Down Expand Up @@ -76,7 +76,7 @@ export declare namespace BusinessWithRulesResultSavedPaymentDetailsItem {
method: "CHECK";
}

interface Cash extends serializers.CheckDetails.Raw {
interface Cash extends serializers.CashDetails.Raw {
method: "CASH";
}
}
18 changes: 18 additions & 0 deletions src/serialization/types/CashDetails.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* 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 CashDetails: core.serialization.ObjectSchema<serializers.CashDetails.Raw, Flagright.CashDetails> =
core.serialization.object({
identifier: core.serialization.string().optional(),
});

export declare namespace CashDetails {
interface Raw {
identifier?: string | null;
}
}
16 changes: 14 additions & 2 deletions src/serialization/types/CheckDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,23 @@ import * as core from "../../core";

export const CheckDetails: core.serialization.ObjectSchema<serializers.CheckDetails.Raw, Flagright.CheckDetails> =
core.serialization.object({
identifier: core.serialization.string().optional(),
checkNumber: core.serialization.string().optional(),
checkIdentifier: core.serialization.string().optional(),
name: core.serialization.string().optional(),
deliveryStatus: core.serialization.lazy(async () => (await import("..")).CheckDeliveryStatus).optional(),
etaTimestamp: core.serialization.number().optional(),
shippingAddress: core.serialization.lazyObject(async () => (await import("..")).Address).optional(),
tags: core.serialization.list(core.serialization.lazyObject(async () => (await import("..")).Tag)).optional(),
});

export declare namespace CheckDetails {
interface Raw {
identifier?: string | null;
checkNumber?: string | null;
checkIdentifier?: string | null;
name?: string | null;
deliveryStatus?: serializers.CheckDeliveryStatus.Raw | null;
etaTimestamp?: number | null;
shippingAddress?: serializers.Address.Raw | null;
tags?: serializers.Tag.Raw[] | null;
}
}
Loading

0 comments on commit fc4961c

Please sign in to comment.