diff --git a/.fern/metadata.json b/.fern/metadata.json index d12b77d6..51584f9a 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -15,7 +15,7 @@ "standardwebhooks": ">=1.0.1,<2" } }, - "originGitCommit": "3957d712f523a3731e6e481d490dee4f46f047eb", + "originGitCommit": "294d3f516ef5b8571337ba4af0b106614dc829e0", "originGitCommitIsDirty": false, "invokedBy": "ci", "requestedVersion": "2.6.0", diff --git a/.fern/replay.lock b/.fern/replay.lock index 2a12d375..337900f9 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -3270,5 +3270,11 @@ generations: cli_version: unknown generator_versions: fernapi/fern-python-sdk: 5.39.2 -current_generation: 5247e77715e8db7111eb24eb12be5c81282299d4 + - commit_sha: 29f3affda7e89bc0ccf250c3b8dad4531f80a4c1 + tree_hash: 34fac2d449bcce322c9dcf9ae38289d4b3567115 + timestamp: 2026-10-23T21:33:55.520Z + cli_version: unknown + generator_versions: + fernapi/fern-python-sdk: 5.39.2 +current_generation: 29f3affda7e89bc0ccf250c3b8dad4531f80a4c1 patches: [] diff --git a/reference.md b/reference.md index cf2bdf16..745697c5 100644 --- a/reference.md +++ b/reference.md @@ -16743,6 +16743,14 @@ client.deposits.create(
+**origin_bic:** `typing.Optional[str]` — SWIFT/BIC of the bank the funds are sent from, 8 or 11 characters. Fills each bank currency's `swift_bic` with the intermediary bank to route the wire through. + +
+
+ +
+
+ **payment_method_id:** `typing.Optional[str]` — A saved payment method of the business to charge for `amount`, prefixed `payt_`. Save one with Create setup intent and `owner_id` set to the account. Only for a `biz_` destination, and requires authentication with the `payment:charge` scope. A declined charge fails the request with 400.
diff --git a/src/whop_sdk/deposits/client.py b/src/whop_sdk/deposits/client.py index e8cb19c5..bee5e9ee 100644 --- a/src/whop_sdk/deposits/client.py +++ b/src/whop_sdk/deposits/client.py @@ -33,6 +33,7 @@ def create( destination: str, amount: typing.Optional[float] = OMIT, metadata: typing.Optional[typing.Dict[str, typing.Optional[CreateDepositsRequestMetadataValue]]] = OMIT, + origin_bic: typing.Optional[str] = OMIT, payment_method_id: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> CreateDepositsResponse: @@ -50,6 +51,9 @@ def create( metadata : typing.Optional[typing.Dict[str, typing.Optional[CreateDepositsRequestMetadataValue]]] Custom metadata to attach to the payment the charge creates. Ignored unless `payment_method_id` is provided. + origin_bic : typing.Optional[str] + SWIFT/BIC of the bank the funds are sent from, 8 or 11 characters. Fills each bank currency's `swift_bic` with the intermediary bank to route the wire through. + payment_method_id : typing.Optional[str] A saved payment method of the business to charge for `amount`, prefixed `payt_`. Save one with Create setup intent and `owner_id` set to the account. Only for a `biz_` destination, and requires authentication with the `payment:charge` scope. A declined charge fails the request with 400. @@ -78,6 +82,7 @@ def create( destination=destination, amount=amount, metadata=metadata, + origin_bic=origin_bic, payment_method_id=payment_method_id, request_options=request_options, ) @@ -105,6 +110,7 @@ async def create( destination: str, amount: typing.Optional[float] = OMIT, metadata: typing.Optional[typing.Dict[str, typing.Optional[CreateDepositsRequestMetadataValue]]] = OMIT, + origin_bic: typing.Optional[str] = OMIT, payment_method_id: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> CreateDepositsResponse: @@ -122,6 +128,9 @@ async def create( metadata : typing.Optional[typing.Dict[str, typing.Optional[CreateDepositsRequestMetadataValue]]] Custom metadata to attach to the payment the charge creates. Ignored unless `payment_method_id` is provided. + origin_bic : typing.Optional[str] + SWIFT/BIC of the bank the funds are sent from, 8 or 11 characters. Fills each bank currency's `swift_bic` with the intermediary bank to route the wire through. + payment_method_id : typing.Optional[str] A saved payment method of the business to charge for `amount`, prefixed `payt_`. Save one with Create setup intent and `owner_id` set to the account. Only for a `biz_` destination, and requires authentication with the `payment:charge` scope. A declined charge fails the request with 400. @@ -158,6 +167,7 @@ async def main() -> None: destination=destination, amount=amount, metadata=metadata, + origin_bic=origin_bic, payment_method_id=payment_method_id, request_options=request_options, ) diff --git a/src/whop_sdk/deposits/raw_client.py b/src/whop_sdk/deposits/raw_client.py index 58be69f5..105a3879 100644 --- a/src/whop_sdk/deposits/raw_client.py +++ b/src/whop_sdk/deposits/raw_client.py @@ -30,6 +30,7 @@ def create( destination: str, amount: typing.Optional[float] = OMIT, metadata: typing.Optional[typing.Dict[str, typing.Optional[CreateDepositsRequestMetadataValue]]] = OMIT, + origin_bic: typing.Optional[str] = OMIT, payment_method_id: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> HttpResponse[CreateDepositsResponse]: @@ -47,6 +48,9 @@ def create( metadata : typing.Optional[typing.Dict[str, typing.Optional[CreateDepositsRequestMetadataValue]]] Custom metadata to attach to the payment the charge creates. Ignored unless `payment_method_id` is provided. + origin_bic : typing.Optional[str] + SWIFT/BIC of the bank the funds are sent from, 8 or 11 characters. Fills each bank currency's `swift_bic` with the intermediary bank to route the wire through. + payment_method_id : typing.Optional[str] A saved payment method of the business to charge for `amount`, prefixed `payt_`. Save one with Create setup intent and `owner_id` set to the account. Only for a `biz_` destination, and requires authentication with the `payment:charge` scope. A declined charge fails the request with 400. @@ -70,6 +74,7 @@ def create( annotation=typing.Optional[typing.Dict[str, typing.Optional[CreateDepositsRequestMetadataValue]]], direction="write", ), + "origin_bic": origin_bic, "payment_method_id": payment_method_id, }, headers={ @@ -130,6 +135,7 @@ async def create( destination: str, amount: typing.Optional[float] = OMIT, metadata: typing.Optional[typing.Dict[str, typing.Optional[CreateDepositsRequestMetadataValue]]] = OMIT, + origin_bic: typing.Optional[str] = OMIT, payment_method_id: typing.Optional[str] = OMIT, request_options: typing.Optional[RequestOptions] = None, ) -> AsyncHttpResponse[CreateDepositsResponse]: @@ -147,6 +153,9 @@ async def create( metadata : typing.Optional[typing.Dict[str, typing.Optional[CreateDepositsRequestMetadataValue]]] Custom metadata to attach to the payment the charge creates. Ignored unless `payment_method_id` is provided. + origin_bic : typing.Optional[str] + SWIFT/BIC of the bank the funds are sent from, 8 or 11 characters. Fills each bank currency's `swift_bic` with the intermediary bank to route the wire through. + payment_method_id : typing.Optional[str] A saved payment method of the business to charge for `amount`, prefixed `payt_`. Save one with Create setup intent and `owner_id` set to the account. Only for a `biz_` destination, and requires authentication with the `payment:charge` scope. A declined charge fails the request with 400. @@ -170,6 +179,7 @@ async def create( annotation=typing.Optional[typing.Dict[str, typing.Optional[CreateDepositsRequestMetadataValue]]], direction="write", ), + "origin_bic": origin_bic, "payment_method_id": payment_method_id, }, headers={ diff --git a/src/whop_sdk/deposits/types/create_deposits_response_methods_bank_currencies_item.py b/src/whop_sdk/deposits/types/create_deposits_response_methods_bank_currencies_item.py index 84ed5f00..cc03c6e9 100644 --- a/src/whop_sdk/deposits/types/create_deposits_response_methods_bank_currencies_item.py +++ b/src/whop_sdk/deposits/types/create_deposits_response_methods_bank_currencies_item.py @@ -52,7 +52,7 @@ class CreateDepositsResponseMethodsBankCurrenciesItem(UniversalBaseModel): swift_bic: typing.Optional[str] = pydantic.Field(default=None) """ - SWIFT/BIC code for international wires, when available. + SWIFT/BIC of the intermediary bank the sending bank routes an international wire through. Null unless `origin_bic` is provided and an intermediary is published for that bank and currency. """ if IS_PYDANTIC_V2: