File: subscription_estimate.py

package info (click to toggle)
chargebee2-python 2.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 644 kB
  • sloc: python: 1,865; sh: 5; makefile: 3
file content (13 lines) | stat: -rw-r--r-- 480 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
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", "pause_date", "resume_date", \
    "shipping_address"]