Skip to content

Commit

Permalink
release(sdk): v2.0.0-beta.10
Browse files Browse the repository at this point in the history
  • Loading branch information
NumaryBot committed Jan 18, 2024
1 parent 12e7c56 commit 1c7c66c
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 618e474a-ecbe-4724-8638-1cdbd3bfa09c
id: 9ed6ca77-b1db-4b51-87d4-2cb1c994e11d
management:
docChecksum: 19f45ae5d8990dc505885da49871ae14
docVersion: v2.0.0-beta.9
docChecksum: bf3929cd2ca1ce376006df43bc2705f2
docVersion: v2.0.0-beta.10
speakeasyVersion: internal
generationVersion: 2.230.1
releaseVersion: v2.0.0-beta.9
configChecksum: c88b323506c4e54f7f4464857df9ea3a
generationVersion: 2.234.1
releaseVersion: v2.0.0-beta.10
configChecksum: 57ba89f5c38a299f83d21ed90db5bede
features:
go:
constsAndDefaults: 0.1.2
Expand Down
1 change: 1 addition & 0 deletions docs/pkg/models/shared/configuser.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
| -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- | -------------------------------- |
| `Endpoint` | *string* | :heavy_check_mark: | N/A | https://example.com |
| `EventTypes` | []*string* | :heavy_check_mark: | N/A | ["TYPE1","TYPE2"] |
| `Name` | **string* | :heavy_minus_sign: | N/A | customer_payment |
| `Secret` | **string* | :heavy_minus_sign: | N/A | V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3 |
1 change: 1 addition & 0 deletions docs/sdks/webhooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ func main() {
"TYPE1",
"TYPE2",
},
Name: formancesdkgo.String("customer_payment"),
Secret: formancesdkgo.String("V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3"),
})
if err != nil {
Expand Down
8 changes: 4 additions & 4 deletions formance.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ func New(opts ...SDKOption) *Formance {
sdk := &Formance{
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "v2.0.0-beta.9",
SDKVersion: "v2.0.0-beta.9",
GenVersion: "2.230.1",
UserAgent: "speakeasy-sdk/go v2.0.0-beta.9 2.230.1 v2.0.0-beta.9 github.com/formancehq/formance-sdk-go",
OpenAPIDocVersion: "v2.0.0-beta.10",
SDKVersion: "v2.0.0-beta.10",
GenVersion: "2.234.1",
UserAgent: "speakeasy-sdk/go v2.0.0-beta.10 2.234.1 v2.0.0-beta.10 github.com/formancehq/formance-sdk-go",
},
}
for _, opt := range opts {
Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ generation:
nameResolutionDec2023: false
telemetryEnabled: false
go:
version: v2.0.0-beta.9
version: v2.0.0-beta.10
author: Formance
clientServerStatusCodesAsErrors: true
flattenGlobalSecurity: false
Expand Down
8 changes: 8 additions & 0 deletions pkg/models/shared/configuser.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package shared
type ConfigUser struct {
Endpoint string `json:"endpoint"`
EventTypes []string `json:"eventTypes"`
Name *string `json:"name,omitempty"`
Secret *string `json:"secret,omitempty"`
}

Expand All @@ -22,6 +23,13 @@ func (o *ConfigUser) GetEventTypes() []string {
return o.EventTypes
}

func (o *ConfigUser) GetName() *string {
if o == nil {
return nil
}
return o.Name
}

func (o *ConfigUser) GetSecret() *string {
if o == nil {
return nil
Expand Down
2 changes: 2 additions & 0 deletions pkg/models/shared/subject.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type Subject struct {

func CreateSubjectAccount(account LedgerAccountSubject) Subject {
typ := SubjectTypeAccount

typStr := string(typ)
account.Type = typStr

Expand All @@ -36,6 +37,7 @@ func CreateSubjectAccount(account LedgerAccountSubject) Subject {

func CreateSubjectWallet(wallet WalletSubject) Subject {
typ := SubjectTypeWallet

typStr := string(typ)
wallet.Type = typStr

Expand Down
4 changes: 4 additions & 0 deletions pkg/models/shared/v2bulkelement.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type V2BulkElement struct {

func CreateV2BulkElementAddMetadata(addMetadata V2BulkElementAddMetadata) V2BulkElement {
typ := V2BulkElementTypeAddMetadata

typStr := string(typ)
addMetadata.Action = typStr

Expand All @@ -40,6 +41,7 @@ func CreateV2BulkElementAddMetadata(addMetadata V2BulkElementAddMetadata) V2Bulk

func CreateV2BulkElementCreateTransaction(createTransaction V2BulkElementCreateTransaction) V2BulkElement {
typ := V2BulkElementTypeCreateTransaction

typStr := string(typ)
createTransaction.Action = typStr

Expand All @@ -51,6 +53,7 @@ func CreateV2BulkElementCreateTransaction(createTransaction V2BulkElementCreateT

func CreateV2BulkElementDeleteMetadata(deleteMetadata V2BulkElementDeleteMetadata) V2BulkElement {
typ := V2BulkElementTypeDeleteMetadata

typStr := string(typ)
deleteMetadata.Action = typStr

Expand All @@ -62,6 +65,7 @@ func CreateV2BulkElementDeleteMetadata(deleteMetadata V2BulkElementDeleteMetadat

func CreateV2BulkElementRevertTransaction(revertTransaction V2BulkElementRevertTransaction) V2BulkElement {
typ := V2BulkElementTypeRevertTransaction

typStr := string(typ)
revertTransaction.Action = typStr

Expand Down
5 changes: 5 additions & 0 deletions pkg/models/shared/v2bulkelementresult.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ type V2BulkElementResult struct {

func CreateV2BulkElementResultAddMetadata(addMetadata Schemas) V2BulkElementResult {
typ := V2BulkElementResultTypeAddMetadata

typStr := string(typ)
addMetadata.ResponseType = typStr

Expand All @@ -137,6 +138,7 @@ func CreateV2BulkElementResultAddMetadata(addMetadata Schemas) V2BulkElementResu

func CreateV2BulkElementResultCreateTransaction(createTransaction V2BulkElementResultCreateTransactionSchemas) V2BulkElementResult {
typ := V2BulkElementResultTypeCreateTransaction

typStr := string(typ)
createTransaction.ResponseType = typStr

Expand All @@ -148,6 +150,7 @@ func CreateV2BulkElementResultCreateTransaction(createTransaction V2BulkElementR

func CreateV2BulkElementResultDeleteMetadata(deleteMetadata V2BulkElementResultDeleteMetadataSchemas) V2BulkElementResult {
typ := V2BulkElementResultTypeDeleteMetadata

typStr := string(typ)
deleteMetadata.ResponseType = typStr

Expand All @@ -159,6 +162,7 @@ func CreateV2BulkElementResultDeleteMetadata(deleteMetadata V2BulkElementResultD

func CreateV2BulkElementResultError(error V2BulkElementResultErrorSchemas) V2BulkElementResult {
typ := V2BulkElementResultTypeError

typStr := string(typ)
error.ResponseType = typStr

Expand All @@ -170,6 +174,7 @@ func CreateV2BulkElementResultError(error V2BulkElementResultErrorSchemas) V2Bul

func CreateV2BulkElementResultRevertTransaction(revertTransaction V2BulkElementResultRevertTransactionSchemas) V2BulkElementResult {
typ := V2BulkElementResultTypeRevertTransaction

typStr := string(typ)
revertTransaction.ResponseType = typStr

Expand Down
2 changes: 2 additions & 0 deletions pkg/models/shared/v2subject.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type V2Subject struct {

func CreateV2SubjectAccount(account V2LedgerAccountSubject) V2Subject {
typ := V2SubjectTypeAccount

typStr := string(typ)
account.Type = typStr

Expand All @@ -36,6 +37,7 @@ func CreateV2SubjectAccount(account V2LedgerAccountSubject) V2Subject {

func CreateV2SubjectWallet(wallet V2WalletSubject) V2Subject {
typ := V2SubjectTypeWallet

typStr := string(typ)
wallet.Type = typStr

Expand Down

0 comments on commit 1c7c66c

Please sign in to comment.