Skip to content

Commit

Permalink
Merge pull request #79 from mwarzybok-sumoheavy/feature/SP-805
Browse files Browse the repository at this point in the history
SP-805 Update Python Dependencies
  • Loading branch information
bobbrodie committed Feb 8, 2024
2 parents e74b50f + 1779a2a commit 6e43de9
Show file tree
Hide file tree
Showing 76 changed files with 346 additions and 297 deletions.
8 changes: 4 additions & 4 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ name = "pypi"
[packages]
ecdsa = "==0.18.0"
requests = "==2.31.0"
pydantic = "==2.5.2"
pydantic = "==2.6.1"

[dev-packages]
black = "==23.11.0"
pytest = "==7.4.3"
black = "==24.1.1"
pytest = "==8.0.0"
pytest-mock = "==3.11.1"
mypy = "==1.7.1"
mypy = "==1.8.0"
pytest-mypy-plugins = "==3.0.0"
pytest-cov = "==4.1.0"

Expand Down
557 changes: 268 additions & 289 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "bitpay"
version = "5.0.2"
version = "5.0.3"
authors = [
{ name="Antonio Buedo", email="sales-engineering@bitpay.com" },
]
Expand Down
1 change: 1 addition & 0 deletions src/bitpay/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
version 4.0.1
See https://developer.bitpay.com/reference/concepts for more information.
"""

import os
import json
from typing import List, Optional
Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/bill_creation_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Bill Creation Exception gets raised when request for bill creation gets failed.
"""

from .bill_exception import BillException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/bill_delivery_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Bill Delivery Exception gets raised when request for bill delivery gets failed.
"""

from .bill_exception import BillException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/bill_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Bill Exception gets raised when some unexpected error occurs while processing a request
or trying to manage bills.
"""

from .bitpay_exception import BitPayException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/bill_query_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Bill Query Exception gets raised when request for bill retrieval gets failed .
"""

from .bill_exception import BillException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/bill_update_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Bill Update Exception gets raised when it fails to update bill
"""

from .bill_exception import BillException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/currency_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Currency Exception gets raised when some unexpected error occurs while processing a request
or trying to manage currencies.
"""

from .bitpay_exception import BitPayException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/currency_query_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Currency Query Exception gets raised when request for currency retrieval gets failed .
"""

from .invoice_exception import InvoiceException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/invoice_cancellation_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Invoice Cancellation exception gets raised when it fails to cancel invoice.
"""

from .invoice_exception import InvoiceException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/invoice_creation_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Invoice Creation Exception gets raised when request for invoice creation gets failed.
"""

from .invoice_exception import InvoiceException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/invoice_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Invoice Exception gets raised when some unexpected error occurs while processing a request
or trying to manage invoice.
"""

from .bitpay_exception import BitPayException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/invoice_notification_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Invoice Notification Exception gets raised when webhook fails to send notification
"""

from .invoice_exception import InvoiceException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/invoice_payment_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Invoice Payment exception gets raised when it fails to pay invoice.
"""

from .invoice_exception import InvoiceException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/invoice_query_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Invoice Query Exception gets raised when request for invoice retrieval gets failed .
"""

from .invoice_exception import InvoiceException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/invoice_update_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Invoice Update Exception gets raised when it fails to update invoice
"""

from .invoice_exception import InvoiceException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/ledger_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Ledger Exception gets raised when some unexpected error occurs while processing a request
or trying to manage ledgers.
"""

from .bitpay_exception import BitPayException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/ledger_query_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Ledger Query Exception gets raised when request for ledger retrieval gets failed .
"""

from .ledger_exception import LedgerException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/payout_cancellation_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Payout Cancellation exception gets raised when it fails to cancel payout.
"""

from .payout_exception import PayoutException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/payout_creation_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Payout Creation Exception gets raised when request for payout creation gets failed.
"""

from .payout_exception import PayoutException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/payout_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Payout Exception gets raised when some unexpected error occurs while processing a request
or trying to manage payout.
"""

from .bitpay_exception import BitPayException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/payout_notification_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Payout Notification Exception gets raised when webhook fails to send notification
"""

from .payout_exception import PayoutException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/payout_query_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Payout Query Exception gets raised when request for payout retrieval gets failed .
"""

from .payout_exception import PayoutException


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
PayoutRecipient Cancellation exception gets raised when it fails to cancel payout recipient.
"""

from .payout_recipient_exception import PayoutRecipientException


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
PayoutRecipientCreation Exception gets raised when request for recipient creation gets failed.
"""

from .payout_recipient_exception import PayoutRecipientException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/payout_recipient_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
PayoutRecipient Exception gets raised when some unexpected error occurs while processing a request
or trying to manage recipients.
"""

from .bitpay_exception import BitPayException


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
PayoutRecipientNotification Exception gets raised when webhook fails to send notification
"""

from .payout_recipient_exception import PayoutRecipientException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/payout_recipient_query_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
PayoutRecipientQuery Exception gets raised when request for recipient retrieval gets failed .
"""

from .invoice_exception import InvoiceException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/payout_recipient_update_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
PayoutRecipientUpdate Exception gets raised when it fails to update recipient
"""

from .payout_recipient_exception import PayoutRecipientException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/rate_query_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
rate Query Exception gets raised when request for rate retrieval gets failed .
"""

from .rates_exception import RateException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/rates_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
rate Exception gets raised when some unexpected error occurs while processing a request
or trying to manage rates.
"""

from .bitpay_exception import BitPayException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/refund_cancellation_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Refund Cancellation exception gets raised when refund request gets failed.
"""

from .refund_exception import RefundException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/refund_creation_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Refund Creation Exception gets raised when request for refund creation gets failed for invoice.
"""

from .refund_exception import RefundException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/refund_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Refund Exception gets raised when some unexpected error occurs while processing a request
or trying to manage refund.
"""

from .bitpay_exception import BitPayException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/refund_notification_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Refund Notification Exception gets raised when webhook fails to send notification
"""

from .refund_exception import RefundException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/refund_query_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Refund Query Exception gets raised when request for refund retrieval gets failed .
"""

from .refund_exception import RefundException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/refund_update_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Refund Update Exception gets raised when it fails to update refund
"""

from .refund_exception import RefundException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/settlement_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Settlement Exception gets raised when some unexpected error occurs while processing a request
or trying to manage settlement.
"""

from .bitpay_exception import BitPayException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/settlement_query_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Settlement Query Exception gets raised when request for settlement retrieval gets failed .
"""

from .settlement_exception import SettlementException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/wallet_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Wallet Exception gets raised when some unexpected error occurs while processing a request
or trying to manage wallet.
"""

from .bitpay_exception import BitPayException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/exceptions/wallet_query_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Wallet Query Exception gets raised when a user fails to retrieve wallets
"""

from .wallet_exception import WalletException


Expand Down
1 change: 1 addition & 0 deletions src/bitpay/models/bill/bill.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Bill
"""

from typing import List, Union
from .item import Item
from ..bitpay_model import BitPayModel
Expand Down
1 change: 1 addition & 0 deletions src/bitpay/models/bill/item.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Item
"""

from typing import Union
from bitpay.models.bitpay_model import BitPayModel

Expand Down
1 change: 1 addition & 0 deletions src/bitpay/models/currency.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Currency
"""

from typing import Union

from bitpay.models.bitpay_model import BitPayModel
Expand Down
3 changes: 1 addition & 2 deletions src/bitpay/models/facade.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
"""
Facade
"""
from enum import Enum

from bitpay.exceptions.bitpay_exception import BitPayException
from enum import Enum


class Facade(Enum):
Expand Down
1 change: 1 addition & 0 deletions src/bitpay/models/invoice/buyer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Buyer
"""

from typing import Union
from bitpay.models.bitpay_model import BitPayModel

Expand Down
1 change: 1 addition & 0 deletions src/bitpay/models/invoice/buyer_provided_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
BuyerProvidedInfo: Information collected from the buyer during the process of paying
an invoice. Initially this object is empty.
"""

from typing import Union

from bitpay.models.bitpay_model import BitPayModel
Expand Down

0 comments on commit 6e43de9

Please sign in to comment.