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) CreateFormFile(w *multipart.Writer, fieldname, filename string, fileType string) (io.Writer, error)
- 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) 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) 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) 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)
- func (c *Event) RetrieveWithUser(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) 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) 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) ListAllCanceled(filter *invdendpoint.Filter, sort *invdendpoint.Sort, canceled bool) (Subscriptions, error)
- func (c *Subscription) ListAllQueryParameters(parameters map[string]string) (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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
func SafeSourceForCreation(source *invdendpoint.PaymentSource) (*invdendpoint.PaymentSource, error)
SafeSourceForCreation prunes source object for just fields that can be used for creation
func SafeSubscriptionForCreation ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
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 ¶ added in v1.0.1
type Charge struct { *Connection *invdendpoint.Charge }
func (*Charge) Create ¶ added in v1.0.1
func (c *Charge) Create(chargeRequest *invdendpoint.ChargeRequest) (*Payment, error)
type ChasingCadence ¶ added in v1.0.1
type ChasingCadence struct { *Connection *invdendpoint.ChasingCadence }
func (*ChasingCadence) ListAll ¶ added in v1.0.1
func (c *ChasingCadence) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (ChasingCadences, error)
type ChasingCadences ¶ added in v1.0.1
type ChasingCadences []*ChasingCadence
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(key string, sandbox bool) *Connection
func (*Connection) CreateFormFile ¶ added in v1.8.0
func (c *Connection) CreateFormFile(w *multipart.Writer, fieldname, filename string, fileType string) (io.Writer, error)
CreateFormFile is a convenience wrapper around CreatePart. It creates a new form-data header with the provided field name and file name.
func (*Connection) NewCharge ¶ added in v1.0.1
func (c *Connection) NewCharge() *Charge
func (*Connection) NewChasingCadence ¶ added in v1.0.1
func (c *Connection) NewChasingCadence() *ChasingCadence
func (*Connection) NewContact ¶ added in v1.0.1
func (c *Connection) NewContact() *invdendpoint.Contact
func (*Connection) NewCoupon ¶ added in v1.0.1
func (c *Connection) NewCoupon() *Coupon
func (*Connection) NewCreditNote ¶ added in v1.0.1
func (c *Connection) NewCreditNote() *CreditNote
func (*Connection) NewCustomer ¶
func (c *Connection) NewCustomer() *Customer
func (*Connection) NewEstimate ¶ added in v1.0.1
func (c *Connection) NewEstimate() *Estimate
func (*Connection) NewEvent ¶ added in v1.0.1
func (c *Connection) NewEvent() *Event
func (*Connection) NewFile ¶ added in v1.0.1
func (c *Connection) NewFile() *File
func (*Connection) NewInvoice ¶
func (c *Connection) NewInvoice() *Invoice
func (*Connection) NewItem ¶ added in v1.0.1
func (c *Connection) NewItem() *Item
func (*Connection) NewNote ¶ added in v1.0.1
func (c *Connection) NewNote() *Note
func (*Connection) NewNotification ¶ added in v1.0.1
func (c *Connection) NewNotification() *Notification
func (*Connection) NewPayment ¶ added in v1.0.1
func (c *Connection) NewPayment() *Payment
func (*Connection) NewPaymentPlanRequest ¶ added in v1.0.1
func (c *Connection) NewPaymentPlanRequest() *invdendpoint.PaymentPlanRequest
func (*Connection) NewPaymentSource ¶ added in v1.0.1
func (c *Connection) NewPaymentSource() *invdendpoint.PaymentSource
func (*Connection) NewPendingLineItem ¶ added in v1.0.1
func (c *Connection) NewPendingLineItem() *invdendpoint.PendingLineItem
func (*Connection) NewPlan ¶ added in v1.0.1
func (c *Connection) NewPlan() *Plan
func (*Connection) NewPreviewRequest ¶ added in v1.0.1
func (c *Connection) NewPreviewRequest() *invdendpoint.SubscriptionPreviewRequest
func (*Connection) NewRefund ¶ added in v1.0.1
func (c *Connection) NewRefund() *Refund
func (*Connection) NewRole ¶ added in v1.0.1
func (c *Connection) NewRole() *Role
func (*Connection) NewSubscription ¶
func (c *Connection) NewSubscription() *Subscription
func (*Connection) NewTask ¶ added in v1.0.1
func (c *Connection) NewTask() *Task
func (*Connection) NewTaxRate ¶ added in v1.0.1
func (c *Connection) NewTaxRate() *TaxRate
func (*Connection) NewUser ¶ added in v1.0.1
func (c *Connection) NewUser() *User
func (*Connection) NewWebhookAttempt ¶ added in v1.0.1
func (c *Connection) NewWebhookAttempt() *WebhookAttempt
type Coupon ¶ added in v1.0.1
type Coupon struct { *Connection *invdendpoint.Coupon }
func (*Coupon) ListAll ¶ added in v1.0.1
func (c *Coupon) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Coupons, error)
type CreditNote ¶ added in v1.0.1
type CreditNote struct { *Connection *invdendpoint.CreditNote }
func (*CreditNote) Count ¶ added in v1.0.1
func (c *CreditNote) Count() (int64, error)
func (*CreditNote) Create ¶ added in v1.0.1
func (c *CreditNote) Create(creditNote *CreditNote) (*CreditNote, error)
func (*CreditNote) Delete ¶ added in v1.0.1
func (c *CreditNote) Delete() error
func (*CreditNote) ListAll ¶ added in v1.0.1
func (c *CreditNote) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (CreditNotes, error)
func (*CreditNote) ListAttachments ¶ added in v1.0.1
func (c *CreditNote) ListAttachments() (Files, error)
func (*CreditNote) Retrieve ¶ added in v1.0.1
func (c *CreditNote) Retrieve(id int64) (*CreditNote, error)
func (*CreditNote) Save ¶ added in v1.0.1
func (c *CreditNote) Save() error
func (*CreditNote) SendEmail ¶ added in v1.0.1
func (c *CreditNote) SendEmail(emailReq *invdendpoint.EmailRequest) error
func (*CreditNote) SendLetter ¶ added in v1.0.1
func (c *CreditNote) SendLetter() (*invdendpoint.LetterResponse, error)
func (*CreditNote) SendText ¶ added in v1.0.1
func (c *CreditNote) SendText(req *invdendpoint.TextRequest) (invdendpoint.TextResponses, error)
func (*CreditNote) String ¶ added in v1.0.1
func (c *CreditNote) String() string
func (*CreditNote) Void ¶ added in v1.0.1
func (c *CreditNote) Void() (*CreditNote, error)
type CreditNotes ¶ added in v1.0.1
type CreditNotes []*CreditNote
type Customer ¶
type Customer struct { *Connection *invdendpoint.Customer }
func (*Customer) ConsolidateInvoices ¶ added in v1.0.1
func (*Customer) CreateContact ¶ added in v1.0.1
func (c *Customer) CreateContact(contact *invdendpoint.Contact) (*invdendpoint.Contact, error)
func (*Customer) CreateCreditBalanceAdjustment ¶ added in v1.0.1
func (c *Customer) CreateCreditBalanceAdjustment(amount float64) (*invdendpoint.BalanceAdjustment, error)
func (*Customer) CreatePaymentSource ¶ added in v1.0.1
func (c *Customer) CreatePaymentSource(source *invdendpoint.PaymentSource) (*invdendpoint.PaymentSource, error)
func (*Customer) CreatePendingLineItem ¶ added in v1.0.1
func (c *Customer) CreatePendingLineItem(pendingLineItem *invdendpoint.PendingLineItem) (*invdendpoint.PendingLineItem, error)
func (*Customer) DeleteBankAccount ¶ added in v1.0.1
func (*Customer) DeleteCard ¶ added in v1.0.1
func (*Customer) DeleteContact ¶ added in v1.0.1
func (*Customer) DeletePendingLineItem ¶ added in v1.0.1
func (*Customer) FreeUpdate ¶ added in v1.0.1
func (*Customer) GetBalance ¶ added in v1.0.1
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 ¶ added in v1.0.1
func (c *Customer) ListAllContacts() (invdendpoint.Contacts, error)
func (*Customer) ListAllPaymentSources ¶ added in v1.0.1
func (c *Customer) ListAllPaymentSources() (invdendpoint.PaymentSources, error)
func (*Customer) ListAllPendingLineItems ¶ added in v1.0.1
func (c *Customer) ListAllPendingLineItems() (invdendpoint.PendingLineItems, error)
func (*Customer) ListCustomerByNumber ¶
func (*Customer) RetrieveContact ¶ added in v1.0.1
func (c *Customer) RetrieveContact(contactID int64) (*invdendpoint.Contact, error)
func (*Customer) RetrieveNotes ¶ added in v1.0.1
func (c *Customer) RetrieveNotes() (invdendpoint.Notes, error)
func (*Customer) RetrievePendingLineItem ¶ added in v1.0.1
func (c *Customer) RetrievePendingLineItem(id int64) (*invdendpoint.PendingLineItem, error)
func (*Customer) SendStatementEmail ¶ added in v1.0.1
func (c *Customer) SendStatementEmail(custStmtReq *invdendpoint.EmailRequest) error
func (*Customer) SendStatementLetter ¶ added in v1.0.1
func (c *Customer) SendStatementLetter(custStmtReq *invdendpoint.LetterRequest) (*invdendpoint.LetterResponse, error)
func (*Customer) SendStatementText ¶ added in v1.0.1
func (c *Customer) SendStatementText(custStmtReq *invdendpoint.TextRequest) (invdendpoint.TextResponses, error)
func (*Customer) TriggerInvoice ¶ added in v1.0.1
func (*Customer) UpdateContact ¶ added in v1.0.1
func (c *Customer) UpdateContact(contactToUpdate *invdendpoint.Contact) (*invdendpoint.Contact, error)
func (*Customer) UpdatePendingLineItem ¶ added in v1.0.1
func (c *Customer) UpdatePendingLineItem(pendingLineItem *invdendpoint.PendingLineItem) (*invdendpoint.PendingLineItem, error)
type Estimate ¶ added in v1.0.1
type Estimate struct { *Connection *invdendpoint.Estimate }
func (*Estimate) GenerateInvoice ¶ added in v1.0.1
func (*Estimate) List ¶ added in v1.0.1
func (c *Estimate) List(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Estimates, string, error)
func (*Estimate) ListAll ¶ added in v1.0.1
func (c *Estimate) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Estimates, error)
func (*Estimate) ListAttachments ¶ added in v1.0.1
func (*Estimate) SendEmail ¶ added in v1.0.1
func (c *Estimate) SendEmail(emailReq *invdendpoint.EmailRequest) error
func (*Estimate) SendLetter ¶ added in v1.0.1
func (c *Estimate) SendLetter() (*invdendpoint.LetterResponse, error)
func (*Estimate) SendText ¶ added in v1.0.1
func (c *Estimate) SendText(req *invdendpoint.TextRequest) (invdendpoint.TextResponses, error)
type Event ¶ added in v1.0.1
type Event struct { *Connection *invdendpoint.Event }
func (*Event) List ¶ added in v1.0.1
func (c *Event) List(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Events, string, error)
func (*Event) ListAll ¶ added in v1.0.1
func (c *Event) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Events, error)
func (*Event) ListAllByDatesAndUser ¶ added in v1.0.1
type File ¶ added in v1.0.1
type File struct { *Connection *invdendpoint.File }
func (*File) CreateAndUploadFile ¶ added in v1.8.0
type Invoice ¶
type Invoice struct { *Connection *invdendpoint.Invoice }
func (*Invoice) CancelPaymentPlan ¶ added in v1.0.1
func (*Invoice) CreatePaymentPlan ¶ added in v1.0.1
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 ¶ added in v1.0.1
func (c *Invoice) ListAllHelper(endpoint string, filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Invoices, error)
func (*Invoice) ListAllInvoicesEndDate ¶ added in v1.0.1
func (c *Invoice) ListAllInvoicesEndDate(filter *invdendpoint.Filter, sort *invdendpoint.Sort, invoiceDate int64) (Invoices, error)
func (*Invoice) ListAllInvoicesStartDate ¶ added in v1.0.1
func (c *Invoice) ListAllInvoicesStartDate(filter *invdendpoint.Filter, sort *invdendpoint.Sort, invoiceDate int64) (Invoices, error)
func (*Invoice) ListAllInvoicesStartEndDate ¶ added in v1.0.1
func (c *Invoice) ListAllInvoicesStartEndDate(filter *invdendpoint.Filter, sort *invdendpoint.Sort, startDate, endDate int64) (Invoices, error)
func (*Invoice) ListAllInvoicesUpdatedDate ¶ added in v1.0.1
func (c *Invoice) ListAllInvoicesUpdatedDate(filter *invdendpoint.Filter, sort *invdendpoint.Sort, invoiceDate int64) (Invoices, error)
func (*Invoice) ListAttachments ¶ added in v1.0.1
func (*Invoice) ListHelper ¶ added in v1.0.1
func (c *Invoice) ListHelper(url string, filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Invoices, string, error)
func (*Invoice) ListInvoiceByNumber ¶
func (*Invoice) RetrieveNotes ¶ added in v1.0.1
func (*Invoice) RetrievePaymentPlan ¶ added in v1.0.1
func (c *Invoice) RetrievePaymentPlan() (*invdendpoint.PaymentPlan, error)
func (*Invoice) SendEmail ¶ added in v1.0.1
func (c *Invoice) SendEmail(emailReq *invdendpoint.EmailRequest) error
func (*Invoice) SendLetter ¶ added in v1.0.1
func (c *Invoice) SendLetter() (*invdendpoint.LetterResponse, error)
func (*Invoice) SendText ¶ added in v1.0.1
func (c *Invoice) SendText(req *invdendpoint.TextRequest) (invdendpoint.TextResponses, error)
type Item ¶ added in v1.0.1
type Item struct { *Connection *invdendpoint.Item }
func (*Item) ListAll ¶ added in v1.0.1
func (c *Item) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Items, error)
type Note ¶ added in v1.0.1
type Note struct { *Connection *invdendpoint.Note }
func (*Note) Create ¶ added in v1.0.1
func (c *Note) Create(createNoteRequest invdendpoint.CreateNoteRequest) (*Note, error)
func (*Note) ListAll ¶ added in v1.0.1
func (c *Note) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Notes, error)
type Notification ¶ added in v1.0.1
type Notification struct { *Connection *invdendpoint.Notification }
func (*Notification) Create ¶ added in v1.0.1
func (c *Notification) Create(notificationRequest *invdendpoint.NotificationRequest) (*Notification, error)
func (*Notification) Delete ¶ added in v1.0.1
func (c *Notification) Delete(id int64) error
func (*Notification) ListAll ¶ added in v1.0.1
func (c *Notification) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Notifications, error)
func (*Notification) Retrieve ¶ added in v1.0.1
func (c *Notification) Retrieve(id int64) (*Notification, error)
func (*Notification) Save ¶ added in v1.0.1
func (c *Notification) Save(notificationRequest *invdendpoint.NotificationRequest, id int64) error
type Notifications ¶ added in v1.0.1
type Notifications []*Notification
type Payment ¶ added in v1.0.1
type Payment struct { *Connection *invdendpoint.Payment }
func (*Payment) List ¶ added in v1.0.1
func (c *Payment) List(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Payments, string, error)
func (*Payment) ListAll ¶ added in v1.0.1
func (c *Payment) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Payments, error)
func (*Payment) SendReceipt ¶ added in v1.0.1
func (c *Payment) SendReceipt(emailReq *invdendpoint.EmailRequest) error
type Plan ¶ added in v1.0.1
type Plan struct { *Connection *invdendpoint.Plan }
func (*Plan) ListAll ¶ added in v1.0.1
func (c *Plan) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Plans, error)
func (*Plan) ListAllSubNumber ¶ added in v1.0.1
func (c *Plan) ListAllSubNumber(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Plans, error)
func (*Plan) RetrieveWithSubNumber ¶ added in v1.0.1
type Refund ¶ added in v1.0.1
type Refund struct { *Connection *invdendpoint.Refund }
type Role ¶ added in v1.0.1
type Role struct { *Connection *invdendpoint.Role }
func (*Role) ListAll ¶ added in v1.0.1
func (c *Role) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) ([]*Role, error)
type Subscription ¶
type Subscription struct { *Connection *invdendpoint.Subscription }
func (*Subscription) Cancel ¶ added in v1.0.1
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) ListAllCanceled ¶ added in v1.7.0
func (c *Subscription) ListAllCanceled(filter *invdendpoint.Filter, sort *invdendpoint.Sort, canceled bool) (Subscriptions, error)
func (*Subscription) ListAllQueryParameters ¶ added in v1.11.0
func (c *Subscription) ListAllQueryParameters(parameters map[string]string) (Subscriptions, error)
func (*Subscription) Preview ¶ added in v1.0.1
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 ¶ added in v1.0.1
type Task struct { *Connection *invdendpoint.Task }
func (*Task) ListAll ¶ added in v1.0.1
func (c *Task) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Tasks, error)
type TaxRate ¶ added in v1.0.1
type TaxRate struct { *Connection *invdendpoint.TaxRate }
func (*TaxRate) ListAll ¶ added in v1.0.1
func (c *TaxRate) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (TaxRates, error)
type User ¶ added in v1.0.1
type User struct { *Connection *invdendpoint.UserResponse }
func (*User) Create ¶ added in v1.0.1
func (c *User) Create(userRequest *invdendpoint.UserRequest) (*User, error)
func (*User) GenerateRegistrationURL ¶ added in v1.0.1
func (*User) ListAll ¶ added in v1.0.1
func (c *User) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Users, error)
func (*User) Save ¶ added in v1.0.1
func (c *User) Save(userRequest *invdendpoint.UserRequest, id int64) error
func (*User) SendInvite ¶ added in v1.0.1
type WebhookAttempt ¶ added in v1.0.1
type WebhookAttempt struct { *Connection *invdendpoint.WebhookAttempt }
func (*WebhookAttempt) ListAll ¶ added in v1.0.1
func (c *WebhookAttempt) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (WebhookAttempts, error)
func (*WebhookAttempt) ReAttempt ¶ added in v1.0.1
func (c *WebhookAttempt) ReAttempt(webhookId int64) error
type WebhookAttempts ¶ added in v1.0.1
type WebhookAttempts []*WebhookAttempt