Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.449.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Dec 3, 2024
1 parent 4cbeab2 commit 8a42e83
Show file tree
Hide file tree
Showing 41 changed files with 282 additions and 267 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: 269b4377-e36b-42c4-9e18-aa74d5f13d72
management:
docChecksum: 6aebaa672c0b738e7b64d9a58495a0e3
docVersion: 3.2.5
speakeasyVersion: 1.448.0
generationVersion: 2.466.0
releaseVersion: 1.4.3
configChecksum: 2e662423510f87c862009d4e88495a84
docChecksum: 7d78aded4da1f2a8608472aeee6f28f1
docVersion: 3.3.0
speakeasyVersion: 1.449.0
generationVersion: 2.467.4
releaseVersion: 1.5.0
configChecksum: 988f1810cdfa71cb784100517cac9b78
repoURL: https://github.com/BoltApp/bolt-go.git
repoSubDirectory: .
installationURL: https://github.com/BoltApp/bolt-go
Expand Down
16 changes: 8 additions & 8 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.448.0
speakeasyVersion: 1.449.0
sources:
bolt-go-api:
sourceNamespace: bolt-go-api
sourceRevisionDigest: sha256:ad72b092f9f1cb9e61610aa0a7e5465de14f1fef3ace6aacaacc759d192990c6
sourceBlobDigest: sha256:886c47ec39cdcda7d16a6f7a6371e261223773a52c17990d85b34603de783d3b
sourceRevisionDigest: sha256:7a3c59759ac60fba7a758c2b68b081c2729c9af640d3a8009b17b5b674d1182e
sourceBlobDigest: sha256:ce756403cb129042cb09d118eaa9004b8b929926d8275faa3d07d85739d01b4a
tags:
- latest
- speakeasy-sdk-regen-1732666361
- 3.2.5
- speakeasy-sdk-regen-1733184839
- 3.3.0
targets:
bolt-go-sdk:
source: bolt-go-api
sourceNamespace: bolt-go-api
sourceRevisionDigest: sha256:ad72b092f9f1cb9e61610aa0a7e5465de14f1fef3ace6aacaacc759d192990c6
sourceBlobDigest: sha256:886c47ec39cdcda7d16a6f7a6371e261223773a52c17990d85b34603de783d3b
sourceRevisionDigest: sha256:7a3c59759ac60fba7a758c2b68b081c2729c9af640d3a8009b17b5b674d1182e
sourceBlobDigest: sha256:ce756403cb129042cb09d118eaa9004b8b929926d8275faa3d07d85739d01b4a
codeSamplesNamespace: bolt-go-api-code-samples
codeSamplesRevisionDigest: sha256:e4492256123d83e2623ba23384989d67c21cebd8cab87285d95fc6c10979188f
codeSamplesRevisionDigest: sha256:441e95631c97958948686d15775c188ba055614fa2e7cb6a0cebde57fc52e7ea
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
37 changes: 21 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,20 @@ Bolt API Reference: A comprehensive Bolt API reference for interacting with Acco

<!-- Start Table of Contents [toc] -->
## Table of Contents
<!-- $toc-max-depth=2 -->
* [Bolt Go SDK](#bolt-go-sdk)
* [SDK Installation](#sdk-installation)
* [SDK Example Usage](#sdk-example-usage)
* [Available Resources and Operations](#available-resources-and-operations)
* [Error Handling](#error-handling)
* [Server Selection](#server-selection)
* [Custom HTTP Client](#custom-http-client)
* [Authentication](#authentication)
* [Retries](#retries)
* [Development](#development)
* [Maturity](#maturity)
* [Contributions](#contributions)

* [SDK Installation](#sdk-installation)
* [SDK Example Usage](#sdk-example-usage)
* [Available Resources and Operations](#available-resources-and-operations)
* [Retries](#retries)
* [Error Handling](#error-handling)
* [Server Selection](#server-selection)
* [Custom HTTP Client](#custom-http-client)
* [Authentication](#authentication)
<!-- End Table of Contents [toc] -->

<!-- Start SDK Installation [installation] -->
Expand Down Expand Up @@ -58,7 +63,7 @@ func main() {
)

ctx := context.Background()
res, err := s.Account.GetDetails(ctx, "<value>", "<value>")
res, err := s.Account.GetDetails(ctx, "<value>", boltgo.String("<value>"))
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -153,7 +158,7 @@ func main() {
)

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

var e *sdkerrors.AccountGetResponseBody
Expand Down Expand Up @@ -204,7 +209,7 @@ func main() {
)

ctx := context.Background()
res, err := s.Account.GetDetails(ctx, "<value>", "<value>")
res, err := s.Account.GetDetails(ctx, "<value>", boltgo.String("<value>"))
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -277,7 +282,7 @@ func main() {
)

ctx := context.Background()
res, err := s.Account.GetDetails(ctx, "<value>", "<value>")
res, err := s.Account.GetDetails(ctx, "<value>", boltgo.String("<value>"))
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -308,7 +313,7 @@ func main() {
ctx := context.Background()
res, err := s.Payments.Guest.Initialize(ctx, operations.GuestPaymentsInitializeSecurity{
APIKey: "<YOUR_API_KEY_HERE>",
}, "<value>", "<value>", components.GuestPaymentInitializeRequest{
}, "<value>", components.GuestPaymentInitializeRequest{
Profile: components.ProfileCreationData{
CreateAccount: true,
FirstName: "Alice",
Expand Down Expand Up @@ -400,7 +405,7 @@ func main() {
Token: "a1B2c3D4e5F6G7H8i9J0k1L2m3N4o5P6Q7r8S9t0",
},
),
})
}, boltgo.String("<value>"))
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -439,7 +444,7 @@ func main() {
)

ctx := context.Background()
res, err := s.Account.GetDetails(ctx, "<value>", "<value>", operations.WithRetries(
res, err := s.Account.GetDetails(ctx, "<value>", boltgo.String("<value>"), operations.WithRetries(
retry.Config{
Strategy: "backoff",
Backoff: &retry.BackoffStrategy{
Expand Down Expand Up @@ -492,7 +497,7 @@ func main() {
)

ctx := context.Background()
res, err := s.Account.GetDetails(ctx, "<value>", "<value>")
res, err := s.Account.GetDetails(ctx, "<value>", boltgo.String("<value>"))
if err != nil {
log.Fatal(err)
}
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,14 @@ Based on:
### Generated
- [go v1.4.3] .
### Releases
- [Go v1.4.3] https://github.com/BoltApp/bolt-go/releases/tag/v1.4.3 - .
- [Go v1.4.3] https://github.com/BoltApp/bolt-go/releases/tag/v1.4.3 - .

## 2024-12-03 00:13:57
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.449.0 (2.467.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [go v1.5.0] .
### Releases
- [Go v1.5.0] https://github.com/BoltApp/bolt-go/releases/tag/v1.5.0 - .
2 changes: 1 addition & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func main() {
)

ctx := context.Background()
res, err := s.Account.GetDetails(ctx, "<value>", "<value>")
res, err := s.Account.GetDetails(ctx, "<value>", boltgo.String("<value>"))
if err != nil {
log.Fatal(err)
}
Expand Down
12 changes: 6 additions & 6 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func newAccount(sdkConfig sdkConfiguration) *Account {

// GetDetails - Retrieve account details
// Retrieve a shopper's account details, such as addresses and payment information. The account's details are filtered to be relevant to your merchant account, and some fields may be missing for some accounts. See the schema for details.
func (s *Account) GetDetails(ctx context.Context, xPublishableKey string, xMerchantClientID string, opts ...operations.Option) (*operations.AccountGetResponse, error) {
func (s *Account) GetDetails(ctx context.Context, xPublishableKey string, xMerchantClientID *string, opts ...operations.Option) (*operations.AccountGetResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "accountGet",
Expand Down Expand Up @@ -236,7 +236,7 @@ func (s *Account) GetDetails(ctx context.Context, xPublishableKey string, xMerch

// AddAddress - Add an address
// Add an address to the shopper's account
func (s *Account) AddAddress(ctx context.Context, xPublishableKey string, xMerchantClientID string, addressListing components.AddressListingInput, opts ...operations.Option) (*operations.AccountAddressCreateResponse, error) {
func (s *Account) AddAddress(ctx context.Context, xPublishableKey string, addressListing components.AddressListingInput, xMerchantClientID *string, opts ...operations.Option) (*operations.AccountAddressCreateResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "accountAddressCreate",
Expand Down Expand Up @@ -450,7 +450,7 @@ func (s *Account) AddAddress(ctx context.Context, xPublishableKey string, xMerch

// UpdateAddress - Edit an existing address
// Edit an existing address on the shopper's account. This does not edit addresses that are already associated with other resources, such as transactions or shipments.
func (s *Account) UpdateAddress(ctx context.Context, id string, xPublishableKey string, xMerchantClientID string, addressListing components.AddressListingInput, opts ...operations.Option) (*operations.AccountAddressEditResponse, error) {
func (s *Account) UpdateAddress(ctx context.Context, id string, xPublishableKey string, addressListing components.AddressListingInput, xMerchantClientID *string, opts ...operations.Option) (*operations.AccountAddressEditResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "accountAddressEdit",
Expand Down Expand Up @@ -665,7 +665,7 @@ func (s *Account) UpdateAddress(ctx context.Context, id string, xPublishableKey

// DeleteAddress - Delete an existing address
// Delete an existing address. Deleting an address does not invalidate or remove the address from transactions or shipments that are associated with it.
func (s *Account) DeleteAddress(ctx context.Context, id string, xPublishableKey string, xMerchantClientID string, opts ...operations.Option) (*operations.AccountAddressDeleteResponse, error) {
func (s *Account) DeleteAddress(ctx context.Context, id string, xPublishableKey string, xMerchantClientID *string, opts ...operations.Option) (*operations.AccountAddressDeleteResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "accountAddressDelete",
Expand Down Expand Up @@ -854,7 +854,7 @@ func (s *Account) DeleteAddress(ctx context.Context, id string, xPublishableKey

// AddPaymentMethod - Add a payment method
// Add a payment method to a shopper's Bolt Account Wallet. For security purposes, this request must come from your backend. <br/> **Note**: Before using this API, the credit card details must be tokenized by Bolt's credit card tokenization service. Please review our [Bolt Payment Field Component](https://help.bolt.com/products/ignite/api-implementation/#enhance-payments) or [Install the Bolt Tokenizer](https://help.bolt.com/developers/references/bolt-tokenizer) documentation.
func (s *Account) AddPaymentMethod(ctx context.Context, xPublishableKey string, xMerchantClientID string, paymentMethod components.PaymentMethodInput, opts ...operations.Option) (*operations.AccountAddPaymentMethodResponse, error) {
func (s *Account) AddPaymentMethod(ctx context.Context, xPublishableKey string, paymentMethod components.PaymentMethodInput, xMerchantClientID *string, opts ...operations.Option) (*operations.AccountAddPaymentMethodResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "accountAddPaymentMethod",
Expand Down Expand Up @@ -1068,7 +1068,7 @@ func (s *Account) AddPaymentMethod(ctx context.Context, xPublishableKey string,

// DeletePaymentMethod - Delete an existing payment method
// Delete an existing payment method. Deleting a payment method does not invalidate or remove it from transactions or orders that are associated with it.
func (s *Account) DeletePaymentMethod(ctx context.Context, id string, xPublishableKey string, xMerchantClientID string, opts ...operations.Option) (*operations.AccountPaymentMethodDeleteResponse, error) {
func (s *Account) DeletePaymentMethod(ctx context.Context, id string, xPublishableKey string, xMerchantClientID *string, opts ...operations.Option) (*operations.AccountPaymentMethodDeleteResponse, error) {
hookCtx := hooks.HookContext{
Context: ctx,
OperationID: "accountPaymentMethodDelete",
Expand Down
8 changes: 4 additions & 4 deletions boltsdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ func New(opts ...SDKOption) *BoltSDK {
sdk := &BoltSDK{
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "3.2.5",
SDKVersion: "1.4.3",
GenVersion: "2.466.0",
UserAgent: "speakeasy-sdk/go 1.4.3 2.466.0 3.2.5 github.com/BoltApp/bolt-go",
OpenAPIDocVersion: "3.3.0",
SDKVersion: "1.5.0",
GenVersion: "2.467.4",
UserAgent: "speakeasy-sdk/go 1.5.0 2.467.4 3.3.0 github.com/BoltApp/bolt-go",
ServerDefaults: []map[string]string{
{
"environment": "api-sandbox",
Expand Down
Loading

0 comments on commit 8a42e83

Please sign in to comment.