import Stripe from "https://esm.sh/stripe?target=deno";
type Stripe = {
token: string;
};
export async function main(stripe_con: Stripe, limit: number) {
const token = stripe_con["token"];
const stripe = Stripe(`${token}`, {
httpClient: Stripe.createFetchHttpClient(),
});
const balanceTransactions = await stripe.balanceTransactions.list({
limit: limit,
});
return await balanceTransactions.json();
}
Submitted by admin 460 days ago
import Stripe from "https://esm.sh/stripe?target=deno";
type Stripe = {
token: string;
};
export async function main(
stripe_con: Stripe,
limit: number,
) {
const token = stripe_con["token"];
const stripe = Stripe(
`${token}`,
{
httpClient: Stripe.createFetchHttpClient(),
},
);
const balanceTransactions = await stripe.balanceTransactions.list({
limit: limit,
});
return await balanceTransactions.json();
}
Submitted by admin 463 days ago
import * as wmill from "https://deno.land/x/windmill@v1.85.0/mod.ts";
import Stripe from "https://esm.sh/stripe?target=deno";
export async function main(
stripe_con: wmill.Resource<"stripe">,
limit: number,
) {
const token = stripe_con["token"];
const stripe = Stripe(
`${token}`,
{
httpClient: Stripe.createFetchHttpClient(),
},
);
const balanceTransactions = await stripe.balanceTransactions.list({
limit: limit,
});
return await balanceTransactions.json();
}
Submitted by adam186 591 days ago
import * as wmill from "https://deno.land/x/windmill@v1.70.1/mod.ts";
import Stripe from "https://esm.sh/stripe?target=deno";
export async function main(
stripe_con: wmill.Resource<"stripe">,
limit: number,
) {
const token = stripe_con["token"];
const stripe = Stripe(
`${token}`,
{
httpClient: Stripe.createFetchHttpClient(),
},
);
const balanceTransactions = await stripe.balanceTransactions.list({
limit: limit,
});
return await balanceTransactions.json();
}
Submitted by adam186 626 days ago
import * as wmill from "https://deno.land/x/windmill@v1.34.0/mod.ts";
import Stripe from "https://esm.sh/stripe?target=deno";
export async function main(
stripe_con: wmill.Resource<"stripe">,
limit: number,
) {
const token = stripe_con["token"];
const stripe = Stripe(
`${token}`,
{
httpClient: Stripe.createFetchHttpClient(),
},
);
const balanceTransactions = await stripe.balanceTransactions.list({
limit: limit,
});
return await balanceTransactions.json();
}
Submitted by rossmccrann 813 days ago