Component evidence

Stripe Active Entitlement Retrieval (entitlements_activeentitlement.go)

stripe-go · entitlements_activeentitlement.go · go · MIT
paymentsintegrationlang:gotag:knn-classifiedtag:entitlements

Defines request parameters and helpers to list and retrieve a customer's active entitlements through Stripe's API, enabling subscription entitlement checks in Go applications.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/stripe/stripe-go | License: MIT | Copyright 2014- Stripe, Inc. (https://stripe.com)
// Provided via justclaw.it.com; keep this notice with the code.
//
//
// File generated from our OpenAPI spec
//
//

package stripe

// Retrieve a list of active entitlements for a customer
type EntitlementsActiveEntitlementListParams struct {
	ListParams `form:"*"`
	// The ID of the customer.
	Customer *string `form:"customer" json:"customer"`
	// Specifies which fields in the response should be expanded.
	Expand []*string `form:"expand" json:"expand,omitempty"`
}

// AddExpand appends a new field to expand.
func (p *EntitlementsActiveEntitlementListParams) AddExpand(f string) {
	p.Expand = append(p.Expand, &f)
}

// Retrieve an active entitlement
type EntitlementsActiveEntit

... (truncated -- full source via MCP)