Skip to content

Commit

Permalink
feat(api): add payment and external bank accounts resource (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Jul 27, 2023
1 parent 595e71b commit 5e05974
Show file tree
Hide file tree
Showing 13 changed files with 1,114 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 74
configured_endpoints: 83
44 changes: 44 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,47 @@ Methods:

- <code>client.webhooks.<a href="./src/resources/webhooks.ts">unwrap</a>(...args) -> Object</code>
- <code>client.webhooks.<a href="./src/resources/webhooks.ts">verifySignature</a>(...args) -> void</code>

# ExternalBankAccounts

Types:

- <code><a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">ExternalBankAccountAddress</a></code>
- <code><a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">OwnerType</a></code>
- <code><a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">VerificationMethod</a></code>
- <code><a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">ExternalBankAccountCreateResponse</a></code>
- <code><a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">ExternalBankAccountRetrieveResponse</a></code>
- <code><a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">ExternalBankAccountUpdateResponse</a></code>
- <code><a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">ExternalBankAccountListResponse</a></code>

Methods:

- <code title="post /external_bank_accounts">client.externalBankAccounts.<a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">create</a>({ ...params }) -> ExternalBankAccountCreateResponse</code>
- <code title="get /external_bank_accounts/{external_bank_account_token}">client.externalBankAccounts.<a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">retrieve</a>(externalBankAccountToken) -> ExternalBankAccountRetrieveResponse</code>
- <code title="patch /external_bank_accounts/{external_bank_account_token}">client.externalBankAccounts.<a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">update</a>(externalBankAccountToken, { ...params }) -> ExternalBankAccountUpdateResponse</code>
- <code title="get /external_bank_accounts">client.externalBankAccounts.<a href="./src/resources/external-bank-accounts/external-bank-accounts.ts">list</a>({ ...params }) -> ExternalBankAccountListResponsesCursorPage</code>

## MicroDeposits

Types:

- <code><a href="./src/resources/external-bank-accounts/micro-deposits.ts">MicroDepositCreateResponse</a></code>

Methods:

- <code title="post /external_bank_accounts/{external_bank_account_token}/micro_deposits">client.externalBankAccounts.microDeposits.<a href="./src/resources/external-bank-accounts/micro-deposits.ts">create</a>(externalBankAccountToken, { ...params }) -> MicroDepositCreateResponse</code>

# Payments

Types:

- <code><a href="./src/resources/payments.ts">Payment</a></code>
- <code><a href="./src/resources/payments.ts">PaymentCreateResponse</a></code>
- <code><a href="./src/resources/payments.ts">PaymentSimulateReleaseResponse</a></code>

Methods:

- <code title="post /payments">client.payments.<a href="./src/resources/payments.ts">create</a>({ ...params }) -> PaymentCreateResponse</code>
- <code title="get /payments/{payment_token}">client.payments.<a href="./src/resources/payments.ts">retrieve</a>(paymentToken) -> Payment</code>
- <code title="get /payments">client.payments.<a href="./src/resources/payments.ts">list</a>({ ...params }) -> PaymentsCursorPage</code>
- <code title="post /simulate/payments/release">client.payments.<a href="./src/resources/payments.ts">simulateRelease</a>({ ...params }) -> PaymentSimulateReleaseResponse</code>
24 changes: 24 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ export class Lithic extends Core.APIClient {
transactions: API.Transactions = new API.Transactions(this);
responderEndpoints: API.ResponderEndpoints = new API.ResponderEndpoints(this);
webhooks: API.Webhooks = new API.Webhooks(this);
externalBankAccounts: API.ExternalBankAccounts = new API.ExternalBankAccounts(this);
payments: API.Payments = new API.Payments(this);

/**
* API status check
Expand Down Expand Up @@ -344,6 +346,28 @@ export namespace Lithic {

export import Webhooks = API.Webhooks;

export import ExternalBankAccounts = API.ExternalBankAccounts;
export import ExternalBankAccountAddress = API.ExternalBankAccountAddress;
export import OwnerType = API.OwnerType;
export import VerificationMethod = API.VerificationMethod;
export import ExternalBankAccountCreateResponse = API.ExternalBankAccountCreateResponse;
export import ExternalBankAccountRetrieveResponse = API.ExternalBankAccountRetrieveResponse;
export import ExternalBankAccountUpdateResponse = API.ExternalBankAccountUpdateResponse;
export import ExternalBankAccountListResponse = API.ExternalBankAccountListResponse;
export import ExternalBankAccountListResponsesCursorPage = API.ExternalBankAccountListResponsesCursorPage;
export import ExternalBankAccountCreateParams = API.ExternalBankAccountCreateParams;
export import ExternalBankAccountUpdateParams = API.ExternalBankAccountUpdateParams;
export import ExternalBankAccountListParams = API.ExternalBankAccountListParams;

export import Payments = API.Payments;
export import Payment = API.Payment;
export import PaymentCreateResponse = API.PaymentCreateResponse;
export import PaymentSimulateReleaseResponse = API.PaymentSimulateReleaseResponse;
export import PaymentsCursorPage = API.PaymentsCursorPage;
export import PaymentCreateParams = API.PaymentCreateParams;
export import PaymentListParams = API.PaymentListParams;
export import PaymentSimulateReleaseParams = API.PaymentSimulateReleaseParams;

export import Address = API.Address;
export import ShippingAddress = API.ShippingAddress;
}
Expand Down
Loading

0 comments on commit 5e05974

Please sign in to comment.