Skip to content

Commit 06b69e3

Browse files
fix(client): use correct format specifier for header serialization
1 parent 2f27e31 commit 06b69e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

card.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func NewCardService(opts ...option.RequestOption) (r *CardService) {
5252
// `product_id` only apply to physical cards.
5353
func (r *CardService) New(ctx context.Context, params CardNewParams, opts ...option.RequestOption) (res *Card, err error) {
5454
if params.IdempotencyKey.Present {
55-
opts = append(opts, option.WithHeader("Idempotency-Key", fmt.Sprintf("%s", params.IdempotencyKey)))
55+
opts = append(opts, option.WithHeader("Idempotency-Key", fmt.Sprintf("%v", params.IdempotencyKey)))
5656
}
5757
opts = slices.Concat(r.Options, opts)
5858
path := "v1/cards"

financialaccount.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func NewFinancialAccountService(opts ...option.RequestOption) (r *FinancialAccou
5252
// Create a new financial account
5353
func (r *FinancialAccountService) New(ctx context.Context, params FinancialAccountNewParams, opts ...option.RequestOption) (res *FinancialAccount, err error) {
5454
if params.IdempotencyKey.Present {
55-
opts = append(opts, option.WithHeader("Idempotency-Key", fmt.Sprintf("%s", params.IdempotencyKey)))
55+
opts = append(opts, option.WithHeader("Idempotency-Key", fmt.Sprintf("%v", params.IdempotencyKey)))
5656
}
5757
opts = slices.Concat(r.Options, opts)
5858
path := "v1/financial_accounts"

0 commit comments

Comments
 (0)