diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4d3070d..bec92b0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -61,14 +61,18 @@ jobs:
run: rye build
- name: Get GitHub OIDC Token
- if: github.repository == 'stainless-sdks/slash-sdk-python'
+ if: |-
+ github.repository == 'stainless-sdks/slash-sdk-python' &&
+ !startsWith(github.ref, 'refs/heads/stl/')
id: github-oidc
uses: actions/github-script@v8
with:
script: core.setOutput('github_token', await core.getIDToken());
- name: Upload tarball
- if: github.repository == 'stainless-sdks/slash-sdk-python'
+ if: |-
+ github.repository == 'stainless-sdks/slash-sdk-python' &&
+ !startsWith(github.ref, 'refs/heads/stl/')
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index aaf968a..b56c3d0 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.1.0-alpha.3"
+ ".": "0.1.0-alpha.4"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index f2f2901..9e00393 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
-configured_endpoints: 55
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/slash-financial--inc-dash%2Fslash-sdk-773c90f079c54155b39d84d7cf37ff7a2b89c74865c56a6cf86db730c36751a2.yml
-openapi_spec_hash: 95129e670c6a3e832a1ea3fc64c07b11
+configured_endpoints: 52
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/slash-financial--inc-dash%2Fslash-sdk-967ca7ecd5a8719048480ac299c1fba7ba23b689a2757ae8a4286dbc73ce8c06.yml
+openapi_spec_hash: bc23b9abe5a49d18e3f1679c4043f672
config_hash: 9a5c338a583a0bc1a2e798ec5b94d860
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d8563dd..e321667 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,21 @@
# Changelog
+## 0.1.0-alpha.4 (2026-03-14)
+
+Full Changelog: [v0.1.0-alpha.3...v0.1.0-alpha.4](https://github.com/slashfi/slash-sdk-python/compare/v0.1.0-alpha.3...v0.1.0-alpha.4)
+
+### Features
+
+* **api:** api update ([f1eff44](https://github.com/slashfi/slash-sdk-python/commit/f1eff440f3ef4ed6a0495ccba3ecd7826d862c9c))
+* **api:** api update ([47ea2de](https://github.com/slashfi/slash-sdk-python/commit/47ea2de42a4430641a44e10101e79693cfa94ba4))
+* **api:** api update ([403ce72](https://github.com/slashfi/slash-sdk-python/commit/403ce72fe8450996c6eec0b12d18605d6fd1ba10))
+* **api:** api update ([68fa0ae](https://github.com/slashfi/slash-sdk-python/commit/68fa0aeac982ca051911fb116fc585f60ec8d3b5))
+
+
+### Chores
+
+* **ci:** skip uploading artifacts on stainless-internal branches ([59a7a78](https://github.com/slashfi/slash-sdk-python/commit/59a7a78b6e534d5e3acb42824220a1e11c9c3a60))
+
## 0.1.0-alpha.3 (2026-03-06)
Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/slashfi/slash-sdk-python/compare/v0.1.0-alpha.2...v0.1.0-alpha.3)
diff --git a/api.md b/api.md
index 3f8e5fd..f185e28 100644
--- a/api.md
+++ b/api.md
@@ -146,31 +146,6 @@ Methods:
- client.card_product.list(\*\*params) -> CardProductListResponse
-# SlashHandle
-
-Types:
-
-```python
-from slash_sdk.types import SlashHandleListResponse
-```
-
-Methods:
-
-- client.slash_handle.list(\*\*params) -> SlashHandleListResponse
-
-# Pay
-
-Types:
-
-```python
-from slash_sdk.types import SlashHandle, PaySendResponse
-```
-
-Methods:
-
-- client.pay.retrieve() -> SlashHandle
-- client.pay.send(\*\*params) -> PaySendResponse
-
# Webhook
Types:
diff --git a/pyproject.toml b/pyproject.toml
index 7be5265..5e48a2a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "slash-sdk"
-version = "0.1.0-alpha.3"
+version = "0.1.0-alpha.4"
description = "The official Python library for the slash-sdk API"
dynamic = ["readme"]
license = "Apache-2.0"
diff --git a/src/slash_sdk/_client.py b/src/slash_sdk/_client.py
index 6df78c0..b3e8e61 100644
--- a/src/slash_sdk/_client.py
+++ b/src/slash_sdk/_client.py
@@ -35,7 +35,6 @@
if TYPE_CHECKING:
from .resources import (
fdx,
- pay,
card,
crypto,
oauth2,
@@ -48,13 +47,11 @@
transaction,
card_product,
legal_entity,
- slash_handle,
virtual_account,
developer_account,
merchant_category,
developer_application,
)
- from .resources.pay import PayResource, AsyncPayResource
from .resources.crypto import CryptoResource, AsyncCryptoResource
from .resources.account import AccountResource, AsyncAccountResource
from .resources.fdx.fdx import FdxResource, AsyncFdxResource
@@ -66,7 +63,6 @@
from .resources.transaction import TransactionResource, AsyncTransactionResource
from .resources.card_product import CardProductResource, AsyncCardProductResource
from .resources.legal_entity import LegalEntityResource, AsyncLegalEntityResource
- from .resources.slash_handle import SlashHandleResource, AsyncSlashHandleResource
from .resources.oauth2.oauth2 import Oauth2Resource, AsyncOauth2Resource
from .resources.virtual_account import VirtualAccountResource, AsyncVirtualAccountResource
from .resources.developer_account import DeveloperAccountResource, AsyncDeveloperAccountResource
@@ -207,18 +203,6 @@ def card_product(self) -> CardProductResource:
return CardProductResource(self)
- @cached_property
- def slash_handle(self) -> SlashHandleResource:
- from .resources.slash_handle import SlashHandleResource
-
- return SlashHandleResource(self)
-
- @cached_property
- def pay(self) -> PayResource:
- from .resources.pay import PayResource
-
- return PayResource(self)
-
@cached_property
def webhook(self) -> WebhookResource:
from .resources.webhook import WebhookResource
@@ -548,18 +532,6 @@ def card_product(self) -> AsyncCardProductResource:
return AsyncCardProductResource(self)
- @cached_property
- def slash_handle(self) -> AsyncSlashHandleResource:
- from .resources.slash_handle import AsyncSlashHandleResource
-
- return AsyncSlashHandleResource(self)
-
- @cached_property
- def pay(self) -> AsyncPayResource:
- from .resources.pay import AsyncPayResource
-
- return AsyncPayResource(self)
-
@cached_property
def webhook(self) -> AsyncWebhookResource:
from .resources.webhook import AsyncWebhookResource
@@ -822,18 +794,6 @@ def card_product(self) -> card_product.CardProductResourceWithRawResponse:
return CardProductResourceWithRawResponse(self._client.card_product)
- @cached_property
- def slash_handle(self) -> slash_handle.SlashHandleResourceWithRawResponse:
- from .resources.slash_handle import SlashHandleResourceWithRawResponse
-
- return SlashHandleResourceWithRawResponse(self._client.slash_handle)
-
- @cached_property
- def pay(self) -> pay.PayResourceWithRawResponse:
- from .resources.pay import PayResourceWithRawResponse
-
- return PayResourceWithRawResponse(self._client.pay)
-
@cached_property
def webhook(self) -> webhook.WebhookResourceWithRawResponse:
from .resources.webhook import WebhookResourceWithRawResponse
@@ -943,18 +903,6 @@ def card_product(self) -> card_product.AsyncCardProductResourceWithRawResponse:
return AsyncCardProductResourceWithRawResponse(self._client.card_product)
- @cached_property
- def slash_handle(self) -> slash_handle.AsyncSlashHandleResourceWithRawResponse:
- from .resources.slash_handle import AsyncSlashHandleResourceWithRawResponse
-
- return AsyncSlashHandleResourceWithRawResponse(self._client.slash_handle)
-
- @cached_property
- def pay(self) -> pay.AsyncPayResourceWithRawResponse:
- from .resources.pay import AsyncPayResourceWithRawResponse
-
- return AsyncPayResourceWithRawResponse(self._client.pay)
-
@cached_property
def webhook(self) -> webhook.AsyncWebhookResourceWithRawResponse:
from .resources.webhook import AsyncWebhookResourceWithRawResponse
@@ -1064,18 +1012,6 @@ def card_product(self) -> card_product.CardProductResourceWithStreamingResponse:
return CardProductResourceWithStreamingResponse(self._client.card_product)
- @cached_property
- def slash_handle(self) -> slash_handle.SlashHandleResourceWithStreamingResponse:
- from .resources.slash_handle import SlashHandleResourceWithStreamingResponse
-
- return SlashHandleResourceWithStreamingResponse(self._client.slash_handle)
-
- @cached_property
- def pay(self) -> pay.PayResourceWithStreamingResponse:
- from .resources.pay import PayResourceWithStreamingResponse
-
- return PayResourceWithStreamingResponse(self._client.pay)
-
@cached_property
def webhook(self) -> webhook.WebhookResourceWithStreamingResponse:
from .resources.webhook import WebhookResourceWithStreamingResponse
@@ -1185,18 +1121,6 @@ def card_product(self) -> card_product.AsyncCardProductResourceWithStreamingResp
return AsyncCardProductResourceWithStreamingResponse(self._client.card_product)
- @cached_property
- def slash_handle(self) -> slash_handle.AsyncSlashHandleResourceWithStreamingResponse:
- from .resources.slash_handle import AsyncSlashHandleResourceWithStreamingResponse
-
- return AsyncSlashHandleResourceWithStreamingResponse(self._client.slash_handle)
-
- @cached_property
- def pay(self) -> pay.AsyncPayResourceWithStreamingResponse:
- from .resources.pay import AsyncPayResourceWithStreamingResponse
-
- return AsyncPayResourceWithStreamingResponse(self._client.pay)
-
@cached_property
def webhook(self) -> webhook.AsyncWebhookResourceWithStreamingResponse:
from .resources.webhook import AsyncWebhookResourceWithStreamingResponse
diff --git a/src/slash_sdk/_version.py b/src/slash_sdk/_version.py
index bfe6468..4ffe448 100644
--- a/src/slash_sdk/_version.py
+++ b/src/slash_sdk/_version.py
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
__title__ = "slash_sdk"
-__version__ = "0.1.0-alpha.3" # x-release-please-version
+__version__ = "0.1.0-alpha.4" # x-release-please-version
diff --git a/src/slash_sdk/resources/__init__.py b/src/slash_sdk/resources/__init__.py
index 30052e3..e33636b 100644
--- a/src/slash_sdk/resources/__init__.py
+++ b/src/slash_sdk/resources/__init__.py
@@ -8,14 +8,6 @@
FdxResourceWithStreamingResponse,
AsyncFdxResourceWithStreamingResponse,
)
-from .pay import (
- PayResource,
- AsyncPayResource,
- PayResourceWithRawResponse,
- AsyncPayResourceWithRawResponse,
- PayResourceWithStreamingResponse,
- AsyncPayResourceWithStreamingResponse,
-)
from .card import (
CardResource,
AsyncCardResource,
@@ -112,14 +104,6 @@
LegalEntityResourceWithStreamingResponse,
AsyncLegalEntityResourceWithStreamingResponse,
)
-from .slash_handle import (
- SlashHandleResource,
- AsyncSlashHandleResource,
- SlashHandleResourceWithRawResponse,
- AsyncSlashHandleResourceWithRawResponse,
- SlashHandleResourceWithStreamingResponse,
- AsyncSlashHandleResourceWithStreamingResponse,
-)
from .virtual_account import (
VirtualAccountResource,
AsyncVirtualAccountResource,
@@ -202,18 +186,6 @@
"AsyncCardProductResourceWithRawResponse",
"CardProductResourceWithStreamingResponse",
"AsyncCardProductResourceWithStreamingResponse",
- "SlashHandleResource",
- "AsyncSlashHandleResource",
- "SlashHandleResourceWithRawResponse",
- "AsyncSlashHandleResourceWithRawResponse",
- "SlashHandleResourceWithStreamingResponse",
- "AsyncSlashHandleResourceWithStreamingResponse",
- "PayResource",
- "AsyncPayResource",
- "PayResourceWithRawResponse",
- "AsyncPayResourceWithRawResponse",
- "PayResourceWithStreamingResponse",
- "AsyncPayResourceWithStreamingResponse",
"WebhookResource",
"AsyncWebhookResource",
"WebhookResourceWithRawResponse",
diff --git a/src/slash_sdk/resources/card/card.py b/src/slash_sdk/resources/card/card.py
index 9dd53d1..d0f689e 100644
--- a/src/slash_sdk/resources/card/card.py
+++ b/src/slash_sdk/resources/card/card.py
@@ -246,6 +246,7 @@ def list(
filter_card_group_id: str | Omit = omit,
filter_card_group_name: str | Omit = omit,
filter_legal_entity_id: str | Omit = omit,
+ filter_modifier: str | Omit = omit,
filter_status: Literal["active", "paused", "closed", "inactive"] | Omit = omit,
filter_virtual_account_id: str | Omit = omit,
sort: Literal["createdAt", "name"] | Omit = omit,
@@ -274,6 +275,10 @@ def list(
filter_legal_entity_id: Pass in a legal entity ID to filter for cards in accounts under a specific legal
entity.
+ filter_modifier: Filter cards by modifier. Format is "modifier_name:value" (e.g.,
+ "only_allow_recurring_payments:true"). Returns cards where the specified
+ modifier has the given value.
+
filter_status: Returns all cards matching the status passed in.
filter_virtual_account_id: Pass in a virtual account ID to filter for cards under a specific virtual
@@ -305,6 +310,7 @@ def list(
"filter_card_group_id": filter_card_group_id,
"filter_card_group_name": filter_card_group_name,
"filter_legal_entity_id": filter_legal_entity_id,
+ "filter_modifier": filter_modifier,
"filter_status": filter_status,
"filter_virtual_account_id": filter_virtual_account_id,
"sort": sort,
@@ -560,6 +566,7 @@ async def list(
filter_card_group_id: str | Omit = omit,
filter_card_group_name: str | Omit = omit,
filter_legal_entity_id: str | Omit = omit,
+ filter_modifier: str | Omit = omit,
filter_status: Literal["active", "paused", "closed", "inactive"] | Omit = omit,
filter_virtual_account_id: str | Omit = omit,
sort: Literal["createdAt", "name"] | Omit = omit,
@@ -588,6 +595,10 @@ async def list(
filter_legal_entity_id: Pass in a legal entity ID to filter for cards in accounts under a specific legal
entity.
+ filter_modifier: Filter cards by modifier. Format is "modifier_name:value" (e.g.,
+ "only_allow_recurring_payments:true"). Returns cards where the specified
+ modifier has the given value.
+
filter_status: Returns all cards matching the status passed in.
filter_virtual_account_id: Pass in a virtual account ID to filter for cards under a specific virtual
@@ -619,6 +630,7 @@ async def list(
"filter_card_group_id": filter_card_group_id,
"filter_card_group_name": filter_card_group_name,
"filter_legal_entity_id": filter_legal_entity_id,
+ "filter_modifier": filter_modifier,
"filter_status": filter_status,
"filter_virtual_account_id": filter_virtual_account_id,
"sort": sort,
diff --git a/src/slash_sdk/resources/pay.py b/src/slash_sdk/resources/pay.py
deleted file mode 100644
index c8bbc12..0000000
--- a/src/slash_sdk/resources/pay.py
+++ /dev/null
@@ -1,270 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from __future__ import annotations
-
-from typing import Any, cast
-
-import httpx
-
-from ..types import pay_send_params
-from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
-from .._utils import maybe_transform, async_maybe_transform
-from .._compat import cached_property
-from .._resource import SyncAPIResource, AsyncAPIResource
-from .._response import (
- to_raw_response_wrapper,
- to_streamed_response_wrapper,
- async_to_raw_response_wrapper,
- async_to_streamed_response_wrapper,
-)
-from .._base_client import make_request_options
-from ..types.slash_handle import SlashHandle
-from ..types.pay_send_response import PaySendResponse
-
-__all__ = ["PayResource", "AsyncPayResource"]
-
-
-class PayResource(SyncAPIResource):
- @cached_property
- def with_raw_response(self) -> PayResourceWithRawResponse:
- """
- This property can be used as a prefix for any HTTP method call to return
- the raw response object instead of the parsed content.
-
- For more information, see https://www.github.com/slashfi/slash-sdk-python#accessing-raw-response-data-eg-headers
- """
- return PayResourceWithRawResponse(self)
-
- @cached_property
- def with_streaming_response(self) -> PayResourceWithStreamingResponse:
- """
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
-
- For more information, see https://www.github.com/slashfi/slash-sdk-python#with_streaming_response
- """
- return PayResourceWithStreamingResponse(self)
-
- def retrieve(
- self,
- *,
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
- # The extra values given here take precedence over values defined on the client or passed to this method.
- extra_headers: Headers | None = None,
- extra_query: Query | None = None,
- extra_body: Body | None = None,
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> SlashHandle:
- """Retrieve your pay by slash information."""
- return self._get(
- "/pay",
- options=make_request_options(
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
- ),
- cast_to=SlashHandle,
- )
-
- def send(
- self,
- *,
- amount_cents: float,
- slash_handle: str,
- legal_entity_id: str | Omit = omit,
- source_slash_handle_id: str | Omit = omit,
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
- # The extra values given here take precedence over values defined on the client or passed to this method.
- extra_headers: Headers | None = None,
- extra_query: Query | None = None,
- extra_body: Body | None = None,
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PaySendResponse:
- """
- Send money to a slash handle
-
- Args:
- amount_cents: The amount of money to send in cents.
-
- slash_handle: The username of the SlashHandle to send money to. You can get this by asking
- your recipient for their SlashHandle.
-
- legal_entity_id: The ID of the LegalEntity to send money from. You can get this by calling
- `GET /legal-entity`. This field or `slashHandleId` is required unless you are
- authenticating via API key.
-
- source_slash_handle_id: The ID of the SlashHandle to send money from. You can get this by calling
- `GET /slash-handle`. This field or `legalEntityId` is required unless you are
- authenticating via API key.
-
- extra_headers: Send extra headers
-
- extra_query: Add additional query parameters to the request
-
- extra_body: Add additional JSON properties to the request
-
- timeout: Override the client-level default timeout for this request, in seconds
- """
- return cast(
- PaySendResponse,
- self._post(
- "/pay",
- body=maybe_transform(
- {
- "amount_cents": amount_cents,
- "slash_handle": slash_handle,
- "legal_entity_id": legal_entity_id,
- "source_slash_handle_id": source_slash_handle_id,
- },
- pay_send_params.PaySendParams,
- ),
- options=make_request_options(
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
- ),
- cast_to=cast(Any, PaySendResponse), # Union types cannot be passed in as arguments in the type system
- ),
- )
-
-
-class AsyncPayResource(AsyncAPIResource):
- @cached_property
- def with_raw_response(self) -> AsyncPayResourceWithRawResponse:
- """
- This property can be used as a prefix for any HTTP method call to return
- the raw response object instead of the parsed content.
-
- For more information, see https://www.github.com/slashfi/slash-sdk-python#accessing-raw-response-data-eg-headers
- """
- return AsyncPayResourceWithRawResponse(self)
-
- @cached_property
- def with_streaming_response(self) -> AsyncPayResourceWithStreamingResponse:
- """
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
-
- For more information, see https://www.github.com/slashfi/slash-sdk-python#with_streaming_response
- """
- return AsyncPayResourceWithStreamingResponse(self)
-
- async def retrieve(
- self,
- *,
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
- # The extra values given here take precedence over values defined on the client or passed to this method.
- extra_headers: Headers | None = None,
- extra_query: Query | None = None,
- extra_body: Body | None = None,
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> SlashHandle:
- """Retrieve your pay by slash information."""
- return await self._get(
- "/pay",
- options=make_request_options(
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
- ),
- cast_to=SlashHandle,
- )
-
- async def send(
- self,
- *,
- amount_cents: float,
- slash_handle: str,
- legal_entity_id: str | Omit = omit,
- source_slash_handle_id: str | Omit = omit,
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
- # The extra values given here take precedence over values defined on the client or passed to this method.
- extra_headers: Headers | None = None,
- extra_query: Query | None = None,
- extra_body: Body | None = None,
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> PaySendResponse:
- """
- Send money to a slash handle
-
- Args:
- amount_cents: The amount of money to send in cents.
-
- slash_handle: The username of the SlashHandle to send money to. You can get this by asking
- your recipient for their SlashHandle.
-
- legal_entity_id: The ID of the LegalEntity to send money from. You can get this by calling
- `GET /legal-entity`. This field or `slashHandleId` is required unless you are
- authenticating via API key.
-
- source_slash_handle_id: The ID of the SlashHandle to send money from. You can get this by calling
- `GET /slash-handle`. This field or `legalEntityId` is required unless you are
- authenticating via API key.
-
- extra_headers: Send extra headers
-
- extra_query: Add additional query parameters to the request
-
- extra_body: Add additional JSON properties to the request
-
- timeout: Override the client-level default timeout for this request, in seconds
- """
- return cast(
- PaySendResponse,
- await self._post(
- "/pay",
- body=await async_maybe_transform(
- {
- "amount_cents": amount_cents,
- "slash_handle": slash_handle,
- "legal_entity_id": legal_entity_id,
- "source_slash_handle_id": source_slash_handle_id,
- },
- pay_send_params.PaySendParams,
- ),
- options=make_request_options(
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
- ),
- cast_to=cast(Any, PaySendResponse), # Union types cannot be passed in as arguments in the type system
- ),
- )
-
-
-class PayResourceWithRawResponse:
- def __init__(self, pay: PayResource) -> None:
- self._pay = pay
-
- self.retrieve = to_raw_response_wrapper(
- pay.retrieve,
- )
- self.send = to_raw_response_wrapper(
- pay.send,
- )
-
-
-class AsyncPayResourceWithRawResponse:
- def __init__(self, pay: AsyncPayResource) -> None:
- self._pay = pay
-
- self.retrieve = async_to_raw_response_wrapper(
- pay.retrieve,
- )
- self.send = async_to_raw_response_wrapper(
- pay.send,
- )
-
-
-class PayResourceWithStreamingResponse:
- def __init__(self, pay: PayResource) -> None:
- self._pay = pay
-
- self.retrieve = to_streamed_response_wrapper(
- pay.retrieve,
- )
- self.send = to_streamed_response_wrapper(
- pay.send,
- )
-
-
-class AsyncPayResourceWithStreamingResponse:
- def __init__(self, pay: AsyncPayResource) -> None:
- self._pay = pay
-
- self.retrieve = async_to_streamed_response_wrapper(
- pay.retrieve,
- )
- self.send = async_to_streamed_response_wrapper(
- pay.send,
- )
diff --git a/src/slash_sdk/resources/slash_handle.py b/src/slash_sdk/resources/slash_handle.py
deleted file mode 100644
index b54c0fc..0000000
--- a/src/slash_sdk/resources/slash_handle.py
+++ /dev/null
@@ -1,173 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from __future__ import annotations
-
-import httpx
-
-from ..types import slash_handle_list_params
-from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
-from .._utils import maybe_transform, async_maybe_transform
-from .._compat import cached_property
-from .._resource import SyncAPIResource, AsyncAPIResource
-from .._response import (
- to_raw_response_wrapper,
- to_streamed_response_wrapper,
- async_to_raw_response_wrapper,
- async_to_streamed_response_wrapper,
-)
-from .._base_client import make_request_options
-from ..types.slash_handle_list_response import SlashHandleListResponse
-
-__all__ = ["SlashHandleResource", "AsyncSlashHandleResource"]
-
-
-class SlashHandleResource(SyncAPIResource):
- @cached_property
- def with_raw_response(self) -> SlashHandleResourceWithRawResponse:
- """
- This property can be used as a prefix for any HTTP method call to return
- the raw response object instead of the parsed content.
-
- For more information, see https://www.github.com/slashfi/slash-sdk-python#accessing-raw-response-data-eg-headers
- """
- return SlashHandleResourceWithRawResponse(self)
-
- @cached_property
- def with_streaming_response(self) -> SlashHandleResourceWithStreamingResponse:
- """
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
-
- For more information, see https://www.github.com/slashfi/slash-sdk-python#with_streaming_response
- """
- return SlashHandleResourceWithStreamingResponse(self)
-
- def list(
- self,
- *,
- cursor: str | Omit = omit,
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
- # The extra values given here take precedence over values defined on the client or passed to this method.
- extra_headers: Headers | None = None,
- extra_query: Query | None = None,
- extra_body: Body | None = None,
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> SlashHandleListResponse:
- """
- List all of your Slash Handles
-
- Args:
- cursor: A cursor string to fetch the next page of results
-
- extra_headers: Send extra headers
-
- extra_query: Add additional query parameters to the request
-
- extra_body: Add additional JSON properties to the request
-
- timeout: Override the client-level default timeout for this request, in seconds
- """
- return self._get(
- "/slash-handle",
- options=make_request_options(
- extra_headers=extra_headers,
- extra_query=extra_query,
- extra_body=extra_body,
- timeout=timeout,
- query=maybe_transform({"cursor": cursor}, slash_handle_list_params.SlashHandleListParams),
- ),
- cast_to=SlashHandleListResponse,
- )
-
-
-class AsyncSlashHandleResource(AsyncAPIResource):
- @cached_property
- def with_raw_response(self) -> AsyncSlashHandleResourceWithRawResponse:
- """
- This property can be used as a prefix for any HTTP method call to return
- the raw response object instead of the parsed content.
-
- For more information, see https://www.github.com/slashfi/slash-sdk-python#accessing-raw-response-data-eg-headers
- """
- return AsyncSlashHandleResourceWithRawResponse(self)
-
- @cached_property
- def with_streaming_response(self) -> AsyncSlashHandleResourceWithStreamingResponse:
- """
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
-
- For more information, see https://www.github.com/slashfi/slash-sdk-python#with_streaming_response
- """
- return AsyncSlashHandleResourceWithStreamingResponse(self)
-
- async def list(
- self,
- *,
- cursor: str | Omit = omit,
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
- # The extra values given here take precedence over values defined on the client or passed to this method.
- extra_headers: Headers | None = None,
- extra_query: Query | None = None,
- extra_body: Body | None = None,
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
- ) -> SlashHandleListResponse:
- """
- List all of your Slash Handles
-
- Args:
- cursor: A cursor string to fetch the next page of results
-
- extra_headers: Send extra headers
-
- extra_query: Add additional query parameters to the request
-
- extra_body: Add additional JSON properties to the request
-
- timeout: Override the client-level default timeout for this request, in seconds
- """
- return await self._get(
- "/slash-handle",
- options=make_request_options(
- extra_headers=extra_headers,
- extra_query=extra_query,
- extra_body=extra_body,
- timeout=timeout,
- query=await async_maybe_transform({"cursor": cursor}, slash_handle_list_params.SlashHandleListParams),
- ),
- cast_to=SlashHandleListResponse,
- )
-
-
-class SlashHandleResourceWithRawResponse:
- def __init__(self, slash_handle: SlashHandleResource) -> None:
- self._slash_handle = slash_handle
-
- self.list = to_raw_response_wrapper(
- slash_handle.list,
- )
-
-
-class AsyncSlashHandleResourceWithRawResponse:
- def __init__(self, slash_handle: AsyncSlashHandleResource) -> None:
- self._slash_handle = slash_handle
-
- self.list = async_to_raw_response_wrapper(
- slash_handle.list,
- )
-
-
-class SlashHandleResourceWithStreamingResponse:
- def __init__(self, slash_handle: SlashHandleResource) -> None:
- self._slash_handle = slash_handle
-
- self.list = to_streamed_response_wrapper(
- slash_handle.list,
- )
-
-
-class AsyncSlashHandleResourceWithStreamingResponse:
- def __init__(self, slash_handle: AsyncSlashHandleResource) -> None:
- self._slash_handle = slash_handle
-
- self.list = async_to_streamed_response_wrapper(
- slash_handle.list,
- )
diff --git a/src/slash_sdk/resources/transaction.py b/src/slash_sdk/resources/transaction.py
index d54ef42..2c702d6 100644
--- a/src/slash_sdk/resources/transaction.py
+++ b/src/slash_sdk/resources/transaction.py
@@ -86,7 +86,9 @@ def list(
account_id: str | Omit = omit,
cursor: str | Omit = omit,
filter_account_id: str | Omit = omit,
+ filter_card_group_id: str | Omit = omit,
filter_card_id: str | Omit = omit,
+ filter_category: Literal["card", "ach", "wire", "international_wire", "rtp", "fee", "internal"] | Omit = omit,
filter_detailed_status: Literal[
"pending", "canceled", "failed", "settled", "declined", "refund", "reversed", "returned", "dispute"
]
@@ -117,8 +119,13 @@ def list(
filter_account_id: Pass in an account ID to filter transactions by account ID. This will return all
transactions that match the account ID passed in.
+ filter_card_group_id: Filter transactions by card group ID. This will return all card transactions
+ that belong to cards in the specified card group.
+
filter_card_id: Filter transactions by cardId
+ filter_category: Filter transactions by category type
+
filter_detailed_status: Filter transactions by detailed status
filter_from_authorized_at: Pass in a unix timestamp in milliseconds to filter transactions by authorization
@@ -165,7 +172,9 @@ def list(
"account_id": account_id,
"cursor": cursor,
"filter_account_id": filter_account_id,
+ "filter_card_group_id": filter_card_group_id,
"filter_card_id": filter_card_id,
+ "filter_category": filter_category,
"filter_detailed_status": filter_detailed_status,
"filter_from_authorized_at": filter_from_authorized_at,
"filter_from_date": filter_from_date,
@@ -188,6 +197,7 @@ def aggregate(
account_id: str | Omit = omit,
filter_account_id: str | Omit = omit,
filter_card_id: str | Omit = omit,
+ filter_category: Literal["card", "ach", "wire", "international_wire", "rtp", "fee", "internal"] | Omit = omit,
filter_detailed_status: Literal[
"pending", "canceled", "failed", "settled", "declined", "refund", "reversed", "returned", "dispute"
]
@@ -217,6 +227,8 @@ def aggregate(
filter_card_id: Filter transactions by cardId
+ filter_category: Filter transactions by category type
+
filter_detailed_status: Filter transactions by detailed status
filter_from_authorized_at: Pass in a unix timestamp in milliseconds to filter transactions by authorization
@@ -261,6 +273,7 @@ def aggregate(
"account_id": account_id,
"filter_account_id": filter_account_id,
"filter_card_id": filter_card_id,
+ "filter_category": filter_category,
"filter_detailed_status": filter_detailed_status,
"filter_from_authorized_at": filter_from_authorized_at,
"filter_from_date": filter_from_date,
@@ -404,7 +417,9 @@ async def list(
account_id: str | Omit = omit,
cursor: str | Omit = omit,
filter_account_id: str | Omit = omit,
+ filter_card_group_id: str | Omit = omit,
filter_card_id: str | Omit = omit,
+ filter_category: Literal["card", "ach", "wire", "international_wire", "rtp", "fee", "internal"] | Omit = omit,
filter_detailed_status: Literal[
"pending", "canceled", "failed", "settled", "declined", "refund", "reversed", "returned", "dispute"
]
@@ -435,8 +450,13 @@ async def list(
filter_account_id: Pass in an account ID to filter transactions by account ID. This will return all
transactions that match the account ID passed in.
+ filter_card_group_id: Filter transactions by card group ID. This will return all card transactions
+ that belong to cards in the specified card group.
+
filter_card_id: Filter transactions by cardId
+ filter_category: Filter transactions by category type
+
filter_detailed_status: Filter transactions by detailed status
filter_from_authorized_at: Pass in a unix timestamp in milliseconds to filter transactions by authorization
@@ -483,7 +503,9 @@ async def list(
"account_id": account_id,
"cursor": cursor,
"filter_account_id": filter_account_id,
+ "filter_card_group_id": filter_card_group_id,
"filter_card_id": filter_card_id,
+ "filter_category": filter_category,
"filter_detailed_status": filter_detailed_status,
"filter_from_authorized_at": filter_from_authorized_at,
"filter_from_date": filter_from_date,
@@ -506,6 +528,7 @@ async def aggregate(
account_id: str | Omit = omit,
filter_account_id: str | Omit = omit,
filter_card_id: str | Omit = omit,
+ filter_category: Literal["card", "ach", "wire", "international_wire", "rtp", "fee", "internal"] | Omit = omit,
filter_detailed_status: Literal[
"pending", "canceled", "failed", "settled", "declined", "refund", "reversed", "returned", "dispute"
]
@@ -535,6 +558,8 @@ async def aggregate(
filter_card_id: Filter transactions by cardId
+ filter_category: Filter transactions by category type
+
filter_detailed_status: Filter transactions by detailed status
filter_from_authorized_at: Pass in a unix timestamp in milliseconds to filter transactions by authorization
@@ -579,6 +604,7 @@ async def aggregate(
"account_id": account_id,
"filter_account_id": filter_account_id,
"filter_card_id": filter_card_id,
+ "filter_category": filter_category,
"filter_detailed_status": filter_detailed_status,
"filter_from_authorized_at": filter_from_authorized_at,
"filter_from_date": filter_from_date,
diff --git a/src/slash_sdk/types/__init__.py b/src/slash_sdk/types/__init__.py
index 0d60e31..f389de0 100644
--- a/src/slash_sdk/types/__init__.py
+++ b/src/slash_sdk/types/__init__.py
@@ -11,12 +11,9 @@
from .card_status import CardStatus as CardStatus
from .money_param import MoneyParam as MoneyParam
from .transaction import Transaction as Transaction
-from .slash_handle import SlashHandle as SlashHandle
from .commission_rule import CommissionRule as CommissionRule
-from .pay_send_params import PaySendParams as PaySendParams
from .virtual_account import VirtualAccount as VirtualAccount
from .card_list_params import CardListParams as CardListParams
-from .pay_send_response import PaySendResponse as PaySendResponse
from .card_create_params import CardCreateParams as CardCreateParams
from .card_list_response import CardListResponse as CardListResponse
from .card_update_params import CardUpdateParams as CardUpdateParams
@@ -41,14 +38,12 @@
from .card_group_update_params import CardGroupUpdateParams as CardGroupUpdateParams
from .card_product_list_params import CardProductListParams as CardProductListParams
from .commission_details_param import CommissionDetailsParam as CommissionDetailsParam
-from .slash_handle_list_params import SlashHandleListParams as SlashHandleListParams
from .oauth2_get_token_response import Oauth2GetTokenResponse as Oauth2GetTokenResponse
from .transaction_list_response import TransactionListResponse as TransactionListResponse
from .card_product_list_response import CardProductListResponse as CardProductListResponse
from .developer_application_data import DeveloperApplicationData as DeveloperApplicationData
from .developer_application_type import DeveloperApplicationType as DeveloperApplicationType
from .legal_entity_list_response import LegalEntityListResponse as LegalEntityListResponse
-from .slash_handle_list_response import SlashHandleListResponse as SlashHandleListResponse
from .developer_application_model import DeveloperApplicationModel as DeveloperApplicationModel
from .virtual_account_list_params import VirtualAccountListParams as VirtualAccountListParams
from .crypto_create_offramp_params import CryptoCreateOfframpParams as CryptoCreateOfframpParams
diff --git a/src/slash_sdk/types/card/card.py b/src/slash_sdk/types/card/card.py
index 5e41ef7..81613ef 100644
--- a/src/slash_sdk/types/card/card.py
+++ b/src/slash_sdk/types/card/card.py
@@ -1,7 +1,8 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-from typing import Optional
+from typing import List, Optional
from datetime import datetime
+from typing_extensions import Literal
from pydantic import Field as FieldInfo
@@ -9,7 +10,17 @@
from ..card_status import CardStatus
from .spending_constraint import SpendingConstraint
-__all__ = ["Card"]
+__all__ = ["Card", "Modifier"]
+
+
+class Modifier(BaseModel):
+ name: Literal["only_allow_recurring_payments"]
+
+ value: bool
+ """Whether to only allow recurring payments.
+
+ The default value for newly created cards is false.
+ """
class Card(BaseModel):
@@ -60,6 +71,12 @@ class Card(BaseModel):
drops
"""
+ modifiers: Optional[List[Modifier]] = None
+ """The modifiers applied to this card.
+
+ Modifiers control card behavior like restricting to recurring payments only.
+ """
+
pan: Optional[str] = None
"""
This field contains the full PAN which will only be sent on a request for a
diff --git a/src/slash_sdk/types/card_list_params.py b/src/slash_sdk/types/card_list_params.py
index 9f11d3b..37513ca 100644
--- a/src/slash_sdk/types/card_list_params.py
+++ b/src/slash_sdk/types/card_list_params.py
@@ -34,6 +34,13 @@ class CardListParams(TypedDict, total=False):
entity.
"""
+ filter_modifier: Annotated[str, PropertyInfo(alias="filter:modifier")]
+ """Filter cards by modifier.
+
+ Format is "modifier_name:value" (e.g., "only_allow_recurring_payments:true").
+ Returns cards where the specified modifier has the given value.
+ """
+
filter_status: Annotated[Literal["active", "paused", "closed", "inactive"], PropertyInfo(alias="filter:status")]
"""Returns all cards matching the status passed in."""
diff --git a/src/slash_sdk/types/pay_send_params.py b/src/slash_sdk/types/pay_send_params.py
deleted file mode 100644
index 91d0630..0000000
--- a/src/slash_sdk/types/pay_send_params.py
+++ /dev/null
@@ -1,34 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from __future__ import annotations
-
-from typing_extensions import Required, Annotated, TypedDict
-
-from .._utils import PropertyInfo
-
-__all__ = ["PaySendParams"]
-
-
-class PaySendParams(TypedDict, total=False):
- amount_cents: Required[Annotated[float, PropertyInfo(alias="amountCents")]]
- """The amount of money to send in cents."""
-
- slash_handle: Required[Annotated[str, PropertyInfo(alias="slashHandle")]]
- """The username of the SlashHandle to send money to.
-
- You can get this by asking your recipient for their SlashHandle.
- """
-
- legal_entity_id: Annotated[str, PropertyInfo(alias="legalEntityId")]
- """The ID of the LegalEntity to send money from.
-
- You can get this by calling `GET /legal-entity`. This field or `slashHandleId`
- is required unless you are authenticating via API key.
- """
-
- source_slash_handle_id: Annotated[str, PropertyInfo(alias="sourceSlashHandleId")]
- """The ID of the SlashHandle to send money from.
-
- You can get this by calling `GET /slash-handle`. This field or `legalEntityId`
- is required unless you are authenticating via API key.
- """
diff --git a/src/slash_sdk/types/pay_send_response.py b/src/slash_sdk/types/pay_send_response.py
deleted file mode 100644
index 55981f8..0000000
--- a/src/slash_sdk/types/pay_send_response.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import Union, Optional
-from typing_extensions import Literal, TypeAlias
-
-from .._models import BaseModel
-
-__all__ = ["PaySendResponse", "UnionMember0", "UnionMember1"]
-
-
-class UnionMember0(BaseModel):
- success: Literal[True]
-
- redirect: Optional[str] = None
-
-
-class UnionMember1(BaseModel):
- error: str
-
- success: Literal[False]
-
-
-PaySendResponse: TypeAlias = Union[UnionMember0, UnionMember1]
diff --git a/src/slash_sdk/types/slash_handle.py b/src/slash_sdk/types/slash_handle.py
deleted file mode 100644
index 8434e05..0000000
--- a/src/slash_sdk/types/slash_handle.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from pydantic import Field as FieldInfo
-
-from .._models import BaseModel
-
-__all__ = ["SlashHandle"]
-
-
-class SlashHandle(BaseModel):
- """Details about a single SlashHandle"""
-
- id: str
- """The id of the SlashHandle"""
-
- account_id: str = FieldInfo(alias="accountId")
- """The ID of the account that will send and receive funds for this entity"""
-
- name: str
- """The display name of the entity"""
-
- slash_handle: str = FieldInfo(alias="slashHandle")
- """The username that others can use to send money to this entity"""
diff --git a/src/slash_sdk/types/slash_handle_list_params.py b/src/slash_sdk/types/slash_handle_list_params.py
deleted file mode 100644
index 0e996e8..0000000
--- a/src/slash_sdk/types/slash_handle_list_params.py
+++ /dev/null
@@ -1,12 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from __future__ import annotations
-
-from typing_extensions import TypedDict
-
-__all__ = ["SlashHandleListParams"]
-
-
-class SlashHandleListParams(TypedDict, total=False):
- cursor: str
- """A cursor string to fetch the next page of results"""
diff --git a/src/slash_sdk/types/slash_handle_list_response.py b/src/slash_sdk/types/slash_handle_list_response.py
deleted file mode 100644
index dfd2e55..0000000
--- a/src/slash_sdk/types/slash_handle_list_response.py
+++ /dev/null
@@ -1,16 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from typing import List
-
-from .._models import BaseModel
-from .slash_handle import SlashHandle
-from .pagination_response import PaginationResponse
-
-__all__ = ["SlashHandleListResponse"]
-
-
-class SlashHandleListResponse(BaseModel):
- items: List[SlashHandle]
-
- metadata: PaginationResponse
- """Response sent when requesting a list of data"""
diff --git a/src/slash_sdk/types/transaction_aggregate_params.py b/src/slash_sdk/types/transaction_aggregate_params.py
index 96c9751..86c3831 100644
--- a/src/slash_sdk/types/transaction_aggregate_params.py
+++ b/src/slash_sdk/types/transaction_aggregate_params.py
@@ -22,6 +22,12 @@ class TransactionAggregateParams(TypedDict, total=False):
filter_card_id: Annotated[str, PropertyInfo(alias="filter:cardId")]
"""Filter transactions by cardId"""
+ filter_category: Annotated[
+ Literal["card", "ach", "wire", "international_wire", "rtp", "fee", "internal"],
+ PropertyInfo(alias="filter:category"),
+ ]
+ """Filter transactions by category type"""
+
filter_detailed_status: Annotated[
Literal["pending", "canceled", "failed", "settled", "declined", "refund", "reversed", "returned", "dispute"],
PropertyInfo(alias="filter:detailed_status"),
diff --git a/src/slash_sdk/types/transaction_list_params.py b/src/slash_sdk/types/transaction_list_params.py
index edea1d3..91007bf 100644
--- a/src/slash_sdk/types/transaction_list_params.py
+++ b/src/slash_sdk/types/transaction_list_params.py
@@ -22,9 +22,22 @@ class TransactionListParams(TypedDict, total=False):
This will return all transactions that match the account ID passed in.
"""
+ filter_card_group_id: Annotated[str, PropertyInfo(alias="filter:cardGroupId")]
+ """Filter transactions by card group ID.
+
+ This will return all card transactions that belong to cards in the specified
+ card group.
+ """
+
filter_card_id: Annotated[str, PropertyInfo(alias="filter:cardId")]
"""Filter transactions by cardId"""
+ filter_category: Annotated[
+ Literal["card", "ach", "wire", "international_wire", "rtp", "fee", "internal"],
+ PropertyInfo(alias="filter:category"),
+ ]
+ """Filter transactions by category type"""
+
filter_detailed_status: Annotated[
Literal["pending", "canceled", "failed", "settled", "declined", "refund", "reversed", "returned", "dispute"],
PropertyInfo(alias="filter:detailed_status"),
diff --git a/tests/api_resources/test_card.py b/tests/api_resources/test_card.py
index a43001b..9259478 100644
--- a/tests/api_resources/test_card.py
+++ b/tests/api_resources/test_card.py
@@ -270,6 +270,7 @@ def test_method_list_with_all_params(self, client: SlashSDK) -> None:
filter_card_group_id="filter:cardGroupId",
filter_card_group_name="filter:cardGroupName",
filter_legal_entity_id="filter:legalEntityId",
+ filter_modifier="filter:modifier",
filter_status="active",
filter_virtual_account_id="filter:virtualAccountId",
sort="createdAt",
@@ -596,6 +597,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncSlashSDK) ->
filter_card_group_id="filter:cardGroupId",
filter_card_group_name="filter:cardGroupName",
filter_legal_entity_id="filter:legalEntityId",
+ filter_modifier="filter:modifier",
filter_status="active",
filter_virtual_account_id="filter:virtualAccountId",
sort="createdAt",
diff --git a/tests/api_resources/test_pay.py b/tests/api_resources/test_pay.py
deleted file mode 100644
index b2fe0b7..0000000
--- a/tests/api_resources/test_pay.py
+++ /dev/null
@@ -1,176 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from __future__ import annotations
-
-import os
-from typing import Any, cast
-
-import pytest
-
-from slash_sdk import SlashSDK, AsyncSlashSDK
-from tests.utils import assert_matches_type
-from slash_sdk.types import SlashHandle, PaySendResponse
-
-base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
-
-
-class TestPay:
- parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- def test_method_retrieve(self, client: SlashSDK) -> None:
- pay = client.pay.retrieve()
- assert_matches_type(SlashHandle, pay, path=["response"])
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- def test_raw_response_retrieve(self, client: SlashSDK) -> None:
- response = client.pay.with_raw_response.retrieve()
-
- assert response.is_closed is True
- assert response.http_request.headers.get("X-Stainless-Lang") == "python"
- pay = response.parse()
- assert_matches_type(SlashHandle, pay, path=["response"])
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- def test_streaming_response_retrieve(self, client: SlashSDK) -> None:
- with client.pay.with_streaming_response.retrieve() as response:
- assert not response.is_closed
- assert response.http_request.headers.get("X-Stainless-Lang") == "python"
-
- pay = response.parse()
- assert_matches_type(SlashHandle, pay, path=["response"])
-
- assert cast(Any, response.is_closed) is True
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- def test_method_send(self, client: SlashSDK) -> None:
- pay = client.pay.send(
- amount_cents=0,
- slash_handle="slashHandle",
- )
- assert_matches_type(PaySendResponse, pay, path=["response"])
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- def test_method_send_with_all_params(self, client: SlashSDK) -> None:
- pay = client.pay.send(
- amount_cents=0,
- slash_handle="slashHandle",
- legal_entity_id="legalEntityId",
- source_slash_handle_id="sourceSlashHandleId",
- )
- assert_matches_type(PaySendResponse, pay, path=["response"])
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- def test_raw_response_send(self, client: SlashSDK) -> None:
- response = client.pay.with_raw_response.send(
- amount_cents=0,
- slash_handle="slashHandle",
- )
-
- assert response.is_closed is True
- assert response.http_request.headers.get("X-Stainless-Lang") == "python"
- pay = response.parse()
- assert_matches_type(PaySendResponse, pay, path=["response"])
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- def test_streaming_response_send(self, client: SlashSDK) -> None:
- with client.pay.with_streaming_response.send(
- amount_cents=0,
- slash_handle="slashHandle",
- ) as response:
- assert not response.is_closed
- assert response.http_request.headers.get("X-Stainless-Lang") == "python"
-
- pay = response.parse()
- assert_matches_type(PaySendResponse, pay, path=["response"])
-
- assert cast(Any, response.is_closed) is True
-
-
-class TestAsyncPay:
- parametrize = pytest.mark.parametrize(
- "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
- )
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- async def test_method_retrieve(self, async_client: AsyncSlashSDK) -> None:
- pay = await async_client.pay.retrieve()
- assert_matches_type(SlashHandle, pay, path=["response"])
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- async def test_raw_response_retrieve(self, async_client: AsyncSlashSDK) -> None:
- response = await async_client.pay.with_raw_response.retrieve()
-
- assert response.is_closed is True
- assert response.http_request.headers.get("X-Stainless-Lang") == "python"
- pay = await response.parse()
- assert_matches_type(SlashHandle, pay, path=["response"])
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- async def test_streaming_response_retrieve(self, async_client: AsyncSlashSDK) -> None:
- async with async_client.pay.with_streaming_response.retrieve() as response:
- assert not response.is_closed
- assert response.http_request.headers.get("X-Stainless-Lang") == "python"
-
- pay = await response.parse()
- assert_matches_type(SlashHandle, pay, path=["response"])
-
- assert cast(Any, response.is_closed) is True
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- async def test_method_send(self, async_client: AsyncSlashSDK) -> None:
- pay = await async_client.pay.send(
- amount_cents=0,
- slash_handle="slashHandle",
- )
- assert_matches_type(PaySendResponse, pay, path=["response"])
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- async def test_method_send_with_all_params(self, async_client: AsyncSlashSDK) -> None:
- pay = await async_client.pay.send(
- amount_cents=0,
- slash_handle="slashHandle",
- legal_entity_id="legalEntityId",
- source_slash_handle_id="sourceSlashHandleId",
- )
- assert_matches_type(PaySendResponse, pay, path=["response"])
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- async def test_raw_response_send(self, async_client: AsyncSlashSDK) -> None:
- response = await async_client.pay.with_raw_response.send(
- amount_cents=0,
- slash_handle="slashHandle",
- )
-
- assert response.is_closed is True
- assert response.http_request.headers.get("X-Stainless-Lang") == "python"
- pay = await response.parse()
- assert_matches_type(PaySendResponse, pay, path=["response"])
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- async def test_streaming_response_send(self, async_client: AsyncSlashSDK) -> None:
- async with async_client.pay.with_streaming_response.send(
- amount_cents=0,
- slash_handle="slashHandle",
- ) as response:
- assert not response.is_closed
- assert response.http_request.headers.get("X-Stainless-Lang") == "python"
-
- pay = await response.parse()
- assert_matches_type(PaySendResponse, pay, path=["response"])
-
- assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_slash_handle.py b/tests/api_resources/test_slash_handle.py
deleted file mode 100644
index a1dee57..0000000
--- a/tests/api_resources/test_slash_handle.py
+++ /dev/null
@@ -1,96 +0,0 @@
-# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
-
-from __future__ import annotations
-
-import os
-from typing import Any, cast
-
-import pytest
-
-from slash_sdk import SlashSDK, AsyncSlashSDK
-from tests.utils import assert_matches_type
-from slash_sdk.types import SlashHandleListResponse
-
-base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
-
-
-class TestSlashHandle:
- parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- def test_method_list(self, client: SlashSDK) -> None:
- slash_handle = client.slash_handle.list()
- assert_matches_type(SlashHandleListResponse, slash_handle, path=["response"])
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- def test_method_list_with_all_params(self, client: SlashSDK) -> None:
- slash_handle = client.slash_handle.list(
- cursor="cursor",
- )
- assert_matches_type(SlashHandleListResponse, slash_handle, path=["response"])
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- def test_raw_response_list(self, client: SlashSDK) -> None:
- response = client.slash_handle.with_raw_response.list()
-
- assert response.is_closed is True
- assert response.http_request.headers.get("X-Stainless-Lang") == "python"
- slash_handle = response.parse()
- assert_matches_type(SlashHandleListResponse, slash_handle, path=["response"])
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- def test_streaming_response_list(self, client: SlashSDK) -> None:
- with client.slash_handle.with_streaming_response.list() as response:
- assert not response.is_closed
- assert response.http_request.headers.get("X-Stainless-Lang") == "python"
-
- slash_handle = response.parse()
- assert_matches_type(SlashHandleListResponse, slash_handle, path=["response"])
-
- assert cast(Any, response.is_closed) is True
-
-
-class TestAsyncSlashHandle:
- parametrize = pytest.mark.parametrize(
- "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
- )
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- async def test_method_list(self, async_client: AsyncSlashSDK) -> None:
- slash_handle = await async_client.slash_handle.list()
- assert_matches_type(SlashHandleListResponse, slash_handle, path=["response"])
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- async def test_method_list_with_all_params(self, async_client: AsyncSlashSDK) -> None:
- slash_handle = await async_client.slash_handle.list(
- cursor="cursor",
- )
- assert_matches_type(SlashHandleListResponse, slash_handle, path=["response"])
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- async def test_raw_response_list(self, async_client: AsyncSlashSDK) -> None:
- response = await async_client.slash_handle.with_raw_response.list()
-
- assert response.is_closed is True
- assert response.http_request.headers.get("X-Stainless-Lang") == "python"
- slash_handle = await response.parse()
- assert_matches_type(SlashHandleListResponse, slash_handle, path=["response"])
-
- @pytest.mark.skip(reason="Mock server tests are disabled")
- @parametrize
- async def test_streaming_response_list(self, async_client: AsyncSlashSDK) -> None:
- async with async_client.slash_handle.with_streaming_response.list() as response:
- assert not response.is_closed
- assert response.http_request.headers.get("X-Stainless-Lang") == "python"
-
- slash_handle = await response.parse()
- assert_matches_type(SlashHandleListResponse, slash_handle, path=["response"])
-
- assert cast(Any, response.is_closed) is True
diff --git a/tests/api_resources/test_transaction.py b/tests/api_resources/test_transaction.py
index 9e3be9b..1cd23f1 100644
--- a/tests/api_resources/test_transaction.py
+++ b/tests/api_resources/test_transaction.py
@@ -78,7 +78,9 @@ def test_method_list_with_all_params(self, client: SlashSDK) -> None:
account_id="accountId",
cursor="cursor",
filter_account_id="filter:accountId",
+ filter_card_group_id="filter:cardGroupId",
filter_card_id="filter:cardId",
+ filter_category="card",
filter_detailed_status="pending",
filter_from_authorized_at="filter:from_authorized_at",
filter_from_date="filter:from_date",
@@ -126,6 +128,7 @@ def test_method_aggregate_with_all_params(self, client: SlashSDK) -> None:
account_id="accountId",
filter_account_id="filter:accountId",
filter_card_id="filter:cardId",
+ filter_category="card",
filter_detailed_status="pending",
filter_from_authorized_at="filter:from_authorized_at",
filter_from_date="filter:from_date",
@@ -308,7 +311,9 @@ async def test_method_list_with_all_params(self, async_client: AsyncSlashSDK) ->
account_id="accountId",
cursor="cursor",
filter_account_id="filter:accountId",
+ filter_card_group_id="filter:cardGroupId",
filter_card_id="filter:cardId",
+ filter_category="card",
filter_detailed_status="pending",
filter_from_authorized_at="filter:from_authorized_at",
filter_from_date="filter:from_date",
@@ -356,6 +361,7 @@ async def test_method_aggregate_with_all_params(self, async_client: AsyncSlashSD
account_id="accountId",
filter_account_id="filter:accountId",
filter_card_id="filter:cardId",
+ filter_category="card",
filter_detailed_status="pending",
filter_from_authorized_at="filter:from_authorized_at",
filter_from_date="filter:from_date",