Skip to content

Commit

Permalink
Merge pull request #21 from LordPax/fix-redeclared
Browse files Browse the repository at this point in the history
Remove redeclared struct
  • Loading branch information
jain-raunak authored Aug 8, 2024
2 parents a12e09e + 1d9e00c commit f716f25
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 33 deletions.
8 changes: 0 additions & 8 deletions lib/api_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ package lib

import (
"context"
"github.com/antihax/optional"
"io/ioutil"
"net/http"
"net/url"
Expand Down Expand Up @@ -150,13 +149,6 @@ AccountApiService Get user activity logs
@return GetAccountActivity
*/

type GetAccountActivityOpts struct {
StartDate optional.String
EndDate optional.String
Limit optional.Int64
Offset optional.Int64
}

func (a *AccountApiService) GetAccountActivity(ctx context.Context, localVarOptionals *GetAccountActivityOpts) (GetAccountActivity, *http.Response, error) {
var (
localVarHttpMethod = strings.ToUpper("Get")
Expand Down
2 changes: 2 additions & 0 deletions lib/api_conversations.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import (
"net/http"
"net/url"
"strings"

"github.com/antihax/optional"
)

// Linger please
Expand Down
2 changes: 2 additions & 0 deletions lib/api_domains.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import (
"net/http"
"net/url"
"strings"

"github.com/antihax/optional"
)

// Linger please
Expand Down
4 changes: 3 additions & 1 deletion lib/api_inbound_parsing.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ package lib
import (
"context"
"fmt"
"github.com/antihax/optional"
"io/ioutil"
"net/http"
"net/url"
"os"
"strings"

"github.com/antihax/optional"
)

// Linger please
Expand Down
3 changes: 2 additions & 1 deletion lib/api_master_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ package lib
import (
"context"
"fmt"
"github.com/antihax/optional"
"io/ioutil"
"net/http"
"net/url"
"strings"

"github.com/antihax/optional"
)

// Linger please
Expand Down
13 changes: 7 additions & 6 deletions lib/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ type APIKey struct {
}

type Configuration struct {
BasePath string `json:"basePath,omitempty"`
Host string `json:"host,omitempty"`
Scheme string `json:"scheme,omitempty"`
DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
UserAgent string `json:"userAgent,omitempty"`
HTTPClient *http.Client
BasePath string `json:"basePath,omitempty"`
Host string `json:"host,omitempty"`
Scheme string `json:"scheme,omitempty"`
DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
UserAgent string `json:"userAgent,omitempty"`
CustomSuccessUrl string `json:"customSuccessUrl"`
HTTPClient *http.Client
}

func NewConfiguration() *Configuration {
Expand Down
17 changes: 0 additions & 17 deletions lib/model_configuration.go

This file was deleted.

0 comments on commit f716f25

Please sign in to comment.