Skip to content

Commit

Permalink
Merge pull request #91 from mwarzybok-sumoheavy/feature/SP-883-6
Browse files Browse the repository at this point in the history
SP-883 - fix class name for InvoiceRefundAddress
  • Loading branch information
bobbrodie committed Feb 29, 2024
2 parents d487e57 + e9ab3e2 commit 4b4b754
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/bitpay/models/invoice/invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from pydantic import Field
from .buyer import Buyer
from .buyer_provided_info import BuyerProvidedInfo
from .invoice_refund_addresses import InvoiceRefundAddresses
from .invoice_refund_addresses import InvoiceRefundAddress
from .miner_fees import MinerFees
from .refund_info import RefundInfo
from .shopper import Shopper
Expand Down Expand Up @@ -48,7 +48,7 @@ class Invoice(BitPayModel):
payment_codes: Union[Dict[str, Dict[str, str]], None] = None
acceptance_window: Union[int, None] = None
buyer: Union[Buyer, None] = None
refund_addresses: Union[List[Dict[str, InvoiceRefundAddresses]], None] = None
refund_addresses: Union[List[Dict[str, InvoiceRefundAddress]], None] = None
close_url: Union[str, None] = Field(alias="closeURL", default=None)
auto_redirect: Union[bool, None] = False
json_paypro_required: Union[bool, None] = False
Expand Down
6 changes: 3 additions & 3 deletions src/bitpay/models/invoice/invoice_refund_addresses.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from bitpay.models.bitpay_model import BitPayModel


class InvoiceRefundAddresses(BitPayModel):
date: Union[datetime, None]
email: Union[str, None]
class InvoiceRefundAddress(BitPayModel):
date: Union[datetime, None] = None
email: Union[str, None] = None
tag: Union[int, None] = None
type: Union[str, None] = None

Expand Down

0 comments on commit 4b4b754

Please sign in to comment.