blindpay 2.2.0__tar.gz → 2.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {blindpay-2.2.0 → blindpay-2.4.0}/PKG-INFO +1 -1
- {blindpay-2.2.0 → blindpay-2.4.0}/pyproject.toml +1 -1
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/__init__.py +9 -1
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/client.py +86 -1
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/__init__.py +6 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/bank_accounts/__init__.py +4 -2
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/bank_accounts/bank_accounts.py +138 -87
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/custodial_wallets/custodial_wallets.py +20 -20
- blindpay-2.4.0/src/blindpay/resources/customers/__init__.py +104 -0
- blindpay-2.4.0/src/blindpay/resources/customers/customers.py +859 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/instances/__init__.py +4 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/instances/instances.py +18 -0
- blindpay-2.4.0/src/blindpay/resources/limits/__init__.py +21 -0
- blindpay-2.4.0/src/blindpay/resources/limits/limits.py +58 -0
- blindpay-2.4.0/src/blindpay/resources/ownership/__init__.py +17 -0
- blindpay-2.4.0/src/blindpay/resources/ownership/ownership.py +49 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/payins/__init__.py +2 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/payins/payins.py +3 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/payouts/payouts.py +3 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/upload/__init__.py +4 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/upload/upload.py +16 -1
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/virtual_accounts/virtual_accounts.py +19 -19
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/wallets/blockchain.py +33 -33
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/wallets/offramp.py +23 -25
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/types.py +18 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/.gitignore +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/LICENSE +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/README.md +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/py.typed +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/_internal/__init__.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/_internal/api_client.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/_internal/exceptions.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/api_keys/__init__.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/api_keys/api_keys.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/available/__init__.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/available/available.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/custodial_wallets/__init__.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/fees/__init__.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/fees/fees.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/partner_fees/__init__.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/partner_fees/partner_fees.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/payins/quotes.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/payouts/__init__.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/quotes/__init__.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/quotes/quotes.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/receivers/__init__.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/receivers/receivers.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/terms_of_service/__init__.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/terms_of_service/terms_of_service.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/transfers/__init__.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/transfers/transfers.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/virtual_accounts/__init__.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/wallets/__init__.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/webhooks/__init__.py +0 -0
- {blindpay-2.2.0 → blindpay-2.4.0}/src/blindpay/resources/webhooks/webhooks.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: blindpay
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.4.0
|
|
4
4
|
Summary: Official Python SDK for the Blindpay API — Global payments infrastructure
|
|
5
5
|
Project-URL: Homepage, https://github.com/blindpaylabs/blindpay-python
|
|
6
6
|
Project-URL: Repository, https://github.com/blindpaylabs/blindpay-python
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
__version__ = "2.
|
|
1
|
+
__version__ = "2.4.0"
|
|
2
2
|
|
|
3
3
|
from ._internal.exceptions import BlindPayError
|
|
4
4
|
from .client import BlindPay, BlindPaySync
|
|
5
5
|
from .types import (
|
|
6
6
|
AccountClass,
|
|
7
|
+
AipriseDocumentType,
|
|
8
|
+
ApprovalRate,
|
|
7
9
|
BankAccountType,
|
|
8
10
|
BankingPartner,
|
|
9
11
|
BlindpayApiResponse,
|
|
@@ -13,6 +15,7 @@ from .types import (
|
|
|
13
15
|
Currency,
|
|
14
16
|
CurrencyType,
|
|
15
17
|
ErrorResponse,
|
|
18
|
+
ManualExecutionStatus,
|
|
16
19
|
Network,
|
|
17
20
|
PaginationMetadata,
|
|
18
21
|
PaginationParams,
|
|
@@ -27,6 +30,7 @@ from .types import (
|
|
|
27
30
|
TrackingTransaction,
|
|
28
31
|
TransactionDocumentType,
|
|
29
32
|
TransactionStatus,
|
|
33
|
+
WebhookEvent,
|
|
30
34
|
)
|
|
31
35
|
|
|
32
36
|
__all__ = [
|
|
@@ -34,11 +38,14 @@ __all__ = [
|
|
|
34
38
|
"BlindPaySync",
|
|
35
39
|
"BlindPayError",
|
|
36
40
|
"AccountClass",
|
|
41
|
+
"AipriseDocumentType",
|
|
42
|
+
"ApprovalRate",
|
|
37
43
|
"BankAccountType",
|
|
38
44
|
"BankingPartner",
|
|
39
45
|
"Country",
|
|
40
46
|
"Currency",
|
|
41
47
|
"CurrencyType",
|
|
48
|
+
"ManualExecutionStatus",
|
|
42
49
|
"Network",
|
|
43
50
|
"PaymentMethod",
|
|
44
51
|
"Rail",
|
|
@@ -46,6 +53,7 @@ __all__ = [
|
|
|
46
53
|
"StablecoinToken",
|
|
47
54
|
"TransactionDocumentType",
|
|
48
55
|
"TransactionStatus",
|
|
56
|
+
"WebhookEvent",
|
|
49
57
|
"BlindpayApiResponse",
|
|
50
58
|
"BlindpayErrorResponse",
|
|
51
59
|
"BlindpaySuccessResponse",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import base64
|
|
2
2
|
import hashlib
|
|
3
3
|
import hmac
|
|
4
|
+
import warnings
|
|
4
5
|
from functools import cached_property
|
|
5
6
|
from typing import TYPE_CHECKING, Any, Dict, Literal, Mapping, Optional, TypeVar
|
|
6
7
|
|
|
@@ -17,8 +18,11 @@ if TYPE_CHECKING:
|
|
|
17
18
|
CustodialWalletsResource,
|
|
18
19
|
CustodialWalletsResourceSync,
|
|
19
20
|
)
|
|
21
|
+
from blindpay.resources.customers.customers import CustomersResource, CustomersResourceSync
|
|
20
22
|
from blindpay.resources.fees.fees import FeesResource, FeesResourceSync
|
|
21
23
|
from blindpay.resources.instances.instances import InstancesResource, InstancesResourceSync
|
|
24
|
+
from blindpay.resources.limits.limits import LimitsResource, LimitsResourceSync
|
|
25
|
+
from blindpay.resources.ownership.ownership import OwnershipResource, OwnershipResourceSync
|
|
22
26
|
from blindpay.resources.partner_fees.partner_fees import PartnerFeesResource, PartnerFeesResourceSync
|
|
23
27
|
from blindpay.resources.payins.payins import PayinsResource, PayinsResourceSync
|
|
24
28
|
from blindpay.resources.payins.quotes import PayinQuotesResource, PayinQuotesResourceSync
|
|
@@ -39,7 +43,12 @@ if TYPE_CHECKING:
|
|
|
39
43
|
from blindpay.resources.wallets.offramp import OfframpWalletsResource, OfframpWalletsResourceSync
|
|
40
44
|
from blindpay.resources.webhooks.webhooks import WebhookEndpointsResource, WebhookEndpointsResourceSync
|
|
41
45
|
|
|
42
|
-
__version__ = "2.
|
|
46
|
+
__version__ = "2.3.0"
|
|
47
|
+
|
|
48
|
+
_RECEIVERS_DEPRECATION_MESSAGE = (
|
|
49
|
+
"Use 'customers' instead. 'receivers' is deprecated and will be removed in "
|
|
50
|
+
"v3.0.0. See https://www.blindpay.com/changelog/2026-06-04-customers-rename"
|
|
51
|
+
)
|
|
43
52
|
|
|
44
53
|
T = TypeVar("T")
|
|
45
54
|
|
|
@@ -203,6 +212,27 @@ class _PayinsNamespace:
|
|
|
203
212
|
return getattr(self._base, name)
|
|
204
213
|
|
|
205
214
|
|
|
215
|
+
class _CustomersNamespace:
|
|
216
|
+
def __init__(self, instance_id: str, api_client: ApiClientImpl) -> None:
|
|
217
|
+
self._instance_id = instance_id
|
|
218
|
+
self._api = api_client
|
|
219
|
+
|
|
220
|
+
@cached_property
|
|
221
|
+
def _base(self) -> "CustomersResource":
|
|
222
|
+
from blindpay.resources.customers.customers import create_customers_resource
|
|
223
|
+
|
|
224
|
+
return create_customers_resource(self._instance_id, self._api)
|
|
225
|
+
|
|
226
|
+
@cached_property
|
|
227
|
+
def bank_accounts(self) -> "BankAccountsResource":
|
|
228
|
+
from blindpay.resources.bank_accounts.bank_accounts import create_bank_accounts_resource
|
|
229
|
+
|
|
230
|
+
return create_bank_accounts_resource(self._instance_id, self._api)
|
|
231
|
+
|
|
232
|
+
def __getattr__(self, name: str) -> Any:
|
|
233
|
+
return getattr(self._base, name)
|
|
234
|
+
|
|
235
|
+
|
|
206
236
|
class _ReceiversNamespace:
|
|
207
237
|
def __init__(self, instance_id: str, api_client: ApiClientImpl) -> None:
|
|
208
238
|
self._instance_id = instance_id
|
|
@@ -283,6 +313,12 @@ class BlindPay:
|
|
|
283
313
|
def instances(self) -> _InstancesNamespace:
|
|
284
314
|
return _InstancesNamespace(self._instance_id, self._api)
|
|
285
315
|
|
|
316
|
+
@cached_property
|
|
317
|
+
def ownership(self) -> "OwnershipResource":
|
|
318
|
+
from blindpay.resources.ownership import create_ownership_resource
|
|
319
|
+
|
|
320
|
+
return create_ownership_resource(self._instance_id, self._api)
|
|
321
|
+
|
|
286
322
|
@cached_property
|
|
287
323
|
def partner_fees(self) -> "PartnerFeesResource":
|
|
288
324
|
from blindpay.resources.partner_fees import create_partner_fees_resource
|
|
@@ -305,8 +341,13 @@ class BlindPay:
|
|
|
305
341
|
|
|
306
342
|
return create_payouts_resource(self._instance_id, self._api)
|
|
307
343
|
|
|
344
|
+
@cached_property
|
|
345
|
+
def customers(self) -> _CustomersNamespace:
|
|
346
|
+
return _CustomersNamespace(self._instance_id, self._api)
|
|
347
|
+
|
|
308
348
|
@cached_property
|
|
309
349
|
def receivers(self) -> _ReceiversNamespace:
|
|
350
|
+
warnings.warn(_RECEIVERS_DEPRECATION_MESSAGE, DeprecationWarning, stacklevel=2)
|
|
310
351
|
return _ReceiversNamespace(self._instance_id, self._api)
|
|
311
352
|
|
|
312
353
|
@cached_property
|
|
@@ -331,6 +372,12 @@ class BlindPay:
|
|
|
331
372
|
|
|
332
373
|
return create_fees_resource(self._instance_id, self._api)
|
|
333
374
|
|
|
375
|
+
@cached_property
|
|
376
|
+
def limits(self) -> "LimitsResource":
|
|
377
|
+
from blindpay.resources.limits import create_limits_resource
|
|
378
|
+
|
|
379
|
+
return create_limits_resource(self._instance_id, self._api)
|
|
380
|
+
|
|
334
381
|
@cached_property
|
|
335
382
|
def upload(self) -> "UploadResource":
|
|
336
383
|
from blindpay.resources.upload import create_upload_resource
|
|
@@ -433,6 +480,27 @@ class _PayinsNamespaceSync:
|
|
|
433
480
|
return getattr(self._base, name)
|
|
434
481
|
|
|
435
482
|
|
|
483
|
+
class _CustomersNamespaceSync:
|
|
484
|
+
def __init__(self, instance_id: str, api_client: ApiClientImplSync) -> None:
|
|
485
|
+
self._instance_id = instance_id
|
|
486
|
+
self._api = api_client
|
|
487
|
+
|
|
488
|
+
@cached_property
|
|
489
|
+
def _base(self) -> "CustomersResourceSync":
|
|
490
|
+
from blindpay.resources.customers.customers import create_customers_resource_sync
|
|
491
|
+
|
|
492
|
+
return create_customers_resource_sync(self._instance_id, self._api)
|
|
493
|
+
|
|
494
|
+
@cached_property
|
|
495
|
+
def bank_accounts(self) -> "BankAccountsResourceSync":
|
|
496
|
+
from blindpay.resources.bank_accounts.bank_accounts import create_bank_accounts_resource_sync
|
|
497
|
+
|
|
498
|
+
return create_bank_accounts_resource_sync(self._instance_id, self._api)
|
|
499
|
+
|
|
500
|
+
def __getattr__(self, name: str) -> Any:
|
|
501
|
+
return getattr(self._base, name)
|
|
502
|
+
|
|
503
|
+
|
|
436
504
|
class _ReceiversNamespaceSync:
|
|
437
505
|
def __init__(self, instance_id: str, api_client: ApiClientImplSync) -> None:
|
|
438
506
|
self._instance_id = instance_id
|
|
@@ -513,6 +581,12 @@ class BlindPaySync:
|
|
|
513
581
|
def instances(self) -> _InstancesNamespaceSync:
|
|
514
582
|
return _InstancesNamespaceSync(self._instance_id, self._api)
|
|
515
583
|
|
|
584
|
+
@cached_property
|
|
585
|
+
def ownership(self) -> "OwnershipResourceSync":
|
|
586
|
+
from blindpay.resources.ownership import create_ownership_resource_sync
|
|
587
|
+
|
|
588
|
+
return create_ownership_resource_sync(self._instance_id, self._api)
|
|
589
|
+
|
|
516
590
|
@cached_property
|
|
517
591
|
def partner_fees(self) -> "PartnerFeesResourceSync":
|
|
518
592
|
from blindpay.resources.partner_fees import create_partner_fees_resource_sync
|
|
@@ -535,8 +609,13 @@ class BlindPaySync:
|
|
|
535
609
|
|
|
536
610
|
return create_payouts_resource_sync(self._instance_id, self._api)
|
|
537
611
|
|
|
612
|
+
@cached_property
|
|
613
|
+
def customers(self) -> _CustomersNamespaceSync:
|
|
614
|
+
return _CustomersNamespaceSync(self._instance_id, self._api)
|
|
615
|
+
|
|
538
616
|
@cached_property
|
|
539
617
|
def receivers(self) -> _ReceiversNamespaceSync:
|
|
618
|
+
warnings.warn(_RECEIVERS_DEPRECATION_MESSAGE, DeprecationWarning, stacklevel=2)
|
|
540
619
|
return _ReceiversNamespaceSync(self._instance_id, self._api)
|
|
541
620
|
|
|
542
621
|
@cached_property
|
|
@@ -561,6 +640,12 @@ class BlindPaySync:
|
|
|
561
640
|
|
|
562
641
|
return create_fees_resource_sync(self._instance_id, self._api)
|
|
563
642
|
|
|
643
|
+
@cached_property
|
|
644
|
+
def limits(self) -> "LimitsResourceSync":
|
|
645
|
+
from blindpay.resources.limits import create_limits_resource_sync
|
|
646
|
+
|
|
647
|
+
return create_limits_resource_sync(self._instance_id, self._api)
|
|
648
|
+
|
|
564
649
|
@cached_property
|
|
565
650
|
def upload(self) -> "UploadResourceSync":
|
|
566
651
|
from blindpay.resources.upload import create_upload_resource_sync
|
|
@@ -2,8 +2,11 @@ from .api_keys import create_api_keys_resource
|
|
|
2
2
|
from .available import create_available_resource
|
|
3
3
|
from .bank_accounts import create_bank_accounts_resource
|
|
4
4
|
from .custodial_wallets import create_custodial_wallets_resource
|
|
5
|
+
from .customers import create_customers_resource
|
|
5
6
|
from .fees import create_fees_resource
|
|
6
7
|
from .instances import create_instances_resource
|
|
8
|
+
from .limits import create_limits_resource
|
|
9
|
+
from .ownership import create_ownership_resource
|
|
7
10
|
from .partner_fees import create_partner_fees_resource
|
|
8
11
|
from .payins import create_payin_quotes_resource, create_payins_resource
|
|
9
12
|
from .payouts import create_payouts_resource
|
|
@@ -20,9 +23,12 @@ __all__ = [
|
|
|
20
23
|
"create_api_keys_resource",
|
|
21
24
|
"create_available_resource",
|
|
22
25
|
"create_bank_accounts_resource",
|
|
26
|
+
"create_customers_resource",
|
|
23
27
|
"create_custodial_wallets_resource",
|
|
24
28
|
"create_fees_resource",
|
|
25
29
|
"create_instances_resource",
|
|
30
|
+
"create_limits_resource",
|
|
31
|
+
"create_ownership_resource",
|
|
26
32
|
"create_partner_fees_resource",
|
|
27
33
|
"create_payins_resource",
|
|
28
34
|
"create_payin_quotes_resource",
|
|
@@ -19,6 +19,8 @@ from .bank_accounts import (
|
|
|
19
19
|
CreatePixSafeResponse,
|
|
20
20
|
CreateRtpInput,
|
|
21
21
|
CreateRtpResponse,
|
|
22
|
+
CreateSepaInput,
|
|
23
|
+
CreateSepaResponse,
|
|
22
24
|
CreateSpeiInput,
|
|
23
25
|
CreateSpeiResponse,
|
|
24
26
|
CreateTedInput,
|
|
@@ -27,7 +29,6 @@ from .bank_accounts import (
|
|
|
27
29
|
CreateWireResponse,
|
|
28
30
|
GetBankAccountResponse,
|
|
29
31
|
ListBankAccountsResponse,
|
|
30
|
-
OfframpNetwork,
|
|
31
32
|
PixSafeType,
|
|
32
33
|
PixType,
|
|
33
34
|
RtpType,
|
|
@@ -53,12 +54,12 @@ __all__ = [
|
|
|
53
54
|
"CreateWireInput",
|
|
54
55
|
"CreateInternationalSwiftInput",
|
|
55
56
|
"CreateRtpInput",
|
|
57
|
+
"CreateSepaInput",
|
|
56
58
|
"CreateTedInput",
|
|
57
59
|
"AchCopBitsoType",
|
|
58
60
|
"AchCopDocument",
|
|
59
61
|
"AchType",
|
|
60
62
|
"ArgentinaTransfers",
|
|
61
|
-
"OfframpNetwork",
|
|
62
63
|
"PixType",
|
|
63
64
|
"PixSafeType",
|
|
64
65
|
"TransfersBitsoType",
|
|
@@ -75,6 +76,7 @@ __all__ = [
|
|
|
75
76
|
"CreatePixResponse",
|
|
76
77
|
"CreatePixSafeResponse",
|
|
77
78
|
"CreateRtpResponse",
|
|
79
|
+
"CreateSepaResponse",
|
|
78
80
|
"CreateSpeiResponse",
|
|
79
81
|
"CreateTedResponse",
|
|
80
82
|
"CreateWireResponse",
|