Skip to content

Commit

Permalink
Use GA endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen293 committed Apr 4, 2024
1 parent 251aa7c commit 5cd675a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 31 deletions.
2 changes: 1 addition & 1 deletion insurance.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,6 @@ func (c *Client) RefundInsurance(insuranceID string) (out *Insurance, err error)
// allows specifying a context that can interrupt the request.
func (c *Client) RefundInsuranceWithContext(ctx context.Context, insuranceID string) (out *Insurance, err error) {
// TODO: remove beta when endpoint is in GA.
err = c.post(ctx, "/beta/insurances/"+insuranceID+"/refund", nil, &out)
err = c.post(ctx, "insurances/"+insuranceID+"/refund", nil, &out)
return
}
58 changes: 28 additions & 30 deletions tests/cassettes/TestInsuranceRefund.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5cd675a

Please sign in to comment.