Categorygithub.com/affixapi/go-sdk
modulepackage
1.1.84
Repository: https://github.com/affixapi/go-sdk.git
Documentation: pkg.go.dev

# README

Go API client for openapi

The affixapi.com API documentation.

Introduction

Affix API is an OAuth 2.1 application that allows developers to access customer data, without developers needing to manage or maintain integrations; or collect login credentials or API keys from users for these third party systems.

OAuth 2.1

Affix API follows the OAuth 2.1 spec.

As an OAuth application, Affix API handles not only both the collection of sensitive user credentials or API keys, but also builds and maintains the integrations with the providers, so you don't have to.

How to obtain an access token

in order to get started, you must:

  • register a client_id
  • direct your user to the sign in flow (https://connect.affixapi.com with the appropriate query parameters)
  • capture authorization_code we will send to your redirect URI after the sign in flow is complete and exchange that authorization_code for a Bearer token

Sandbox keys (xhr mode)

dev

eyJhbGciOiJFUzI1NiIsImtpZCI6Ims5RmxwSFR1YklmZWNsUU5QRVZzeFcxazFZZ0Zfbk1BWllOSGVuOFQxdGciLCJ0eXAiOiJKV1MifQ.eyJwcm92aWRlciI6InNhbmRib3giLCJzY29wZXMiOlsiLzIwMjMtMDMtMDEveGhyL2NvbXBhbnkiLCIvMjAyMy0wMy0wMS94aHIvZW1wbG95ZWUiLCIvMjAyMy0wMy0wMS94aHIvZW1wbG95ZWVzIiwiLzIwMjMtMDMtMDEveGhyL2dyb3VwcyIsIi8yMDIzLTAzLTAxL3hoci9pZGVudGl0eSIsIi8yMDIzLTAzLTAxL3hoci9wYXlydW5zIiwiLzIwMjMtMDMtMDEveGhyL3BheXJ1bnMvOnBheXJ1bl9pZCIsIi8yMDIzLTAzLTAxL3hoci90aW1lLW9mZi1iYWxhbmNlcyIsIi8yMDIzLTAzLTAxL3hoci90aW1lLW9mZi1lbnRyaWVzIiwiLzIwMjMtMDMtMDEveGhyL3RpbWVzaGVldHMiLCIvMjAyMy0wMy0wMS94aHIvd29yay1sb2NhdGlvbnMiXSwidG9rZW4iOiIzODIzNTNlMi05N2ZiLTRmMWEtOTYxYy0zZDI5OTViNzYxMTUiLCJpYXQiOjE3MTE4MTA3MTQ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WcZD6z50I3Wsk2rAd8GDWXn4vlg

employees endpoint sample:

curl --fail \\
  -X GET \\
  -H 'Authorization: Bearer eyJhbGciOiJFUzI1NiIsImtpZCI6Ims5RmxwSFR1YklmZWNsUU5QRVZzeFcxazFZZ0Zfbk1BWllOSGVuOFQxdGciLCJ0eXAiOiJKV1MifQ.eyJwcm92aWRlciI6InNhbmRib3giLCJzY29wZXMiOlsiLzIwMjMtMDMtMDEveGhyL2NvbXBhbnkiLCIvMjAyMy0wMy0wMS94aHIvZW1wbG95ZWUiLCIvMjAyMy0wMy0wMS94aHIvZW1wbG95ZWVzIiwiLzIwMjMtMDMtMDEveGhyL2dyb3VwcyIsIi8yMDIzLTAzLTAxL3hoci9pZGVudGl0eSIsIi8yMDIzLTAzLTAxL3hoci9wYXlydW5zIiwiLzIwMjMtMDMtMDEveGhyL3BheXJ1bnMvOnBheXJ1bl9pZCIsIi8yMDIzLTAzLTAxL3hoci90aW1lLW9mZi1iYWxhbmNlcyIsIi8yMDIzLTAzLTAxL3hoci90aW1lLW9mZi1lbnRyaWVzIiwiLzIwMjMtMDMtMDEveGhyL3RpbWVzaGVldHMiLCIvMjAyMy0wMy0wMS94aHIvd29yay1sb2NhdGlvbnMiXSwidG9rZW4iOiIzYjg4MDc2NC1kMGFmLTQ5ZDAtOGM5OS00YzIwYjE2MTJjOTMiLCJpYXQiOjE3MTE4MTA4NTgsImlzcyI6InB1YmxpY2FwaS1pbnRlcm1lZGlhdGUucHJvZC5lbmdpbmVlcmluZy5hZmZpeGFwaS5jb20iLCJzdWIiOiJ4aHIiLCJhdWQiOiIwOEJCMDgxRS1EOUFCNEQxNC04REY5OTIzMy02NjYxNUNFOSJ9.n3pJmmfegU21Tko_TyUyCHi4ITvfd75T8NFFTHmf1r8AI8yCUYTWdfNjyZZWcZD6z50I3Wsk2rAd8GDWXn4vlg' \\
  'https://api.affixapi.com/2023-03-01/xhr/employees'

Compression

We support brotli, gzip, and deflate compression algorithms.

To enable, pass the Accept-Encoding header with one or all of the values: br, gzip, deflate, or identity (no compression)

In the response, you will receive the Content-Encoding response header indicating the compression algorithm used in the data payload to enable you to decompress the result. If the Accept-Encoding: identity header was passed, no Content-Encoding response header is sent back, as no compression algorithm was used.

Webhooks

An exciting feature for HR/Payroll modes are webhooks.

If enabled, your webhook_uri is set on your client_id for the respective environment: dev | prod

Webhooks are configured to make live requests to the underlying integration 1x/hr, and if a difference is detected since the last request, we will send a request to your webhook_uri with this shape:

{

  added: <api.v20230301.Employees>[
    <api.v20230301.Employee>{
      ...,
      date_of_birth: '2010-08-06',
      display_full_name: 'Daija Rogahn',
      employee_number: '57993',
      employment_status: 'pending',
      employment_type: 'other',
      employments: [
        {
          currency: 'eur',
          effective_date: '2022-02-25',
          employment_type: 'other',
          job_title: 'Dynamic Implementation Manager',
          pay_frequency: 'semimonthly',
          pay_period: 'YEAR',
          pay_rate: 96000,
        },
      ],
      first_name: 'Daija',
      ...
    }
  ],
  removed: [],
  updated: [
    <api.v20230301.Employee>{
      ...,
      date_of_birth: '2009-11-09',
      display_full_name: 'Lourdes Stiedemann',
      employee_number: '63189',
      employment_status: 'leave',
      employment_type: 'full_time',
      employments: [
        {
          currency: 'gbp',
          effective_date: '2023-01-16',
          employment_type: 'full_time',
          job_title: 'Forward Brand Planner',
          pay_frequency: 'semimonthly',
          pay_period: 'YEAR',
          pay_rate: 86000,
        },
      ],
      first_name: 'Lourdes',
    }
  ]
}

the following headers will be sent with webhook requests:

x-affix-api-signature: ab8474e609db95d5df3adc39ea3add7a7544bd215c5c520a30a650ae93a2fba7

x-affix-api-origin:  webhooks-employees-webhook

user-agent:  affixapi.com

Before trusting the payload, you should sign the payload and verify the signature matches the signature sent by the affixapi.com service.

This secures that the data sent to your webhook_uri is from the affixapi.com server.

The signature is created by combining the signing secret (your client_secret) with the body of the request sent using a standard HMAC-SHA256 keyed hash.

The signature can be created via:

  • create an HMAC with your client_secret
  • update the HMAC with the payload
  • get the hex digest -> this is the signature

Sample typescript code that follows this recipe:

import { createHmac } from 'crypto';

export const computeSignature = ({
  str,
  signingSecret,
}: {
  signingSecret: string;
  str: string;
}): string => {
  const hmac = createHmac('sha256', signingSecret);
  hmac.update(str);
  const signature = hmac.digest('hex');

  return signature;
};

While verifying the Affix API signature header should be your primary method of confirming validity, you can also whitelist our outbound webhook static IP addresses.

dev:
  - 52.210.169.82
  - 52.210.38.77
  - 3.248.135.204

prod:
  - 52.51.160.102
  - 54.220.83.244
  - 3.254.213.171

Rate limits

Open endpoints (not gated by an API key) (applied at endpoint level):

  • 15 requests every 1 minute (by IP address)
  • 25 requests every 5 minutes (by IP address)

Gated endpoints (require an API key) (applied at endpoint level):

  • 40 requests every 1 minute (by IP address)
  • 40 requests every 5 minutes (by client_id)

Things to keep in mind:

  • Open endpoints (not gated by an API key) will likely be called by your users, not you, so rate limits generally would not apply to you.
  • As a developer, rate limits are applied at the endpoint granularity.
    • For example, say the rate limits below are 10 requests per minute by ip. from that same ip, within 1 minute, you get:
      • 10 requests per minute on /orders,
      • another 10 requests per minute on /items,
      • and another 10 requests per minute on /identity,
      • for a total of 30 requests per minute.

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: 2023-03-01
  • 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 sw "./openapi"

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(), sw.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(), sw.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 identifield 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(), sw.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
Class20230301ApiXhrCompanies20230301Get /2023-03-01/xhr/companyCompany
Class20230301ApiXhrEmployees20230301Get /2023-03-01/xhr/employeesEmployees
Class20230301ApiXhrGroups20230301Get /2023-03-01/xhr/groupsGroups
Class20230301ApiXhrIdentity20230301Get /2023-03-01/xhr/identityIdentity
Class20230301ApiXhrPayruns20230301Get /2023-03-01/xhr/payrunsPayruns
Class20230301ApiXhrPayslips20230301Get /2023-03-01/xhr/payruns/{payrun_id}Payslips
Class20230301ApiXhrTimeOffBalances20230301Get /2023-03-01/xhr/time-off-balancesTime off balances
Class20230301ApiXhrTimeOffEntries20230301Get /2023-03-01/xhr/time-off-entriesTime off entries
Class20230301ApiXhrTimesheets20230301Get /2023-03-01/xhr/timesheetsTimesheets
Class20230301ApiXhrWorkLocations20230301Get /2023-03-01/xhr/work-locationsWork locations
CoreApiProvidersGet /providersProviders
ManagementApiClientGet /2023-03-01/management/clientClient
ManagementApiDisconnectPost /2023-03-01/management/disconnectDisconnect token
ManagementApiIntrospectGet /2023-03-01/management/introspectInspect token
ManagementApiTokenPost /2023-03-01/management/tokenCreate token
ManagementApiTokensGet /2023-03-01/management/tokensTokens
ManagementApiUpdateClientPost /2023-03-01/management/clientUpdate client
XHRVerticallyIntegratedApiXhrCompanies20230301Get /2023-03-01/xhr/companyCompany
XHRVerticallyIntegratedApiXhrEmployees20230301Get /2023-03-01/xhr/employeesEmployees
XHRVerticallyIntegratedApiXhrGroups20230301Get /2023-03-01/xhr/groupsGroups
XHRVerticallyIntegratedApiXhrIdentity20230301Get /2023-03-01/xhr/identityIdentity
XHRVerticallyIntegratedApiXhrPayruns20230301Get /2023-03-01/xhr/payrunsPayruns
XHRVerticallyIntegratedApiXhrPayslips20230301Get /2023-03-01/xhr/payruns/{payrun_id}Payslips
XHRVerticallyIntegratedApiXhrTimeOffBalances20230301Get /2023-03-01/xhr/time-off-balancesTime off balances
XHRVerticallyIntegratedApiXhrTimeOffEntries20230301Get /2023-03-01/xhr/time-off-entriesTime off entries
XHRVerticallyIntegratedApiXhrTimesheets20230301Get /2023-03-01/xhr/timesheetsTimesheets
XHRVerticallyIntegratedApiXhrWorkLocations20230301Get /2023-03-01/xhr/work-locationsWork locations

Documentation For Models

Documentation For Authorization

access-token

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

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

basic

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: Authorization 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

[email protected]

# Functions

CacheExpires helper function to determine remaining time before repeating a request.
NewAddressNoNonNullRequest instantiates a new AddressNoNonNullRequest 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.
NewAddressNoNonNullRequestWithDefaults instantiates a new AddressNoNonNullRequest 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.
NewAddressResponse instantiates a new AddressResponse 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.
NewAddressResponseWithDefaults instantiates a new AddressResponse 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.
NewAPIClient creates a new API client.
NewAPIResponse returns a new APIResponse object.
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
NewClientRequest instantiates a new ClientRequest 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.
NewClientRequestWithDefaults instantiates a new ClientRequest 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.
NewClientResponse instantiates a new ClientResponse 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.
NewClientResponseWithDefaults instantiates a new ClientResponse 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.
NewCompanyResponse instantiates a new CompanyResponse 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.
NewCompanyResponseWithDefaults instantiates a new CompanyResponse 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.
NewCompensationHistoryNoNonNullRequest instantiates a new CompensationHistoryNoNonNullRequest 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.
NewCompensationHistoryNoNonNullRequestWithDefaults instantiates a new CompensationHistoryNoNonNullRequest 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.
NewCompensationHistoryResponse instantiates a new CompensationHistoryResponse 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.
NewCompensationHistoryResponseWithDefaults instantiates a new CompensationHistoryResponse 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.
NewConfiguration returns a new Configuration object.
NewCreateEmployeeRequest instantiates a new CreateEmployeeRequest 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.
NewCreateEmployeeRequestBankAccount instantiates a new CreateEmployeeRequestBankAccount 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.
NewCreateEmployeeRequestBankAccountWithDefaults instantiates a new CreateEmployeeRequestBankAccount 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.
NewCreateEmployeeRequestDependents instantiates a new CreateEmployeeRequestDependents 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.
NewCreateEmployeeRequestDependentsWithDefaults instantiates a new CreateEmployeeRequestDependents 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.
NewCreateEmployeeRequestEmergencyContacts instantiates a new CreateEmployeeRequestEmergencyContacts 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.
NewCreateEmployeeRequestEmergencyContactsWithDefaults instantiates a new CreateEmployeeRequestEmergencyContacts 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.
NewCreateEmployeeRequestManager instantiates a new CreateEmployeeRequestManager 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.
NewCreateEmployeeRequestManagerWithDefaults instantiates a new CreateEmployeeRequestManager 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.
NewCreateEmployeeRequestWithDefaults instantiates a new CreateEmployeeRequest 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.
NewCurrencyNotNullRequestFromValue returns a pointer to a valid CurrencyNotNullRequest for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewCurrencyNotNullResponseFromValue returns a pointer to a valid CurrencyNotNullResponse for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewCurrencyResponseFromValue returns a pointer to a valid CurrencyResponse for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewDisconnectResponse instantiates a new DisconnectResponse 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.
NewDisconnectResponseWithDefaults instantiates a new DisconnectResponse 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.
NewEmployeeResponse instantiates a new EmployeeResponse 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.
NewEmployeeResponseManager instantiates a new EmployeeResponseManager 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.
NewEmployeeResponseManagerWithDefaults instantiates a new EmployeeResponseManager 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.
NewEmployeeResponseWithDefaults instantiates a new EmployeeResponse 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.
NewEmploymentHistoryNoNonNullRequest instantiates a new EmploymentHistoryNoNonNullRequest 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.
NewEmploymentHistoryNoNonNullRequestWithDefaults instantiates a new EmploymentHistoryNoNonNullRequest 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.
NewEmploymentHistoryResponse instantiates a new EmploymentHistoryResponse 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.
NewEmploymentHistoryResponseWithDefaults instantiates a new EmploymentHistoryResponse 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.
NewEmploymentStatusNotNullNotNullableFromValue returns a pointer to a valid EmploymentStatusNotNullNotNullable for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewEmploymentStatusNotNullRequestFromValue returns a pointer to a valid EmploymentStatusNotNullRequest for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewEmploymentStatusResponseFromValue returns a pointer to a valid EmploymentStatusResponse for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewGroupNoNullEnumRequest instantiates a new GroupNoNullEnumRequest 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.
NewGroupNoNullEnumRequestWithDefaults instantiates a new GroupNoNullEnumRequest 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.
NewGroupResponse instantiates a new GroupResponse 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.
NewGroupResponseWithDefaults instantiates a new GroupResponse 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.
NewIdAndMessageResponse instantiates a new IdAndMessageResponse 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.
NewIdAndMessageResponseWithDefaults instantiates a new IdAndMessageResponse 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.
NewIdentityResponse instantiates a new IdentityResponse 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.
NewIdentityResponseWithDefaults instantiates a new IdentityResponse 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.
NewInlineResponse400 instantiates a new InlineResponse400 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.
NewInlineResponse400WithDefaults instantiates a new InlineResponse400 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.
NewInlineResponse401 instantiates a new InlineResponse401 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.
NewInlineResponse401WithDefaults instantiates a new InlineResponse401 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.
NewInlineResponse409 instantiates a new InlineResponse409 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.
NewInlineResponse409WithDefaults instantiates a new InlineResponse409 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.
NewIntrospectResponse instantiates a new IntrospectResponse 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.
NewIntrospectResponseWithDefaults instantiates a new IntrospectResponse 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.
NewLocationNoNonNullRequest instantiates a new LocationNoNonNullRequest 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.
NewLocationNoNonNullRequestWithDefaults instantiates a new LocationNoNonNullRequest 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.
NewLocationResponse instantiates a new LocationResponse 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.
NewLocationResponseWithDefaults instantiates a new LocationResponse 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.
NewMessageResponse instantiates a new MessageResponse 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.
NewMessageResponseWithDefaults instantiates a new MessageResponse 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.
NewModeRequestFromValue returns a pointer to a valid ModeRequest for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewModeResponseFromValue returns a pointer to a valid ModeResponse for the value passed as argument, or an error if the value passed is not allowed by the enum.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewPayrunResponse instantiates a new PayrunResponse 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.
NewPayrunResponseWithDefaults instantiates a new PayrunResponse 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.
NewPayrunTypeResponseFromValue returns a pointer to a valid PayrunTypeResponse for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewPayslipResponse instantiates a new PayslipResponse 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.
NewPayslipResponseContributions instantiates a new PayslipResponseContributions 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.
NewPayslipResponseContributionsWithDefaults instantiates a new PayslipResponseContributions 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.
NewPayslipResponseDeductions instantiates a new PayslipResponseDeductions 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.
NewPayslipResponseDeductionsWithDefaults instantiates a new PayslipResponseDeductions 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.
NewPayslipResponseEarnings instantiates a new PayslipResponseEarnings 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.
NewPayslipResponseEarningsWithDefaults instantiates a new PayslipResponseEarnings 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.
NewPayslipResponseReimbursements instantiates a new PayslipResponseReimbursements 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.
NewPayslipResponseReimbursementsWithDefaults instantiates a new PayslipResponseReimbursements 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.
NewPayslipResponseTaxes instantiates a new PayslipResponseTaxes 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.
NewPayslipResponseTaxesWithDefaults instantiates a new PayslipResponseTaxes 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.
NewPayslipResponseWithDefaults instantiates a new PayslipResponse 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.
NewPolicyTypeResponseFromValue returns a pointer to a valid PolicyTypeResponse for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewProviderRequestFromValue returns a pointer to a valid ProviderRequest for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewProviderResponseFromValue returns a pointer to a valid ProviderResponse for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewScopesRequestFromValue returns a pointer to a valid ScopesRequest for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewScopesResponseFromValue returns a pointer to a valid ScopesResponse for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewTimeOffBalanceResponse instantiates a new TimeOffBalanceResponse 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.
NewTimeOffBalanceResponseWithDefaults instantiates a new TimeOffBalanceResponse 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.
NewTimeOffEntryResponse instantiates a new TimeOffEntryResponse 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.
NewTimeOffEntryResponseWithDefaults instantiates a new TimeOffEntryResponse 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.
NewTimesheetResponse instantiates a new TimesheetResponse 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.
NewTimesheetResponseWithDefaults instantiates a new TimesheetResponse 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.
NewTokenRequest instantiates a new TokenRequest 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.
NewTokenRequestWithDefaults instantiates a new TokenRequest 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.
NewTokenResponse instantiates a new TokenResponse 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.
NewTokenResponseWithDefaults instantiates a new TokenResponse 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.
PtrBool is a helper routine that returns a pointer to given boolean value.
PtrFloat32 is a helper routine that returns a pointer to given float value.
PtrFloat64 is a helper routine that returns a pointer to given float value.
PtrInt is a helper routine that returns a pointer to given integer value.
PtrInt32 is a helper routine that returns a pointer to given integer value.
PtrInt64 is a helper routine that returns a pointer to given integer value.
PtrString is a helper routine that returns a pointer to given string value.
PtrTime is helper routine that returns a pointer to given Time value.

# Constants

List of EmploymentStatusNotNullNotNullable.
List of employment-status-not-nullRequest.
List of employment-statusResponse.
List of ProviderRequest.
List of ProviderResponse.
List of policy-typeResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of payrun-typeResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of currency-not-nullRequest.
List of currency-not-nullResponse.
List of CurrencyResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of currency-not-nullRequest.
List of currency-not-nullResponse.
List of CurrencyResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of policy-typeResponse.
List of ProviderRequest.
List of ProviderResponse.
List of EmploymentStatusNotNullNotNullable.
List of employment-status-not-nullRequest.
List of employment-statusResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of policy-typeResponse.
List of ProviderRequest.
List of ProviderResponse.
List of EmploymentStatusNotNullNotNullable.
List of employment-status-not-nullRequest.
List of employment-statusResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of CurrencyResponse.
List of employment-statusResponse.
List of payrun-typeResponse.
List of policy-typeResponse.
List of payrun-typeResponse.
List of ModeRequest.
List of ModeResponse.
List of ScopesRequest.
List of ScopesResponse.
List of ScopesRequest.
List of ScopesResponse.
List of ScopesRequest.
List of ScopesResponse.
List of ScopesRequest.
List of ScopesResponse.
List of ScopesRequest.
List of ScopesResponse.
List of ScopesRequest.
List of ScopesResponse.
List of ScopesRequest.
List of ScopesResponse.
List of ScopesRequest.
List of ScopesResponse.
List of ScopesRequest.
List of ScopesResponse.
List of payrun-typeResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of EmploymentStatusNotNullNotNullable.
List of employment-status-not-nullRequest.
List of employment-statusResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of policy-typeResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of payrun-typeResponse.
List of ProviderRequest.
List of ProviderResponse.
List of payrun-typeResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of policy-typeResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ProviderRequest.
List of ProviderResponse.
List of currency-not-nullRequest.
List of currency-not-nullResponse.
List of CurrencyResponse.
List of policy-typeResponse.
List of policy-typeResponse.
List of ProviderRequest.
List of ProviderResponse.
List of ModeRequest.
List of ModeResponse.
List of ScopesRequest.
List of ScopesResponse.
List of ScopesRequest.
List of ScopesResponse.
List of ScopesRequest.
List of ScopesResponse.
List of ScopesRequest.
List of ScopesResponse.
List of ScopesRequest.
List of ScopesResponse.
List of ScopesRequest.
List of ScopesResponse.
List of ScopesRequest.
List of ScopesResponse.
List of ScopesRequest.
List of ScopesResponse.
List of ScopesRequest.
List of ScopesResponse.
List of ScopesRequest.
List of ScopesResponse.
List of ScopesRequest.
List of ScopesResponse.
List of ProviderRequest.
List of ProviderResponse.

# Variables

ContextAccessToken takes a string oauth2 access token as authentication for the request.
ContextAPIKeys takes a string apikey as authentication for the request.
ContextBasicAuth takes BasicAuth as authentication for the request.
ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
ContextOperationServerIndices uses a server configuration from the index mapping.
ContextOperationServerVariables overrides a server configuration variables using operation specific values.
ContextServerIndex uses a server configuration from the index.
ContextServerVariables overrides a server configuration variables.

# Structs

AddressNoNonNullRequest struct for AddressNoNonNullRequest.
AddressResponse struct for AddressResponse.
APIClient manages communication with the Affix API API v2023-03-01 In most cases there should be only one, shared, APIClient.
No description provided by the author
No description provided by the author
No description provided by the author
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
No description provided by the author
APIResponse stores the API response returned by the server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
ClientRequest struct for ClientRequest.
ClientResponse struct for ClientResponse.
CompanyResponse struct for CompanyResponse.
CompensationHistoryNoNonNullRequest struct for CompensationHistoryNoNonNullRequest.
CompensationHistoryResponse struct for CompensationHistoryResponse.
Configuration stores the configuration of the API client.
CreateEmployeeRequest struct for CreateEmployeeRequest.
CreateEmployeeRequestBankAccount struct for CreateEmployeeRequestBankAccount.
CreateEmployeeRequestDependents struct for CreateEmployeeRequestDependents.
CreateEmployeeRequestEmergencyContacts struct for CreateEmployeeRequestEmergencyContacts.
CreateEmployeeRequestManager struct for CreateEmployeeRequestManager.
DisconnectResponse struct for DisconnectResponse.
EmployeeResponse struct for EmployeeResponse.
EmployeeResponseManager struct for EmployeeResponseManager.
EmploymentHistoryNoNonNullRequest struct for EmploymentHistoryNoNonNullRequest.
EmploymentHistoryResponse struct for EmploymentHistoryResponse.
GenericOpenAPIError Provides access to the body, error and model on returned errors.
GroupNoNullEnumRequest struct for GroupNoNullEnumRequest.
GroupResponse struct for GroupResponse.
IdAndMessageResponse struct for IdAndMessageResponse.
IdentityResponse struct for IdentityResponse.
InlineResponse400 struct for InlineResponse400.
InlineResponse401 struct for InlineResponse401.
InlineResponse409 struct for InlineResponse409.
IntrospectResponse struct for IntrospectResponse.
LocationNoNonNullRequest struct for LocationNoNonNullRequest.
LocationResponse struct for LocationResponse.
MessageResponse struct for MessageResponse.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PayrunResponse struct for PayrunResponse.
PayslipResponse struct for PayslipResponse.
PayslipResponseContributions struct for PayslipResponseContributions.
PayslipResponseDeductions struct for PayslipResponseDeductions.
PayslipResponseEarnings The breakdown of gross pay.
PayslipResponseReimbursements struct for PayslipResponseReimbursements.
PayslipResponseTaxes struct for PayslipResponseTaxes.
ServerConfiguration stores the information about a server.
ServerVariable stores the information about a server variable.
TimeOffBalanceResponse struct for TimeOffBalanceResponse.
TimeOffEntryResponse struct for TimeOffEntryResponse.
TimesheetResponse struct for TimesheetResponse.
TokenRequest struct for TokenRequest.
TokenResponse struct for TokenResponse.

# Type aliases

Class20230301ApiService Class20230301Api service.
CoreApiService CoreApi service.
CurrencyNotNullRequest the model 'CurrencyNotNullRequest'.
CurrencyNotNullResponse the model 'CurrencyNotNullResponse'.
CurrencyResponse the model 'CurrencyResponse'.
EmploymentStatusNotNullNotNullable the model 'EmploymentStatusNotNullNotNullable'.
EmploymentStatusNotNullRequest the model 'EmploymentStatusNotNullRequest'.
EmploymentStatusResponse the model 'EmploymentStatusResponse'.
ManagementApiService ManagementApi service.
ModeRequest the model 'ModeRequest'.
ModeResponse the model 'ModeResponse'.
PayrunTypeResponse the model 'PayrunTypeResponse'.
PolicyTypeResponse the model 'PolicyTypeResponse'.
ProviderRequest the model 'ProviderRequest'.
ProviderResponse the model 'ProviderResponse'.
ScopesRequest the model 'ScopesRequest'.
ScopesResponse the model 'ScopesResponse'.
ServerConfigurations stores multiple ServerConfiguration items.
XHRVerticallyIntegratedApiService XHRVerticallyIntegratedApi service.