File: subscription_estimate.py

package info (click to toggle)
chargebee2-python 2.2.3-1
  • links: PTS, VCS
  • area: contrib
  • in suites: stretch
  • size: 548 kB
  • ctags: 338
  • sloc: python: 1,213; makefile: 3
file content (12 lines) | stat: -rw-r--r-- 445 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
import json
from chargebee.model import Model
from chargebee import request
from chargebee import APIError

class SubscriptionEstimate(Model):
    class ShippingAddress(Model):
      fields = ["first_name", "last_name", "email", "company", "phone", "line1", "line2", "line3", "city", "state_code", "state", "country", "zip", "validation_status"]
      pass

    fields = ["id", "currency_code", "status", "next_billing_at", "shipping_address"]