File: advance_invoice_schedule.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 (15 lines) | stat: -rw-r--r-- 525 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import json
from chargebee.model import Model
from chargebee import request
from chargebee import APIError

class AdvanceInvoiceSchedule(Model):
    class FixedIntervalSchedule(Model):
      fields = ["end_schedule_on", "number_of_occurrences", "days_before_renewal", "end_date", "created_at", "terms_to_charge"]
      pass
    class SpecificDatesSchedule(Model):
      fields = ["terms_to_charge", "date", "created_at"]
      pass

    fields = ["id", "schedule_type", "fixed_interval_schedule", "specific_dates_schedule"]