File: quoted_charge.py

package info (click to toggle)
chargebee2-python 2.22.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 740 kB
  • sloc: python: 2,492; makefile: 4; sh: 3
file content (24 lines) | stat: -rw-r--r-- 982 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import json
from chargebee.model import Model
from chargebee import request
from chargebee import APIError

class QuotedCharge(Model):
    class Charge(Model):
      fields = ["amount", "amount_in_decimal", "description", "service_period_in_days", "avalara_sale_type", "avalara_transaction_type", "avalara_service_type"]
      pass
    class Addon(Model):
      fields = ["id", "quantity", "unit_price", "quantity_in_decimal", "unit_price_in_decimal", "service_period"]
      pass
    class InvoiceItem(Model):
      fields = ["item_price_id", "quantity", "quantity_in_decimal", "unit_price", "unit_price_in_decimal", "service_period_days"]
      pass
    class ItemTier(Model):
      fields = ["item_price_id", "starting_unit", "ending_unit", "price", "starting_unit_in_decimal", "ending_unit_in_decimal", "price_in_decimal"]
      pass
    class Coupon(Model):
      fields = ["coupon_id"]
      pass

    fields = ["charges", "addons", "invoice_items", "item_tiers", "coupons"]