Versions in this module Expand all Collapse all v6 v6.7.2 Sep 30, 2021 Changes in this version + 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 struct + Message string + Param string + Type string + func NewAPIError(typeE, message, param string) *APIError + func (apiErr *APIError) Error() string + type Charge struct + func (c *Charge) Create(chargeRequest *invdendpoint.ChargeRequest) (*Payment, error) + type ChasingCadence struct + func (c *ChasingCadence) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (ChasingCadences, error) + type ChasingCadences []*ChasingCadence + type Connection struct + func NewConnection(key string, sandbox bool) *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 struct + func (c *Coupon) Create(coupon *Coupon) (*Coupon, error) + func (c *Coupon) Delete() error + func (c *Coupon) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Coupons, error) + func (c *Coupon) Retrieve(id string) (*Coupon, error) + func (c *Coupon) Save() error + type Coupons []*Coupon + type CreditNote struct + 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 []*CreditNote + type Customer struct + 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 []*Customer + type Estimate struct + 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 []*Estimate + type Event struct + 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 []*Event + type File struct + func (c *File) Create(file *File) (*File, error) + func (c *File) Delete() error + func (c *File) Retrieve(id int64) (*File, error) + type Files []*File + type Invoice struct + IncludeUpdatedAt bool + 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 []*Invoice + type Item struct + func (c *Item) Create(item *Item) (*Item, error) + func (c *Item) Delete() error + func (c *Item) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Items, error) + func (c *Item) Retrieve(id string) (*Item, error) + func (c *Item) Save() error + type Items []*Item + type Note struct + func (c *Note) Create(createNoteRequest invdendpoint.CreateNoteRequest) (*Note, error) + func (c *Note) Delete() error + func (c *Note) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Notes, error) + func (c *Note) Save() error + type Notes []*Note + type Notification struct + 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 []*Notification + type Payment struct + 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 []*Payment + type Plan struct + 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 []*Plan + type Refund struct + func (c *Refund) Create(chargeId int64, amount float64) error + type Role struct + func (c *Role) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) ([]*Role, error) + func (c *Role) Retrieve(id int64) (*Role, error) + type Roles []*Role + type Subscription struct + 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 []*Subscription + type Task struct + func (c *Task) Create(task *Task) (*Task, error) + func (c *Task) Delete() error + func (c *Task) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (Tasks, error) + func (c *Task) Retrieve(id int64) (*Task, error) + func (c *Task) Save() error + type Tasks []*Task + type TaxRate struct + func (c *TaxRate) Create(taxRate *TaxRate) (*TaxRate, error) + func (c *TaxRate) Delete() error + func (c *TaxRate) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (TaxRates, error) + func (c *TaxRate) Retrieve(id string) (*TaxRate, error) + func (c *TaxRate) Save() error + type TaxRates []*TaxRate + type User struct + 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 []*User + type WebhookAttempt struct + func (c *WebhookAttempt) ListAll(filter *invdendpoint.Filter, sort *invdendpoint.Sort) (WebhookAttempts, error) + func (c *WebhookAttempt) ReAttempt(webhookId int64) error + type WebhookAttempts []*WebhookAttempt Other modules containing this package github.com/Invoiced/invoiced-go github.com/Invoiced/invoiced-go/v2