package wallet // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "github.com/go-openapi/runtime" strfmt "github.com/go-openapi/strfmt" ) // New creates a new wallet API client. func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client { return &Client{transport: transport, formats: formats} } /* Client for wallet API */ type Client struct { transport runtime.ClientTransport formats strfmt.Registry } /* GetCharactersCharacterIDWallets lists wallets and balances List your wallets and their balances. Characters typically have only one wallet, with wallet_id 1000 being the master wallet. --- Alternate route: `/v1/characters/{character_id}/wallets/` Alternate route: `/legacy/characters/{character_id}/wallets/` Alternate route: `/dev/characters/{character_id}/wallets/` --- This route is cached for up to 120 seconds */ func (a *Client) GetCharactersCharacterIDWallets(params *GetCharactersCharacterIDWalletsParams, authInfo runtime.ClientAuthInfoWriter) (*GetCharactersCharacterIDWalletsOK, error) { // TODO: Validate the params before sending if params == nil { params = NewGetCharactersCharacterIDWalletsParams() } result, err := a.transport.Submit(&runtime.ClientOperation{ ID: "get_characters_character_id_wallets", Method: "GET", PathPattern: "/characters/{character_id}/wallets/", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{""}, Schemes: []string{"https"}, Params: params, Reader: &GetCharactersCharacterIDWalletsReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, }) if err != nil { return nil, err } return result.(*GetCharactersCharacterIDWalletsOK), nil } // SetTransport changes the transport on the client func (a *Client) SetTransport(transport runtime.ClientTransport) { a.transport = transport }