Versions in this module Expand all Collapse all v0 v0.1.0 Oct 22, 2025 v0.0.3 Oct 16, 2025 Changes in this version + const ServerProd + const ServerSandbox + var ServerList = map[string]string + func Bool(b bool) *bool + func Float32(f float32) *float32 + func Float64(f float64) *float64 + func Int(i int) *int + func Int64(i int64) *int64 + func Pointer[T any](v T) *T + func String(s string) *string + type Accounts struct + func (s *Accounts) Get(ctx context.Context, opts ...operations.Option) (*operations.GetAccountDetailsResponse, error) + func (s *Accounts) GetSubaccount(ctx context.Context, userLogin string, opts ...operations.Option) (*operations.GetSubaccountDetailsResponse, error) + type AddressBook struct + Contacts *Contacts + Groups *Groups + type ByExtID struct + func (s *ByExtID) AddToGroup(ctx context.Context, extID string, groupID int64, opts ...operations.Option) (*operations.AddContactByExtIDToGroupResponse, error) + func (s *ByExtID) Delete(ctx context.Context, extID string, opts ...operations.Option) (*operations.DeleteContactByExternalIDResponse, error) + func (s *ByExtID) Get(ctx context.Context, extID string, opts ...operations.Option) (*operations.GetContactByExternalIDResponse, error) + func (s *ByExtID) RemoveFromGroup(ctx context.Context, extID string, groupID int64, opts ...operations.Option) (*operations.RemoveContactByExtIDToGroupResponse, error) + func (s *ByExtID) Update(ctx context.Context, extID string, contact components.Contact, ...) (*operations.UpdateContactByExternalIDResponse, error) + type Client struct + Accounts *Accounts + AddressBook *AddressBook + Common *Common + Metadata *Metadata + SDKVersion string + Senders *Senders + Shipments *Shipments + func New(opts ...SDKOption) *Client + type Common struct + func (s *Common) Ping(ctx context.Context, opts ...operations.Option) (*operations.PingResponse, error) + type Contacts struct + ByExtID *ByExtID + func (s *Contacts) Add(ctx context.Context, request components.Contact, opts ...operations.Option) (*operations.AddContactResponse, error) + func (s *Contacts) AddToGroup(ctx context.Context, id int64, groupID int64, opts ...operations.Option) (*operations.AddContactToGroupResponse, error) + func (s *Contacts) Delete(ctx context.Context, id int64, opts ...operations.Option) (*operations.DeleteContactResponse, error) + func (s *Contacts) Get(ctx context.Context, id int64, opts ...operations.Option) (*operations.GetContactByIDResponse, error) + func (s *Contacts) List(ctx context.Context, page *int64, limit *int64, opts ...operations.Option) (*operations.ListContactsResponse, error) + func (s *Contacts) RemoveFromGroup(ctx context.Context, id int64, groupID int64, opts ...operations.Option) (*operations.RemoveContactFromGroupResponse, error) + func (s *Contacts) Update(ctx context.Context, id int64, contact components.Contact, ...) (*operations.UpdateContactResponse, error) + type Groups struct + func (s *Groups) Add(ctx context.Context, request components.Group, opts ...operations.Option) (*operations.AddGroupResponse, error) + func (s *Groups) Delete(ctx context.Context, id int64, contacts *operations.ContactHandling, ...) (*operations.DeleteGroupResponse, error) + func (s *Groups) Get(ctx context.Context, id int64, opts ...operations.Option) (*operations.GetGroupByIDResponse, error) + func (s *Groups) List(ctx context.Context, opts ...operations.Option) (*operations.ListGroupsResponse, error) + func (s *Groups) Update(ctx context.Context, id int64, group components.Group, ...) (*operations.UpdateGroupResponse, error) + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type Metadata struct + func (s *Metadata) GetPredefinedConfigs(ctx context.Context, opts ...operations.Option) (*operations.ListPredefinedConfigsResponse, error) + func (s *Metadata) List(ctx context.Context, opts ...operations.Option) (*operations.ListMetadataResponse, error) + type SDKOption func(*Client) + func WithClient(client HTTPClient) SDKOption + func WithRetryConfig(retryConfig retry.Config) SDKOption + func WithSecurity(bearer string) SDKOption + func WithSecuritySource(security func(context.Context) (components.Security, error)) SDKOption + func WithServer(server string) SDKOption + func WithServerURL(serverURL string) SDKOption + func WithTemplatedServerURL(serverURL string, params map[string]string) SDKOption + func WithTimeout(timeout time.Duration) SDKOption + type Senders struct + func (s *Senders) Add(ctx context.Context, request components.Sender, opts ...operations.Option) (*operations.AddSenderResponse, error) + func (s *Senders) Delete(ctx context.Context, id int64, opts ...operations.Option) (*operations.DeleteSenderResponse, error) + func (s *Senders) List(ctx context.Context, opts ...operations.Option) (*operations.ListSendersResponse, error) + func (s *Senders) Verify(ctx context.Context, id int64, requestBody operations.VerifySenderRequestBody, ...) (*operations.VerifySenderResponse, error) + type Shipments struct + func (s *Shipments) Cancel(ctx context.Context, ids []string, opts ...operations.Option) (*operations.CancelShipmentResponse, error) + func (s *Shipments) Dispatch(ctx context.Context, request components.Shipment, opts ...operations.Option) (*operations.ShipmentDispatchResponse, error) + func (s *Shipments) Documents(ctx context.Context, id string, type_ operations.DocumentType, ...) (*operations.GetDocumentsResponse, error) + func (s *Shipments) Price(ctx context.Context, request components.Shipment, opts ...operations.Option) (*operations.ShipmentPriceResponse, error) + func (s *Shipments) Status(ctx context.Context, ids []string, opts ...operations.Option) (*operations.GetStatusResponse, error)