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
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"standardwebhooks": ">=1.0.1,<2"
}
},
"originGitCommit": "3957d712f523a3731e6e481d490dee4f46f047eb",
"originGitCommit": "294d3f516ef5b8571337ba4af0b106614dc829e0",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "2.6.0",
Expand Down
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -16743,6 +16743,14 @@ client.deposits.create(
<dl>
<dd>

**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.

</dd>
</dl>

<dl>
<dd>

**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.

</dd>
Expand Down
10 changes: 10 additions & 0 deletions src/whop_sdk/deposits/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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.

Expand Down Expand Up @@ -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,
)
Expand Down Expand Up @@ -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:
Expand All @@ -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.

Expand Down Expand Up @@ -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,
)
Expand Down
10 changes: 10 additions & 0 deletions src/whop_sdk/deposits/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand All @@ -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.

Expand All @@ -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={
Expand Down Expand Up @@ -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]:
Expand All @@ -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.

Expand All @@ -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={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading