Skip to content

Commit

Permalink
Merge pull request #320 from codatio/speakeasy-sdk-regen-1695245479
Browse files Browse the repository at this point in the history
chore: speakeasy sdk regeneration - Generate Lending library
  • Loading branch information
dcoplowe authored Sep 20, 2023
2 parents 6020531 + c1256e2 commit a551ae7
Show file tree
Hide file tree
Showing 385 changed files with 10,841 additions and 2,101 deletions.
48 changes: 42 additions & 6 deletions lending/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import(
)

func main() {
s := codatlending.New(
codatlending.WithSecurity(shared.Security{
s := lending.New(
lending.WithSecurity(shared.Security{
AuthHeader: "Basic BASE_64_ENCODED(API_KEY)",
}),
)
Expand All @@ -37,10 +37,10 @@ func main() {
AccountID: "corrupti",
CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002",
ConnectionID: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
OrderBy: codatlending.String("-modifiedDate"),
Page: codatlending.Int(1),
PageSize: codatlending.Int(100),
Query: codatlending.String("provident"),
OrderBy: lending.String("-modifiedDate"),
Page: lending.Int(1),
PageSize: lending.Int(100),
Query: lending.String("provident"),
})
if err != nil {
log.Fatal(err)
Expand Down Expand Up @@ -225,6 +225,42 @@ func main() {
* [Get](docs/sdks/financialstatementsprofitandloss/README.md#get) - Get profit and loss
* [GetCategorizedAccounts](docs/sdks/financialstatementsprofitandloss/README.md#getcategorizedaccounts) - Get categorized profit and loss statement


### [LoanWriteback.Accounts](docs/sdks/loanwritebackaccounts/README.md)

* [Create](docs/sdks/loanwritebackaccounts/README.md#create) - Create account
* [GetCreateModel](docs/sdks/loanwritebackaccounts/README.md#getcreatemodel) - Get create account model

### [LoanWriteback.BankAccounts](docs/sdks/loanwritebackbankaccounts/README.md)

* [Create](docs/sdks/loanwritebackbankaccounts/README.md#create) - Create bank account
* [GetCreateUpdateModel](docs/sdks/loanwritebackbankaccounts/README.md#getcreateupdatemodel) - Get create/update bank account model

### [LoanWriteback.BankTransactions](docs/sdks/loanwritebackbanktransactions/README.md)

* [Create](docs/sdks/loanwritebackbanktransactions/README.md#create) - Create bank account transactions
* [GetCreateModel](docs/sdks/loanwritebackbanktransactions/README.md#getcreatemodel) - Get create bank account transactions model

### [LoanWriteback.CreateOperations](docs/sdks/loanwritebackcreateoperations/README.md)

* [Get](docs/sdks/loanwritebackcreateoperations/README.md#get) - Get create operation
* [List](docs/sdks/loanwritebackcreateoperations/README.md#list) - List create operations

### [LoanWriteback.DirectCosts](docs/sdks/loanwritebackdirectcosts/README.md)

* [Create](docs/sdks/loanwritebackdirectcosts/README.md#create) - Create direct cost
* [GetCreateModel](docs/sdks/loanwritebackdirectcosts/README.md#getcreatemodel) - Get create direct cost model

### [LoanWriteback.Suppliers](docs/sdks/loanwritebacksuppliers/README.md)

* [Create](docs/sdks/loanwritebacksuppliers/README.md#create) - Create supplier
* [GetCreateUpdateModel](docs/sdks/loanwritebacksuppliers/README.md#getcreateupdatemodel) - Get create/update supplier model

### [LoanWriteback.Transfers](docs/sdks/loanwritebacktransfers/README.md)

* [Create](docs/sdks/loanwritebacktransfers/README.md#create) - Create transfer
* [GetCreateModel](docs/sdks/loanwritebacktransfers/README.md#getcreatemodel) - Get create transfer model

### [ManageData](docs/sdks/managedata/README.md)

* [GetStatus](docs/sdks/managedata/README.md#getstatus) - Get data status
Expand Down
12 changes: 11 additions & 1 deletion lending/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,14 @@ Based on:
### Generated
- [go v4.1.0] lending
### Releases
- [Go v4.1.0] https://github.com/codatio/client-sdk-go/releases/tag/lending/v4.1.0 - lending
- [Go v4.1.0] https://github.com/codatio/client-sdk-go/releases/tag/lending/v4.1.0 - lending

## 2023-09-20 21:31:15
### Changes
Based on:
- OpenAPI Doc 3.0.0 https://raw.githubusercontent.com/codatio/oas/main/yaml/Codat-Lending.yaml
- Speakeasy CLI 1.88.1 (2.122.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v4.2.0] lending
### Releases
- [Go v4.2.0] https://github.com/codatio/client-sdk-go/releases/tag/lending/v4.2.0 - lending
12 changes: 6 additions & 6 deletions lending/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import(
)

func main() {
s := codatlending.New(
codatlending.WithSecurity(shared.Security{
s := lending.New(
lending.WithSecurity(shared.Security{
AuthHeader: "Basic BASE_64_ENCODED(API_KEY)",
}),
)
Expand All @@ -24,10 +24,10 @@ func main() {
AccountID: "corrupti",
CompanyID: "8a210b68-6988-11ed-a1eb-0242ac120002",
ConnectionID: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
OrderBy: codatlending.String("-modifiedDate"),
Page: codatlending.Int(1),
PageSize: codatlending.Int(100),
Query: codatlending.String("provident"),
OrderBy: lending.String("-modifiedDate"),
Page: lending.Int(1),
PageSize: lending.Int(100),
Query: lending.String("provident"),
})
if err != nil {
log.Fatal(err)
Expand Down
14 changes: 7 additions & 7 deletions lending/accountingbankdata.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.

package codatlending
package lending

import (
"bytes"
Expand Down Expand Up @@ -120,12 +120,12 @@ func (s *accountingBankData) ListTransactions(ctx context.Context, request opera
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
var out *shared.AccountingBankTransactions
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
var out shared.AccountingBankTransactions
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
}

res.AccountingBankTransactions = out
res.AccountingBankTransactions = &out
default:
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
Expand All @@ -140,12 +140,12 @@ func (s *accountingBankData) ListTransactions(ctx context.Context, request opera
case httpRes.StatusCode == 429:
switch {
case utils.MatchContentType(contentType, `application/json`):
var out *shared.ErrorMessage
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
var out shared.ErrorMessage
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
}

res.ErrorMessage = out
res.ErrorMessage = &out
default:
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
Expand Down
26 changes: 13 additions & 13 deletions lending/accountingbankdataaccounts.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.

package codatlending
package lending

import (
"bytes"
Expand Down Expand Up @@ -112,12 +112,12 @@ func (s *accountingBankDataAccounts) Get(ctx context.Context, request operations
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
var out *shared.AccountingBankAccount
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
var out shared.AccountingBankAccount
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
}

res.AccountingBankAccount = out
res.AccountingBankAccount = &out
default:
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
Expand All @@ -130,12 +130,12 @@ func (s *accountingBankDataAccounts) Get(ctx context.Context, request operations
case httpRes.StatusCode == 429:
switch {
case utils.MatchContentType(contentType, `application/json`):
var out *shared.ErrorMessage
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
var out shared.ErrorMessage
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
}

res.ErrorMessage = out
res.ErrorMessage = &out
default:
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
Expand Down Expand Up @@ -234,12 +234,12 @@ func (s *accountingBankDataAccounts) List(ctx context.Context, request operation
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
var out *shared.AccountingBankAccounts
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
var out shared.AccountingBankAccounts
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
}

res.AccountingBankAccounts = out
res.AccountingBankAccounts = &out
default:
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
Expand All @@ -252,12 +252,12 @@ func (s *accountingBankDataAccounts) List(ctx context.Context, request operation
case httpRes.StatusCode == 409:
switch {
case utils.MatchContentType(contentType, `application/json`):
var out *shared.ErrorMessage
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
var out shared.ErrorMessage
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
}

res.ErrorMessage = out
res.ErrorMessage = &out
default:
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
Expand Down
2 changes: 1 addition & 1 deletion lending/accountspayable.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.

package codatlending
package lending

type accountsPayable struct {
BillCreditNotes *accountsPayableBillCreditNotes
Expand Down
26 changes: 13 additions & 13 deletions lending/accountspayablebillcreditnotes.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.

package codatlending
package lending

import (
"bytes"
Expand Down Expand Up @@ -112,12 +112,12 @@ func (s *accountsPayableBillCreditNotes) Get(ctx context.Context, request operat
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
var out *shared.AccountingBillCreditNote
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
var out shared.AccountingBillCreditNote
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
}

res.AccountingBillCreditNote = out
res.AccountingBillCreditNote = &out
default:
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
Expand All @@ -130,12 +130,12 @@ func (s *accountsPayableBillCreditNotes) Get(ctx context.Context, request operat
case httpRes.StatusCode == 429:
switch {
case utils.MatchContentType(contentType, `application/json`):
var out *shared.ErrorMessage
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
var out shared.ErrorMessage
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
}

res.ErrorMessage = out
res.ErrorMessage = &out
default:
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
Expand Down Expand Up @@ -234,12 +234,12 @@ func (s *accountsPayableBillCreditNotes) List(ctx context.Context, request opera
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
var out *shared.AccountingBillCreditNotes
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
var out shared.AccountingBillCreditNotes
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
}

res.AccountingBillCreditNotes = out
res.AccountingBillCreditNotes = &out
default:
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
Expand All @@ -252,12 +252,12 @@ func (s *accountsPayableBillCreditNotes) List(ctx context.Context, request opera
case httpRes.StatusCode == 409:
switch {
case utils.MatchContentType(contentType, `application/json`):
var out *shared.ErrorMessage
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
var out shared.ErrorMessage
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
}

res.ErrorMessage = out
res.ErrorMessage = &out
default:
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
Expand Down
26 changes: 13 additions & 13 deletions lending/accountspayablebillpayments.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.

package codatlending
package lending

import (
"bytes"
Expand Down Expand Up @@ -112,12 +112,12 @@ func (s *accountsPayableBillPayments) Get(ctx context.Context, request operation
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
var out *shared.AccountingBillPayment
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
var out shared.AccountingBillPayment
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
}

res.AccountingBillPayment = out
res.AccountingBillPayment = &out
default:
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
Expand All @@ -130,12 +130,12 @@ func (s *accountsPayableBillPayments) Get(ctx context.Context, request operation
case httpRes.StatusCode == 429:
switch {
case utils.MatchContentType(contentType, `application/json`):
var out *shared.ErrorMessage
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
var out shared.ErrorMessage
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
}

res.ErrorMessage = out
res.ErrorMessage = &out
default:
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
Expand Down Expand Up @@ -234,12 +234,12 @@ func (s *accountsPayableBillPayments) List(ctx context.Context, request operatio
case httpRes.StatusCode == 200:
switch {
case utils.MatchContentType(contentType, `application/json`):
var out *shared.AccountingBillPayments
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
var out shared.AccountingBillPayments
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
}

res.AccountingBillPayments = out
res.AccountingBillPayments = &out
default:
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
Expand All @@ -252,12 +252,12 @@ func (s *accountsPayableBillPayments) List(ctx context.Context, request operatio
case httpRes.StatusCode == 409:
switch {
case utils.MatchContentType(contentType, `application/json`):
var out *shared.ErrorMessage
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out); err != nil {
var out shared.ErrorMessage
if err := utils.UnmarshalJsonFromResponseBody(bytes.NewBuffer(rawBody), &out, ""); err != nil {
return nil, err
}

res.ErrorMessage = out
res.ErrorMessage = &out
default:
return nil, sdkerrors.NewSDKError(fmt.Sprintf("unknown content-type received: %s", contentType), httpRes.StatusCode, string(rawBody), httpRes)
}
Expand Down
Loading

0 comments on commit a551ae7

Please sign in to comment.