forked from chargebee/chargebee-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresult.go
105 lines (103 loc) · 7.68 KB
/
result.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
package chargebee
import (
"github.com/chargebee/chargebee-go/models/addon"
"github.com/chargebee/chargebee-go/models/address"
"github.com/chargebee/chargebee-go/models/advanceinvoiceschedule"
"github.com/chargebee/chargebee-go/models/attacheditem"
"github.com/chargebee/chargebee-go/models/card"
"github.com/chargebee/chargebee-go/models/comment"
"github.com/chargebee/chargebee-go/models/contact"
"github.com/chargebee/chargebee-go/models/contractterm"
"github.com/chargebee/chargebee-go/models/coupon"
"github.com/chargebee/chargebee-go/models/couponcode"
"github.com/chargebee/chargebee-go/models/couponset"
"github.com/chargebee/chargebee-go/models/creditnote"
"github.com/chargebee/chargebee-go/models/customer"
"github.com/chargebee/chargebee-go/models/differentialprice"
"github.com/chargebee/chargebee-go/models/download"
"github.com/chargebee/chargebee-go/models/estimate"
"github.com/chargebee/chargebee-go/models/event"
"github.com/chargebee/chargebee-go/models/export"
"github.com/chargebee/chargebee-go/models/gift"
"github.com/chargebee/chargebee-go/models/hierarchy"
"github.com/chargebee/chargebee-go/models/hostedpage"
"github.com/chargebee/chargebee-go/models/invoice"
"github.com/chargebee/chargebee-go/models/item"
"github.com/chargebee/chargebee-go/models/itemfamily"
"github.com/chargebee/chargebee-go/models/itemprice"
"github.com/chargebee/chargebee-go/models/order"
"github.com/chargebee/chargebee-go/models/paymentintent"
"github.com/chargebee/chargebee-go/models/paymentsource"
"github.com/chargebee/chargebee-go/models/plan"
"github.com/chargebee/chargebee-go/models/portalsession"
"github.com/chargebee/chargebee-go/models/promotionalcredit"
"github.com/chargebee/chargebee-go/models/quote"
"github.com/chargebee/chargebee-go/models/quotedsubscription"
"github.com/chargebee/chargebee-go/models/quotelinegroup"
"github.com/chargebee/chargebee-go/models/resourcemigration"
"github.com/chargebee/chargebee-go/models/sitemigrationdetail"
"github.com/chargebee/chargebee-go/models/subscription"
"github.com/chargebee/chargebee-go/models/thirdpartypaymentmethod"
"github.com/chargebee/chargebee-go/models/timemachine"
"github.com/chargebee/chargebee-go/models/token"
"github.com/chargebee/chargebee-go/models/transaction"
"github.com/chargebee/chargebee-go/models/unbilledcharge"
"github.com/chargebee/chargebee-go/models/usage"
"github.com/chargebee/chargebee-go/models/virtualbankaccount"
)
type ResultList struct {
List []*Result `json:"list"`
NextOffset string `json:"next_offset"`
}
type Result struct {
Subscription *subscription.Subscription `json:"subscription,omitempty"`
ContractTerm *contractterm.ContractTerm `json:"contract_term,omitempty"`
AdvanceInvoiceSchedule *advanceinvoiceschedule.AdvanceInvoiceSchedule `json:"advance_invoice_schedule,omitempty"`
Customer *customer.Customer `json:"customer,omitempty"`
Hierarchy *hierarchy.Hierarchy `json:"hierarchy,omitempty"`
Contact *contact.Contact `json:"contact,omitempty"`
Token *token.Token `json:"token,omitempty"`
PaymentSource *paymentsource.PaymentSource `json:"payment_source,omitempty"`
ThirdPartyPaymentMethod *thirdpartypaymentmethod.ThirdPartyPaymentMethod `json:"third_party_payment_method,omitempty"`
VirtualBankAccount *virtualbankaccount.VirtualBankAccount `json:"virtual_bank_account,omitempty"`
Card *card.Card `json:"card,omitempty"`
PromotionalCredit *promotionalcredit.PromotionalCredit `json:"promotional_credit,omitempty"`
Invoice *invoice.Invoice `json:"invoice,omitempty"`
CreditNote *creditnote.CreditNote `json:"credit_note,omitempty"`
UnbilledCharge *unbilledcharge.UnbilledCharge `json:"unbilled_charge,omitempty"`
Order *order.Order `json:"order,omitempty"`
Gift *gift.Gift `json:"gift,omitempty"`
Transaction *transaction.Transaction `json:"transaction,omitempty"`
HostedPage *hostedpage.HostedPage `json:"hosted_page,omitempty"`
Estimate *estimate.Estimate `json:"estimate,omitempty"`
Quote *quote.Quote `json:"quote,omitempty"`
QuotedSubscription *quotedsubscription.QuotedSubscription `json:"quoted_subscription,omitempty"`
QuoteLineGroup *quotelinegroup.QuoteLineGroup `json:"quote_line_group,omitempty"`
Plan *plan.Plan `json:"plan,omitempty"`
Addon *addon.Addon `json:"addon,omitempty"`
Coupon *coupon.Coupon `json:"coupon,omitempty"`
CouponSet *couponset.CouponSet `json:"coupon_set,omitempty"`
CouponCode *couponcode.CouponCode `json:"coupon_code,omitempty"`
Address *address.Address `json:"address,omitempty"`
Usage *usage.Usage `json:"usage,omitempty"`
Event *event.Event `json:"event,omitempty"`
Comment *comment.Comment `json:"comment,omitempty"`
Download *download.Download `json:"download,omitempty"`
PortalSession *portalsession.PortalSession `json:"portal_session,omitempty"`
SiteMigrationDetail *sitemigrationdetail.SiteMigrationDetail `json:"site_migration_detail,omitempty"`
ResourceMigration *resourcemigration.ResourceMigration `json:"resource_migration,omitempty"`
TimeMachine *timemachine.TimeMachine `json:"time_machine,omitempty"`
Export *export.Export `json:"export,omitempty"`
PaymentIntent *paymentintent.PaymentIntent `json:"payment_intent,omitempty"`
ItemFamily *itemfamily.ItemFamily `json:"item_family,omitempty"`
Item *item.Item `json:"item,omitempty"`
ItemPrice *itemprice.ItemPrice `json:"item_price,omitempty"`
AttachedItem *attacheditem.AttachedItem `json:"attached_item,omitempty"`
DifferentialPrice *differentialprice.DifferentialPrice `json:"differential_price,omitempty"`
UnbilledCharges []*unbilledcharge.UnbilledCharge `json:"unbilled_charges,omitempty"`
CreditNotes []*creditnote.CreditNote `json:"credit_notes,omitempty"`
AdvanceInvoiceSchedules []*advanceinvoiceschedule.AdvanceInvoiceSchedule `json:"advance_invoice_schedules,omitempty"`
Hierarchies []*hierarchy.Hierarchy `json:"hierarchies,omitempty"`
Invoices []*invoice.Invoice `json:"invoices,omitempty"`
DifferentialPrices []*differentialprice.DifferentialPrice `json:"differential_prices,omitempty"`
}