Skip to content

Commit

Permalink
Downgrade Generator CLI for bug fix triage. (#14)
Browse files Browse the repository at this point in the history
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
  • Loading branch information
fern-api[bot] authored Jan 4, 2024
1 parent fb26f4c commit a9b2290
Show file tree
Hide file tree
Showing 239 changed files with 45,637 additions and 46,480 deletions.
2 changes: 1 addition & 1 deletion accounting/accountdetails/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (c *client) Retrieve(ctx context.Context) (*accounting.AccountDetails, erro
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := baseURL + "/" + "account-details"
endpointURL := baseURL + "/" + "api/accounting/v1/account-details"

var response *accounting.AccountDetails
if err := core.DoRequest(
Expand Down
4 changes: 2 additions & 2 deletions accounting/accountingperiods/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (c *client) List(ctx context.Context, request *accounting.AccountingPeriods
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := baseURL + "/" + "accounting-periods"
endpointURL := baseURL + "/" + "api/accounting/v1/accounting-periods"

queryParams := make(url.Values)
if request.Cursor != nil {
Expand Down Expand Up @@ -82,7 +82,7 @@ func (c *client) Retrieve(ctx context.Context, id string, request *accounting.Ac
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := fmt.Sprintf(baseURL+"/"+"accounting-periods/%v", id)
endpointURL := fmt.Sprintf(baseURL+"/"+"api/accounting/v1/accounting-periods/%v", id)

queryParams := make(url.Values)
if request.IncludeRemoteData != nil {
Expand Down
179 changes: 0 additions & 179 deletions accounting/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
package accounting

import (
json "encoding/json"
fmt "fmt"
strconv "strconv"
time "time"
)

Expand Down Expand Up @@ -56,179 +53,3 @@ type AccountsRetrieveRequest struct {
// Which fields should be returned in non-normalized form.
ShowEnumOrigins *AccountsRetrieveRequestShowEnumOrigins `json:"-"`
}

type AccountsListRequestRemoteFields uint

const (
AccountsListRequestRemoteFieldsClassification AccountsListRequestRemoteFields = iota + 1
AccountsListRequestRemoteFieldsClassificationStatus
AccountsListRequestRemoteFieldsStatus
)

func (a AccountsListRequestRemoteFields) String() string {
switch a {
default:
return strconv.Itoa(int(a))
case AccountsListRequestRemoteFieldsClassification:
return "classification"
case AccountsListRequestRemoteFieldsClassificationStatus:
return "classification,status"
case AccountsListRequestRemoteFieldsStatus:
return "status"
}
}

func (a AccountsListRequestRemoteFields) MarshalJSON() ([]byte, error) {
return []byte(fmt.Sprintf("%q", a.String())), nil
}

func (a *AccountsListRequestRemoteFields) UnmarshalJSON(data []byte) error {
var raw string
if err := json.Unmarshal(data, &raw); err != nil {
return err
}
switch raw {
case "classification":
value := AccountsListRequestRemoteFieldsClassification
*a = value
case "classification,status":
value := AccountsListRequestRemoteFieldsClassificationStatus
*a = value
case "status":
value := AccountsListRequestRemoteFieldsStatus
*a = value
}
return nil
}

type AccountsListRequestShowEnumOrigins uint

const (
AccountsListRequestShowEnumOriginsClassification AccountsListRequestShowEnumOrigins = iota + 1
AccountsListRequestShowEnumOriginsClassificationStatus
AccountsListRequestShowEnumOriginsStatus
)

func (a AccountsListRequestShowEnumOrigins) String() string {
switch a {
default:
return strconv.Itoa(int(a))
case AccountsListRequestShowEnumOriginsClassification:
return "classification"
case AccountsListRequestShowEnumOriginsClassificationStatus:
return "classification,status"
case AccountsListRequestShowEnumOriginsStatus:
return "status"
}
}

func (a AccountsListRequestShowEnumOrigins) MarshalJSON() ([]byte, error) {
return []byte(fmt.Sprintf("%q", a.String())), nil
}

func (a *AccountsListRequestShowEnumOrigins) UnmarshalJSON(data []byte) error {
var raw string
if err := json.Unmarshal(data, &raw); err != nil {
return err
}
switch raw {
case "classification":
value := AccountsListRequestShowEnumOriginsClassification
*a = value
case "classification,status":
value := AccountsListRequestShowEnumOriginsClassificationStatus
*a = value
case "status":
value := AccountsListRequestShowEnumOriginsStatus
*a = value
}
return nil
}

type AccountsRetrieveRequestRemoteFields uint

const (
AccountsRetrieveRequestRemoteFieldsClassification AccountsRetrieveRequestRemoteFields = iota + 1
AccountsRetrieveRequestRemoteFieldsClassificationStatus
AccountsRetrieveRequestRemoteFieldsStatus
)

func (a AccountsRetrieveRequestRemoteFields) String() string {
switch a {
default:
return strconv.Itoa(int(a))
case AccountsRetrieveRequestRemoteFieldsClassification:
return "classification"
case AccountsRetrieveRequestRemoteFieldsClassificationStatus:
return "classification,status"
case AccountsRetrieveRequestRemoteFieldsStatus:
return "status"
}
}

func (a AccountsRetrieveRequestRemoteFields) MarshalJSON() ([]byte, error) {
return []byte(fmt.Sprintf("%q", a.String())), nil
}

func (a *AccountsRetrieveRequestRemoteFields) UnmarshalJSON(data []byte) error {
var raw string
if err := json.Unmarshal(data, &raw); err != nil {
return err
}
switch raw {
case "classification":
value := AccountsRetrieveRequestRemoteFieldsClassification
*a = value
case "classification,status":
value := AccountsRetrieveRequestRemoteFieldsClassificationStatus
*a = value
case "status":
value := AccountsRetrieveRequestRemoteFieldsStatus
*a = value
}
return nil
}

type AccountsRetrieveRequestShowEnumOrigins uint

const (
AccountsRetrieveRequestShowEnumOriginsClassification AccountsRetrieveRequestShowEnumOrigins = iota + 1
AccountsRetrieveRequestShowEnumOriginsClassificationStatus
AccountsRetrieveRequestShowEnumOriginsStatus
)

func (a AccountsRetrieveRequestShowEnumOrigins) String() string {
switch a {
default:
return strconv.Itoa(int(a))
case AccountsRetrieveRequestShowEnumOriginsClassification:
return "classification"
case AccountsRetrieveRequestShowEnumOriginsClassificationStatus:
return "classification,status"
case AccountsRetrieveRequestShowEnumOriginsStatus:
return "status"
}
}

func (a AccountsRetrieveRequestShowEnumOrigins) MarshalJSON() ([]byte, error) {
return []byte(fmt.Sprintf("%q", a.String())), nil
}

func (a *AccountsRetrieveRequestShowEnumOrigins) UnmarshalJSON(data []byte) error {
var raw string
if err := json.Unmarshal(data, &raw); err != nil {
return err
}
switch raw {
case "classification":
value := AccountsRetrieveRequestShowEnumOriginsClassification
*a = value
case "classification,status":
value := AccountsRetrieveRequestShowEnumOriginsClassificationStatus
*a = value
case "status":
value := AccountsRetrieveRequestShowEnumOriginsStatus
*a = value
}
return nil
}
8 changes: 4 additions & 4 deletions accounting/accounts/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (c *client) List(ctx context.Context, request *accounting.AccountsListReque
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := baseURL + "/" + "accounts"
endpointURL := baseURL + "/" + "api/accounting/v1/accounts"

queryParams := make(url.Values)
if request.CompanyId != nil {
Expand Down Expand Up @@ -112,7 +112,7 @@ func (c *client) Create(ctx context.Context, request *accounting.AccountEndpoint
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := baseURL + "/" + "accounts"
endpointURL := baseURL + "/" + "api/accounting/v1/accounts"

queryParams := make(url.Values)
if request.IsDebugMode != nil {
Expand Down Expand Up @@ -148,7 +148,7 @@ func (c *client) Retrieve(ctx context.Context, id string, request *accounting.Ac
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := fmt.Sprintf(baseURL+"/"+"accounts/%v", id)
endpointURL := fmt.Sprintf(baseURL+"/"+"api/accounting/v1/accounts/%v", id)

queryParams := make(url.Values)
if request.Expand != nil {
Expand Down Expand Up @@ -190,7 +190,7 @@ func (c *client) MetaPostRetrieve(ctx context.Context) (*accounting.MetaResponse
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := baseURL + "/" + "accounts/meta/post"
endpointURL := baseURL + "/" + "api/accounting/v1/accounts/meta/post"

var response *accounting.MetaResponse
if err := core.DoRequest(
Expand Down
2 changes: 1 addition & 1 deletion accounting/accounttoken/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (c *client) Retrieve(ctx context.Context, publicToken string) (*accounting.
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := fmt.Sprintf(baseURL+"/"+"account-token/%v", publicToken)
endpointURL := fmt.Sprintf(baseURL+"/"+"api/accounting/v1/account-token/%v", publicToken)

var response *accounting.AccountToken
if err := core.DoRequest(
Expand Down
2 changes: 1 addition & 1 deletion accounting/addresses/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (c *client) Retrieve(ctx context.Context, id string, request *accounting.Ad
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := fmt.Sprintf(baseURL+"/"+"addresses/%v", id)
endpointURL := fmt.Sprintf(baseURL+"/"+"api/accounting/v1/addresses/%v", id)

queryParams := make(url.Values)
if request.IncludeRemoteData != nil {
Expand Down
4 changes: 2 additions & 2 deletions accounting/asyncpassthrough/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (c *client) Create(ctx context.Context, request *accounting.DataPassthrough
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := baseURL + "/" + "async-passthrough"
endpointURL := baseURL + "/" + "api/accounting/v1/async-passthrough"

var response *accounting.AsyncPassthroughReciept
if err := core.DoRequest(
Expand All @@ -64,7 +64,7 @@ func (c *client) Retrieve(ctx context.Context, asyncPassthroughReceiptId string)
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := fmt.Sprintf(baseURL+"/"+"async-passthrough/%v", asyncPassthroughReceiptId)
endpointURL := fmt.Sprintf(baseURL+"/"+"api/accounting/v1/async-passthrough/%v", asyncPassthroughReceiptId)

var response *accounting.RemoteResponse
if err := core.DoRequest(
Expand Down
8 changes: 4 additions & 4 deletions accounting/attachments/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (c *client) List(ctx context.Context, request *accounting.AttachmentsListRe
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := baseURL + "/" + "attachments"
endpointURL := baseURL + "/" + "api/accounting/v1/attachments"

queryParams := make(url.Values)
if request.CompanyId != nil {
Expand Down Expand Up @@ -103,7 +103,7 @@ func (c *client) Create(ctx context.Context, request *accounting.AccountingAttac
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := baseURL + "/" + "attachments"
endpointURL := baseURL + "/" + "api/accounting/v1/attachments"

queryParams := make(url.Values)
if request.IsDebugMode != nil {
Expand Down Expand Up @@ -139,7 +139,7 @@ func (c *client) Retrieve(ctx context.Context, id string, request *accounting.At
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := fmt.Sprintf(baseURL+"/"+"attachments/%v", id)
endpointURL := fmt.Sprintf(baseURL+"/"+"api/accounting/v1/attachments/%v", id)

queryParams := make(url.Values)
if request.IncludeRemoteData != nil {
Expand Down Expand Up @@ -172,7 +172,7 @@ func (c *client) MetaPostRetrieve(ctx context.Context) (*accounting.MetaResponse
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := baseURL + "/" + "attachments/meta/post"
endpointURL := baseURL + "/" + "api/accounting/v1/attachments/meta/post"

var response *accounting.MetaResponse
if err := core.DoRequest(
Expand Down
2 changes: 1 addition & 1 deletion accounting/audittrail/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (c *client) List(ctx context.Context, request *accounting.AuditTrailListReq
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := baseURL + "/" + "audit-trail"
endpointURL := baseURL + "/" + "api/accounting/v1/audit-trail"

queryParams := make(url.Values)
if request.Cursor != nil {
Expand Down
2 changes: 1 addition & 1 deletion accounting/availableactions/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (c *client) Retrieve(ctx context.Context) (*accounting.AvailableActions, er
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := baseURL + "/" + "available-actions"
endpointURL := baseURL + "/" + "api/accounting/v1/available-actions"

var response *accounting.AvailableActions
if err := core.DoRequest(
Expand Down
4 changes: 2 additions & 2 deletions accounting/balancesheets/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (c *client) List(ctx context.Context, request *accounting.BalanceSheetsList
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := baseURL + "/" + "balance-sheets"
endpointURL := baseURL + "/" + "api/accounting/v1/balance-sheets"

queryParams := make(url.Values)
if request.CompanyId != nil {
Expand Down Expand Up @@ -104,7 +104,7 @@ func (c *client) Retrieve(ctx context.Context, id string, request *accounting.Ba
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := fmt.Sprintf(baseURL+"/"+"balance-sheets/%v", id)
endpointURL := fmt.Sprintf(baseURL+"/"+"api/accounting/v1/balance-sheets/%v", id)

queryParams := make(url.Values)
if request.Expand != nil {
Expand Down
4 changes: 2 additions & 2 deletions accounting/cashflowstatements/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (c *client) List(ctx context.Context, request *accounting.CashFlowStatement
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := baseURL + "/" + "cash-flow-statements"
endpointURL := baseURL + "/" + "api/accounting/v1/cash-flow-statements"

queryParams := make(url.Values)
if request.CompanyId != nil {
Expand Down Expand Up @@ -104,7 +104,7 @@ func (c *client) Retrieve(ctx context.Context, id string, request *accounting.Ca
if c.baseURL != "" {
baseURL = c.baseURL
}
endpointURL := fmt.Sprintf(baseURL+"/"+"cash-flow-statements/%v", id)
endpointURL := fmt.Sprintf(baseURL+"/"+"api/accounting/v1/cash-flow-statements/%v", id)

queryParams := make(url.Values)
if request.Expand != nil {
Expand Down
Loading

0 comments on commit a9b2290

Please sign in to comment.