Skip to content

Commit

Permalink
SP-883 - fix class name for InvoiceRefundAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarzybok-sumoheavy committed Feb 28, 2024
1 parent 2454ebf commit 3b5f087
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
2 changes: 1 addition & 1 deletion src/bitpay/models/invoice/invoice_refund_addresses.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from bitpay.models.bitpay_model import BitPayModel


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

0 comments on commit 3b5f087

Please sign in to comment.