code: '''The subscription object {
    "id": "sub_1JbiLB2eZvKYlo2CNHnqfMzf",
    "object": "subscription",
    "application": null,
    "application_fee_percent": null,
    "automatic_tax": {
      "enabled": false
    },
    "billing_cycle_anchor": 1633337949,
    "billing_thresholds": null,
    "cancel_at": null,
    "cancel_at_period_end": false,
    "canceled_at": null,
    "collection_method": "charge_automatically",
    "created": 1632128349,
    "currency": "usd",
    "current_period_end": 1660553949,
    "current_period_start": 1658739549,
    "customer": "cus_KGEouBKGmh7mXW",
    "days_until_due": null,
    "default_payment_method": "pm_1JbiL92eZvKYlo2CuiUB2nL1",
    "default_source": null,
    "default_tax_rates": [],
    "description": null,
    "discount": null,
    "ended_at": null,
    "items": {
      "object": "list",
      "data": [
        {
          "id": "si_KGEo6oKuLzcuYw",
          "object": "subscription_item",
          "billing_thresholds": null,
          "created": 1632128350,
          "metadata": {},
          "price": {
            "id": "15",
            "object": "price",
            "active": true,
            "billing_scheme": "per_unit",
            "created": 1386685951,
            "currency": "usd",
            "custom_unit_amount": null,
            "livemode": false,
            "lookup_key": null,
            "metadata": {
              "charset": "utf-8",
              "content": "15"
            },
            "nickname": null,
            "product": "prod_BTdpcRLIUTfsFR",
            "recurring": {
              "aggregate_usage": null,
              "interval": "week",
              "interval_count": 3,
              "usage_type": "licensed"
            },
            "tax_behavior": "unspecified",
            "tiers_mode": null,
            "transform_quantity": null,
            "type": "recurring",
            "unit_amount": 444,
            "unit_amount_decimal": "444"
          },
          "quantity": 1,
          "subscription": "sub_1JbiLB2eZvKYlo2CNHnqfMzf",
          "tax_rates": []
        }
      ],
      "has_more": false,
      "url": "/v1/subscription_items?subscription=sub_1JbiLB2eZvKYlo2CNHnqfMzf"
    },
    "latest_invoice": "in_1LPN8U2eZvKYlo2C2h002pSa",
    "livemode": false,
    "metadata": {},
    "next_pending_invoice_item_invoice": null,
    "pause_collection": null,
    "payment_settings": {
      "payment_method_options": null,
      "payment_method_types": null,
      "save_default_payment_method": null
    },
    "pending_invoice_item_interval": null,
    "pending_setup_intent": null,
    "pending_update": null,
    "schedule": null,
    "start_date": 1632128349,
    "status": "active",
    "test_clock": null,
    "transfer_data": null,
    "trial_end": 1633337949,
    "trial_start": 1632128349
  }
  '''
nl: The subscription objectAttributes id string Unique identifier for the object. cancel_at_period_end boolean If the subscription has been canceled with the at_period_end flag set to true, cancel_at_period_end on the subscription will be true. You can use this attribute to determine whether a subscription that has a status of active is scheduled to be canceled at the end of the current period. currency currency preview feature Three-letter ISO currency code, in lowercase. Must be a supported currency. current_period_end timestamp End of the current period that the subscription has been invoiced for. At the end of this period, a new invoice will be created. current_period_start timestamp Start of the current period that the subscription has been invoiced for. customer string expandable  ID of the customer who owns the subscription. default_payment_method string expandable  ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over default_source. If neither are set, invoices will use the customer’s invoice_settings.default_payment_method or default_source. description string The subscription’s description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces. items list List of subscription items, each with an attached price.Show child attributes latest_invoice string expandable  The most recent invoice this subscription has generated. 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. pending_setup_intent string expandable  You can use this SetupIntent to collect user authentication when creating a subscription without immediate payment or updating a subscription’s payment method, allowing you to optimize for off-session payments. Learn more in the SCA Migration Guide. pending_update hash If specified, pending updates that will be applied to the subscription once the latest_invoice has been paid.Show child attributes status enum Possible values are incomplete, incomplete_expired, trialing, active, past_due, canceled, or unpaid. 
  For collection_method=charge_automatically a subscription moves into incomplete if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an active state. If the first invoice is not paid within 23 hours, the subscription transitions to incomplete_expired. This is a terminal state, the open invoice will be voided and no further invoices will be generated. 
  A subscription that is currently in a trial period is trialing and moves to active when the trial period is over. 
  If subscription collection_method=charge_automatically it becomes past_due when payment to renew it fails and canceled or unpaid (depending on your subscriptions settings) when Stripe has exhausted all payment retry attempts. 
  If subscription collection_method=send_invoice it becomes past_due when its invoice is not paid by the due date, and canceled or unpaid if it is still not paid by an additional deadline after that. Note that when a subscription has a status of unpaid, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices.Possible enum valuesactive past_due unpaid canceled incomplete incomplete_expired trialing More attributesExpand all  object string, value is "subscription"   application string expandable "application" Connect only   application_fee_percent decimal Connect only   automatic_tax hash   billing_cycle_anchor timestamp   billing_thresholds hash   cancel_at timestamp   canceled_at timestamp   collection_method string   created timestamp   days_until_due integer   default_source string expandable bank account, card,  or source (e.g., card)   default_tax_rates array of hashes   discount hash, discount object   ended_at timestamp   livemode boolean   next_pending_invoice_item_invoice timestamp   pause_collection hash   payment_settings hash   pending_invoice_item_interval hash   schedule string expandable    start_date timestamp   test_clock string expandable    transfer_data hash Connect only   trial_end timestamp   trial_start timestamp