accounting

package
v0.0.0-...-abe38a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 23 Imported by: 0

README

Go API client for accounting

These APIs allow you to interact with HubSpot's Accounting Extension. It allows you to:

  • Specify the URLs that HubSpot will use when making webhook requests to your external accounting system.
  • Respond to webhook calls made to your external accounting system by HubSpot

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: v3
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import accounting "github.com/GIT_USER_ID/GIT_REPO_ID"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), accounting.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), accounting.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), accounting.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), accounting.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://api.hubapi.com

Class Method HTTP request Description
CallbacksApi CallbackCreateCustomer Post /crm/v3/extensions/accounting/callback/customer-create/{requestId} Endpoint for customer creation response
CallbacksApi CallbackCreateExchangeRate Post /crm/v3/extensions/accounting/callback/exchange-rate/{requestId} Endpoint for exchange rate response
CallbacksApi CallbackCreateInvoice Post /crm/v3/extensions/accounting/callback/invoice-create/{requestId} Endpoint for invoice creation response
CallbacksApi CallbackCreateTerm Post /crm/v3/extensions/accounting/callback/terms/{requestId} Endpoint for terms search response
CallbacksApi CallbackDoInvoiceSearch Post /crm/v3/extensions/accounting/callback/invoice-search/{requestId} Endpoint for invoice search response
CallbacksApi CallbackDoProductSearch Post /crm/v3/extensions/accounting/callback/product-search/{requestId} Endpoint for product search response
CallbacksApi CallbackDoSearchCustomer Post /crm/v3/extensions/accounting/callback/customer-search/{requestId} Endpoint for customer search response
CallbacksApi CallbackDoTaxSearch Post /crm/v3/extensions/accounting/callback/tax-search/{requestId} Endpoint for taxes search response
CallbacksApi CallbackGetByID Post /crm/v3/extensions/accounting/callback/invoices/{requestId} Endpoint for invoice get-by-id response
CallbacksApi CallbackInvoicePDF Post /crm/v3/extensions/accounting/callback/invoice-pdf/{requestId} Endpoint for PDF content of invoice
InvoiceApi InvoiceCreatePayment Post /crm/v3/extensions/accounting/invoice/{invoiceId}/payment Records an invoice payment
InvoiceApi InvoiceGetByID Get /crm/v3/extensions/accounting/invoice/{invoiceId} Get invoice data
InvoiceApi InvoiceUpdate Patch /crm/v3/extensions/accounting/invoice/{invoiceId} Update an invoice
SettingsApi SettingsGetByID Get /crm/v3/extensions/accounting/settings/{appId} Get URL settings
SettingsApi SettingsReplace Put /crm/v3/extensions/accounting/settings/{appId} Add/Update URL Settings
SyncApi SyncCreateContact Post /crm/v3/extensions/accounting/sync/{appId}/contacts Import contacts
SyncApi SyncCreateProduct Post /crm/v3/extensions/accounting/sync/{appId}/products Import products
UserAccountsApi UserAccountsArchive Delete /crm/v3/extensions/accounting/user-accounts/{accountId} Delete user account
UserAccountsApi UserAccountsReplace Put /crm/v3/extensions/accounting/user-accounts Create a user account

Documentation For Models

Documentation For Authorization

oauth2_legacy

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)
private_apps_legacy
  • Type: API key
  • API key parameter name: private-app-legacy
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: private-app-legacy and passed in as the auth context for each request.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	CallbacksApi *CallbacksApiService

	InvoiceApi *InvoiceApiService

	SettingsApi *SettingsApiService

	SyncApi *SyncApiService

	UserAccountsApi *UserAccountsApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Accounting Extension API vv3 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type AccountingAppSettings

type AccountingAppSettings struct {
	// The ID of the accounting app. This is the identifier of the application created in your HubSpot developer portal.
	AppId    int32               `json:"appId"`
	Urls     AccountingAppUrls   `json:"urls"`
	Features *AccountingFeatures `json:"features,omitempty"`
}

AccountingAppSettings The URL Settings, which defines the URL endpoints that HubSpot will send requests to an external accounting application for certain actions.

func NewAccountingAppSettings

func NewAccountingAppSettings(appId int32, urls AccountingAppUrls) *AccountingAppSettings

NewAccountingAppSettings instantiates a new AccountingAppSettings object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountingAppSettingsWithDefaults

func NewAccountingAppSettingsWithDefaults() *AccountingAppSettings

NewAccountingAppSettingsWithDefaults instantiates a new AccountingAppSettings object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountingAppSettings) GetAppId

func (o *AccountingAppSettings) GetAppId() int32

GetAppId returns the AppId field value

func (*AccountingAppSettings) GetAppIdOk

func (o *AccountingAppSettings) GetAppIdOk() (*int32, bool)

GetAppIdOk returns a tuple with the AppId field value and a boolean to check if the value has been set.

func (*AccountingAppSettings) GetFeatures

func (o *AccountingAppSettings) GetFeatures() AccountingFeatures

GetFeatures returns the Features field value if set, zero value otherwise.

func (*AccountingAppSettings) GetFeaturesOk

func (o *AccountingAppSettings) GetFeaturesOk() (*AccountingFeatures, bool)

GetFeaturesOk returns a tuple with the Features field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountingAppSettings) GetUrls

GetUrls returns the Urls field value

func (*AccountingAppSettings) GetUrlsOk

func (o *AccountingAppSettings) GetUrlsOk() (*AccountingAppUrls, bool)

GetUrlsOk returns a tuple with the Urls field value and a boolean to check if the value has been set.

func (*AccountingAppSettings) HasFeatures

func (o *AccountingAppSettings) HasFeatures() bool

HasFeatures returns a boolean if a field has been set.

func (AccountingAppSettings) MarshalJSON

func (o AccountingAppSettings) MarshalJSON() ([]byte, error)

func (*AccountingAppSettings) SetAppId

func (o *AccountingAppSettings) SetAppId(v int32)

SetAppId sets field value

func (*AccountingAppSettings) SetFeatures

func (o *AccountingAppSettings) SetFeatures(v AccountingFeatures)

SetFeatures gets a reference to the given AccountingFeatures and assigns it to the Features field.

func (*AccountingAppSettings) SetUrls

SetUrls sets field value

type AccountingAppUrls

type AccountingAppUrls struct {
	// A URL that specifies the endpoint where invoices can be retrieved.
	GetInvoiceUrl string `json:"getInvoiceUrl"`
	// A URL that specifies the endpoint where a customer search can be performed.
	SearchCustomerUrl string `json:"searchCustomerUrl"`
	// A URL that specifies the endpoint where an invoice PDF can be retrieved.
	GetInvoicePdfUrl string `json:"getInvoicePdfUrl"`
	// A template URL that indicates the endpoint where a customer can be fetched by ID. Note that ${CUSTOMER_ID} in this URL will be replaced by the actual customer ID. For example: https://myapp.com/api/customers/${CUSTOMER_ID}
	CustomerUrlTemplate string `json:"customerUrlTemplate"`
	// A template URL that indicates the endpoint where a product can be fetched by ID. Note that ${PRODUCT_ID} in this URL will be replaced by the actual product ID. For example: https://myapp.com/api/products/${PRODUCT_ID}
	ProductUrlTemplate string `json:"productUrlTemplate"`
	// A template URL that indicates the endpoint where an invoice can be fetched by ID. Note that ${INVOICE_ID} in this URL will be replaced by the actual invoice ID. For example: https://myapp.com/api/invoices/${INVOICE_ID}
	InvoiceUrlTemplate string `json:"invoiceUrlTemplate"`
	// A URL that specifies the endpoint where an invoices can be created.
	CreateInvoiceUrl *string `json:"createInvoiceUrl,omitempty"`
	// A URL that specifies the endpoint where an invoice search can be performed.
	SearchInvoiceUrl *string `json:"searchInvoiceUrl,omitempty"`
	// A URL that specifies the endpoint where a product search can be performed.
	SearchProductUrl *string `json:"searchProductUrl,omitempty"`
	// A URL that specifies the endpoint where payment terms can be retrieved.
	GetTermsUrl *string `json:"getTermsUrl,omitempty"`
	// A URL that specifies the endpoint where a new customer can be created.
	CreateCustomerUrl *string `json:"createCustomerUrl,omitempty"`
	// A URL that specifies the endpoint where a tax search can be performed.
	SearchTaxUrl *string `json:"searchTaxUrl,omitempty"`
	// A URL that specifies the endpoint where exchange rates can be queried.
	ExchangeRateUrl *string `json:"exchangeRateUrl,omitempty"`
	SearchUrl       *string `json:"searchUrl,omitempty"`
	SearchCountUrl  *string `json:"searchCountUrl,omitempty"`
}

AccountingAppUrls The URL endpoints that HubSpot will send requests to an external accounting system for certain actions.

func NewAccountingAppUrls

func NewAccountingAppUrls(getInvoiceUrl string, searchCustomerUrl string, getInvoicePdfUrl string, customerUrlTemplate string, productUrlTemplate string, invoiceUrlTemplate string) *AccountingAppUrls

NewAccountingAppUrls instantiates a new AccountingAppUrls object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountingAppUrlsWithDefaults

func NewAccountingAppUrlsWithDefaults() *AccountingAppUrls

NewAccountingAppUrlsWithDefaults instantiates a new AccountingAppUrls object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountingAppUrls) GetCreateCustomerUrl

func (o *AccountingAppUrls) GetCreateCustomerUrl() string

GetCreateCustomerUrl returns the CreateCustomerUrl field value if set, zero value otherwise.

func (*AccountingAppUrls) GetCreateCustomerUrlOk

func (o *AccountingAppUrls) GetCreateCustomerUrlOk() (*string, bool)

GetCreateCustomerUrlOk returns a tuple with the CreateCustomerUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountingAppUrls) GetCreateInvoiceUrl

func (o *AccountingAppUrls) GetCreateInvoiceUrl() string

GetCreateInvoiceUrl returns the CreateInvoiceUrl field value if set, zero value otherwise.

func (*AccountingAppUrls) GetCreateInvoiceUrlOk

func (o *AccountingAppUrls) GetCreateInvoiceUrlOk() (*string, bool)

GetCreateInvoiceUrlOk returns a tuple with the CreateInvoiceUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountingAppUrls) GetCustomerUrlTemplate

func (o *AccountingAppUrls) GetCustomerUrlTemplate() string

GetCustomerUrlTemplate returns the CustomerUrlTemplate field value

func (*AccountingAppUrls) GetCustomerUrlTemplateOk

func (o *AccountingAppUrls) GetCustomerUrlTemplateOk() (*string, bool)

GetCustomerUrlTemplateOk returns a tuple with the CustomerUrlTemplate field value and a boolean to check if the value has been set.

func (*AccountingAppUrls) GetExchangeRateUrl

func (o *AccountingAppUrls) GetExchangeRateUrl() string

GetExchangeRateUrl returns the ExchangeRateUrl field value if set, zero value otherwise.

func (*AccountingAppUrls) GetExchangeRateUrlOk

func (o *AccountingAppUrls) GetExchangeRateUrlOk() (*string, bool)

GetExchangeRateUrlOk returns a tuple with the ExchangeRateUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountingAppUrls) GetGetInvoicePdfUrl

func (o *AccountingAppUrls) GetGetInvoicePdfUrl() string

GetGetInvoicePdfUrl returns the GetInvoicePdfUrl field value

func (*AccountingAppUrls) GetGetInvoicePdfUrlOk

func (o *AccountingAppUrls) GetGetInvoicePdfUrlOk() (*string, bool)

GetGetInvoicePdfUrlOk returns a tuple with the GetInvoicePdfUrl field value and a boolean to check if the value has been set.

func (*AccountingAppUrls) GetGetInvoiceUrl

func (o *AccountingAppUrls) GetGetInvoiceUrl() string

GetGetInvoiceUrl returns the GetInvoiceUrl field value

func (*AccountingAppUrls) GetGetInvoiceUrlOk

func (o *AccountingAppUrls) GetGetInvoiceUrlOk() (*string, bool)

GetGetInvoiceUrlOk returns a tuple with the GetInvoiceUrl field value and a boolean to check if the value has been set.

func (*AccountingAppUrls) GetGetTermsUrl

func (o *AccountingAppUrls) GetGetTermsUrl() string

GetGetTermsUrl returns the GetTermsUrl field value if set, zero value otherwise.

func (*AccountingAppUrls) GetGetTermsUrlOk

func (o *AccountingAppUrls) GetGetTermsUrlOk() (*string, bool)

GetGetTermsUrlOk returns a tuple with the GetTermsUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountingAppUrls) GetInvoiceUrlTemplate

func (o *AccountingAppUrls) GetInvoiceUrlTemplate() string

GetInvoiceUrlTemplate returns the InvoiceUrlTemplate field value

func (*AccountingAppUrls) GetInvoiceUrlTemplateOk

func (o *AccountingAppUrls) GetInvoiceUrlTemplateOk() (*string, bool)

GetInvoiceUrlTemplateOk returns a tuple with the InvoiceUrlTemplate field value and a boolean to check if the value has been set.

func (*AccountingAppUrls) GetProductUrlTemplate

func (o *AccountingAppUrls) GetProductUrlTemplate() string

GetProductUrlTemplate returns the ProductUrlTemplate field value

func (*AccountingAppUrls) GetProductUrlTemplateOk

func (o *AccountingAppUrls) GetProductUrlTemplateOk() (*string, bool)

GetProductUrlTemplateOk returns a tuple with the ProductUrlTemplate field value and a boolean to check if the value has been set.

func (*AccountingAppUrls) GetSearchCountUrl

func (o *AccountingAppUrls) GetSearchCountUrl() string

GetSearchCountUrl returns the SearchCountUrl field value if set, zero value otherwise.

func (*AccountingAppUrls) GetSearchCountUrlOk

func (o *AccountingAppUrls) GetSearchCountUrlOk() (*string, bool)

GetSearchCountUrlOk returns a tuple with the SearchCountUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountingAppUrls) GetSearchCustomerUrl

func (o *AccountingAppUrls) GetSearchCustomerUrl() string

GetSearchCustomerUrl returns the SearchCustomerUrl field value

func (*AccountingAppUrls) GetSearchCustomerUrlOk

func (o *AccountingAppUrls) GetSearchCustomerUrlOk() (*string, bool)

GetSearchCustomerUrlOk returns a tuple with the SearchCustomerUrl field value and a boolean to check if the value has been set.

func (*AccountingAppUrls) GetSearchInvoiceUrl

func (o *AccountingAppUrls) GetSearchInvoiceUrl() string

GetSearchInvoiceUrl returns the SearchInvoiceUrl field value if set, zero value otherwise.

func (*AccountingAppUrls) GetSearchInvoiceUrlOk

func (o *AccountingAppUrls) GetSearchInvoiceUrlOk() (*string, bool)

GetSearchInvoiceUrlOk returns a tuple with the SearchInvoiceUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountingAppUrls) GetSearchProductUrl

func (o *AccountingAppUrls) GetSearchProductUrl() string

GetSearchProductUrl returns the SearchProductUrl field value if set, zero value otherwise.

func (*AccountingAppUrls) GetSearchProductUrlOk

func (o *AccountingAppUrls) GetSearchProductUrlOk() (*string, bool)

GetSearchProductUrlOk returns a tuple with the SearchProductUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountingAppUrls) GetSearchTaxUrl

func (o *AccountingAppUrls) GetSearchTaxUrl() string

GetSearchTaxUrl returns the SearchTaxUrl field value if set, zero value otherwise.

func (*AccountingAppUrls) GetSearchTaxUrlOk

func (o *AccountingAppUrls) GetSearchTaxUrlOk() (*string, bool)

GetSearchTaxUrlOk returns a tuple with the SearchTaxUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountingAppUrls) GetSearchUrl

func (o *AccountingAppUrls) GetSearchUrl() string

GetSearchUrl returns the SearchUrl field value if set, zero value otherwise.

func (*AccountingAppUrls) GetSearchUrlOk

func (o *AccountingAppUrls) GetSearchUrlOk() (*string, bool)

GetSearchUrlOk returns a tuple with the SearchUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountingAppUrls) HasCreateCustomerUrl

func (o *AccountingAppUrls) HasCreateCustomerUrl() bool

HasCreateCustomerUrl returns a boolean if a field has been set.

func (*AccountingAppUrls) HasCreateInvoiceUrl

func (o *AccountingAppUrls) HasCreateInvoiceUrl() bool

HasCreateInvoiceUrl returns a boolean if a field has been set.

func (*AccountingAppUrls) HasExchangeRateUrl

func (o *AccountingAppUrls) HasExchangeRateUrl() bool

HasExchangeRateUrl returns a boolean if a field has been set.

func (*AccountingAppUrls) HasGetTermsUrl

func (o *AccountingAppUrls) HasGetTermsUrl() bool

HasGetTermsUrl returns a boolean if a field has been set.

func (*AccountingAppUrls) HasSearchCountUrl

func (o *AccountingAppUrls) HasSearchCountUrl() bool

HasSearchCountUrl returns a boolean if a field has been set.

func (*AccountingAppUrls) HasSearchInvoiceUrl

func (o *AccountingAppUrls) HasSearchInvoiceUrl() bool

HasSearchInvoiceUrl returns a boolean if a field has been set.

func (*AccountingAppUrls) HasSearchProductUrl

func (o *AccountingAppUrls) HasSearchProductUrl() bool

HasSearchProductUrl returns a boolean if a field has been set.

func (*AccountingAppUrls) HasSearchTaxUrl

func (o *AccountingAppUrls) HasSearchTaxUrl() bool

HasSearchTaxUrl returns a boolean if a field has been set.

func (*AccountingAppUrls) HasSearchUrl

func (o *AccountingAppUrls) HasSearchUrl() bool

HasSearchUrl returns a boolean if a field has been set.

func (AccountingAppUrls) MarshalJSON

func (o AccountingAppUrls) MarshalJSON() ([]byte, error)

func (*AccountingAppUrls) SetCreateCustomerUrl

func (o *AccountingAppUrls) SetCreateCustomerUrl(v string)

SetCreateCustomerUrl gets a reference to the given string and assigns it to the CreateCustomerUrl field.

func (*AccountingAppUrls) SetCreateInvoiceUrl

func (o *AccountingAppUrls) SetCreateInvoiceUrl(v string)

SetCreateInvoiceUrl gets a reference to the given string and assigns it to the CreateInvoiceUrl field.

func (*AccountingAppUrls) SetCustomerUrlTemplate

func (o *AccountingAppUrls) SetCustomerUrlTemplate(v string)

SetCustomerUrlTemplate sets field value

func (*AccountingAppUrls) SetExchangeRateUrl

func (o *AccountingAppUrls) SetExchangeRateUrl(v string)

SetExchangeRateUrl gets a reference to the given string and assigns it to the ExchangeRateUrl field.

func (*AccountingAppUrls) SetGetInvoicePdfUrl

func (o *AccountingAppUrls) SetGetInvoicePdfUrl(v string)

SetGetInvoicePdfUrl sets field value

func (*AccountingAppUrls) SetGetInvoiceUrl

func (o *AccountingAppUrls) SetGetInvoiceUrl(v string)

SetGetInvoiceUrl sets field value

func (*AccountingAppUrls) SetGetTermsUrl

func (o *AccountingAppUrls) SetGetTermsUrl(v string)

SetGetTermsUrl gets a reference to the given string and assigns it to the GetTermsUrl field.

func (*AccountingAppUrls) SetInvoiceUrlTemplate

func (o *AccountingAppUrls) SetInvoiceUrlTemplate(v string)

SetInvoiceUrlTemplate sets field value

func (*AccountingAppUrls) SetProductUrlTemplate

func (o *AccountingAppUrls) SetProductUrlTemplate(v string)

SetProductUrlTemplate sets field value

func (*AccountingAppUrls) SetSearchCountUrl

func (o *AccountingAppUrls) SetSearchCountUrl(v string)

SetSearchCountUrl gets a reference to the given string and assigns it to the SearchCountUrl field.

func (*AccountingAppUrls) SetSearchCustomerUrl

func (o *AccountingAppUrls) SetSearchCustomerUrl(v string)

SetSearchCustomerUrl sets field value

func (*AccountingAppUrls) SetSearchInvoiceUrl

func (o *AccountingAppUrls) SetSearchInvoiceUrl(v string)

SetSearchInvoiceUrl gets a reference to the given string and assigns it to the SearchInvoiceUrl field.

func (*AccountingAppUrls) SetSearchProductUrl

func (o *AccountingAppUrls) SetSearchProductUrl(v string)

SetSearchProductUrl gets a reference to the given string and assigns it to the SearchProductUrl field.

func (*AccountingAppUrls) SetSearchTaxUrl

func (o *AccountingAppUrls) SetSearchTaxUrl(v string)

SetSearchTaxUrl gets a reference to the given string and assigns it to the SearchTaxUrl field.

func (*AccountingAppUrls) SetSearchUrl

func (o *AccountingAppUrls) SetSearchUrl(v string)

SetSearchUrl gets a reference to the given string and assigns it to the SearchUrl field.

type AccountingExtensionCustomer

type AccountingExtensionCustomer struct {
	// The customer's email address
	EmailAddress *string `json:"emailAddress,omitempty"`
	// The customer's full name
	Name string `json:"name"`
	// The ID of the customer in the external accounting system.
	Id             string   `json:"id"`
	BillingAddress *Address `json:"billingAddress,omitempty"`
	// The ISO 4217 currency code that represents the currency the customer should be billed in.
	CurrencyCode *string `json:"currencyCode,omitempty"`
}

AccountingExtensionCustomer Representation of a customer in the external accounting system.

func NewAccountingExtensionCustomer

func NewAccountingExtensionCustomer(name string, id string) *AccountingExtensionCustomer

NewAccountingExtensionCustomer instantiates a new AccountingExtensionCustomer object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountingExtensionCustomerWithDefaults

func NewAccountingExtensionCustomerWithDefaults() *AccountingExtensionCustomer

NewAccountingExtensionCustomerWithDefaults instantiates a new AccountingExtensionCustomer object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountingExtensionCustomer) GetBillingAddress

func (o *AccountingExtensionCustomer) GetBillingAddress() Address

GetBillingAddress returns the BillingAddress field value if set, zero value otherwise.

func (*AccountingExtensionCustomer) GetBillingAddressOk

func (o *AccountingExtensionCustomer) GetBillingAddressOk() (*Address, bool)

GetBillingAddressOk returns a tuple with the BillingAddress field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountingExtensionCustomer) GetCurrencyCode

func (o *AccountingExtensionCustomer) GetCurrencyCode() string

GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise.

func (*AccountingExtensionCustomer) GetCurrencyCodeOk

func (o *AccountingExtensionCustomer) GetCurrencyCodeOk() (*string, bool)

GetCurrencyCodeOk returns a tuple with the CurrencyCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountingExtensionCustomer) GetEmailAddress

func (o *AccountingExtensionCustomer) GetEmailAddress() string

GetEmailAddress returns the EmailAddress field value if set, zero value otherwise.

func (*AccountingExtensionCustomer) GetEmailAddressOk

func (o *AccountingExtensionCustomer) GetEmailAddressOk() (*string, bool)

GetEmailAddressOk returns a tuple with the EmailAddress field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountingExtensionCustomer) GetId

GetId returns the Id field value

func (*AccountingExtensionCustomer) GetIdOk

func (o *AccountingExtensionCustomer) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*AccountingExtensionCustomer) GetName

func (o *AccountingExtensionCustomer) GetName() string

GetName returns the Name field value

func (*AccountingExtensionCustomer) GetNameOk

func (o *AccountingExtensionCustomer) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*AccountingExtensionCustomer) HasBillingAddress

func (o *AccountingExtensionCustomer) HasBillingAddress() bool

HasBillingAddress returns a boolean if a field has been set.

func (*AccountingExtensionCustomer) HasCurrencyCode

func (o *AccountingExtensionCustomer) HasCurrencyCode() bool

HasCurrencyCode returns a boolean if a field has been set.

func (*AccountingExtensionCustomer) HasEmailAddress

func (o *AccountingExtensionCustomer) HasEmailAddress() bool

HasEmailAddress returns a boolean if a field has been set.

func (AccountingExtensionCustomer) MarshalJSON

func (o AccountingExtensionCustomer) MarshalJSON() ([]byte, error)

func (*AccountingExtensionCustomer) SetBillingAddress

func (o *AccountingExtensionCustomer) SetBillingAddress(v Address)

SetBillingAddress gets a reference to the given Address and assigns it to the BillingAddress field.

func (*AccountingExtensionCustomer) SetCurrencyCode

func (o *AccountingExtensionCustomer) SetCurrencyCode(v string)

SetCurrencyCode gets a reference to the given string and assigns it to the CurrencyCode field.

func (*AccountingExtensionCustomer) SetEmailAddress

func (o *AccountingExtensionCustomer) SetEmailAddress(v string)

SetEmailAddress gets a reference to the given string and assigns it to the EmailAddress field.

func (*AccountingExtensionCustomer) SetId

func (o *AccountingExtensionCustomer) SetId(v string)

SetId sets field value

func (*AccountingExtensionCustomer) SetName

func (o *AccountingExtensionCustomer) SetName(v string)

SetName sets field value

type AccountingExtensionInvoice

type AccountingExtensionInvoice struct {
	// The total amount due.
	AmountDue float32 `json:"amountDue"`
	// The remaining outstanding balance due.
	Balance *float32 `json:"balance,omitempty"`
	// The due date for payment of the invoice, in ISO-8601 date format (yyyy-MM-dd)
	DueDate string `json:"dueDate"`
	// The invoice number
	InvoiceNumber *string `json:"invoiceNumber,omitempty"`
	// The ID of the customer that this invoice is for.
	CustomerId *string `json:"customerId,omitempty"`
	// The ISO 4217 currency code that represents the currency of this invoice.
	Currency string `json:"currency"`
	// A link to the invoice in the external accounting system.
	InvoiceLink string `json:"invoiceLink"`
	// The name of the customer that this invoice is for.
	CustomerName string `json:"customerName"`
	// The currency status of the invoice.
	Status string `json:"status"`
}

AccountingExtensionInvoice Representation of an invoice in the external accounting system.

func NewAccountingExtensionInvoice

func NewAccountingExtensionInvoice(amountDue float32, dueDate string, currency string, invoiceLink string, customerName string, status string) *AccountingExtensionInvoice

NewAccountingExtensionInvoice instantiates a new AccountingExtensionInvoice object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountingExtensionInvoiceWithDefaults

func NewAccountingExtensionInvoiceWithDefaults() *AccountingExtensionInvoice

NewAccountingExtensionInvoiceWithDefaults instantiates a new AccountingExtensionInvoice object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountingExtensionInvoice) GetAmountDue

func (o *AccountingExtensionInvoice) GetAmountDue() float32

GetAmountDue returns the AmountDue field value

func (*AccountingExtensionInvoice) GetAmountDueOk

func (o *AccountingExtensionInvoice) GetAmountDueOk() (*float32, bool)

GetAmountDueOk returns a tuple with the AmountDue field value and a boolean to check if the value has been set.

func (*AccountingExtensionInvoice) GetBalance

func (o *AccountingExtensionInvoice) GetBalance() float32

GetBalance returns the Balance field value if set, zero value otherwise.

func (*AccountingExtensionInvoice) GetBalanceOk

func (o *AccountingExtensionInvoice) GetBalanceOk() (*float32, bool)

GetBalanceOk returns a tuple with the Balance field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountingExtensionInvoice) GetCurrency

func (o *AccountingExtensionInvoice) GetCurrency() string

GetCurrency returns the Currency field value

func (*AccountingExtensionInvoice) GetCurrencyOk

func (o *AccountingExtensionInvoice) GetCurrencyOk() (*string, bool)

GetCurrencyOk returns a tuple with the Currency field value and a boolean to check if the value has been set.

func (*AccountingExtensionInvoice) GetCustomerId

func (o *AccountingExtensionInvoice) GetCustomerId() string

GetCustomerId returns the CustomerId field value if set, zero value otherwise.

func (*AccountingExtensionInvoice) GetCustomerIdOk

func (o *AccountingExtensionInvoice) GetCustomerIdOk() (*string, bool)

GetCustomerIdOk returns a tuple with the CustomerId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountingExtensionInvoice) GetCustomerName

func (o *AccountingExtensionInvoice) GetCustomerName() string

GetCustomerName returns the CustomerName field value

func (*AccountingExtensionInvoice) GetCustomerNameOk

func (o *AccountingExtensionInvoice) GetCustomerNameOk() (*string, bool)

GetCustomerNameOk returns a tuple with the CustomerName field value and a boolean to check if the value has been set.

func (*AccountingExtensionInvoice) GetDueDate

func (o *AccountingExtensionInvoice) GetDueDate() string

GetDueDate returns the DueDate field value

func (*AccountingExtensionInvoice) GetDueDateOk

func (o *AccountingExtensionInvoice) GetDueDateOk() (*string, bool)

GetDueDateOk returns a tuple with the DueDate field value and a boolean to check if the value has been set.

func (o *AccountingExtensionInvoice) GetInvoiceLink() string

GetInvoiceLink returns the InvoiceLink field value

func (*AccountingExtensionInvoice) GetInvoiceLinkOk

func (o *AccountingExtensionInvoice) GetInvoiceLinkOk() (*string, bool)

GetInvoiceLinkOk returns a tuple with the InvoiceLink field value and a boolean to check if the value has been set.

func (*AccountingExtensionInvoice) GetInvoiceNumber

func (o *AccountingExtensionInvoice) GetInvoiceNumber() string

GetInvoiceNumber returns the InvoiceNumber field value if set, zero value otherwise.

func (*AccountingExtensionInvoice) GetInvoiceNumberOk

func (o *AccountingExtensionInvoice) GetInvoiceNumberOk() (*string, bool)

GetInvoiceNumberOk returns a tuple with the InvoiceNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountingExtensionInvoice) GetStatus

func (o *AccountingExtensionInvoice) GetStatus() string

GetStatus returns the Status field value

func (*AccountingExtensionInvoice) GetStatusOk

func (o *AccountingExtensionInvoice) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*AccountingExtensionInvoice) HasBalance

func (o *AccountingExtensionInvoice) HasBalance() bool

HasBalance returns a boolean if a field has been set.

func (*AccountingExtensionInvoice) HasCustomerId

func (o *AccountingExtensionInvoice) HasCustomerId() bool

HasCustomerId returns a boolean if a field has been set.

func (*AccountingExtensionInvoice) HasInvoiceNumber

func (o *AccountingExtensionInvoice) HasInvoiceNumber() bool

HasInvoiceNumber returns a boolean if a field has been set.

func (AccountingExtensionInvoice) MarshalJSON

func (o AccountingExtensionInvoice) MarshalJSON() ([]byte, error)

func (*AccountingExtensionInvoice) SetAmountDue

func (o *AccountingExtensionInvoice) SetAmountDue(v float32)

SetAmountDue sets field value

func (*AccountingExtensionInvoice) SetBalance

func (o *AccountingExtensionInvoice) SetBalance(v float32)

SetBalance gets a reference to the given float32 and assigns it to the Balance field.

func (*AccountingExtensionInvoice) SetCurrency

func (o *AccountingExtensionInvoice) SetCurrency(v string)

SetCurrency sets field value

func (*AccountingExtensionInvoice) SetCustomerId

func (o *AccountingExtensionInvoice) SetCustomerId(v string)

SetCustomerId gets a reference to the given string and assigns it to the CustomerId field.

func (*AccountingExtensionInvoice) SetCustomerName

func (o *AccountingExtensionInvoice) SetCustomerName(v string)

SetCustomerName sets field value

func (*AccountingExtensionInvoice) SetDueDate

func (o *AccountingExtensionInvoice) SetDueDate(v string)

SetDueDate sets field value

func (o *AccountingExtensionInvoice) SetInvoiceLink(v string)

SetInvoiceLink sets field value

func (*AccountingExtensionInvoice) SetInvoiceNumber

func (o *AccountingExtensionInvoice) SetInvoiceNumber(v string)

SetInvoiceNumber gets a reference to the given string and assigns it to the InvoiceNumber field.

func (*AccountingExtensionInvoice) SetStatus

func (o *AccountingExtensionInvoice) SetStatus(v string)

SetStatus sets field value

type AccountingExtensionTerm

type AccountingExtensionTerm struct {
	// The due date for payment of the invoice, in ISO-8601 date format (yyyy-MM-dd)
	DueDate *string `json:"dueDate,omitempty"`
	// The display name of the payment terms.
	Name string `json:"name"`
	// The ID of the payment terms in the external accounting system.
	Id string `json:"id"`
	// The number of days that these payment terms represent.
	DueDays *int32 `json:"dueDays,omitempty"`
}

AccountingExtensionTerm Representation of payment terms that are defined in the external accounting system. One of 'dueDays' or 'dueDate' is required.

func NewAccountingExtensionTerm

func NewAccountingExtensionTerm(name string, id string) *AccountingExtensionTerm

NewAccountingExtensionTerm instantiates a new AccountingExtensionTerm object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountingExtensionTermWithDefaults

func NewAccountingExtensionTermWithDefaults() *AccountingExtensionTerm

NewAccountingExtensionTermWithDefaults instantiates a new AccountingExtensionTerm object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountingExtensionTerm) GetDueDate

func (o *AccountingExtensionTerm) GetDueDate() string

GetDueDate returns the DueDate field value if set, zero value otherwise.

func (*AccountingExtensionTerm) GetDueDateOk

func (o *AccountingExtensionTerm) GetDueDateOk() (*string, bool)

GetDueDateOk returns a tuple with the DueDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountingExtensionTerm) GetDueDays

func (o *AccountingExtensionTerm) GetDueDays() int32

GetDueDays returns the DueDays field value if set, zero value otherwise.

func (*AccountingExtensionTerm) GetDueDaysOk

func (o *AccountingExtensionTerm) GetDueDaysOk() (*int32, bool)

GetDueDaysOk returns a tuple with the DueDays field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountingExtensionTerm) GetId

func (o *AccountingExtensionTerm) GetId() string

GetId returns the Id field value

func (*AccountingExtensionTerm) GetIdOk

func (o *AccountingExtensionTerm) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*AccountingExtensionTerm) GetName

func (o *AccountingExtensionTerm) GetName() string

GetName returns the Name field value

func (*AccountingExtensionTerm) GetNameOk

func (o *AccountingExtensionTerm) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*AccountingExtensionTerm) HasDueDate

func (o *AccountingExtensionTerm) HasDueDate() bool

HasDueDate returns a boolean if a field has been set.

func (*AccountingExtensionTerm) HasDueDays

func (o *AccountingExtensionTerm) HasDueDays() bool

HasDueDays returns a boolean if a field has been set.

func (AccountingExtensionTerm) MarshalJSON

func (o AccountingExtensionTerm) MarshalJSON() ([]byte, error)

func (*AccountingExtensionTerm) SetDueDate

func (o *AccountingExtensionTerm) SetDueDate(v string)

SetDueDate gets a reference to the given string and assigns it to the DueDate field.

func (*AccountingExtensionTerm) SetDueDays

func (o *AccountingExtensionTerm) SetDueDays(v int32)

SetDueDays gets a reference to the given int32 and assigns it to the DueDays field.

func (*AccountingExtensionTerm) SetId

func (o *AccountingExtensionTerm) SetId(v string)

SetId sets field value

func (*AccountingExtensionTerm) SetName

func (o *AccountingExtensionTerm) SetName(v string)

SetName sets field value

type AccountingFeatures

type AccountingFeatures struct {
	CreateInvoice CreateInvoiceFeature `json:"createInvoice"`
	ImportInvoice ImportInvoiceFeature `json:"importInvoice"`
	// Indicates if syncing objects from the external account system into HubSpot is supported for the integration. This is a map, where the key is one of `CONTACT` or `PRODUCT`, to indicate which type of object you do or don't support syncing. For example: “`   \"sync\": {     \"CONTACT\": {       \"toHubSpot\": true     },     \"PRODUCT\": {       \"toHubSpot\": true     }   } “`
	Sync map[string]ObjectSyncFeature `json:"sync"`
}

AccountingFeatures Outlines the features that are supported by the external accounting system.

func NewAccountingFeatures

func NewAccountingFeatures(createInvoice CreateInvoiceFeature, importInvoice ImportInvoiceFeature, sync map[string]ObjectSyncFeature) *AccountingFeatures

NewAccountingFeatures instantiates a new AccountingFeatures object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccountingFeaturesWithDefaults

func NewAccountingFeaturesWithDefaults() *AccountingFeatures

NewAccountingFeaturesWithDefaults instantiates a new AccountingFeatures object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccountingFeatures) GetCreateInvoice

func (o *AccountingFeatures) GetCreateInvoice() CreateInvoiceFeature

GetCreateInvoice returns the CreateInvoice field value

func (*AccountingFeatures) GetCreateInvoiceOk

func (o *AccountingFeatures) GetCreateInvoiceOk() (*CreateInvoiceFeature, bool)

GetCreateInvoiceOk returns a tuple with the CreateInvoice field value and a boolean to check if the value has been set.

func (*AccountingFeatures) GetImportInvoice

func (o *AccountingFeatures) GetImportInvoice() ImportInvoiceFeature

GetImportInvoice returns the ImportInvoice field value

func (*AccountingFeatures) GetImportInvoiceOk

func (o *AccountingFeatures) GetImportInvoiceOk() (*ImportInvoiceFeature, bool)

GetImportInvoiceOk returns a tuple with the ImportInvoice field value and a boolean to check if the value has been set.

func (*AccountingFeatures) GetSync

func (o *AccountingFeatures) GetSync() map[string]ObjectSyncFeature

GetSync returns the Sync field value

func (*AccountingFeatures) GetSyncOk

func (o *AccountingFeatures) GetSyncOk() (*map[string]ObjectSyncFeature, bool)

GetSyncOk returns a tuple with the Sync field value and a boolean to check if the value has been set.

func (AccountingFeatures) MarshalJSON

func (o AccountingFeatures) MarshalJSON() ([]byte, error)

func (*AccountingFeatures) SetCreateInvoice

func (o *AccountingFeatures) SetCreateInvoice(v CreateInvoiceFeature)

SetCreateInvoice sets field value

func (*AccountingFeatures) SetImportInvoice

func (o *AccountingFeatures) SetImportInvoice(v ImportInvoiceFeature)

SetImportInvoice sets field value

func (*AccountingFeatures) SetSync

func (o *AccountingFeatures) SetSync(v map[string]ObjectSyncFeature)

SetSync sets field value

type ActionResponse

type ActionResponse struct {
	Status      string             `json:"status"`
	RequestedAt *time.Time         `json:"requestedAt,omitempty"`
	StartedAt   time.Time          `json:"startedAt"`
	CompletedAt time.Time          `json:"completedAt"`
	Links       *map[string]string `json:"links,omitempty"`
}

ActionResponse struct for ActionResponse

func NewActionResponse

func NewActionResponse(status string, startedAt time.Time, completedAt time.Time) *ActionResponse

NewActionResponse instantiates a new ActionResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewActionResponseWithDefaults

func NewActionResponseWithDefaults() *ActionResponse

NewActionResponseWithDefaults instantiates a new ActionResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ActionResponse) GetCompletedAt

func (o *ActionResponse) GetCompletedAt() time.Time

GetCompletedAt returns the CompletedAt field value

func (*ActionResponse) GetCompletedAtOk

func (o *ActionResponse) GetCompletedAtOk() (*time.Time, bool)

GetCompletedAtOk returns a tuple with the CompletedAt field value and a boolean to check if the value has been set.

func (o *ActionResponse) GetLinks() map[string]string

GetLinks returns the Links field value if set, zero value otherwise.

func (*ActionResponse) GetLinksOk

func (o *ActionResponse) GetLinksOk() (*map[string]string, bool)

GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ActionResponse) GetRequestedAt

func (o *ActionResponse) GetRequestedAt() time.Time

GetRequestedAt returns the RequestedAt field value if set, zero value otherwise.

func (*ActionResponse) GetRequestedAtOk

func (o *ActionResponse) GetRequestedAtOk() (*time.Time, bool)

GetRequestedAtOk returns a tuple with the RequestedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ActionResponse) GetStartedAt

func (o *ActionResponse) GetStartedAt() time.Time

GetStartedAt returns the StartedAt field value

func (*ActionResponse) GetStartedAtOk

func (o *ActionResponse) GetStartedAtOk() (*time.Time, bool)

GetStartedAtOk returns a tuple with the StartedAt field value and a boolean to check if the value has been set.

func (*ActionResponse) GetStatus

func (o *ActionResponse) GetStatus() string

GetStatus returns the Status field value

func (*ActionResponse) GetStatusOk

func (o *ActionResponse) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (o *ActionResponse) HasLinks() bool

HasLinks returns a boolean if a field has been set.

func (*ActionResponse) HasRequestedAt

func (o *ActionResponse) HasRequestedAt() bool

HasRequestedAt returns a boolean if a field has been set.

func (ActionResponse) MarshalJSON

func (o ActionResponse) MarshalJSON() ([]byte, error)

func (*ActionResponse) SetCompletedAt

func (o *ActionResponse) SetCompletedAt(v time.Time)

SetCompletedAt sets field value

func (o *ActionResponse) SetLinks(v map[string]string)

SetLinks gets a reference to the given map[string]string and assigns it to the Links field.

func (*ActionResponse) SetRequestedAt

func (o *ActionResponse) SetRequestedAt(v time.Time)

SetRequestedAt gets a reference to the given time.Time and assigns it to the RequestedAt field.

func (*ActionResponse) SetStartedAt

func (o *ActionResponse) SetStartedAt(v time.Time)

SetStartedAt sets field value

func (*ActionResponse) SetStatus

func (o *ActionResponse) SetStatus(v string)

SetStatus sets field value

type Address

type Address struct {
	// The country of the address.
	Country *string `json:"country,omitempty"`
	// A region of the county of the address.  May represent county, state etc.
	CountrySubDivisionCode *string `json:"countrySubDivisionCode,omitempty"`
	// The city of the address.
	City *string `json:"city,omitempty"`
	// The postcode/zipcode of the address.
	PostalCode *string `json:"postalCode,omitempty"`
	// The first line of the address.
	LineOne *string `json:"lineOne,omitempty"`
}

Address Represents an address of a customer

func NewAddress

func NewAddress() *Address

NewAddress instantiates a new Address object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAddressWithDefaults

func NewAddressWithDefaults() *Address

NewAddressWithDefaults instantiates a new Address object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Address) GetCity

func (o *Address) GetCity() string

GetCity returns the City field value if set, zero value otherwise.

func (*Address) GetCityOk

func (o *Address) GetCityOk() (*string, bool)

GetCityOk returns a tuple with the City field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) GetCountry

func (o *Address) GetCountry() string

GetCountry returns the Country field value if set, zero value otherwise.

func (*Address) GetCountryOk

func (o *Address) GetCountryOk() (*string, bool)

GetCountryOk returns a tuple with the Country field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) GetCountrySubDivisionCode

func (o *Address) GetCountrySubDivisionCode() string

GetCountrySubDivisionCode returns the CountrySubDivisionCode field value if set, zero value otherwise.

func (*Address) GetCountrySubDivisionCodeOk

func (o *Address) GetCountrySubDivisionCodeOk() (*string, bool)

GetCountrySubDivisionCodeOk returns a tuple with the CountrySubDivisionCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) GetLineOne

func (o *Address) GetLineOne() string

GetLineOne returns the LineOne field value if set, zero value otherwise.

func (*Address) GetLineOneOk

func (o *Address) GetLineOneOk() (*string, bool)

GetLineOneOk returns a tuple with the LineOne field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) GetPostalCode

func (o *Address) GetPostalCode() string

GetPostalCode returns the PostalCode field value if set, zero value otherwise.

func (*Address) GetPostalCodeOk

func (o *Address) GetPostalCodeOk() (*string, bool)

GetPostalCodeOk returns a tuple with the PostalCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Address) HasCity

func (o *Address) HasCity() bool

HasCity returns a boolean if a field has been set.

func (*Address) HasCountry

func (o *Address) HasCountry() bool

HasCountry returns a boolean if a field has been set.

func (*Address) HasCountrySubDivisionCode

func (o *Address) HasCountrySubDivisionCode() bool

HasCountrySubDivisionCode returns a boolean if a field has been set.

func (*Address) HasLineOne

func (o *Address) HasLineOne() bool

HasLineOne returns a boolean if a field has been set.

func (*Address) HasPostalCode

func (o *Address) HasPostalCode() bool

HasPostalCode returns a boolean if a field has been set.

func (Address) MarshalJSON

func (o Address) MarshalJSON() ([]byte, error)

func (*Address) SetCity

func (o *Address) SetCity(v string)

SetCity gets a reference to the given string and assigns it to the City field.

func (*Address) SetCountry

func (o *Address) SetCountry(v string)

SetCountry gets a reference to the given string and assigns it to the Country field.

func (*Address) SetCountrySubDivisionCode

func (o *Address) SetCountrySubDivisionCode(v string)

SetCountrySubDivisionCode gets a reference to the given string and assigns it to the CountrySubDivisionCode field.

func (*Address) SetLineOne

func (o *Address) SetLineOne(v string)

SetLineOne gets a reference to the given string and assigns it to the LineOne field.

func (*Address) SetPostalCode

func (o *Address) SetPostalCode(v string)

SetPostalCode gets a reference to the given string and assigns it to the PostalCode field.

type ApiCallbackCreateCustomerRequest

type ApiCallbackCreateCustomerRequest struct {
	ApiService *CallbacksApiService
	// contains filtered or unexported fields
}

func (ApiCallbackCreateCustomerRequest) Execute

func (ApiCallbackCreateCustomerRequest) ResultIdAccountingResponse

func (r ApiCallbackCreateCustomerRequest) ResultIdAccountingResponse(resultIdAccountingResponse ResultIdAccountingResponse) ApiCallbackCreateCustomerRequest

The ID of the created customer.

type ApiCallbackCreateExchangeRateRequest

type ApiCallbackCreateExchangeRateRequest struct {
	ApiService *CallbacksApiService
	// contains filtered or unexported fields
}

func (ApiCallbackCreateExchangeRateRequest) ExchangeRateResponse

The result of the exchange rate request.

func (ApiCallbackCreateExchangeRateRequest) Execute

type ApiCallbackCreateInvoiceRequest

type ApiCallbackCreateInvoiceRequest struct {
	ApiService *CallbacksApiService
	// contains filtered or unexported fields
}

func (ApiCallbackCreateInvoiceRequest) Execute

func (ApiCallbackCreateInvoiceRequest) ResultIdAccountingResponse

func (r ApiCallbackCreateInvoiceRequest) ResultIdAccountingResponse(resultIdAccountingResponse ResultIdAccountingResponse) ApiCallbackCreateInvoiceRequest

The ID of the created invoice.

type ApiCallbackCreateTermRequest

type ApiCallbackCreateTermRequest struct {
	ApiService *CallbacksApiService
	// contains filtered or unexported fields
}

func (ApiCallbackCreateTermRequest) Execute

func (ApiCallbackCreateTermRequest) TermsResponse

The result of the terms search

type ApiCallbackDoInvoiceSearchRequest

type ApiCallbackDoInvoiceSearchRequest struct {
	ApiService *CallbacksApiService
	// contains filtered or unexported fields
}

func (ApiCallbackDoInvoiceSearchRequest) Execute

func (ApiCallbackDoInvoiceSearchRequest) InvoiceSearchResponse

func (r ApiCallbackDoInvoiceSearchRequest) InvoiceSearchResponse(invoiceSearchResponse InvoiceSearchResponse) ApiCallbackDoInvoiceSearchRequest

The result of the invoice search request.

type ApiCallbackDoProductSearchRequest

type ApiCallbackDoProductSearchRequest struct {
	ApiService *CallbacksApiService
	// contains filtered or unexported fields
}

func (ApiCallbackDoProductSearchRequest) Execute

func (ApiCallbackDoProductSearchRequest) ProductSearchResponse

func (r ApiCallbackDoProductSearchRequest) ProductSearchResponse(productSearchResponse ProductSearchResponse) ApiCallbackDoProductSearchRequest

The result of the product search request.

type ApiCallbackDoSearchCustomerRequest

type ApiCallbackDoSearchCustomerRequest struct {
	ApiService *CallbacksApiService
	// contains filtered or unexported fields
}

func (ApiCallbackDoSearchCustomerRequest) CustomerSearchResponseExternal

func (r ApiCallbackDoSearchCustomerRequest) CustomerSearchResponseExternal(customerSearchResponseExternal CustomerSearchResponseExternal) ApiCallbackDoSearchCustomerRequest

The result of the customer search request.

func (ApiCallbackDoSearchCustomerRequest) Execute

type ApiCallbackDoTaxSearchRequest

type ApiCallbackDoTaxSearchRequest struct {
	ApiService *CallbacksApiService
	// contains filtered or unexported fields
}

func (ApiCallbackDoTaxSearchRequest) Execute

func (ApiCallbackDoTaxSearchRequest) TaxSearchResponse

func (r ApiCallbackDoTaxSearchRequest) TaxSearchResponse(taxSearchResponse TaxSearchResponse) ApiCallbackDoTaxSearchRequest

The result of the taxes search request.

type ApiCallbackGetByIDRequest

type ApiCallbackGetByIDRequest struct {
	ApiService *CallbacksApiService
	// contains filtered or unexported fields
}

func (ApiCallbackGetByIDRequest) Execute

func (r ApiCallbackGetByIDRequest) Execute() (*http.Response, error)

func (ApiCallbackGetByIDRequest) InvoicesResponseExternal

func (r ApiCallbackGetByIDRequest) InvoicesResponseExternal(invoicesResponseExternal InvoicesResponseExternal) ApiCallbackGetByIDRequest

The result of the invoice request.

type ApiCallbackInvoicePDFRequest

type ApiCallbackInvoicePDFRequest struct {
	ApiService *CallbacksApiService
	// contains filtered or unexported fields
}

func (ApiCallbackInvoicePDFRequest) Execute

func (ApiCallbackInvoicePDFRequest) InvoicePdfResponse

func (r ApiCallbackInvoicePDFRequest) InvoicePdfResponse(invoicePdfResponse InvoicePdfResponse) ApiCallbackInvoicePDFRequest

The bytes of the invoice PDF.

type ApiInvoiceCreatePaymentRequest

type ApiInvoiceCreatePaymentRequest struct {
	ApiService *InvoiceApiService
	// contains filtered or unexported fields
}

func (ApiInvoiceCreatePaymentRequest) AccountId

The ID of the account that the invoice belongs to. This is the account ID from the external accounting system.

func (ApiInvoiceCreatePaymentRequest) Execute

func (ApiInvoiceCreatePaymentRequest) InvoiceCreatePaymentRequest

func (r ApiInvoiceCreatePaymentRequest) InvoiceCreatePaymentRequest(invoiceCreatePaymentRequest InvoiceCreatePaymentRequest) ApiInvoiceCreatePaymentRequest

The payment information

type ApiInvoiceGetByIDRequest

type ApiInvoiceGetByIDRequest struct {
	ApiService *InvoiceApiService
	// contains filtered or unexported fields
}

func (ApiInvoiceGetByIDRequest) AccountId

The ID of the account that the invoice belongs to. This is the account ID from the external accounting system.

func (ApiInvoiceGetByIDRequest) Execute

type ApiInvoiceUpdateRequest

type ApiInvoiceUpdateRequest struct {
	ApiService *InvoiceApiService
	// contains filtered or unexported fields
}

func (ApiInvoiceUpdateRequest) AccountId

The ID of the account that the invoice belongs to. This is the account ID from the external accounting system.

func (ApiInvoiceUpdateRequest) Execute

func (ApiInvoiceUpdateRequest) InvoiceUpdateRequest

func (r ApiInvoiceUpdateRequest) InvoiceUpdateRequest(invoiceUpdateRequest InvoiceUpdateRequest) ApiInvoiceUpdateRequest

The invoice data to update

type ApiSettingsGetByIDRequest

type ApiSettingsGetByIDRequest struct {
	ApiService *SettingsApiService
	// contains filtered or unexported fields
}

func (ApiSettingsGetByIDRequest) Execute

type ApiSettingsReplaceRequest

type ApiSettingsReplaceRequest struct {
	ApiService *SettingsApiService
	// contains filtered or unexported fields
}

func (ApiSettingsReplaceRequest) AccountingAppSettings

func (r ApiSettingsReplaceRequest) AccountingAppSettings(accountingAppSettings AccountingAppSettings) ApiSettingsReplaceRequest

func (ApiSettingsReplaceRequest) Execute

func (r ApiSettingsReplaceRequest) Execute() (*http.Response, error)

type ApiSyncCreateContactRequest

type ApiSyncCreateContactRequest struct {
	ApiService *SyncApiService
	// contains filtered or unexported fields
}

func (ApiSyncCreateContactRequest) Execute

func (ApiSyncCreateContactRequest) SyncContactsRequest

func (r ApiSyncCreateContactRequest) SyncContactsRequest(syncContactsRequest SyncContactsRequest) ApiSyncCreateContactRequest

type ApiSyncCreateProductRequest

type ApiSyncCreateProductRequest struct {
	ApiService *SyncApiService
	// contains filtered or unexported fields
}

func (ApiSyncCreateProductRequest) Execute

func (ApiSyncCreateProductRequest) SyncProductsRequest

func (r ApiSyncCreateProductRequest) SyncProductsRequest(syncProductsRequest SyncProductsRequest) ApiSyncCreateProductRequest

type ApiUserAccountsArchiveRequest

type ApiUserAccountsArchiveRequest struct {
	ApiService *UserAccountsApiService
	// contains filtered or unexported fields
}

func (ApiUserAccountsArchiveRequest) Execute

type ApiUserAccountsReplaceRequest

type ApiUserAccountsReplaceRequest struct {
	ApiService *UserAccountsApiService
	// contains filtered or unexported fields
}

func (ApiUserAccountsReplaceRequest) CreateUserAccountRequestExternal

func (r ApiUserAccountsReplaceRequest) CreateUserAccountRequestExternal(createUserAccountRequestExternal CreateUserAccountRequestExternal) ApiUserAccountsReplaceRequest

The external accounting system user account information.

func (ApiUserAccountsReplaceRequest) Execute

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type CallbacksApiService

type CallbacksApiService service

CallbacksApiService CallbacksApi service

func (*CallbacksApiService) CallbackCreateCustomer

func (a *CallbacksApiService) CallbackCreateCustomer(ctx context.Context, requestId string) ApiCallbackCreateCustomerRequest

CallbackCreateCustomer Endpoint for customer creation response

Call this endpoint with the response to a customer creation request.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param requestId The ID of the request that this response is for
@return ApiCallbackCreateCustomerRequest

func (*CallbacksApiService) CallbackCreateCustomerExecute

func (a *CallbacksApiService) CallbackCreateCustomerExecute(r ApiCallbackCreateCustomerRequest) (*http.Response, error)

Execute executes the request

func (*CallbacksApiService) CallbackCreateExchangeRate

func (a *CallbacksApiService) CallbackCreateExchangeRate(ctx context.Context, requestId string) ApiCallbackCreateExchangeRateRequest

CallbackCreateExchangeRate Endpoint for exchange rate response

Call this endpoint with the response to an exchange rate request.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param requestId The ID of the request that this response is for
@return ApiCallbackCreateExchangeRateRequest

func (*CallbacksApiService) CallbackCreateExchangeRateExecute

func (a *CallbacksApiService) CallbackCreateExchangeRateExecute(r ApiCallbackCreateExchangeRateRequest) (*http.Response, error)

Execute executes the request

func (*CallbacksApiService) CallbackCreateInvoice

func (a *CallbacksApiService) CallbackCreateInvoice(ctx context.Context, requestId string) ApiCallbackCreateInvoiceRequest

CallbackCreateInvoice Endpoint for invoice creation response

Call this endpoint with the response to a invoice creation request.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param requestId The ID of the request that this response is for
@return ApiCallbackCreateInvoiceRequest

func (*CallbacksApiService) CallbackCreateInvoiceExecute

func (a *CallbacksApiService) CallbackCreateInvoiceExecute(r ApiCallbackCreateInvoiceRequest) (*http.Response, error)

Execute executes the request

func (*CallbacksApiService) CallbackCreateTerm

func (a *CallbacksApiService) CallbackCreateTerm(ctx context.Context, requestId string) ApiCallbackCreateTermRequest

CallbackCreateTerm Endpoint for terms search response

Call this endpoint with the response to a terms search request.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param requestId The ID of the request that this response is for
@return ApiCallbackCreateTermRequest

func (*CallbacksApiService) CallbackCreateTermExecute

func (a *CallbacksApiService) CallbackCreateTermExecute(r ApiCallbackCreateTermRequest) (*http.Response, error)

Execute executes the request

func (*CallbacksApiService) CallbackDoInvoiceSearch

func (a *CallbacksApiService) CallbackDoInvoiceSearch(ctx context.Context, requestId string) ApiCallbackDoInvoiceSearchRequest

CallbackDoInvoiceSearch Endpoint for invoice search response

Call this endpoint with the response to a invoice search request.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param requestId The ID of the request that this response is for
@return ApiCallbackDoInvoiceSearchRequest

func (*CallbacksApiService) CallbackDoInvoiceSearchExecute

func (a *CallbacksApiService) CallbackDoInvoiceSearchExecute(r ApiCallbackDoInvoiceSearchRequest) (*http.Response, error)

Execute executes the request

func (*CallbacksApiService) CallbackDoProductSearch

func (a *CallbacksApiService) CallbackDoProductSearch(ctx context.Context, requestId string) ApiCallbackDoProductSearchRequest

CallbackDoProductSearch Endpoint for product search response

Call this endpoint with the response to a product search request.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param requestId The ID of the request that this response is for
@return ApiCallbackDoProductSearchRequest

func (*CallbacksApiService) CallbackDoProductSearchExecute

func (a *CallbacksApiService) CallbackDoProductSearchExecute(r ApiCallbackDoProductSearchRequest) (*http.Response, error)

Execute executes the request

func (*CallbacksApiService) CallbackDoSearchCustomer

func (a *CallbacksApiService) CallbackDoSearchCustomer(ctx context.Context, requestId string) ApiCallbackDoSearchCustomerRequest

CallbackDoSearchCustomer Endpoint for customer search response

Call this endpoint with the response to a customer search request.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param requestId The ID of the request that this response is for
@return ApiCallbackDoSearchCustomerRequest

func (*CallbacksApiService) CallbackDoSearchCustomerExecute

func (a *CallbacksApiService) CallbackDoSearchCustomerExecute(r ApiCallbackDoSearchCustomerRequest) (*http.Response, error)

Execute executes the request

func (*CallbacksApiService) CallbackDoTaxSearch

func (a *CallbacksApiService) CallbackDoTaxSearch(ctx context.Context, requestId string) ApiCallbackDoTaxSearchRequest

CallbackDoTaxSearch Endpoint for taxes search response

Call this endpoint with the response to a taxes search request.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param requestId The ID of the request that this response is for
@return ApiCallbackDoTaxSearchRequest

func (*CallbacksApiService) CallbackDoTaxSearchExecute

func (a *CallbacksApiService) CallbackDoTaxSearchExecute(r ApiCallbackDoTaxSearchRequest) (*http.Response, error)

Execute executes the request

func (*CallbacksApiService) CallbackGetByID

func (a *CallbacksApiService) CallbackGetByID(ctx context.Context, requestId string) ApiCallbackGetByIDRequest

CallbackGetByID Endpoint for invoice get-by-id response

Call this endpoint with the response to a invoice get-by-id request.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param requestId The ID of the request that this response is for
@return ApiCallbackGetByIDRequest

func (*CallbacksApiService) CallbackGetByIDExecute

func (a *CallbacksApiService) CallbackGetByIDExecute(r ApiCallbackGetByIDRequest) (*http.Response, error)

Execute executes the request

func (*CallbacksApiService) CallbackInvoicePDF

func (a *CallbacksApiService) CallbackInvoicePDF(ctx context.Context, requestId string) ApiCallbackInvoicePDFRequest

CallbackInvoicePDF Endpoint for PDF content of invoice

Call this endpoint with the PDF content of a requested invoice.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param requestId The ID of the request that this response is for
@return ApiCallbackInvoicePDFRequest

func (*CallbacksApiService) CallbackInvoicePDFExecute

func (a *CallbacksApiService) CallbackInvoicePDFExecute(r ApiCallbackInvoicePDFRequest) (*http.Response, error)

Execute executes the request

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type CreateInvoiceFeature

type CreateInvoiceFeature struct {
	// Indicates if creating invoices in HubSpot is supported for the integration.
	Enabled     bool                     `json:"enabled"`
	SubFeatures CreateInvoiceSubFeatures `json:"subFeatures"`
}

CreateInvoiceFeature Indicates what elements of creating invoices in HubSpot is supported for the integration.

func NewCreateInvoiceFeature

func NewCreateInvoiceFeature(enabled bool, subFeatures CreateInvoiceSubFeatures) *CreateInvoiceFeature

NewCreateInvoiceFeature instantiates a new CreateInvoiceFeature object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreateInvoiceFeatureWithDefaults

func NewCreateInvoiceFeatureWithDefaults() *CreateInvoiceFeature

NewCreateInvoiceFeatureWithDefaults instantiates a new CreateInvoiceFeature object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreateInvoiceFeature) GetEnabled

func (o *CreateInvoiceFeature) GetEnabled() bool

GetEnabled returns the Enabled field value

func (*CreateInvoiceFeature) GetEnabledOk

func (o *CreateInvoiceFeature) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value and a boolean to check if the value has been set.

func (*CreateInvoiceFeature) GetSubFeatures

func (o *CreateInvoiceFeature) GetSubFeatures() CreateInvoiceSubFeatures

GetSubFeatures returns the SubFeatures field value

func (*CreateInvoiceFeature) GetSubFeaturesOk

func (o *CreateInvoiceFeature) GetSubFeaturesOk() (*CreateInvoiceSubFeatures, bool)

GetSubFeaturesOk returns a tuple with the SubFeatures field value and a boolean to check if the value has been set.

func (CreateInvoiceFeature) MarshalJSON

func (o CreateInvoiceFeature) MarshalJSON() ([]byte, error)

func (*CreateInvoiceFeature) SetEnabled

func (o *CreateInvoiceFeature) SetEnabled(v bool)

SetEnabled sets field value

func (*CreateInvoiceFeature) SetSubFeatures

func (o *CreateInvoiceFeature) SetSubFeatures(v CreateInvoiceSubFeatures)

SetSubFeatures sets field value

type CreateInvoiceSubFeatures

type CreateInvoiceSubFeatures struct {
	// Indicates if a new customer can be created in the external accounting system.
	CreateCustomer bool `json:"createCustomer"`
	// Indicates if taxes can be specified by the HubSpot user for line items.
	Taxes bool `json:"taxes"`
	// Indicates if the external accounting system supports fetching exchange rates when create an invoice in HubSpot for a customer billed in a different currency.
	ExchangeRates bool `json:"exchangeRates"`
	// Indicates if the external accounting system supports fetching payment terms.
	Terms bool `json:"terms"`
	// Indicates if a visible comment can be added to invoices.
	InvoiceComments bool `json:"invoiceComments"`
	// Indicates if invoice-level discounts can be added to invoices.
	InvoiceDiscounts bool `json:"invoiceDiscounts"`
}

CreateInvoiceSubFeatures Lists the individual aspects of creating invoices that are enabled for the integration, as part of the create invoice flow in HubSpot.

func NewCreateInvoiceSubFeatures

func NewCreateInvoiceSubFeatures(createCustomer bool, taxes bool, exchangeRates bool, terms bool, invoiceComments bool, invoiceDiscounts bool) *CreateInvoiceSubFeatures

NewCreateInvoiceSubFeatures instantiates a new CreateInvoiceSubFeatures object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreateInvoiceSubFeaturesWithDefaults

func NewCreateInvoiceSubFeaturesWithDefaults() *CreateInvoiceSubFeatures

NewCreateInvoiceSubFeaturesWithDefaults instantiates a new CreateInvoiceSubFeatures object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreateInvoiceSubFeatures) GetCreateCustomer

func (o *CreateInvoiceSubFeatures) GetCreateCustomer() bool

GetCreateCustomer returns the CreateCustomer field value

func (*CreateInvoiceSubFeatures) GetCreateCustomerOk

func (o *CreateInvoiceSubFeatures) GetCreateCustomerOk() (*bool, bool)

GetCreateCustomerOk returns a tuple with the CreateCustomer field value and a boolean to check if the value has been set.

func (*CreateInvoiceSubFeatures) GetExchangeRates

func (o *CreateInvoiceSubFeatures) GetExchangeRates() bool

GetExchangeRates returns the ExchangeRates field value

func (*CreateInvoiceSubFeatures) GetExchangeRatesOk

func (o *CreateInvoiceSubFeatures) GetExchangeRatesOk() (*bool, bool)

GetExchangeRatesOk returns a tuple with the ExchangeRates field value and a boolean to check if the value has been set.

func (*CreateInvoiceSubFeatures) GetInvoiceComments

func (o *CreateInvoiceSubFeatures) GetInvoiceComments() bool

GetInvoiceComments returns the InvoiceComments field value

func (*CreateInvoiceSubFeatures) GetInvoiceCommentsOk

func (o *CreateInvoiceSubFeatures) GetInvoiceCommentsOk() (*bool, bool)

GetInvoiceCommentsOk returns a tuple with the InvoiceComments field value and a boolean to check if the value has been set.

func (*CreateInvoiceSubFeatures) GetInvoiceDiscounts

func (o *CreateInvoiceSubFeatures) GetInvoiceDiscounts() bool

GetInvoiceDiscounts returns the InvoiceDiscounts field value

func (*CreateInvoiceSubFeatures) GetInvoiceDiscountsOk

func (o *CreateInvoiceSubFeatures) GetInvoiceDiscountsOk() (*bool, bool)

GetInvoiceDiscountsOk returns a tuple with the InvoiceDiscounts field value and a boolean to check if the value has been set.

func (*CreateInvoiceSubFeatures) GetTaxes

func (o *CreateInvoiceSubFeatures) GetTaxes() bool

GetTaxes returns the Taxes field value

func (*CreateInvoiceSubFeatures) GetTaxesOk

func (o *CreateInvoiceSubFeatures) GetTaxesOk() (*bool, bool)

GetTaxesOk returns a tuple with the Taxes field value and a boolean to check if the value has been set.

func (*CreateInvoiceSubFeatures) GetTerms

func (o *CreateInvoiceSubFeatures) GetTerms() bool

GetTerms returns the Terms field value

func (*CreateInvoiceSubFeatures) GetTermsOk

func (o *CreateInvoiceSubFeatures) GetTermsOk() (*bool, bool)

GetTermsOk returns a tuple with the Terms field value and a boolean to check if the value has been set.

func (CreateInvoiceSubFeatures) MarshalJSON

func (o CreateInvoiceSubFeatures) MarshalJSON() ([]byte, error)

func (*CreateInvoiceSubFeatures) SetCreateCustomer

func (o *CreateInvoiceSubFeatures) SetCreateCustomer(v bool)

SetCreateCustomer sets field value

func (*CreateInvoiceSubFeatures) SetExchangeRates

func (o *CreateInvoiceSubFeatures) SetExchangeRates(v bool)

SetExchangeRates sets field value

func (*CreateInvoiceSubFeatures) SetInvoiceComments

func (o *CreateInvoiceSubFeatures) SetInvoiceComments(v bool)

SetInvoiceComments sets field value

func (*CreateInvoiceSubFeatures) SetInvoiceDiscounts

func (o *CreateInvoiceSubFeatures) SetInvoiceDiscounts(v bool)

SetInvoiceDiscounts sets field value

func (*CreateInvoiceSubFeatures) SetTaxes

func (o *CreateInvoiceSubFeatures) SetTaxes(v bool)

SetTaxes sets field value

func (*CreateInvoiceSubFeatures) SetTerms

func (o *CreateInvoiceSubFeatures) SetTerms(v bool)

SetTerms sets field value

type CreateUserAccountRequestExternal

type CreateUserAccountRequestExternal struct {
	// The id of the account in your system.
	AccountId string `json:"accountId"`
	// The name of the account in your system. This is normally the name visible to your users.
	AccountName string `json:"accountName"`
	// The default currency that this account uses.
	CurrencyCode string `json:"currencyCode"`
}

CreateUserAccountRequestExternal Information about the account in your external account system.

func NewCreateUserAccountRequestExternal

func NewCreateUserAccountRequestExternal(accountId string, accountName string, currencyCode string) *CreateUserAccountRequestExternal

NewCreateUserAccountRequestExternal instantiates a new CreateUserAccountRequestExternal object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreateUserAccountRequestExternalWithDefaults

func NewCreateUserAccountRequestExternalWithDefaults() *CreateUserAccountRequestExternal

NewCreateUserAccountRequestExternalWithDefaults instantiates a new CreateUserAccountRequestExternal object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreateUserAccountRequestExternal) GetAccountId

func (o *CreateUserAccountRequestExternal) GetAccountId() string

GetAccountId returns the AccountId field value

func (*CreateUserAccountRequestExternal) GetAccountIdOk

func (o *CreateUserAccountRequestExternal) GetAccountIdOk() (*string, bool)

GetAccountIdOk returns a tuple with the AccountId field value and a boolean to check if the value has been set.

func (*CreateUserAccountRequestExternal) GetAccountName

func (o *CreateUserAccountRequestExternal) GetAccountName() string

GetAccountName returns the AccountName field value

func (*CreateUserAccountRequestExternal) GetAccountNameOk

func (o *CreateUserAccountRequestExternal) GetAccountNameOk() (*string, bool)

GetAccountNameOk returns a tuple with the AccountName field value and a boolean to check if the value has been set.

func (*CreateUserAccountRequestExternal) GetCurrencyCode

func (o *CreateUserAccountRequestExternal) GetCurrencyCode() string

GetCurrencyCode returns the CurrencyCode field value

func (*CreateUserAccountRequestExternal) GetCurrencyCodeOk

func (o *CreateUserAccountRequestExternal) GetCurrencyCodeOk() (*string, bool)

GetCurrencyCodeOk returns a tuple with the CurrencyCode field value and a boolean to check if the value has been set.

func (CreateUserAccountRequestExternal) MarshalJSON

func (o CreateUserAccountRequestExternal) MarshalJSON() ([]byte, error)

func (*CreateUserAccountRequestExternal) SetAccountId

func (o *CreateUserAccountRequestExternal) SetAccountId(v string)

SetAccountId sets field value

func (*CreateUserAccountRequestExternal) SetAccountName

func (o *CreateUserAccountRequestExternal) SetAccountName(v string)

SetAccountName sets field value

func (*CreateUserAccountRequestExternal) SetCurrencyCode

func (o *CreateUserAccountRequestExternal) SetCurrencyCode(v string)

SetCurrencyCode sets field value

type CustomerSearchResponseExternal

type CustomerSearchResponseExternal struct {
	// Designates if the response is a success ('OK') or failure ('ERR').
	Result string `json:"@result"`
	// The list of customers that matched the search criteria.
	Customers []AccountingExtensionCustomer `json:"customers"`
}

CustomerSearchResponseExternal A response to a search for customers.

func NewCustomerSearchResponseExternal

func NewCustomerSearchResponseExternal(result string, customers []AccountingExtensionCustomer) *CustomerSearchResponseExternal

NewCustomerSearchResponseExternal instantiates a new CustomerSearchResponseExternal object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCustomerSearchResponseExternalWithDefaults

func NewCustomerSearchResponseExternalWithDefaults() *CustomerSearchResponseExternal

NewCustomerSearchResponseExternalWithDefaults instantiates a new CustomerSearchResponseExternal object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CustomerSearchResponseExternal) GetCustomers

GetCustomers returns the Customers field value

func (*CustomerSearchResponseExternal) GetCustomersOk

GetCustomersOk returns a tuple with the Customers field value and a boolean to check if the value has been set.

func (*CustomerSearchResponseExternal) GetResult

func (o *CustomerSearchResponseExternal) GetResult() string

GetResult returns the Result field value

func (*CustomerSearchResponseExternal) GetResultOk

func (o *CustomerSearchResponseExternal) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value and a boolean to check if the value has been set.

func (CustomerSearchResponseExternal) MarshalJSON

func (o CustomerSearchResponseExternal) MarshalJSON() ([]byte, error)

func (*CustomerSearchResponseExternal) SetCustomers

SetCustomers sets field value

func (*CustomerSearchResponseExternal) SetResult

func (o *CustomerSearchResponseExternal) SetResult(v string)

SetResult sets field value

type Error

type Error struct {
	// A human readable message describing the error along with remediation steps where appropriate
	Message string `json:"message"`
	// A unique identifier for the request. Include this value with any error reports or support tickets
	CorrelationId string `json:"correlationId"`
	// The error category
	Category string `json:"category"`
	// A specific category that contains more specific detail about the error
	SubCategory *string `json:"subCategory,omitempty"`
	// further information about the error
	Errors []ErrorDetail `json:"errors,omitempty"`
	// Context about the error condition
	Context *map[string][]string `json:"context,omitempty"`
	// A map of link names to associated URIs containing documentation about the error or recommended remediation steps
	Links *map[string]string `json:"links,omitempty"`
}

Error struct for Error

func NewError

func NewError(message string, correlationId string, category string) *Error

NewError instantiates a new Error object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewErrorWithDefaults

func NewErrorWithDefaults() *Error

NewErrorWithDefaults instantiates a new Error object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Error) GetCategory

func (o *Error) GetCategory() string

GetCategory returns the Category field value

func (*Error) GetCategoryOk

func (o *Error) GetCategoryOk() (*string, bool)

GetCategoryOk returns a tuple with the Category field value and a boolean to check if the value has been set.

func (*Error) GetContext

func (o *Error) GetContext() map[string][]string

GetContext returns the Context field value if set, zero value otherwise.

func (*Error) GetContextOk

func (o *Error) GetContextOk() (*map[string][]string, bool)

GetContextOk returns a tuple with the Context field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Error) GetCorrelationId

func (o *Error) GetCorrelationId() string

GetCorrelationId returns the CorrelationId field value

func (*Error) GetCorrelationIdOk

func (o *Error) GetCorrelationIdOk() (*string, bool)

GetCorrelationIdOk returns a tuple with the CorrelationId field value and a boolean to check if the value has been set.

func (*Error) GetErrors

func (o *Error) GetErrors() []ErrorDetail

GetErrors returns the Errors field value if set, zero value otherwise.

func (*Error) GetErrorsOk

func (o *Error) GetErrorsOk() ([]ErrorDetail, bool)

GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.

func (o *Error) GetLinks() map[string]string

GetLinks returns the Links field value if set, zero value otherwise.

func (*Error) GetLinksOk

func (o *Error) GetLinksOk() (*map[string]string, bool)

GetLinksOk returns a tuple with the Links field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Error) GetMessage

func (o *Error) GetMessage() string

GetMessage returns the Message field value

func (*Error) GetMessageOk

func (o *Error) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*Error) GetSubCategory

func (o *Error) GetSubCategory() string

GetSubCategory returns the SubCategory field value if set, zero value otherwise.

func (*Error) GetSubCategoryOk

func (o *Error) GetSubCategoryOk() (*string, bool)

GetSubCategoryOk returns a tuple with the SubCategory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Error) HasContext

func (o *Error) HasContext() bool

HasContext returns a boolean if a field has been set.

func (*Error) HasErrors

func (o *Error) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (o *Error) HasLinks() bool

HasLinks returns a boolean if a field has been set.

func (*Error) HasSubCategory

func (o *Error) HasSubCategory() bool

HasSubCategory returns a boolean if a field has been set.

func (Error) MarshalJSON

func (o Error) MarshalJSON() ([]byte, error)

func (*Error) SetCategory

func (o *Error) SetCategory(v string)

SetCategory sets field value

func (*Error) SetContext

func (o *Error) SetContext(v map[string][]string)

SetContext gets a reference to the given map[string][]string and assigns it to the Context field.

func (*Error) SetCorrelationId

func (o *Error) SetCorrelationId(v string)

SetCorrelationId sets field value

func (*Error) SetErrors

func (o *Error) SetErrors(v []ErrorDetail)

SetErrors gets a reference to the given []ErrorDetail and assigns it to the Errors field.

func (o *Error) SetLinks(v map[string]string)

SetLinks gets a reference to the given map[string]string and assigns it to the Links field.

func (*Error) SetMessage

func (o *Error) SetMessage(v string)

SetMessage sets field value

func (*Error) SetSubCategory

func (o *Error) SetSubCategory(v string)

SetSubCategory gets a reference to the given string and assigns it to the SubCategory field.

type ErrorDetail

type ErrorDetail struct {
	// A human readable message describing the error along with remediation steps where appropriate
	Message string `json:"message"`
	// The name of the field or parameter in which the error was found.
	In *string `json:"in,omitempty"`
	// The status code associated with the error detail
	Code *string `json:"code,omitempty"`
	// A specific category that contains more specific detail about the error
	SubCategory *string `json:"subCategory,omitempty"`
	// Context about the error condition
	Context *map[string][]string `json:"context,omitempty"`
}

ErrorDetail struct for ErrorDetail

func NewErrorDetail

func NewErrorDetail(message string) *ErrorDetail

NewErrorDetail instantiates a new ErrorDetail object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewErrorDetailWithDefaults

func NewErrorDetailWithDefaults() *ErrorDetail

NewErrorDetailWithDefaults instantiates a new ErrorDetail object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ErrorDetail) GetCode

func (o *ErrorDetail) GetCode() string

GetCode returns the Code field value if set, zero value otherwise.

func (*ErrorDetail) GetCodeOk

func (o *ErrorDetail) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ErrorDetail) GetContext

func (o *ErrorDetail) GetContext() map[string][]string

GetContext returns the Context field value if set, zero value otherwise.

func (*ErrorDetail) GetContextOk

func (o *ErrorDetail) GetContextOk() (*map[string][]string, bool)

GetContextOk returns a tuple with the Context field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ErrorDetail) GetIn

func (o *ErrorDetail) GetIn() string

GetIn returns the In field value if set, zero value otherwise.

func (*ErrorDetail) GetInOk

func (o *ErrorDetail) GetInOk() (*string, bool)

GetInOk returns a tuple with the In field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ErrorDetail) GetMessage

func (o *ErrorDetail) GetMessage() string

GetMessage returns the Message field value

func (*ErrorDetail) GetMessageOk

func (o *ErrorDetail) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (*ErrorDetail) GetSubCategory

func (o *ErrorDetail) GetSubCategory() string

GetSubCategory returns the SubCategory field value if set, zero value otherwise.

func (*ErrorDetail) GetSubCategoryOk

func (o *ErrorDetail) GetSubCategoryOk() (*string, bool)

GetSubCategoryOk returns a tuple with the SubCategory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ErrorDetail) HasCode

func (o *ErrorDetail) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*ErrorDetail) HasContext

func (o *ErrorDetail) HasContext() bool

HasContext returns a boolean if a field has been set.

func (*ErrorDetail) HasIn

func (o *ErrorDetail) HasIn() bool

HasIn returns a boolean if a field has been set.

func (*ErrorDetail) HasSubCategory

func (o *ErrorDetail) HasSubCategory() bool

HasSubCategory returns a boolean if a field has been set.

func (ErrorDetail) MarshalJSON

func (o ErrorDetail) MarshalJSON() ([]byte, error)

func (*ErrorDetail) SetCode

func (o *ErrorDetail) SetCode(v string)

SetCode gets a reference to the given string and assigns it to the Code field.

func (*ErrorDetail) SetContext

func (o *ErrorDetail) SetContext(v map[string][]string)

SetContext gets a reference to the given map[string][]string and assigns it to the Context field.

func (*ErrorDetail) SetIn

func (o *ErrorDetail) SetIn(v string)

SetIn gets a reference to the given string and assigns it to the In field.

func (*ErrorDetail) SetMessage

func (o *ErrorDetail) SetMessage(v string)

SetMessage sets field value

func (*ErrorDetail) SetSubCategory

func (o *ErrorDetail) SetSubCategory(v string)

SetSubCategory gets a reference to the given string and assigns it to the SubCategory field.

type ExchangeRateResponse

type ExchangeRateResponse struct {
	// Designates if the response is a success ('OK') or failure ('ERR').
	Result string `json:"@result"`
	// The exchange rate between the 2 currencies
	ExchangeRate float32 `json:"exchangeRate"`
	// The ISO 4217 currency code that represents the source currency of the exchange rate.
	SourceCurrencyCode string `json:"sourceCurrencyCode"`
	// The ISO 4217 currency code that represents the target currency of the exchange rate.
	TargetCurrencyCode string `json:"targetCurrencyCode"`
}

ExchangeRateResponse A response to the request for an exchange rate value. It represents the exchange rate from the source currency to the target currency.

func NewExchangeRateResponse

func NewExchangeRateResponse(result string, exchangeRate float32, sourceCurrencyCode string, targetCurrencyCode string) *ExchangeRateResponse

NewExchangeRateResponse instantiates a new ExchangeRateResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewExchangeRateResponseWithDefaults

func NewExchangeRateResponseWithDefaults() *ExchangeRateResponse

NewExchangeRateResponseWithDefaults instantiates a new ExchangeRateResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ExchangeRateResponse) GetExchangeRate

func (o *ExchangeRateResponse) GetExchangeRate() float32

GetExchangeRate returns the ExchangeRate field value

func (*ExchangeRateResponse) GetExchangeRateOk

func (o *ExchangeRateResponse) GetExchangeRateOk() (*float32, bool)

GetExchangeRateOk returns a tuple with the ExchangeRate field value and a boolean to check if the value has been set.

func (*ExchangeRateResponse) GetResult

func (o *ExchangeRateResponse) GetResult() string

GetResult returns the Result field value

func (*ExchangeRateResponse) GetResultOk

func (o *ExchangeRateResponse) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value and a boolean to check if the value has been set.

func (*ExchangeRateResponse) GetSourceCurrencyCode

func (o *ExchangeRateResponse) GetSourceCurrencyCode() string

GetSourceCurrencyCode returns the SourceCurrencyCode field value

func (*ExchangeRateResponse) GetSourceCurrencyCodeOk

func (o *ExchangeRateResponse) GetSourceCurrencyCodeOk() (*string, bool)

GetSourceCurrencyCodeOk returns a tuple with the SourceCurrencyCode field value and a boolean to check if the value has been set.

func (*ExchangeRateResponse) GetTargetCurrencyCode

func (o *ExchangeRateResponse) GetTargetCurrencyCode() string

GetTargetCurrencyCode returns the TargetCurrencyCode field value

func (*ExchangeRateResponse) GetTargetCurrencyCodeOk

func (o *ExchangeRateResponse) GetTargetCurrencyCodeOk() (*string, bool)

GetTargetCurrencyCodeOk returns a tuple with the TargetCurrencyCode field value and a boolean to check if the value has been set.

func (ExchangeRateResponse) MarshalJSON

func (o ExchangeRateResponse) MarshalJSON() ([]byte, error)

func (*ExchangeRateResponse) SetExchangeRate

func (o *ExchangeRateResponse) SetExchangeRate(v float32)

SetExchangeRate sets field value

func (*ExchangeRateResponse) SetResult

func (o *ExchangeRateResponse) SetResult(v string)

SetResult sets field value

func (*ExchangeRateResponse) SetSourceCurrencyCode

func (o *ExchangeRateResponse) SetSourceCurrencyCode(v string)

SetSourceCurrencyCode sets field value

func (*ExchangeRateResponse) SetTargetCurrencyCode

func (o *ExchangeRateResponse) SetTargetCurrencyCode(v string)

SetTargetCurrencyCode sets field value

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type ImportInvoiceFeature

type ImportInvoiceFeature struct {
	// Indicates if importing invoices from the external account system into HubSpot.
	Enabled bool `json:"enabled"`
}

ImportInvoiceFeature Indicates if importing invoices from the external account system into HubSpot is supported for the integration.

func NewImportInvoiceFeature

func NewImportInvoiceFeature(enabled bool) *ImportInvoiceFeature

NewImportInvoiceFeature instantiates a new ImportInvoiceFeature object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewImportInvoiceFeatureWithDefaults

func NewImportInvoiceFeatureWithDefaults() *ImportInvoiceFeature

NewImportInvoiceFeatureWithDefaults instantiates a new ImportInvoiceFeature object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ImportInvoiceFeature) GetEnabled

func (o *ImportInvoiceFeature) GetEnabled() bool

GetEnabled returns the Enabled field value

func (*ImportInvoiceFeature) GetEnabledOk

func (o *ImportInvoiceFeature) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value and a boolean to check if the value has been set.

func (ImportInvoiceFeature) MarshalJSON

func (o ImportInvoiceFeature) MarshalJSON() ([]byte, error)

func (*ImportInvoiceFeature) SetEnabled

func (o *ImportInvoiceFeature) SetEnabled(v bool)

SetEnabled sets field value

type InvoiceApiService

type InvoiceApiService service

InvoiceApiService InvoiceApi service

func (*InvoiceApiService) InvoiceCreatePayment

func (a *InvoiceApiService) InvoiceCreatePayment(ctx context.Context, invoiceId string) ApiInvoiceCreatePaymentRequest

InvoiceCreatePayment Records an invoice payment

Records an payment against an invoice.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param invoiceId The ID of the invoice. This is the invoice ID from the external accounting system.
@return ApiInvoiceCreatePaymentRequest

func (*InvoiceApiService) InvoiceCreatePaymentExecute

Execute executes the request

@return InvoiceUpdateResponse

func (*InvoiceApiService) InvoiceGetByID

func (a *InvoiceApiService) InvoiceGetByID(ctx context.Context, invoiceId string) ApiInvoiceGetByIDRequest

InvoiceGetByID Get invoice data

Returns invoice data for an Accounting account from the specified ID

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param invoiceId The ID of the invoice. This is the invoice ID from the external accounting system.
@return ApiInvoiceGetByIDRequest

func (*InvoiceApiService) InvoiceGetByIDExecute

Execute executes the request

@return InvoiceReadResponse

func (*InvoiceApiService) InvoiceUpdate

func (a *InvoiceApiService) InvoiceUpdate(ctx context.Context, invoiceId string) ApiInvoiceUpdateRequest

InvoiceUpdate Update an invoice

Updates an Invoice by the given ID.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param invoiceId The ID of the invoice. This is the invoice ID from the external accounting system.
@return ApiInvoiceUpdateRequest

func (*InvoiceApiService) InvoiceUpdateExecute

Execute executes the request

@return InvoiceUpdateResponse

type InvoiceCreatePaymentRequest

type InvoiceCreatePaymentRequest struct {
	// The amount that this payment is for.
	AmountPaid float32 `json:"amountPaid"`
	// The ISO 4217 currency code that represents the currency of the payment.
	CurrencyCode string `json:"currencyCode"`
	// The datetime that this payment was received.
	PaymentDateTime time.Time `json:"paymentDateTime"`
	// The id of this payment in the external accounting system.
	ExternalPaymentId string `json:"externalPaymentId"`
}

InvoiceCreatePaymentRequest struct for InvoiceCreatePaymentRequest

func NewInvoiceCreatePaymentRequest

func NewInvoiceCreatePaymentRequest(amountPaid float32, currencyCode string, paymentDateTime time.Time, externalPaymentId string) *InvoiceCreatePaymentRequest

NewInvoiceCreatePaymentRequest instantiates a new InvoiceCreatePaymentRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInvoiceCreatePaymentRequestWithDefaults

func NewInvoiceCreatePaymentRequestWithDefaults() *InvoiceCreatePaymentRequest

NewInvoiceCreatePaymentRequestWithDefaults instantiates a new InvoiceCreatePaymentRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InvoiceCreatePaymentRequest) GetAmountPaid

func (o *InvoiceCreatePaymentRequest) GetAmountPaid() float32

GetAmountPaid returns the AmountPaid field value

func (*InvoiceCreatePaymentRequest) GetAmountPaidOk

func (o *InvoiceCreatePaymentRequest) GetAmountPaidOk() (*float32, bool)

GetAmountPaidOk returns a tuple with the AmountPaid field value and a boolean to check if the value has been set.

func (*InvoiceCreatePaymentRequest) GetCurrencyCode

func (o *InvoiceCreatePaymentRequest) GetCurrencyCode() string

GetCurrencyCode returns the CurrencyCode field value

func (*InvoiceCreatePaymentRequest) GetCurrencyCodeOk

func (o *InvoiceCreatePaymentRequest) GetCurrencyCodeOk() (*string, bool)

GetCurrencyCodeOk returns a tuple with the CurrencyCode field value and a boolean to check if the value has been set.

func (*InvoiceCreatePaymentRequest) GetExternalPaymentId

func (o *InvoiceCreatePaymentRequest) GetExternalPaymentId() string

GetExternalPaymentId returns the ExternalPaymentId field value

func (*InvoiceCreatePaymentRequest) GetExternalPaymentIdOk

func (o *InvoiceCreatePaymentRequest) GetExternalPaymentIdOk() (*string, bool)

GetExternalPaymentIdOk returns a tuple with the ExternalPaymentId field value and a boolean to check if the value has been set.

func (*InvoiceCreatePaymentRequest) GetPaymentDateTime

func (o *InvoiceCreatePaymentRequest) GetPaymentDateTime() time.Time

GetPaymentDateTime returns the PaymentDateTime field value

func (*InvoiceCreatePaymentRequest) GetPaymentDateTimeOk

func (o *InvoiceCreatePaymentRequest) GetPaymentDateTimeOk() (*time.Time, bool)

GetPaymentDateTimeOk returns a tuple with the PaymentDateTime field value and a boolean to check if the value has been set.

func (InvoiceCreatePaymentRequest) MarshalJSON

func (o InvoiceCreatePaymentRequest) MarshalJSON() ([]byte, error)

func (*InvoiceCreatePaymentRequest) SetAmountPaid

func (o *InvoiceCreatePaymentRequest) SetAmountPaid(v float32)

SetAmountPaid sets field value

func (*InvoiceCreatePaymentRequest) SetCurrencyCode

func (o *InvoiceCreatePaymentRequest) SetCurrencyCode(v string)

SetCurrencyCode sets field value

func (*InvoiceCreatePaymentRequest) SetExternalPaymentId

func (o *InvoiceCreatePaymentRequest) SetExternalPaymentId(v string)

SetExternalPaymentId sets field value

func (*InvoiceCreatePaymentRequest) SetPaymentDateTime

func (o *InvoiceCreatePaymentRequest) SetPaymentDateTime(v time.Time)

SetPaymentDateTime sets field value

type InvoicePdfResponse

type InvoicePdfResponse struct {
	// Designates if the response is a success ('OK') or failure ('ERR').
	Result *string `json:"@result,omitempty"`
	// The bytes of the invoice PDF.
	Invoice string `json:"invoice"`
}

InvoicePdfResponse A response that contains the PDF of an invoice

func NewInvoicePdfResponse

func NewInvoicePdfResponse(invoice string) *InvoicePdfResponse

NewInvoicePdfResponse instantiates a new InvoicePdfResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInvoicePdfResponseWithDefaults

func NewInvoicePdfResponseWithDefaults() *InvoicePdfResponse

NewInvoicePdfResponseWithDefaults instantiates a new InvoicePdfResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InvoicePdfResponse) GetInvoice

func (o *InvoicePdfResponse) GetInvoice() string

GetInvoice returns the Invoice field value

func (*InvoicePdfResponse) GetInvoiceOk

func (o *InvoicePdfResponse) GetInvoiceOk() (*string, bool)

GetInvoiceOk returns a tuple with the Invoice field value and a boolean to check if the value has been set.

func (*InvoicePdfResponse) GetResult

func (o *InvoicePdfResponse) GetResult() string

GetResult returns the Result field value if set, zero value otherwise.

func (*InvoicePdfResponse) GetResultOk

func (o *InvoicePdfResponse) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoicePdfResponse) HasResult

func (o *InvoicePdfResponse) HasResult() bool

HasResult returns a boolean if a field has been set.

func (InvoicePdfResponse) MarshalJSON

func (o InvoicePdfResponse) MarshalJSON() ([]byte, error)

func (*InvoicePdfResponse) SetInvoice

func (o *InvoicePdfResponse) SetInvoice(v string)

SetInvoice sets field value

func (*InvoicePdfResponse) SetResult

func (o *InvoicePdfResponse) SetResult(v string)

SetResult gets a reference to the given string and assigns it to the Result field.

type InvoiceReadResponse

type InvoiceReadResponse struct {
	// The invoice number. Note that this is _not_ the ID of the invoice, but the number that the billed customer will see.
	ExternalInvoiceNumber *string `json:"externalInvoiceNumber,omitempty"`
	// The total amount that this invoice is for.
	TotalAmountBilled float32 `json:"totalAmountBilled"`
	// The remaining balance due for the invoice.
	BalanceDue float32 `json:"balanceDue"`
	// The ISO 4217 currency code that represents the currency of the invoice.
	CurrencyCode string `json:"currencyCode"`
	// The due date of the invoice
	DueDate string `json:"dueDate"`
	// The id of the customer in the external accounting system that the invoice was sent to.
	ExternalRecipientId string `json:"externalRecipientId"`
	// The datetime that that invoice was sent to the customer.
	ReceivedByRecipientDate *int64 `json:"receivedByRecipientDate,omitempty"`
	// The datetime that the invoice was created in the external accounting system.
	ExternalCreateDateTime *int64 `json:"externalCreateDateTime,omitempty"`
	// Indicated is the invoice has been voided or not.
	IsVoided bool `json:"isVoided"`
	// The datetime that the invoice was created in HubSpot.
	CreatedAt time.Time `json:"createdAt"`
	// The datetime that the invoice was last updated in HubSpot.
	UpdatedAt  time.Time  `json:"updatedAt"`
	ArchivedAt *time.Time `json:"archivedAt,omitempty"`
	Archived   bool       `json:"archived"`
	// The id of the account in the external accounting system that this invoice is related to.
	ExternalAccountId string `json:"externalAccountId"`
	// The status of the invoice
	InvoiceStatus string `json:"invoiceStatus"`
	// The id of this invoice in the external accounting system.
	Id string `json:"id"`
}

InvoiceReadResponse The invoice data stored in HubSpot

func NewInvoiceReadResponse

func NewInvoiceReadResponse(totalAmountBilled float32, balanceDue float32, currencyCode string, dueDate string, externalRecipientId string, isVoided bool, createdAt time.Time, updatedAt time.Time, archived bool, externalAccountId string, invoiceStatus string, id string) *InvoiceReadResponse

NewInvoiceReadResponse instantiates a new InvoiceReadResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInvoiceReadResponseWithDefaults

func NewInvoiceReadResponseWithDefaults() *InvoiceReadResponse

NewInvoiceReadResponseWithDefaults instantiates a new InvoiceReadResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InvoiceReadResponse) GetArchived

func (o *InvoiceReadResponse) GetArchived() bool

GetArchived returns the Archived field value

func (*InvoiceReadResponse) GetArchivedAt

func (o *InvoiceReadResponse) GetArchivedAt() time.Time

GetArchivedAt returns the ArchivedAt field value if set, zero value otherwise.

func (*InvoiceReadResponse) GetArchivedAtOk

func (o *InvoiceReadResponse) GetArchivedAtOk() (*time.Time, bool)

GetArchivedAtOk returns a tuple with the ArchivedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceReadResponse) GetArchivedOk

func (o *InvoiceReadResponse) GetArchivedOk() (*bool, bool)

GetArchivedOk returns a tuple with the Archived field value and a boolean to check if the value has been set.

func (*InvoiceReadResponse) GetBalanceDue

func (o *InvoiceReadResponse) GetBalanceDue() float32

GetBalanceDue returns the BalanceDue field value

func (*InvoiceReadResponse) GetBalanceDueOk

func (o *InvoiceReadResponse) GetBalanceDueOk() (*float32, bool)

GetBalanceDueOk returns a tuple with the BalanceDue field value and a boolean to check if the value has been set.

func (*InvoiceReadResponse) GetCreatedAt

func (o *InvoiceReadResponse) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value

func (*InvoiceReadResponse) GetCreatedAtOk

func (o *InvoiceReadResponse) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*InvoiceReadResponse) GetCurrencyCode

func (o *InvoiceReadResponse) GetCurrencyCode() string

GetCurrencyCode returns the CurrencyCode field value

func (*InvoiceReadResponse) GetCurrencyCodeOk

func (o *InvoiceReadResponse) GetCurrencyCodeOk() (*string, bool)

GetCurrencyCodeOk returns a tuple with the CurrencyCode field value and a boolean to check if the value has been set.

func (*InvoiceReadResponse) GetDueDate

func (o *InvoiceReadResponse) GetDueDate() string

GetDueDate returns the DueDate field value

func (*InvoiceReadResponse) GetDueDateOk

func (o *InvoiceReadResponse) GetDueDateOk() (*string, bool)

GetDueDateOk returns a tuple with the DueDate field value and a boolean to check if the value has been set.

func (*InvoiceReadResponse) GetExternalAccountId

func (o *InvoiceReadResponse) GetExternalAccountId() string

GetExternalAccountId returns the ExternalAccountId field value

func (*InvoiceReadResponse) GetExternalAccountIdOk

func (o *InvoiceReadResponse) GetExternalAccountIdOk() (*string, bool)

GetExternalAccountIdOk returns a tuple with the ExternalAccountId field value and a boolean to check if the value has been set.

func (*InvoiceReadResponse) GetExternalCreateDateTime

func (o *InvoiceReadResponse) GetExternalCreateDateTime() int64

GetExternalCreateDateTime returns the ExternalCreateDateTime field value if set, zero value otherwise.

func (*InvoiceReadResponse) GetExternalCreateDateTimeOk

func (o *InvoiceReadResponse) GetExternalCreateDateTimeOk() (*int64, bool)

GetExternalCreateDateTimeOk returns a tuple with the ExternalCreateDateTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceReadResponse) GetExternalInvoiceNumber

func (o *InvoiceReadResponse) GetExternalInvoiceNumber() string

GetExternalInvoiceNumber returns the ExternalInvoiceNumber field value if set, zero value otherwise.

func (*InvoiceReadResponse) GetExternalInvoiceNumberOk

func (o *InvoiceReadResponse) GetExternalInvoiceNumberOk() (*string, bool)

GetExternalInvoiceNumberOk returns a tuple with the ExternalInvoiceNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceReadResponse) GetExternalRecipientId

func (o *InvoiceReadResponse) GetExternalRecipientId() string

GetExternalRecipientId returns the ExternalRecipientId field value

func (*InvoiceReadResponse) GetExternalRecipientIdOk

func (o *InvoiceReadResponse) GetExternalRecipientIdOk() (*string, bool)

GetExternalRecipientIdOk returns a tuple with the ExternalRecipientId field value and a boolean to check if the value has been set.

func (*InvoiceReadResponse) GetId

func (o *InvoiceReadResponse) GetId() string

GetId returns the Id field value

func (*InvoiceReadResponse) GetIdOk

func (o *InvoiceReadResponse) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*InvoiceReadResponse) GetInvoiceStatus

func (o *InvoiceReadResponse) GetInvoiceStatus() string

GetInvoiceStatus returns the InvoiceStatus field value

func (*InvoiceReadResponse) GetInvoiceStatusOk

func (o *InvoiceReadResponse) GetInvoiceStatusOk() (*string, bool)

GetInvoiceStatusOk returns a tuple with the InvoiceStatus field value and a boolean to check if the value has been set.

func (*InvoiceReadResponse) GetIsVoided

func (o *InvoiceReadResponse) GetIsVoided() bool

GetIsVoided returns the IsVoided field value

func (*InvoiceReadResponse) GetIsVoidedOk

func (o *InvoiceReadResponse) GetIsVoidedOk() (*bool, bool)

GetIsVoidedOk returns a tuple with the IsVoided field value and a boolean to check if the value has been set.

func (*InvoiceReadResponse) GetReceivedByRecipientDate

func (o *InvoiceReadResponse) GetReceivedByRecipientDate() int64

GetReceivedByRecipientDate returns the ReceivedByRecipientDate field value if set, zero value otherwise.

func (*InvoiceReadResponse) GetReceivedByRecipientDateOk

func (o *InvoiceReadResponse) GetReceivedByRecipientDateOk() (*int64, bool)

GetReceivedByRecipientDateOk returns a tuple with the ReceivedByRecipientDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceReadResponse) GetTotalAmountBilled

func (o *InvoiceReadResponse) GetTotalAmountBilled() float32

GetTotalAmountBilled returns the TotalAmountBilled field value

func (*InvoiceReadResponse) GetTotalAmountBilledOk

func (o *InvoiceReadResponse) GetTotalAmountBilledOk() (*float32, bool)

GetTotalAmountBilledOk returns a tuple with the TotalAmountBilled field value and a boolean to check if the value has been set.

func (*InvoiceReadResponse) GetUpdatedAt

func (o *InvoiceReadResponse) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value

func (*InvoiceReadResponse) GetUpdatedAtOk

func (o *InvoiceReadResponse) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*InvoiceReadResponse) HasArchivedAt

func (o *InvoiceReadResponse) HasArchivedAt() bool

HasArchivedAt returns a boolean if a field has been set.

func (*InvoiceReadResponse) HasExternalCreateDateTime

func (o *InvoiceReadResponse) HasExternalCreateDateTime() bool

HasExternalCreateDateTime returns a boolean if a field has been set.

func (*InvoiceReadResponse) HasExternalInvoiceNumber

func (o *InvoiceReadResponse) HasExternalInvoiceNumber() bool

HasExternalInvoiceNumber returns a boolean if a field has been set.

func (*InvoiceReadResponse) HasReceivedByRecipientDate

func (o *InvoiceReadResponse) HasReceivedByRecipientDate() bool

HasReceivedByRecipientDate returns a boolean if a field has been set.

func (InvoiceReadResponse) MarshalJSON

func (o InvoiceReadResponse) MarshalJSON() ([]byte, error)

func (*InvoiceReadResponse) SetArchived

func (o *InvoiceReadResponse) SetArchived(v bool)

SetArchived sets field value

func (*InvoiceReadResponse) SetArchivedAt

func (o *InvoiceReadResponse) SetArchivedAt(v time.Time)

SetArchivedAt gets a reference to the given time.Time and assigns it to the ArchivedAt field.

func (*InvoiceReadResponse) SetBalanceDue

func (o *InvoiceReadResponse) SetBalanceDue(v float32)

SetBalanceDue sets field value

func (*InvoiceReadResponse) SetCreatedAt

func (o *InvoiceReadResponse) SetCreatedAt(v time.Time)

SetCreatedAt sets field value

func (*InvoiceReadResponse) SetCurrencyCode

func (o *InvoiceReadResponse) SetCurrencyCode(v string)

SetCurrencyCode sets field value

func (*InvoiceReadResponse) SetDueDate

func (o *InvoiceReadResponse) SetDueDate(v string)

SetDueDate sets field value

func (*InvoiceReadResponse) SetExternalAccountId

func (o *InvoiceReadResponse) SetExternalAccountId(v string)

SetExternalAccountId sets field value

func (*InvoiceReadResponse) SetExternalCreateDateTime

func (o *InvoiceReadResponse) SetExternalCreateDateTime(v int64)

SetExternalCreateDateTime gets a reference to the given int64 and assigns it to the ExternalCreateDateTime field.

func (*InvoiceReadResponse) SetExternalInvoiceNumber

func (o *InvoiceReadResponse) SetExternalInvoiceNumber(v string)

SetExternalInvoiceNumber gets a reference to the given string and assigns it to the ExternalInvoiceNumber field.

func (*InvoiceReadResponse) SetExternalRecipientId

func (o *InvoiceReadResponse) SetExternalRecipientId(v string)

SetExternalRecipientId sets field value

func (*InvoiceReadResponse) SetId

func (o *InvoiceReadResponse) SetId(v string)

SetId sets field value

func (*InvoiceReadResponse) SetInvoiceStatus

func (o *InvoiceReadResponse) SetInvoiceStatus(v string)

SetInvoiceStatus sets field value

func (*InvoiceReadResponse) SetIsVoided

func (o *InvoiceReadResponse) SetIsVoided(v bool)

SetIsVoided sets field value

func (*InvoiceReadResponse) SetReceivedByRecipientDate

func (o *InvoiceReadResponse) SetReceivedByRecipientDate(v int64)

SetReceivedByRecipientDate gets a reference to the given int64 and assigns it to the ReceivedByRecipientDate field.

func (*InvoiceReadResponse) SetTotalAmountBilled

func (o *InvoiceReadResponse) SetTotalAmountBilled(v float32)

SetTotalAmountBilled sets field value

func (*InvoiceReadResponse) SetUpdatedAt

func (o *InvoiceReadResponse) SetUpdatedAt(v time.Time)

SetUpdatedAt sets field value

type InvoiceSearchResponse

type InvoiceSearchResponse struct {
	// Designates if the response is a success ('OK') or failure ('ERR').
	Result *string `json:"@result,omitempty"`
	// The list of invoices that matched the search criteria.
	Invoices []AccountingExtensionInvoice `json:"invoices"`
}

InvoiceSearchResponse A response to a search for invoices.

func NewInvoiceSearchResponse

func NewInvoiceSearchResponse(invoices []AccountingExtensionInvoice) *InvoiceSearchResponse

NewInvoiceSearchResponse instantiates a new InvoiceSearchResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInvoiceSearchResponseWithDefaults

func NewInvoiceSearchResponseWithDefaults() *InvoiceSearchResponse

NewInvoiceSearchResponseWithDefaults instantiates a new InvoiceSearchResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InvoiceSearchResponse) GetInvoices

GetInvoices returns the Invoices field value

func (*InvoiceSearchResponse) GetInvoicesOk

func (o *InvoiceSearchResponse) GetInvoicesOk() ([]AccountingExtensionInvoice, bool)

GetInvoicesOk returns a tuple with the Invoices field value and a boolean to check if the value has been set.

func (*InvoiceSearchResponse) GetResult

func (o *InvoiceSearchResponse) GetResult() string

GetResult returns the Result field value if set, zero value otherwise.

func (*InvoiceSearchResponse) GetResultOk

func (o *InvoiceSearchResponse) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceSearchResponse) HasResult

func (o *InvoiceSearchResponse) HasResult() bool

HasResult returns a boolean if a field has been set.

func (InvoiceSearchResponse) MarshalJSON

func (o InvoiceSearchResponse) MarshalJSON() ([]byte, error)

func (*InvoiceSearchResponse) SetInvoices

SetInvoices sets field value

func (*InvoiceSearchResponse) SetResult

func (o *InvoiceSearchResponse) SetResult(v string)

SetResult gets a reference to the given string and assigns it to the Result field.

type InvoiceUpdateRequest

type InvoiceUpdateRequest struct {
	ExternalInvoiceNumber *string `json:"externalInvoiceNumber,omitempty"`
	// The ISO 4217 currency code that represents the currency used in the invoice to bill the recipient
	CurrencyCode *string `json:"currencyCode,omitempty"`
	// The ISO-8601 due date of the invoice.
	DueDate *string `json:"dueDate,omitempty"`
	// The ID of the invoice recipient. This is the recipient ID from the external accounting system.
	ExternalRecipientId     *string `json:"externalRecipientId,omitempty"`
	ReceivedByRecipientDate *int64  `json:"receivedByRecipientDate,omitempty"`
	// States if the invoice is voided or not.
	IsVoided *bool `json:"isVoided,omitempty"`
	// The ISO-8601 datetime of when the customer received the invoice.
	ReceivedByCustomerDate *string `json:"receivedByCustomerDate,omitempty"`
	// The number / name of the invoice.
	InvoiceNumber *string `json:"invoiceNumber,omitempty"`
}

InvoiceUpdateRequest The invoice data to update in HubSpot

func NewInvoiceUpdateRequest

func NewInvoiceUpdateRequest() *InvoiceUpdateRequest

NewInvoiceUpdateRequest instantiates a new InvoiceUpdateRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInvoiceUpdateRequestWithDefaults

func NewInvoiceUpdateRequestWithDefaults() *InvoiceUpdateRequest

NewInvoiceUpdateRequestWithDefaults instantiates a new InvoiceUpdateRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InvoiceUpdateRequest) GetCurrencyCode

func (o *InvoiceUpdateRequest) GetCurrencyCode() string

GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise.

func (*InvoiceUpdateRequest) GetCurrencyCodeOk

func (o *InvoiceUpdateRequest) GetCurrencyCodeOk() (*string, bool)

GetCurrencyCodeOk returns a tuple with the CurrencyCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceUpdateRequest) GetDueDate

func (o *InvoiceUpdateRequest) GetDueDate() string

GetDueDate returns the DueDate field value if set, zero value otherwise.

func (*InvoiceUpdateRequest) GetDueDateOk

func (o *InvoiceUpdateRequest) GetDueDateOk() (*string, bool)

GetDueDateOk returns a tuple with the DueDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceUpdateRequest) GetExternalInvoiceNumber

func (o *InvoiceUpdateRequest) GetExternalInvoiceNumber() string

GetExternalInvoiceNumber returns the ExternalInvoiceNumber field value if set, zero value otherwise.

func (*InvoiceUpdateRequest) GetExternalInvoiceNumberOk

func (o *InvoiceUpdateRequest) GetExternalInvoiceNumberOk() (*string, bool)

GetExternalInvoiceNumberOk returns a tuple with the ExternalInvoiceNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceUpdateRequest) GetExternalRecipientId

func (o *InvoiceUpdateRequest) GetExternalRecipientId() string

GetExternalRecipientId returns the ExternalRecipientId field value if set, zero value otherwise.

func (*InvoiceUpdateRequest) GetExternalRecipientIdOk

func (o *InvoiceUpdateRequest) GetExternalRecipientIdOk() (*string, bool)

GetExternalRecipientIdOk returns a tuple with the ExternalRecipientId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceUpdateRequest) GetInvoiceNumber

func (o *InvoiceUpdateRequest) GetInvoiceNumber() string

GetInvoiceNumber returns the InvoiceNumber field value if set, zero value otherwise.

func (*InvoiceUpdateRequest) GetInvoiceNumberOk

func (o *InvoiceUpdateRequest) GetInvoiceNumberOk() (*string, bool)

GetInvoiceNumberOk returns a tuple with the InvoiceNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceUpdateRequest) GetIsVoided

func (o *InvoiceUpdateRequest) GetIsVoided() bool

GetIsVoided returns the IsVoided field value if set, zero value otherwise.

func (*InvoiceUpdateRequest) GetIsVoidedOk

func (o *InvoiceUpdateRequest) GetIsVoidedOk() (*bool, bool)

GetIsVoidedOk returns a tuple with the IsVoided field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceUpdateRequest) GetReceivedByCustomerDate

func (o *InvoiceUpdateRequest) GetReceivedByCustomerDate() string

GetReceivedByCustomerDate returns the ReceivedByCustomerDate field value if set, zero value otherwise.

func (*InvoiceUpdateRequest) GetReceivedByCustomerDateOk

func (o *InvoiceUpdateRequest) GetReceivedByCustomerDateOk() (*string, bool)

GetReceivedByCustomerDateOk returns a tuple with the ReceivedByCustomerDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceUpdateRequest) GetReceivedByRecipientDate

func (o *InvoiceUpdateRequest) GetReceivedByRecipientDate() int64

GetReceivedByRecipientDate returns the ReceivedByRecipientDate field value if set, zero value otherwise.

func (*InvoiceUpdateRequest) GetReceivedByRecipientDateOk

func (o *InvoiceUpdateRequest) GetReceivedByRecipientDateOk() (*int64, bool)

GetReceivedByRecipientDateOk returns a tuple with the ReceivedByRecipientDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceUpdateRequest) HasCurrencyCode

func (o *InvoiceUpdateRequest) HasCurrencyCode() bool

HasCurrencyCode returns a boolean if a field has been set.

func (*InvoiceUpdateRequest) HasDueDate

func (o *InvoiceUpdateRequest) HasDueDate() bool

HasDueDate returns a boolean if a field has been set.

func (*InvoiceUpdateRequest) HasExternalInvoiceNumber

func (o *InvoiceUpdateRequest) HasExternalInvoiceNumber() bool

HasExternalInvoiceNumber returns a boolean if a field has been set.

func (*InvoiceUpdateRequest) HasExternalRecipientId

func (o *InvoiceUpdateRequest) HasExternalRecipientId() bool

HasExternalRecipientId returns a boolean if a field has been set.

func (*InvoiceUpdateRequest) HasInvoiceNumber

func (o *InvoiceUpdateRequest) HasInvoiceNumber() bool

HasInvoiceNumber returns a boolean if a field has been set.

func (*InvoiceUpdateRequest) HasIsVoided

func (o *InvoiceUpdateRequest) HasIsVoided() bool

HasIsVoided returns a boolean if a field has been set.

func (*InvoiceUpdateRequest) HasReceivedByCustomerDate

func (o *InvoiceUpdateRequest) HasReceivedByCustomerDate() bool

HasReceivedByCustomerDate returns a boolean if a field has been set.

func (*InvoiceUpdateRequest) HasReceivedByRecipientDate

func (o *InvoiceUpdateRequest) HasReceivedByRecipientDate() bool

HasReceivedByRecipientDate returns a boolean if a field has been set.

func (InvoiceUpdateRequest) MarshalJSON

func (o InvoiceUpdateRequest) MarshalJSON() ([]byte, error)

func (*InvoiceUpdateRequest) SetCurrencyCode

func (o *InvoiceUpdateRequest) SetCurrencyCode(v string)

SetCurrencyCode gets a reference to the given string and assigns it to the CurrencyCode field.

func (*InvoiceUpdateRequest) SetDueDate

func (o *InvoiceUpdateRequest) SetDueDate(v string)

SetDueDate gets a reference to the given string and assigns it to the DueDate field.

func (*InvoiceUpdateRequest) SetExternalInvoiceNumber

func (o *InvoiceUpdateRequest) SetExternalInvoiceNumber(v string)

SetExternalInvoiceNumber gets a reference to the given string and assigns it to the ExternalInvoiceNumber field.

func (*InvoiceUpdateRequest) SetExternalRecipientId

func (o *InvoiceUpdateRequest) SetExternalRecipientId(v string)

SetExternalRecipientId gets a reference to the given string and assigns it to the ExternalRecipientId field.

func (*InvoiceUpdateRequest) SetInvoiceNumber

func (o *InvoiceUpdateRequest) SetInvoiceNumber(v string)

SetInvoiceNumber gets a reference to the given string and assigns it to the InvoiceNumber field.

func (*InvoiceUpdateRequest) SetIsVoided

func (o *InvoiceUpdateRequest) SetIsVoided(v bool)

SetIsVoided gets a reference to the given bool and assigns it to the IsVoided field.

func (*InvoiceUpdateRequest) SetReceivedByCustomerDate

func (o *InvoiceUpdateRequest) SetReceivedByCustomerDate(v string)

SetReceivedByCustomerDate gets a reference to the given string and assigns it to the ReceivedByCustomerDate field.

func (*InvoiceUpdateRequest) SetReceivedByRecipientDate

func (o *InvoiceUpdateRequest) SetReceivedByRecipientDate(v int64)

SetReceivedByRecipientDate gets a reference to the given int64 and assigns it to the ReceivedByRecipientDate field.

type InvoiceUpdateResponse

type InvoiceUpdateResponse struct {
	ExternalInvoiceNumber   *string    `json:"externalInvoiceNumber,omitempty"`
	TotalAmountBilled       float32    `json:"totalAmountBilled"`
	BalanceDue              float32    `json:"balanceDue"`
	CurrencyCode            string     `json:"currencyCode"`
	DueDate                 string     `json:"dueDate"`
	ExternalRecipientId     string     `json:"externalRecipientId"`
	ReceivedByRecipientDate *int64     `json:"receivedByRecipientDate,omitempty"`
	ExternalCreateDateTime  *int64     `json:"externalCreateDateTime,omitempty"`
	IsVoided                bool       `json:"isVoided"`
	CreatedAt               time.Time  `json:"createdAt"`
	UpdatedAt               time.Time  `json:"updatedAt"`
	ArchivedAt              *time.Time `json:"archivedAt,omitempty"`
	Archived                bool       `json:"archived"`
	ExternalAccountId       string     `json:"externalAccountId"`
	InvoiceStatus           string     `json:"invoiceStatus"`
	Id                      string     `json:"id"`
}

InvoiceUpdateResponse struct for InvoiceUpdateResponse

func NewInvoiceUpdateResponse

func NewInvoiceUpdateResponse(totalAmountBilled float32, balanceDue float32, currencyCode string, dueDate string, externalRecipientId string, isVoided bool, createdAt time.Time, updatedAt time.Time, archived bool, externalAccountId string, invoiceStatus string, id string) *InvoiceUpdateResponse

NewInvoiceUpdateResponse instantiates a new InvoiceUpdateResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInvoiceUpdateResponseWithDefaults

func NewInvoiceUpdateResponseWithDefaults() *InvoiceUpdateResponse

NewInvoiceUpdateResponseWithDefaults instantiates a new InvoiceUpdateResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InvoiceUpdateResponse) GetArchived

func (o *InvoiceUpdateResponse) GetArchived() bool

GetArchived returns the Archived field value

func (*InvoiceUpdateResponse) GetArchivedAt

func (o *InvoiceUpdateResponse) GetArchivedAt() time.Time

GetArchivedAt returns the ArchivedAt field value if set, zero value otherwise.

func (*InvoiceUpdateResponse) GetArchivedAtOk

func (o *InvoiceUpdateResponse) GetArchivedAtOk() (*time.Time, bool)

GetArchivedAtOk returns a tuple with the ArchivedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceUpdateResponse) GetArchivedOk

func (o *InvoiceUpdateResponse) GetArchivedOk() (*bool, bool)

GetArchivedOk returns a tuple with the Archived field value and a boolean to check if the value has been set.

func (*InvoiceUpdateResponse) GetBalanceDue

func (o *InvoiceUpdateResponse) GetBalanceDue() float32

GetBalanceDue returns the BalanceDue field value

func (*InvoiceUpdateResponse) GetBalanceDueOk

func (o *InvoiceUpdateResponse) GetBalanceDueOk() (*float32, bool)

GetBalanceDueOk returns a tuple with the BalanceDue field value and a boolean to check if the value has been set.

func (*InvoiceUpdateResponse) GetCreatedAt

func (o *InvoiceUpdateResponse) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value

func (*InvoiceUpdateResponse) GetCreatedAtOk

func (o *InvoiceUpdateResponse) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*InvoiceUpdateResponse) GetCurrencyCode

func (o *InvoiceUpdateResponse) GetCurrencyCode() string

GetCurrencyCode returns the CurrencyCode field value

func (*InvoiceUpdateResponse) GetCurrencyCodeOk

func (o *InvoiceUpdateResponse) GetCurrencyCodeOk() (*string, bool)

GetCurrencyCodeOk returns a tuple with the CurrencyCode field value and a boolean to check if the value has been set.

func (*InvoiceUpdateResponse) GetDueDate

func (o *InvoiceUpdateResponse) GetDueDate() string

GetDueDate returns the DueDate field value

func (*InvoiceUpdateResponse) GetDueDateOk

func (o *InvoiceUpdateResponse) GetDueDateOk() (*string, bool)

GetDueDateOk returns a tuple with the DueDate field value and a boolean to check if the value has been set.

func (*InvoiceUpdateResponse) GetExternalAccountId

func (o *InvoiceUpdateResponse) GetExternalAccountId() string

GetExternalAccountId returns the ExternalAccountId field value

func (*InvoiceUpdateResponse) GetExternalAccountIdOk

func (o *InvoiceUpdateResponse) GetExternalAccountIdOk() (*string, bool)

GetExternalAccountIdOk returns a tuple with the ExternalAccountId field value and a boolean to check if the value has been set.

func (*InvoiceUpdateResponse) GetExternalCreateDateTime

func (o *InvoiceUpdateResponse) GetExternalCreateDateTime() int64

GetExternalCreateDateTime returns the ExternalCreateDateTime field value if set, zero value otherwise.

func (*InvoiceUpdateResponse) GetExternalCreateDateTimeOk

func (o *InvoiceUpdateResponse) GetExternalCreateDateTimeOk() (*int64, bool)

GetExternalCreateDateTimeOk returns a tuple with the ExternalCreateDateTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceUpdateResponse) GetExternalInvoiceNumber

func (o *InvoiceUpdateResponse) GetExternalInvoiceNumber() string

GetExternalInvoiceNumber returns the ExternalInvoiceNumber field value if set, zero value otherwise.

func (*InvoiceUpdateResponse) GetExternalInvoiceNumberOk

func (o *InvoiceUpdateResponse) GetExternalInvoiceNumberOk() (*string, bool)

GetExternalInvoiceNumberOk returns a tuple with the ExternalInvoiceNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceUpdateResponse) GetExternalRecipientId

func (o *InvoiceUpdateResponse) GetExternalRecipientId() string

GetExternalRecipientId returns the ExternalRecipientId field value

func (*InvoiceUpdateResponse) GetExternalRecipientIdOk

func (o *InvoiceUpdateResponse) GetExternalRecipientIdOk() (*string, bool)

GetExternalRecipientIdOk returns a tuple with the ExternalRecipientId field value and a boolean to check if the value has been set.

func (*InvoiceUpdateResponse) GetId

func (o *InvoiceUpdateResponse) GetId() string

GetId returns the Id field value

func (*InvoiceUpdateResponse) GetIdOk

func (o *InvoiceUpdateResponse) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*InvoiceUpdateResponse) GetInvoiceStatus

func (o *InvoiceUpdateResponse) GetInvoiceStatus() string

GetInvoiceStatus returns the InvoiceStatus field value

func (*InvoiceUpdateResponse) GetInvoiceStatusOk

func (o *InvoiceUpdateResponse) GetInvoiceStatusOk() (*string, bool)

GetInvoiceStatusOk returns a tuple with the InvoiceStatus field value and a boolean to check if the value has been set.

func (*InvoiceUpdateResponse) GetIsVoided

func (o *InvoiceUpdateResponse) GetIsVoided() bool

GetIsVoided returns the IsVoided field value

func (*InvoiceUpdateResponse) GetIsVoidedOk

func (o *InvoiceUpdateResponse) GetIsVoidedOk() (*bool, bool)

GetIsVoidedOk returns a tuple with the IsVoided field value and a boolean to check if the value has been set.

func (*InvoiceUpdateResponse) GetReceivedByRecipientDate

func (o *InvoiceUpdateResponse) GetReceivedByRecipientDate() int64

GetReceivedByRecipientDate returns the ReceivedByRecipientDate field value if set, zero value otherwise.

func (*InvoiceUpdateResponse) GetReceivedByRecipientDateOk

func (o *InvoiceUpdateResponse) GetReceivedByRecipientDateOk() (*int64, bool)

GetReceivedByRecipientDateOk returns a tuple with the ReceivedByRecipientDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceUpdateResponse) GetTotalAmountBilled

func (o *InvoiceUpdateResponse) GetTotalAmountBilled() float32

GetTotalAmountBilled returns the TotalAmountBilled field value

func (*InvoiceUpdateResponse) GetTotalAmountBilledOk

func (o *InvoiceUpdateResponse) GetTotalAmountBilledOk() (*float32, bool)

GetTotalAmountBilledOk returns a tuple with the TotalAmountBilled field value and a boolean to check if the value has been set.

func (*InvoiceUpdateResponse) GetUpdatedAt

func (o *InvoiceUpdateResponse) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value

func (*InvoiceUpdateResponse) GetUpdatedAtOk

func (o *InvoiceUpdateResponse) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*InvoiceUpdateResponse) HasArchivedAt

func (o *InvoiceUpdateResponse) HasArchivedAt() bool

HasArchivedAt returns a boolean if a field has been set.

func (*InvoiceUpdateResponse) HasExternalCreateDateTime

func (o *InvoiceUpdateResponse) HasExternalCreateDateTime() bool

HasExternalCreateDateTime returns a boolean if a field has been set.

func (*InvoiceUpdateResponse) HasExternalInvoiceNumber

func (o *InvoiceUpdateResponse) HasExternalInvoiceNumber() bool

HasExternalInvoiceNumber returns a boolean if a field has been set.

func (*InvoiceUpdateResponse) HasReceivedByRecipientDate

func (o *InvoiceUpdateResponse) HasReceivedByRecipientDate() bool

HasReceivedByRecipientDate returns a boolean if a field has been set.

func (InvoiceUpdateResponse) MarshalJSON

func (o InvoiceUpdateResponse) MarshalJSON() ([]byte, error)

func (*InvoiceUpdateResponse) SetArchived

func (o *InvoiceUpdateResponse) SetArchived(v bool)

SetArchived sets field value

func (*InvoiceUpdateResponse) SetArchivedAt

func (o *InvoiceUpdateResponse) SetArchivedAt(v time.Time)

SetArchivedAt gets a reference to the given time.Time and assigns it to the ArchivedAt field.

func (*InvoiceUpdateResponse) SetBalanceDue

func (o *InvoiceUpdateResponse) SetBalanceDue(v float32)

SetBalanceDue sets field value

func (*InvoiceUpdateResponse) SetCreatedAt

func (o *InvoiceUpdateResponse) SetCreatedAt(v time.Time)

SetCreatedAt sets field value

func (*InvoiceUpdateResponse) SetCurrencyCode

func (o *InvoiceUpdateResponse) SetCurrencyCode(v string)

SetCurrencyCode sets field value

func (*InvoiceUpdateResponse) SetDueDate

func (o *InvoiceUpdateResponse) SetDueDate(v string)

SetDueDate sets field value

func (*InvoiceUpdateResponse) SetExternalAccountId

func (o *InvoiceUpdateResponse) SetExternalAccountId(v string)

SetExternalAccountId sets field value

func (*InvoiceUpdateResponse) SetExternalCreateDateTime

func (o *InvoiceUpdateResponse) SetExternalCreateDateTime(v int64)

SetExternalCreateDateTime gets a reference to the given int64 and assigns it to the ExternalCreateDateTime field.

func (*InvoiceUpdateResponse) SetExternalInvoiceNumber

func (o *InvoiceUpdateResponse) SetExternalInvoiceNumber(v string)

SetExternalInvoiceNumber gets a reference to the given string and assigns it to the ExternalInvoiceNumber field.

func (*InvoiceUpdateResponse) SetExternalRecipientId

func (o *InvoiceUpdateResponse) SetExternalRecipientId(v string)

SetExternalRecipientId sets field value

func (*InvoiceUpdateResponse) SetId

func (o *InvoiceUpdateResponse) SetId(v string)

SetId sets field value

func (*InvoiceUpdateResponse) SetInvoiceStatus

func (o *InvoiceUpdateResponse) SetInvoiceStatus(v string)

SetInvoiceStatus sets field value

func (*InvoiceUpdateResponse) SetIsVoided

func (o *InvoiceUpdateResponse) SetIsVoided(v bool)

SetIsVoided sets field value

func (*InvoiceUpdateResponse) SetReceivedByRecipientDate

func (o *InvoiceUpdateResponse) SetReceivedByRecipientDate(v int64)

SetReceivedByRecipientDate gets a reference to the given int64 and assigns it to the ReceivedByRecipientDate field.

func (*InvoiceUpdateResponse) SetTotalAmountBilled

func (o *InvoiceUpdateResponse) SetTotalAmountBilled(v float32)

SetTotalAmountBilled sets field value

func (*InvoiceUpdateResponse) SetUpdatedAt

func (o *InvoiceUpdateResponse) SetUpdatedAt(v time.Time)

SetUpdatedAt sets field value

type InvoicesResponseExternal

type InvoicesResponseExternal struct {
	// Designates if the response is a success ('OK') or failure ('ERR').
	Result *string `json:"@result,omitempty"`
	// The list of invoices that were found for the request.
	Invoices []AccountingExtensionInvoice `json:"invoices"`
}

InvoicesResponseExternal A response to a request for invoices.

func NewInvoicesResponseExternal

func NewInvoicesResponseExternal(invoices []AccountingExtensionInvoice) *InvoicesResponseExternal

NewInvoicesResponseExternal instantiates a new InvoicesResponseExternal object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInvoicesResponseExternalWithDefaults

func NewInvoicesResponseExternalWithDefaults() *InvoicesResponseExternal

NewInvoicesResponseExternalWithDefaults instantiates a new InvoicesResponseExternal object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InvoicesResponseExternal) GetInvoices

GetInvoices returns the Invoices field value

func (*InvoicesResponseExternal) GetInvoicesOk

GetInvoicesOk returns a tuple with the Invoices field value and a boolean to check if the value has been set.

func (*InvoicesResponseExternal) GetResult

func (o *InvoicesResponseExternal) GetResult() string

GetResult returns the Result field value if set, zero value otherwise.

func (*InvoicesResponseExternal) GetResultOk

func (o *InvoicesResponseExternal) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoicesResponseExternal) HasResult

func (o *InvoicesResponseExternal) HasResult() bool

HasResult returns a boolean if a field has been set.

func (InvoicesResponseExternal) MarshalJSON

func (o InvoicesResponseExternal) MarshalJSON() ([]byte, error)

func (*InvoicesResponseExternal) SetInvoices

SetInvoices sets field value

func (*InvoicesResponseExternal) SetResult

func (o *InvoicesResponseExternal) SetResult(v string)

SetResult gets a reference to the given string and assigns it to the Result field.

type NullableAccountingAppSettings

type NullableAccountingAppSettings struct {
	// contains filtered or unexported fields
}

func (NullableAccountingAppSettings) Get

func (NullableAccountingAppSettings) IsSet

func (NullableAccountingAppSettings) MarshalJSON

func (v NullableAccountingAppSettings) MarshalJSON() ([]byte, error)

func (*NullableAccountingAppSettings) Set

func (*NullableAccountingAppSettings) UnmarshalJSON

func (v *NullableAccountingAppSettings) UnmarshalJSON(src []byte) error

func (*NullableAccountingAppSettings) Unset

func (v *NullableAccountingAppSettings) Unset()

type NullableAccountingAppUrls

type NullableAccountingAppUrls struct {
	// contains filtered or unexported fields
}

func NewNullableAccountingAppUrls

func NewNullableAccountingAppUrls(val *AccountingAppUrls) *NullableAccountingAppUrls

func (NullableAccountingAppUrls) Get

func (NullableAccountingAppUrls) IsSet

func (v NullableAccountingAppUrls) IsSet() bool

func (NullableAccountingAppUrls) MarshalJSON

func (v NullableAccountingAppUrls) MarshalJSON() ([]byte, error)

func (*NullableAccountingAppUrls) Set

func (*NullableAccountingAppUrls) UnmarshalJSON

func (v *NullableAccountingAppUrls) UnmarshalJSON(src []byte) error

func (*NullableAccountingAppUrls) Unset

func (v *NullableAccountingAppUrls) Unset()

type NullableAccountingExtensionCustomer

type NullableAccountingExtensionCustomer struct {
	// contains filtered or unexported fields
}

func (NullableAccountingExtensionCustomer) Get

func (NullableAccountingExtensionCustomer) IsSet

func (NullableAccountingExtensionCustomer) MarshalJSON

func (v NullableAccountingExtensionCustomer) MarshalJSON() ([]byte, error)

func (*NullableAccountingExtensionCustomer) Set

func (*NullableAccountingExtensionCustomer) UnmarshalJSON

func (v *NullableAccountingExtensionCustomer) UnmarshalJSON(src []byte) error

func (*NullableAccountingExtensionCustomer) Unset

type NullableAccountingExtensionInvoice

type NullableAccountingExtensionInvoice struct {
	// contains filtered or unexported fields
}

func (NullableAccountingExtensionInvoice) Get

func (NullableAccountingExtensionInvoice) IsSet

func (NullableAccountingExtensionInvoice) MarshalJSON

func (v NullableAccountingExtensionInvoice) MarshalJSON() ([]byte, error)

func (*NullableAccountingExtensionInvoice) Set

func (*NullableAccountingExtensionInvoice) UnmarshalJSON

func (v *NullableAccountingExtensionInvoice) UnmarshalJSON(src []byte) error

func (*NullableAccountingExtensionInvoice) Unset

type NullableAccountingExtensionTerm

type NullableAccountingExtensionTerm struct {
	// contains filtered or unexported fields
}

func (NullableAccountingExtensionTerm) Get

func (NullableAccountingExtensionTerm) IsSet

func (NullableAccountingExtensionTerm) MarshalJSON

func (v NullableAccountingExtensionTerm) MarshalJSON() ([]byte, error)

func (*NullableAccountingExtensionTerm) Set

func (*NullableAccountingExtensionTerm) UnmarshalJSON

func (v *NullableAccountingExtensionTerm) UnmarshalJSON(src []byte) error

func (*NullableAccountingExtensionTerm) Unset

type NullableAccountingFeatures

type NullableAccountingFeatures struct {
	// contains filtered or unexported fields
}

func NewNullableAccountingFeatures

func NewNullableAccountingFeatures(val *AccountingFeatures) *NullableAccountingFeatures

func (NullableAccountingFeatures) Get

func (NullableAccountingFeatures) IsSet

func (v NullableAccountingFeatures) IsSet() bool

func (NullableAccountingFeatures) MarshalJSON

func (v NullableAccountingFeatures) MarshalJSON() ([]byte, error)

func (*NullableAccountingFeatures) Set

func (*NullableAccountingFeatures) UnmarshalJSON

func (v *NullableAccountingFeatures) UnmarshalJSON(src []byte) error

func (*NullableAccountingFeatures) Unset

func (v *NullableAccountingFeatures) Unset()

type NullableActionResponse

type NullableActionResponse struct {
	// contains filtered or unexported fields
}

func NewNullableActionResponse

func NewNullableActionResponse(val *ActionResponse) *NullableActionResponse

func (NullableActionResponse) Get

func (NullableActionResponse) IsSet

func (v NullableActionResponse) IsSet() bool

func (NullableActionResponse) MarshalJSON

func (v NullableActionResponse) MarshalJSON() ([]byte, error)

func (*NullableActionResponse) Set

func (*NullableActionResponse) UnmarshalJSON

func (v *NullableActionResponse) UnmarshalJSON(src []byte) error

func (*NullableActionResponse) Unset

func (v *NullableActionResponse) Unset()

type NullableAddress

type NullableAddress struct {
	// contains filtered or unexported fields
}

func NewNullableAddress

func NewNullableAddress(val *Address) *NullableAddress

func (NullableAddress) Get

func (v NullableAddress) Get() *Address

func (NullableAddress) IsSet

func (v NullableAddress) IsSet() bool

func (NullableAddress) MarshalJSON

func (v NullableAddress) MarshalJSON() ([]byte, error)

func (*NullableAddress) Set

func (v *NullableAddress) Set(val *Address)

func (*NullableAddress) UnmarshalJSON

func (v *NullableAddress) UnmarshalJSON(src []byte) error

func (*NullableAddress) Unset

func (v *NullableAddress) Unset()

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableCreateInvoiceFeature

type NullableCreateInvoiceFeature struct {
	// contains filtered or unexported fields
}

func NewNullableCreateInvoiceFeature

func NewNullableCreateInvoiceFeature(val *CreateInvoiceFeature) *NullableCreateInvoiceFeature

func (NullableCreateInvoiceFeature) Get

func (NullableCreateInvoiceFeature) IsSet

func (NullableCreateInvoiceFeature) MarshalJSON

func (v NullableCreateInvoiceFeature) MarshalJSON() ([]byte, error)

func (*NullableCreateInvoiceFeature) Set

func (*NullableCreateInvoiceFeature) UnmarshalJSON

func (v *NullableCreateInvoiceFeature) UnmarshalJSON(src []byte) error

func (*NullableCreateInvoiceFeature) Unset

func (v *NullableCreateInvoiceFeature) Unset()

type NullableCreateInvoiceSubFeatures

type NullableCreateInvoiceSubFeatures struct {
	// contains filtered or unexported fields
}

func (NullableCreateInvoiceSubFeatures) Get

func (NullableCreateInvoiceSubFeatures) IsSet

func (NullableCreateInvoiceSubFeatures) MarshalJSON

func (v NullableCreateInvoiceSubFeatures) MarshalJSON() ([]byte, error)

func (*NullableCreateInvoiceSubFeatures) Set

func (*NullableCreateInvoiceSubFeatures) UnmarshalJSON

func (v *NullableCreateInvoiceSubFeatures) UnmarshalJSON(src []byte) error

func (*NullableCreateInvoiceSubFeatures) Unset

type NullableCreateUserAccountRequestExternal

type NullableCreateUserAccountRequestExternal struct {
	// contains filtered or unexported fields
}

func (NullableCreateUserAccountRequestExternal) Get

func (NullableCreateUserAccountRequestExternal) IsSet

func (NullableCreateUserAccountRequestExternal) MarshalJSON

func (*NullableCreateUserAccountRequestExternal) Set

func (*NullableCreateUserAccountRequestExternal) UnmarshalJSON

func (v *NullableCreateUserAccountRequestExternal) UnmarshalJSON(src []byte) error

func (*NullableCreateUserAccountRequestExternal) Unset

type NullableCustomerSearchResponseExternal

type NullableCustomerSearchResponseExternal struct {
	// contains filtered or unexported fields
}

func (NullableCustomerSearchResponseExternal) Get

func (NullableCustomerSearchResponseExternal) IsSet

func (NullableCustomerSearchResponseExternal) MarshalJSON

func (v NullableCustomerSearchResponseExternal) MarshalJSON() ([]byte, error)

func (*NullableCustomerSearchResponseExternal) Set

func (*NullableCustomerSearchResponseExternal) UnmarshalJSON

func (v *NullableCustomerSearchResponseExternal) UnmarshalJSON(src []byte) error

func (*NullableCustomerSearchResponseExternal) Unset

type NullableError

type NullableError struct {
	// contains filtered or unexported fields
}

func NewNullableError

func NewNullableError(val *Error) *NullableError

func (NullableError) Get

func (v NullableError) Get() *Error

func (NullableError) IsSet

func (v NullableError) IsSet() bool

func (NullableError) MarshalJSON

func (v NullableError) MarshalJSON() ([]byte, error)

func (*NullableError) Set

func (v *NullableError) Set(val *Error)

func (*NullableError) UnmarshalJSON

func (v *NullableError) UnmarshalJSON(src []byte) error

func (*NullableError) Unset

func (v *NullableError) Unset()

type NullableErrorDetail

type NullableErrorDetail struct {
	// contains filtered or unexported fields
}

func NewNullableErrorDetail

func NewNullableErrorDetail(val *ErrorDetail) *NullableErrorDetail

func (NullableErrorDetail) Get

func (NullableErrorDetail) IsSet

func (v NullableErrorDetail) IsSet() bool

func (NullableErrorDetail) MarshalJSON

func (v NullableErrorDetail) MarshalJSON() ([]byte, error)

func (*NullableErrorDetail) Set

func (v *NullableErrorDetail) Set(val *ErrorDetail)

func (*NullableErrorDetail) UnmarshalJSON

func (v *NullableErrorDetail) UnmarshalJSON(src []byte) error

func (*NullableErrorDetail) Unset

func (v *NullableErrorDetail) Unset()

type NullableExchangeRateResponse

type NullableExchangeRateResponse struct {
	// contains filtered or unexported fields
}

func NewNullableExchangeRateResponse

func NewNullableExchangeRateResponse(val *ExchangeRateResponse) *NullableExchangeRateResponse

func (NullableExchangeRateResponse) Get

func (NullableExchangeRateResponse) IsSet

func (NullableExchangeRateResponse) MarshalJSON

func (v NullableExchangeRateResponse) MarshalJSON() ([]byte, error)

func (*NullableExchangeRateResponse) Set

func (*NullableExchangeRateResponse) UnmarshalJSON

func (v *NullableExchangeRateResponse) UnmarshalJSON(src []byte) error

func (*NullableExchangeRateResponse) Unset

func (v *NullableExchangeRateResponse) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableImportInvoiceFeature

type NullableImportInvoiceFeature struct {
	// contains filtered or unexported fields
}

func NewNullableImportInvoiceFeature

func NewNullableImportInvoiceFeature(val *ImportInvoiceFeature) *NullableImportInvoiceFeature

func (NullableImportInvoiceFeature) Get

func (NullableImportInvoiceFeature) IsSet

func (NullableImportInvoiceFeature) MarshalJSON

func (v NullableImportInvoiceFeature) MarshalJSON() ([]byte, error)

func (*NullableImportInvoiceFeature) Set

func (*NullableImportInvoiceFeature) UnmarshalJSON

func (v *NullableImportInvoiceFeature) UnmarshalJSON(src []byte) error

func (*NullableImportInvoiceFeature) Unset

func (v *NullableImportInvoiceFeature) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableInvoiceCreatePaymentRequest

type NullableInvoiceCreatePaymentRequest struct {
	// contains filtered or unexported fields
}

func (NullableInvoiceCreatePaymentRequest) Get

func (NullableInvoiceCreatePaymentRequest) IsSet

func (NullableInvoiceCreatePaymentRequest) MarshalJSON

func (v NullableInvoiceCreatePaymentRequest) MarshalJSON() ([]byte, error)

func (*NullableInvoiceCreatePaymentRequest) Set

func (*NullableInvoiceCreatePaymentRequest) UnmarshalJSON

func (v *NullableInvoiceCreatePaymentRequest) UnmarshalJSON(src []byte) error

func (*NullableInvoiceCreatePaymentRequest) Unset

type NullableInvoicePdfResponse

type NullableInvoicePdfResponse struct {
	// contains filtered or unexported fields
}

func NewNullableInvoicePdfResponse

func NewNullableInvoicePdfResponse(val *InvoicePdfResponse) *NullableInvoicePdfResponse

func (NullableInvoicePdfResponse) Get

func (NullableInvoicePdfResponse) IsSet

func (v NullableInvoicePdfResponse) IsSet() bool

func (NullableInvoicePdfResponse) MarshalJSON

func (v NullableInvoicePdfResponse) MarshalJSON() ([]byte, error)

func (*NullableInvoicePdfResponse) Set

func (*NullableInvoicePdfResponse) UnmarshalJSON

func (v *NullableInvoicePdfResponse) UnmarshalJSON(src []byte) error

func (*NullableInvoicePdfResponse) Unset

func (v *NullableInvoicePdfResponse) Unset()

type NullableInvoiceReadResponse

type NullableInvoiceReadResponse struct {
	// contains filtered or unexported fields
}

func NewNullableInvoiceReadResponse

func NewNullableInvoiceReadResponse(val *InvoiceReadResponse) *NullableInvoiceReadResponse

func (NullableInvoiceReadResponse) Get

func (NullableInvoiceReadResponse) IsSet

func (NullableInvoiceReadResponse) MarshalJSON

func (v NullableInvoiceReadResponse) MarshalJSON() ([]byte, error)

func (*NullableInvoiceReadResponse) Set

func (*NullableInvoiceReadResponse) UnmarshalJSON

func (v *NullableInvoiceReadResponse) UnmarshalJSON(src []byte) error

func (*NullableInvoiceReadResponse) Unset

func (v *NullableInvoiceReadResponse) Unset()

type NullableInvoiceSearchResponse

type NullableInvoiceSearchResponse struct {
	// contains filtered or unexported fields
}

func (NullableInvoiceSearchResponse) Get

func (NullableInvoiceSearchResponse) IsSet

func (NullableInvoiceSearchResponse) MarshalJSON

func (v NullableInvoiceSearchResponse) MarshalJSON() ([]byte, error)

func (*NullableInvoiceSearchResponse) Set

func (*NullableInvoiceSearchResponse) UnmarshalJSON

func (v *NullableInvoiceSearchResponse) UnmarshalJSON(src []byte) error

func (*NullableInvoiceSearchResponse) Unset

func (v *NullableInvoiceSearchResponse) Unset()

type NullableInvoiceUpdateRequest

type NullableInvoiceUpdateRequest struct {
	// contains filtered or unexported fields
}

func NewNullableInvoiceUpdateRequest

func NewNullableInvoiceUpdateRequest(val *InvoiceUpdateRequest) *NullableInvoiceUpdateRequest

func (NullableInvoiceUpdateRequest) Get

func (NullableInvoiceUpdateRequest) IsSet

func (NullableInvoiceUpdateRequest) MarshalJSON

func (v NullableInvoiceUpdateRequest) MarshalJSON() ([]byte, error)

func (*NullableInvoiceUpdateRequest) Set

func (*NullableInvoiceUpdateRequest) UnmarshalJSON

func (v *NullableInvoiceUpdateRequest) UnmarshalJSON(src []byte) error

func (*NullableInvoiceUpdateRequest) Unset

func (v *NullableInvoiceUpdateRequest) Unset()

type NullableInvoiceUpdateResponse

type NullableInvoiceUpdateResponse struct {
	// contains filtered or unexported fields
}

func (NullableInvoiceUpdateResponse) Get

func (NullableInvoiceUpdateResponse) IsSet

func (NullableInvoiceUpdateResponse) MarshalJSON

func (v NullableInvoiceUpdateResponse) MarshalJSON() ([]byte, error)

func (*NullableInvoiceUpdateResponse) Set

func (*NullableInvoiceUpdateResponse) UnmarshalJSON

func (v *NullableInvoiceUpdateResponse) UnmarshalJSON(src []byte) error

func (*NullableInvoiceUpdateResponse) Unset

func (v *NullableInvoiceUpdateResponse) Unset()

type NullableInvoicesResponseExternal

type NullableInvoicesResponseExternal struct {
	// contains filtered or unexported fields
}

func (NullableInvoicesResponseExternal) Get

func (NullableInvoicesResponseExternal) IsSet

func (NullableInvoicesResponseExternal) MarshalJSON

func (v NullableInvoicesResponseExternal) MarshalJSON() ([]byte, error)

func (*NullableInvoicesResponseExternal) Set

func (*NullableInvoicesResponseExternal) UnmarshalJSON

func (v *NullableInvoicesResponseExternal) UnmarshalJSON(src []byte) error

func (*NullableInvoicesResponseExternal) Unset

type NullableObjectSyncFeature

type NullableObjectSyncFeature struct {
	// contains filtered or unexported fields
}

func NewNullableObjectSyncFeature

func NewNullableObjectSyncFeature(val *ObjectSyncFeature) *NullableObjectSyncFeature

func (NullableObjectSyncFeature) Get

func (NullableObjectSyncFeature) IsSet

func (v NullableObjectSyncFeature) IsSet() bool

func (NullableObjectSyncFeature) MarshalJSON

func (v NullableObjectSyncFeature) MarshalJSON() ([]byte, error)

func (*NullableObjectSyncFeature) Set

func (*NullableObjectSyncFeature) UnmarshalJSON

func (v *NullableObjectSyncFeature) UnmarshalJSON(src []byte) error

func (*NullableObjectSyncFeature) Unset

func (v *NullableObjectSyncFeature) Unset()

type NullableProduct

type NullableProduct struct {
	// contains filtered or unexported fields
}

func NewNullableProduct

func NewNullableProduct(val *Product) *NullableProduct

func (NullableProduct) Get

func (v NullableProduct) Get() *Product

func (NullableProduct) IsSet

func (v NullableProduct) IsSet() bool

func (NullableProduct) MarshalJSON

func (v NullableProduct) MarshalJSON() ([]byte, error)

func (*NullableProduct) Set

func (v *NullableProduct) Set(val *Product)

func (*NullableProduct) UnmarshalJSON

func (v *NullableProduct) UnmarshalJSON(src []byte) error

func (*NullableProduct) Unset

func (v *NullableProduct) Unset()

type NullableProductSearchResponse

type NullableProductSearchResponse struct {
	// contains filtered or unexported fields
}

func (NullableProductSearchResponse) Get

func (NullableProductSearchResponse) IsSet

func (NullableProductSearchResponse) MarshalJSON

func (v NullableProductSearchResponse) MarshalJSON() ([]byte, error)

func (*NullableProductSearchResponse) Set

func (*NullableProductSearchResponse) UnmarshalJSON

func (v *NullableProductSearchResponse) UnmarshalJSON(src []byte) error

func (*NullableProductSearchResponse) Unset

func (v *NullableProductSearchResponse) Unset()

type NullableResultIdAccountingResponse

type NullableResultIdAccountingResponse struct {
	// contains filtered or unexported fields
}

func (NullableResultIdAccountingResponse) Get

func (NullableResultIdAccountingResponse) IsSet

func (NullableResultIdAccountingResponse) MarshalJSON

func (v NullableResultIdAccountingResponse) MarshalJSON() ([]byte, error)

func (*NullableResultIdAccountingResponse) Set

func (*NullableResultIdAccountingResponse) UnmarshalJSON

func (v *NullableResultIdAccountingResponse) UnmarshalJSON(src []byte) error

func (*NullableResultIdAccountingResponse) Unset

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableSyncContactsRequest

type NullableSyncContactsRequest struct {
	// contains filtered or unexported fields
}

func NewNullableSyncContactsRequest

func NewNullableSyncContactsRequest(val *SyncContactsRequest) *NullableSyncContactsRequest

func (NullableSyncContactsRequest) Get

func (NullableSyncContactsRequest) IsSet

func (NullableSyncContactsRequest) MarshalJSON

func (v NullableSyncContactsRequest) MarshalJSON() ([]byte, error)

func (*NullableSyncContactsRequest) Set

func (*NullableSyncContactsRequest) UnmarshalJSON

func (v *NullableSyncContactsRequest) UnmarshalJSON(src []byte) error

func (*NullableSyncContactsRequest) Unset

func (v *NullableSyncContactsRequest) Unset()

type NullableSyncProductsRequest

type NullableSyncProductsRequest struct {
	// contains filtered or unexported fields
}

func NewNullableSyncProductsRequest

func NewNullableSyncProductsRequest(val *SyncProductsRequest) *NullableSyncProductsRequest

func (NullableSyncProductsRequest) Get

func (NullableSyncProductsRequest) IsSet

func (NullableSyncProductsRequest) MarshalJSON

func (v NullableSyncProductsRequest) MarshalJSON() ([]byte, error)

func (*NullableSyncProductsRequest) Set

func (*NullableSyncProductsRequest) UnmarshalJSON

func (v *NullableSyncProductsRequest) UnmarshalJSON(src []byte) error

func (*NullableSyncProductsRequest) Unset

func (v *NullableSyncProductsRequest) Unset()

type NullableTax

type NullableTax struct {
	// contains filtered or unexported fields
}

func NewNullableTax

func NewNullableTax(val *Tax) *NullableTax

func (NullableTax) Get

func (v NullableTax) Get() *Tax

func (NullableTax) IsSet

func (v NullableTax) IsSet() bool

func (NullableTax) MarshalJSON

func (v NullableTax) MarshalJSON() ([]byte, error)

func (*NullableTax) Set

func (v *NullableTax) Set(val *Tax)

func (*NullableTax) UnmarshalJSON

func (v *NullableTax) UnmarshalJSON(src []byte) error

func (*NullableTax) Unset

func (v *NullableTax) Unset()

type NullableTaxSearchResponse

type NullableTaxSearchResponse struct {
	// contains filtered or unexported fields
}

func NewNullableTaxSearchResponse

func NewNullableTaxSearchResponse(val *TaxSearchResponse) *NullableTaxSearchResponse

func (NullableTaxSearchResponse) Get

func (NullableTaxSearchResponse) IsSet

func (v NullableTaxSearchResponse) IsSet() bool

func (NullableTaxSearchResponse) MarshalJSON

func (v NullableTaxSearchResponse) MarshalJSON() ([]byte, error)

func (*NullableTaxSearchResponse) Set

func (*NullableTaxSearchResponse) UnmarshalJSON

func (v *NullableTaxSearchResponse) UnmarshalJSON(src []byte) error

func (*NullableTaxSearchResponse) Unset

func (v *NullableTaxSearchResponse) Unset()

type NullableTaxType

type NullableTaxType struct {
	// contains filtered or unexported fields
}

func NewNullableTaxType

func NewNullableTaxType(val *TaxType) *NullableTaxType

func (NullableTaxType) Get

func (v NullableTaxType) Get() *TaxType

func (NullableTaxType) IsSet

func (v NullableTaxType) IsSet() bool

func (NullableTaxType) MarshalJSON

func (v NullableTaxType) MarshalJSON() ([]byte, error)

func (*NullableTaxType) Set

func (v *NullableTaxType) Set(val *TaxType)

func (*NullableTaxType) UnmarshalJSON

func (v *NullableTaxType) UnmarshalJSON(src []byte) error

func (*NullableTaxType) Unset

func (v *NullableTaxType) Unset()

type NullableTermsResponse

type NullableTermsResponse struct {
	// contains filtered or unexported fields
}

func NewNullableTermsResponse

func NewNullableTermsResponse(val *TermsResponse) *NullableTermsResponse

func (NullableTermsResponse) Get

func (NullableTermsResponse) IsSet

func (v NullableTermsResponse) IsSet() bool

func (NullableTermsResponse) MarshalJSON

func (v NullableTermsResponse) MarshalJSON() ([]byte, error)

func (*NullableTermsResponse) Set

func (v *NullableTermsResponse) Set(val *TermsResponse)

func (*NullableTermsResponse) UnmarshalJSON

func (v *NullableTermsResponse) UnmarshalJSON(src []byte) error

func (*NullableTermsResponse) Unset

func (v *NullableTermsResponse) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableUnitPrice

type NullableUnitPrice struct {
	// contains filtered or unexported fields
}

func NewNullableUnitPrice

func NewNullableUnitPrice(val *UnitPrice) *NullableUnitPrice

func (NullableUnitPrice) Get

func (v NullableUnitPrice) Get() *UnitPrice

func (NullableUnitPrice) IsSet

func (v NullableUnitPrice) IsSet() bool

func (NullableUnitPrice) MarshalJSON

func (v NullableUnitPrice) MarshalJSON() ([]byte, error)

func (*NullableUnitPrice) Set

func (v *NullableUnitPrice) Set(val *UnitPrice)

func (*NullableUnitPrice) UnmarshalJSON

func (v *NullableUnitPrice) UnmarshalJSON(src []byte) error

func (*NullableUnitPrice) Unset

func (v *NullableUnitPrice) Unset()

type NullableUpdatedContact

type NullableUpdatedContact struct {
	// contains filtered or unexported fields
}

func NewNullableUpdatedContact

func NewNullableUpdatedContact(val *UpdatedContact) *NullableUpdatedContact

func (NullableUpdatedContact) Get

func (NullableUpdatedContact) IsSet

func (v NullableUpdatedContact) IsSet() bool

func (NullableUpdatedContact) MarshalJSON

func (v NullableUpdatedContact) MarshalJSON() ([]byte, error)

func (*NullableUpdatedContact) Set

func (*NullableUpdatedContact) UnmarshalJSON

func (v *NullableUpdatedContact) UnmarshalJSON(src []byte) error

func (*NullableUpdatedContact) Unset

func (v *NullableUpdatedContact) Unset()

type NullableUpdatedProduct

type NullableUpdatedProduct struct {
	// contains filtered or unexported fields
}

func NewNullableUpdatedProduct

func NewNullableUpdatedProduct(val *UpdatedProduct) *NullableUpdatedProduct

func (NullableUpdatedProduct) Get

func (NullableUpdatedProduct) IsSet

func (v NullableUpdatedProduct) IsSet() bool

func (NullableUpdatedProduct) MarshalJSON

func (v NullableUpdatedProduct) MarshalJSON() ([]byte, error)

func (*NullableUpdatedProduct) Set

func (*NullableUpdatedProduct) UnmarshalJSON

func (v *NullableUpdatedProduct) UnmarshalJSON(src []byte) error

func (*NullableUpdatedProduct) Unset

func (v *NullableUpdatedProduct) Unset()

type ObjectSyncFeature

type ObjectSyncFeature struct {
	// Indicates if syncing the object type from the external accounting system into HubSpot is supported.
	ToHubSpot bool `json:"toHubSpot"`
}

ObjectSyncFeature struct for ObjectSyncFeature

func NewObjectSyncFeature

func NewObjectSyncFeature(toHubSpot bool) *ObjectSyncFeature

NewObjectSyncFeature instantiates a new ObjectSyncFeature object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewObjectSyncFeatureWithDefaults

func NewObjectSyncFeatureWithDefaults() *ObjectSyncFeature

NewObjectSyncFeatureWithDefaults instantiates a new ObjectSyncFeature object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ObjectSyncFeature) GetToHubSpot

func (o *ObjectSyncFeature) GetToHubSpot() bool

GetToHubSpot returns the ToHubSpot field value

func (*ObjectSyncFeature) GetToHubSpotOk

func (o *ObjectSyncFeature) GetToHubSpotOk() (*bool, bool)

GetToHubSpotOk returns a tuple with the ToHubSpot field value and a boolean to check if the value has been set.

func (ObjectSyncFeature) MarshalJSON

func (o ObjectSyncFeature) MarshalJSON() ([]byte, error)

func (*ObjectSyncFeature) SetToHubSpot

func (o *ObjectSyncFeature) SetToHubSpot(v bool)

SetToHubSpot sets field value

type Product

type Product struct {
	UnitPrice UnitPrice `json:"unitPrice"`
	// Identifies if the product is tax exempt or not.
	TaxExempt    bool     `json:"taxExempt"`
	SalesTaxType *TaxType `json:"salesTaxType,omitempty"`
	// The display name of the product.
	Name string `json:"name"`
	// The description of the product.
	Description *string `json:"description,omitempty"`
	// The ID of the product in the external accounting system.
	Id string `json:"id"`
}

Product Representation of a product in the external accounting system.

func NewProduct

func NewProduct(unitPrice UnitPrice, taxExempt bool, name string, id string) *Product

NewProduct instantiates a new Product object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProductWithDefaults

func NewProductWithDefaults() *Product

NewProductWithDefaults instantiates a new Product object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Product) GetDescription

func (o *Product) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*Product) GetDescriptionOk

func (o *Product) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Product) GetId

func (o *Product) GetId() string

GetId returns the Id field value

func (*Product) GetIdOk

func (o *Product) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Product) GetName

func (o *Product) GetName() string

GetName returns the Name field value

func (*Product) GetNameOk

func (o *Product) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Product) GetSalesTaxType

func (o *Product) GetSalesTaxType() TaxType

GetSalesTaxType returns the SalesTaxType field value if set, zero value otherwise.

func (*Product) GetSalesTaxTypeOk

func (o *Product) GetSalesTaxTypeOk() (*TaxType, bool)

GetSalesTaxTypeOk returns a tuple with the SalesTaxType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Product) GetTaxExempt

func (o *Product) GetTaxExempt() bool

GetTaxExempt returns the TaxExempt field value

func (*Product) GetTaxExemptOk

func (o *Product) GetTaxExemptOk() (*bool, bool)

GetTaxExemptOk returns a tuple with the TaxExempt field value and a boolean to check if the value has been set.

func (*Product) GetUnitPrice

func (o *Product) GetUnitPrice() UnitPrice

GetUnitPrice returns the UnitPrice field value

func (*Product) GetUnitPriceOk

func (o *Product) GetUnitPriceOk() (*UnitPrice, bool)

GetUnitPriceOk returns a tuple with the UnitPrice field value and a boolean to check if the value has been set.

func (*Product) HasDescription

func (o *Product) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Product) HasSalesTaxType

func (o *Product) HasSalesTaxType() bool

HasSalesTaxType returns a boolean if a field has been set.

func (Product) MarshalJSON

func (o Product) MarshalJSON() ([]byte, error)

func (*Product) SetDescription

func (o *Product) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*Product) SetId

func (o *Product) SetId(v string)

SetId sets field value

func (*Product) SetName

func (o *Product) SetName(v string)

SetName sets field value

func (*Product) SetSalesTaxType

func (o *Product) SetSalesTaxType(v TaxType)

SetSalesTaxType gets a reference to the given TaxType and assigns it to the SalesTaxType field.

func (*Product) SetTaxExempt

func (o *Product) SetTaxExempt(v bool)

SetTaxExempt sets field value

func (*Product) SetUnitPrice

func (o *Product) SetUnitPrice(v UnitPrice)

SetUnitPrice sets field value

type ProductSearchResponse

type ProductSearchResponse struct {
	// Designates if the response is a success ('OK') or failure ('ERR').
	Result *string `json:"@result,omitempty"`
	// The list of products that matched the search criteria.
	Products []Product `json:"products"`
}

ProductSearchResponse A response to a search for products.

func NewProductSearchResponse

func NewProductSearchResponse(products []Product) *ProductSearchResponse

NewProductSearchResponse instantiates a new ProductSearchResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewProductSearchResponseWithDefaults

func NewProductSearchResponseWithDefaults() *ProductSearchResponse

NewProductSearchResponseWithDefaults instantiates a new ProductSearchResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ProductSearchResponse) GetProducts

func (o *ProductSearchResponse) GetProducts() []Product

GetProducts returns the Products field value

func (*ProductSearchResponse) GetProductsOk

func (o *ProductSearchResponse) GetProductsOk() ([]Product, bool)

GetProductsOk returns a tuple with the Products field value and a boolean to check if the value has been set.

func (*ProductSearchResponse) GetResult

func (o *ProductSearchResponse) GetResult() string

GetResult returns the Result field value if set, zero value otherwise.

func (*ProductSearchResponse) GetResultOk

func (o *ProductSearchResponse) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ProductSearchResponse) HasResult

func (o *ProductSearchResponse) HasResult() bool

HasResult returns a boolean if a field has been set.

func (ProductSearchResponse) MarshalJSON

func (o ProductSearchResponse) MarshalJSON() ([]byte, error)

func (*ProductSearchResponse) SetProducts

func (o *ProductSearchResponse) SetProducts(v []Product)

SetProducts sets field value

func (*ProductSearchResponse) SetResult

func (o *ProductSearchResponse) SetResult(v string)

SetResult gets a reference to the given string and assigns it to the Result field.

type ResultIdAccountingResponse

type ResultIdAccountingResponse struct {
	// Designates if the response is a success ('OK') or failure ('ERR').
	Result string `json:"@result"`
	// The ID of created entity.
	Id string `json:"id"`
}

ResultIdAccountingResponse A response to the creation of an entity (eg. invoice, customer).

func NewResultIdAccountingResponse

func NewResultIdAccountingResponse(result string, id string) *ResultIdAccountingResponse

NewResultIdAccountingResponse instantiates a new ResultIdAccountingResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewResultIdAccountingResponseWithDefaults

func NewResultIdAccountingResponseWithDefaults() *ResultIdAccountingResponse

NewResultIdAccountingResponseWithDefaults instantiates a new ResultIdAccountingResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ResultIdAccountingResponse) GetId

GetId returns the Id field value

func (*ResultIdAccountingResponse) GetIdOk

func (o *ResultIdAccountingResponse) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*ResultIdAccountingResponse) GetResult

func (o *ResultIdAccountingResponse) GetResult() string

GetResult returns the Result field value

func (*ResultIdAccountingResponse) GetResultOk

func (o *ResultIdAccountingResponse) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value and a boolean to check if the value has been set.

func (ResultIdAccountingResponse) MarshalJSON

func (o ResultIdAccountingResponse) MarshalJSON() ([]byte, error)

func (*ResultIdAccountingResponse) SetId

func (o *ResultIdAccountingResponse) SetId(v string)

SetId sets field value

func (*ResultIdAccountingResponse) SetResult

func (o *ResultIdAccountingResponse) SetResult(v string)

SetResult sets field value

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type SettingsApiService

type SettingsApiService service

SettingsApiService SettingsApi service

func (*SettingsApiService) SettingsGetByID

func (a *SettingsApiService) SettingsGetByID(ctx context.Context, appId int32) ApiSettingsGetByIDRequest

SettingsGetByID Get URL settings

Returns the URL settings for an accounting app with the specified ID.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param appId The ID of the accounting app. This is the identifier of the application created in your HubSpot developer portal.
@return ApiSettingsGetByIDRequest

func (*SettingsApiService) SettingsGetByIDExecute

Execute executes the request

@return AccountingAppSettings

func (*SettingsApiService) SettingsReplace

func (a *SettingsApiService) SettingsReplace(ctx context.Context, appId int32) ApiSettingsReplaceRequest

SettingsReplace Add/Update URL Settings

Add/Update the URL settings for an accounting app with the specified ID. All URLs must use the `https` protocol.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param appId The ID of the accounting app. This is the identifier of the application created in your HubSpot developer portal.
@return ApiSettingsReplaceRequest

func (*SettingsApiService) SettingsReplaceExecute

func (a *SettingsApiService) SettingsReplaceExecute(r ApiSettingsReplaceRequest) (*http.Response, error)

Execute executes the request

type SyncApiService

type SyncApiService service

SyncApiService SyncApi service

func (*SyncApiService) SyncCreateContact

func (a *SyncApiService) SyncCreateContact(ctx context.Context, appId int32) ApiSyncCreateContactRequest

SyncCreateContact Import contacts

Imports contacts' properties from an external accounting system to HubSpot. Import details, including property mappings, must be configured previously in HubSpot infrastructure.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param appId The ID of the accounting app. This is the identifier of the application created in your HubSpot developer portal.
@return ApiSyncCreateContactRequest

func (*SyncApiService) SyncCreateContactExecute

func (a *SyncApiService) SyncCreateContactExecute(r ApiSyncCreateContactRequest) (*ActionResponse, *http.Response, error)

Execute executes the request

@return ActionResponse

func (*SyncApiService) SyncCreateProduct

func (a *SyncApiService) SyncCreateProduct(ctx context.Context, appId int32) ApiSyncCreateProductRequest

SyncCreateProduct Import products

Imports products' properties from an external accounting system to HubSpot. Import details, including property mappings, must be configured previously in HubSpot infrastructure.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param appId The ID of the accounting app. This is the identifier of the application created in your HubSpot developer portal.
@return ApiSyncCreateProductRequest

func (*SyncApiService) SyncCreateProductExecute

func (a *SyncApiService) SyncCreateProductExecute(r ApiSyncCreateProductRequest) (*ActionResponse, *http.Response, error)

Execute executes the request

@return ActionResponse

type SyncContactsRequest

type SyncContactsRequest struct {
	// The ID of the account in the external accounting system. This is the value that will be passed as `accountId` for all outbound calls for the user from HubSpot to the external accounting system.
	AccountId string `json:"accountId"`
	// A list of contacts to be imported.
	Contacts []UpdatedContact `json:"contacts"`
}

SyncContactsRequest A request to import external accounting contact properties in HubSpot

func NewSyncContactsRequest

func NewSyncContactsRequest(accountId string, contacts []UpdatedContact) *SyncContactsRequest

NewSyncContactsRequest instantiates a new SyncContactsRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSyncContactsRequestWithDefaults

func NewSyncContactsRequestWithDefaults() *SyncContactsRequest

NewSyncContactsRequestWithDefaults instantiates a new SyncContactsRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SyncContactsRequest) GetAccountId

func (o *SyncContactsRequest) GetAccountId() string

GetAccountId returns the AccountId field value

func (*SyncContactsRequest) GetAccountIdOk

func (o *SyncContactsRequest) GetAccountIdOk() (*string, bool)

GetAccountIdOk returns a tuple with the AccountId field value and a boolean to check if the value has been set.

func (*SyncContactsRequest) GetContacts

func (o *SyncContactsRequest) GetContacts() []UpdatedContact

GetContacts returns the Contacts field value

func (*SyncContactsRequest) GetContactsOk

func (o *SyncContactsRequest) GetContactsOk() ([]UpdatedContact, bool)

GetContactsOk returns a tuple with the Contacts field value and a boolean to check if the value has been set.

func (SyncContactsRequest) MarshalJSON

func (o SyncContactsRequest) MarshalJSON() ([]byte, error)

func (*SyncContactsRequest) SetAccountId

func (o *SyncContactsRequest) SetAccountId(v string)

SetAccountId sets field value

func (*SyncContactsRequest) SetContacts

func (o *SyncContactsRequest) SetContacts(v []UpdatedContact)

SetContacts sets field value

type SyncProductsRequest

type SyncProductsRequest struct {
	// The ID of the account in the external accounting system. This is the value that will be passed as `accountId` for all outbound calls for the user from HubSpot to the external accounting system.
	AccountId string `json:"accountId"`
	// A list of products to be imported.
	Products []UpdatedProduct `json:"products"`
}

SyncProductsRequest A request to import external accounting product properties in HubSpot

func NewSyncProductsRequest

func NewSyncProductsRequest(accountId string, products []UpdatedProduct) *SyncProductsRequest

NewSyncProductsRequest instantiates a new SyncProductsRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSyncProductsRequestWithDefaults

func NewSyncProductsRequestWithDefaults() *SyncProductsRequest

NewSyncProductsRequestWithDefaults instantiates a new SyncProductsRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SyncProductsRequest) GetAccountId

func (o *SyncProductsRequest) GetAccountId() string

GetAccountId returns the AccountId field value

func (*SyncProductsRequest) GetAccountIdOk

func (o *SyncProductsRequest) GetAccountIdOk() (*string, bool)

GetAccountIdOk returns a tuple with the AccountId field value and a boolean to check if the value has been set.

func (*SyncProductsRequest) GetProducts

func (o *SyncProductsRequest) GetProducts() []UpdatedProduct

GetProducts returns the Products field value

func (*SyncProductsRequest) GetProductsOk

func (o *SyncProductsRequest) GetProductsOk() ([]UpdatedProduct, bool)

GetProductsOk returns a tuple with the Products field value and a boolean to check if the value has been set.

func (SyncProductsRequest) MarshalJSON

func (o SyncProductsRequest) MarshalJSON() ([]byte, error)

func (*SyncProductsRequest) SetAccountId

func (o *SyncProductsRequest) SetAccountId(v string)

SetAccountId sets field value

func (*SyncProductsRequest) SetProducts

func (o *SyncProductsRequest) SetProducts(v []UpdatedProduct)

SetProducts sets field value

type Tax

type Tax struct {
	// The code/ID of the tax in the external accounting system.
	Code string `json:"code"`
	// The tax percentage.  For example, 8.05 represents a 8.05% tax rate.
	Percentage float32 `json:"percentage"`
	// The display name of the tax.
	Name string `json:"name"`
}

Tax Representation of a tax defined in the external accounting system.

func NewTax

func NewTax(code string, percentage float32, name string) *Tax

NewTax instantiates a new Tax object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTaxWithDefaults

func NewTaxWithDefaults() *Tax

NewTaxWithDefaults instantiates a new Tax object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Tax) GetCode

func (o *Tax) GetCode() string

GetCode returns the Code field value

func (*Tax) GetCodeOk

func (o *Tax) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value and a boolean to check if the value has been set.

func (*Tax) GetName

func (o *Tax) GetName() string

GetName returns the Name field value

func (*Tax) GetNameOk

func (o *Tax) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Tax) GetPercentage

func (o *Tax) GetPercentage() float32

GetPercentage returns the Percentage field value

func (*Tax) GetPercentageOk

func (o *Tax) GetPercentageOk() (*float32, bool)

GetPercentageOk returns a tuple with the Percentage field value and a boolean to check if the value has been set.

func (Tax) MarshalJSON

func (o Tax) MarshalJSON() ([]byte, error)

func (*Tax) SetCode

func (o *Tax) SetCode(v string)

SetCode sets field value

func (*Tax) SetName

func (o *Tax) SetName(v string)

SetName sets field value

func (*Tax) SetPercentage

func (o *Tax) SetPercentage(v float32)

SetPercentage sets field value

type TaxSearchResponse

type TaxSearchResponse struct {
	// Designates if the response is a success ('OK') or failure ('ERR').
	Result *string `json:"@result,omitempty"`
	// The list of taxes that matched the search criteria
	Taxes []Tax `json:"taxes"`
}

TaxSearchResponse A response to a search for taxes.

func NewTaxSearchResponse

func NewTaxSearchResponse(taxes []Tax) *TaxSearchResponse

NewTaxSearchResponse instantiates a new TaxSearchResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTaxSearchResponseWithDefaults

func NewTaxSearchResponseWithDefaults() *TaxSearchResponse

NewTaxSearchResponseWithDefaults instantiates a new TaxSearchResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TaxSearchResponse) GetResult

func (o *TaxSearchResponse) GetResult() string

GetResult returns the Result field value if set, zero value otherwise.

func (*TaxSearchResponse) GetResultOk

func (o *TaxSearchResponse) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TaxSearchResponse) GetTaxes

func (o *TaxSearchResponse) GetTaxes() []Tax

GetTaxes returns the Taxes field value

func (*TaxSearchResponse) GetTaxesOk

func (o *TaxSearchResponse) GetTaxesOk() ([]Tax, bool)

GetTaxesOk returns a tuple with the Taxes field value and a boolean to check if the value has been set.

func (*TaxSearchResponse) HasResult

func (o *TaxSearchResponse) HasResult() bool

HasResult returns a boolean if a field has been set.

func (TaxSearchResponse) MarshalJSON

func (o TaxSearchResponse) MarshalJSON() ([]byte, error)

func (*TaxSearchResponse) SetResult

func (o *TaxSearchResponse) SetResult(v string)

SetResult gets a reference to the given string and assigns it to the Result field.

func (*TaxSearchResponse) SetTaxes

func (o *TaxSearchResponse) SetTaxes(v []Tax)

SetTaxes sets field value

type TaxType

type TaxType struct {
	// The code/ID of the tax in the external accounting system.
	Code string `json:"code"`
	// The display name of the tax.
	Name *string `json:"name,omitempty"`
}

TaxType Represents a tax in the external accounting system.

func NewTaxType

func NewTaxType(code string) *TaxType

NewTaxType instantiates a new TaxType object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTaxTypeWithDefaults

func NewTaxTypeWithDefaults() *TaxType

NewTaxTypeWithDefaults instantiates a new TaxType object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TaxType) GetCode

func (o *TaxType) GetCode() string

GetCode returns the Code field value

func (*TaxType) GetCodeOk

func (o *TaxType) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value and a boolean to check if the value has been set.

func (*TaxType) GetName

func (o *TaxType) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*TaxType) GetNameOk

func (o *TaxType) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TaxType) HasName

func (o *TaxType) HasName() bool

HasName returns a boolean if a field has been set.

func (TaxType) MarshalJSON

func (o TaxType) MarshalJSON() ([]byte, error)

func (*TaxType) SetCode

func (o *TaxType) SetCode(v string)

SetCode sets field value

func (*TaxType) SetName

func (o *TaxType) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

type TermsResponse

type TermsResponse struct {
	// Designates if the response is a success ('OK') or failure ('ERR').
	Result *string `json:"@result,omitempty"`
	// The list of payment terms that matched the search criteria.
	Terms []AccountingExtensionTerm `json:"terms"`
}

TermsResponse A response to a search for payment terms.

func NewTermsResponse

func NewTermsResponse(terms []AccountingExtensionTerm) *TermsResponse

NewTermsResponse instantiates a new TermsResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTermsResponseWithDefaults

func NewTermsResponseWithDefaults() *TermsResponse

NewTermsResponseWithDefaults instantiates a new TermsResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TermsResponse) GetResult

func (o *TermsResponse) GetResult() string

GetResult returns the Result field value if set, zero value otherwise.

func (*TermsResponse) GetResultOk

func (o *TermsResponse) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TermsResponse) GetTerms

func (o *TermsResponse) GetTerms() []AccountingExtensionTerm

GetTerms returns the Terms field value

func (*TermsResponse) GetTermsOk

func (o *TermsResponse) GetTermsOk() ([]AccountingExtensionTerm, bool)

GetTermsOk returns a tuple with the Terms field value and a boolean to check if the value has been set.

func (*TermsResponse) HasResult

func (o *TermsResponse) HasResult() bool

HasResult returns a boolean if a field has been set.

func (TermsResponse) MarshalJSON

func (o TermsResponse) MarshalJSON() ([]byte, error)

func (*TermsResponse) SetResult

func (o *TermsResponse) SetResult(v string)

SetResult gets a reference to the given string and assigns it to the Result field.

func (*TermsResponse) SetTerms

func (o *TermsResponse) SetTerms(v []AccountingExtensionTerm)

SetTerms sets field value

type UnitPrice

type UnitPrice struct {
	// The actual unit price amount.
	Amount *float32 `json:"amount,omitempty"`
	// Indicates if the unit price amount already includes taxes.
	TaxIncluded bool `json:"taxIncluded"`
}

UnitPrice Represents a unit price

func NewUnitPrice

func NewUnitPrice(taxIncluded bool) *UnitPrice

NewUnitPrice instantiates a new UnitPrice object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUnitPriceWithDefaults

func NewUnitPriceWithDefaults() *UnitPrice

NewUnitPriceWithDefaults instantiates a new UnitPrice object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UnitPrice) GetAmount

func (o *UnitPrice) GetAmount() float32

GetAmount returns the Amount field value if set, zero value otherwise.

func (*UnitPrice) GetAmountOk

func (o *UnitPrice) GetAmountOk() (*float32, bool)

GetAmountOk returns a tuple with the Amount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UnitPrice) GetTaxIncluded

func (o *UnitPrice) GetTaxIncluded() bool

GetTaxIncluded returns the TaxIncluded field value

func (*UnitPrice) GetTaxIncludedOk

func (o *UnitPrice) GetTaxIncludedOk() (*bool, bool)

GetTaxIncludedOk returns a tuple with the TaxIncluded field value and a boolean to check if the value has been set.

func (*UnitPrice) HasAmount

func (o *UnitPrice) HasAmount() bool

HasAmount returns a boolean if a field has been set.

func (UnitPrice) MarshalJSON

func (o UnitPrice) MarshalJSON() ([]byte, error)

func (*UnitPrice) SetAmount

func (o *UnitPrice) SetAmount(v float32)

SetAmount gets a reference to the given float32 and assigns it to the Amount field.

func (*UnitPrice) SetTaxIncluded

func (o *UnitPrice) SetTaxIncluded(v bool)

SetTaxIncluded sets field value

type UpdatedContact

type UpdatedContact struct {
	// The operation to be performed.
	SyncAction string `json:"syncAction"`
	// The timestamp (ISO8601 format) when the customer was updated in the external accounting system.
	UpdatedAt time.Time `json:"updatedAt"`
	// The customer's email address
	EmailAddress string `json:"emailAddress"`
	// The ID of the customer in the external accounting system.
	Id string `json:"id"`
	// Designates the type of the customer object.
	CustomerType *string `json:"customerType,omitempty"`
}

UpdatedContact A request to import external accounting contact properties in HubSpot

func NewUpdatedContact

func NewUpdatedContact(syncAction string, updatedAt time.Time, emailAddress string, id string) *UpdatedContact

NewUpdatedContact instantiates a new UpdatedContact object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUpdatedContactWithDefaults

func NewUpdatedContactWithDefaults() *UpdatedContact

NewUpdatedContactWithDefaults instantiates a new UpdatedContact object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UpdatedContact) GetCustomerType

func (o *UpdatedContact) GetCustomerType() string

GetCustomerType returns the CustomerType field value if set, zero value otherwise.

func (*UpdatedContact) GetCustomerTypeOk

func (o *UpdatedContact) GetCustomerTypeOk() (*string, bool)

GetCustomerTypeOk returns a tuple with the CustomerType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdatedContact) GetEmailAddress

func (o *UpdatedContact) GetEmailAddress() string

GetEmailAddress returns the EmailAddress field value

func (*UpdatedContact) GetEmailAddressOk

func (o *UpdatedContact) GetEmailAddressOk() (*string, bool)

GetEmailAddressOk returns a tuple with the EmailAddress field value and a boolean to check if the value has been set.

func (*UpdatedContact) GetId

func (o *UpdatedContact) GetId() string

GetId returns the Id field value

func (*UpdatedContact) GetIdOk

func (o *UpdatedContact) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*UpdatedContact) GetSyncAction

func (o *UpdatedContact) GetSyncAction() string

GetSyncAction returns the SyncAction field value

func (*UpdatedContact) GetSyncActionOk

func (o *UpdatedContact) GetSyncActionOk() (*string, bool)

GetSyncActionOk returns a tuple with the SyncAction field value and a boolean to check if the value has been set.

func (*UpdatedContact) GetUpdatedAt

func (o *UpdatedContact) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value

func (*UpdatedContact) GetUpdatedAtOk

func (o *UpdatedContact) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*UpdatedContact) HasCustomerType

func (o *UpdatedContact) HasCustomerType() bool

HasCustomerType returns a boolean if a field has been set.

func (UpdatedContact) MarshalJSON

func (o UpdatedContact) MarshalJSON() ([]byte, error)

func (*UpdatedContact) SetCustomerType

func (o *UpdatedContact) SetCustomerType(v string)

SetCustomerType gets a reference to the given string and assigns it to the CustomerType field.

func (*UpdatedContact) SetEmailAddress

func (o *UpdatedContact) SetEmailAddress(v string)

SetEmailAddress sets field value

func (*UpdatedContact) SetId

func (o *UpdatedContact) SetId(v string)

SetId sets field value

func (*UpdatedContact) SetSyncAction

func (o *UpdatedContact) SetSyncAction(v string)

SetSyncAction sets field value

func (*UpdatedContact) SetUpdatedAt

func (o *UpdatedContact) SetUpdatedAt(v time.Time)

SetUpdatedAt sets field value

type UpdatedProduct

type UpdatedProduct struct {
	// The operation to be performed.
	SyncAction string `json:"syncAction"`
	// The timestamp (ISO8601 format) when the product was updated in the external accounting system.
	UpdatedAt time.Time `json:"updatedAt"`
	// The price of the product.
	Price float32 `json:"price"`
	// The ISO 4217 currency code that represents the currency of the product price.
	CurrencyCode *string `json:"currencyCode,omitempty"`
	// The ID of the product in the external accounting system.
	Id string `json:"id"`
	// A map of key-value product properties to be imported.
	Properties map[string]string `json:"properties"`
}

UpdatedProduct A request to import external accounting product properties in HubSpot

func NewUpdatedProduct

func NewUpdatedProduct(syncAction string, updatedAt time.Time, price float32, id string, properties map[string]string) *UpdatedProduct

NewUpdatedProduct instantiates a new UpdatedProduct object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUpdatedProductWithDefaults

func NewUpdatedProductWithDefaults() *UpdatedProduct

NewUpdatedProductWithDefaults instantiates a new UpdatedProduct object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UpdatedProduct) GetCurrencyCode

func (o *UpdatedProduct) GetCurrencyCode() string

GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise.

func (*UpdatedProduct) GetCurrencyCodeOk

func (o *UpdatedProduct) GetCurrencyCodeOk() (*string, bool)

GetCurrencyCodeOk returns a tuple with the CurrencyCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UpdatedProduct) GetId

func (o *UpdatedProduct) GetId() string

GetId returns the Id field value

func (*UpdatedProduct) GetIdOk

func (o *UpdatedProduct) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*UpdatedProduct) GetPrice

func (o *UpdatedProduct) GetPrice() float32

GetPrice returns the Price field value

func (*UpdatedProduct) GetPriceOk

func (o *UpdatedProduct) GetPriceOk() (*float32, bool)

GetPriceOk returns a tuple with the Price field value and a boolean to check if the value has been set.

func (*UpdatedProduct) GetProperties

func (o *UpdatedProduct) GetProperties() map[string]string

GetProperties returns the Properties field value

func (*UpdatedProduct) GetPropertiesOk

func (o *UpdatedProduct) GetPropertiesOk() (*map[string]string, bool)

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set.

func (*UpdatedProduct) GetSyncAction

func (o *UpdatedProduct) GetSyncAction() string

GetSyncAction returns the SyncAction field value

func (*UpdatedProduct) GetSyncActionOk

func (o *UpdatedProduct) GetSyncActionOk() (*string, bool)

GetSyncActionOk returns a tuple with the SyncAction field value and a boolean to check if the value has been set.

func (*UpdatedProduct) GetUpdatedAt

func (o *UpdatedProduct) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value

func (*UpdatedProduct) GetUpdatedAtOk

func (o *UpdatedProduct) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*UpdatedProduct) HasCurrencyCode

func (o *UpdatedProduct) HasCurrencyCode() bool

HasCurrencyCode returns a boolean if a field has been set.

func (UpdatedProduct) MarshalJSON

func (o UpdatedProduct) MarshalJSON() ([]byte, error)

func (*UpdatedProduct) SetCurrencyCode

func (o *UpdatedProduct) SetCurrencyCode(v string)

SetCurrencyCode gets a reference to the given string and assigns it to the CurrencyCode field.

func (*UpdatedProduct) SetId

func (o *UpdatedProduct) SetId(v string)

SetId sets field value

func (*UpdatedProduct) SetPrice

func (o *UpdatedProduct) SetPrice(v float32)

SetPrice sets field value

func (*UpdatedProduct) SetProperties

func (o *UpdatedProduct) SetProperties(v map[string]string)

SetProperties sets field value

func (*UpdatedProduct) SetSyncAction

func (o *UpdatedProduct) SetSyncAction(v string)

SetSyncAction sets field value

func (*UpdatedProduct) SetUpdatedAt

func (o *UpdatedProduct) SetUpdatedAt(v time.Time)

SetUpdatedAt sets field value

type UserAccountsApiService

type UserAccountsApiService service

UserAccountsApiService UserAccountsApi service

func (*UserAccountsApiService) UserAccountsArchive

func (a *UserAccountsApiService) UserAccountsArchive(ctx context.Context, accountId string) ApiUserAccountsArchiveRequest

UserAccountsArchive Delete user account

Deletes a user account from HubSpot, meaning that HubSpot will no longer send requests to the external accounting system for this user.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param accountId The ID of the user account to delete.
@return ApiUserAccountsArchiveRequest

func (*UserAccountsApiService) UserAccountsArchiveExecute

func (a *UserAccountsApiService) UserAccountsArchiveExecute(r ApiUserAccountsArchiveRequest) (*http.Response, error)

Execute executes the request

func (*UserAccountsApiService) UserAccountsReplace

UserAccountsReplace Create a user account

Creates an account which contains the information about the account in the external accounting system. This *must* be called after a user connects their HubSpot account to the external accounting system, as there is no other way for HubSpot to obtain the external account details.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUserAccountsReplaceRequest

func (*UserAccountsApiService) UserAccountsReplaceExecute

func (a *UserAccountsApiService) UserAccountsReplaceExecute(r ApiUserAccountsReplaceRequest) (*http.Response, error)

Execute executes the request

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL