code: '''The Invoice object {
    "id": "in_1LSdrX2eZvKYlo2Cy1kxMopu",
    "object": "invoice",
    "account_country": "US",
    "account_name": "Stripe.com",
    "account_tax_ids": null,
    "amount_due": 300,
    "amount_paid": 0,
    "amount_remaining": 300,
    "application": null,
    "application_fee_amount": null,
    "attempt_count": 0,
    "attempted": false,
    "auto_advance": true,
    "automatic_tax": {
      "enabled": false,
      "status": null
    },
    "billing_reason": "manual",
    "charge": null,
    "collection_method": "charge_automatically",
    "created": 1659518855,
    "currency": "usd",
    "custom_fields": null,
    "customer": "cus_8TEMHVY5moxIPI",
    "customer_address": null,
    "customer_email": "ava.anderson.22@example.com",
    "customer_name": null,
    "customer_phone": null,
    "customer_shipping": null,
    "customer_tax_exempt": "none",
    "customer_tax_ids": [],
    "default_payment_method": null,
    "default_source": null,
    "default_tax_rates": [],
    "description": null,
    "discount": null,
    "discounts": [],
    "due_date": null,
    "ending_balance": null,
    "footer": null,
    "hosted_invoice_url": null,
    "invoice_pdf": null,
    "last_finalization_error": null,
    "lines": {
      "object": "list",
      "data": [
        {
          "id": "il_1LSdrX2eZvKYlo2CwVfODzHa",
          "object": "line_item",
          "amount": 300,
          "amount_excluding_tax": 300,
          "currency": "usd",
          "description": "My First Invoice Item (created for API docs)",
          "discount_amounts": [],
          "discountable": true,
          "discounts": [],
          "invoice_item": "ii_1LSdrX2eZvKYlo2Crz8rasOM",
          "livemode": false,
          "metadata": {},
          "period": {
            "end": 1659518855,
            "start": 1659518855
          },
          "price": {
            "id": "price_1LScCX2eZvKYlo2C1Z9zPyXF",
            "object": "price",
            "active": true,
            "billing_scheme": "per_unit",
            "created": 1659512469,
            "currency": "usd",
            "custom_unit_amount": null,
            "livemode": false,
            "lookup_key": null,
            "metadata": {},
            "nickname": null,
            "product": "prod_MAy8UvSA0uRRju",
            "recurring": null,
            "tax_behavior": "unspecified",
            "tiers_mode": null,
            "transform_quantity": null,
            "type": "one_time",
            "unit_amount": 300,
            "unit_amount_decimal": "300"
          },
          "proration": false,
          "proration_details": {
            "credited_items": null
          },
          "quantity": 1,
          "subscription": null,
          "tax_amounts": [],
          "tax_rates": [],
          "type": "invoiceitem",
          "unit_amount_excluding_tax": "300"
        }
      ],
      "has_more": false,
      "url": "/v1/invoices/in_1LSdrX2eZvKYlo2Cy1kxMopu/lines"
    },
    "livemode": false,
    "metadata": {},
    "next_payment_attempt": 1659522455,
    "number": null,
    "on_behalf_of": null,
    "paid": false,
    "paid_out_of_band": false,
    "payment_intent": null,
    "payment_settings": {
      "default_mandate": null,
      "payment_method_options": null,
      "payment_method_types": null
    },
    "period_end": 1659518855,
    "period_start": 1659518855,
    "post_payment_credit_notes_amount": 0,
    "pre_payment_credit_notes_amount": 0,
    "quote": null,
    "receipt_number": null,
    "redaction": null,
    "rendering_options": null,
    "starting_balance": 0,
    "statement_descriptor": null,
    "status": "draft",
    "status_transitions": {
      "finalized_at": null,
      "marked_uncollectible_at": null,
      "paid_at": null,
      "voided_at": null
    },
    "subscription": null,
    "subtotal": 300,
    "subtotal_excluding_tax": 300,
    "tax": null,
    "test_clock": null,
    "total": 300,
    "total_discount_amounts": [],
    "total_excluding_tax": 300,
    "total_tax_amounts": [],
    "transfer_data": null,
    "webhooks_delivered_at": null
  }
  '''
nl: The Invoice objectAttributes id string Unique identifier for the object. auto_advance boolean Controls whether Stripe will perform automatic collection of the invoice. When false, the invoice’s state will not automatically advance without an explicit action. charge string expandable  ID of the latest charge generated for this invoice, if any. collection_method string Either charge_automatically, or send_invoice. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions. currency currency Three-letter ISO currency code, in lowercase. Must be a supported currency. customer string expandable  The ID of the customer who will be billed. description string An arbitrary string attached to the object. Often useful for displaying to users. Referenced as ‘memo’ in the Dashboard. hosted_invoice_url string The URL for the hosted invoice page, which allows customers to view and pay an invoice. If the invoice has not been finalized yet, this will be null. lines list The individual line items that make up the invoice. lines is sorted as follows: invoice items in reverse chronological order, followed by the subscription, if any.Show child attributes metadata hash Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. payment_intent string expandable  The PaymentIntent associated with this invoice. The PaymentIntent is generated when the invoice is finalized, and can then be used to pay the invoice. Note that voiding an invoice will cancel the PaymentIntent. period_end timestamp End of the usage period during which invoice items were added to this invoice. period_start timestamp Start of the usage period during which invoice items were added to this invoice. status string The status of the invoice, one of draft, open, paid, uncollectible, or void. Learn more subscription string expandable  The subscription that this invoice was prepared for, if any. total integer Total after discounts and taxes.More attributesExpand all  object string, value is "invoice"   account_country string   account_name string   account_tax_ids array containing strings expandable    amount_due integer   amount_paid integer   amount_remaining integer   application string expandable "application" Connect only   application_fee_amount integer Connect only   attempt_count positive integer or zero   attempted boolean   automatic_tax hash   billing_reason string   created timestamp   custom_fields array of hashes   customer_address hash   customer_email string   customer_name string   customer_phone string   customer_shipping hash   customer_tax_exempt string   customer_tax_ids array of hashes   default_payment_method string expandable    default_source string expandable bank account, card,  or source (e.g., card)   default_tax_rates array of hashes   discount hash, discount object Deprecated   discounts array containing strings expandable    due_date timestamp   ending_balance integer   footer string   invoice_pdf string   last_finalization_error hash   livemode boolean   next_payment_attempt timestamp   number string   on_behalf_of string expandable  Connect only   paid boolean   paid_out_of_band boolean   payment_settings hash   post_payment_credit_notes_amount integer   pre_payment_credit_notes_amount integer   quote string expandable    receipt_number string   rendering_options hash   starting_balance integer   statement_descriptor string   status_transitions hash   subscription_proration_date integer   subtotal integer   subtotal_excluding_tax integer   tax integer   test_clock string expandable    threshold_reason hash   total_discount_amounts array of hashes   total_excluding_tax integer   total_tax_amounts array of hashes   transfer_data hash Connect only   webhooks_delivered_at timestamp