resources

package
v0.2.4-rc.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package resources exposes every public API operation as a CLI subcommand.

The table is generated from the OpenAPI spec rather than hand-written, so coverage tracks the API. A hand-written table drifts the moment someone adds an endpoint, and the drift stays invisible until a user asks why a documented operation is missing.

Index

Constants

This section is empty.

Variables

View Source
var Commands = []Command{
	{Group: "accounts", Verb: "create-account-link", Method: "POST", Path: "/v1/accounts/{account_id}/account-links", Summary: "Create an account link", HasBody: true, PathParams: []string{"account_id"}},
	{Group: "accounts", Verb: "create-connected", Method: "POST", Path: "/v1/accounts", Summary: "Create an account", HasBody: true},
	{Group: "accounts", Verb: "get", Method: "GET", Path: "/v1/accounts/{account_id}", Summary: "Get an account", HasBody: false, PathParams: []string{"account_id"}, Query: []QueryFlag{{Name: "include", Type: "array", Description: "Expandable blocks to add. `requirements.values` returns the account's current field values…"}}},
	{Group: "accounts", Verb: "get-checkout-settings", Method: "GET", Path: "/v1/accounts/checkout/settings", Summary: "Get checkout settings", HasBody: false},
	{Group: "accounts", Verb: "get-my-organization", Method: "GET", Path: "/v1/accounts/me", Summary: "Get your own account", HasBody: false},
	{Group: "accounts", Verb: "list-capabilities", Method: "GET", Path: "/v1/accounts/{account_id}/capabilities", Summary: "List capabilities", HasBody: false, PathParams: []string{"account_id"}},
	{Group: "accounts", Verb: "list-connected", Method: "GET", Path: "/v1/accounts", Summary: "List accounts", HasBody: false, Query: []QueryFlag{{Name: "limit", Type: "integer", Description: "Number of accounts to return per page."}, {Name: "offset", Type: "integer", Description: "Number of accounts to skip before the page starts."}}},
	{Group: "accounts", Verb: "update", Method: "POST", Path: "/v1/accounts/{account_id}", Summary: "Update an account", HasBody: true, PathParams: []string{"account_id"}},
	{Group: "accounts", Verb: "update-checkout-settings", Method: "PUT", Path: "/v1/accounts/checkout/settings", Summary: "Update checkout settings", HasBody: true},
	{Group: "balances", Verb: "get", Method: "GET", Path: "/v1/balances", Summary: "Retrieve balances", HasBody: false},
	{Group: "balances", Verb: "get-payout-schedule", Method: "GET", Path: "/v1/balance_settings", Summary: "Get payout schedule", HasBody: false},
	{Group: "balances", Verb: "update-payout-schedule", Method: "POST", Path: "/v1/balance_settings", Summary: "Update payout schedule", HasBody: true},
	{Group: "checkout-sessions", Verb: "create-checkout-session", Method: "POST", Path: "/v1/checkout-sessions", Summary: "Create a checkout session", HasBody: true},
	{Group: "checkout-sessions", Verb: "get-checkout-session", Method: "GET", Path: "/v1/checkout-sessions/{checkout_id}", Summary: "Retrieve a checkout session", HasBody: false, PathParams: []string{"checkout_id"}},
	{Group: "connected-accounts", Verb: "attach-company-document", Method: "POST", Path: "/v1/accounts/{account_id}/documents", Summary: "Attach a company document", HasBody: true, PathParams: []string{"account_id"}},
	{Group: "conversions", Verb: "create-conversion-quote", Method: "POST", Path: "/v1/conversions/quotes", Summary: "Create Conversion Quote", HasBody: true},
	{Group: "conversions", Verb: "execute", Method: "POST", Path: "/v1/conversions", Summary: "Execute Conversion", HasBody: true},
	{Group: "conversions", Verb: "get", Method: "GET", Path: "/v1/conversions/{conversion_id}", Summary: "Get Conversion", HasBody: false, PathParams: []string{"conversion_id"}},
	{Group: "conversions", Verb: "list", Method: "GET", Path: "/v1/conversions", Summary: "List Conversions", HasBody: false, Query: []QueryFlag{{Name: "limit", Type: "integer", Description: ""}, {Name: "offset", Type: "integer", Description: ""}, {Name: "from_currency", Type: "string", Description: ""}, {Name: "to_currency", Type: "string", Description: ""}, {Name: "status", Type: "string", Description: ""}, {Name: "start_date", Type: "string", Description: ""}, {Name: "end_date", Type: "string", Description: ""}}},
	{Group: "customer-sessions", Verb: "create-customer-portal-session", Method: "POST", Path: "/v1/customers/{customer_id}/portal-sessions", Summary: "Create a customer portal session", HasBody: false, PathParams: []string{"customer_id"}},
	{Group: "customers", Verb: "create", Method: "POST", Path: "/v1/customers", Summary: "Create a customer", HasBody: true},
	{Group: "customers", Verb: "get", Method: "GET", Path: "/v1/customers/{customer_id}", Summary: "Retrieve a customer", HasBody: false, PathParams: []string{"customer_id"}},
	{Group: "customers", Verb: "list", Method: "GET", Path: "/v1/customers", Summary: "List customers", HasBody: false, Query: []QueryFlag{{Name: "limit", Type: "integer", Description: ""}, {Name: "offset", Type: "integer", Description: ""}, {Name: "search", Type: "string", Description: "Search by customer email or name."}}},
	{Group: "customers", Verb: "update", Method: "PATCH", Path: "/v1/customers/{customer_id}", Summary: "Update a customer", HasBody: true, PathParams: []string{"customer_id"}},
	{Group: "disputes", Verb: "get", Method: "GET", Path: "/v1/disputes/{dispute_id}", Summary: "Get Dispute", HasBody: false, PathParams: []string{"dispute_id"}},
	{Group: "disputes", Verb: "list", Method: "GET", Path: "/v1/disputes", Summary: "List Disputes", HasBody: false, Query: []QueryFlag{{Name: "limit", Type: "integer", Description: "Number of disputes to return. Minimum 1 and maximum 100."}, {Name: "offset", Type: "integer", Description: "Number of disputes to skip before returning results."}, {Name: "status", Type: "string", Description: "Filter disputes by status."}, {Name: "from_date", Type: "string", Description: "Return disputes created at or after this timestamp (ISO 8601)."}, {Name: "to_date", Type: "string", Description: "Return disputes created at or before this timestamp (ISO 8601)."}}},
	{Group: "disputes", Verb: "submit", Method: "POST", Path: "/v1/disputes/{dispute_id}/submit", Summary: "Submit Dispute", HasBody: true, PathParams: []string{"dispute_id"}},
	{Group: "disputes", Verb: "update-dispute-evidence", Method: "PATCH", Path: "/v1/disputes/{dispute_id}/evidence", Summary: "Update Dispute Evidence", HasBody: true, PathParams: []string{"dispute_id"}},
	{Group: "disputes", Verb: "upload-dispute-document", Method: "POST", Path: "/v1/disputes/uploads", Summary: "Upload Dispute Document", HasBody: true},
	{Group: "media", Verb: "create-upload", Method: "POST", Path: "/v1/utilities/uploads", Summary: "Upload a file", HasBody: true},
	{Group: "media", Verb: "delete-upload", Method: "DELETE", Path: "/v1/utilities/uploads/{upload_id}", Summary: "Delete an upload", HasBody: false, PathParams: []string{"upload_id"}},
	{Group: "media", Verb: "get-upload", Method: "GET", Path: "/v1/utilities/uploads/{upload_id}", Summary: "Retrieve an upload", HasBody: false, PathParams: []string{"upload_id"}},
	{Group: "misc", Verb: "resolve-reference-bank-account", Method: "POST", Path: "/v1/misc/bank-accounts/resolve", Summary: "Resolve a bank account", HasBody: true},
	{Group: "payments", Verb: "get-charge-status", Method: "GET", Path: "/v1/payments/charges/{charge_id}", Summary: "Get Charge Status", HasBody: false, PathParams: []string{"charge_id"}},
	{Group: "payments", Verb: "get-payment-detail", Method: "GET", Path: "/v1/payments/{payment_id}", Summary: "Retrieve a payment", HasBody: false, PathParams: []string{"payment_id"}},
	{Group: "payments", Verb: "list", Method: "GET", Path: "/v1/payments", Summary: "List payments", HasBody: false, Query: []QueryFlag{{Name: "limit", Type: "integer", Description: "Page size. Defaults to 50. Maximum is 100."}, {Name: "offset", Type: "integer", Description: "Number of records to skip before returning results."}, {Name: "status_filter", Type: "string", Description: "Optional exact status filter for charge records."}}},
	{Group: "payments", Verb: "list-payment-methods", Method: "GET", Path: "/v1/payment-methods", Summary: "List payment methods", HasBody: false},
	{Group: "payments", Verb: "list-payment-rails", Method: "GET", Path: "/v1/payment-methods/rails", Summary: "List payment rails", HasBody: false, Query: []QueryFlag{{Name: "payment_method", Type: "string", Description: "Payment method to get rails for"}, {Name: "currency", Type: "string", Description: "Currency code (e.g., 'NGN', 'USD', 'GHS', 'USDT_TRC20')"}, {Name: "country_code", Type: "string", Description: "Optional ISO country code (e.g., 'NG', 'GH') to filter rails by country"}}},
	{Group: "payments", Verb: "list-payout-supported-currencies", Method: "GET", Path: "/v1/currencies/payout-supported", Summary: "List payout supported currencies", HasBody: false},
	{Group: "payments", Verb: "list-supported-currencies", Method: "GET", Path: "/v1/currencies/supported", Summary: "List supported currencies", HasBody: false},
	{Group: "payouts", Verb: "create", Method: "POST", Path: "/v1/payouts", Summary: "Create Payout", HasBody: true},
	{Group: "payouts", Verb: "create-payout-destination", Method: "POST", Path: "/v1/payouts/destinations", Summary: "Create Payout Destination", HasBody: true},
	{Group: "payouts", Verb: "create-payout-quote", Method: "POST", Path: "/v1/payouts/quotes", Summary: "Create Payout Quote", HasBody: true},
	{Group: "payouts", Verb: "delete-payout-destination", Method: "DELETE", Path: "/v1/payouts/destinations/{destination_id}", Summary: "Delete Payout Destination", HasBody: false, PathParams: []string{"destination_id"}},
	{Group: "payouts", Verb: "get", Method: "GET", Path: "/v1/payouts/{withdrawal_id}", Summary: "Get Payout", HasBody: false, PathParams: []string{"withdrawal_id"}},
	{Group: "payouts", Verb: "get-payout-destination", Method: "GET", Path: "/v1/payouts/destinations/{destination_id}", Summary: "Get Payout Destination", HasBody: false, PathParams: []string{"destination_id"}},
	{Group: "payouts", Verb: "list", Method: "GET", Path: "/v1/payouts", Summary: "List Payouts", HasBody: false, Query: []QueryFlag{{Name: "limit", Type: "integer", Description: "Number of records to return."}, {Name: "offset", Type: "integer", Description: "Number of records to skip."}, {Name: "status_filter", Type: "string", Description: "Optional exact withdrawal status filter."}}},
	{Group: "payouts", Verb: "list-payout-destinations", Method: "GET", Path: "/v1/payouts/destinations", Summary: "List Payout Destinations", HasBody: false, Query: []QueryFlag{{Name: "currency", Type: "string", Description: "Filter by destination currency code."}, {Name: "status", Type: "string", Description: "Filter by admin review status: `pending_review`, `approved`, or `rejected`."}, {Name: "limit", Type: "integer", Description: "Number of records to return."}, {Name: "offset", Type: "integer", Description: "Number of records to skip."}}},
	{Group: "payouts", Verb: "update-payout-destination", Method: "PATCH", Path: "/v1/payouts/destinations/{destination_id}", Summary: "Update Payout Destination", HasBody: true, PathParams: []string{"destination_id"}},
	{Group: "persons", Verb: "attach-person-document", Method: "POST", Path: "/v1/accounts/{account_id}/persons/{person_id}/documents", Summary: "Attach a document to a person", HasBody: true, PathParams: []string{"account_id", "person_id"}},
	{Group: "persons", Verb: "create-connected-account", Method: "POST", Path: "/v1/accounts/{account_id}/persons", Summary: "Add a person", HasBody: true, PathParams: []string{"account_id"}},
	{Group: "persons", Verb: "delete-connected-account", Method: "DELETE", Path: "/v1/accounts/{account_id}/persons/{person_id}", Summary: "Remove a person", HasBody: false, PathParams: []string{"account_id", "person_id"}},
	{Group: "persons", Verb: "get-connected-account", Method: "GET", Path: "/v1/accounts/{account_id}/persons/{person_id}", Summary: "Read a person", HasBody: false, PathParams: []string{"account_id", "person_id"}},
	{Group: "persons", Verb: "list-connected-account", Method: "GET", Path: "/v1/accounts/{account_id}/persons", Summary: "List persons", HasBody: false, PathParams: []string{"account_id"}, Query: []QueryFlag{{Name: "limit", Type: "integer", Description: ""}, {Name: "offset", Type: "integer", Description: ""}}},
	{Group: "persons", Verb: "update-connected-account", Method: "POST", Path: "/v1/accounts/{account_id}/persons/{person_id}", Summary: "Update a person", HasBody: true, PathParams: []string{"account_id", "person_id"}},
	{Group: "platform-fees", Verb: "get-platform-fee", Method: "GET", Path: "/v1/platform_fees/{fee_id}", Summary: "Get a platform fee", HasBody: false, PathParams: []string{"fee_id"}},
	{Group: "platform-fees", Verb: "list-platform-fees", Method: "GET", Path: "/v1/platform_fees", Summary: "List platform fees", HasBody: false, Query: []QueryFlag{{Name: "limit", Type: "integer", Description: "Number of platform fees to return per page."}, {Name: "offset", Type: "integer", Description: "Number of platform fees to skip before the page starts."}, {Name: "charge", Type: "string", Description: "Filter to the platform fee struck against this charge."}}},
	{Group: "product-groups", Verb: "create-product-group", Method: "POST", Path: "/v1/product-groups", Summary: "Create Product Group", HasBody: true},
	{Group: "product-groups", Verb: "delete-product-group", Method: "DELETE", Path: "/v1/product-groups/{group_id}", Summary: "Delete Product Group", HasBody: false, PathParams: []string{"group_id"}},
	{Group: "product-groups", Verb: "get-product-group", Method: "GET", Path: "/v1/product-groups/{group_id}", Summary: "Get Product Group", HasBody: false, PathParams: []string{"group_id"}, Query: []QueryFlag{{Name: "include_archived", Type: "boolean", Description: ""}}},
	{Group: "product-groups", Verb: "list-product-groups", Method: "GET", Path: "/v1/product-groups", Summary: "List Product Groups", HasBody: false, Query: []QueryFlag{{Name: "limit", Type: "integer", Description: ""}, {Name: "cursor", Type: "string", Description: ""}}},
	{Group: "product-groups", Verb: "update-product-group", Method: "PATCH", Path: "/v1/product-groups/{group_id}", Summary: "Update Product Group", HasBody: true, PathParams: []string{"group_id"}},
	{Group: "products", Verb: "archive", Method: "POST", Path: "/v1/products/{product_id}/archive", Summary: "Archive a product", HasBody: false, PathParams: []string{"product_id"}},
	{Group: "products", Verb: "create", Method: "POST", Path: "/v1/products", Summary: "Create a product", HasBody: true},
	{Group: "products", Verb: "get", Method: "GET", Path: "/v1/products/{product_id}", Summary: "Retrieve a product", HasBody: false, PathParams: []string{"product_id"}},
	{Group: "products", Verb: "list", Method: "GET", Path: "/v1/products", Summary: "List products", HasBody: false, Query: []QueryFlag{{Name: "limit", Type: "integer", Description: ""}, {Name: "cursor", Type: "string", Description: ""}, {Name: "include_archived", Type: "boolean", Description: "Include archived products in the results. Defaults to `false`."}}},
	{Group: "products", Verb: "unarchive", Method: "POST", Path: "/v1/products/{product_id}/unarchive", Summary: "Unarchive a product", HasBody: false, PathParams: []string{"product_id"}},
	{Group: "products", Verb: "update", Method: "PATCH", Path: "/v1/products/{product_id}", Summary: "Update a product", HasBody: true, PathParams: []string{"product_id"}},
	{Group: "reference", Verb: "list-reference-banks", Method: "GET", Path: "/v1/reference/banks", Summary: "List banks", HasBody: false, Query: []QueryFlag{{Name: "country", Type: "string", Description: "Two-letter ISO 3166-1 country. Falls back to your own platform's country, and fails with `…"}}},
	{Group: "reference", Verb: "list-reference-business-structures", Method: "GET", Path: "/v1/reference/business-structures", Summary: "List business structures", HasBody: false, Query: []QueryFlag{{Name: "country", Type: "string", Description: "Two-letter ISO 3166-1 country. Falls back to your own platform's country."}}},
	{Group: "reference", Verb: "list-reference-momo-providers", Method: "GET", Path: "/v1/reference/momo", Summary: "List mobile money providers", HasBody: false, Query: []QueryFlag{{Name: "country", Type: "string", Description: "Two-letter ISO 3166-1 country. Falls back to your own platform's country, and fails with `…"}}},
	{Group: "reference", Verb: "list-reference-product-categories", Method: "GET", Path: "/v1/reference/product-categories", Summary: "List product categories", HasBody: false},
	{Group: "refunds", Verb: "create", Method: "POST", Path: "/v1/refunds", Summary: "Create a refund", HasBody: true},
	{Group: "refunds", Verb: "get", Method: "GET", Path: "/v1/refunds/{refund_id}", Summary: "Retrieve a refund", HasBody: false, PathParams: []string{"refund_id"}},
	{Group: "refunds", Verb: "get-refund-by-charge", Method: "GET", Path: "/v1/refunds/by-charge/{payment_id}", Summary: "Retrieve a refund by charge", HasBody: false, PathParams: []string{"payment_id"}},
	{Group: "refunds", Verb: "list", Method: "GET", Path: "/v1/refunds", Summary: "List refunds", HasBody: false, Query: []QueryFlag{{Name: "limit", Type: "integer", Description: "Number of refunds to return. Min 1, max 100. Default 50."}, {Name: "offset", Type: "integer", Description: "Number of refunds to skip before returning results. Default 0."}, {Name: "status", Type: "string", Description: "Return only refunds in this state. `processing`: the refund is on its way to the customer.…"}}},
	{Group: "subscriptions", Verb: "cancel", Method: "DELETE", Path: "/v1/subscriptions/{subscription_id}", Summary: "Cancel a subscription", HasBody: true, PathParams: []string{"subscription_id"}},
	{Group: "subscriptions", Verb: "get", Method: "GET", Path: "/v1/subscriptions/{subscription_id}", Summary: "Retrieve a subscription", HasBody: false, PathParams: []string{"subscription_id"}},
	{Group: "subscriptions", Verb: "list", Method: "GET", Path: "/v1/subscriptions", Summary: "List subscriptions", HasBody: false, Query: []QueryFlag{{Name: "limit", Type: "integer", Description: ""}, {Name: "offset", Type: "integer", Description: ""}, {Name: "customer_id", Type: "string", Description: "Only subscriptions for this customer (cust_...)."}, {Name: "status", Type: "string", Description: "Only subscriptions in this status."}}},
	{Group: "subscriptions", Verb: "update", Method: "PATCH", Path: "/v1/subscriptions/{subscription_id}", Summary: "Update a subscription", HasBody: true, PathParams: []string{"subscription_id"}},
	{Group: "transfers", Verb: "create", Method: "POST", Path: "/v1/transfers", Summary: "Create a transfer", HasBody: true},
	{Group: "transfers", Verb: "get", Method: "GET", Path: "/v1/transfers/{transfer_id}", Summary: "Get a transfer", HasBody: false, PathParams: []string{"transfer_id"}},
	{Group: "transfers", Verb: "list", Method: "GET", Path: "/v1/transfers", Summary: "List transfers", HasBody: false, Query: []QueryFlag{{Name: "limit", Type: "integer", Description: "Number of transfers to return per page."}, {Name: "offset", Type: "integer", Description: "Number of transfers to skip before the page starts."}, {Name: "connected_account_id", Type: "string", Description: "Return only transfers involving this account, in either direction."}, {Name: "kind", Type: "string", Description: "Filter to one class of movement: `payout` or `manual`. `platform_fee` is no longer accepte…"}}},
	{Group: "webhooks", Verb: "create-webhook-endpoint", Method: "POST", Path: "/v1/webhooks/endpoints", Summary: "Create a webhook endpoint", HasBody: true},
	{Group: "webhooks", Verb: "delete-webhook-endpoint", Method: "DELETE", Path: "/v1/webhooks/endpoints/{endpoint_id}", Summary: "Delete a webhook endpoint", HasBody: false, PathParams: []string{"endpoint_id"}},
	{Group: "webhooks", Verb: "get-webhook-endpoint", Method: "GET", Path: "/v1/webhooks/endpoints/{endpoint_id}", Summary: "Retrieve a webhook endpoint", HasBody: false, PathParams: []string{"endpoint_id"}},
	{Group: "webhooks", Verb: "get-webhook-endpoint-event", Method: "GET", Path: "/v1/webhooks/endpoints/{endpoint_id}/events/{event_id}", Summary: "Retrieve an endpoint event", HasBody: false, PathParams: []string{"endpoint_id", "event_id"}},
	{Group: "webhooks", Verb: "get-webhook-endpoint-metrics", Method: "GET", Path: "/v1/webhooks/endpoints/{endpoint_id}/metrics", Summary: "Retrieve endpoint delivery metrics", HasBody: false, PathParams: []string{"endpoint_id"}, Query: []QueryFlag{{Name: "period", Type: "string", Description: "Grouping period, e.g. `day`."}, {Name: "date_from", Type: "string", Description: "Start of the range (ISO 8601)."}, {Name: "date_to", Type: "string", Description: "End of the range (ISO 8601)."}}},
	{Group: "webhooks", Verb: "get-webhook-endpoint-secret", Method: "GET", Path: "/v1/webhooks/endpoints/{endpoint_id}/secret", Summary: "Retrieve an endpoint's signing secret", HasBody: false, PathParams: []string{"endpoint_id"}},
	{Group: "webhooks", Verb: "get-webhook-event", Method: "GET", Path: "/v1/webhooks/events/{event_id}", Summary: "Retrieve a webhook event", HasBody: false, PathParams: []string{"event_id"}},
	{Group: "webhooks", Verb: "list-webhook-endpoint-events", Method: "GET", Path: "/v1/webhooks/endpoints/{endpoint_id}/events", Summary: "List events for an endpoint", HasBody: false, PathParams: []string{"endpoint_id"}, Query: []QueryFlag{{Name: "limit", Type: "integer", Description: "Maximum results to return (1–100, default 50)."}, {Name: "offset", Type: "integer", Description: "Number of results to skip."}}},
	{Group: "webhooks", Verb: "list-webhook-endpoints", Method: "GET", Path: "/v1/webhooks/endpoints", Summary: "List webhook endpoints", HasBody: false, Query: []QueryFlag{{Name: "limit", Type: "integer", Description: "Number of endpoints to return per page."}, {Name: "offset", Type: "integer", Description: "Number of endpoints to skip before the page starts."}, {Name: "cursor", Type: "string", Description: "Cursor from a previous page's `pagination.next_cursor`. Takes precedence over `offset` whe…"}}},
	{Group: "webhooks", Verb: "list-webhook-events", Method: "GET", Path: "/v1/webhooks/events", Summary: "List webhook events", HasBody: false, Query: []QueryFlag{{Name: "limit", Type: "integer", Description: "Maximum results to return (1–100, default 50)."}, {Name: "offset", Type: "integer", Description: "Number of results to skip."}}},
	{Group: "webhooks", Verb: "replay-webhook-event", Method: "POST", Path: "/v1/webhooks/replay", Summary: "Replay a webhook event", HasBody: true},
	{Group: "webhooks", Verb: "resend-webhook-event", Method: "POST", Path: "/v1/webhooks/endpoints/{endpoint_id}/events/{event_id}/resend", Summary: "Resend an event to an endpoint", HasBody: false, PathParams: []string{"endpoint_id", "event_id"}},
	{Group: "webhooks", Verb: "rotate-webhook-endpoint-secret", Method: "POST", Path: "/v1/webhooks/endpoints/{endpoint_id}/rotate-secret", Summary: "Rotate an endpoint's signing secret", HasBody: false, PathParams: []string{"endpoint_id"}},
	{Group: "webhooks", Verb: "update-webhook-endpoint", Method: "PATCH", Path: "/v1/webhooks/endpoints/{endpoint_id}", Summary: "Update a webhook endpoint", HasBody: true, PathParams: []string{"endpoint_id"}},
}

Commands is every public API operation, grouped as the CLI exposes it.

Functions

func Groups

func Groups() []string

Groups returns the resource groups, sorted.

Types

type Command

type Command struct {
	Group      string // "products"
	Verb       string // "list"
	Method     string // "GET"
	Path       string // "/v1/products/{product_id}"
	Summary    string
	PathParams []string
	Query      []QueryFlag
	HasBody    bool
}

Command is one API operation as the CLI exposes it.

func Find

func Find(group, verb string) (Command, bool)

Find resolves a group and verb to a command.

func InGroup

func InGroup(group string) []Command

InGroup returns the commands in one group, sorted by verb.

type QueryFlag

type QueryFlag struct {
	Name        string
	Type        string
	Description string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL