From 4ee1dc2cb705c6397b029c17a85051bd475883a2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 16 Apr 2026 17:11:27 +0000 Subject: [PATCH] feat: sync SDK with API changes --- pyproject.toml | 2 +- src/blindpay/__init__.py | 4 ++- src/blindpay/client.py | 2 +- src/blindpay/resources/receivers/__init__.py | 2 ++ src/blindpay/resources/receivers/receivers.py | 28 +++++++++++++++++++ src/blindpay/types.py | 8 ++++++ 6 files changed, 43 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bfec037..a1169c9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "blindpay" -version = "1.4.0" +version = "1.5.0" description = "Official Python SDK for the Blindpay API — Global payments infrastructure" readme = "README.md" authors = [{ name = "Blindpay", email = "alves@blindpay.com" }] diff --git a/src/blindpay/__init__.py b/src/blindpay/__init__.py index 5b7295b..7553333 100644 --- a/src/blindpay/__init__.py +++ b/src/blindpay/__init__.py @@ -1,10 +1,11 @@ -__version__ = "1.4.0" +__version__ = "1.5.0" from ._internal.exceptions import BlindPayError from .client import BlindPay, BlindPaySync from .types import ( AccountClass, BankAccountType, + BankingPartner, BlindpayApiResponse, BlindpayErrorResponse, BlindpaySuccessResponse, @@ -34,6 +35,7 @@ "BlindPayError", "AccountClass", "BankAccountType", + "BankingPartner", "Country", "Currency", "CurrencyType", diff --git a/src/blindpay/client.py b/src/blindpay/client.py index bbb99a4..638964d 100644 --- a/src/blindpay/client.py +++ b/src/blindpay/client.py @@ -38,7 +38,7 @@ from blindpay.resources.wallets.offramp import OfframpWalletsResource, OfframpWalletsResourceSync from blindpay.resources.webhooks.webhooks import WebhookEndpointsResource, WebhookEndpointsResourceSync -__version__ = "1.4.0" +__version__ = "1.5.0" T = TypeVar("T") diff --git a/src/blindpay/resources/receivers/__init__.py b/src/blindpay/resources/receivers/__init__.py index 641990a..2f90736 100644 --- a/src/blindpay/resources/receivers/__init__.py +++ b/src/blindpay/resources/receivers/__init__.py @@ -40,6 +40,7 @@ ReceiverStatus, RequestLimitIncreaseInput, RequestLimitIncreaseResponse, + SoleProprietorDocType, SourceOfFundsDocType, SourceOfWealth, TaxType, @@ -93,6 +94,7 @@ "BusinessIndustry", "EstimatedAnnualRevenue", "SourceOfWealth", + "SoleProprietorDocType", "TaxType", "AmlStatus", "FraudWarning", diff --git a/src/blindpay/resources/receivers/receivers.py b/src/blindpay/resources/receivers/receivers.py index 0dc9be5..9d8ee7e 100644 --- a/src/blindpay/resources/receivers/receivers.py +++ b/src/blindpay/resources/receivers/receivers.py @@ -9,6 +9,7 @@ Country, PaginationMetadata, PaginationParams, + RecipientRelationship, ) IndividualType = Literal["individual"] @@ -230,6 +231,17 @@ "541990", "541214", "561499", + "dapp", + "exchange", + "gambling", + "gaming", + "infra", + "marketplace", + "neo_bank", + "other", + "saas", + "social", + "wallet", ] EstimatedAnnualRevenue = Literal[ @@ -256,6 +268,8 @@ AmlStatus = Literal["clear", "hit", "error"] +SoleProprietorDocType = Literal["bank_statement", "master_service_agreement", "salary_slip"] + class FraudWarning(TypedDict): id: Optional[str] @@ -359,6 +373,8 @@ class IndividualWithStandardKYC(TypedDict): aml_status: Optional[AmlStatus] aml_hits: Optional[AmlHits] is_tos_accepted: Optional[bool] + recipient_relationship: Optional[RecipientRelationship] + sole_proprietor_doc_type: Optional[SoleProprietorDocType] class IndividualWithEnhancedKYC(TypedDict): @@ -414,6 +430,8 @@ class IndividualWithEnhancedKYC(TypedDict): aml_status: Optional[AmlStatus] aml_hits: Optional[AmlHits] is_tos_accepted: Optional[bool] + recipient_relationship: Optional[RecipientRelationship] + sole_proprietor_doc_type: Optional[SoleProprietorDocType] class BusinessWithStandardKYB(TypedDict): @@ -464,6 +482,8 @@ class BusinessWithStandardKYB(TypedDict): aml_status: Optional[AmlStatus] aml_hits: Optional[AmlHits] is_tos_accepted: Optional[bool] + recipient_relationship: Optional[RecipientRelationship] + sole_proprietor_doc_type: Optional[SoleProprietorDocType] class CreateIndividualWithStandardKYCInput(TypedDict): @@ -493,6 +513,8 @@ class CreateIndividualWithStandardKYCInput(TypedDict): account_purpose: Optional[AccountPurpose] account_purpose_other: Optional[str] occupation: Optional[str] + recipient_relationship: Optional[RecipientRelationship] + sole_proprietor_doc_type: Optional[SoleProprietorDocType] class CreateIndividualWithStandardKYCResponse(TypedDict): @@ -532,6 +554,8 @@ class CreateIndividualWithEnhancedKYCInput(TypedDict): account_purpose: Optional[AccountPurpose] account_purpose_other: Optional[str] occupation: Optional[str] + recipient_relationship: Optional[RecipientRelationship] + sole_proprietor_doc_type: Optional[SoleProprietorDocType] class CreateIndividualWithEnhancedKYCResponse(TypedDict): @@ -571,6 +595,8 @@ class CreateBusinessWithStandardKYBInput(TypedDict): source_of_wealth: Optional[SourceOfWealth] publicly_traded: Optional[bool] occupation: Optional[str] + recipient_relationship: Optional[RecipientRelationship] + sole_proprietor_doc_type: Optional[SoleProprietorDocType] class CreateBusinessWithStandardKYBResponse(TypedDict): @@ -667,6 +693,8 @@ class UpdateReceiverInput(TypedDict): source_of_wealth: Optional[SourceOfWealth] publicly_traded: Optional[bool] occupation: Optional[str] + recipient_relationship: Optional[RecipientRelationship] + sole_proprietor_doc_type: Optional[SoleProprietorDocType] class PayinLimit(TypedDict): diff --git a/src/blindpay/types.py b/src/blindpay/types.py index 73f503e..0735bb8 100644 --- a/src/blindpay/types.py +++ b/src/blindpay/types.py @@ -376,6 +376,14 @@ class TrackingPartnerFee(TypedDict): "landlord_property_manager", "government_agency", "other", + "customer", + "family", + "landlord", + "merchant_or_partner", + "subsidiary_or_affiliate", + "vendor_or_supplier", ] PaymentMethod = Literal["ach", "wire", "pix", "spei", "transfers", "pse", "international_swift"] + +BankingPartner = Literal["cfsb", "citi", "hsbc", "jpmorgan"]