Versions in this module Expand all Collapse all v0 v0.2.0 Nov 24, 2026 v0.1.0 Nov 24, 2026 Changes in this version + func NewAcceptQuoteRequest(server string, quote QuoteId) (*http.Request, error) + func NewAddWebhookEndpointRequest(server string, body AddWebhookEndpointJSONRequestBody) (*http.Request, error) + func NewAddWebhookEndpointRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewApplyCouponRequest(server string, id Id, body ApplyCouponJSONRequestBody) (*http.Request, error) + func NewApplyCouponRequestWithBody(server string, id Id, contentType string, body io.Reader) (*http.Request, error) + func NewCancelCheckoutRequest(server string, checkout openapi_types.UUID) (*http.Request, error) + func NewCancelUpgradeRequest(server string, id Id) (*http.Request, error) + func NewCreateCreditNoteRequest(server string, invoice InvoiceId, body CreateCreditNoteJSONRequestBody) (*http.Request, error) + func NewCreateCreditNoteRequestWithBody(server string, invoice InvoiceId, contentType string, body io.Reader) (*http.Request, error) + func NewCreateQuoteRequest(server string, body CreateQuoteJSONRequestBody) (*http.Request, error) + func NewCreateQuoteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewCreateRefundRequest(server string, invoice InvoiceId, body CreateRefundJSONRequestBody) (*http.Request, error) + func NewCreateRefundRequestWithBody(server string, invoice InvoiceId, contentType string, body io.Reader) (*http.Request, error) + func NewDeleteCouponRequest(server string, code Code) (*http.Request, error) + func NewDeleteFeatureRequest(server string, code Code) (*http.Request, error) + func NewDeleteMeterRequest(server string, code Code) (*http.Request, error) + func NewDeletePlanRequest(server string, code Code) (*http.Request, error) + func NewGetCheckoutRequest(server string, checkout openapi_types.UUID) (*http.Request, error) + func NewGetCreditNoteRequest(server string, creditNote CreditNoteId) (*http.Request, error) + func NewGetCustomerRequest(server string, id Id) (*http.Request, error) + func NewGetEntitlementsRequest(server string, id Id) (*http.Request, error) + func NewGetInvoicePdfRequest(server string, invoice InvoiceId) (*http.Request, error) + func NewGetInvoiceRequest(server string, invoice InvoiceId) (*http.Request, error) + func NewGetLockRequest(server string) (*http.Request, error) + func NewGetMeterRequest(server string, code Code) (*http.Request, error) + func NewGetPaymentSettingsRequest(server string) (*http.Request, error) + func NewGetPlanRequest(server string, code Code) (*http.Request, error) + func NewGetQuoteRequest(server string, quote QuoteId) (*http.Request, error) + func NewGetSubscriptionRequest(server string, id Id) (*http.Request, error) + func NewGetSummaryRequest(server string, params *GetSummaryParams) (*http.Request, error) + func NewListAppsRequest(server string) (*http.Request, error) + func NewListCouponsRequest(server string, params *ListCouponsParams) (*http.Request, error) + func NewListCreditNotesRequest(server string, params *ListCreditNotesParams) (*http.Request, error) + func NewListCustomersRequest(server string, params *ListCustomersParams) (*http.Request, error) + func NewListFeaturesRequest(server string, params *ListFeaturesParams) (*http.Request, error) + func NewListInvoiceCreditNotesRequest(server string, invoice InvoiceId) (*http.Request, error) + func NewListInvoicesRequest(server string, params *ListInvoicesParams) (*http.Request, error) + func NewListMetersRequest(server string, params *ListMetersParams) (*http.Request, error) + func NewListPaymentsRequest(server string, invoice InvoiceId) (*http.Request, error) + func NewListPlansRequest(server string, params *ListPlansParams) (*http.Request, error) + func NewListRefundsRequest(server string, invoice InvoiceId) (*http.Request, error) + func NewListSubscriptionsRequest(server string, params *ListSubscriptionsParams) (*http.Request, error) + func NewListWebhookEndpointsRequest(server string) (*http.Request, error) + func NewPutAppForwardRequest(server string, app AppId, body PutAppForwardJSONRequestBody) (*http.Request, error) + func NewPutAppForwardRequestWithBody(server string, app AppId, contentType string, body io.Reader) (*http.Request, error) + func NewPutCouponRequest(server string, code Code, body PutCouponJSONRequestBody) (*http.Request, error) + func NewPutCouponRequestWithBody(server string, code Code, contentType string, body io.Reader) (*http.Request, error) + func NewPutCustomerRequest(server string, id Id, body PutCustomerJSONRequestBody) (*http.Request, error) + func NewPutCustomerRequestWithBody(server string, id Id, contentType string, body io.Reader) (*http.Request, error) + func NewPutFeatureRequest(server string, code Code, body PutFeatureJSONRequestBody) (*http.Request, error) + func NewPutFeatureRequestWithBody(server string, code Code, contentType string, body io.Reader) (*http.Request, error) + func NewPutLockRequest(server string, body PutLockJSONRequestBody) (*http.Request, error) + func NewPutLockRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewPutMeterRequest(server string, code Code, body PutMeterJSONRequestBody) (*http.Request, error) + func NewPutMeterRequestWithBody(server string, code Code, contentType string, body io.Reader) (*http.Request, error) + func NewPutPaymentSettingsRequest(server string, body PutPaymentSettingsJSONRequestBody) (*http.Request, error) + func NewPutPaymentSettingsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewPutPlanRequest(server string, code Code, body PutPlanJSONRequestBody) (*http.Request, error) + func NewPutPlanRequestWithBody(server string, code Code, contentType string, body io.Reader) (*http.Request, error) + func NewPutSubscriptionRequest(server string, id Id, body PutSubscriptionJSONRequestBody) (*http.Request, error) + func NewPutSubscriptionRequestWithBody(server string, id Id, contentType string, body io.Reader) (*http.Request, error) + func NewRecordEventsRequest(server string, body RecordEventsJSONRequestBody) (*http.Request, error) + func NewRecordEventsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewRecordPaymentRequest(server string, invoice InvoiceId, body RecordPaymentJSONRequestBody) (*http.Request, error) + func NewRecordPaymentRequestWithBody(server string, invoice InvoiceId, contentType string, body io.Reader) (*http.Request, error) + func NewRemoveWebhookEndpointRequest(server string, endpoint string) (*http.Request, error) + func NewSetSeatsRequest(server string, id Id, body SetSeatsJSONRequestBody) (*http.Request, error) + func NewSetSeatsRequestWithBody(server string, id Id, contentType string, body io.Reader) (*http.Request, error) + func NewStartCheckoutRequest(server string, invoice InvoiceId, body StartCheckoutJSONRequestBody) (*http.Request, error) + func NewStartCheckoutRequestWithBody(server string, invoice InvoiceId, contentType string, body io.Reader) (*http.Request, error) + func NewTerminateSubscriptionRequest(server string, id Id) (*http.Request, error) + type AcceptQuoteResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseAcceptQuoteResponse(rsp *http.Response) (*AcceptQuoteResponse, error) + func (r AcceptQuoteResponse) ContentType() string + func (r AcceptQuoteResponse) GetBody() []byte + func (r AcceptQuoteResponse) GetJSON200() ... + func (r AcceptQuoteResponse) GetJSONDefault() *Failure + func (r AcceptQuoteResponse) Status() string + func (r AcceptQuoteResponse) StatusCode() int + type AddOn struct + Plan string + Seats *int + type AddWebhookEndpointJSONBody struct + Url string + type AddWebhookEndpointJSONRequestBody AddWebhookEndpointJSONBody + type AddWebhookEndpointResponse struct + Body []byte + HTTPResponse *http.Response + JSON201 ... + JSONDefault *Failure + func ParseAddWebhookEndpointResponse(rsp *http.Response) (*AddWebhookEndpointResponse, error) + func (r AddWebhookEndpointResponse) ContentType() string + func (r AddWebhookEndpointResponse) GetBody() []byte + func (r AddWebhookEndpointResponse) GetJSON201() ... + func (r AddWebhookEndpointResponse) GetJSONDefault() *Failure + func (r AddWebhookEndpointResponse) Status() string + func (r AddWebhookEndpointResponse) StatusCode() int + type Address struct + City *string + Country *string + Line1 *string + Line2 *string + State *string + Zip *string + type App struct + Caps struct{ ... } + Currencies []string + Fields []struct{ ... } + ForwardUrl *string + Forwards bool + Id string + Installed bool + Name string + RejectedAt *time.Time + Settings map[string]string + WebhookUrl string + type AppId = string + type ApplyCouponJSONBody struct + Code string + type ApplyCouponJSONRequestBody ApplyCouponJSONBody + type ApplyCouponResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *Done + JSONDefault *Failure + func ParseApplyCouponResponse(rsp *http.Response) (*ApplyCouponResponse, error) + func (r ApplyCouponResponse) ContentType() string + func (r ApplyCouponResponse) GetBody() []byte + func (r ApplyCouponResponse) GetJSON200() *Done + func (r ApplyCouponResponse) GetJSONDefault() *Failure + func (r ApplyCouponResponse) Status() string + func (r ApplyCouponResponse) StatusCode() int + type CancelCheckoutResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseCancelCheckoutResponse(rsp *http.Response) (*CancelCheckoutResponse, error) + func (r CancelCheckoutResponse) ContentType() string + func (r CancelCheckoutResponse) GetBody() []byte + func (r CancelCheckoutResponse) GetJSON200() ... + func (r CancelCheckoutResponse) GetJSONDefault() *Failure + func (r CancelCheckoutResponse) Status() string + func (r CancelCheckoutResponse) StatusCode() int + type CancelUpgradeResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseCancelUpgradeResponse(rsp *http.Response) (*CancelUpgradeResponse, error) + func (r CancelUpgradeResponse) ContentType() string + func (r CancelUpgradeResponse) GetBody() []byte + func (r CancelUpgradeResponse) GetJSON200() ... + func (r CancelUpgradeResponse) GetJSONDefault() *Failure + func (r CancelUpgradeResponse) Status() string + func (r CancelUpgradeResponse) StatusCode() int + type Charge struct + Meter string + Model ChargeModel + Price *Rate + Tiers *[]Tier + type ChargeModel string + const Graduated + const PerUnit + func (e ChargeModel) Valid() bool + type Checkout struct + Amount Money + App *string + ExpiresAt time.Time + Id string + Invoice string + PaidAt *time.Time + PayerUrl *string + RecordedAt time.Time + Reference string + Status CheckoutStatus + type CheckoutBody struct + Amount *Money + App string + Reference string + ReturnUrl string + type CheckoutStatus string + const CheckoutStatusAuthorized + const CheckoutStatusCancelled + const CheckoutStatusExpired + const CheckoutStatusFailed + const CheckoutStatusPending + const CheckoutStatusSucceeded + func (e CheckoutStatus) Valid() bool + type Client struct + Client HttpRequestDoer + RequestEditors []RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) AcceptQuote(ctx context.Context, quote QuoteId, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) AddWebhookEndpoint(ctx context.Context, body AddWebhookEndpointJSONRequestBody, ...) (*http.Response, error) + func (c *Client) AddWebhookEndpointWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) ApplyCoupon(ctx context.Context, id Id, body ApplyCouponJSONRequestBody, ...) (*http.Response, error) + func (c *Client) ApplyCouponWithBody(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) CancelCheckout(ctx context.Context, checkout openapi_types.UUID, ...) (*http.Response, error) + func (c *Client) CancelUpgrade(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) CreateCreditNote(ctx context.Context, invoice InvoiceId, body CreateCreditNoteJSONRequestBody, ...) (*http.Response, error) + func (c *Client) CreateCreditNoteWithBody(ctx context.Context, invoice InvoiceId, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) CreateQuote(ctx context.Context, body CreateQuoteJSONRequestBody, ...) (*http.Response, error) + func (c *Client) CreateQuoteWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) CreateRefund(ctx context.Context, invoice InvoiceId, body CreateRefundJSONRequestBody, ...) (*http.Response, error) + func (c *Client) CreateRefundWithBody(ctx context.Context, invoice InvoiceId, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) DeleteCoupon(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) DeleteFeature(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) DeleteMeter(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) DeletePlan(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) GetCheckout(ctx context.Context, checkout openapi_types.UUID, ...) (*http.Response, error) + func (c *Client) GetCreditNote(ctx context.Context, creditNote CreditNoteId, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) GetCustomer(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) GetEntitlements(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) GetInvoice(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) GetInvoicePdf(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) GetLock(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) GetMeter(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) GetPaymentSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) GetPlan(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) GetQuote(ctx context.Context, quote QuoteId, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) GetSubscription(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) GetSummary(ctx context.Context, params *GetSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) ListApps(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) ListCoupons(ctx context.Context, params *ListCouponsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) ListCreditNotes(ctx context.Context, params *ListCreditNotesParams, ...) (*http.Response, error) + func (c *Client) ListCustomers(ctx context.Context, params *ListCustomersParams, ...) (*http.Response, error) + func (c *Client) ListFeatures(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) ListInvoiceCreditNotes(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) ListInvoices(ctx context.Context, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) ListMeters(ctx context.Context, params *ListMetersParams, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) ListPayments(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) ListPlans(ctx context.Context, params *ListPlansParams, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) ListRefunds(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) ListSubscriptions(ctx context.Context, params *ListSubscriptionsParams, ...) (*http.Response, error) + func (c *Client) ListWebhookEndpoints(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) PutAppForward(ctx context.Context, app AppId, body PutAppForwardJSONRequestBody, ...) (*http.Response, error) + func (c *Client) PutAppForwardWithBody(ctx context.Context, app AppId, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) PutCoupon(ctx context.Context, code Code, body PutCouponJSONRequestBody, ...) (*http.Response, error) + func (c *Client) PutCouponWithBody(ctx context.Context, code Code, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) PutCustomer(ctx context.Context, id Id, body PutCustomerJSONRequestBody, ...) (*http.Response, error) + func (c *Client) PutCustomerWithBody(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) PutFeature(ctx context.Context, code Code, body PutFeatureJSONRequestBody, ...) (*http.Response, error) + func (c *Client) PutFeatureWithBody(ctx context.Context, code Code, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) PutLock(ctx context.Context, body PutLockJSONRequestBody, ...) (*http.Response, error) + func (c *Client) PutLockWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) PutMeter(ctx context.Context, code Code, body PutMeterJSONRequestBody, ...) (*http.Response, error) + func (c *Client) PutMeterWithBody(ctx context.Context, code Code, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) PutPaymentSettings(ctx context.Context, body PutPaymentSettingsJSONRequestBody, ...) (*http.Response, error) + func (c *Client) PutPaymentSettingsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) PutPlan(ctx context.Context, code Code, body PutPlanJSONRequestBody, ...) (*http.Response, error) + func (c *Client) PutPlanWithBody(ctx context.Context, code Code, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) PutSubscription(ctx context.Context, id Id, body PutSubscriptionJSONRequestBody, ...) (*http.Response, error) + func (c *Client) PutSubscriptionWithBody(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) RecordEvents(ctx context.Context, body RecordEventsJSONRequestBody, ...) (*http.Response, error) + func (c *Client) RecordEventsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) RecordPayment(ctx context.Context, invoice InvoiceId, body RecordPaymentJSONRequestBody, ...) (*http.Response, error) + func (c *Client) RecordPaymentWithBody(ctx context.Context, invoice InvoiceId, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) RemoveWebhookEndpoint(ctx context.Context, endpoint string, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) SetSeats(ctx context.Context, id Id, body SetSeatsJSONRequestBody, ...) (*http.Response, error) + func (c *Client) SetSeatsWithBody(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) StartCheckout(ctx context.Context, invoice InvoiceId, body StartCheckoutJSONRequestBody, ...) (*http.Response, error) + func (c *Client) StartCheckoutWithBody(ctx context.Context, invoice InvoiceId, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) TerminateSubscription(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error) + type ClientInterface interface + AcceptQuote func(ctx context.Context, quote QuoteId, reqEditors ...RequestEditorFn) (*http.Response, error) + AddWebhookEndpoint func(ctx context.Context, body AddWebhookEndpointJSONRequestBody, ...) (*http.Response, error) + AddWebhookEndpointWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + ApplyCoupon func(ctx context.Context, id Id, body ApplyCouponJSONRequestBody, ...) (*http.Response, error) + ApplyCouponWithBody func(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*http.Response, error) + CancelCheckout func(ctx context.Context, checkout openapi_types.UUID, ...) (*http.Response, error) + CancelUpgrade func(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error) + CreateCreditNote func(ctx context.Context, invoice InvoiceId, body CreateCreditNoteJSONRequestBody, ...) (*http.Response, error) + CreateCreditNoteWithBody func(ctx context.Context, invoice InvoiceId, contentType string, body io.Reader, ...) (*http.Response, error) + CreateQuote func(ctx context.Context, body CreateQuoteJSONRequestBody, ...) (*http.Response, error) + CreateQuoteWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + CreateRefund func(ctx context.Context, invoice InvoiceId, body CreateRefundJSONRequestBody, ...) (*http.Response, error) + CreateRefundWithBody func(ctx context.Context, invoice InvoiceId, contentType string, body io.Reader, ...) (*http.Response, error) + DeleteCoupon func(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*http.Response, error) + DeleteFeature func(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*http.Response, error) + DeleteMeter func(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*http.Response, error) + DeletePlan func(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*http.Response, error) + GetCheckout func(ctx context.Context, checkout openapi_types.UUID, ...) (*http.Response, error) + GetCreditNote func(ctx context.Context, creditNote CreditNoteId, reqEditors ...RequestEditorFn) (*http.Response, error) + GetCustomer func(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error) + GetEntitlements func(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error) + GetInvoice func(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*http.Response, error) + GetInvoicePdf func(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*http.Response, error) + GetLock func(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + GetMeter func(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*http.Response, error) + GetPaymentSettings func(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + GetPlan func(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*http.Response, error) + GetQuote func(ctx context.Context, quote QuoteId, reqEditors ...RequestEditorFn) (*http.Response, error) + GetSubscription func(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error) + GetSummary func(ctx context.Context, params *GetSummaryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListApps func(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + ListCoupons func(ctx context.Context, params *ListCouponsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListCreditNotes func(ctx context.Context, params *ListCreditNotesParams, ...) (*http.Response, error) + ListCustomers func(ctx context.Context, params *ListCustomersParams, ...) (*http.Response, error) + ListFeatures func(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListInvoiceCreditNotes func(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*http.Response, error) + ListInvoices func(ctx context.Context, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListMeters func(ctx context.Context, params *ListMetersParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListPayments func(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*http.Response, error) + ListPlans func(ctx context.Context, params *ListPlansParams, reqEditors ...RequestEditorFn) (*http.Response, error) + ListRefunds func(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*http.Response, error) + ListSubscriptions func(ctx context.Context, params *ListSubscriptionsParams, ...) (*http.Response, error) + ListWebhookEndpoints func(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + PutAppForward func(ctx context.Context, app AppId, body PutAppForwardJSONRequestBody, ...) (*http.Response, error) + PutAppForwardWithBody func(ctx context.Context, app AppId, contentType string, body io.Reader, ...) (*http.Response, error) + PutCoupon func(ctx context.Context, code Code, body PutCouponJSONRequestBody, ...) (*http.Response, error) + PutCouponWithBody func(ctx context.Context, code Code, contentType string, body io.Reader, ...) (*http.Response, error) + PutCustomer func(ctx context.Context, id Id, body PutCustomerJSONRequestBody, ...) (*http.Response, error) + PutCustomerWithBody func(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*http.Response, error) + PutFeature func(ctx context.Context, code Code, body PutFeatureJSONRequestBody, ...) (*http.Response, error) + PutFeatureWithBody func(ctx context.Context, code Code, contentType string, body io.Reader, ...) (*http.Response, error) + PutLock func(ctx context.Context, body PutLockJSONRequestBody, ...) (*http.Response, error) + PutLockWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + PutMeter func(ctx context.Context, code Code, body PutMeterJSONRequestBody, ...) (*http.Response, error) + PutMeterWithBody func(ctx context.Context, code Code, contentType string, body io.Reader, ...) (*http.Response, error) + PutPaymentSettings func(ctx context.Context, body PutPaymentSettingsJSONRequestBody, ...) (*http.Response, error) + PutPaymentSettingsWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + PutPlan func(ctx context.Context, code Code, body PutPlanJSONRequestBody, ...) (*http.Response, error) + PutPlanWithBody func(ctx context.Context, code Code, contentType string, body io.Reader, ...) (*http.Response, error) + PutSubscription func(ctx context.Context, id Id, body PutSubscriptionJSONRequestBody, ...) (*http.Response, error) + PutSubscriptionWithBody func(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*http.Response, error) + RecordEvents func(ctx context.Context, body RecordEventsJSONRequestBody, ...) (*http.Response, error) + RecordEventsWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + RecordPayment func(ctx context.Context, invoice InvoiceId, body RecordPaymentJSONRequestBody, ...) (*http.Response, error) + RecordPaymentWithBody func(ctx context.Context, invoice InvoiceId, contentType string, body io.Reader, ...) (*http.Response, error) + RemoveWebhookEndpoint func(ctx context.Context, endpoint string, reqEditors ...RequestEditorFn) (*http.Response, error) + SetSeats func(ctx context.Context, id Id, body SetSeatsJSONRequestBody, ...) (*http.Response, error) + SetSeatsWithBody func(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*http.Response, error) + StartCheckout func(ctx context.Context, invoice InvoiceId, body StartCheckoutJSONRequestBody, ...) (*http.Response, error) + StartCheckoutWithBody func(ctx context.Context, invoice InvoiceId, contentType string, body io.Reader, ...) (*http.Response, error) + TerminateSubscription func(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*http.Response, error) + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(doer HttpRequestDoer) ClientOption + func WithRequestEditorFn(fn RequestEditorFn) ClientOption + type ClientWithResponses struct + func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) + func (c *ClientWithResponses) AcceptQuoteWithResponse(ctx context.Context, quote QuoteId, reqEditors ...RequestEditorFn) (*AcceptQuoteResponse, error) + func (c *ClientWithResponses) AddWebhookEndpointWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddWebhookEndpointResponse, error) + func (c *ClientWithResponses) AddWebhookEndpointWithResponse(ctx context.Context, body AddWebhookEndpointJSONRequestBody, ...) (*AddWebhookEndpointResponse, error) + func (c *ClientWithResponses) ApplyCouponWithBodyWithResponse(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*ApplyCouponResponse, error) + func (c *ClientWithResponses) ApplyCouponWithResponse(ctx context.Context, id Id, body ApplyCouponJSONRequestBody, ...) (*ApplyCouponResponse, error) + func (c *ClientWithResponses) CancelCheckoutWithResponse(ctx context.Context, checkout openapi_types.UUID, ...) (*CancelCheckoutResponse, error) + func (c *ClientWithResponses) CancelUpgradeWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*CancelUpgradeResponse, error) + func (c *ClientWithResponses) CreateCreditNoteWithBodyWithResponse(ctx context.Context, invoice InvoiceId, contentType string, body io.Reader, ...) (*CreateCreditNoteResponse, error) + func (c *ClientWithResponses) CreateCreditNoteWithResponse(ctx context.Context, invoice InvoiceId, body CreateCreditNoteJSONRequestBody, ...) (*CreateCreditNoteResponse, error) + func (c *ClientWithResponses) CreateQuoteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateQuoteResponse, error) + func (c *ClientWithResponses) CreateQuoteWithResponse(ctx context.Context, body CreateQuoteJSONRequestBody, ...) (*CreateQuoteResponse, error) + func (c *ClientWithResponses) CreateRefundWithBodyWithResponse(ctx context.Context, invoice InvoiceId, contentType string, body io.Reader, ...) (*CreateRefundResponse, error) + func (c *ClientWithResponses) CreateRefundWithResponse(ctx context.Context, invoice InvoiceId, body CreateRefundJSONRequestBody, ...) (*CreateRefundResponse, error) + func (c *ClientWithResponses) DeleteCouponWithResponse(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*DeleteCouponResponse, error) + func (c *ClientWithResponses) DeleteFeatureWithResponse(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*DeleteFeatureResponse, error) + func (c *ClientWithResponses) DeleteMeterWithResponse(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*DeleteMeterResponse, error) + func (c *ClientWithResponses) DeletePlanWithResponse(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*DeletePlanResponse, error) + func (c *ClientWithResponses) GetCheckoutWithResponse(ctx context.Context, checkout openapi_types.UUID, ...) (*GetCheckoutResponse, error) + func (c *ClientWithResponses) GetCreditNoteWithResponse(ctx context.Context, creditNote CreditNoteId, reqEditors ...RequestEditorFn) (*GetCreditNoteResponse, error) + func (c *ClientWithResponses) GetCustomerWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*GetCustomerResponse, error) + func (c *ClientWithResponses) GetEntitlementsWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*GetEntitlementsResponse, error) + func (c *ClientWithResponses) GetInvoicePdfWithResponse(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*GetInvoicePdfResponse, error) + func (c *ClientWithResponses) GetInvoiceWithResponse(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*GetInvoiceResponse, error) + func (c *ClientWithResponses) GetLockWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLockResponse, error) + func (c *ClientWithResponses) GetMeterWithResponse(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*GetMeterResponse, error) + func (c *ClientWithResponses) GetPaymentSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPaymentSettingsResponse, error) + func (c *ClientWithResponses) GetPlanWithResponse(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*GetPlanResponse, error) + func (c *ClientWithResponses) GetQuoteWithResponse(ctx context.Context, quote QuoteId, reqEditors ...RequestEditorFn) (*GetQuoteResponse, error) + func (c *ClientWithResponses) GetSubscriptionWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*GetSubscriptionResponse, error) + func (c *ClientWithResponses) GetSummaryWithResponse(ctx context.Context, params *GetSummaryParams, reqEditors ...RequestEditorFn) (*GetSummaryResponse, error) + func (c *ClientWithResponses) ListAppsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAppsResponse, error) + func (c *ClientWithResponses) ListCouponsWithResponse(ctx context.Context, params *ListCouponsParams, reqEditors ...RequestEditorFn) (*ListCouponsResponse, error) + func (c *ClientWithResponses) ListCreditNotesWithResponse(ctx context.Context, params *ListCreditNotesParams, ...) (*ListCreditNotesResponse, error) + func (c *ClientWithResponses) ListCustomersWithResponse(ctx context.Context, params *ListCustomersParams, ...) (*ListCustomersResponse, error) + func (c *ClientWithResponses) ListFeaturesWithResponse(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*ListFeaturesResponse, error) + func (c *ClientWithResponses) ListInvoiceCreditNotesWithResponse(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*ListInvoiceCreditNotesResponse, error) + func (c *ClientWithResponses) ListInvoicesWithResponse(ctx context.Context, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*ListInvoicesResponse, error) + func (c *ClientWithResponses) ListMetersWithResponse(ctx context.Context, params *ListMetersParams, reqEditors ...RequestEditorFn) (*ListMetersResponse, error) + func (c *ClientWithResponses) ListPaymentsWithResponse(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*ListPaymentsResponse, error) + func (c *ClientWithResponses) ListPlansWithResponse(ctx context.Context, params *ListPlansParams, reqEditors ...RequestEditorFn) (*ListPlansResponse, error) + func (c *ClientWithResponses) ListRefundsWithResponse(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*ListRefundsResponse, error) + func (c *ClientWithResponses) ListSubscriptionsWithResponse(ctx context.Context, params *ListSubscriptionsParams, ...) (*ListSubscriptionsResponse, error) + func (c *ClientWithResponses) ListWebhookEndpointsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListWebhookEndpointsResponse, error) + func (c *ClientWithResponses) PutAppForwardWithBodyWithResponse(ctx context.Context, app AppId, contentType string, body io.Reader, ...) (*PutAppForwardResponse, error) + func (c *ClientWithResponses) PutAppForwardWithResponse(ctx context.Context, app AppId, body PutAppForwardJSONRequestBody, ...) (*PutAppForwardResponse, error) + func (c *ClientWithResponses) PutCouponWithBodyWithResponse(ctx context.Context, code Code, contentType string, body io.Reader, ...) (*PutCouponResponse, error) + func (c *ClientWithResponses) PutCouponWithResponse(ctx context.Context, code Code, body PutCouponJSONRequestBody, ...) (*PutCouponResponse, error) + func (c *ClientWithResponses) PutCustomerWithBodyWithResponse(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*PutCustomerResponse, error) + func (c *ClientWithResponses) PutCustomerWithResponse(ctx context.Context, id Id, body PutCustomerJSONRequestBody, ...) (*PutCustomerResponse, error) + func (c *ClientWithResponses) PutFeatureWithBodyWithResponse(ctx context.Context, code Code, contentType string, body io.Reader, ...) (*PutFeatureResponse, error) + func (c *ClientWithResponses) PutFeatureWithResponse(ctx context.Context, code Code, body PutFeatureJSONRequestBody, ...) (*PutFeatureResponse, error) + func (c *ClientWithResponses) PutLockWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PutLockResponse, error) + func (c *ClientWithResponses) PutLockWithResponse(ctx context.Context, body PutLockJSONRequestBody, ...) (*PutLockResponse, error) + func (c *ClientWithResponses) PutMeterWithBodyWithResponse(ctx context.Context, code Code, contentType string, body io.Reader, ...) (*PutMeterResponse, error) + func (c *ClientWithResponses) PutMeterWithResponse(ctx context.Context, code Code, body PutMeterJSONRequestBody, ...) (*PutMeterResponse, error) + func (c *ClientWithResponses) PutPaymentSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PutPaymentSettingsResponse, error) + func (c *ClientWithResponses) PutPaymentSettingsWithResponse(ctx context.Context, body PutPaymentSettingsJSONRequestBody, ...) (*PutPaymentSettingsResponse, error) + func (c *ClientWithResponses) PutPlanWithBodyWithResponse(ctx context.Context, code Code, contentType string, body io.Reader, ...) (*PutPlanResponse, error) + func (c *ClientWithResponses) PutPlanWithResponse(ctx context.Context, code Code, body PutPlanJSONRequestBody, ...) (*PutPlanResponse, error) + func (c *ClientWithResponses) PutSubscriptionWithBodyWithResponse(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*PutSubscriptionResponse, error) + func (c *ClientWithResponses) PutSubscriptionWithResponse(ctx context.Context, id Id, body PutSubscriptionJSONRequestBody, ...) (*PutSubscriptionResponse, error) + func (c *ClientWithResponses) RecordEventsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RecordEventsResponse, error) + func (c *ClientWithResponses) RecordEventsWithResponse(ctx context.Context, body RecordEventsJSONRequestBody, ...) (*RecordEventsResponse, error) + func (c *ClientWithResponses) RecordPaymentWithBodyWithResponse(ctx context.Context, invoice InvoiceId, contentType string, body io.Reader, ...) (*RecordPaymentResponse, error) + func (c *ClientWithResponses) RecordPaymentWithResponse(ctx context.Context, invoice InvoiceId, body RecordPaymentJSONRequestBody, ...) (*RecordPaymentResponse, error) + func (c *ClientWithResponses) RemoveWebhookEndpointWithResponse(ctx context.Context, endpoint string, reqEditors ...RequestEditorFn) (*RemoveWebhookEndpointResponse, error) + func (c *ClientWithResponses) SetSeatsWithBodyWithResponse(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*SetSeatsResponse, error) + func (c *ClientWithResponses) SetSeatsWithResponse(ctx context.Context, id Id, body SetSeatsJSONRequestBody, ...) (*SetSeatsResponse, error) + func (c *ClientWithResponses) StartCheckoutWithBodyWithResponse(ctx context.Context, invoice InvoiceId, contentType string, body io.Reader, ...) (*StartCheckoutResponse, error) + func (c *ClientWithResponses) StartCheckoutWithResponse(ctx context.Context, invoice InvoiceId, body StartCheckoutJSONRequestBody, ...) (*StartCheckoutResponse, error) + func (c *ClientWithResponses) TerminateSubscriptionWithResponse(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*TerminateSubscriptionResponse, error) + type ClientWithResponsesInterface interface + AcceptQuoteWithResponse func(ctx context.Context, quote QuoteId, reqEditors ...RequestEditorFn) (*AcceptQuoteResponse, error) + AddWebhookEndpointWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*AddWebhookEndpointResponse, error) + AddWebhookEndpointWithResponse func(ctx context.Context, body AddWebhookEndpointJSONRequestBody, ...) (*AddWebhookEndpointResponse, error) + ApplyCouponWithBodyWithResponse func(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*ApplyCouponResponse, error) + ApplyCouponWithResponse func(ctx context.Context, id Id, body ApplyCouponJSONRequestBody, ...) (*ApplyCouponResponse, error) + CancelCheckoutWithResponse func(ctx context.Context, checkout openapi_types.UUID, ...) (*CancelCheckoutResponse, error) + CancelUpgradeWithResponse func(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*CancelUpgradeResponse, error) + CreateCreditNoteWithBodyWithResponse func(ctx context.Context, invoice InvoiceId, contentType string, body io.Reader, ...) (*CreateCreditNoteResponse, error) + CreateCreditNoteWithResponse func(ctx context.Context, invoice InvoiceId, body CreateCreditNoteJSONRequestBody, ...) (*CreateCreditNoteResponse, error) + CreateQuoteWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*CreateQuoteResponse, error) + CreateQuoteWithResponse func(ctx context.Context, body CreateQuoteJSONRequestBody, ...) (*CreateQuoteResponse, error) + CreateRefundWithBodyWithResponse func(ctx context.Context, invoice InvoiceId, contentType string, body io.Reader, ...) (*CreateRefundResponse, error) + CreateRefundWithResponse func(ctx context.Context, invoice InvoiceId, body CreateRefundJSONRequestBody, ...) (*CreateRefundResponse, error) + DeleteCouponWithResponse func(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*DeleteCouponResponse, error) + DeleteFeatureWithResponse func(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*DeleteFeatureResponse, error) + DeleteMeterWithResponse func(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*DeleteMeterResponse, error) + DeletePlanWithResponse func(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*DeletePlanResponse, error) + GetCheckoutWithResponse func(ctx context.Context, checkout openapi_types.UUID, ...) (*GetCheckoutResponse, error) + GetCreditNoteWithResponse func(ctx context.Context, creditNote CreditNoteId, reqEditors ...RequestEditorFn) (*GetCreditNoteResponse, error) + GetCustomerWithResponse func(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*GetCustomerResponse, error) + GetEntitlementsWithResponse func(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*GetEntitlementsResponse, error) + GetInvoicePdfWithResponse func(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*GetInvoicePdfResponse, error) + GetInvoiceWithResponse func(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*GetInvoiceResponse, error) + GetLockWithResponse func(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLockResponse, error) + GetMeterWithResponse func(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*GetMeterResponse, error) + GetPaymentSettingsWithResponse func(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPaymentSettingsResponse, error) + GetPlanWithResponse func(ctx context.Context, code Code, reqEditors ...RequestEditorFn) (*GetPlanResponse, error) + GetQuoteWithResponse func(ctx context.Context, quote QuoteId, reqEditors ...RequestEditorFn) (*GetQuoteResponse, error) + GetSubscriptionWithResponse func(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*GetSubscriptionResponse, error) + GetSummaryWithResponse func(ctx context.Context, params *GetSummaryParams, reqEditors ...RequestEditorFn) (*GetSummaryResponse, error) + ListAppsWithResponse func(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAppsResponse, error) + ListCouponsWithResponse func(ctx context.Context, params *ListCouponsParams, reqEditors ...RequestEditorFn) (*ListCouponsResponse, error) + ListCreditNotesWithResponse func(ctx context.Context, params *ListCreditNotesParams, ...) (*ListCreditNotesResponse, error) + ListCustomersWithResponse func(ctx context.Context, params *ListCustomersParams, ...) (*ListCustomersResponse, error) + ListFeaturesWithResponse func(ctx context.Context, params *ListFeaturesParams, reqEditors ...RequestEditorFn) (*ListFeaturesResponse, error) + ListInvoiceCreditNotesWithResponse func(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*ListInvoiceCreditNotesResponse, error) + ListInvoicesWithResponse func(ctx context.Context, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*ListInvoicesResponse, error) + ListMetersWithResponse func(ctx context.Context, params *ListMetersParams, reqEditors ...RequestEditorFn) (*ListMetersResponse, error) + ListPaymentsWithResponse func(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*ListPaymentsResponse, error) + ListPlansWithResponse func(ctx context.Context, params *ListPlansParams, reqEditors ...RequestEditorFn) (*ListPlansResponse, error) + ListRefundsWithResponse func(ctx context.Context, invoice InvoiceId, reqEditors ...RequestEditorFn) (*ListRefundsResponse, error) + ListSubscriptionsWithResponse func(ctx context.Context, params *ListSubscriptionsParams, ...) (*ListSubscriptionsResponse, error) + ListWebhookEndpointsWithResponse func(ctx context.Context, reqEditors ...RequestEditorFn) (*ListWebhookEndpointsResponse, error) + PutAppForwardWithBodyWithResponse func(ctx context.Context, app AppId, contentType string, body io.Reader, ...) (*PutAppForwardResponse, error) + PutAppForwardWithResponse func(ctx context.Context, app AppId, body PutAppForwardJSONRequestBody, ...) (*PutAppForwardResponse, error) + PutCouponWithBodyWithResponse func(ctx context.Context, code Code, contentType string, body io.Reader, ...) (*PutCouponResponse, error) + PutCouponWithResponse func(ctx context.Context, code Code, body PutCouponJSONRequestBody, ...) (*PutCouponResponse, error) + PutCustomerWithBodyWithResponse func(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*PutCustomerResponse, error) + PutCustomerWithResponse func(ctx context.Context, id Id, body PutCustomerJSONRequestBody, ...) (*PutCustomerResponse, error) + PutFeatureWithBodyWithResponse func(ctx context.Context, code Code, contentType string, body io.Reader, ...) (*PutFeatureResponse, error) + PutFeatureWithResponse func(ctx context.Context, code Code, body PutFeatureJSONRequestBody, ...) (*PutFeatureResponse, error) + PutLockWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*PutLockResponse, error) + PutLockWithResponse func(ctx context.Context, body PutLockJSONRequestBody, ...) (*PutLockResponse, error) + PutMeterWithBodyWithResponse func(ctx context.Context, code Code, contentType string, body io.Reader, ...) (*PutMeterResponse, error) + PutMeterWithResponse func(ctx context.Context, code Code, body PutMeterJSONRequestBody, ...) (*PutMeterResponse, error) + PutPaymentSettingsWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*PutPaymentSettingsResponse, error) + PutPaymentSettingsWithResponse func(ctx context.Context, body PutPaymentSettingsJSONRequestBody, ...) (*PutPaymentSettingsResponse, error) + PutPlanWithBodyWithResponse func(ctx context.Context, code Code, contentType string, body io.Reader, ...) (*PutPlanResponse, error) + PutPlanWithResponse func(ctx context.Context, code Code, body PutPlanJSONRequestBody, ...) (*PutPlanResponse, error) + PutSubscriptionWithBodyWithResponse func(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*PutSubscriptionResponse, error) + PutSubscriptionWithResponse func(ctx context.Context, id Id, body PutSubscriptionJSONRequestBody, ...) (*PutSubscriptionResponse, error) + RecordEventsWithBodyWithResponse func(ctx context.Context, contentType string, body io.Reader, ...) (*RecordEventsResponse, error) + RecordEventsWithResponse func(ctx context.Context, body RecordEventsJSONRequestBody, ...) (*RecordEventsResponse, error) + RecordPaymentWithBodyWithResponse func(ctx context.Context, invoice InvoiceId, contentType string, body io.Reader, ...) (*RecordPaymentResponse, error) + RecordPaymentWithResponse func(ctx context.Context, invoice InvoiceId, body RecordPaymentJSONRequestBody, ...) (*RecordPaymentResponse, error) + RemoveWebhookEndpointWithResponse func(ctx context.Context, endpoint string, reqEditors ...RequestEditorFn) (*RemoveWebhookEndpointResponse, error) + SetSeatsWithBodyWithResponse func(ctx context.Context, id Id, contentType string, body io.Reader, ...) (*SetSeatsResponse, error) + SetSeatsWithResponse func(ctx context.Context, id Id, body SetSeatsJSONRequestBody, ...) (*SetSeatsResponse, error) + StartCheckoutWithBodyWithResponse func(ctx context.Context, invoice InvoiceId, contentType string, body io.Reader, ...) (*StartCheckoutResponse, error) + StartCheckoutWithResponse func(ctx context.Context, invoice InvoiceId, body StartCheckoutJSONRequestBody, ...) (*StartCheckoutResponse, error) + TerminateSubscriptionWithResponse func(ctx context.Context, id Id, reqEditors ...RequestEditorFn) (*TerminateSubscriptionResponse, error) + type Code = string + type Coupon struct + AmountOff *Money + Code string + Duration CouponDuration + ExpiresAt *time.Time + Name string + PercentOff *string + Periods *int + type CouponBody struct + AmountOff *Money + Duration CouponBodyDuration + ExpiresAt *time.Time + Name string + PercentOff *string + Periods *int + type CouponBodyDuration string + const CouponBodyDurationForever + const CouponBodyDurationOnce + const CouponBodyDurationRepeating + func (e CouponBodyDuration) Valid() bool + type CouponDuration string + const CouponDurationForever + const CouponDurationOnce + const CouponDurationRepeating + func (e CouponDuration) Valid() bool + type CreateCreditNoteJSONRequestBody = CreditNoteBody + type CreateCreditNoteResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseCreateCreditNoteResponse(rsp *http.Response) (*CreateCreditNoteResponse, error) + func (r CreateCreditNoteResponse) ContentType() string + func (r CreateCreditNoteResponse) GetBody() []byte + func (r CreateCreditNoteResponse) GetJSON200() ... + func (r CreateCreditNoteResponse) GetJSONDefault() *Failure + func (r CreateCreditNoteResponse) Status() string + func (r CreateCreditNoteResponse) StatusCode() int + type CreateQuoteJSONRequestBody = QuoteBody + type CreateQuoteResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseCreateQuoteResponse(rsp *http.Response) (*CreateQuoteResponse, error) + func (r CreateQuoteResponse) ContentType() string + func (r CreateQuoteResponse) GetBody() []byte + func (r CreateQuoteResponse) GetJSON200() ... + func (r CreateQuoteResponse) GetJSONDefault() *Failure + func (r CreateQuoteResponse) Status() string + func (r CreateQuoteResponse) StatusCode() int + type CreateRefundJSONRequestBody = RefundBody + type CreateRefundResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseCreateRefundResponse(rsp *http.Response) (*CreateRefundResponse, error) + func (r CreateRefundResponse) ContentType() string + func (r CreateRefundResponse) GetBody() []byte + func (r CreateRefundResponse) GetJSON200() ... + func (r CreateRefundResponse) GetJSONDefault() *Failure + func (r CreateRefundResponse) Status() string + func (r CreateRefundResponse) StatusCode() int + type CreditNote struct + CreatedAt time.Time + Credit Money + Customer string + Description string + Id openapi_types.UUID + Invoice string + Lines []struct{ ... } + Number string + Offset Money + Reason CreditNoteReason + Reference string + Refund Money + Refunded Money + TakenBackAt *time.Time + Total Money + type CreditNoteBody struct + Amount *Money + Description *string + Lines ... + Reason CreditNoteBodyReason + Reference string + Return *CreditNoteBodyReturn + type CreditNoteBodyReason string + const CreditNoteBodyReasonDuplicate + const CreditNoteBodyReasonFraudulent + const CreditNoteBodyReasonOrderCancellation + const CreditNoteBodyReasonOrderChange + const CreditNoteBodyReasonOther + const CreditNoteBodyReasonProductUnsatisfactory + func (e CreditNoteBodyReason) Valid() bool + type CreditNoteBodyReturn string + const CreditNoteBodyReturnCredit + const CreditNoteBodyReturnRefund + func (e CreditNoteBodyReturn) Valid() bool + type CreditNoteId = openapi_types.UUID + type CreditNoteReason string + const CreditNoteReasonDuplicate + const CreditNoteReasonFraudulent + const CreditNoteReasonOrderCancellation + const CreditNoteReasonOrderChange + const CreditNoteReasonOther + const CreditNoteReasonProductUnsatisfactory + func (e CreditNoteReason) Valid() bool + type Customer struct + Address *Address + Credit *Money + Currency *string + Email *string + Id string + LegalName *string + Name *string + TaxId *string + type CustomerBody struct + Address *Address + Currency *string + Email *string + LegalName *string + Name *string + TaxId *string + type DeleteCouponResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *Done + JSONDefault *Failure + func ParseDeleteCouponResponse(rsp *http.Response) (*DeleteCouponResponse, error) + func (r DeleteCouponResponse) ContentType() string + func (r DeleteCouponResponse) GetBody() []byte + func (r DeleteCouponResponse) GetJSON200() *Done + func (r DeleteCouponResponse) GetJSONDefault() *Failure + func (r DeleteCouponResponse) Status() string + func (r DeleteCouponResponse) StatusCode() int + type DeleteFeatureResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *Done + JSONDefault *Failure + func ParseDeleteFeatureResponse(rsp *http.Response) (*DeleteFeatureResponse, error) + func (r DeleteFeatureResponse) ContentType() string + func (r DeleteFeatureResponse) GetBody() []byte + func (r DeleteFeatureResponse) GetJSON200() *Done + func (r DeleteFeatureResponse) GetJSONDefault() *Failure + func (r DeleteFeatureResponse) Status() string + func (r DeleteFeatureResponse) StatusCode() int + type DeleteMeterResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *Done + JSONDefault *Failure + func ParseDeleteMeterResponse(rsp *http.Response) (*DeleteMeterResponse, error) + func (r DeleteMeterResponse) ContentType() string + func (r DeleteMeterResponse) GetBody() []byte + func (r DeleteMeterResponse) GetJSON200() *Done + func (r DeleteMeterResponse) GetJSONDefault() *Failure + func (r DeleteMeterResponse) Status() string + func (r DeleteMeterResponse) StatusCode() int + type DeletePlanResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *Done + JSONDefault *Failure + func ParseDeletePlanResponse(rsp *http.Response) (*DeletePlanResponse, error) + func (r DeletePlanResponse) ContentType() string + func (r DeletePlanResponse) GetBody() []byte + func (r DeletePlanResponse) GetJSON200() *Done + func (r DeletePlanResponse) GetJSONDefault() *Failure + func (r DeletePlanResponse) Status() string + func (r DeletePlanResponse) StatusCode() int + type Done struct + Errors []Message + Messages []Message + Result interface{} + Success bool + type EntitledAddOn struct + Plan string + Seats int + type EntitledSubscription struct + AddOns []EntitledAddOn + EndsAt *time.Time + Id string + Invoice *string + PeriodEnd time.Time + Plan string + Seats int + Status EntitledSubscriptionStatus + Upgrade ... + type EntitledSubscriptionStatus string + const EntitledSubscriptionStatusActive + const EntitledSubscriptionStatusPendingPayment + func (e EntitledSubscriptionStatus) Valid() bool + type Entitlements struct + Customer string + Features []string + Invoice *string + LocksAt *time.Time + Status EntitlementsStatus + Subscriptions *[]EntitledSubscription + type EntitlementsStatus string + const EntitlementsStatusActive + const EntitlementsStatusLocked + const EntitlementsStatusNone + const EntitlementsStatusPastDue + const EntitlementsStatusPendingPayment + func (e EntitlementsStatus) Valid() bool + type Envelope struct + Errors []Message + Messages []Message + Success bool + type Event struct + At *time.Time + Id string + Meter string + Properties *map[string]string + Subscription string + type Failure struct + Errors []Message + Messages []Message + Result interface{} + Success bool + type Feature struct + Code string + Description *string + Name string + type FeatureBody struct + Description *string + Name string + type GetCheckoutResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseGetCheckoutResponse(rsp *http.Response) (*GetCheckoutResponse, error) + func (r GetCheckoutResponse) ContentType() string + func (r GetCheckoutResponse) GetBody() []byte + func (r GetCheckoutResponse) GetJSON200() ... + func (r GetCheckoutResponse) GetJSONDefault() *Failure + func (r GetCheckoutResponse) Status() string + func (r GetCheckoutResponse) StatusCode() int + type GetCreditNoteResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseGetCreditNoteResponse(rsp *http.Response) (*GetCreditNoteResponse, error) + func (r GetCreditNoteResponse) ContentType() string + func (r GetCreditNoteResponse) GetBody() []byte + func (r GetCreditNoteResponse) GetJSON200() ... + func (r GetCreditNoteResponse) GetJSONDefault() *Failure + func (r GetCreditNoteResponse) Status() string + func (r GetCreditNoteResponse) StatusCode() int + type GetCustomerResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseGetCustomerResponse(rsp *http.Response) (*GetCustomerResponse, error) + func (r GetCustomerResponse) ContentType() string + func (r GetCustomerResponse) GetBody() []byte + func (r GetCustomerResponse) GetJSON200() ... + func (r GetCustomerResponse) GetJSONDefault() *Failure + func (r GetCustomerResponse) Status() string + func (r GetCustomerResponse) StatusCode() int + type GetEntitlementsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseGetEntitlementsResponse(rsp *http.Response) (*GetEntitlementsResponse, error) + func (r GetEntitlementsResponse) ContentType() string + func (r GetEntitlementsResponse) GetBody() []byte + func (r GetEntitlementsResponse) GetJSON200() ... + func (r GetEntitlementsResponse) GetJSONDefault() *Failure + func (r GetEntitlementsResponse) Status() string + func (r GetEntitlementsResponse) StatusCode() int + type GetInvoicePdfResponse struct + Body []byte + HTTPResponse *http.Response + JSONDefault *Failure + func ParseGetInvoicePdfResponse(rsp *http.Response) (*GetInvoicePdfResponse, error) + func (r GetInvoicePdfResponse) ContentType() string + func (r GetInvoicePdfResponse) GetBody() []byte + func (r GetInvoicePdfResponse) GetJSONDefault() *Failure + func (r GetInvoicePdfResponse) Status() string + func (r GetInvoicePdfResponse) StatusCode() int + type GetInvoiceResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseGetInvoiceResponse(rsp *http.Response) (*GetInvoiceResponse, error) + func (r GetInvoiceResponse) ContentType() string + func (r GetInvoiceResponse) GetBody() []byte + func (r GetInvoiceResponse) GetJSON200() ... + func (r GetInvoiceResponse) GetJSONDefault() *Failure + func (r GetInvoiceResponse) Status() string + func (r GetInvoiceResponse) StatusCode() int + type GetLockResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseGetLockResponse(rsp *http.Response) (*GetLockResponse, error) + func (r GetLockResponse) ContentType() string + func (r GetLockResponse) GetBody() []byte + func (r GetLockResponse) GetJSON200() ... + func (r GetLockResponse) GetJSONDefault() *Failure + func (r GetLockResponse) Status() string + func (r GetLockResponse) StatusCode() int + type GetMeterResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseGetMeterResponse(rsp *http.Response) (*GetMeterResponse, error) + func (r GetMeterResponse) ContentType() string + func (r GetMeterResponse) GetBody() []byte + func (r GetMeterResponse) GetJSON200() ... + func (r GetMeterResponse) GetJSONDefault() *Failure + func (r GetMeterResponse) Status() string + func (r GetMeterResponse) StatusCode() int + type GetPaymentSettingsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseGetPaymentSettingsResponse(rsp *http.Response) (*GetPaymentSettingsResponse, error) + func (r GetPaymentSettingsResponse) ContentType() string + func (r GetPaymentSettingsResponse) GetBody() []byte + func (r GetPaymentSettingsResponse) GetJSON200() ... + func (r GetPaymentSettingsResponse) GetJSONDefault() *Failure + func (r GetPaymentSettingsResponse) Status() string + func (r GetPaymentSettingsResponse) StatusCode() int + type GetPlanResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseGetPlanResponse(rsp *http.Response) (*GetPlanResponse, error) + func (r GetPlanResponse) ContentType() string + func (r GetPlanResponse) GetBody() []byte + func (r GetPlanResponse) GetJSON200() ... + func (r GetPlanResponse) GetJSONDefault() *Failure + func (r GetPlanResponse) Status() string + func (r GetPlanResponse) StatusCode() int + type GetQuoteResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseGetQuoteResponse(rsp *http.Response) (*GetQuoteResponse, error) + func (r GetQuoteResponse) ContentType() string + func (r GetQuoteResponse) GetBody() []byte + func (r GetQuoteResponse) GetJSON200() ... + func (r GetQuoteResponse) GetJSONDefault() *Failure + func (r GetQuoteResponse) Status() string + func (r GetQuoteResponse) StatusCode() int + type GetSubscriptionResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseGetSubscriptionResponse(rsp *http.Response) (*GetSubscriptionResponse, error) + func (r GetSubscriptionResponse) ContentType() string + func (r GetSubscriptionResponse) GetBody() []byte + func (r GetSubscriptionResponse) GetJSON200() ... + func (r GetSubscriptionResponse) GetJSONDefault() *Failure + func (r GetSubscriptionResponse) Status() string + func (r GetSubscriptionResponse) StatusCode() int + type GetSummaryParams struct + Since *openapi_types.Date + type GetSummaryResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseGetSummaryResponse(rsp *http.Response) (*GetSummaryResponse, error) + func (r GetSummaryResponse) ContentType() string + func (r GetSummaryResponse) GetBody() []byte + func (r GetSummaryResponse) GetJSON200() ... + func (r GetSummaryResponse) GetJSONDefault() *Failure + func (r GetSummaryResponse) Status() string + func (r GetSummaryResponse) StatusCode() int + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type Id = string + type Invoice struct + Credited Money + Customer string + Due Money + DueAt *openapi_types.Date + Id string + IssuedAt openapi_types.Date + Lines *[]InvoiceLine + Number string + Status InvoiceStatus + ToRefund Money + Total Money + type InvoiceId = string + type InvoiceLine struct + Amount Money + Creditable Money + Description string + From time.Time + Id string + Kind InvoiceLineKind + To time.Time + type InvoiceLineKind string + const InvoiceLineKindFee + const InvoiceLineKindOneOff + const InvoiceLineKindSeats + const InvoiceLineKindUsage + func (e InvoiceLineKind) Valid() bool + type InvoiceStatus string + const InvoiceStatusIssued + const InvoiceStatusPaid + const InvoiceStatusVoided + func (e InvoiceStatus) Valid() bool + type ListAppsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseListAppsResponse(rsp *http.Response) (*ListAppsResponse, error) + func (r ListAppsResponse) ContentType() string + func (r ListAppsResponse) GetBody() []byte + func (r ListAppsResponse) GetJSON200() ... + func (r ListAppsResponse) GetJSONDefault() *Failure + func (r ListAppsResponse) Status() string + func (r ListAppsResponse) StatusCode() int + type ListCouponsParams struct + Page *Page + PerPage *PerPage + type ListCouponsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseListCouponsResponse(rsp *http.Response) (*ListCouponsResponse, error) + func (r ListCouponsResponse) ContentType() string + func (r ListCouponsResponse) GetBody() []byte + func (r ListCouponsResponse) GetJSON200() ... + func (r ListCouponsResponse) GetJSONDefault() *Failure + func (r ListCouponsResponse) Status() string + func (r ListCouponsResponse) StatusCode() int + type ListCreditNotesParams struct + Customer *string + Page *Page + PerPage *PerPage + type ListCreditNotesResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseListCreditNotesResponse(rsp *http.Response) (*ListCreditNotesResponse, error) + func (r ListCreditNotesResponse) ContentType() string + func (r ListCreditNotesResponse) GetBody() []byte + func (r ListCreditNotesResponse) GetJSON200() ... + func (r ListCreditNotesResponse) GetJSONDefault() *Failure + func (r ListCreditNotesResponse) Status() string + func (r ListCreditNotesResponse) StatusCode() int + type ListCustomersParams struct + Page *Page + PerPage *PerPage + type ListCustomersResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseListCustomersResponse(rsp *http.Response) (*ListCustomersResponse, error) + func (r ListCustomersResponse) ContentType() string + func (r ListCustomersResponse) GetBody() []byte + func (r ListCustomersResponse) GetJSON200() ... + func (r ListCustomersResponse) GetJSONDefault() *Failure + func (r ListCustomersResponse) Status() string + func (r ListCustomersResponse) StatusCode() int + type ListFeaturesParams struct + Page *Page + PerPage *PerPage + type ListFeaturesResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseListFeaturesResponse(rsp *http.Response) (*ListFeaturesResponse, error) + func (r ListFeaturesResponse) ContentType() string + func (r ListFeaturesResponse) GetBody() []byte + func (r ListFeaturesResponse) GetJSON200() ... + func (r ListFeaturesResponse) GetJSONDefault() *Failure + func (r ListFeaturesResponse) Status() string + func (r ListFeaturesResponse) StatusCode() int + type ListInvoiceCreditNotesResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseListInvoiceCreditNotesResponse(rsp *http.Response) (*ListInvoiceCreditNotesResponse, error) + func (r ListInvoiceCreditNotesResponse) ContentType() string + func (r ListInvoiceCreditNotesResponse) GetBody() []byte + func (r ListInvoiceCreditNotesResponse) GetJSON200() ... + func (r ListInvoiceCreditNotesResponse) GetJSONDefault() *Failure + func (r ListInvoiceCreditNotesResponse) Status() string + func (r ListInvoiceCreditNotesResponse) StatusCode() int + type ListInvoicesParams struct + Customer *string + Page *Page + PerPage *PerPage + Status *ListInvoicesParamsStatus + type ListInvoicesParamsStatus string + const ListInvoicesParamsStatusIssued + const ListInvoicesParamsStatusPaid + const ListInvoicesParamsStatusVoided + func (e ListInvoicesParamsStatus) Valid() bool + type ListInvoicesResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseListInvoicesResponse(rsp *http.Response) (*ListInvoicesResponse, error) + func (r ListInvoicesResponse) ContentType() string + func (r ListInvoicesResponse) GetBody() []byte + func (r ListInvoicesResponse) GetJSON200() ... + func (r ListInvoicesResponse) GetJSONDefault() *Failure + func (r ListInvoicesResponse) Status() string + func (r ListInvoicesResponse) StatusCode() int + type ListMetersParams struct + Page *Page + PerPage *PerPage + type ListMetersResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseListMetersResponse(rsp *http.Response) (*ListMetersResponse, error) + func (r ListMetersResponse) ContentType() string + func (r ListMetersResponse) GetBody() []byte + func (r ListMetersResponse) GetJSON200() ... + func (r ListMetersResponse) GetJSONDefault() *Failure + func (r ListMetersResponse) Status() string + func (r ListMetersResponse) StatusCode() int + type ListPaymentsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseListPaymentsResponse(rsp *http.Response) (*ListPaymentsResponse, error) + func (r ListPaymentsResponse) ContentType() string + func (r ListPaymentsResponse) GetBody() []byte + func (r ListPaymentsResponse) GetJSON200() ... + func (r ListPaymentsResponse) GetJSONDefault() *Failure + func (r ListPaymentsResponse) Status() string + func (r ListPaymentsResponse) StatusCode() int + type ListPlansParams struct + Page *Page + PerPage *PerPage + type ListPlansResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseListPlansResponse(rsp *http.Response) (*ListPlansResponse, error) + func (r ListPlansResponse) ContentType() string + func (r ListPlansResponse) GetBody() []byte + func (r ListPlansResponse) GetJSON200() ... + func (r ListPlansResponse) GetJSONDefault() *Failure + func (r ListPlansResponse) Status() string + func (r ListPlansResponse) StatusCode() int + type ListRefundsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseListRefundsResponse(rsp *http.Response) (*ListRefundsResponse, error) + func (r ListRefundsResponse) ContentType() string + func (r ListRefundsResponse) GetBody() []byte + func (r ListRefundsResponse) GetJSON200() ... + func (r ListRefundsResponse) GetJSONDefault() *Failure + func (r ListRefundsResponse) Status() string + func (r ListRefundsResponse) StatusCode() int + type ListSubscriptionsParams struct + Customer string + Page *Page + PerPage *PerPage + type ListSubscriptionsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseListSubscriptionsResponse(rsp *http.Response) (*ListSubscriptionsResponse, error) + func (r ListSubscriptionsResponse) ContentType() string + func (r ListSubscriptionsResponse) GetBody() []byte + func (r ListSubscriptionsResponse) GetJSON200() ... + func (r ListSubscriptionsResponse) GetJSONDefault() *Failure + func (r ListSubscriptionsResponse) Status() string + func (r ListSubscriptionsResponse) StatusCode() int + type ListWebhookEndpointsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseListWebhookEndpointsResponse(rsp *http.Response) (*ListWebhookEndpointsResponse, error) + func (r ListWebhookEndpointsResponse) ContentType() string + func (r ListWebhookEndpointsResponse) GetBody() []byte + func (r ListWebhookEndpointsResponse) GetJSON200() ... + func (r ListWebhookEndpointsResponse) GetJSONDefault() *Failure + func (r ListWebhookEndpointsResponse) Status() string + func (r ListWebhookEndpointsResponse) StatusCode() int + type Lock struct + AfterDays *int + type Message struct + Code int + DocumentationUrl *string + Message string + Source ... + type Meter struct + Aggregation MeterAggregation + Code string + Field *string + Name string + type MeterAggregation string + const MeterAggregationCount + const MeterAggregationLatest + const MeterAggregationMax + const MeterAggregationSum + const MeterAggregationUniqueCount + func (e MeterAggregation) Valid() bool + type MeterBody struct + Aggregation MeterBodyAggregation + Field *string + Name string + type MeterBodyAggregation string + const MeterBodyAggregationCount + const MeterBodyAggregationLatest + const MeterBodyAggregationMax + const MeterBodyAggregationSum + const MeterBodyAggregationUniqueCount + func (e MeterBodyAggregation) Valid() bool + type Money struct + Amount string + Currency string + type NewWebhookEndpoint struct + CreatedAt time.Time + Id string + Secret string + Url string + type Page = int + type PageInfo struct + Count int + Page int + PerPage int + TotalCount int + TotalPages int + type Payment struct + Amount Money + App *string + Id string + Invoice string + PaidAt *time.Time + RecordedAt time.Time + Reference string + Status PaymentStatus + type PaymentBody struct + Amount Money + PaidAt time.Time + Reference string + type PaymentSettings struct + PendingCheckouts PaymentSettingsPendingCheckouts + UnpaidUpgrades *PaymentSettingsUnpaidUpgrades + type PaymentSettingsPendingCheckouts string + const Allow + const Reserve + func (e PaymentSettingsPendingCheckouts) Valid() bool + type PaymentSettingsUnpaidUpgrades string + const PaymentSettingsUnpaidUpgradesLock + const PaymentSettingsUnpaidUpgradesRevert + func (e PaymentSettingsUnpaidUpgrades) Valid() bool + type PaymentStatus string + const PaymentStatusAuthorized + const PaymentStatusCancelled + const PaymentStatusExpired + const PaymentStatusFailed + const PaymentStatusPending + const PaymentStatusSucceeded + func (e PaymentStatus) Valid() bool + type PerPage = int + type Plan struct + Charges *[]Charge + Code string + Features *[]string + Fee Money + FeeInAdvance *bool + Interval PlanInterval + Name string + PayFirst *bool + Seats *Seats + TrialDays *int + type PlanBody struct + Charges *[]Charge + Features *[]string + Fee Money + FeeInAdvance *bool + Interval PlanBodyInterval + Name string + PayFirst *bool + Seats *Seats + TrialDays *int + type PlanBodyInterval string + const PlanBodyIntervalMonthly + const PlanBodyIntervalQuarterly + const PlanBodyIntervalSemiannual + const PlanBodyIntervalWeekly + const PlanBodyIntervalYearly + func (e PlanBodyInterval) Valid() bool + type PlanInterval string + const PlanIntervalMonthly + const PlanIntervalQuarterly + const PlanIntervalSemiannual + const PlanIntervalWeekly + const PlanIntervalYearly + func (e PlanInterval) Valid() bool + type PutAppForwardJSONBody struct + Url string + type PutAppForwardJSONRequestBody PutAppForwardJSONBody + type PutAppForwardResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParsePutAppForwardResponse(rsp *http.Response) (*PutAppForwardResponse, error) + func (r PutAppForwardResponse) ContentType() string + func (r PutAppForwardResponse) GetBody() []byte + func (r PutAppForwardResponse) GetJSON200() ... + func (r PutAppForwardResponse) GetJSONDefault() *Failure + func (r PutAppForwardResponse) Status() string + func (r PutAppForwardResponse) StatusCode() int + type PutCouponJSONRequestBody = CouponBody + type PutCouponResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParsePutCouponResponse(rsp *http.Response) (*PutCouponResponse, error) + func (r PutCouponResponse) ContentType() string + func (r PutCouponResponse) GetBody() []byte + func (r PutCouponResponse) GetJSON200() ... + func (r PutCouponResponse) GetJSONDefault() *Failure + func (r PutCouponResponse) Status() string + func (r PutCouponResponse) StatusCode() int + type PutCustomerJSONRequestBody = CustomerBody + type PutCustomerResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParsePutCustomerResponse(rsp *http.Response) (*PutCustomerResponse, error) + func (r PutCustomerResponse) ContentType() string + func (r PutCustomerResponse) GetBody() []byte + func (r PutCustomerResponse) GetJSON200() ... + func (r PutCustomerResponse) GetJSONDefault() *Failure + func (r PutCustomerResponse) Status() string + func (r PutCustomerResponse) StatusCode() int + type PutFeatureJSONRequestBody = FeatureBody + type PutFeatureResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParsePutFeatureResponse(rsp *http.Response) (*PutFeatureResponse, error) + func (r PutFeatureResponse) ContentType() string + func (r PutFeatureResponse) GetBody() []byte + func (r PutFeatureResponse) GetJSON200() ... + func (r PutFeatureResponse) GetJSONDefault() *Failure + func (r PutFeatureResponse) Status() string + func (r PutFeatureResponse) StatusCode() int + type PutLockJSONRequestBody = Lock + type PutLockResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParsePutLockResponse(rsp *http.Response) (*PutLockResponse, error) + func (r PutLockResponse) ContentType() string + func (r PutLockResponse) GetBody() []byte + func (r PutLockResponse) GetJSON200() ... + func (r PutLockResponse) GetJSONDefault() *Failure + func (r PutLockResponse) Status() string + func (r PutLockResponse) StatusCode() int + type PutMeterJSONRequestBody = MeterBody + type PutMeterResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParsePutMeterResponse(rsp *http.Response) (*PutMeterResponse, error) + func (r PutMeterResponse) ContentType() string + func (r PutMeterResponse) GetBody() []byte + func (r PutMeterResponse) GetJSON200() ... + func (r PutMeterResponse) GetJSONDefault() *Failure + func (r PutMeterResponse) Status() string + func (r PutMeterResponse) StatusCode() int + type PutPaymentSettingsJSONRequestBody = PaymentSettings + type PutPaymentSettingsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParsePutPaymentSettingsResponse(rsp *http.Response) (*PutPaymentSettingsResponse, error) + func (r PutPaymentSettingsResponse) ContentType() string + func (r PutPaymentSettingsResponse) GetBody() []byte + func (r PutPaymentSettingsResponse) GetJSON200() ... + func (r PutPaymentSettingsResponse) GetJSONDefault() *Failure + func (r PutPaymentSettingsResponse) Status() string + func (r PutPaymentSettingsResponse) StatusCode() int + type PutPlanJSONRequestBody = PlanBody + type PutPlanResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParsePutPlanResponse(rsp *http.Response) (*PutPlanResponse, error) + func (r PutPlanResponse) ContentType() string + func (r PutPlanResponse) GetBody() []byte + func (r PutPlanResponse) GetJSON200() ... + func (r PutPlanResponse) GetJSONDefault() *Failure + func (r PutPlanResponse) Status() string + func (r PutPlanResponse) StatusCode() int + type PutSubscriptionJSONRequestBody = SubscriptionBody + type PutSubscriptionResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParsePutSubscriptionResponse(rsp *http.Response) (*PutSubscriptionResponse, error) + func (r PutSubscriptionResponse) ContentType() string + func (r PutSubscriptionResponse) GetBody() []byte + func (r PutSubscriptionResponse) GetJSON200() ... + func (r PutSubscriptionResponse) GetJSONDefault() *Failure + func (r PutSubscriptionResponse) Status() string + func (r PutSubscriptionResponse) StatusCode() int + type Quote struct + AcceptedAt *time.Time + CreatedAt time.Time + ExpiresAt time.Time + Id openapi_types.UUID + Lines []QuoteLine + Renewal *QuoteRenewal + Seats *QuoteSeats + Subscription *QuoteSubscription + Total Money + type QuoteBody struct + Renewal *QuoteRenewal + Seats *QuoteSeats + Subscription *QuoteSubscription + type QuoteId = openapi_types.UUID + type QuoteLine struct + AddOn *string + Amount Money + Description string + From time.Time + Kind QuoteLineKind + Renewal *bool + Seats *int + To time.Time + type QuoteLineKind string + const QuoteLineKindCredit + const QuoteLineKindFee + const QuoteLineKindSeats + func (e QuoteLineKind) Valid() bool + type QuoteRenewal struct + Subscription string + type QuoteSeats struct + AddOns *map[string]int + Quantity int + Subscription string + type QuoteSubscription struct + AddOns *[]AddOn + Anniversary *bool + Change *QuoteSubscriptionChange + Continues *string + Customer string + EndsAt *time.Time + Id string + Plan string + Seats *int + StartsAt *time.Time + type QuoteSubscriptionChange string + const QuoteSubscriptionChangeDowngrade + const QuoteSubscriptionChangeUpgrade + func (e QuoteSubscriptionChange) Valid() bool + type Rate struct + Amount string + Currency string + type RecordEventsJSONBody struct + Events []Event + type RecordEventsJSONRequestBody RecordEventsJSONBody + type RecordEventsResponse struct + Body []byte + HTTPResponse *http.Response + JSON202 *Done + JSONDefault *Failure + func ParseRecordEventsResponse(rsp *http.Response) (*RecordEventsResponse, error) + func (r RecordEventsResponse) ContentType() string + func (r RecordEventsResponse) GetBody() []byte + func (r RecordEventsResponse) GetJSON202() *Done + func (r RecordEventsResponse) GetJSONDefault() *Failure + func (r RecordEventsResponse) Status() string + func (r RecordEventsResponse) StatusCode() int + type RecordPaymentJSONRequestBody = PaymentBody + type RecordPaymentResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseRecordPaymentResponse(rsp *http.Response) (*RecordPaymentResponse, error) + func (r RecordPaymentResponse) ContentType() string + func (r RecordPaymentResponse) GetBody() []byte + func (r RecordPaymentResponse) GetJSON200() ... + func (r RecordPaymentResponse) GetJSONDefault() *Failure + func (r RecordPaymentResponse) Status() string + func (r RecordPaymentResponse) StatusCode() int + type Refund struct + Amount Money + App *string + CreditNote *openapi_types.UUID + Id openapi_types.UUID + Invoice string + Payment openapi_types.UUID + Reason *string + RecordedAt time.Time + Reference string + RefundedAt *time.Time + Status RefundStatus + type RefundBody struct + Amount Money + CreditNote *openapi_types.UUID + Payment openapi_types.UUID + Reference string + RefundedAt *time.Time + type RefundStatus string + const RefundStatusFailed + const RefundStatusPending + const RefundStatusSucceeded + func (e RefundStatus) Valid() bool + type RemoveWebhookEndpointResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *Done + JSONDefault *Failure + func ParseRemoveWebhookEndpointResponse(rsp *http.Response) (*RemoveWebhookEndpointResponse, error) + func (r RemoveWebhookEndpointResponse) ContentType() string + func (r RemoveWebhookEndpointResponse) GetBody() []byte + func (r RemoveWebhookEndpointResponse) GetJSON200() *Done + func (r RemoveWebhookEndpointResponse) GetJSONDefault() *Failure + func (r RemoveWebhookEndpointResponse) Status() string + func (r RemoveWebhookEndpointResponse) StatusCode() int + type RequestEditorFn func(ctx context.Context, req *http.Request) error + type Seats struct + Extra Money + InAdvance *bool + Included int + Minimum *int + type SetSeatsJSONBody struct + AddOns *map[string]int + Quantity int + type SetSeatsJSONRequestBody SetSeatsJSONBody + type SetSeatsResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *Done + JSONDefault *Failure + func ParseSetSeatsResponse(rsp *http.Response) (*SetSeatsResponse, error) + func (r SetSeatsResponse) ContentType() string + func (r SetSeatsResponse) GetBody() []byte + func (r SetSeatsResponse) GetJSON200() *Done + func (r SetSeatsResponse) GetJSONDefault() *Failure + func (r SetSeatsResponse) Status() string + func (r SetSeatsResponse) StatusCode() int + type StartCheckoutJSONRequestBody = CheckoutBody + type StartCheckoutResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 ... + JSONDefault *Failure + func ParseStartCheckoutResponse(rsp *http.Response) (*StartCheckoutResponse, error) + func (r StartCheckoutResponse) ContentType() string + func (r StartCheckoutResponse) GetBody() []byte + func (r StartCheckoutResponse) GetJSON200() ... + func (r StartCheckoutResponse) GetJSONDefault() *Failure + func (r StartCheckoutResponse) Status() string + func (r StartCheckoutResponse) StatusCode() int + type Subscription struct + AddOns *[]AddOn + Anniversary *bool + Change *SubscriptionChange + Continues *string + Customer string + EndsAt *time.Time + Id string + NextPlan *string + PeriodEnd *time.Time + PeriodStart *time.Time + Plan string + Seats *int + StartsAt *time.Time + Status SubscriptionStatus + type SubscriptionBody struct + AddOns *[]AddOn + Anniversary *bool + Change *SubscriptionBodyChange + Continues *string + Customer string + EndsAt *time.Time + Plan string + Seats *int + StartsAt *time.Time + type SubscriptionBodyChange string + const SubscriptionBodyChangeDowngrade + const SubscriptionBodyChangeUpgrade + func (e SubscriptionBodyChange) Valid() bool + type SubscriptionChange string + const SubscriptionChangeDowngrade + const SubscriptionChangeUpgrade + func (e SubscriptionChange) Valid() bool + type SubscriptionStatus string + const SubscriptionStatusActive + const SubscriptionStatusPending + const SubscriptionStatusTerminated + func (e SubscriptionStatus) Valid() bool + type Summary struct + BillingSince time.Time + Country string + Currency string + Invoices struct{ ... } + type TerminateSubscriptionResponse struct + Body []byte + HTTPResponse *http.Response + JSON200 *Done + JSONDefault *Failure + func ParseTerminateSubscriptionResponse(rsp *http.Response) (*TerminateSubscriptionResponse, error) + func (r TerminateSubscriptionResponse) ContentType() string + func (r TerminateSubscriptionResponse) GetBody() []byte + func (r TerminateSubscriptionResponse) GetJSON200() *Done + func (r TerminateSubscriptionResponse) GetJSONDefault() *Failure + func (r TerminateSubscriptionResponse) Status() string + func (r TerminateSubscriptionResponse) StatusCode() int + type Tier struct + Flat *Money + Price Rate + UpTo *int64 + type WebhookEndpoint struct + CreatedAt time.Time + Id string + Url string