Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for all checkout creation options #18

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
improve docs
PaulSonOfLars committed Jan 15, 2024
commit 700385ed734d8d2269b9a574c44399ccccc28309
3 changes: 3 additions & 0 deletions checkout.go
Original file line number Diff line number Diff line change
@@ -106,6 +106,9 @@ type CheckoutCreateData struct {
}

// CheckoutCreateOptions represents the checkout options for creating a checkout.
//
// Note: We use pointers for the boolean fields as otherwise, setting them to "false" would omit them, which would
// break some of the boolean checks in the API. See: https://docs.lemonsqueezy.com/api/checkouts#create-a-checkout
type CheckoutCreateOptions struct {
Embed *bool `json:"embed,omitempty"`
Media *bool `json:"media,omitempty"`