{"modulePath":"github.com/devdraftengineer/devdraft-go","version":"v0.0.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package devdraft\n\n## Functions\n\n```go\nfunc Bool(b bool) param.Opt[bool]\n```\n\n```go\nfunc BoolPtr(v bool) *bool\n```\n\n```go\nfunc DefaultClientOptions() []option.RequestOption\n```\nDefaultClientOptions read from the environment (DEVDRAFT\\_API\\_KEY, DEVDRAFT\\_IDEMPOTENCY\\_KEY, DEVDRAFT\\_SECRET, DEVDRAFT\\_BASE\\_URL). This should be used to initialize new clients.\n\n```go\nfunc File(rdr io.Reader, filename string, contentType string) file\n```\n\n```go\nfunc Float(f float64) param.Opt[float64]\n```\n\n```go\nfunc FloatPtr(v float64) *float64\n```\n\n```go\nfunc Int(i int64) param.Opt[int64]\n```\n\n```go\nfunc IntPtr(v int64) *int64\n```\n\n```go\nfunc Opt[T comparable](v T) param.Opt[T]\n```\n\n```go\nfunc Ptr[T any](v T) *T\n```\n\n```go\nfunc String(s string) param.Opt[string]\n```\n\n```go\nfunc StringPtr(v string) *string\n```\n\n```go\nfunc Time(t time.Time) param.Opt[time.Time]\n```\n\n```go\nfunc TimePtr(v time.Time) *time.Time\n```\n\n## Types\n\n```go\ntype AggregatedBalance struct {\n\t// Detailed breakdown of balances by wallet and chain\n\tBalances [][]any `json:\"balances,required\"`\n\t// The stablecoin currency\n\t//\n\t// Any of \"usdc\", \"eurc\".\n\tCurrency AggregatedBalanceCurrency `json:\"currency,required\"`\n\t// The total aggregated balance across all wallets and chains\n\tTotalBalance string `json:\"total_balance,required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBalances     respjson.Field\n\t\tCurrency     respjson.Field\n\t\tTotalBalance respjson.Field\n\t\tExtraFields  map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r AggregatedBalance) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *AggregatedBalance) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype AggregatedBalanceCurrency string\n```\nThe stablecoin currency\n\n```go\nconst (\n\tAggregatedBalanceCurrencyUsdc AggregatedBalanceCurrency = \"usdc\"\n\tAggregatedBalanceCurrencyEurc AggregatedBalanceCurrency = \"eurc\"\n)\n```\n\n```go\ntype BridgePaymentRail string\n```\nThe blockchain network where the source currency resides. Determines gas fees and transaction speed.\n\n```go\nconst (\n\tBridgePaymentRailEthereum        BridgePaymentRail = \"ethereum\"\n\tBridgePaymentRailSolana          BridgePaymentRail = \"solana\"\n\tBridgePaymentRailPolygon         BridgePaymentRail = \"polygon\"\n\tBridgePaymentRailAvalancheCChain BridgePaymentRail = \"avalanche_c_chain\"\n\tBridgePaymentRailBase            BridgePaymentRail = \"base\"\n\tBridgePaymentRailArbitrum        BridgePaymentRail = \"arbitrum\"\n\tBridgePaymentRailOptimism        BridgePaymentRail = \"optimism\"\n\tBridgePaymentRailStellar         BridgePaymentRail = \"stellar\"\n\tBridgePaymentRailTron            BridgePaymentRail = \"tron\"\n\tBridgePaymentRailBridgeWallet    BridgePaymentRail = \"bridge_wallet\"\n\tBridgePaymentRailWire            BridgePaymentRail = \"wire\"\n\tBridgePaymentRailACH             BridgePaymentRail = \"ach\"\n\tBridgePaymentRailACHPush         BridgePaymentRail = \"ach_push\"\n\tBridgePaymentRailACHSameDay      BridgePaymentRail = \"ach_same_day\"\n\tBridgePaymentRailSepa            BridgePaymentRail = \"sepa\"\n\tBridgePaymentRailSwift           BridgePaymentRail = \"swift\"\n\tBridgePaymentRailSpei            BridgePaymentRail = \"spei\"\n)\n```\n\n```go\ntype Client struct {\n\tOptions []option.RequestOption\n\tV0      V0Service\n}\n```\nClient creates a struct with services and top level methods that help with interacting with the devdraft API. You should not instantiate this client directly, and instead use the [NewClient](#NewClient) method instead.\n\n```go\nfunc NewClient(opts ...option.RequestOption) (r Client)\n```\nNewClient generates a new client with the default option read from the environment (DEVDRAFT\\_API\\_KEY, DEVDRAFT\\_IDEMPOTENCY\\_KEY, DEVDRAFT\\_SECRET, DEVDRAFT\\_BASE\\_URL). The option passed in as arguments are applied after these default arguments, and all option will be passed down to the services and requests that this client makes.\n\n```go\nfunc (r *Client) Delete(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nDelete makes a DELETE request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\nfunc (r *Client) Execute(ctx context.Context, method string, path string, params any, res any, opts ...option.RequestOption) error\n```\nExecute makes a request with the given context, method, URL, request params, response, and request options. This is useful for hitting undocumented endpoints while retaining the base URL, auth, retries, and other options from the client.\n\nIf a byte slice or an [io.Reader](/io#Reader) is supplied to params, it will be used as-is for the request body.\n\nThe params is by default serialized into the body using [encoding/json](/encoding/json). If your type implements a MarshalJSON function, it will be used instead to serialize the request. If a URLQuery method is implemented, the returned [url.Values](/net/url#Values) will be used as query strings to the url.\n\nIf your params struct uses [param.Field](/github.com/devdraftengineer/devdraft-go/packages/param#Field), you must provide either \\[MarshalJSON], \\[URLQuery], and/or \\[MarshalForm] functions. It is undefined behavior to use a struct uses [param.Field](/github.com/devdraftengineer/devdraft-go/packages/param#Field) without specifying how it is serialized.\n\nAny \"…Params\" object defined in this library can be used as the request argument. Note that 'path' arguments will not be forwarded into the url.\n\nThe response body will be deserialized into the res variable, depending on its type:\n\n  - A pointer to a [\\*http.Response](/net/http#Response) is populated by the raw response.\n  - A pointer to a byte array will be populated with the contents of the request body.\n  - A pointer to any other type uses this library's default JSON decoding, which respects UnmarshalJSON if it is defined on the type.\n  - A nil value will not read the response body.\n\nFor even greater flexibility, see [option.WithResponseInto](/github.com/devdraftengineer/devdraft-go/option#WithResponseInto) and [option.WithResponseBodyInto](/github.com/devdraftengineer/devdraft-go/option#WithResponseBodyInto).\n\n```go\nfunc (r *Client) Get(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nGet makes a GET request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\nfunc (r *Client) Patch(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nPatch makes a PATCH request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\nfunc (r *Client) Post(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nPost makes a POST request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\nfunc (r *Client) Put(ctx context.Context, path string, params any, res any, opts ...option.RequestOption) error\n```\nPut makes a PUT request with the given URL, params, and optionally deserializes to a response. See \\[Execute] documentation on the params and response.\n\n```go\ntype CreateInvoiceCurrency string\n```\nCurrency for the invoice\n\n```go\nconst (\n\tCreateInvoiceCurrencyUsdc CreateInvoiceCurrency = \"usdc\"\n\tCreateInvoiceCurrencyEurc CreateInvoiceCurrency = \"eurc\"\n)\n```\n\n```go\ntype CreateInvoiceDelivery string\n```\nDelivery method\n\n```go\nconst (\n\tCreateInvoiceDeliveryEmail    CreateInvoiceDelivery = \"EMAIL\"\n\tCreateInvoiceDeliveryManually CreateInvoiceDelivery = \"MANUALLY\"\n)\n```\n\n```go\ntype CreateInvoiceItemParam struct {\n\t// Product ID\n\tProductID string `json:\"product_id,required\"`\n\t// Quantity of the product\n\tQuantity float64 `json:\"quantity,required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties ProductID, Quantity are required.\n\n```go\nfunc (r CreateInvoiceItemParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CreateInvoiceItemParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CreateInvoiceParam struct {\n\t// Currency for the invoice\n\t//\n\t// Any of \"usdc\", \"eurc\".\n\tCurrency CreateInvoiceCurrency `json:\"currency,omitzero,required\"`\n\t// Customer ID\n\tCustomerID string `json:\"customer_id,required\"`\n\t// Delivery method\n\t//\n\t// Any of \"EMAIL\", \"MANUALLY\".\n\tDelivery CreateInvoiceDelivery `json:\"delivery,omitzero,required\"`\n\t// Due date of the invoice\n\tDueDate time.Time `json:\"due_date,required\" format:\"date-time\"`\n\t// Email address\n\tEmail string `json:\"email,required\"`\n\t// Array of products in the invoice\n\tItems []CreateInvoiceItemParam `json:\"items,omitzero,required\"`\n\t// Name of the invoice\n\tName string `json:\"name,required\"`\n\t// Allow partial payments\n\tPartialPayment bool `json:\"partial_payment,required\"`\n\t// Whether to generate a payment link\n\tPaymentLink bool `json:\"payment_link,required\"`\n\t// Array of accepted payment methods\n\t//\n\t// Any of \"ACH\", \"BANK_TRANSFER\", \"CREDIT_CARD\", \"CASH\", \"MOBILE_MONEY\", \"CRYPTO\".\n\tPaymentMethods []string `json:\"payment_methods,omitzero,required\"`\n\t// Invoice status\n\t//\n\t// Any of \"DRAFT\", \"OPEN\", \"PASTDUE\", \"PAID\", \"PARTIALLYPAID\".\n\tStatus CreateInvoiceStatus `json:\"status,omitzero,required\"`\n\t// Address\n\tAddress param.Opt[string] `json:\"address,omitzero\"`\n\t// Logo URL\n\tLogo param.Opt[string] `json:\"logo,omitzero\"`\n\t// Phone number\n\tPhoneNumber param.Opt[string] `json:\"phone_number,omitzero\"`\n\t// Send date\n\tSendDate param.Opt[time.Time] `json:\"send_date,omitzero\" format:\"date-time\"`\n\t// Tax ID\n\tTaxID param.Opt[string] `json:\"taxId,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties Currency, CustomerID, Delivery, DueDate, Email, Items, Name, PartialPayment, PaymentLink, PaymentMethods, Status are required.\n\n```go\nfunc (r CreateInvoiceParam) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *CreateInvoiceParam) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype CreateInvoiceStatus string\n```\nInvoice status\n\n```go\nconst (\n\tCreateInvoiceStatusDraft         CreateInvoiceStatus = \"DRAFT\"\n\tCreateInvoiceStatusOpen          CreateInvoiceStatus = \"OPEN\"\n\tCreateInvoiceStatusPastdue       CreateInvoiceStatus = \"PASTDUE\"\n\tCreateInvoiceStatusPaid          CreateInvoiceStatus = \"PAID\"\n\tCreateInvoiceStatusPartiallypaid CreateInvoiceStatus = \"PARTIALLYPAID\"\n)\n```\n\n```go\ntype CustomerStatus string\n```\nCurrent status of the customer account. Controls access to services and features.\n\n```go\nconst (\n\tCustomerStatusActive      CustomerStatus = \"ACTIVE\"\n\tCustomerStatusBlacklisted CustomerStatus = \"BLACKLISTED\"\n\tCustomerStatusDeactivated CustomerStatus = \"DEACTIVATED\"\n\tCustomerStatusDeleted     CustomerStatus = \"DELETED\"\n)\n```\n\n```go\ntype CustomerType string\n```\nType of customer account. Determines available features and compliance requirements.\n\n```go\nconst (\n\tCustomerTypeIndividual     CustomerType = \"Individual\"\n\tCustomerTypeStartup        CustomerType = \"Startup\"\n\tCustomerTypeSmallBusiness  CustomerType = \"Small Business\"\n\tCustomerTypeMediumBusiness CustomerType = \"Medium Business\"\n\tCustomerTypeEnterprise     CustomerType = \"Enterprise\"\n\tCustomerTypeNonProfit      CustomerType = \"Non-Profit\"\n\tCustomerTypeGovernment     CustomerType = \"Government\"\n)\n```\n\n```go\ntype Error = apierror.Error\n```\n\n```go\ntype ExchangeRateResponse struct {\n\t// Rate for buying target currency (what you get when converting from source to\n\t// target)\n\tBuyRate string `json:\"buy_rate,required\"`\n\t// Source currency code (USD for USDC)\n\tFrom string `json:\"from,required\"`\n\t// Mid-market exchange rate from source to target currency\n\tMidmarketRate string `json:\"midmarket_rate,required\"`\n\t// Rate for selling target currency (what you pay when converting from target to\n\t// source)\n\tSellRate string `json:\"sell_rate,required\"`\n\t// Target currency code (EUR for EURC)\n\tTo string `json:\"to,required\"`\n\t// Timestamp when the exchange rate was last updated\n\tTimestamp string `json:\"timestamp\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tBuyRate       respjson.Field\n\t\tFrom          respjson.Field\n\t\tMidmarketRate respjson.Field\n\t\tSellRate      respjson.Field\n\t\tTo            respjson.Field\n\t\tTimestamp     respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r ExchangeRateResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *ExchangeRateResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype LiquidationAddressResponse struct {\n\t// Unique identifier for the liquidation address\n\tID string `json:\"id,required\"`\n\t// Liquidation address\n\tAddress string `json:\"address,required\"`\n\t// Blockchain chain\n\tChain string `json:\"chain,required\"`\n\t// Creation timestamp\n\tCreatedAt string `json:\"created_at,required\"`\n\t// Currency\n\tCurrency string `json:\"currency,required\"`\n\t// Customer ID this liquidation address belongs to\n\tCustomerID string `json:\"customer_id,required\"`\n\t// Current state of the liquidation address\n\tState string `json:\"state,required\"`\n\t// Last update timestamp\n\tUpdatedAt string `json:\"updated_at,required\"`\n\t// Bridge wallet ID\n\tBridgeWalletID string `json:\"bridge_wallet_id\"`\n\t// Custom developer fee percent\n\tCustomDeveloperFeePercent string `json:\"custom_developer_fee_percent\"`\n\t// Destination currency\n\tDestinationCurrency string `json:\"destination_currency\"`\n\t// Destination payment rail\n\tDestinationPaymentRail string `json:\"destination_payment_rail\"`\n\t// External account ID\n\tExternalAccountID string `json:\"external_account_id\"`\n\t// Prefunded account ID\n\tPrefundedAccountID string `json:\"prefunded_account_id\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID                        respjson.Field\n\t\tAddress                   respjson.Field\n\t\tChain                     respjson.Field\n\t\tCreatedAt                 respjson.Field\n\t\tCurrency                  respjson.Field\n\t\tCustomerID                respjson.Field\n\t\tState                     respjson.Field\n\t\tUpdatedAt                 respjson.Field\n\t\tBridgeWalletID            respjson.Field\n\t\tCustomDeveloperFeePercent respjson.Field\n\t\tDestinationCurrency       respjson.Field\n\t\tDestinationPaymentRail    respjson.Field\n\t\tExternalAccountID         respjson.Field\n\t\tPrefundedAccountID        respjson.Field\n\t\tExtraFields               map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r LiquidationAddressResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *LiquidationAddressResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype PaymentResponse struct {\n\t// Payment ID\n\tID string `json:\"id,required\"`\n\t// The amount charged\n\tAmount float64 `json:\"amount,required\"`\n\t// The currency code\n\tCurrency string `json:\"currency,required\"`\n\t// Payment status\n\tStatus string `json:\"status,required\"`\n\t// Timestamp of the payment\n\tTimestamp string `json:\"timestamp,required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tAmount      respjson.Field\n\t\tCurrency    respjson.Field\n\t\tStatus      respjson.Field\n\t\tTimestamp   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r PaymentResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *PaymentResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype StableCoinCurrency string\n```\nThe stablecoin currency to convert FROM. This is the currency the customer will pay with.\n\n```go\nconst (\n\tStableCoinCurrencyUsdc StableCoinCurrency = \"usdc\"\n\tStableCoinCurrencyEurc StableCoinCurrency = \"eurc\"\n)\n```\n\n```go\ntype V0BalanceGetAllStablecoinBalancesResponse struct {\n\t// EURC balance aggregation\n\tEurc AggregatedBalance `json:\"eurc,required\"`\n\t// Total value in USD equivalent\n\tTotalUsdValue string `json:\"total_usd_value,required\"`\n\t// USDC balance aggregation\n\tUsdc AggregatedBalance `json:\"usdc,required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tEurc          respjson.Field\n\t\tTotalUsdValue respjson.Field\n\t\tUsdc          respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r V0BalanceGetAllStablecoinBalancesResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *V0BalanceGetAllStablecoinBalancesResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0BalanceService struct {\n\tOptions []option.RequestOption\n}\n```\nV0BalanceService contains methods and other services that help with interacting with the devdraft API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewV0BalanceService](#NewV0BalanceService) method instead.\n\n```go\nfunc NewV0BalanceService(opts ...option.RequestOption) (r V0BalanceService)\n```\nNewV0BalanceService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *V0BalanceService) GetAllStablecoinBalances(ctx context.Context, opts ...option.RequestOption) (res *V0BalanceGetAllStablecoinBalancesResponse, err error)\n```\nRetrieves both USDC and EURC balances across all wallets for the specified app.\n\nThis comprehensive endpoint provides:\n\n\\- Complete USDC balance aggregation with detailed breakdown - Complete EURC balance aggregation with detailed breakdown - Total USD equivalent value across both currencies - Individual wallet and chain-specific balance details\n\n\\## Use Cases\n\n\\- Complete financial dashboard overview - Multi-currency balance reporting - Comprehensive wallet management - Cross-currency analytics and reporting\n\n\\## Response Format\n\nThe response includes separate aggregations for each currency plus a combined USD value estimate, providing complete visibility into stablecoin holdings.\n\n```go\nfunc (r *V0BalanceService) GetEurc(ctx context.Context, opts ...option.RequestOption) (res *AggregatedBalance, err error)\n```\nRetrieves the total EURC balance across all wallets for the specified app.\n\nThis endpoint aggregates EURC balances from all associated wallets and provides:\n\n\\- Total EURC balance across all chains and wallets - Detailed breakdown by individual wallet and blockchain network - Contract addresses and wallet identifiers for each balance\n\n\\## Use Cases\n\n\\- Dashboard balance display - European market operations - Euro-denominated financial reporting - Cross-currency balance tracking\n\n\\## Response Format\n\nThe response includes both the aggregated total and detailed breakdown, enabling comprehensive euro stablecoin balance management.\n\n```go\nfunc (r *V0BalanceService) GetUsdc(ctx context.Context, opts ...option.RequestOption) (res *AggregatedBalance, err error)\n```\nRetrieves the total USDC balance across all wallets for the specified app.\n\nThis endpoint aggregates USDC balances from all associated wallets and provides:\n\n\\- Total USDC balance across all chains and wallets - Detailed breakdown by individual wallet and blockchain network - Contract addresses and wallet identifiers for each balance\n\n\\## Use Cases\n\n\\- Dashboard balance display - Financial reporting and reconciliation - Real-time balance monitoring - Multi-chain balance aggregation\n\n\\## Response Format\n\nThe response includes both the aggregated total and detailed breakdown, allowing for comprehensive balance tracking and wallet-specific analysis.\n\n```go\ntype V0CustomerLiquidationAddressGetParams struct {\n\tCustomerID string `path:\"customerId,required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype V0CustomerLiquidationAddressNewParams struct {\n\t// The liquidation address on the blockchain\n\tAddress string `json:\"address,required\"`\n\t// The blockchain chain for the liquidation address\n\t//\n\t// Any of \"ethereum\", \"solana\", \"polygon\", \"avalanche_c_chain\", \"base\", \"arbitrum\",\n\t// \"optimism\", \"stellar\", \"tron\".\n\tChain V0CustomerLiquidationAddressNewParamsChain `json:\"chain,omitzero,required\"`\n\t// The currency for the liquidation address\n\t//\n\t// Any of \"usdc\", \"eurc\", \"dai\", \"pyusd\", \"usdt\".\n\tCurrency V0CustomerLiquidationAddressNewParamsCurrency `json:\"currency,omitzero,required\"`\n\t// Bridge Wallet to send funds to\n\tBridgeWalletID param.Opt[string] `json:\"bridge_wallet_id,omitzero\"`\n\t// Custom developer fee percentage (Base 100 percentage: 10.2% = \"10.2\")\n\tCustomDeveloperFeePercent param.Opt[string] `json:\"custom_developer_fee_percent,omitzero\"`\n\t// Reference for ACH transactions\n\tDestinationACHReference param.Opt[string] `json:\"destination_ach_reference,omitzero\"`\n\t// Crypto wallet address for crypto transfers\n\tDestinationAddress param.Opt[string] `json:\"destination_address,omitzero\"`\n\t// Memo for blockchain transactions\n\tDestinationBlockchainMemo param.Opt[string] `json:\"destination_blockchain_memo,omitzero\"`\n\t// Reference for SEPA transactions\n\tDestinationSepaReference param.Opt[string] `json:\"destination_sepa_reference,omitzero\"`\n\t// Message for wire transfers\n\tDestinationWireMessage param.Opt[string] `json:\"destination_wire_message,omitzero\"`\n\t// External bank account to send funds to\n\tExternalAccountID param.Opt[string] `json:\"external_account_id,omitzero\"`\n\t// Developer's prefunded account id\n\tPrefundedAccountID param.Opt[string] `json:\"prefunded_account_id,omitzero\"`\n\t// Address to return funds on failed transactions (Not supported on Stellar)\n\tReturnAddress param.Opt[string] `json:\"return_address,omitzero\"`\n\t// Currency for sending funds\n\t//\n\t// Any of \"usd\", \"eur\", \"mxn\", \"usdc\", \"eurc\", \"dai\", \"pyusd\", \"usdt\".\n\tDestinationCurrency V0CustomerLiquidationAddressNewParamsDestinationCurrency `json:\"destination_currency,omitzero\"`\n\t// The blockchain network where the source currency resides. Determines gas fees\n\t// and transaction speed.\n\t//\n\t// Any of \"ethereum\", \"solana\", \"polygon\", \"avalanche_c_chain\", \"base\", \"arbitrum\",\n\t// \"optimism\", \"stellar\", \"tron\", \"bridge_wallet\", \"wire\", \"ach\", \"ach_push\",\n\t// \"ach_same_day\", \"sepa\", \"swift\", \"spei\".\n\tDestinationPaymentRail BridgePaymentRail `json:\"destination_payment_rail,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0CustomerLiquidationAddressNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0CustomerLiquidationAddressNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0CustomerLiquidationAddressNewParamsChain string\n```\nThe blockchain chain for the liquidation address\n\n```go\nconst (\n\tV0CustomerLiquidationAddressNewParamsChainEthereum        V0CustomerLiquidationAddressNewParamsChain = \"ethereum\"\n\tV0CustomerLiquidationAddressNewParamsChainSolana          V0CustomerLiquidationAddressNewParamsChain = \"solana\"\n\tV0CustomerLiquidationAddressNewParamsChainPolygon         V0CustomerLiquidationAddressNewParamsChain = \"polygon\"\n\tV0CustomerLiquidationAddressNewParamsChainAvalancheCChain V0CustomerLiquidationAddressNewParamsChain = \"avalanche_c_chain\"\n\tV0CustomerLiquidationAddressNewParamsChainBase            V0CustomerLiquidationAddressNewParamsChain = \"base\"\n\tV0CustomerLiquidationAddressNewParamsChainArbitrum        V0CustomerLiquidationAddressNewParamsChain = \"arbitrum\"\n\tV0CustomerLiquidationAddressNewParamsChainOptimism        V0CustomerLiquidationAddressNewParamsChain = \"optimism\"\n\tV0CustomerLiquidationAddressNewParamsChainStellar         V0CustomerLiquidationAddressNewParamsChain = \"stellar\"\n\tV0CustomerLiquidationAddressNewParamsChainTron            V0CustomerLiquidationAddressNewParamsChain = \"tron\"\n)\n```\n\n```go\ntype V0CustomerLiquidationAddressNewParamsCurrency string\n```\nThe currency for the liquidation address\n\n```go\nconst (\n\tV0CustomerLiquidationAddressNewParamsCurrencyUsdc  V0CustomerLiquidationAddressNewParamsCurrency = \"usdc\"\n\tV0CustomerLiquidationAddressNewParamsCurrencyEurc  V0CustomerLiquidationAddressNewParamsCurrency = \"eurc\"\n\tV0CustomerLiquidationAddressNewParamsCurrencyDai   V0CustomerLiquidationAddressNewParamsCurrency = \"dai\"\n\tV0CustomerLiquidationAddressNewParamsCurrencyPyusd V0CustomerLiquidationAddressNewParamsCurrency = \"pyusd\"\n\tV0CustomerLiquidationAddressNewParamsCurrencyUsdt  V0CustomerLiquidationAddressNewParamsCurrency = \"usdt\"\n)\n```\n\n```go\ntype V0CustomerLiquidationAddressNewParamsDestinationCurrency string\n```\nCurrency for sending funds\n\n```go\nconst (\n\tV0CustomerLiquidationAddressNewParamsDestinationCurrencyUsd   V0CustomerLiquidationAddressNewParamsDestinationCurrency = \"usd\"\n\tV0CustomerLiquidationAddressNewParamsDestinationCurrencyEur   V0CustomerLiquidationAddressNewParamsDestinationCurrency = \"eur\"\n\tV0CustomerLiquidationAddressNewParamsDestinationCurrencyMxn   V0CustomerLiquidationAddressNewParamsDestinationCurrency = \"mxn\"\n\tV0CustomerLiquidationAddressNewParamsDestinationCurrencyUsdc  V0CustomerLiquidationAddressNewParamsDestinationCurrency = \"usdc\"\n\tV0CustomerLiquidationAddressNewParamsDestinationCurrencyEurc  V0CustomerLiquidationAddressNewParamsDestinationCurrency = \"eurc\"\n\tV0CustomerLiquidationAddressNewParamsDestinationCurrencyDai   V0CustomerLiquidationAddressNewParamsDestinationCurrency = \"dai\"\n\tV0CustomerLiquidationAddressNewParamsDestinationCurrencyPyusd V0CustomerLiquidationAddressNewParamsDestinationCurrency = \"pyusd\"\n\tV0CustomerLiquidationAddressNewParamsDestinationCurrencyUsdt  V0CustomerLiquidationAddressNewParamsDestinationCurrency = \"usdt\"\n)\n```\n\n```go\ntype V0CustomerLiquidationAddressService struct {\n\tOptions []option.RequestOption\n}\n```\nV0CustomerLiquidationAddressService contains methods and other services that help with interacting with the devdraft API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewV0CustomerLiquidationAddressService](#NewV0CustomerLiquidationAddressService) method instead.\n\n```go\nfunc NewV0CustomerLiquidationAddressService(opts ...option.RequestOption) (r V0CustomerLiquidationAddressService)\n```\nNewV0CustomerLiquidationAddressService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *V0CustomerLiquidationAddressService) Get(ctx context.Context, liquidationAddressID string, query V0CustomerLiquidationAddressGetParams, opts ...option.RequestOption) (res *LiquidationAddressResponse, err error)\n```\nRetrieve a specific liquidation address by its ID for a given customer.\n\n```go\nfunc (r *V0CustomerLiquidationAddressService) List(ctx context.Context, customerID string, opts ...option.RequestOption) (res *[]LiquidationAddressResponse, err error)\n```\nRetrieve all liquidation addresses associated with a specific customer.\n\n```go\nfunc (r *V0CustomerLiquidationAddressService) New(ctx context.Context, customerID string, body V0CustomerLiquidationAddressNewParams, opts ...option.RequestOption) (res *LiquidationAddressResponse, err error)\n```\nCreate a new liquidation address for a customer. Liquidation addresses allow\n\n\tcustomers to automatically liquidate cryptocurrency holdings to fiat or other\n\tstablecoins based on configured parameters.\n\n\t**Required fields:**\n\t- chain: Blockchain network (ethereum, polygon, arbitrum, base)\n\t- currency: Stablecoin currency (usdc, eurc, dai, pyusd, usdt)\n\t- address: Valid blockchain address\n\n\t**At least one destination must be specified:**\n\t- external_account_id: External bank account\n\t- prefunded_account_id: Developer's prefunded account\n\t- bridge_wallet_id: Bridge wallet\n\t- destination_address: Crypto wallet address\n\n\t**Payment Rails:**\n\tDifferent payment rails have different requirements:\n\t- ACH: Requires external_account_id, supports destination_ach_reference\n\t- SEPA: Requires external_account_id, supports destination_sepa_reference\n\t- Wire: Requires external_account_id, supports destination_wire_message\n\t- Crypto: Requires destination_address, supports destination_blockchain_memo\n\n```go\ntype V0CustomerListParams struct {\n\t// Filter customers by email (exact match, case-insensitive)\n\tEmail param.Opt[string] `query:\"email,omitzero\" json:\"-\"`\n\t// Filter customers by name (partial match, case-insensitive)\n\tName param.Opt[string] `query:\"name,omitzero\" json:\"-\"`\n\t// Number of records to skip for pagination\n\tSkip param.Opt[float64] `query:\"skip,omitzero\" json:\"-\"`\n\t// Number of records to return (max 100)\n\tTake param.Opt[float64] `query:\"take,omitzero\" json:\"-\"`\n\t// Filter customers by status\n\t//\n\t// Any of \"ACTIVE\", \"BLACKLISTED\", \"DEACTIVATED\", \"DELETED\".\n\tStatus CustomerStatus `query:\"status,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0CustomerListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [V0CustomerListParams](#V0CustomerListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype V0CustomerNewParams struct {\n\t// Customer's first name. Used for personalization and legal documentation.\n\tFirstName string `json:\"first_name,required\"`\n\t// Customer's last name. Used for personalization and legal documentation.\n\tLastName string `json:\"last_name,required\"`\n\t// Customer's phone number. Used for SMS notifications and verification. Include\n\t// country code for international numbers.\n\tPhoneNumber string `json:\"phone_number,required\"`\n\t// Customer's email address. Used for notifications, receipts, and account\n\t// management. Must be a valid email format.\n\tEmail param.Opt[string] `json:\"email,omitzero\" format:\"email\"`\n\t// Type of customer account. Determines available features and compliance\n\t// requirements.\n\t//\n\t// Any of \"Individual\", \"Startup\", \"Small Business\", \"Medium Business\",\n\t// \"Enterprise\", \"Non-Profit\", \"Government\".\n\tCustomerType CustomerType `json:\"customer_type,omitzero\"`\n\t// Current status of the customer account. Controls access to services and\n\t// features.\n\t//\n\t// Any of \"ACTIVE\", \"BLACKLISTED\", \"DEACTIVATED\", \"DELETED\".\n\tStatus CustomerStatus `json:\"status,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0CustomerNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0CustomerNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0CustomerService struct {\n\tOptions              []option.RequestOption\n\tLiquidationAddresses V0CustomerLiquidationAddressService\n}\n```\nV0CustomerService contains methods and other services that help with interacting with the devdraft API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewV0CustomerService](#NewV0CustomerService) method instead.\n\n```go\nfunc NewV0CustomerService(opts ...option.RequestOption) (r V0CustomerService)\n```\nNewV0CustomerService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *V0CustomerService) Get(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nRetrieves detailed information about a specific customer.\n\nThis endpoint allows you to fetch complete customer details including their contact information and status.\n\n\\## Use Cases\n\n\\- View customer details - Verify customer information - Check customer status before processing payments\n\n\\## Path Parameters\n\n\\- \\`id\\`: Customer UUID (required) - Must be a valid UUID format\n\n\\## Example Request\n\n\\`GET /api/v0/customers/123e4567-e89b-12d3-a456-426614174000\\`\n\n\\## Example Response\n\n\\`\\`\\`json\n\n\t{\n\t  \"id\": \"cust_123456\",\n\t  \"first_name\": \"John\",\n\t  \"last_name\": \"Doe\",\n\t  \"email\": \"john.doe@example.com\",\n\t  \"phone_number\": \"+1-555-123-4567\",\n\t  \"customer_type\": \"Enterprise\",\n\t  \"status\": \"ACTIVE\",\n\t  \"last_spent\": 1250.5,\n\t  \"last_purchase_date\": \"2024-03-15T14:30:00Z\",\n\t  \"created_at\": \"2024-03-20T10:00:00Z\",\n\t  \"updated_at\": \"2024-03-20T10:00:00Z\"\n\t}\n\n\\`\\`\\`\n\n```go\nfunc (r *V0CustomerService) List(ctx context.Context, query V0CustomerListParams, opts ...option.RequestOption) (err error)\n```\nRetrieves a list of customers with optional filtering and pagination.\n\nThis endpoint allows you to search and filter customers based on various criteria.\n\n\\## Use Cases\n\n\\- List all customers with pagination - Search customers by name or email - Filter customers by status - Export customer data\n\n\\## Query Parameters\n\n\\- \\`skip\\`: Number of records to skip (default: 0, min: 0) - \\`take\\`: Number of records to take (default: 10, min: 1, max: 100) - \\`status\\`: Filter by customer status (ACTIVE, BLACKLISTED, DEACTIVATED) - \\`name\\`: Filter by customer name (partial match, case-insensitive) - \\`email\\`: Filter by customer email (exact match, case-insensitive)\n\n\\## Example Request\n\n\\`GET /api/v0/customers?skip=0\u0026take=20\u0026status=ACTIVE\u0026name=John\\`\n\n\\## Example Response\n\n\\`\\`\\`json\n\n\t{\n\t  \"data\": [\n\t    {\n\t      \"id\": \"cust_123456\",\n\t      \"first_name\": \"John\",\n\t      \"last_name\": \"Doe\",\n\t      \"email\": \"john.doe@example.com\",\n\t      \"phone_number\": \"+1-555-123-4567\",\n\t      \"customer_type\": \"Startup\",\n\t      \"status\": \"ACTIVE\",\n\t      \"created_at\": \"2024-03-20T10:00:00Z\",\n\t      \"updated_at\": \"2024-03-20T10:00:00Z\"\n\t    }\n\t  ],\n\t  \"total\": 100,\n\t  \"skip\": 0,\n\t  \"take\": 10\n\t}\n\n\\`\\`\\`\n\n```go\nfunc (r *V0CustomerService) New(ctx context.Context, body V0CustomerNewParams, opts ...option.RequestOption) (err error)\n```\nCreates a new customer in the system with their personal and contact information.\n\nThis endpoint allows you to register new customers and store their details for future transactions.\n\n\\## Use Cases\n\n\\- Register new customers for payment processing - Store customer information for recurring payments - Maintain customer profiles for transaction history\n\n\\## Example: Create New Customer\n\n\\`\\`\\`json\n\n\t{\n\t  \"first_name\": \"John\",\n\t  \"last_name\": \"Doe\",\n\t  \"email\": \"john.doe@example.com\",\n\t  \"phone_number\": \"+1-555-123-4567\",\n\t  \"customer_type\": \"Startup\",\n\t  \"status\": \"ACTIVE\"\n\t}\n\n\\`\\`\\`\n\n\\## Required Fields\n\n\\- \\`first\\_name\\`: Customer's first name (1-100 characters) - \\`last\\_name\\`: Customer's last name (1-100 characters) - \\`phone\\_number\\`: Customer's phone number (max 20 characters)\n\n\\## Optional Fields\n\n  - \\`email\\`: Valid email address (max 255 characters)\n  - \\`customer\\_type\\`: Type of customer account (Individual, Startup, Small Business, Medium Business, Enterprise, Non-Profit, Government)\n  - \\`status\\`: Customer status (ACTIVE, BLACKLISTED, DEACTIVATED)\n\n```go\nfunc (r *V0CustomerService) Update(ctx context.Context, id string, body V0CustomerUpdateParams, opts ...option.RequestOption) (err error)\n```\nUpdates an existing customer's information.\n\nThis endpoint allows you to modify customer details while preserving their core information.\n\n\\## Use Cases\n\n\\- Update customer contact information - Change customer type - Modify customer status\n\n\\## Path Parameters\n\n\\- \\`id\\`: Customer UUID (required) - Must be a valid UUID format\n\n\\## Example Request\n\n\\`PATCH /api/v0/customers/123e4567-e89b-12d3-a456-426614174000\\`\n\n\\## Example Request Body\n\n\\`\\`\\`json\n\n\t{\n\t  \"first_name\": \"John\",\n\t  \"last_name\": \"Smith\",\n\t  \"phone_number\": \"+1-987-654-3210\",\n\t  \"customer_type\": \"Small Business\"\n\t}\n\n\\`\\`\\`\n\n\\## Notes\n\n\\- Only include fields that need to be updated - All fields are optional in updates - Status changes may require additional verification\n\n```go\ntype V0CustomerUpdateParams struct {\n\t// Customer's email address. Used for notifications, receipts, and account\n\t// management. Must be a valid email format.\n\tEmail param.Opt[string] `json:\"email,omitzero\" format:\"email\"`\n\t// Customer's first name. Used for personalization and legal documentation.\n\tFirstName param.Opt[string] `json:\"first_name,omitzero\"`\n\t// Customer's last name. Used for personalization and legal documentation.\n\tLastName param.Opt[string] `json:\"last_name,omitzero\"`\n\t// Customer's phone number. Used for SMS notifications and verification. Include\n\t// country code for international numbers.\n\tPhoneNumber param.Opt[string] `json:\"phone_number,omitzero\"`\n\t// Type of customer account. Determines available features and compliance\n\t// requirements.\n\t//\n\t// Any of \"Individual\", \"Startup\", \"Small Business\", \"Medium Business\",\n\t// \"Enterprise\", \"Non-Profit\", \"Government\".\n\tCustomerType CustomerType `json:\"customer_type,omitzero\"`\n\t// Current status of the customer account. Controls access to services and\n\t// features.\n\t//\n\t// Any of \"ACTIVE\", \"BLACKLISTED\", \"DEACTIVATED\", \"DELETED\".\n\tStatus CustomerStatus `json:\"status,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0CustomerUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0CustomerUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0ExchangeRateGetExchangeRateParams struct {\n\t// Source currency code (e.g., usd)\n\tFrom string `query:\"from,required\" json:\"-\"`\n\t// Target currency code (e.g., eur)\n\tTo string `query:\"to,required\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0ExchangeRateGetExchangeRateParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [V0ExchangeRateGetExchangeRateParams](#V0ExchangeRateGetExchangeRateParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype V0ExchangeRateService struct {\n\tOptions []option.RequestOption\n}\n```\nV0ExchangeRateService contains methods and other services that help with interacting with the devdraft API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewV0ExchangeRateService](#NewV0ExchangeRateService) method instead.\n\n```go\nfunc NewV0ExchangeRateService(opts ...option.RequestOption) (r V0ExchangeRateService)\n```\nNewV0ExchangeRateService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *V0ExchangeRateService) GetEurToUsd(ctx context.Context, opts ...option.RequestOption) (res *ExchangeRateResponse, err error)\n```\nRetrieves the current exchange rate for converting EUR to USD (EURC to USDC).\n\nThis endpoint provides real-time exchange rate information for stablecoin conversions:\n\n\\- Mid-market rate for reference pricing - Buy rate for actual conversion calculations - Sell rate for reverse conversion scenarios\n\n\\## Use Cases\n\n\\- Display current exchange rates in dashboards - Calculate conversion amounts for EURC to USDC transfers - Financial reporting and analytics - Real-time pricing for multi-currency operations\n\n\\## Rate Information\n\n\\- \\*\\*Mid-market rate\\*\\*: The theoretical middle rate between buy and sell - \\*\\*Buy rate\\*\\*: Rate used when converting FROM EUR TO USD (what you get) - \\*\\*Sell rate\\*\\*: Rate used when converting FROM USD TO EUR (what you pay)\n\nThe rates are updated in real-time and reflect current market conditions.\n\n```go\nfunc (r *V0ExchangeRateService) GetExchangeRate(ctx context.Context, query V0ExchangeRateGetExchangeRateParams, opts ...option.RequestOption) (res *ExchangeRateResponse, err error)\n```\nRetrieves the current exchange rate between two specified currencies.\n\nThis flexible endpoint allows you to get exchange rates for any supported currency pair:\n\n\\- Supports USD and EUR currency codes - Provides comprehensive rate information - Real-time market data\n\n\\## Supported Currency Pairs\n\n\\- USD to EUR (USDC to EURC) - EUR to USD (EURC to USDC)\n\n\\## Query Parameters\n\n\\- \\*\\*from\\*\\*: Source currency code (usd, eur) - \\*\\*to\\*\\*: Target currency code (usd, eur)\n\n\\## Use Cases\n\n\\- Flexible exchange rate queries - Multi-currency application support - Dynamic currency conversion calculations - Financial analytics and reporting\n\n\\## Rate Information\n\nAll rates are provided with full market context including mid-market, buy, and sell rates.\n\n```go\nfunc (r *V0ExchangeRateService) GetUsdToEur(ctx context.Context, opts ...option.RequestOption) (res *ExchangeRateResponse, err error)\n```\nRetrieves the current exchange rate for converting USD to EUR (USDC to EURC).\n\nThis endpoint provides real-time exchange rate information for stablecoin conversions:\n\n\\- Mid-market rate for reference pricing - Buy rate for actual conversion calculations - Sell rate for reverse conversion scenarios\n\n\\## Use Cases\n\n\\- Display current exchange rates in dashboards - Calculate conversion amounts for USDC to EURC transfers - Financial reporting and analytics - Real-time pricing for multi-currency operations\n\n\\## Rate Information\n\n\\- \\*\\*Mid-market rate\\*\\*: The theoretical middle rate between buy and sell - \\*\\*Buy rate\\*\\*: Rate used when converting FROM USD TO EUR (what you get) - \\*\\*Sell rate\\*\\*: Rate used when converting FROM EUR TO USD (what you pay)\n\nThe rates are updated in real-time and reflect current market conditions.\n\n```go\ntype V0HealthCheckPublicResponse struct {\n\t// Basic health status of the service. Returns \"ok\" when the service is responding.\n\t//\n\t// Any of \"ok\", \"error\".\n\tStatus V0HealthCheckPublicResponseStatus `json:\"status,required\"`\n\t// ISO 8601 timestamp when the health check was performed.\n\tTimestamp time.Time `json:\"timestamp,required\" format:\"date-time\"`\n\t// Current version of the API service.\n\tVersion string `json:\"version,required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tStatus      respjson.Field\n\t\tTimestamp   respjson.Field\n\t\tVersion     respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r V0HealthCheckPublicResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *V0HealthCheckPublicResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0HealthCheckPublicResponseStatus string\n```\nBasic health status of the service. Returns \"ok\" when the service is responding.\n\n```go\nconst (\n\tV0HealthCheckPublicResponseStatusOk    V0HealthCheckPublicResponseStatus = \"ok\"\n\tV0HealthCheckPublicResponseStatusError V0HealthCheckPublicResponseStatus = \"error\"\n)\n```\n\n```go\ntype V0HealthCheckResponse struct {\n\t// Indicates whether the request was properly authenticated. Always true for this\n\t// endpoint since authentication is required.\n\tAuthenticated bool `json:\"authenticated,required\"`\n\t// Database connectivity status. Shows \"connected\" when database is accessible,\n\t// \"error\" when connection fails.\n\t//\n\t// Any of \"connected\", \"error\".\n\tDatabase V0HealthCheckResponseDatabase `json:\"database,required\"`\n\t// Human-readable message describing the current health status and any issues.\n\tMessage string `json:\"message,required\"`\n\t// Overall health status of the service. Returns \"ok\" when healthy, \"error\" when\n\t// issues detected.\n\t//\n\t// Any of \"ok\", \"error\".\n\tStatus V0HealthCheckResponseStatus `json:\"status,required\"`\n\t// ISO 8601 timestamp when the health check was performed.\n\tTimestamp time.Time `json:\"timestamp,required\" format:\"date-time\"`\n\t// Current version of the API service. Useful for debugging and compatibility\n\t// checks.\n\tVersion string `json:\"version,required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tAuthenticated respjson.Field\n\t\tDatabase      respjson.Field\n\t\tMessage       respjson.Field\n\t\tStatus        respjson.Field\n\t\tTimestamp     respjson.Field\n\t\tVersion       respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r V0HealthCheckResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *V0HealthCheckResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0HealthCheckResponseDatabase string\n```\nDatabase connectivity status. Shows \"connected\" when database is accessible, \"error\" when connection fails.\n\n```go\nconst (\n\tV0HealthCheckResponseDatabaseConnected V0HealthCheckResponseDatabase = \"connected\"\n\tV0HealthCheckResponseDatabaseError     V0HealthCheckResponseDatabase = \"error\"\n)\n```\n\n```go\ntype V0HealthCheckResponseStatus string\n```\nOverall health status of the service. Returns \"ok\" when healthy, \"error\" when issues detected.\n\n```go\nconst (\n\tV0HealthCheckResponseStatusOk    V0HealthCheckResponseStatus = \"ok\"\n\tV0HealthCheckResponseStatusError V0HealthCheckResponseStatus = \"error\"\n)\n```\n\n```go\ntype V0HealthService struct {\n\tOptions []option.RequestOption\n}\n```\nV0HealthService contains methods and other services that help with interacting with the devdraft API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewV0HealthService](#NewV0HealthService) method instead.\n\n```go\nfunc NewV0HealthService(opts ...option.RequestOption) (r V0HealthService)\n```\nNewV0HealthService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *V0HealthService) Check(ctx context.Context, opts ...option.RequestOption) (res *V0HealthCheckResponse, err error)\n```\nAuthenticated health check endpoint\n\n```go\nfunc (r *V0HealthService) CheckPublic(ctx context.Context, opts ...option.RequestOption) (res *V0HealthCheckPublicResponse, err error)\n```\nPublic health check endpoint\n\n```go\ntype V0InvoiceListParams struct {\n\t// Number of records to skip\n\tSkip param.Opt[float64] `query:\"skip,omitzero\" json:\"-\"`\n\t// Number of records to take\n\tTake param.Opt[float64] `query:\"take,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0InvoiceListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [V0InvoiceListParams](#V0InvoiceListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype V0InvoiceNewParams struct {\n\tCreateInvoice CreateInvoiceParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0InvoiceNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0InvoiceNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0InvoiceService struct {\n\tOptions []option.RequestOption\n}\n```\nV0InvoiceService contains methods and other services that help with interacting with the devdraft API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewV0InvoiceService](#NewV0InvoiceService) method instead.\n\n```go\nfunc NewV0InvoiceService(opts ...option.RequestOption) (r V0InvoiceService)\n```\nNewV0InvoiceService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *V0InvoiceService) Get(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nGet an invoice by ID\n\n```go\nfunc (r *V0InvoiceService) List(ctx context.Context, query V0InvoiceListParams, opts ...option.RequestOption) (err error)\n```\nGet all invoices\n\n```go\nfunc (r *V0InvoiceService) New(ctx context.Context, body V0InvoiceNewParams, opts ...option.RequestOption) (err error)\n```\nCreate a new invoice\n\n```go\nfunc (r *V0InvoiceService) Update(ctx context.Context, id string, body V0InvoiceUpdateParams, opts ...option.RequestOption) (err error)\n```\nUpdate an invoice\n\n```go\ntype V0InvoiceUpdateParams struct {\n\tCreateInvoice CreateInvoiceParam\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0InvoiceUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0InvoiceUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0PaymentIntentNewBankParams struct {\n\t// The stablecoin currency to convert FROM. This is the currency the customer will\n\t// pay with.\n\t//\n\t// Any of \"usdc\", \"eurc\".\n\tDestinationCurrency StableCoinCurrency `json:\"destinationCurrency,omitzero,required\"`\n\t// The blockchain network where the source currency resides. Determines gas fees\n\t// and transaction speed.\n\t//\n\t// Any of \"ethereum\", \"solana\", \"polygon\", \"avalanche_c_chain\", \"base\", \"arbitrum\",\n\t// \"optimism\", \"stellar\", \"tron\", \"bridge_wallet\", \"wire\", \"ach\", \"ach_push\",\n\t// \"ach_same_day\", \"sepa\", \"swift\", \"spei\".\n\tDestinationNetwork BridgePaymentRail `json:\"destinationNetwork,omitzero,required\"`\n\t// The fiat currency to convert FROM. Must match the currency of the source payment\n\t// rail.\n\t//\n\t// Any of \"usd\", \"eur\", \"mxn\".\n\tSourceCurrency V0PaymentIntentNewBankParamsSourceCurrency `json:\"sourceCurrency,omitzero,required\"`\n\t// The blockchain network where the source currency resides. Determines gas fees\n\t// and transaction speed.\n\t//\n\t// Any of \"ethereum\", \"solana\", \"polygon\", \"avalanche_c_chain\", \"base\", \"arbitrum\",\n\t// \"optimism\", \"stellar\", \"tron\", \"bridge_wallet\", \"wire\", \"ach\", \"ach_push\",\n\t// \"ach_same_day\", \"sepa\", \"swift\", \"spei\".\n\tSourcePaymentRail BridgePaymentRail `json:\"sourcePaymentRail,omitzero,required\"`\n\t// ACH reference (for ACH transfers)\n\tACHReference param.Opt[string] `json:\"ach_reference,omitzero\"`\n\t// Payment amount (optional for flexible amount)\n\tAmount param.Opt[string] `json:\"amount,omitzero\"`\n\t// Customer address\n\tCustomerAddress param.Opt[string] `json:\"customer_address,omitzero\"`\n\t// Customer country\n\tCustomerCountry param.Opt[string] `json:\"customer_country,omitzero\"`\n\t// Customer country ISO code\n\tCustomerCountryISO param.Opt[string] `json:\"customer_countryISO,omitzero\"`\n\t// Customer email address\n\tCustomerEmail param.Opt[string] `json:\"customer_email,omitzero\"`\n\t// Customer first name\n\tCustomerFirstName param.Opt[string] `json:\"customer_first_name,omitzero\"`\n\t// Customer last name\n\tCustomerLastName param.Opt[string] `json:\"customer_last_name,omitzero\"`\n\t// Customer province/state\n\tCustomerProvince param.Opt[string] `json:\"customer_province,omitzero\"`\n\t// Customer province/state ISO code\n\tCustomerProvinceISO param.Opt[string] `json:\"customer_provinceISO,omitzero\"`\n\t// Destination wallet address. Supports Ethereum (0x...) and Solana address\n\t// formats.\n\tDestinationAddress param.Opt[string] `json:\"destinationAddress,omitzero\"`\n\t// Customer phone number\n\tPhoneNumber param.Opt[string] `json:\"phoneNumber,omitzero\"`\n\t// SEPA reference (for SEPA transfers)\n\tSepaReference param.Opt[string] `json:\"sepa_reference,omitzero\"`\n\t// Wire transfer message (for WIRE transfers)\n\tWireMessage param.Opt[string] `json:\"wire_message,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0PaymentIntentNewBankParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0PaymentIntentNewBankParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0PaymentIntentNewBankParamsSourceCurrency string\n```\nThe fiat currency to convert FROM. Must match the currency of the source payment rail.\n\n```go\nconst (\n\tV0PaymentIntentNewBankParamsSourceCurrencyUsd V0PaymentIntentNewBankParamsSourceCurrency = \"usd\"\n\tV0PaymentIntentNewBankParamsSourceCurrencyEur V0PaymentIntentNewBankParamsSourceCurrency = \"eur\"\n\tV0PaymentIntentNewBankParamsSourceCurrencyMxn V0PaymentIntentNewBankParamsSourceCurrency = \"mxn\"\n)\n```\n\n```go\ntype V0PaymentIntentNewStableParams struct {\n\t// The blockchain network where the source currency resides. Determines gas fees\n\t// and transaction speed.\n\t//\n\t// Any of \"ethereum\", \"solana\", \"polygon\", \"avalanche_c_chain\", \"base\", \"arbitrum\",\n\t// \"optimism\", \"stellar\", \"tron\", \"bridge_wallet\", \"wire\", \"ach\", \"ach_push\",\n\t// \"ach_same_day\", \"sepa\", \"swift\", \"spei\".\n\tDestinationNetwork BridgePaymentRail `json:\"destinationNetwork,omitzero,required\"`\n\t// The stablecoin currency to convert FROM. This is the currency the customer will\n\t// pay with.\n\t//\n\t// Any of \"usdc\", \"eurc\".\n\tSourceCurrency StableCoinCurrency `json:\"sourceCurrency,omitzero,required\"`\n\t// The blockchain network where the source currency resides. Determines gas fees\n\t// and transaction speed.\n\t//\n\t// Any of \"ethereum\", \"solana\", \"polygon\", \"avalanche_c_chain\", \"base\", \"arbitrum\",\n\t// \"optimism\", \"stellar\", \"tron\", \"bridge_wallet\", \"wire\", \"ach\", \"ach_push\",\n\t// \"ach_same_day\", \"sepa\", \"swift\", \"spei\".\n\tSourceNetwork BridgePaymentRail `json:\"sourceNetwork,omitzero,required\"`\n\t// Payment amount in the source currency. Omit for flexible amount payments where\n\t// users specify the amount during checkout.\n\tAmount param.Opt[string] `json:\"amount,omitzero\"`\n\t// Customer's full address. Required for compliance in certain jurisdictions and\n\t// high-value transactions.\n\tCustomerAddress param.Opt[string] `json:\"customer_address,omitzero\"`\n\t// Customer's country of residence. Used for compliance and tax reporting.\n\tCustomerCountry param.Opt[string] `json:\"customer_country,omitzero\"`\n\t// Customer's country ISO 3166-1 alpha-2 code. Used for automated compliance\n\t// checks.\n\tCustomerCountryISO param.Opt[string] `json:\"customer_countryISO,omitzero\"`\n\t// Customer's email address. Used for transaction notifications and receipts.\n\t// Highly recommended for all transactions.\n\tCustomerEmail param.Opt[string] `json:\"customer_email,omitzero\" format:\"email\"`\n\t// Customer's first name. Used for transaction records and compliance. Required for\n\t// amounts over $1000.\n\tCustomerFirstName param.Opt[string] `json:\"customer_first_name,omitzero\"`\n\t// Customer's last name. Used for transaction records and compliance. Required for\n\t// amounts over $1000.\n\tCustomerLastName param.Opt[string] `json:\"customer_last_name,omitzero\"`\n\t// Customer's state or province. Required for US and Canadian customers.\n\tCustomerProvince param.Opt[string] `json:\"customer_province,omitzero\"`\n\t// Customer's state or province ISO code. Used for automated tax calculations.\n\tCustomerProvinceISO param.Opt[string] `json:\"customer_provinceISO,omitzero\"`\n\t// The wallet address where converted funds will be sent. Supports Ethereum (0x...)\n\t// and Solana address formats.\n\tDestinationAddress param.Opt[string] `json:\"destinationAddress,omitzero\"`\n\t// Customer's phone number with country code. Used for SMS notifications and\n\t// verification.\n\tPhoneNumber param.Opt[string] `json:\"phoneNumber,omitzero\"`\n\t// The stablecoin currency to convert FROM. This is the currency the customer will\n\t// pay with.\n\t//\n\t// Any of \"usdc\", \"eurc\".\n\tDestinationCurrency StableCoinCurrency `json:\"destinationCurrency,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0PaymentIntentNewStableParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0PaymentIntentNewStableParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0PaymentIntentService struct {\n\tOptions []option.RequestOption\n}\n```\nV0PaymentIntentService contains methods and other services that help with interacting with the devdraft API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewV0PaymentIntentService](#NewV0PaymentIntentService) method instead.\n\n```go\nfunc NewV0PaymentIntentService(opts ...option.RequestOption) (r V0PaymentIntentService)\n```\nNewV0PaymentIntentService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *V0PaymentIntentService) NewBank(ctx context.Context, body V0PaymentIntentNewBankParams, opts ...option.RequestOption) (err error)\n```\nCreates a new bank payment intent for fiat-to-stablecoin transfers.\n\nThis endpoint allows you to create payment intents for bank transfers (ACH, Wire, SEPA) that convert to stablecoins. Perfect for onboarding users from traditional banking to crypto.\n\n\\## Supported Payment Rails\n\n\\- \\*\\*ACH\\_PUSH\\*\\*: US bank transfers (same-day or standard) - \\*\\*WIRE\\*\\*: International wire transfers - \\*\\*SEPA\\*\\*: European bank transfers\n\n\\## Use Cases\n\n\\- USD bank account to USDC conversion - EUR bank account to EURC conversion - MXN bank account to stablecoin conversion - Flexible amount payment intents for variable pricing\n\n\\## Supported Source Currencies\n\n\\- \\*\\*USD\\*\\*: US Dollar - \\*\\*EUR\\*\\*: Euro - \\*\\*MXN\\*\\*: Mexican Peso\n\n\\## Example: USD Bank to USDC\n\n\\`\\`\\`json\n\n\t{\n\t  \"sourcePaymentRail\": \"ach_push\",\n\t  \"sourceCurrency\": \"usd\",\n\t  \"destinationCurrency\": \"usdc\",\n\t  \"destinationNetwork\": \"ethereum\",\n\t  \"destinationAddress\": \"0x742d35Cc6634C0532925a3b8D4C9db96c4b4d8e1\",\n\t  \"amount\": \"1000.00\",\n\t  \"customer_first_name\": \"John\",\n\t  \"customer_last_name\": \"Doe\",\n\t  \"customer_email\": \"john.doe@example.com\",\n\t  \"ach_reference\": \"INV12345\"\n\t}\n\n\\`\\`\\`\n\n\\## Reference Fields\n\nUse appropriate reference fields based on the payment rail:\n\n\\- \\`ach\\_reference\\`: For ACH transfers (max 10 chars, alphanumeric + spaces) - \\`wire\\_message\\`: For wire transfers (max 256 chars) - \\`sepa\\_reference\\`: For SEPA transfers (6-140 chars, specific character set)\n\n\\## Idempotency\n\nInclude an \\`idempotency-key\\` header with a unique UUID v4 to prevent duplicate payments. Subsequent requests with the same key will return the original response.\n\n```go\nfunc (r *V0PaymentIntentService) NewStable(ctx context.Context, body V0PaymentIntentNewStableParams, opts ...option.RequestOption) (err error)\n```\nCreates a new stable payment intent for stablecoin-to-stablecoin transfers.\n\nThis endpoint allows you to create payment intents for transfers between different stablecoins and networks. Perfect for cross-chain stablecoin swaps and conversions.\n\n\\## Use Cases\n\n\\- USDC to EURC conversions - Cross-chain stablecoin transfers (e.g., Ethereum USDC to Polygon USDC) - Flexible amount payment intents for dynamic pricing\n\n\\## Example: USDC to EURC Conversion\n\n\\`\\`\\`json\n\n\t{\n\t  \"sourceCurrency\": \"usdc\",\n\t  \"sourceNetwork\": \"ethereum\",\n\t  \"destinationCurrency\": \"eurc\",\n\t  \"destinationNetwork\": \"polygon\",\n\t  \"destinationAddress\": \"0x742d35Cc6634C0532925a3b8D4C9db96c4b4d8e1\",\n\t  \"amount\": \"100.00\",\n\t  \"customer_first_name\": \"John\",\n\t  \"customer_last_name\": \"Doe\",\n\t  \"customer_email\": \"john.doe@example.com\"\n\t}\n\n\\`\\`\\`\n\n\\## Flexible Amount Payments\n\nOmit the \\`amount\\` field to create a flexible payment intent where users can specify the amount during payment.\n\n\\## Idempotency\n\nInclude an \\`idempotency-key\\` header with a unique UUID v4 to prevent duplicate payments. Subsequent requests with the same key will return the original response.\n\n```go\ntype V0PaymentLinkListParams struct {\n\t// Number of records to skip (must be non-negative)\n\tSkip param.Opt[string] `query:\"skip,omitzero\" json:\"-\"`\n\t// Number of records to take (must be positive)\n\tTake param.Opt[string] `query:\"take,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0PaymentLinkListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [V0PaymentLinkListParams](#V0PaymentLinkListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype V0PaymentLinkNewParams struct {\n\t// Whether to allow mobile payment\n\tAllowMobilePayment bool `json:\"allowMobilePayment,required\"`\n\t// Whether to allow quantity adjustment\n\tAllowQuantityAdjustment bool `json:\"allowQuantityAdjustment,required\"`\n\t// Whether to collect address\n\tCollectAddress bool `json:\"collectAddress,required\"`\n\t// Whether to collect tax\n\tCollectTax bool `json:\"collectTax,required\"`\n\t// Currency\n\t//\n\t// Any of \"usdc\", \"eurc\".\n\tCurrency V0PaymentLinkNewParamsCurrency `json:\"currency,omitzero,required\"`\n\t// Type of the payment link\n\t//\n\t// Any of \"INVOICE\", \"PRODUCT\", \"COLLECTION\", \"DONATION\".\n\tLinkType V0PaymentLinkNewParamsLinkType `json:\"linkType,omitzero,required\"`\n\t// Display title for the payment link. This appears on the checkout page and in\n\t// customer communications.\n\tTitle string `json:\"title,required\"`\n\t// Unique URL slug for the payment link. Can be a full URL or just the path\n\t// segment. Must be unique within your account.\n\tURL string `json:\"url,required\"`\n\t// Amount for the payment link\n\tAmount param.Opt[float64] `json:\"amount,omitzero\"`\n\t// Cover image URL\n\tCoverImage param.Opt[string] `json:\"coverImage,omitzero\"`\n\t// Customer ID\n\tCustomerID param.Opt[string] `json:\"customerId,omitzero\"`\n\t// Detailed description of what the customer is purchasing. Supports markdown\n\t// formatting.\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// Expiration date\n\tExpirationDate param.Opt[time.Time] `json:\"expiration_date,omitzero\" format:\"date-time\"`\n\t// Whether the payment link is for all products\n\tIsForAllProduct param.Opt[bool] `json:\"isForAllProduct,omitzero\"`\n\t// Whether to limit payments\n\tLimitPayments param.Opt[bool] `json:\"limitPayments,omitzero\"`\n\t// Maximum number of payments\n\tMaxPayments param.Opt[float64] `json:\"maxPayments,omitzero\"`\n\t// Payment for ID\n\tPaymentForID param.Opt[string] `json:\"paymentForId,omitzero\"`\n\t// Tax ID\n\tTaxID param.Opt[string] `json:\"taxId,omitzero\"`\n\t// Custom fields\n\tCustomFields any `json:\"customFields,omitzero\"`\n\t// Array of products in the payment link\n\tPaymentLinkProducts []V0PaymentLinkNewParamsPaymentLinkProduct `json:\"paymentLinkProducts,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0PaymentLinkNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0PaymentLinkNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0PaymentLinkNewParamsCurrency string\n```\nCurrency\n\n```go\nconst (\n\tV0PaymentLinkNewParamsCurrencyUsdc V0PaymentLinkNewParamsCurrency = \"usdc\"\n\tV0PaymentLinkNewParamsCurrencyEurc V0PaymentLinkNewParamsCurrency = \"eurc\"\n)\n```\n\n```go\ntype V0PaymentLinkNewParamsLinkType string\n```\nType of the payment link\n\n```go\nconst (\n\tV0PaymentLinkNewParamsLinkTypeInvoice    V0PaymentLinkNewParamsLinkType = \"INVOICE\"\n\tV0PaymentLinkNewParamsLinkTypeProduct    V0PaymentLinkNewParamsLinkType = \"PRODUCT\"\n\tV0PaymentLinkNewParamsLinkTypeCollection V0PaymentLinkNewParamsLinkType = \"COLLECTION\"\n\tV0PaymentLinkNewParamsLinkTypeDonation   V0PaymentLinkNewParamsLinkType = \"DONATION\"\n)\n```\n\n```go\ntype V0PaymentLinkNewParamsPaymentLinkProduct struct {\n\t// UUID of the product to include in this payment link. Must be a valid product\n\t// from your catalog.\n\tProductID string `json:\"productId,required\" format:\"uuid\"`\n\t// Quantity of this product to include. Must be at least 1.\n\tQuantity int64 `json:\"quantity,required\"`\n\t// contains filtered or unexported fields\n}\n```\nThe properties ProductID, Quantity are required.\n\n```go\nfunc (r V0PaymentLinkNewParamsPaymentLinkProduct) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0PaymentLinkNewParamsPaymentLinkProduct) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0PaymentLinkService struct {\n\tOptions []option.RequestOption\n}\n```\nV0PaymentLinkService contains methods and other services that help with interacting with the devdraft API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewV0PaymentLinkService](#NewV0PaymentLinkService) method instead.\n\n```go\nfunc NewV0PaymentLinkService(opts ...option.RequestOption) (r V0PaymentLinkService)\n```\nNewV0PaymentLinkService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *V0PaymentLinkService) Get(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nGet a payment link by ID\n\n```go\nfunc (r *V0PaymentLinkService) List(ctx context.Context, query V0PaymentLinkListParams, opts ...option.RequestOption) (err error)\n```\nGet all payment links\n\n```go\nfunc (r *V0PaymentLinkService) New(ctx context.Context, body V0PaymentLinkNewParams, opts ...option.RequestOption) (err error)\n```\nCreates a new payment link with the provided details. Supports both simple one-time payments and complex product bundles.\n\n```go\nfunc (r *V0PaymentLinkService) Update(ctx context.Context, id string, body V0PaymentLinkUpdateParams, opts ...option.RequestOption) (err error)\n```\nUpdate a payment link\n\n```go\ntype V0PaymentLinkUpdateParams struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0PaymentLinkUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0PaymentLinkUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0ProductListParams struct {\n\t// Number of records to skip\n\tSkip param.Opt[float64] `query:\"skip,omitzero\" json:\"-\"`\n\t// Number of records to take\n\tTake param.Opt[float64] `query:\"take,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0ProductListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [V0ProductListParams](#V0ProductListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype V0ProductNewParams struct {\n\t// Detailed description of the product. Supports markdown formatting for rich text\n\t// display.\n\tDescription string `json:\"description,required\"`\n\t// Product name as it will appear to customers. Should be clear and descriptive.\n\tName string `json:\"name,required\"`\n\t// Product price in the specified currency. Must be greater than 0.\n\tPrice float64 `json:\"price,required\"`\n\t// Product type\n\tProductType param.Opt[string] `json:\"productType,omitzero\"`\n\t// Quantity available\n\tQuantity param.Opt[float64] `json:\"quantity,omitzero\"`\n\t// Product status\n\tStatus param.Opt[string] `json:\"status,omitzero\"`\n\t// Stock count\n\tStockCount param.Opt[float64] `json:\"stockCount,omitzero\"`\n\t// Product type\n\tType param.Opt[string] `json:\"type,omitzero\"`\n\t// Unit of measurement\n\tUnit param.Opt[string] `json:\"unit,omitzero\"`\n\t// Weight of the product\n\tWeight param.Opt[float64] `json:\"weight,omitzero\"`\n\t// Currency code for the price. Defaults to USD if not specified.\n\t//\n\t// Any of \"USD\", \"EUR\", \"GBP\", \"CAD\", \"AUD\", \"JPY\".\n\tCurrency V0ProductNewParamsCurrency `json:\"currency,omitzero\"`\n\t// Array of image URLs\n\tImages []string `json:\"images,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0ProductNewParams) MarshalMultipart() (data []byte, contentType string, err error)\n```\n\n```go\ntype V0ProductNewParamsCurrency string\n```\nCurrency code for the price. Defaults to USD if not specified.\n\n```go\nconst (\n\tV0ProductNewParamsCurrencyUsd V0ProductNewParamsCurrency = \"USD\"\n\tV0ProductNewParamsCurrencyEur V0ProductNewParamsCurrency = \"EUR\"\n\tV0ProductNewParamsCurrencyGbp V0ProductNewParamsCurrency = \"GBP\"\n\tV0ProductNewParamsCurrencyCad V0ProductNewParamsCurrency = \"CAD\"\n\tV0ProductNewParamsCurrencyAud V0ProductNewParamsCurrency = \"AUD\"\n\tV0ProductNewParamsCurrencyJpy V0ProductNewParamsCurrency = \"JPY\"\n)\n```\n\n```go\ntype V0ProductService struct {\n\tOptions []option.RequestOption\n}\n```\nV0ProductService contains methods and other services that help with interacting with the devdraft API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewV0ProductService](#NewV0ProductService) method instead.\n\n```go\nfunc NewV0ProductService(opts ...option.RequestOption) (r V0ProductService)\n```\nNewV0ProductService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *V0ProductService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nDeletes a product and its associated images.\n\nThis endpoint allows you to remove a product and all its associated data.\n\n\\## Use Cases\n\n\\- Remove discontinued products - Clean up product catalog - Delete test products\n\n\\## Notes\n\n\\- This action cannot be undone - All product images will be deleted - Associated data will be removed\n\n```go\nfunc (r *V0ProductService) Get(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nRetrieves detailed information about a specific product.\n\nThis endpoint allows you to fetch complete product details including all images.\n\n\\## Use Cases\n\n\\- View product details - Display product information - Check product availability\n\n\\## Example Response\n\n\\`\\`\\`json\n\n\t{\n\t  \"id\": \"prod_123456\",\n\t  \"name\": \"Premium Widget\",\n\t  \"description\": \"High-quality widget for all your needs\",\n\t  \"price\": \"99.99\",\n\t  \"images\": [\n\t    \"https://storage.example.com/images/file1.jpg\",\n\t    \"https://storage.example.com/images/file2.jpg\"\n\t  ],\n\t  \"createdAt\": \"2024-03-20T10:00:00Z\",\n\t  \"updatedAt\": \"2024-03-20T10:00:00Z\"\n\t}\n\n\\`\\`\\`\n\n```go\nfunc (r *V0ProductService) List(ctx context.Context, query V0ProductListParams, opts ...option.RequestOption) (err error)\n```\nRetrieves a list of products with pagination.\n\nThis endpoint allows you to fetch products with optional pagination.\n\n\\## Use Cases\n\n\\- List all products - Browse product catalog - Implement product search\n\n\\## Query Parameters\n\n\\- \\`skip\\`: Number of records to skip (default: 0) - \\`take\\`: Number of records to take (default: 10)\n\n\\## Example Response\n\n\\`\\`\\`json\n\n\t{\n\t  \"data\": [\n\t    {\n\t      \"id\": \"prod_123456\",\n\t      \"name\": \"Premium Widget\",\n\t      \"description\": \"High-quality widget for all your needs\",\n\t      \"price\": \"99.99\",\n\t      \"images\": [\n\t        \"https://storage.example.com/images/file1.jpg\",\n\t        \"https://storage.example.com/images/file2.jpg\"\n\t      ],\n\t      \"createdAt\": \"2024-03-20T10:00:00Z\"\n\t    }\n\t  ],\n\t  \"total\": 100,\n\t  \"skip\": 0,\n\t  \"take\": 10\n\t}\n\n\\`\\`\\`\n\n```go\nfunc (r *V0ProductService) New(ctx context.Context, body V0ProductNewParams, opts ...option.RequestOption) (err error)\n```\nCreates a new product with optional image uploads.\n\nThis endpoint allows you to create products with detailed information and multiple images.\n\n\\## Use Cases\n\n\\- Add new products to your catalog - Create products with multiple images - Set up product pricing and descriptions\n\n\\## Supported Image Formats\n\n\\- JPEG/JPG - PNG - WebP - Maximum 10 images per product - Maximum file size: 5MB per image\n\n\\## Example Request (multipart/form-data)\n\n\\`\\`\\` name: \"Premium Widget\" description: \"High-quality widget for all your needs\" price: \"99.99\" images: \\[file1.jpg, file2.jpg]  // Optional, up to 10 images \\`\\`\\`\n\n\\## Required Fields\n\n\\- \\`name\\`: Product name - \\`price\\`: Product price (decimal number)\n\n\\## Optional Fields\n\n\\- \\`description\\`: Detailed product description - \\`images\\`: Product images (up to 10 files)\n\n```go\nfunc (r *V0ProductService) Update(ctx context.Context, id string, body V0ProductUpdateParams, opts ...option.RequestOption) (err error)\n```\nUpdates an existing product's information and optionally adds new images.\n\nThis endpoint allows you to modify product details and manage product images.\n\n\\## Use Cases\n\n\\- Update product information - Change product pricing - Modify product images - Update product description\n\n\\## Example Request (multipart/form-data)\n\n\\`\\`\\` name: \"Updated Premium Widget\" description: \"Updated description\" price: \"129.99\" images: \\[file1.jpg, file2.jpg]  // Optional, up to 10 images \\`\\`\\`\n\n\\## Notes\n\n\\- Only include fields that need to be updated - New images will replace existing images - Maximum 10 images per product - Images are automatically optimized\n\n```go\nfunc (r *V0ProductService) UploadImages(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nAdds new images to an existing product.\n\nThis endpoint allows you to upload additional images for a product that already exists.\n\n\\## Use Cases\n\n\\- Add more product images - Update product gallery - Enhance product presentation\n\n\\## Supported Image Formats\n\n\\- JPEG/JPG - PNG - WebP - Maximum 10 images per upload - Maximum file size: 5MB per image\n\n\\## Example Request (multipart/form-data)\n\n\\`\\`\\` images: \\[file1.jpg, file2.jpg]  // Up to 10 images \\`\\`\\`\n\n\\## Notes\n\n\\- Images are appended to existing product images - Total images per product cannot exceed 10 - Images are automatically optimized and resized\n\n```go\ntype V0ProductUpdateParams struct {\n\t// Detailed description of the product. Supports markdown formatting for rich text\n\t// display.\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// Product name as it will appear to customers. Should be clear and descriptive.\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Product price in the specified currency. Must be greater than 0.\n\tPrice param.Opt[float64] `json:\"price,omitzero\"`\n\t// Product type\n\tProductType param.Opt[string] `json:\"productType,omitzero\"`\n\t// Quantity available\n\tQuantity param.Opt[float64] `json:\"quantity,omitzero\"`\n\t// Product status\n\tStatus param.Opt[string] `json:\"status,omitzero\"`\n\t// Stock count\n\tStockCount param.Opt[float64] `json:\"stockCount,omitzero\"`\n\t// Product type\n\tType param.Opt[string] `json:\"type,omitzero\"`\n\t// Unit of measurement\n\tUnit param.Opt[string] `json:\"unit,omitzero\"`\n\t// Weight of the product\n\tWeight param.Opt[float64] `json:\"weight,omitzero\"`\n\t// Currency code for the price. Defaults to USD if not specified.\n\t//\n\t// Any of \"USD\", \"EUR\", \"GBP\", \"CAD\", \"AUD\", \"JPY\".\n\tCurrency V0ProductUpdateParamsCurrency `json:\"currency,omitzero\"`\n\t// Array of image URLs\n\tImages []string `json:\"images,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0ProductUpdateParams) MarshalMultipart() (data []byte, contentType string, err error)\n```\n\n```go\ntype V0ProductUpdateParamsCurrency string\n```\nCurrency code for the price. Defaults to USD if not specified.\n\n```go\nconst (\n\tV0ProductUpdateParamsCurrencyUsd V0ProductUpdateParamsCurrency = \"USD\"\n\tV0ProductUpdateParamsCurrencyEur V0ProductUpdateParamsCurrency = \"EUR\"\n\tV0ProductUpdateParamsCurrencyGbp V0ProductUpdateParamsCurrency = \"GBP\"\n\tV0ProductUpdateParamsCurrencyCad V0ProductUpdateParamsCurrency = \"CAD\"\n\tV0ProductUpdateParamsCurrencyAud V0ProductUpdateParamsCurrency = \"AUD\"\n\tV0ProductUpdateParamsCurrencyJpy V0ProductUpdateParamsCurrency = \"JPY\"\n)\n```\n\n```go\ntype V0Service struct {\n\tOptions        []option.RequestOption\n\tHealth         V0HealthService\n\tTestPayment    V0TestPaymentService\n\tCustomers      V0CustomerService\n\tPaymentLinks   V0PaymentLinkService\n\tPaymentIntents V0PaymentIntentService\n\tWebhooks       V0WebhookService\n\tTransfers      V0TransferService\n\tBalance        V0BalanceService\n\tExchangeRate   V0ExchangeRateService\n\tProducts       V0ProductService\n\tInvoices       V0InvoiceService\n\tTaxes          V0TaxService\n}\n```\nV0Service contains methods and other services that help with interacting with the devdraft API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewV0Service](#NewV0Service) method instead.\n\n```go\nfunc NewV0Service(opts ...option.RequestOption) (r V0Service)\n```\nNewV0Service generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *V0Service) GetWallets(ctx context.Context, opts ...option.RequestOption) (err error)\n```\nGet wallets for an app\n\n```go\ntype V0TaxListParams struct {\n\t// Filter by active status\n\tActive param.Opt[bool] `query:\"active,omitzero\" json:\"-\"`\n\t// Filter taxes by name (partial match, case-insensitive)\n\tName param.Opt[string] `query:\"name,omitzero\" json:\"-\"`\n\t// Number of records to skip for pagination\n\tSkip param.Opt[float64] `query:\"skip,omitzero\" json:\"-\"`\n\t// Number of records to return (max 100)\n\tTake param.Opt[float64] `query:\"take,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0TaxListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [V0TaxListParams](#V0TaxListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype V0TaxNewParams struct {\n\t// Tax name. Used to identify and reference this tax rate.\n\tName string `json:\"name,required\"`\n\t// Tax percentage rate. Must be between 0 and 100.\n\tPercentage float64 `json:\"percentage,required\"`\n\t// Whether this tax is currently active and can be applied.\n\tActive param.Opt[bool] `json:\"active,omitzero\"`\n\t// Optional description explaining what this tax covers.\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// Array of app IDs where this tax should be available. If not provided, tax will\n\t// be available for the current app.\n\tAppIDs []string `json:\"appIds,omitzero\" format:\"uuid\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0TaxNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0TaxNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0TaxNewResponse struct {\n\tID          string    `json:\"id\"`\n\tActive      bool      `json:\"active\"`\n\tCreatedAt   time.Time `json:\"created_at\" format:\"date-time\"`\n\tDescription string    `json:\"description\"`\n\tName        string    `json:\"name\"`\n\tPercentage  float64   `json:\"percentage\"`\n\tUpdatedAt   time.Time `json:\"updated_at\" format:\"date-time\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tActive      respjson.Field\n\t\tCreatedAt   respjson.Field\n\t\tDescription respjson.Field\n\t\tName        respjson.Field\n\t\tPercentage  respjson.Field\n\t\tUpdatedAt   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r V0TaxNewResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *V0TaxNewResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0TaxService struct {\n\tOptions []option.RequestOption\n}\n```\nV0TaxService contains methods and other services that help with interacting with the devdraft API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewV0TaxService](#NewV0TaxService) method instead.\n\n```go\nfunc NewV0TaxService(opts ...option.RequestOption) (r V0TaxService)\n```\nNewV0TaxService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *V0TaxService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nDeletes an existing tax.\n\n\\## Use Cases\n\n\\- Remove obsolete tax rates - Clean up unused taxes - Comply with regulatory changes\n\n\\## Path Parameters\n\n\\- \\`id\\`: Tax UUID (required) - Must be a valid UUID format\n\n\\## Example Request\n\n\\`DELETE /api/v0/taxes/123e4567-e89b-12d3-a456-426614174000\\`\n\n\\## Warning\n\nThis action cannot be undone. Consider deactivating the tax instead of deleting it if it has been used in transactions.\n\n```go\nfunc (r *V0TaxService) DeleteAll(ctx context.Context, opts ...option.RequestOption) (err error)\n```\nThis endpoint requires a tax ID in the URL path. Use DELETE /api/v0/taxes/{id} instead.\n\n```go\nfunc (r *V0TaxService) Get(ctx context.Context, id string, opts ...option.RequestOption) (err error)\n```\nRetrieves detailed information about a specific tax.\n\n\\## Use Cases\n\n\\- View tax details - Verify tax configuration - Check tax status before applying to products\n\n\\## Path Parameters\n\n\\- \\`id\\`: Tax UUID (required) - Must be a valid UUID format\n\n\\## Example Request\n\n\\`GET /api/v0/taxes/123e4567-e89b-12d3-a456-426614174000\\`\n\n\\## Example Response\n\n\\`\\`\\`json\n\n\t{\n\t  \"id\": \"tax_123456\",\n\t  \"name\": \"Sales Tax\",\n\t  \"description\": \"Standard sales tax for retail transactions\",\n\t  \"percentage\": 8.5,\n\t  \"active\": true,\n\t  \"created_at\": \"2024-03-20T10:00:00Z\",\n\t  \"updated_at\": \"2024-03-20T10:00:00Z\"\n\t}\n\n\\`\\`\\`\n\n```go\nfunc (r *V0TaxService) List(ctx context.Context, query V0TaxListParams, opts ...option.RequestOption) (err error)\n```\nRetrieves a list of taxes with optional filtering and pagination.\n\n\\## Use Cases\n\n\\- List all available tax rates - Search taxes by name - Filter active/inactive taxes - Export tax configuration\n\n\\## Query Parameters\n\n\\- \\`skip\\`: Number of records to skip (default: 0, min: 0) - \\`take\\`: Number of records to return (default: 10, min: 1, max: 100) - \\`name\\`: Filter taxes by name (partial match, case-insensitive) - \\`active\\`: Filter by active status (true/false)\n\n\\## Example Request\n\n\\`GET /api/v0/taxes?skip=0\u0026take=20\u0026active=true\u0026name=Sales\\`\n\n\\## Example Response\n\n\\`\\`\\`json \\[\n\n\t{\n\t  \"id\": \"tax_123456\",\n\t  \"name\": \"Sales Tax\",\n\t  \"description\": \"Standard sales tax for retail transactions\",\n\t  \"percentage\": 8.5,\n\t  \"active\": true,\n\t  \"created_at\": \"2024-03-20T10:00:00Z\",\n\t  \"updated_at\": \"2024-03-20T10:00:00Z\"\n\t}\n\n] \\`\\`\\`\n\n```go\nfunc (r *V0TaxService) New(ctx context.Context, body V0TaxNewParams, opts ...option.RequestOption) (res *V0TaxNewResponse, err error)\n```\nCreates a new tax rate that can be applied to products, invoices, and payment links.\n\n\\## Use Cases\n\n\\- Set up sales tax for different regions - Create VAT rates for international customers - Configure state and local tax rates - Manage tax compliance requirements\n\n\\## Example: Create Basic Sales Tax\n\n\\`\\`\\`json\n\n\t{\n\t  \"name\": \"Sales Tax\",\n\t  \"description\": \"Standard sales tax for retail transactions\",\n\t  \"percentage\": 8.5,\n\t  \"active\": true\n\t}\n\n\\`\\`\\`\n\n\\## Required Fields\n\n\\- \\`name\\`: Tax name for identification (1-100 characters) - \\`percentage\\`: Tax rate percentage (0-100)\n\n\\## Optional Fields\n\n\\- \\`description\\`: Explanation of what this tax covers (max 255 characters) - \\`active\\`: Whether this tax is currently active (default: true) - \\`appIds\\`: Array of app IDs where this tax should be available\n\n```go\nfunc (r *V0TaxService) Update(ctx context.Context, id string, body V0TaxUpdateParams, opts ...option.RequestOption) (err error)\n```\nUpdates an existing tax's information.\n\n\\## Use Cases\n\n\\- Modify tax percentage rates - Update tax descriptions - Activate/deactivate taxes - Change tax names\n\n\\## Path Parameters\n\n\\- \\`id\\`: Tax UUID (required) - Must be a valid UUID format\n\n\\## Example Request\n\n\\`PUT /api/v0/taxes/123e4567-e89b-12d3-a456-426614174000\\`\n\n\\## Example Request Body\n\n\\`\\`\\`json\n\n\t{\n\t  \"name\": \"Updated Sales Tax\",\n\t  \"description\": \"Updated sales tax rate\",\n\t  \"percentage\": 9.0,\n\t  \"active\": true\n\t}\n\n\\`\\`\\`\n\n\\## Notes\n\n\\- Only include fields that need to be updated - All fields are optional in updates - Percentage changes affect future calculations only\n\n```go\nfunc (r *V0TaxService) UpdateAll(ctx context.Context, opts ...option.RequestOption) (err error)\n```\nThis endpoint requires a tax ID in the URL path. Use PUT /api/v0/taxes/{id} instead.\n\n```go\ntype V0TaxUpdateParams struct {\n\t// Whether this tax is currently active and can be applied\n\tActive param.Opt[bool] `json:\"active,omitzero\"`\n\t// Detailed description of what this tax covers\n\tDescription param.Opt[string] `json:\"description,omitzero\"`\n\t// Tax name for identification and display purposes\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Tax rate as a percentage (0-100)\n\tPercentage param.Opt[float64] `json:\"percentage,omitzero\"`\n\t// Array of app IDs where this tax should be available\n\tAppIDs []string `json:\"appIds,omitzero\" format:\"uuid\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0TaxUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0TaxUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0TestPaymentProcessParams struct {\n\t// The amount to charge\n\tAmount float64 `json:\"amount,required\"`\n\t// The currency code\n\tCurrency string `json:\"currency,required\"`\n\t// Description of the payment\n\tDescription string `json:\"description,required\"`\n\t// Customer reference ID\n\tCustomerID param.Opt[string] `json:\"customerId,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0TestPaymentProcessParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0TestPaymentProcessParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0TestPaymentRefundResponse struct {\n\t// Refund ID\n\tID string `json:\"id,required\"`\n\t// The amount refunded\n\tAmount float64 `json:\"amount,required\"`\n\t// Original payment ID\n\tPaymentID string `json:\"paymentId,required\"`\n\t// Refund status\n\tStatus string `json:\"status,required\"`\n\t// Timestamp of the refund\n\tTimestamp string `json:\"timestamp,required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID          respjson.Field\n\t\tAmount      respjson.Field\n\t\tPaymentID   respjson.Field\n\t\tStatus      respjson.Field\n\t\tTimestamp   respjson.Field\n\t\tExtraFields map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r V0TestPaymentRefundResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *V0TestPaymentRefundResponse) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0TestPaymentService struct {\n\tOptions []option.RequestOption\n}\n```\nV0TestPaymentService contains methods and other services that help with interacting with the devdraft API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewV0TestPaymentService](#NewV0TestPaymentService) method instead.\n\n```go\nfunc NewV0TestPaymentService(opts ...option.RequestOption) (r V0TestPaymentService)\n```\nNewV0TestPaymentService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *V0TestPaymentService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *PaymentResponse, err error)\n```\nGet payment details by ID\n\n```go\nfunc (r *V0TestPaymentService) Process(ctx context.Context, body V0TestPaymentProcessParams, opts ...option.RequestOption) (res *PaymentResponse, err error)\n```\nCreates a new payment. Requires an idempotency key to prevent duplicate payments on retry.\n\n\\## Idempotency Key Best Practices\n\n 1. \\*\\*Generate unique keys\\*\\*: Use UUIDs or similar unique identifiers, prefixed with a descriptive operation name\n 2. \\*\\*Store keys client-side\\*\\*: Save the key with the original request so you can retry with the same key\n 3. \\*\\*Key format\\*\\*: Between 6-64 alphanumeric characters\n 4. \\*\\*Expiration\\*\\*: Keys expire after 24 hours by default\n 5. \\*\\*Use case\\*\\*: Perfect for ensuring payment operations are never processed twice, even during network failures\n\n\\## Example Request (curl)\n\n\\`\\`\\`bash\n\n\tcurl -X POST \\\n\t  https://api.example.com/rest-api/v0/test-payment \\\n\t  -H 'Content-Type: application/json' \\\n\t  -H 'Client-Key: your-api-key' \\\n\t  -H 'Client-Secret: your-api-secret' \\\n\t  -H 'Idempotency-Key: payment_123456_unique_key' \\\n\t  -d '{\n\t    \"amount\": 100.00,\n\t    \"currency\": \"USD\",\n\t    \"description\": \"Test payment for order #12345\",\n\t    \"customerId\": \"cus_12345\"\n\t  }'\n\n\\`\\`\\`\n\n\\## Example Response (First Request)\n\n\\`\\`\\`json\n\n\t{\n\t  \"id\": \"pay_abc123xyz456\",\n\t  \"amount\": 100.0,\n\t  \"currency\": \"USD\",\n\t  \"status\": \"succeeded\",\n\t  \"timestamp\": \"2023-07-01T12:00:00.000Z\"\n\t}\n\n\\`\\`\\`\n\n\\## Example Response (Duplicate Request)\n\nThe exact same response will be returned for any duplicate request with the same idempotency key, without creating a new payment.\n\n\\## Retry Scenario Example\n\nNetwork failure during payment submission:\n\n 1. Client creates payment request with idempotency key: \"payment\\_123456\\_unique\\_key\"\n 2. Request begins processing, but network connection fails before response received\n 3. Client retries the exact same request with the same idempotency key\n 4. Server detects duplicate idempotency key and returns the result of the first request\n 5. No duplicate payment is created\n\nIf you retry with same key but different parameters (e.g., different amount), you'll receive a 409 Conflict error.\n\n```go\nfunc (r *V0TestPaymentService) Refund(ctx context.Context, id string, opts ...option.RequestOption) (res *V0TestPaymentRefundResponse, err error)\n```\nRefunds an existing payment. Requires an idempotency key to prevent duplicate refunds on retry.\n\n\\## Idempotency Key Benefits for Refunds\n\nRefunds are critical financial operations where duplicates can cause serious issues. Using idempotency keys ensures:\n\n 1. \\*\\*Prevent duplicate refunds\\*\\*: Even if a request times out or fails, retrying with the same key won't issue multiple refunds\n 2. \\*\\*Safe retries\\*\\*: Network failures or timeouts won't risk creating multiple refunds\n 3. \\*\\*Consistent response\\*\\*: Always get the same response for the same operation\n\n\\## Example Request (curl)\n\n\\`\\`\\`bash\n\n\tcurl -X POST \\\n\t  https://api.example.com/rest-api/v0/test-payment/pay_abc123xyz456/refund \\\n\t  -H 'Content-Type: application/json' \\\n\t  -H 'Client-Key: your-api-key' \\\n\t  -H 'Client-Secret: your-api-secret' \\\n\t  -H 'Idempotency-Key: refund_123456_unique_key'\n\n\\`\\`\\`\n\n\\## Example Response (First Request)\n\n\\`\\`\\`json\n\n\t{\n\t  \"id\": \"ref_xyz789\",\n\t  \"paymentId\": \"pay_abc123xyz456\",\n\t  \"amount\": 100.0,\n\t  \"status\": \"succeeded\",\n\t  \"timestamp\": \"2023-07-01T14:30:00.000Z\"\n\t}\n\n\\`\\`\\`\n\n\\## Example Response (Duplicate Request)\n\nThe exact same response will be returned for any duplicate request with the same idempotency key, without creating a new refund.\n\n\\## Idempotency Key Guidelines\n\n\\- Use a unique key for each distinct refund operation - Store keys client-side to ensure you can retry with the same key if needed - Keys expire after 24 hours by default\n\n```go\ntype V0TransferNewDirectBankParams struct {\n\t// The amount to transfer\n\tAmount float64 `json:\"amount,required\"`\n\t// The destination currency\n\tDestinationCurrency string `json:\"destinationCurrency,required\"`\n\t// The payment rail to use\n\tPaymentRail string `json:\"paymentRail,required\"`\n\t// The source currency\n\tSourceCurrency string `json:\"sourceCurrency,required\"`\n\t// The ID of the bridge wallet to transfer from\n\tWalletID string `json:\"walletId,required\"`\n\t// ACH transfer reference\n\tACHReference param.Opt[string] `json:\"ach_reference,omitzero\"`\n\t// SEPA transfer reference\n\tSepaReference param.Opt[string] `json:\"sepa_reference,omitzero\"`\n\t// Wire transfer message\n\tWireMessage param.Opt[string] `json:\"wire_message,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0TransferNewDirectBankParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0TransferNewDirectBankParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0TransferNewDirectWalletParams struct {\n\t// The amount to transfer\n\tAmount float64 `json:\"amount,required\"`\n\t// The network to use for the transfer\n\tNetwork string `json:\"network,required\"`\n\t// The stablecoin currency to use\n\tStableCoinCurrency string `json:\"stableCoinCurrency,required\"`\n\t// The ID of the bridge wallet to transfer from\n\tWalletID string `json:\"walletId,required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0TransferNewDirectWalletParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0TransferNewDirectWalletParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0TransferNewExternalBankTransferParams struct {\n\t// The destination currency\n\tDestinationCurrency string `json:\"destinationCurrency,required\"`\n\t// The destination payment rail (fiat payment method)\n\t//\n\t// Any of \"ach\", \"ach_push\", \"ach_same_day\", \"wire\", \"sepa\", \"swift\", \"spei\".\n\tDestinationPaymentRail V0TransferNewExternalBankTransferParamsDestinationPaymentRail `json:\"destinationPaymentRail,omitzero,required\"`\n\t// The external account ID for the bank transfer\n\tExternalAccountID string `json:\"external_account_id,required\"`\n\t// The source currency\n\tSourceCurrency string `json:\"sourceCurrency,required\"`\n\t// The ID of the source bridge wallet\n\tSourceWalletID string `json:\"sourceWalletId,required\"`\n\t// ACH reference message (1-10 characters, only for ACH transfers)\n\tACHReference param.Opt[string] `json:\"ach_reference,omitzero\"`\n\t// The amount to transfer\n\tAmount param.Opt[float64] `json:\"amount,omitzero\"`\n\t// SEPA reference message (6-140 characters, only for SEPA transfers)\n\tSepaReference param.Opt[string] `json:\"sepa_reference,omitzero\"`\n\t// SPEI reference message (1-40 characters, only for SPEI transfers)\n\tSpeiReference param.Opt[string] `json:\"spei_reference,omitzero\"`\n\t// SWIFT charges bearer (only for SWIFT transfers)\n\tSwiftCharges param.Opt[string] `json:\"swift_charges,omitzero\"`\n\t// SWIFT reference message (1-190 characters, only for SWIFT transfers)\n\tSwiftReference param.Opt[string] `json:\"swift_reference,omitzero\"`\n\t// Wire transfer message (1-256 characters, only for wire transfers)\n\tWireMessage param.Opt[string] `json:\"wire_message,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0TransferNewExternalBankTransferParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0TransferNewExternalBankTransferParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0TransferNewExternalBankTransferParamsDestinationPaymentRail string\n```\nThe destination payment rail (fiat payment method)\n\n```go\nconst (\n\tV0TransferNewExternalBankTransferParamsDestinationPaymentRailACH        V0TransferNewExternalBankTransferParamsDestinationPaymentRail = \"ach\"\n\tV0TransferNewExternalBankTransferParamsDestinationPaymentRailACHPush    V0TransferNewExternalBankTransferParamsDestinationPaymentRail = \"ach_push\"\n\tV0TransferNewExternalBankTransferParamsDestinationPaymentRailACHSameDay V0TransferNewExternalBankTransferParamsDestinationPaymentRail = \"ach_same_day\"\n\tV0TransferNewExternalBankTransferParamsDestinationPaymentRailWire       V0TransferNewExternalBankTransferParamsDestinationPaymentRail = \"wire\"\n\tV0TransferNewExternalBankTransferParamsDestinationPaymentRailSepa       V0TransferNewExternalBankTransferParamsDestinationPaymentRail = \"sepa\"\n\tV0TransferNewExternalBankTransferParamsDestinationPaymentRailSwift      V0TransferNewExternalBankTransferParamsDestinationPaymentRail = \"swift\"\n\tV0TransferNewExternalBankTransferParamsDestinationPaymentRailSpei       V0TransferNewExternalBankTransferParamsDestinationPaymentRail = \"spei\"\n)\n```\n\n```go\ntype V0TransferNewExternalStablecoinTransferParams struct {\n\t// Beneficiary ID for the stablecoin transfer\n\tBeneficiaryID string `json:\"beneficiaryId,required\"`\n\t// The destination currency\n\tDestinationCurrency string `json:\"destinationCurrency,required\"`\n\t// The source currency\n\tSourceCurrency string `json:\"sourceCurrency,required\"`\n\t// The ID of the source bridge wallet\n\tSourceWalletID string `json:\"sourceWalletId,required\"`\n\t// The amount to transfer\n\tAmount param.Opt[float64] `json:\"amount,omitzero\"`\n\t// Blockchain memo for the transfer\n\tBlockchainMemo param.Opt[string] `json:\"blockchain_memo,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0TransferNewExternalStablecoinTransferParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0TransferNewExternalStablecoinTransferParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0TransferNewStablecoinConversionParams struct {\n\t// The amount to convert\n\tAmount float64 `json:\"amount,required\"`\n\t// The destination currency\n\tDestinationCurrency string `json:\"destinationCurrency,required\"`\n\t// The source currency\n\tSourceCurrency string `json:\"sourceCurrency,required\"`\n\t// The source network\n\tSourceNetwork string `json:\"sourceNetwork,required\"`\n\t// The ID of the bridge wallet to use\n\tWalletID string `json:\"walletId,required\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0TransferNewStablecoinConversionParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0TransferNewStablecoinConversionParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0TransferService struct {\n\tOptions []option.RequestOption\n}\n```\nV0TransferService contains methods and other services that help with interacting with the devdraft API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewV0TransferService](#NewV0TransferService) method instead.\n\n```go\nfunc NewV0TransferService(opts ...option.RequestOption) (r V0TransferService)\n```\nNewV0TransferService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *V0TransferService) NewDirectBank(ctx context.Context, body V0TransferNewDirectBankParams, opts ...option.RequestOption) (err error)\n```\nCreate a direct bank transfer\n\n```go\nfunc (r *V0TransferService) NewDirectWallet(ctx context.Context, body V0TransferNewDirectWalletParams, opts ...option.RequestOption) (err error)\n```\nCreate a direct wallet transfer\n\n```go\nfunc (r *V0TransferService) NewExternalBankTransfer(ctx context.Context, body V0TransferNewExternalBankTransferParams, opts ...option.RequestOption) (err error)\n```\nCreate an external bank transfer\n\n```go\nfunc (r *V0TransferService) NewExternalStablecoinTransfer(ctx context.Context, body V0TransferNewExternalStablecoinTransferParams, opts ...option.RequestOption) (err error)\n```\nCreate an external stablecoin transfer\n\n```go\nfunc (r *V0TransferService) NewStablecoinConversion(ctx context.Context, body V0TransferNewStablecoinConversionParams, opts ...option.RequestOption) (err error)\n```\nCreate a stablecoin conversion\n\n```go\ntype V0WebhookListParams struct {\n\t// Number of records to skip (default: 0)\n\tSkip param.Opt[float64] `query:\"skip,omitzero\" json:\"-\"`\n\t// Number of records to return (default: 10)\n\tTake param.Opt[float64] `query:\"take,omitzero\" json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0WebhookListParams) URLQuery() (v url.Values, err error)\n```\nURLQuery serializes [V0WebhookListParams](#V0WebhookListParams)'s query parameters as \\`url.Values\\`.\n\n```go\ntype V0WebhookNewParams struct {\n\t// Whether webhook payloads should be encrypted\n\tEncrypted bool `json:\"encrypted,required\"`\n\t// Whether the webhook is active and will receive events\n\tIsActive bool `json:\"isActive,required\"`\n\t// Name of the webhook for identification purposes\n\tName string `json:\"name,required\"`\n\t// URL where webhook events will be sent\n\tURL string `json:\"url,required\" format:\"uri\"`\n\t// Secret key used to sign webhook payloads for verification\n\tSigningSecret param.Opt[string] `json:\"signing_secret,omitzero\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0WebhookNewParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0WebhookNewParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype V0WebhookService struct {\n\tOptions []option.RequestOption\n}\n```\nV0WebhookService contains methods and other services that help with interacting with the devdraft API.\n\nNote, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the [NewV0WebhookService](#NewV0WebhookService) method instead.\n\n```go\nfunc NewV0WebhookService(opts ...option.RequestOption) (r V0WebhookService)\n```\nNewV0WebhookService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.\n\n```go\nfunc (r *V0WebhookService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (res *WebhookResponse, err error)\n```\nDeletes a webhook configuration. Requires webhook:delete scope.\n\n```go\nfunc (r *V0WebhookService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *WebhookResponse, err error)\n```\nRetrieves details for a specific webhook. Requires webhook:read scope.\n\n```go\nfunc (r *V0WebhookService) List(ctx context.Context, query V0WebhookListParams, opts ...option.RequestOption) (res *[]WebhookResponse, err error)\n```\nRetrieves a list of all webhooks for your application. Requires webhook:read scope.\n\n```go\nfunc (r *V0WebhookService) New(ctx context.Context, body V0WebhookNewParams, opts ...option.RequestOption) (res *WebhookResponse, err error)\n```\nCreates a new webhook endpoint for receiving event notifications. Requires webhook:create scope.\n\n```go\nfunc (r *V0WebhookService) Update(ctx context.Context, id string, body V0WebhookUpdateParams, opts ...option.RequestOption) (res *WebhookResponse, err error)\n```\nUpdates an existing webhook configuration. Requires webhook:update scope.\n\n```go\ntype V0WebhookUpdateParams struct {\n\t// Whether webhook payloads should be encrypted\n\tEncrypted param.Opt[bool] `json:\"encrypted,omitzero\"`\n\t// Whether the webhook is active and will receive events\n\tIsActive param.Opt[bool] `json:\"isActive,omitzero\"`\n\t// Name of the webhook for identification purposes\n\tName param.Opt[string] `json:\"name,omitzero\"`\n\t// Secret key used to sign webhook payloads for verification\n\tSigningSecret param.Opt[string] `json:\"signing_secret,omitzero\"`\n\t// URL where webhook events will be sent\n\tURL param.Opt[string] `json:\"url,omitzero\" format:\"uri\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (r V0WebhookUpdateParams) MarshalJSON() (data []byte, err error)\n```\n\n```go\nfunc (r *V0WebhookUpdateParams) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype WebhookResponse struct {\n\t// Unique identifier for the webhook\n\tID string `json:\"id,required\"`\n\t// Timestamp when the webhook was created\n\tCreatedAt string `json:\"created_at,required\"`\n\t// Webhook delivery statistics\n\tDeliveryStats any `json:\"delivery_stats,required\"`\n\t// Whether webhook payloads are encrypted\n\tEncrypted bool `json:\"encrypted,required\"`\n\t// Whether the webhook is currently active\n\tIsActive bool `json:\"isActive,required\"`\n\t// Name of the webhook\n\tName string `json:\"name,required\"`\n\t// Timestamp when the webhook was last updated\n\tUpdatedAt string `json:\"updated_at,required\"`\n\t// URL where webhook events are sent\n\tURL string `json:\"url,required\"`\n\t// JSON contains metadata for fields, check presence with [respjson.Field.Valid].\n\tJSON struct {\n\t\tID            respjson.Field\n\t\tCreatedAt     respjson.Field\n\t\tDeliveryStats respjson.Field\n\t\tEncrypted     respjson.Field\n\t\tIsActive      respjson.Field\n\t\tName          respjson.Field\n\t\tUpdatedAt     respjson.Field\n\t\tURL           respjson.Field\n\t\tExtraFields   map[string]respjson.Field\n\t\t// contains filtered or unexported fields\n\t} `json:\"-\"`\n}\n```\n\n```go\nfunc (r WebhookResponse) RawJSON() string\n```\nReturns the unmodified JSON received from the API\n\n```go\nfunc (r *WebhookResponse) UnmarshalJSON(data []byte) error\n```\n\n","path":"github.com/devdraftengineer/devdraft-go","name":"devdraft","synopsis":"","isRedistributable":true}
