Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdks/node/src/resources/AccountLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { BaseResource } from './Base';
import { AccountLink } from '@zoneless/shared-types';
import type { CreateAccountLinkInput } from '../generated/Inputs';
/**
* @see https://zoneless.com/docs/account-links
* @see https://docs.zoneless.com/account-links
*/
export class AccountLinks extends BaseResource {
/** @see https://zoneless.com/docs/account-links/create */
/** @see https://docs.zoneless.com/account-links/create */
async create(params: CreateAccountLinkInput): Promise<AccountLink> {
return this.client.Post<AccountLink>('/account_links', params);
}
Expand Down
38 changes: 19 additions & 19 deletions sdks/node/src/resources/Accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { ApplyDateFilter } from '../utils';
import { Persons } from './Persons';
import { LoginLinks } from './LoginLinks';
/**
* @see https://zoneless.com/docs/accounts
* @see https://docs.zoneless.com/accounts
*/
export class Accounts extends BaseResource {
private readonly externalAccounts: ExternalAccounts;
Expand All @@ -43,25 +43,25 @@ export class Accounts extends BaseResource {
this.loginLinks = new LoginLinks(client);
}

/** @see https://zoneless.com/docs/accounts/create */
/** @see https://docs.zoneless.com/accounts/create */
async create(
params: CreateAccountInput = {},
options?: RequestExtraOptions
): Promise<Account> {
return this.client.Post<Account>('/accounts', params, options);
}

/** @see https://zoneless.com/docs/accounts/retrieve */
/** @see https://docs.zoneless.com/accounts/retrieve */
async retrieve(id: string, options?: RequestExtraOptions): Promise<Account> {
return this.client.Get<Account>(`/accounts/${id}`, undefined, options);
}

/** @see https://zoneless.com/docs/accounts/retrieve */
/** @see https://docs.zoneless.com/accounts/retrieve */
async retrieveMe(options?: RequestExtraOptions): Promise<Account> {
return this.client.Get<Account>('/accounts/me', undefined, options);
}

/** @see https://zoneless.com/docs/accounts/update */
/** @see https://docs.zoneless.com/accounts/update */
async update(
id: string,
params: UpdateAccountInput,
Expand All @@ -70,7 +70,7 @@ export class Accounts extends BaseResource {
return this.client.Post<Account>(`/accounts/${id}`, params, options);
}

/** @see https://zoneless.com/docs/accounts/delete */
/** @see https://docs.zoneless.com/accounts/delete */
async del(
id: string,
options?: RequestExtraOptions
Expand All @@ -82,7 +82,7 @@ export class Accounts extends BaseResource {
);
}

/** @see https://zoneless.com/docs/accounts/list */
/** @see https://docs.zoneless.com/accounts/list */
async list(
params: ListAccountsInput = {},
options?: RequestExtraOptions
Expand All @@ -98,7 +98,7 @@ export class Accounts extends BaseResource {
return this.client.Get<ListResponse<Account>>('/accounts', query, options);
}

/** @see https://zoneless.com/docs/accounts/reject */
/** @see https://docs.zoneless.com/accounts/reject */
async reject(
id: string,
params: RejectAccountInput,
Expand All @@ -111,23 +111,23 @@ export class Accounts extends BaseResource {
// External Accounts (Wallets)
// ============================================

/** @see https://zoneless.com/docs/external-wallets/create */
/** @see https://docs.zoneless.com/external-wallets/create */
async createExternalAccount(
accountId: string,
params: CreateExternalWalletInput
): Promise<ExternalWallet> {
return this.externalAccounts.create(accountId, params);
}

/** @see https://zoneless.com/docs/external-wallets/retrieve */
/** @see https://docs.zoneless.com/external-wallets/retrieve */
async retrieveExternalAccount(
accountId: string,
externalAccountId: string
): Promise<ExternalWallet> {
return this.externalAccounts.retrieve(accountId, externalAccountId);
}

/** @see https://zoneless.com/docs/external-wallets/update */
/** @see https://docs.zoneless.com/external-wallets/update */
async updateExternalAccount(
accountId: string,
externalAccountId: string,
Expand All @@ -136,15 +136,15 @@ export class Accounts extends BaseResource {
return this.externalAccounts.update(accountId, externalAccountId, params);
}

/** @see https://zoneless.com/docs/external-wallets/delete */
/** @see https://docs.zoneless.com/external-wallets/delete */
async deleteExternalAccount(
accountId: string,
externalAccountId: string
): Promise<ExternalWalletDeletedResponse> {
return this.externalAccounts.del(accountId, externalAccountId);
}

/** @see https://zoneless.com/docs/external-wallets/list */
/** @see https://docs.zoneless.com/external-wallets/list */
async listExternalAccounts(
accountId: string,
params: ListExternalWalletsInput = {}
Expand All @@ -156,20 +156,20 @@ export class Accounts extends BaseResource {
// Persons
// ============================================

/** @see https://zoneless.com/docs/persons/create */
/** @see https://docs.zoneless.com/persons/create */
async createPerson(
accountId: string,
params: CreatePersonInput = {}
): Promise<Person> {
return this.persons.create(accountId, params);
}

/** @see https://zoneless.com/docs/persons/retrieve */
/** @see https://docs.zoneless.com/persons/retrieve */
async retrievePerson(accountId: string, personId: string): Promise<Person> {
return this.persons.retrieve(accountId, personId);
}

/** @see https://zoneless.com/docs/persons/update */
/** @see https://docs.zoneless.com/persons/update */
async updatePerson(
accountId: string,
personId: string,
Expand All @@ -178,15 +178,15 @@ export class Accounts extends BaseResource {
return this.persons.update(accountId, personId, params);
}

/** @see https://zoneless.com/docs/persons/delete */
/** @see https://docs.zoneless.com/persons/delete */
async deletePerson(
accountId: string,
personId: string
): Promise<PersonDeleted> {
return this.persons.del(accountId, personId);
}

/** @see https://zoneless.com/docs/persons/list */
/** @see https://docs.zoneless.com/persons/list */
async listPersons(
accountId: string,
params: ListPersonsInput = {}
Expand All @@ -198,7 +198,7 @@ export class Accounts extends BaseResource {
// Login Links
// ============================================

/** @see https://zoneless.com/docs/login-links/create */
/** @see https://docs.zoneless.com/login-links/create */
async createLoginLink(accountId: string): Promise<LoginLink> {
return this.loginLinks.create(accountId);
}
Expand Down
4 changes: 2 additions & 2 deletions sdks/node/src/resources/Balance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { Balance } from '@zoneless/shared-types';
export type RetrieveBalanceOptions = RequestExtraOptions;

/**
* @see https://zoneless.com/docs/balance
* @see https://docs.zoneless.com/balance
*/
export class BalanceResource extends BaseResource {
/** @see https://zoneless.com/docs/balance/retrieve */
/** @see https://docs.zoneless.com/balance/retrieve */
async retrieve(options?: RequestExtraOptions): Promise<Balance> {
return this.client.Get<Balance>('/balance', undefined, options);
}
Expand Down
6 changes: 3 additions & 3 deletions sdks/node/src/resources/BalanceTransactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export interface BalanceTransactionRequestOptions {
}

/**
* @see https://zoneless.com/docs/balance-transactions
* @see https://docs.zoneless.com/balance-transactions
*/
export class BalanceTransactions extends BaseResource {
/** @see https://zoneless.com/docs/balance-transactions/retrieve */
/** @see https://docs.zoneless.com/balance-transactions/retrieve */
async retrieve(
id: string,
options: BalanceTransactionRequestOptions = {}
Expand All @@ -25,7 +25,7 @@ export class BalanceTransactions extends BaseResource {
);
}

/** @see https://zoneless.com/docs/balance-transactions/list */
/** @see https://docs.zoneless.com/balance-transactions/list */
async list(
params: ListBalanceTransactionsInput = {},
options: BalanceTransactionRequestOptions = {}
Expand Down
6 changes: 3 additions & 3 deletions sdks/node/src/resources/Billing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import type { RunBillingForPlatformInput } from '../generated/Inputs';
* exposed here — it requires a special operator key.
*
* @zoneless_extension
* @see https://zoneless.com/docs/billing
* @see https://docs.zoneless.com/billing
*/
export class Billing extends BaseResource {
/**
* Run one billing pass for the authenticated platform: process due renewals
* and invoice retries.
*
* @see https://zoneless.com/docs/billing/run_for_platform
* @see https://docs.zoneless.com/billing/run_for_platform
*/
async runForPlatform(
params: RunBillingForPlatformInput = {}
Expand All @@ -30,7 +30,7 @@ export class Billing extends BaseResource {
* The monitor is disabled by default for multi-instance deployments; prefer
* `runForPlatform` via cron / Cloud Scheduler instead.
*
* @see https://zoneless.com/docs/billing/monitor/status
* @see https://docs.zoneless.com/billing/monitor/status
*/
async monitorStatus(): Promise<BillingMonitorStatus> {
return this.client.Get<BillingMonitorStatus>('/billing/monitor/status');
Expand Down
12 changes: 6 additions & 6 deletions sdks/node/src/resources/Charges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,28 @@ import type {
} from '../generated/Inputs';

/**
* @see https://zoneless.com/docs/charges
* @see https://docs.zoneless.com/charges
*/
export class Charges extends BaseResource {
/** @see https://zoneless.com/docs/charges/create */
/** @see https://docs.zoneless.com/charges/create */
async create(params: CreateChargeInput): Promise<Charge> {
return this.client.Post<Charge>('/charges', params);
}

/** @see https://zoneless.com/docs/charges/update */
/** @see https://docs.zoneless.com/charges/update */
async update(id: string, params: UpdateChargeInput): Promise<Charge> {
return this.client.Post<Charge>(`/charges/${id}`, params);
}

/** @see https://zoneless.com/docs/charges/retrieve */
/** @see https://docs.zoneless.com/charges/retrieve */
async retrieve(
id: string,
params: RetrieveChargeInput = {}
): Promise<Charge> {
return this.client.Get<Charge>(`/charges/${id}`, params);
}

/** @see https://zoneless.com/docs/charges/list */
/** @see https://docs.zoneless.com/charges/list */
async list(params: ListChargesInput = {}): Promise<ListResponse<Charge>> {
return this.client.Get<ListResponse<Charge>>(
'/charges',
Expand All @@ -41,7 +41,7 @@ export class Charges extends BaseResource {

/**
* Capture the payment of an existing, uncaptured charge.
* @see https://zoneless.com/docs/charges/capture
* @see https://docs.zoneless.com/charges/capture
*/
async capture(id: string, params: CaptureChargeInput = {}): Promise<Charge> {
return this.client.Post<Charge>(`/charges/${id}/capture`, params);
Expand Down
2 changes: 1 addition & 1 deletion sdks/node/src/resources/Checkout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { CheckoutSessions } from './CheckoutSessions';
/**
* Checkout API namespace.
*
* @see https://zoneless.com/docs/checkout/sessions
* @see https://docs.zoneless.com/checkout/sessions
*/
export class Checkout {
/** Checkout Sessions API resource */
Expand Down
16 changes: 8 additions & 8 deletions sdks/node/src/resources/CheckoutSessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ import type {
} from '../generated/Inputs';

/**
* @see https://zoneless.com/docs/checkout/sessions
* @see https://docs.zoneless.com/checkout/sessions
*/
export class CheckoutSessions extends BaseResource {
/** @see https://zoneless.com/docs/checkout/sessions/create */
/** @see https://docs.zoneless.com/checkout/sessions/create */
async create(params: CreateCheckoutSessionInput): Promise<CheckoutSession> {
return this.client.Post<CheckoutSession>('/checkout/sessions', params);
}

/** @see https://zoneless.com/docs/checkout/sessions/update */
/** @see https://docs.zoneless.com/checkout/sessions/update */
async update(
id: string,
params: UpdateCheckoutSessionInput
Expand All @@ -35,15 +35,15 @@ export class CheckoutSessions extends BaseResource {
);
}

/** @see https://zoneless.com/docs/checkout/sessions/retrieve */
/** @see https://docs.zoneless.com/checkout/sessions/retrieve */
async retrieve(
id: string,
params: RetrieveCheckoutSessionInput = {}
): Promise<CheckoutSession> {
return this.client.Get<CheckoutSession>(`/checkout/sessions/${id}`, params);
}

/** @see https://zoneless.com/docs/checkout/sessions/expire */
/** @see https://docs.zoneless.com/checkout/sessions/expire */
async expire(
id: string,
params: ExpireCheckoutSessionInput = {}
Expand All @@ -54,7 +54,7 @@ export class CheckoutSessions extends BaseResource {
);
}

/** @see https://zoneless.com/docs/checkout/sessions/list-line-items */
/** @see https://docs.zoneless.com/checkout/sessions/list-line-items */
async listLineItems(
id: string,
params: ListCheckoutSessionLineItemsInput = {}
Expand All @@ -65,7 +65,7 @@ export class CheckoutSessions extends BaseResource {
);
}

/** @see https://zoneless.com/docs/checkout/sessions/list */
/** @see https://docs.zoneless.com/checkout/sessions/list */
async list(
params: ListCheckoutSessionsInput = {}
): Promise<ListResponse<CheckoutSession>> {
Expand All @@ -90,7 +90,7 @@ export class CheckoutSessions extends BaseResource {
);
}

/** @see https://zoneless.com/docs/checkout/sessions/delete */
/** @see https://docs.zoneless.com/checkout/sessions/delete */
async del(customerId: string): Promise<CheckoutSessionDeleted> {
return this.client.Delete<CheckoutSessionDeleted>(
`/checkout/sessions/${customerId}`
Expand Down
12 changes: 6 additions & 6 deletions sdks/node/src/resources/Customers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@ import type {
} from '../generated/Inputs';

/**
* @see https://zoneless.com/docs/customers
* @see https://docs.zoneless.com/customers
*/
export class Customers extends BaseResource {
/** @see https://zoneless.com/docs/customers/create */
/** @see https://docs.zoneless.com/customers/create */
async create(params: CreateCustomerInput): Promise<Customer> {
return this.client.Post<Customer>('/customers', params);
}

/** @see https://zoneless.com/docs/customers/update */
/** @see https://docs.zoneless.com/customers/update */
async update(id: string, params: UpdateCustomerInput): Promise<Customer> {
return this.client.Post<Customer>(`/customers/${id}`, params);
}

/** @see https://zoneless.com/docs/customers/retrieve */
/** @see https://docs.zoneless.com/customers/retrieve */
async retrieve(
id: string,
params: RetrieveCustomerInput = {}
): Promise<Customer> {
return this.client.Get<Customer>(`/customers/${id}`, params);
}

/** @see https://zoneless.com/docs/customers/list */
/** @see https://docs.zoneless.com/customers/list */
async list(params: ListCustomersInput = {}): Promise<ListResponse<Customer>> {
const query: ListQuery = {
limit: params.limit,
Expand All @@ -46,7 +46,7 @@ export class Customers extends BaseResource {
return this.client.Get<ListResponse<Customer>>(`/customers`, query);
}

/** @see https://zoneless.com/docs/customers/delete */
/** @see https://docs.zoneless.com/customers/delete */
async del(customerId: string): Promise<CustomerDeleted> {
return this.client.Delete<CustomerDeleted>(`/customers/${customerId}`);
}
Expand Down
Loading
Loading