🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

devdraft

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devdraft

bundlerRubyGems.org
Version
1.0.3
Version published
Maintainers
1
Created
Source

devdraft

Devdraft - the Ruby gem for the Devdraft AI Payment & Business Management API

A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.17.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build devdraft.gemspec

Then either install the gem locally:

gem install ./devdraft-1.0.0.gem

(for development, run gem install --dev ./devdraft-1.0.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'devdraft', '~> 1.0.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'devdraft', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'devdraft'

# Setup authorization
Devdraft.configure do |config|
  # Configure API key authorization: x-client-secret
  config.api_key['x-client-secret'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  # config.api_key_prefix['x-client-secret'] = 'Bearer'

  # Configure API key authorization: x-client-key
  config.api_key['x-client-key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  # config.api_key_prefix['x-client-key'] = 'Bearer'
end

api_instance = Devdraft::APIHealthApi.new

begin
  #Authenticated health check endpoint
  result = api_instance.health_controller_check_v0
  p result
rescue Devdraft::ApiError => e
  puts "Exception when calling APIHealthApi->health_controller_check_v0: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://api.devdraft.ai

ClassMethodHTTP requestDescription
Devdraft::APIHealthApihealth_controller_check_v0GET /api/v0/healthAuthenticated health check endpoint
Devdraft::APIHealthApihealth_controller_public_health_check_v0GET /api/v0/health/publicPublic health check endpoint
Devdraft::AppBalancesApibalance_controller_get_all_balancesGET /api/v0/balanceGet all stablecoin balances for an app
Devdraft::AppBalancesApibalance_controller_get_eurc_balanceGET /api/v0/balance/eurcGet EURC balance for an app
Devdraft::AppBalancesApibalance_controller_get_usdc_balanceGET /api/v0/balance/usdcGet USDC balance for an app
Devdraft::CustomersApicustomer_controller_createPOST /api/v0/customersCreate a new customer
Devdraft::CustomersApicustomer_controller_find_allGET /api/v0/customersGet all customers with filters
Devdraft::CustomersApicustomer_controller_find_oneGET /api/v0/customers/{id}Get a customer by ID
Devdraft::CustomersApicustomer_controller_updatePATCH /api/v0/customers/{id}Update a customer
Devdraft::ExchangeRatesApiexchange_rate_controller_get_eurto_usd_rateGET /api/v0/exchange-rate/eur-to-usdGet EUR to USD exchange rate
Devdraft::ExchangeRatesApiexchange_rate_controller_get_exchange_rateGET /api/v0/exchange-rateGet exchange rate between specified currencies
Devdraft::ExchangeRatesApiexchange_rate_controller_get_usdto_eur_rateGET /api/v0/exchange-rate/usd-to-eurGet USD to EUR exchange rate
Devdraft::InvoicesApiinvoice_controller_createPOST /api/v0/invoicesCreate a new invoice
Devdraft::InvoicesApiinvoice_controller_find_allGET /api/v0/invoicesGet all invoices
Devdraft::InvoicesApiinvoice_controller_find_oneGET /api/v0/invoices/{id}Get an invoice by ID
Devdraft::InvoicesApiinvoice_controller_updatePUT /api/v0/invoices/{id}Update an invoice
Devdraft::LiquidationAddressesApiliquidation_address_controller_create_liquidation_addressPOST /api/v0/customers/{customerId}/liquidation_addressesCreate a new liquidation address for a customer
Devdraft::LiquidationAddressesApiliquidation_address_controller_get_liquidation_addressGET /api/v0/customers/{customerId}/liquidation_addresses/{liquidationAddressId}Get a specific liquidation address
Devdraft::LiquidationAddressesApiliquidation_address_controller_get_liquidation_addressesGET /api/v0/customers/{customerId}/liquidation_addressesGet all liquidation addresses for a customer
Devdraft::PaymentIntentsApipayment_intent_controller_create_bank_payment_intentPOST /api/v0/payment-intents/bankCreate a bank payment intent
Devdraft::PaymentIntentsApipayment_intent_controller_create_stable_payment_intentPOST /api/v0/payment-intents/stablecoinCreate a stable payment intent
Devdraft::PaymentLinksApipayment_links_controller_createPOST /api/v0/payment-linksCreate a new payment link
Devdraft::PaymentLinksApipayment_links_controller_find_allGET /api/v0/payment-linksGet all payment links
Devdraft::PaymentLinksApipayment_links_controller_find_oneGET /api/v0/payment-links/{id}Get a payment link by ID
Devdraft::PaymentLinksApipayment_links_controller_updatePUT /api/v0/payment-links/{id}Update a payment link
Devdraft::ProductsApiproduct_controller_createPOST /api/v0/productsCreate a new product
Devdraft::ProductsApiproduct_controller_find_allGET /api/v0/productsGet all products
Devdraft::ProductsApiproduct_controller_find_oneGET /api/v0/products/{id}Get a product by ID
Devdraft::ProductsApiproduct_controller_removeDELETE /api/v0/products/{id}Delete a product
Devdraft::ProductsApiproduct_controller_updatePUT /api/v0/products/{id}Update a product
Devdraft::ProductsApiproduct_controller_upload_imagePOST /api/v0/products/{id}/imagesUpload images for a product
Devdraft::TaxesApitax_controller_createPOST /api/v0/taxesCreate a new tax
Devdraft::TaxesApitax_controller_delete_without_idDELETE /api/v0/taxesTax ID required for deletion
Devdraft::TaxesApitax_controller_find_allGET /api/v0/taxesGet all taxes with filters
Devdraft::TaxesApitax_controller_find_oneGET /api/v0/taxes/{id}Get a tax by ID
Devdraft::TaxesApitax_controller_removeDELETE /api/v0/taxes/{id}Delete a tax
Devdraft::TaxesApitax_controller_updatePUT /api/v0/taxes/{id}Update a tax
Devdraft::TaxesApitax_controller_update_without_idPUT /api/v0/taxesTax ID required for updates
Devdraft::TestPaymentsApitest_payment_controller_create_payment_v0POST /api/v0/test-paymentProcess a test payment
Devdraft::TestPaymentsApitest_payment_controller_get_payment_v0GET /api/v0/test-payment/{id}Get payment details by ID
Devdraft::TestPaymentsApitest_payment_controller_refund_payment_v0POST /api/v0/test-payment/{id}/refundRefund a payment
Devdraft::TransfersApitransfer_controller_create_direct_bank_transferPOST /api/v0/transfers/direct-bankCreate a direct bank transfer
Devdraft::TransfersApitransfer_controller_create_direct_wallet_transferPOST /api/v0/transfers/direct-walletCreate a direct wallet transfer
Devdraft::TransfersApitransfer_controller_create_external_bank_transferPOST /api/v0/transfers/external-bank-transferCreate an external bank transfer
Devdraft::TransfersApitransfer_controller_create_external_stablecoin_transferPOST /api/v0/transfers/external-stablecoin-transferCreate an external stablecoin transfer
Devdraft::TransfersApitransfer_controller_create_stablecoin_conversionPOST /api/v0/transfers/stablecoin-conversionCreate a stablecoin conversion
Devdraft::WalletsApiwallet_controller_get_walletsGET /api/v0/walletsGet wallets for an app
Devdraft::WebhooksApiwebhook_controller_createPOST /api/v0/webhooksCreate a new webhook
Devdraft::WebhooksApiwebhook_controller_find_allGET /api/v0/webhooksGet all webhooks
Devdraft::WebhooksApiwebhook_controller_find_oneGET /api/v0/webhooks/{id}Get a webhook by id
Devdraft::WebhooksApiwebhook_controller_removeDELETE /api/v0/webhooks/{id}Delete a webhook
Devdraft::WebhooksApiwebhook_controller_updatePATCH /api/v0/webhooks/{id}Update a webhook

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

x-client-key

  • Type: API key
  • API key parameter name: x-client-key
  • Location: HTTP header

x-client-secret

  • Type: API key
  • API key parameter name: x-client-secret
  • Location: HTTP header

idempotency-key

  • Type: API key
  • API key parameter name: idempotency-key
  • Location: HTTP header

FAQs

Package last updated on 19 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts