Skip to content

Commit 9b686ff

Browse files
feat: sync SDK with API changes
1 parent 2d4bf9d commit 9b686ff

8 files changed

Lines changed: 24 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "blindpay"
3-
version = "2.2.0"
3+
version = "2.3.0"
44
description = "Official Python SDK for the Blindpay API — Global payments infrastructure"
55
readme = "README.md"
66
authors = [{ name = "Blindpay", email = "[email protected]" }]

src/blindpay/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2.2.0"
1+
__version__ = "2.3.0"
22

33
from ._internal.exceptions import BlindPayError
44
from .client import BlindPay, BlindPaySync
@@ -12,6 +12,7 @@
1212
Country,
1313
Currency,
1414
CurrencyType,
15+
Decision,
1516
ErrorResponse,
1617
Network,
1718
PaginationMetadata,
@@ -39,6 +40,7 @@
3940
"Country",
4041
"Currency",
4142
"CurrencyType",
43+
"Decision",
4244
"Network",
4345
"PaymentMethod",
4446
"Rail",

src/blindpay/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
from blindpay.resources.wallets.offramp import OfframpWalletsResource, OfframpWalletsResourceSync
4040
from blindpay.resources.webhooks.webhooks import WebhookEndpointsResource, WebhookEndpointsResourceSync
4141

42-
__version__ = "2.2.0"
42+
__version__ = "2.3.0"
4343

4444
T = TypeVar("T")
4545

src/blindpay/resources/bank_accounts/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
PixType,
3333
RtpType,
3434
SpeiBitsoType,
35+
SwiftPaymentCode,
3536
TedType,
3637
TransfersBitsoType,
3738
WireType,
@@ -63,6 +64,7 @@
6364
"PixSafeType",
6465
"TransfersBitsoType",
6566
"SpeiBitsoType",
67+
"SwiftPaymentCode",
6668
"WireType",
6769
"RtpType",
6870
"TedType",

src/blindpay/resources/bank_accounts/bank_accounts.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
PixSafeType = Literal["pix_safe"]
2828
TedType = Literal["ted"]
2929

30+
SwiftPaymentCode = Literal[
31+
"hk_swift_charitabledonation",
32+
"hk_swift_goods",
33+
"hk_swift_personal",
34+
"hk_swift_services",
35+
]
36+
3037

3138
class OfframpWallet(TypedDict):
3239
address: str
@@ -89,6 +96,7 @@ class BankAccount(TypedDict):
8996
ted_bank_code: Optional[str]
9097
ted_branch_code: Optional[str]
9198
ted_cpf_cnpj: Optional[str]
99+
swift_ifsc_branch_code: Optional[str]
92100

93101

94102
class ListBankAccountsResponse(TypedDict):
@@ -306,11 +314,12 @@ class CreateInternationalSwiftInput(_CreateInternationalSwiftInputRequired, tota
306314
swift_intermediary_bank_country: Optional[Country]
307315
swift_intermediary_bank_name: Optional[str]
308316
swift_intermediary_bank_swift_code_bic: Optional[str]
309-
swift_payment_code: Optional[str]
317+
swift_payment_code: Optional[SwiftPaymentCode]
310318
business_industry: Optional[str]
311319
phone_number: Optional[str]
312320
tax_id: Optional[str]
313321
date_of_birth: Optional[str]
322+
swift_ifsc_branch_code: Optional[str]
314323

315324

316325
class CreateInternationalSwiftResponse(TypedDict):
@@ -344,6 +353,7 @@ class CreateInternationalSwiftResponse(TypedDict):
344353
swift_intermediary_bank_account_number_iban: Optional[str]
345354
swift_intermediary_bank_name: Optional[str]
346355
swift_intermediary_bank_country: Optional[Country]
356+
swift_ifsc_branch_code: Optional[str]
347357
created_at: str
348358

349359

src/blindpay/resources/receivers/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
ReceiversResource,
3939
ReceiversResourceSync,
4040
ReceiverStatus,
41+
ReceiverType,
4142
RequestLimitIncreaseInput,
4243
RequestLimitIncreaseResponse,
4344
SoleProprietorDocType,
@@ -89,6 +90,7 @@
8990
"RequestLimitIncreaseInput",
9091
"RequestLimitIncreaseResponse",
9192
"ReceiverStatus",
93+
"ReceiverType",
9294
"AccountPurpose",
9395
"ReceiverBusinessType",
9496
"BusinessIndustry",

src/blindpay/resources/receivers/receivers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
IndividualType = Literal["individual"]
1515
BusinessType = Literal["business"]
16+
ReceiverType = Literal["business", "individual"]
1617
StandardKycType = Literal["standard"]
1718
EnhancedKycType = Literal["enhanced"]
1819
KycType = Literal["light", "standard", "enhanced"]
@@ -94,6 +95,7 @@
9495
"112120",
9596
"113310",
9697
"115114",
98+
"446120",
9799
"541211",
98100
"541810",
99101
"541430",

src/blindpay/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,3 +392,5 @@ class TrackingPartnerFee(TypedDict):
392392
PaymentMethod = Literal["ach", "wire", "pix", "spei", "transfers", "pse", "international_swift", "rtp", "ted"]
393393

394394
KycStatus = Literal["awaiting_contract", "compliance_request"]
395+
396+
Decision = Literal["approved", "rejected"]

0 commit comments

Comments
 (0)