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 src/blindpay/resources/customers/customers.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@
"1000000_9999999",
"10000000_49999999",
"50000000_249999999",
"2500000000_plus",
"250000000_plus",
]

SourceOfWealth = Literal[
Expand Down
10 changes: 10 additions & 0 deletions tests/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"""

from blindpay.resources.custodial_wallets.custodial_wallets import CreateCustodialWalletInput
from blindpay.resources.customers.customers import EstimatedAnnualRevenue
from blindpay.resources.payins.payins import BankDetails, CreateEvmPayinResponse, GetPayinTrackResponse, Payin
from blindpay.types import BankAccountType, PaginationMetadata

Expand Down Expand Up @@ -254,3 +255,12 @@ def test_external_id_is_optional(self):
"external_id": "your-database-id",
}
assert with_external_id.get("external_id") == "your-database-id"


class TestEstimatedAnnualRevenueTopBandIsCorrect:
def test_250_million_plus_is_a_valid_value(self):
# The band below tops out at 249999999, so 250000000_plus is the only
# coherent top band; the old "2500000000_plus" (2.5 billion, an extra
# zero) is a value the API rejects.
value: EstimatedAnnualRevenue = "250000000_plus"
assert value == "250000000_plus"
Loading