Skip to content

Commit 04fa3b4

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.454.2
1 parent 8a42e83 commit 04fa3b4

File tree

13 files changed

+92
-59
lines changed

13 files changed

+92
-59
lines changed

.speakeasy/gen.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
lockVersion: 2.0.0
22
id: 269b4377-e36b-42c4-9e18-aa74d5f13d72
33
management:
4-
docChecksum: 7d78aded4da1f2a8608472aeee6f28f1
5-
docVersion: 3.3.0
6-
speakeasyVersion: 1.449.0
7-
generationVersion: 2.467.4
8-
releaseVersion: 1.5.0
9-
configChecksum: 988f1810cdfa71cb784100517cac9b78
4+
docChecksum: 2b4023b1963941d7d087b102ba3565e5
5+
docVersion: 3.3.1
6+
speakeasyVersion: 1.454.2
7+
generationVersion: 2.477.4
8+
releaseVersion: 1.5.1
9+
configChecksum: 4ff630d29919dbb462871bda61665520
1010
repoURL: https://github.com/BoltApp/bolt-go.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/BoltApp/bolt-go
1313
published: true
1414
features:
1515
go:
1616
additionalDependencies: 0.1.0
17-
core: 3.5.17
17+
core: 3.5.18
1818
defaultEnabledRetries: 0.2.0
1919
envVarSecurityUsage: 0.3.2
2020
errorUnions: 0.1.0

.speakeasy/workflow.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.449.0
1+
speakeasyVersion: 1.454.2
22
sources:
33
bolt-go-api:
44
sourceNamespace: bolt-go-api
5-
sourceRevisionDigest: sha256:7a3c59759ac60fba7a758c2b68b081c2729c9af640d3a8009b17b5b674d1182e
6-
sourceBlobDigest: sha256:ce756403cb129042cb09d118eaa9004b8b929926d8275faa3d07d85739d01b4a
5+
sourceRevisionDigest: sha256:bbdde444ce4480b53d0e45bbc1265605433c63513439641f024b14f8dca86773
6+
sourceBlobDigest: sha256:d050e954f5ebd17f1c86efac05d4e8d7845f4dcff06c12c16b022d3e5b3efd75
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1733184839
10-
- 3.3.0
9+
- speakeasy-sdk-regen-1734048780
10+
- 3.3.1
1111
targets:
1212
bolt-go-sdk:
1313
source: bolt-go-api
1414
sourceNamespace: bolt-go-api
15-
sourceRevisionDigest: sha256:7a3c59759ac60fba7a758c2b68b081c2729c9af640d3a8009b17b5b674d1182e
16-
sourceBlobDigest: sha256:ce756403cb129042cb09d118eaa9004b8b929926d8275faa3d07d85739d01b4a
15+
sourceRevisionDigest: sha256:bbdde444ce4480b53d0e45bbc1265605433c63513439641f024b14f8dca86773
16+
sourceBlobDigest: sha256:d050e954f5ebd17f1c86efac05d4e8d7845f4dcff06c12c16b022d3e5b3efd75
1717
codeSamplesNamespace: bolt-go-api-code-samples
18-
codeSamplesRevisionDigest: sha256:441e95631c97958948686d15775c188ba055614fa2e7cb6a0cebde57fc52e7ea
18+
codeSamplesRevisionDigest: sha256:626ed0547d7bee84774e773aa5eeda1139b4f75a635b458cccc8b97518fa581b
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,15 @@ import (
5555
)
5656

5757
func main() {
58+
ctx := context.Background()
59+
5860
s := boltgo.New(
5961
boltgo.WithSecurity(components.Security{
6062
Oauth: boltgo.String("<YOUR_OAUTH_HERE>"),
6163
APIKey: boltgo.String("<YOUR_API_KEY_HERE>"),
6264
}),
6365
)
6466

65-
ctx := context.Background()
6667
res, err := s.Account.GetDetails(ctx, "<value>", boltgo.String("<value>"))
6768
if err != nil {
6869
log.Fatal(err)
@@ -150,14 +151,15 @@ import (
150151
)
151152

152153
func main() {
154+
ctx := context.Background()
155+
153156
s := boltgo.New(
154157
boltgo.WithSecurity(components.Security{
155158
Oauth: boltgo.String("<YOUR_OAUTH_HERE>"),
156159
APIKey: boltgo.String("<YOUR_API_KEY_HERE>"),
157160
}),
158161
)
159162

160-
ctx := context.Background()
161163
res, err := s.Account.GetDetails(ctx, "<value>", boltgo.String("<value>"))
162164
if err != nil {
163165

@@ -200,6 +202,8 @@ import (
200202
)
201203

202204
func main() {
205+
ctx := context.Background()
206+
203207
s := boltgo.New(
204208
boltgo.WithServerURL("https://api-sandbox.bolt.com/v3"),
205209
boltgo.WithSecurity(components.Security{
@@ -208,7 +212,6 @@ func main() {
208212
}),
209213
)
210214

211-
ctx := context.Background()
212215
res, err := s.Account.GetDetails(ctx, "<value>", boltgo.String("<value>"))
213216
if err != nil {
214217
log.Fatal(err)
@@ -274,14 +277,15 @@ import (
274277
)
275278

276279
func main() {
280+
ctx := context.Background()
281+
277282
s := boltgo.New(
278283
boltgo.WithSecurity(components.Security{
279284
Oauth: boltgo.String("<YOUR_OAUTH_HERE>"),
280285
APIKey: boltgo.String("<YOUR_API_KEY_HERE>"),
281286
}),
282287
)
283288

284-
ctx := context.Background()
285289
res, err := s.Account.GetDetails(ctx, "<value>", boltgo.String("<value>"))
286290
if err != nil {
287291
log.Fatal(err)
@@ -308,9 +312,10 @@ import (
308312
)
309313

310314
func main() {
315+
ctx := context.Background()
316+
311317
s := boltgo.New()
312318

313-
ctx := context.Background()
314319
res, err := s.Payments.Guest.Initialize(ctx, operations.GuestPaymentsInitializeSecurity{
315320
APIKey: "<YOUR_API_KEY_HERE>",
316321
}, "<value>", components.GuestPaymentInitializeRequest{
@@ -436,14 +441,15 @@ import (
436441
)
437442

438443
func main() {
444+
ctx := context.Background()
445+
439446
s := boltgo.New(
440447
boltgo.WithSecurity(components.Security{
441448
Oauth: boltgo.String("<YOUR_OAUTH_HERE>"),
442449
APIKey: boltgo.String("<YOUR_API_KEY_HERE>"),
443450
}),
444451
)
445452

446-
ctx := context.Background()
447453
res, err := s.Account.GetDetails(ctx, "<value>", boltgo.String("<value>"), operations.WithRetries(
448454
retry.Config{
449455
Strategy: "backoff",
@@ -478,6 +484,8 @@ import (
478484
)
479485

480486
func main() {
487+
ctx := context.Background()
488+
481489
s := boltgo.New(
482490
boltgo.WithRetryConfig(
483491
retry.Config{
@@ -496,7 +504,6 @@ func main() {
496504
}),
497505
)
498506

499-
ctx := context.Background()
500507
res, err := s.Account.GetDetails(ctx, "<value>", boltgo.String("<value>"))
501508
if err != nil {
502509
log.Fatal(err)

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,4 +228,14 @@ Based on:
228228
### Generated
229229
- [go v1.5.0] .
230230
### Releases
231-
- [Go v1.5.0] https://github.com/BoltApp/bolt-go/releases/tag/v1.5.0 - .
231+
- [Go v1.5.0] https://github.com/BoltApp/bolt-go/releases/tag/v1.5.0 - .
232+
233+
## 2024-12-13 00:12:57
234+
### Changes
235+
Based on:
236+
- OpenAPI Doc
237+
- Speakeasy CLI 1.454.2 (2.477.4) https://github.com/speakeasy-api/speakeasy
238+
### Generated
239+
- [go v1.5.1] .
240+
### Releases
241+
- [Go v1.5.1] https://github.com/BoltApp/bolt-go/releases/tag/v1.5.1 - .

USAGE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ import (
1010
)
1111

1212
func main() {
13+
ctx := context.Background()
14+
1315
s := boltgo.New(
1416
boltgo.WithSecurity(components.Security{
1517
Oauth: boltgo.String("<YOUR_OAUTH_HERE>"),
1618
APIKey: boltgo.String("<YOUR_API_KEY_HERE>"),
1719
}),
1820
)
1921

20-
ctx := context.Background()
2122
res, err := s.Account.GetDetails(ctx, "<value>", boltgo.String("<value>"))
2223
if err != nil {
2324
log.Fatal(err)

boltsdk.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ func New(opts ...SDKOption) *BoltSDK {
197197
sdk := &BoltSDK{
198198
sdkConfiguration: sdkConfiguration{
199199
Language: "go",
200-
OpenAPIDocVersion: "3.3.0",
201-
SDKVersion: "1.5.0",
202-
GenVersion: "2.467.4",
203-
UserAgent: "speakeasy-sdk/go 1.5.0 2.467.4 3.3.0 github.com/BoltApp/bolt-go",
200+
OpenAPIDocVersion: "3.3.1",
201+
SDKVersion: "1.5.1",
202+
GenVersion: "2.477.4",
203+
UserAgent: "speakeasy-sdk/go 1.5.1 2.477.4 3.3.1 github.com/BoltApp/bolt-go",
204204
ServerDefaults: []map[string]string{
205205
{
206206
"environment": "api-sandbox",

docs/sdks/account/README.md

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,22 @@ Retrieve a shopper's account details, such as addresses and payment information.
2424
package main
2525

2626
import(
27+
"context"
2728
boltgo "github.com/BoltApp/bolt-go"
2829
"github.com/BoltApp/bolt-go/models/components"
29-
"context"
3030
"log"
3131
)
3232

3333
func main() {
34+
ctx := context.Background()
35+
3436
s := boltgo.New(
3537
boltgo.WithSecurity(components.Security{
3638
Oauth: boltgo.String("<YOUR_OAUTH_HERE>"),
3739
APIKey: boltgo.String("<YOUR_API_KEY_HERE>"),
3840
}),
3941
)
4042

41-
ctx := context.Background()
4243
res, err := s.Account.GetDetails(ctx, "<value>", boltgo.String("<value>"))
4344
if err != nil {
4445
log.Fatal(err)
@@ -79,21 +80,22 @@ Add an address to the shopper's account
7980
package main
8081

8182
import(
83+
"context"
8284
boltgo "github.com/BoltApp/bolt-go"
8385
"github.com/BoltApp/bolt-go/models/components"
84-
"context"
8586
"log"
8687
)
8788

8889
func main() {
90+
ctx := context.Background()
91+
8992
s := boltgo.New(
9093
boltgo.WithSecurity(components.Security{
9194
Oauth: boltgo.String("<YOUR_OAUTH_HERE>"),
9295
APIKey: boltgo.String("<YOUR_API_KEY_HERE>"),
9396
}),
9497
)
9598

96-
ctx := context.Background()
9799
res, err := s.Account.AddAddress(ctx, "<value>", components.AddressListingInput{
98100
FirstName: "Alice",
99101
LastName: "Baker",
@@ -147,21 +149,22 @@ Edit an existing address on the shopper's account. This does not edit addresses
147149
package main
148150

149151
import(
152+
"context"
150153
boltgo "github.com/BoltApp/bolt-go"
151154
"github.com/BoltApp/bolt-go/models/components"
152-
"context"
153155
"log"
154156
)
155157

156158
func main() {
159+
ctx := context.Background()
160+
157161
s := boltgo.New(
158162
boltgo.WithSecurity(components.Security{
159163
Oauth: boltgo.String("<YOUR_OAUTH_HERE>"),
160164
APIKey: boltgo.String("<YOUR_API_KEY_HERE>"),
161165
}),
162166
)
163167

164-
ctx := context.Background()
165168
res, err := s.Account.UpdateAddress(ctx, "D4g3h5tBuVYK9", "<value>", components.AddressListingInput{
166169
FirstName: "Alice",
167170
LastName: "Baker",
@@ -216,21 +219,22 @@ Delete an existing address. Deleting an address does not invalidate or remove th
216219
package main
217220

218221
import(
222+
"context"
219223
boltgo "github.com/BoltApp/bolt-go"
220224
"github.com/BoltApp/bolt-go/models/components"
221-
"context"
222225
"log"
223226
)
224227

225228
func main() {
229+
ctx := context.Background()
230+
226231
s := boltgo.New(
227232
boltgo.WithSecurity(components.Security{
228233
Oauth: boltgo.String("<YOUR_OAUTH_HERE>"),
229234
APIKey: boltgo.String("<YOUR_API_KEY_HERE>"),
230235
}),
231236
)
232237

233-
ctx := context.Background()
234238
res, err := s.Account.DeleteAddress(ctx, "D4g3h5tBuVYK9", "<value>", boltgo.String("<value>"))
235239
if err != nil {
236240
log.Fatal(err)
@@ -272,21 +276,22 @@ Add a payment method to a shopper's Bolt Account Wallet. For security purposes,
272276
package main
273277

274278
import(
279+
"context"
275280
boltgo "github.com/BoltApp/bolt-go"
276281
"github.com/BoltApp/bolt-go/models/components"
277-
"context"
278282
"log"
279283
)
280284

281285
func main() {
286+
ctx := context.Background()
287+
282288
s := boltgo.New(
283289
boltgo.WithSecurity(components.Security{
284290
Oauth: boltgo.String("<YOUR_OAUTH_HERE>"),
285291
APIKey: boltgo.String("<YOUR_API_KEY_HERE>"),
286292
}),
287293
)
288294

289-
ctx := context.Background()
290295
res, err := s.Account.AddPaymentMethod(ctx, "<value>", components.CreatePaymentMethodInputPaymentMethodCreditCardInput(
291296
components.PaymentMethodCreditCardInput{
292297
DotTag: components.DotTagCreditCard,
@@ -343,21 +348,22 @@ Delete an existing payment method. Deleting a payment method does not invalidate
343348
package main
344349

345350
import(
351+
"context"
346352
boltgo "github.com/BoltApp/bolt-go"
347353
"github.com/BoltApp/bolt-go/models/components"
348-
"context"
349354
"log"
350355
)
351356

352357
func main() {
358+
ctx := context.Background()
359+
353360
s := boltgo.New(
354361
boltgo.WithSecurity(components.Security{
355362
Oauth: boltgo.String("<YOUR_OAUTH_HERE>"),
356363
APIKey: boltgo.String("<YOUR_API_KEY_HERE>"),
357364
}),
358365
)
359366

360-
ctx := context.Background()
361367
res, err := s.Account.DeletePaymentMethod(ctx, "D4g3h5tBuVYK9", "<value>", boltgo.String("<value>"))
362368
if err != nil {
363369
log.Fatal(err)

0 commit comments

Comments
 (0)