Documentation ¶
Index ¶
- func SafeContactForCreation(contact *invdendpoint.Contact) (*invdendpoint.Contact, error)
- func SafeContactForUpdate(contact *invdendpoint.Contact) (*invdendpoint.Contact, error)
- func SafeCouponForCreation(coupon *invdendpoint.Coupon) (*invdendpoint.Coupon, error)
- func SafeCouponForUpdating(coupon *invdendpoint.Coupon) (*invdendpoint.Coupon, error)
- func SafeCreditNoteForCreation(creditNote *invdendpoint.CreditNote) (*invdendpoint.CreditNote, error)
- func SafeCreditNoteForUpdate(creditNote *invdendpoint.CreditNote) (*invdendpoint.CreditNote, error)
- func SafeCustomerForCreation(cust *invdendpoint.Customer) (*invdendpoint.Customer, error)
- func SafeCustomerForUpdate(cust *invdendpoint.Customer) (*invdendpoint.Customer, error)
- func SafeEstimateForCreation(estimate *invdendpoint.Estimate) (*invdendpoint.Estimate, error)
- func SafeEstimateForUpdate(estimate *invdendpoint.Estimate) (*invdendpoint.Estimate, error)
- func SafeFileForCreation(file *invdendpoint.File) (*invdendpoint.File, error)
- func SafeInvoiceForCreation(inv *invdendpoint.Invoice) (*invdendpoint.Invoice, error)
- func SafeInvoiceForUpdate(inv *invdendpoint.Invoice) (*invdendpoint.Invoice, error)
- func SafeItemForCreation(item *invdendpoint.Item) (*invdendpoint.Item, error)
- func SafeItemForUpdating(item *invdendpoint.Item) (*invdendpoint.Item, error)
- func SafeNoteForUpdating(note *invdendpoint.Note) (*invdendpoint.Note, error)
- func SafePaymentForCreation(payment *invdendpoint.Payment) (*invdendpoint.Payment, error)
- func SafePaymentForUpdate(payment *invdendpoint.Payment) (*invdendpoint.Payment, error)
- func SafePendingLineItemForCreation(pendingLineItem *invdendpoint.PendingLineItem) (*invdendpoint.PendingLineItem, error)
- func SafePendingLineItemForUpdate(pendingLineItem *invdendpoint.PendingLineItem) (*invdendpoint.PendingLineItem, error)
- func SafePlanForCreation(plan *invdendpoint.Plan) (*invdendpoint.Plan, error)
- func SafePlanForUpdating(plan *invdendpoint.Plan) (*invdendpoint.Plan, error)
- func SafeSourceForCreation(source *invdendpoint.PaymentSource) (*invdendpoint.PaymentSource, error)
- func SafeSubscriptionForCreation(sub *invdendpoint.Subscription) (*invdendpoint.Subscription, error)
- func SafeSubscriptionsForUpdate(sub *invdendpoint.Subscription) (*invdendpoint.Subscription, error)
- func SafeTaskForCreation(task *invdendpoint.Task) (*invdendpoint.Task, error)
- func SafeTaskForUpdating(task *invdendpoint.Task) (*invdendpoint.Task, error)
- func SafeTaxRateForCreation(taxRate *invdendpoint.TaxRate) (*invdendpoint.TaxRate, error)
- func SafeTaxRateForUpdating(taxRate *invdendpoint.TaxRate) (*invdendpoint.TaxRate, error)
- func Version() string
- type APIError
- type Charge
- type ChasingCadence
- type ChasingCadences
- type Connection
- func (c *Connection) NewCharge() *Charge
- func (c *Connection) NewChasingCadence() *ChasingCadence
- func (c *Connection) NewContact() *invdendpoint.Contact
- func (c *Connection) NewCoupon() *Coupon
- func (c *Connection) NewCreditNote() *CreditNote
- func (c *Connection) NewCustomer() *Customer
- func (c *Connection) NewEstimate() *Estimate
- func (c *Connection) NewEvent() *Event
- func (c *Connection) NewFile() *File
- func (c *Connection) NewInvoice() *Invoice
- func (c *Connection) NewItem() *Item
- func (c *Connection) NewNote() *Note
- func (c *Connection) NewNotification() *Notification
- func (c *Connection) NewPayment() *Payment
- func (c *Connection) NewPaymentPlanRequest() *invdendpoint.PaymentPlanRequest
- func (c *Connection) NewPaymentSource() *invdendpoint.PaymentSource
- func (c *Connection) NewPendingLineItem() *invdendpoint.PendingLineItem
- func (c *Connection) NewPlan() *Plan
- func (c *Connection) NewPreviewRequest() *invdendpoint.SubscriptionPreviewRequest
- func (c *Connection) NewRefund() *Refund
- func (c *Connection) NewRole() *Role
- func (c *Connection) NewSubscription() *Subscription
- func (c *Connection) NewTask() *Task
- func (c *Connection) NewTaxRate() *TaxRate
- func (c *Connection) NewUser() *User
- func (c *Connection) NewWebhookAttempt() *WebhookAttempt
- type Coupon
- type Coupons
- type CreditNote
- func (c *CreditNote) Count() (int64, error)
- func (c *CreditNote) Create(creditNote *CreditNote) (*CreditNote, error)
- func (c *CreditNote) Delete() error
- func (c *CreditNote) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (CreditNotes, error)
- func (c *CreditNote) ListAttachments() (Files, error)
- func (c *CreditNote) Retrieve(id int64) (*CreditNote, error)
- func (c *CreditNote) Save() error
- func (c *CreditNote) SendEmail(emailReq *invdendpoint.EmailRequest) (invdendpoint.EmailResponses, error)
- func (c *CreditNote) SendLetter() (*invdendpoint.LetterResponse, error)
- func (c *CreditNote) SendText(req *invdendpoint.TextRequest) (invdendpoint.TextResponses, error)
- func (c *CreditNote) String() string
- func (c *CreditNote) Void() (*CreditNote, error)
- type CreditNotes
- type Customer
- func (c *Customer) ConsolidateInvoices() (*Invoice, error)
- func (c *Customer) Count() (int64, error)
- func (c *Customer) Create(customer *Customer) (*Customer, error)
- func (c *Customer) CreateContact(contact *invdendpoint.Contact) (*invdendpoint.Contact, error)
- func (c *Customer) CreateCreditBalanceAdjustment(amount float64) (*invdendpoint.BalanceAdjustment, error)
- func (c *Customer) CreatePaymentSource(source *invdendpoint.PaymentSource) (*invdendpoint.PaymentSource, error)
- func (c *Customer) CreatePendingLineItem(pendingLineItem *invdendpoint.PendingLineItem) (*invdendpoint.PendingLineItem, error)
- func (c *Customer) Delete() error
- func (c *Customer) DeleteBankAccount(acctID int64) error
- func (c *Customer) DeleteCard(cardID int64) error
- func (c *Customer) DeleteContact(contactID int64) error
- func (c *Customer) DeletePendingLineItem(id int64) error
- func (c *Customer) FreeUpdate(customerData interface{}) error
- func (c *Customer) GetBalance() (*invdendpoint.Balance, error)
- func (c *Customer) List(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Customers, string, error)
- func (c *Customer) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Customers, error)
- func (c *Customer) ListAllContacts() (invdendpoint.Contacts, error)
- func (c *Customer) ListAllPaymentSources() (invdendpoint.PaymentSources, error)
- func (c *Customer) ListAllPendingLineItems() (invdendpoint.PendingLineItems, error)
- func (c *Customer) ListCustomerByNumber(customerNumber string) (*Customer, error)
- func (c *Customer) Retrieve(id int64) (*Customer, error)
- func (c *Customer) RetrieveContact(contactID int64) (*invdendpoint.Contact, error)
- func (c *Customer) RetrieveNotes() (invdendpoint.Notes, error)
- func (c *Customer) RetrievePendingLineItem(id int64) (*invdendpoint.PendingLineItem, error)
- func (c *Customer) Save() error
- func (c *Customer) SendStatementEmail(custStmtReq *invdendpoint.EmailRequest) (invdendpoint.EmailResponses, error)
- func (c *Customer) SendStatementLetter(custStmtReq *invdendpoint.LetterRequest) (*invdendpoint.LetterResponse, error)
- func (c *Customer) SendStatementText(custStmtReq *invdendpoint.TextRequest) (invdendpoint.TextResponses, error)
- func (c *Customer) TriggerInvoice() (*Invoice, error)
- func (c *Customer) UpdateContact(contactToUpdate *invdendpoint.Contact) (*invdendpoint.Contact, error)
- func (c *Customer) UpdatePendingLineItem(pendingLineItem *invdendpoint.PendingLineItem) (*invdendpoint.PendingLineItem, error)
- type Customers
- type Estimate
- func (c *Estimate) Count() (int64, error)
- func (c *Estimate) Create(estimate *Estimate) (*Estimate, error)
- func (c *Estimate) Delete() error
- func (c *Estimate) GenerateInvoice() (*Invoice, error)
- func (c *Estimate) List(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Estimates, string, error)
- func (c *Estimate) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Estimates, error)
- func (c *Estimate) ListAttachments() (Files, error)
- func (c *Estimate) Retrieve(id int64) (*Estimate, error)
- func (c *Estimate) Save() error
- func (c *Estimate) SendEmail(emailReq *invdendpoint.EmailRequest) (invdendpoint.EmailResponses, error)
- func (c *Estimate) SendLetter() (*invdendpoint.LetterResponse, error)
- func (c *Estimate) SendText(req *invdendpoint.TextRequest) (invdendpoint.TextResponses, error)
- func (c *Estimate) String() string
- func (c *Estimate) Void() (*Estimate, error)
- type Estimates
- type Event
- func (c *Event) List(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Events, string, error)
- func (c *Event) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Events, error)
- func (c *Event) ListAllByDatesAndUser(filter *invdendpoint.Filter, sort *invdendpoint.Sort, startDate int64, ...) (Events, error)
- func (c *Event) Retrieve(id int64) (*Event, error)
- type Events
- type File
- type Files
- type Invoice
- func (c *Invoice) CancelPaymentPlan() error
- func (c *Invoice) Count() (int64, error)
- func (c *Invoice) Create(invoice *Invoice) (*Invoice, error)
- func (c *Invoice) CreatePaymentPlan(paymentPlanRequest *invdendpoint.PaymentPlanRequest) (*invdendpoint.PaymentPlan, error)
- func (c *Invoice) Delete() error
- func (c *Invoice) List(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Invoices, string, error)
- func (c *Invoice) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Invoices, error)
- func (c *Invoice) ListAllHelper(endpoint string, filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Invoices, error)
- func (c *Invoice) ListAllInvoicesEndDate(filter *invdendpoint.Filter, sort *invdendpoint.Sort, invoiceDate int64) (Invoices, error)
- func (c *Invoice) ListAllInvoicesStartDate(filter *invdendpoint.Filter, sort *invdendpoint.Sort, invoiceDate int64) (Invoices, error)
- func (c *Invoice) ListAllInvoicesStartEndDate(filter *invdendpoint.Filter, sort *invdendpoint.Sort, startDate, endDate int64) (Invoices, error)
- func (c *Invoice) ListAllInvoicesUpdatedDate(filter *invdendpoint.Filter, sort *invdendpoint.Sort, invoiceDate int64) (Invoices, error)
- func (c *Invoice) ListAttachments() (Files, error)
- func (c *Invoice) ListHelper(url string, filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Invoices, string, error)
- func (c *Invoice) ListInvoiceByNumber(invoiceNumber string) (*Invoice, error)
- func (c *Invoice) Pay() error
- func (c *Invoice) Retrieve(id int64) (*Invoice, error)
- func (c *Invoice) RetrieveNotes() (Notes, error)
- func (c *Invoice) RetrievePaymentPlan() (*invdendpoint.PaymentPlan, error)
- func (c *Invoice) Save() error
- func (c *Invoice) SendEmail(emailReq *invdendpoint.EmailRequest) (invdendpoint.EmailResponses, error)
- func (c *Invoice) SendLetter() (*invdendpoint.LetterResponse, error)
- func (c *Invoice) SendText(req *invdendpoint.TextRequest) (invdendpoint.TextResponses, error)
- func (c *Invoice) String() string
- func (c *Invoice) Void() (*Invoice, error)
- type Invoices
- type Item
- type Items
- type Note
- type Notes
- type Notification
- func (c *Notification) Create(notificationRequest *invdendpoint.NotificationRequest) (*Notification, error)
- func (c *Notification) Delete(id int64) error
- func (c *Notification) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Notifications, error)
- func (c *Notification) Retrieve(id int64) (*Notification, error)
- func (c *Notification) Save(notificationRequest *invdendpoint.NotificationRequest, id int64) error
- type Notifications
- type Payment
- func (c *Payment) Count() (int64, error)
- func (c *Payment) Create(payment *Payment) (*Payment, error)
- func (c *Payment) Delete() error
- func (c *Payment) List(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Payments, string, error)
- func (c *Payment) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Payments, error)
- func (c *Payment) Retrieve(id int64) (*Payment, error)
- func (c *Payment) Save() error
- func (c *Payment) SendReceipt(emailReq *invdendpoint.EmailRequest) (invdendpoint.EmailResponses, error)
- type Payments
- type Plan
- func (c *Plan) Create(plan *Plan) (*Plan, error)
- func (c *Plan) Delete() error
- func (c *Plan) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Plans, error)
- func (c *Plan) ListAllSubNumber(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Plans, error)
- func (c *Plan) Retrieve(id string) (*Plan, error)
- func (c *Plan) RetrieveWithSubNumber(id string) (*Plan, error)
- func (c *Plan) Save() error
- type Plans
- type Refund
- type Role
- type Roles
- type Subscription
- func (c *Subscription) Cancel() error
- func (c *Subscription) Count() (int64, error)
- func (c *Subscription) Create(subscription *Subscription) (*Subscription, error)
- func (c *Subscription) List(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Subscriptions, string, error)
- func (c *Subscription) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Subscriptions, error)
- func (c *Subscription) Preview(subPreviewRequest *invdendpoint.SubscriptionPreviewRequest) (*invdendpoint.SubscriptionPreview, error)
- func (c *Subscription) Retrieve(id int64) (*Subscription, error)
- func (c *Subscription) Save() error
- type Subscriptions
- type Task
- type Tasks
- type TaxRate
- type TaxRates
- type User
- func (c *User) Create(userRequest *invdendpoint.UserRequest) (*User, error)
- func (c *User) Delete(id int64) error
- func (c *User) GenerateRegistrationURL() string
- func (c *User) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Users, error)
- func (c *User) Retrieve(id int64) (*User, error)
- func (c *User) Save(userRequest *invdendpoint.UserRequest, id int64) error
- func (c *User) SendInvite(id int64) error
- func (c *User) SetUserEmailFrequency(userEmailFrequency string, id int64) (*User, error)
- type Users
- type WebhookAttempt
- type WebhookAttempts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SafeContactForCreation ¶
func SafeContactForCreation(contact *invdendpoint.Contact) (*invdendpoint.Contact, error)
SafeCustomerForCreation prunes customer data for just fields that can be used for creation of a customer
func SafeContactForUpdate ¶
func SafeContactForUpdate(contact *invdendpoint.Contact) (*invdendpoint.Contact, error)
SafeCustomerForCreation prunes customer data for just fields that can be used for creation of a customer
func SafeCouponForCreation ¶
func SafeCouponForCreation(coupon *invdendpoint.Coupon) (*invdendpoint.Coupon, error)
SafeCouponForCreation prunes coupon data for just fields that can be used for creation of a coupon
func SafeCouponForUpdating ¶
func SafeCouponForUpdating(coupon *invdendpoint.Coupon) (*invdendpoint.Coupon, error)
SafeTaxRateForUpdating prunes coupon data for just fields that can be used for updating of a plan
func SafeCreditNoteForCreation ¶
func SafeCreditNoteForCreation(creditNote *invdendpoint.CreditNote) (*invdendpoint.CreditNote, error)
SafeEstimateForCreation prunes credit note data for just fields that can be used for creation of a credit note
func SafeCreditNoteForUpdate ¶
func SafeCreditNoteForUpdate(creditNote *invdendpoint.CreditNote) (*invdendpoint.CreditNote, error)
SafeCreditNoteForUpdate prunes creditnote data for just fields that can be used for updating a credit note
func SafeCustomerForCreation ¶
func SafeCustomerForCreation(cust *invdendpoint.Customer) (*invdendpoint.Customer, error)
SafeCustomerForCreation prunes customer data for just fields that can be used for creation of a customer
func SafeCustomerForUpdate ¶
func SafeCustomerForUpdate(cust *invdendpoint.Customer) (*invdendpoint.Customer, error)
SafeInvoiceForCreation prunes invoice data for just fields that can be used for creation of a invoice
func SafeEstimateForCreation ¶
func SafeEstimateForCreation(estimate *invdendpoint.Estimate) (*invdendpoint.Estimate, error)
SafeEstimateForCreation prunes estimate data for just fields that can be used for creation of a invoice
func SafeEstimateForUpdate ¶
func SafeEstimateForUpdate(estimate *invdendpoint.Estimate) (*invdendpoint.Estimate, error)
SafeInvoiceForCreation prunes invoice data for just fields that can be used for creation of a invoice
func SafeFileForCreation ¶
func SafeFileForCreation(file *invdendpoint.File) (*invdendpoint.File, error)
SafeCustomerForCreation prunes customer data for just fields that can be used for creation of a customer
func SafeInvoiceForCreation ¶
func SafeInvoiceForCreation(inv *invdendpoint.Invoice) (*invdendpoint.Invoice, error)
SafeInvoiceForCreation prunes invoice data for just fields that can be used for creation of a invoice
func SafeInvoiceForUpdate ¶
func SafeInvoiceForUpdate(inv *invdendpoint.Invoice) (*invdendpoint.Invoice, error)
SafeInvoiceForCreation prunes invoice data for just fields that can be used for creation of a invoice
func SafeItemForCreation ¶
func SafeItemForCreation(item *invdendpoint.Item) (*invdendpoint.Item, error)
SafeForCreation prunes item data for just fields that can be used for creation of an item
func SafeItemForUpdating ¶
func SafeItemForUpdating(item *invdendpoint.Item) (*invdendpoint.Item, error)
SafeForUpdating prunes item data for just fields that can be used for updating of an item
func SafeNoteForUpdating ¶
func SafeNoteForUpdating(note *invdendpoint.Note) (*invdendpoint.Note, error)
SafeCustomerForCreation prunes note data for just fields that can be used for creation of a note
func SafePaymentForCreation ¶
func SafePaymentForCreation(payment *invdendpoint.Payment) (*invdendpoint.Payment, error)
SafePaymentForCreation prunes payment data for just fields that can be used for creation of a payment
func SafePaymentForUpdate ¶
func SafePaymentForUpdate(payment *invdendpoint.Payment) (*invdendpoint.Payment, error)
SafePaymentForUpdate prunes payment data for just fields that can be used for creation of a payment
func SafePendingLineItemForCreation ¶
func SafePendingLineItemForCreation(pendingLineItem *invdendpoint.PendingLineItem) (*invdendpoint.PendingLineItem, error)
SafeCustomerForCreation prunes customer data for just fields that can be used for creation of a customer
func SafePendingLineItemForUpdate ¶
func SafePendingLineItemForUpdate(pendingLineItem *invdendpoint.PendingLineItem) (*invdendpoint.PendingLineItem, error)
SafeCustomerForCreation prunes customer data for just fields that can be used for creation of a customer
func SafePlanForCreation ¶
func SafePlanForCreation(plan *invdendpoint.Plan) (*invdendpoint.Plan, error)
SafeCustomerForCreation prunes plan data for just fields that can be used for creation of a plan
func SafePlanForUpdating ¶
func SafePlanForUpdating(plan *invdendpoint.Plan) (*invdendpoint.Plan, error)
SafeTaskForUpdating prunes plan data for just fields that can be used for updating of a plan
func SafeSourceForCreation ¶
func SafeSourceForCreation(source *invdendpoint.PaymentSource) (*invdendpoint.PaymentSource, error)
SafeSourceForCreation prunes source object for just fields that can be used for creation
func SafeSubscriptionForCreation ¶
func SafeSubscriptionForCreation(sub *invdendpoint.Subscription) (*invdendpoint.Subscription, error)
SafeSubscriptionForCreation prunes subscription data for just fields that can be used for creation of a subscription
func SafeSubscriptionsForUpdate ¶
func SafeSubscriptionsForUpdate(sub *invdendpoint.Subscription) (*invdendpoint.Subscription, error)
SafeSubscriptionsForUpdate prunes subscription data for just fields that can be used for updating of a subscription
func SafeTaskForCreation ¶
func SafeTaskForCreation(task *invdendpoint.Task) (*invdendpoint.Task, error)
SafeCustomerForCreation prunes customer data for just fields that can be used for creation of a customer
func SafeTaskForUpdating ¶
func SafeTaskForUpdating(task *invdendpoint.Task) (*invdendpoint.Task, error)
SafeCustomerForCreation prunes customer data for just fields that can be used for creation of a customer
func SafeTaxRateForCreation ¶
func SafeTaxRateForCreation(taxRate *invdendpoint.TaxRate) (*invdendpoint.TaxRate, error)
SafetaxRateForCreation prunes tax TaxRate data for just fields that can be used for creation of a tax TaxRate
func SafeTaxRateForUpdating ¶
func SafeTaxRateForUpdating(taxRate *invdendpoint.TaxRate) (*invdendpoint.TaxRate, error)
SafeTaxRateForUpdating prunes plan data for just fields that can be used for updating of a plan
Types ¶
type APIError ¶
type APIError struct { Type string `json:"type"` Message string `json:"message"` Param string `json:"param"` }
func NewAPIError ¶
type Charge ¶
type Charge struct { *Connection *invdendpoint.Charge }
func (*Charge) Create ¶
func (c *Charge) Create(chargeRequest *invdendpoint.ChargeRequest) (*Payment, error)
type ChasingCadence ¶
type ChasingCadence struct { *Connection *invdendpoint.ChasingCadence }
func (*ChasingCadence) ListAll ¶
func (c *ChasingCadence) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (ChasingCadences, error)
type ChasingCadences ¶
type ChasingCadences []*ChasingCadence
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(key string, sandbox bool) *Connection
func (*Connection) NewCharge ¶
func (c *Connection) NewCharge() *Charge
func (*Connection) NewChasingCadence ¶
func (c *Connection) NewChasingCadence() *ChasingCadence
func (*Connection) NewContact ¶
func (c *Connection) NewContact() *invdendpoint.Contact
func (*Connection) NewCoupon ¶
func (c *Connection) NewCoupon() *Coupon
func (*Connection) NewCreditNote ¶
func (c *Connection) NewCreditNote() *CreditNote
func (*Connection) NewCustomer ¶
func (c *Connection) NewCustomer() *Customer
func (*Connection) NewEstimate ¶
func (c *Connection) NewEstimate() *Estimate
func (*Connection) NewEvent ¶
func (c *Connection) NewEvent() *Event
func (*Connection) NewFile ¶
func (c *Connection) NewFile() *File
func (*Connection) NewInvoice ¶
func (c *Connection) NewInvoice() *Invoice
func (*Connection) NewItem ¶
func (c *Connection) NewItem() *Item
func (*Connection) NewNote ¶
func (c *Connection) NewNote() *Note
func (*Connection) NewNotification ¶
func (c *Connection) NewNotification() *Notification
func (*Connection) NewPayment ¶
func (c *Connection) NewPayment() *Payment
func (*Connection) NewPaymentPlanRequest ¶
func (c *Connection) NewPaymentPlanRequest() *invdendpoint.PaymentPlanRequest
func (*Connection) NewPaymentSource ¶
func (c *Connection) NewPaymentSource() *invdendpoint.PaymentSource
func (*Connection) NewPendingLineItem ¶
func (c *Connection) NewPendingLineItem() *invdendpoint.PendingLineItem
func (*Connection) NewPlan ¶
func (c *Connection) NewPlan() *Plan
func (*Connection) NewPreviewRequest ¶
func (c *Connection) NewPreviewRequest() *invdendpoint.SubscriptionPreviewRequest
func (*Connection) NewRefund ¶
func (c *Connection) NewRefund() *Refund
func (*Connection) NewRole ¶
func (c *Connection) NewRole() *Role
func (*Connection) NewSubscription ¶
func (c *Connection) NewSubscription() *Subscription
func (*Connection) NewTask ¶
func (c *Connection) NewTask() *Task
func (*Connection) NewTaxRate ¶
func (c *Connection) NewTaxRate() *TaxRate
func (*Connection) NewUser ¶
func (c *Connection) NewUser() *User
func (*Connection) NewWebhookAttempt ¶
func (c *Connection) NewWebhookAttempt() *WebhookAttempt
type Coupon ¶
type Coupon struct { *Connection *invdendpoint.Coupon }
func (*Coupon) ListAll ¶
func (c *Coupon) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Coupons, error)
type CreditNote ¶
type CreditNote struct { *Connection *invdendpoint.CreditNote }
func (*CreditNote) Count ¶
func (c *CreditNote) Count() (int64, error)
func (*CreditNote) Create ¶
func (c *CreditNote) Create(creditNote *CreditNote) (*CreditNote, error)
func (*CreditNote) Delete ¶
func (c *CreditNote) Delete() error
func (*CreditNote) ListAll ¶
func (c *CreditNote) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (CreditNotes, error)
func (*CreditNote) ListAttachments ¶
func (c *CreditNote) ListAttachments() (Files, error)
func (*CreditNote) Retrieve ¶
func (c *CreditNote) Retrieve(id int64) (*CreditNote, error)
func (*CreditNote) Save ¶
func (c *CreditNote) Save() error
func (*CreditNote) SendEmail ¶
func (c *CreditNote) SendEmail(emailReq *invdendpoint.EmailRequest) (invdendpoint.EmailResponses, error)
func (*CreditNote) SendLetter ¶
func (c *CreditNote) SendLetter() (*invdendpoint.LetterResponse, error)
func (*CreditNote) SendText ¶
func (c *CreditNote) SendText(req *invdendpoint.TextRequest) (invdendpoint.TextResponses, error)
func (*CreditNote) String ¶
func (c *CreditNote) String() string
func (*CreditNote) Void ¶
func (c *CreditNote) Void() (*CreditNote, error)
type CreditNotes ¶
type CreditNotes []*CreditNote
type Customer ¶
type Customer struct { *Connection *invdendpoint.Customer }
func (*Customer) ConsolidateInvoices ¶
func (*Customer) CreateContact ¶
func (c *Customer) CreateContact(contact *invdendpoint.Contact) (*invdendpoint.Contact, error)
func (*Customer) CreateCreditBalanceAdjustment ¶
func (c *Customer) CreateCreditBalanceAdjustment(amount float64) (*invdendpoint.BalanceAdjustment, error)
func (*Customer) CreatePaymentSource ¶
func (c *Customer) CreatePaymentSource(source *invdendpoint.PaymentSource) (*invdendpoint.PaymentSource, error)
func (*Customer) CreatePendingLineItem ¶
func (c *Customer) CreatePendingLineItem(pendingLineItem *invdendpoint.PendingLineItem) (*invdendpoint.PendingLineItem, error)
func (*Customer) DeleteBankAccount ¶
func (*Customer) DeleteCard ¶
func (*Customer) DeleteContact ¶
func (*Customer) DeletePendingLineItem ¶
func (*Customer) FreeUpdate ¶
func (*Customer) GetBalance ¶
func (c *Customer) GetBalance() (*invdendpoint.Balance, error)
func (*Customer) List ¶
func (c *Customer) List(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Customers, string, error)
func (*Customer) ListAll ¶
func (c *Customer) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Customers, error)
func (*Customer) ListAllContacts ¶
func (c *Customer) ListAllContacts() (invdendpoint.Contacts, error)
func (*Customer) ListAllPaymentSources ¶
func (c *Customer) ListAllPaymentSources() (invdendpoint.PaymentSources, error)
func (*Customer) ListAllPendingLineItems ¶
func (c *Customer) ListAllPendingLineItems() (invdendpoint.PendingLineItems, error)
func (*Customer) ListCustomerByNumber ¶
func (*Customer) RetrieveContact ¶
func (c *Customer) RetrieveContact(contactID int64) (*invdendpoint.Contact, error)
func (*Customer) RetrieveNotes ¶
func (c *Customer) RetrieveNotes() (invdendpoint.Notes, error)
func (*Customer) RetrievePendingLineItem ¶
func (c *Customer) RetrievePendingLineItem(id int64) (*invdendpoint.PendingLineItem, error)
func (*Customer) SendStatementEmail ¶
func (c *Customer) SendStatementEmail(custStmtReq *invdendpoint.EmailRequest) (invdendpoint.EmailResponses, error)
func (*Customer) SendStatementLetter ¶
func (c *Customer) SendStatementLetter(custStmtReq *invdendpoint.LetterRequest) (*invdendpoint.LetterResponse, error)
func (*Customer) SendStatementText ¶
func (c *Customer) SendStatementText(custStmtReq *invdendpoint.TextRequest) (invdendpoint.TextResponses, error)
func (*Customer) TriggerInvoice ¶
func (*Customer) UpdateContact ¶
func (c *Customer) UpdateContact(contactToUpdate *invdendpoint.Contact) (*invdendpoint.Contact, error)
func (*Customer) UpdatePendingLineItem ¶
func (c *Customer) UpdatePendingLineItem(pendingLineItem *invdendpoint.PendingLineItem) (*invdendpoint.PendingLineItem, error)
type Estimate ¶
type Estimate struct { *Connection *invdendpoint.Estimate }
func (*Estimate) GenerateInvoice ¶
func (*Estimate) List ¶
func (c *Estimate) List(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Estimates, string, error)
func (*Estimate) ListAll ¶
func (c *Estimate) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Estimates, error)
func (*Estimate) ListAttachments ¶
func (*Estimate) SendEmail ¶
func (c *Estimate) SendEmail(emailReq *invdendpoint.EmailRequest) (invdendpoint.EmailResponses, error)
func (*Estimate) SendLetter ¶
func (c *Estimate) SendLetter() (*invdendpoint.LetterResponse, error)
func (*Estimate) SendText ¶
func (c *Estimate) SendText(req *invdendpoint.TextRequest) (invdendpoint.TextResponses, error)
type Event ¶
type Event struct { *Connection *invdendpoint.Event }
func (*Event) List ¶
func (c *Event) List(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Events, string, error)
func (*Event) ListAll ¶
func (c *Event) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Events, error)
func (*Event) ListAllByDatesAndUser ¶
type File ¶
type File struct { *Connection *invdendpoint.File }
type Invoice ¶
type Invoice struct { *Connection *invdendpoint.Invoice IncludeUpdatedAt bool }
func (*Invoice) CancelPaymentPlan ¶
func (*Invoice) CreatePaymentPlan ¶
func (c *Invoice) CreatePaymentPlan(paymentPlanRequest *invdendpoint.PaymentPlanRequest) (*invdendpoint.PaymentPlan, error)
func (*Invoice) List ¶
func (c *Invoice) List(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Invoices, string, error)
func (*Invoice) ListAll ¶
func (c *Invoice) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Invoices, error)
func (*Invoice) ListAllHelper ¶
func (c *Invoice) ListAllHelper(endpoint string, filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Invoices, error)
func (*Invoice) ListAllInvoicesEndDate ¶
func (c *Invoice) ListAllInvoicesEndDate(filter *invdendpoint.Filter, sort *invdendpoint.Sort, invoiceDate int64) (Invoices, error)
func (*Invoice) ListAllInvoicesStartDate ¶
func (c *Invoice) ListAllInvoicesStartDate(filter *invdendpoint.Filter, sort *invdendpoint.Sort, invoiceDate int64) (Invoices, error)
func (*Invoice) ListAllInvoicesStartEndDate ¶
func (c *Invoice) ListAllInvoicesStartEndDate(filter *invdendpoint.Filter, sort *invdendpoint.Sort, startDate, endDate int64) (Invoices, error)
func (*Invoice) ListAllInvoicesUpdatedDate ¶
func (c *Invoice) ListAllInvoicesUpdatedDate(filter *invdendpoint.Filter, sort *invdendpoint.Sort, invoiceDate int64) (Invoices, error)
func (*Invoice) ListAttachments ¶
func (*Invoice) ListHelper ¶
func (c *Invoice) ListHelper(url string, filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Invoices, string, error)
func (*Invoice) ListInvoiceByNumber ¶
func (*Invoice) RetrieveNotes ¶
func (*Invoice) RetrievePaymentPlan ¶
func (c *Invoice) RetrievePaymentPlan() (*invdendpoint.PaymentPlan, error)
func (*Invoice) SendEmail ¶
func (c *Invoice) SendEmail(emailReq *invdendpoint.EmailRequest) (invdendpoint.EmailResponses, error)
func (*Invoice) SendLetter ¶
func (c *Invoice) SendLetter() (*invdendpoint.LetterResponse, error)
func (*Invoice) SendText ¶
func (c *Invoice) SendText(req *invdendpoint.TextRequest) (invdendpoint.TextResponses, error)
type Item ¶
type Item struct { *Connection *invdendpoint.Item }
func (*Item) ListAll ¶
func (c *Item) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Items, error)
type Note ¶
type Note struct { *Connection *invdendpoint.Note }
func (*Note) Create ¶
func (c *Note) Create(createNoteRequest invdendpoint.CreateNoteRequest) (*Note, error)
func (*Note) ListAll ¶
func (c *Note) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Notes, error)
type Notification ¶
type Notification struct { *Connection *invdendpoint.Notification }
func (*Notification) Create ¶
func (c *Notification) Create(notificationRequest *invdendpoint.NotificationRequest) (*Notification, error)
func (*Notification) Delete ¶
func (c *Notification) Delete(id int64) error
func (*Notification) ListAll ¶
func (c *Notification) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Notifications, error)
func (*Notification) Retrieve ¶
func (c *Notification) Retrieve(id int64) (*Notification, error)
func (*Notification) Save ¶
func (c *Notification) Save(notificationRequest *invdendpoint.NotificationRequest, id int64) error
type Notifications ¶
type Notifications []*Notification
type Payment ¶
type Payment struct { *Connection *invdendpoint.Payment }
func (*Payment) List ¶
func (c *Payment) List(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Payments, string, error)
func (*Payment) ListAll ¶
func (c *Payment) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Payments, error)
func (*Payment) SendReceipt ¶
func (c *Payment) SendReceipt(emailReq *invdendpoint.EmailRequest) (invdendpoint.EmailResponses, error)
type Plan ¶
type Plan struct { *Connection *invdendpoint.Plan }
func (*Plan) ListAll ¶
func (c *Plan) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Plans, error)
func (*Plan) ListAllSubNumber ¶
func (c *Plan) ListAllSubNumber(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Plans, error)
type Refund ¶
type Refund struct { *Connection *invdendpoint.Refund }
type Role ¶
type Role struct { *Connection *invdendpoint.Role }
func (*Role) ListAll ¶
func (c *Role) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) ([]*Role, error)
type Subscription ¶
type Subscription struct { *Connection *invdendpoint.Subscription }
func (*Subscription) Cancel ¶
func (c *Subscription) Cancel() error
func (*Subscription) Count ¶
func (c *Subscription) Count() (int64, error)
func (*Subscription) Create ¶
func (c *Subscription) Create(subscription *Subscription) (*Subscription, error)
func (*Subscription) List ¶
func (c *Subscription) List(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Subscriptions, string, error)
func (*Subscription) ListAll ¶
func (c *Subscription) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Subscriptions, error)
func (*Subscription) Preview ¶
func (c *Subscription) Preview(subPreviewRequest *invdendpoint.SubscriptionPreviewRequest) (*invdendpoint.SubscriptionPreview, error)
func (*Subscription) Retrieve ¶
func (c *Subscription) Retrieve(id int64) (*Subscription, error)
func (*Subscription) Save ¶
func (c *Subscription) Save() error
type Subscriptions ¶
type Subscriptions []*Subscription
type Task ¶
type Task struct { *Connection *invdendpoint.Task }
func (*Task) ListAll ¶
func (c *Task) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Tasks, error)
type TaxRate ¶
type TaxRate struct { *Connection *invdendpoint.TaxRate }
func (*TaxRate) ListAll ¶
func (c *TaxRate) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (TaxRates, error)
type User ¶
type User struct { *Connection *invdendpoint.UserResponse }
func (*User) Create ¶
func (c *User) Create(userRequest *invdendpoint.UserRequest) (*User, error)
func (*User) GenerateRegistrationURL ¶
func (*User) ListAll ¶
func (c *User) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Users, error)
func (*User) Save ¶
func (c *User) Save(userRequest *invdendpoint.UserRequest, id int64) error
func (*User) SendInvite ¶
type WebhookAttempt ¶
type WebhookAttempt struct { *Connection *invdendpoint.WebhookAttempt }
func (*WebhookAttempt) ListAll ¶
func (c *WebhookAttempt) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (WebhookAttempts, error)
func (*WebhookAttempt) ReAttempt ¶
func (c *WebhookAttempt) ReAttempt(webhookId int64) error
type WebhookAttempts ¶
type WebhookAttempts []*WebhookAttempt