devdraft 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +1246 -0
- data/Rakefile +8 -0
- data/devdraft_ai_sdk.gemspec +38 -0
- data/docs/APIHealthApi.md +87 -0
- data/docs/AggregatedBalanceResponse.md +9 -0
- data/docs/AllBalancesResponse.md +9 -0
- data/docs/AllOfAllBalancesResponseEurc.md +9 -0
- data/docs/AllOfAllBalancesResponseUsdc.md +9 -0
- data/docs/AllOfCreateBankPaymentIntentDtoDestinationCurrency.md +6 -0
- data/docs/AllOfCreateBankPaymentIntentDtoDestinationNetwork.md +6 -0
- data/docs/AllOfCreateBankPaymentIntentDtoSourceCurrency.md +6 -0
- data/docs/AllOfCreateBankPaymentIntentDtoSourcePaymentRail.md +6 -0
- data/docs/AllOfCreateCustomerDtoStatus.md +6 -0
- data/docs/AllOfCreateLiquidationAddressDtoDestinationCurrency.md +6 -0
- data/docs/AllOfCreateLiquidationAddressDtoDestinationPaymentRail.md +6 -0
- data/docs/AllOfCreateStablePaymentIntentDtoDestinationCurrency.md +6 -0
- data/docs/AllOfCreateStablePaymentIntentDtoDestinationNetwork.md +6 -0
- data/docs/AllOfCreateStablePaymentIntentDtoSourceCurrency.md +6 -0
- data/docs/AllOfCreateStablePaymentIntentDtoSourceNetwork.md +6 -0
- data/docs/AllOfUpdateCustomerDtoStatus.md +6 -0
- data/docs/AppBalancesApi.md +169 -0
- data/docs/BridgePaymentRail.md +6 -0
- data/docs/CreateBankPaymentIntentDto.md +24 -0
- data/docs/CreateCustomerDto.md +12 -0
- data/docs/CreateDirectBankTransferDto.md +14 -0
- data/docs/CreateDirectWalletTransferDto.md +10 -0
- data/docs/CreateInvoiceDto.md +22 -0
- data/docs/CreateLiquidationAddressDto.md +21 -0
- data/docs/CreatePaymentLinkDto.md +31 -0
- data/docs/CreateProductDto.md +18 -0
- data/docs/CreateStablePaymentIntentDto.md +21 -0
- data/docs/CreateStablecoinConversionDto.md +11 -0
- data/docs/CreateTaxInput.md +6 -0
- data/docs/CreateWebhookDto.md +11 -0
- data/docs/CustomerStatus.md +6 -0
- data/docs/CustomersApi.md +250 -0
- data/docs/DestinationCurrency.md +6 -0
- data/docs/ExchangeRateResponseDto.md +12 -0
- data/docs/ExchangeRatesApi.md +176 -0
- data/docs/FiatCurrency.md +6 -0
- data/docs/HealthResponseDto.md +12 -0
- data/docs/InvoiceProductDto.md +8 -0
- data/docs/InvoicesApi.md +236 -0
- data/docs/LiquidationAddressResponseDto.md +20 -0
- data/docs/LiquidationAddressesApi.md +152 -0
- data/docs/PaymentIntentsApi.md +127 -0
- data/docs/PaymentLinkProductDto.md +8 -0
- data/docs/PaymentLinksApi.md +238 -0
- data/docs/PaymentRequestDto.md +10 -0
- data/docs/PaymentResponseDto.md +11 -0
- data/docs/ProductsApi.md +404 -0
- data/docs/PublicHealthResponseDto.md +9 -0
- data/docs/RefundResponseDto.md +11 -0
- data/docs/StableCoinCurrency.md +6 -0
- data/docs/TaxesApi.md +292 -0
- data/docs/TestPaymentsApi.md +150 -0
- data/docs/TransfersApi.md +175 -0
- data/docs/UpdateCustomerDto.md +12 -0
- data/docs/UpdatePaymentLinkDto.md +6 -0
- data/docs/UpdatePreferenceInput.md +6 -0
- data/docs/UpdateProductDto.md +18 -0
- data/docs/UpdateTaxInput.md +6 -0
- data/docs/UpdateWebhookDto.md +11 -0
- data/docs/WalletsApi.md +58 -0
- data/docs/WebhookResponseDto.md +14 -0
- data/docs/WebhooksApi.md +307 -0
- data/git_push.sh +44 -0
- data/lib/devdraft/api/api_health_api.rb +116 -0
- data/lib/devdraft/api/app_balances_api.rb +170 -0
- data/lib/devdraft/api/customers_api.rb +258 -0
- data/lib/devdraft/api/exchange_rates_api.rb +184 -0
- data/lib/devdraft/api/invoices_api.rb +238 -0
- data/lib/devdraft/api/liquidation_addresses_api.rb +202 -0
- data/lib/devdraft/api/payment_intents_api.rb +150 -0
- data/lib/devdraft/api/payment_links_api.rb +240 -0
- data/lib/devdraft/api/products_api.rb +518 -0
- data/lib/devdraft/api/taxes_api.rb +290 -0
- data/lib/devdraft/api/test_payments_api.rb +202 -0
- data/lib/devdraft/api/transfers_api.rb +182 -0
- data/lib/devdraft/api/wallets_api.rb +66 -0
- data/lib/devdraft/api/webhooks_api.rb +310 -0
- data/lib/devdraft/api_client.rb +388 -0
- data/lib/devdraft/api_error.rb +57 -0
- data/lib/devdraft/configuration.rb +219 -0
- data/lib/devdraft/models/aggregated_balance_response.rb +278 -0
- data/lib/devdraft/models/all_balances_response.rb +242 -0
- data/lib/devdraft/models/all_of_all_balances_response_eurc.rb +283 -0
- data/lib/devdraft/models/all_of_all_balances_response_usdc.rb +283 -0
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_currency.rb +202 -0
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_network.rb +202 -0
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_currency.rb +202 -0
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_payment_rail.rb +202 -0
- data/lib/devdraft/models/all_of_create_customer_dto_status.rb +202 -0
- data/lib/devdraft/models/all_of_create_liquidation_address_dto_destination_currency.rb +202 -0
- data/lib/devdraft/models/all_of_create_liquidation_address_dto_destination_payment_rail.rb +202 -0
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_currency.rb +202 -0
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_network.rb +202 -0
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_currency.rb +202 -0
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_network.rb +202 -0
- data/lib/devdraft/models/all_of_update_customer_dto_status.rb +202 -0
- data/lib/devdraft/models/bridge_payment_rail.rb +43 -0
- data/lib/devdraft/models/create_bank_payment_intent_dto.rb +397 -0
- data/lib/devdraft/models/create_customer_dto.rb +308 -0
- data/lib/devdraft/models/create_direct_bank_transfer_dto.rb +302 -0
- data/lib/devdraft/models/create_direct_wallet_transfer_dto.rb +257 -0
- data/lib/devdraft/models/create_invoice_dto.rb +474 -0
- data/lib/devdraft/models/create_liquidation_address_dto.rb +408 -0
- data/lib/devdraft/models/create_payment_link_dto.rb +603 -0
- data/lib/devdraft/models/create_product_dto.rb +370 -0
- data/lib/devdraft/models/create_stable_payment_intent_dto.rb +362 -0
- data/lib/devdraft/models/create_stablecoin_conversion_dto.rb +272 -0
- data/lib/devdraft/models/create_tax_input.rb +197 -0
- data/lib/devdraft/models/create_webhook_dto.rb +271 -0
- data/lib/devdraft/models/customer_status.rb +29 -0
- data/lib/devdraft/models/destination_currency.rb +34 -0
- data/lib/devdraft/models/exchange_rate_response_dto.rb +282 -0
- data/lib/devdraft/models/fiat_currency.rb +29 -0
- data/lib/devdraft/models/health_response_dto.rb +333 -0
- data/lib/devdraft/models/invoice_product_dto.rb +227 -0
- data/lib/devdraft/models/liquidation_address_response_dto.rb +377 -0
- data/lib/devdraft/models/payment_link_product_dto.rb +229 -0
- data/lib/devdraft/models/payment_request_dto.rb +252 -0
- data/lib/devdraft/models/payment_response_dto.rb +272 -0
- data/lib/devdraft/models/public_health_response_dto.rb +276 -0
- data/lib/devdraft/models/refund_response_dto.rb +272 -0
- data/lib/devdraft/models/stable_coin_currency.rb +28 -0
- data/lib/devdraft/models/update_customer_dto.rb +293 -0
- data/lib/devdraft/models/update_payment_link_dto.rb +197 -0
- data/lib/devdraft/models/update_preference_input.rb +197 -0
- data/lib/devdraft/models/update_product_dto.rb +355 -0
- data/lib/devdraft/models/update_tax_input.rb +197 -0
- data/lib/devdraft/models/update_webhook_dto.rb +251 -0
- data/lib/devdraft/models/webhook_response_dto.rb +317 -0
- data/lib/devdraft/version.rb +14 -0
- data/lib/devdraft.rb +101 -0
- data/spec/api/api_health_api_spec.rb +54 -0
- data/spec/api/app_balances_api_spec.rb +67 -0
- data/spec/api/customers_api_spec.rb +87 -0
- data/spec/api/exchange_rates_api_spec.rb +69 -0
- data/spec/api/invoices_api_spec.rb +80 -0
- data/spec/api/liquidation_addresses_api_spec.rb +72 -0
- data/spec/api/payment_intents_api_spec.rb +60 -0
- data/spec/api/payment_links_api_spec.rb +81 -0
- data/spec/api/products_api_spec.rb +130 -0
- data/spec/api/taxes_api_spec.rb +91 -0
- data/spec/api/test_payments_api_spec.rb +71 -0
- data/spec/api/transfers_api_spec.rb +67 -0
- data/spec/api/wallets_api_spec.rb +44 -0
- data/spec/api/webhooks_api_spec.rb +96 -0
- data/spec/api_client_spec.rb +225 -0
- data/spec/base_object_spec.rb +109 -0
- data/spec/configuration_spec.rb +41 -0
- data/spec/models/aggregated_balance_response_spec.rb +56 -0
- data/spec/models/all_balances_response_spec.rb +52 -0
- data/spec/models/all_of_all_balances_response_eurc_spec.rb +56 -0
- data/spec/models/all_of_all_balances_response_usdc_spec.rb +56 -0
- data/spec/models/all_of_create_bank_payment_intent_dto_destination_currency_spec.rb +34 -0
- data/spec/models/all_of_create_bank_payment_intent_dto_destination_network_spec.rb +34 -0
- data/spec/models/all_of_create_bank_payment_intent_dto_source_currency_spec.rb +34 -0
- data/spec/models/all_of_create_bank_payment_intent_dto_source_payment_rail_spec.rb +34 -0
- data/spec/models/all_of_create_customer_dto_status_spec.rb +34 -0
- data/spec/models/all_of_create_liquidation_address_dto_destination_currency_spec.rb +34 -0
- data/spec/models/all_of_create_liquidation_address_dto_destination_payment_rail_spec.rb +34 -0
- data/spec/models/all_of_create_stable_payment_intent_dto_destination_currency_spec.rb +34 -0
- data/spec/models/all_of_create_stable_payment_intent_dto_destination_network_spec.rb +34 -0
- data/spec/models/all_of_create_stable_payment_intent_dto_source_currency_spec.rb +34 -0
- data/spec/models/all_of_create_stable_payment_intent_dto_source_network_spec.rb +34 -0
- data/spec/models/all_of_update_customer_dto_status_spec.rb +34 -0
- data/spec/models/bridge_payment_rail_spec.rb +34 -0
- data/spec/models/create_bank_payment_intent_dto_spec.rb +142 -0
- data/spec/models/create_customer_dto_spec.rb +74 -0
- data/spec/models/create_direct_bank_transfer_dto_spec.rb +82 -0
- data/spec/models/create_direct_wallet_transfer_dto_spec.rb +58 -0
- data/spec/models/create_invoice_dto_spec.rb +146 -0
- data/spec/models/create_liquidation_address_dto_spec.rb +132 -0
- data/spec/models/create_payment_link_dto_spec.rb +200 -0
- data/spec/models/create_product_dto_spec.rb +110 -0
- data/spec/models/create_stable_payment_intent_dto_spec.rb +124 -0
- data/spec/models/create_stablecoin_conversion_dto_spec.rb +64 -0
- data/spec/models/create_tax_input_spec.rb +34 -0
- data/spec/models/create_webhook_dto_spec.rb +64 -0
- data/spec/models/customer_status_spec.rb +34 -0
- data/spec/models/destination_currency_spec.rb +34 -0
- data/spec/models/exchange_rate_response_dto_spec.rb +70 -0
- data/spec/models/fiat_currency_spec.rb +34 -0
- data/spec/models/health_response_dto_spec.rb +78 -0
- data/spec/models/invoice_product_dto_spec.rb +46 -0
- data/spec/models/liquidation_address_response_dto_spec.rb +118 -0
- data/spec/models/payment_link_product_dto_spec.rb +46 -0
- data/spec/models/payment_request_dto_spec.rb +58 -0
- data/spec/models/payment_response_dto_spec.rb +64 -0
- data/spec/models/public_health_response_dto_spec.rb +56 -0
- data/spec/models/refund_response_dto_spec.rb +64 -0
- data/spec/models/stable_coin_currency_spec.rb +34 -0
- data/spec/models/update_customer_dto_spec.rb +74 -0
- data/spec/models/update_payment_link_dto_spec.rb +34 -0
- data/spec/models/update_preference_input_spec.rb +34 -0
- data/spec/models/update_product_dto_spec.rb +110 -0
- data/spec/models/update_tax_input_spec.rb +34 -0
- data/spec/models/update_webhook_dto_spec.rb +64 -0
- data/spec/models/webhook_response_dto_spec.rb +82 -0
- data/spec/spec_helper.rb +110 -0
- metadata +375 -0
data/Rakefile
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
=begin
|
4
|
+
#Devdraft Payment & Business Management API
|
5
|
+
|
6
|
+
# A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
|
7
|
+
|
8
|
+
OpenAPI spec version: 1.0.0
|
9
|
+
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
11
|
+
Swagger Codegen version: 3.0.65
|
12
|
+
=end
|
13
|
+
|
14
|
+
$:.push File.expand_path("../lib", __FILE__)
|
15
|
+
require "devdraft/version"
|
16
|
+
|
17
|
+
Gem::Specification.new do |s|
|
18
|
+
s.name = "devdraft"
|
19
|
+
s.version = DevDraft::VERSION
|
20
|
+
s.platform = Gem::Platform::RUBY
|
21
|
+
s.authors = ["Swagger-Codegen"]
|
22
|
+
s.email = [""]
|
23
|
+
s.homepage = "https://github.com/swagger-api/swagger-codegen"
|
24
|
+
s.summary = "Devdraft Payment & Business Management API Ruby Gem"
|
25
|
+
s.description = " A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods. "
|
26
|
+
s.license = "Unlicense"
|
27
|
+
s.required_ruby_version = ">= 1.9"
|
28
|
+
|
29
|
+
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
30
|
+
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
31
|
+
|
32
|
+
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
33
|
+
|
34
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
35
|
+
s.test_files = `find spec/*`.split("\n")
|
36
|
+
s.executables = []
|
37
|
+
s.require_paths = ["lib"]
|
38
|
+
end
|
@@ -0,0 +1,87 @@
|
|
1
|
+
# DevDraftAI::APIHealthApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.devdraft.ai*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**health_controller_check_v0**](APIHealthApi.md#health_controller_check_v0) | **GET** /api/v0/health | Authenticated health check endpoint
|
8
|
+
[**health_controller_public_health_check_v0**](APIHealthApi.md#health_controller_public_health_check_v0) | **GET** /api/v0/health/public | Public health check endpoint
|
9
|
+
|
10
|
+
# **health_controller_check_v0**
|
11
|
+
> HealthResponseDto health_controller_check_v0
|
12
|
+
|
13
|
+
Authenticated health check endpoint
|
14
|
+
|
15
|
+
### Example
|
16
|
+
```ruby
|
17
|
+
# load the gem
|
18
|
+
require 'devdraft_ai_sdk'
|
19
|
+
|
20
|
+
api_instance = DevDraftAI::APIHealthApi.new
|
21
|
+
|
22
|
+
begin
|
23
|
+
#Authenticated health check endpoint
|
24
|
+
result = api_instance.health_controller_check_v0
|
25
|
+
p result
|
26
|
+
rescue DevDraftAI::ApiError => e
|
27
|
+
puts "Exception when calling APIHealthApi->health_controller_check_v0: #{e}"
|
28
|
+
end
|
29
|
+
```
|
30
|
+
|
31
|
+
### Parameters
|
32
|
+
This endpoint does not need any parameter.
|
33
|
+
|
34
|
+
### Return type
|
35
|
+
|
36
|
+
[**HealthResponseDto**](HealthResponseDto.md)
|
37
|
+
|
38
|
+
### Authorization
|
39
|
+
|
40
|
+
No authorization required
|
41
|
+
|
42
|
+
### HTTP request headers
|
43
|
+
|
44
|
+
- **Content-Type**: Not defined
|
45
|
+
- **Accept**: application/json
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
# **health_controller_public_health_check_v0**
|
50
|
+
> PublicHealthResponseDto health_controller_public_health_check_v0
|
51
|
+
|
52
|
+
Public health check endpoint
|
53
|
+
|
54
|
+
### Example
|
55
|
+
```ruby
|
56
|
+
# load the gem
|
57
|
+
require 'devdraft_ai_sdk'
|
58
|
+
|
59
|
+
api_instance = DevDraftAI::APIHealthApi.new
|
60
|
+
|
61
|
+
begin
|
62
|
+
#Public health check endpoint
|
63
|
+
result = api_instance.health_controller_public_health_check_v0
|
64
|
+
p result
|
65
|
+
rescue DevDraftAI::ApiError => e
|
66
|
+
puts "Exception when calling APIHealthApi->health_controller_public_health_check_v0: #{e}"
|
67
|
+
end
|
68
|
+
```
|
69
|
+
|
70
|
+
### Parameters
|
71
|
+
This endpoint does not need any parameter.
|
72
|
+
|
73
|
+
### Return type
|
74
|
+
|
75
|
+
[**PublicHealthResponseDto**](PublicHealthResponseDto.md)
|
76
|
+
|
77
|
+
### Authorization
|
78
|
+
|
79
|
+
No authorization required
|
80
|
+
|
81
|
+
### HTTP request headers
|
82
|
+
|
83
|
+
- **Content-Type**: Not defined
|
84
|
+
- **Accept**: application/json
|
85
|
+
|
86
|
+
|
87
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# DevDraftAI::AggregatedBalanceResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**currency** | **String** | The stablecoin currency |
|
7
|
+
**total_balance** | **String** | The total aggregated balance across all wallets and chains |
|
8
|
+
**balances** | **Array<Array>** | Detailed breakdown of balances by wallet and chain |
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# DevDraftAI::AllBalancesResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**usdc** | [**AllOfAllBalancesResponseUsdc**](AllOfAllBalancesResponseUsdc.md) | USDC balance aggregation |
|
7
|
+
**eurc** | [**AllOfAllBalancesResponseEurc**](AllOfAllBalancesResponseEurc.md) | EURC balance aggregation |
|
8
|
+
**total_usd_value** | **String** | Total value in USD equivalent |
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# DevDraftAI::AllOfAllBalancesResponseEurc
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**currency** | **String** | The stablecoin currency |
|
7
|
+
**total_balance** | **String** | The total aggregated balance across all wallets and chains |
|
8
|
+
**balances** | **Array<Array>** | Detailed breakdown of balances by wallet and chain |
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# DevDraftAI::AllOfAllBalancesResponseUsdc
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**currency** | **String** | The stablecoin currency |
|
7
|
+
**total_balance** | **String** | The total aggregated balance across all wallets and chains |
|
8
|
+
**balances** | **Array<Array>** | Detailed breakdown of balances by wallet and chain |
|
9
|
+
|
@@ -0,0 +1,169 @@
|
|
1
|
+
# DevDraftAI::AppBalancesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.devdraft.ai*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**balance_controller_get_all_balances**](AppBalancesApi.md#balance_controller_get_all_balances) | **GET** /api/v0/balance | Get all stablecoin balances for an app
|
8
|
+
[**balance_controller_get_eurc_balance**](AppBalancesApi.md#balance_controller_get_eurc_balance) | **GET** /api/v0/balance/eurc | Get EURC balance for an app
|
9
|
+
[**balance_controller_get_usdc_balance**](AppBalancesApi.md#balance_controller_get_usdc_balance) | **GET** /api/v0/balance/usdc | Get USDC balance for an app
|
10
|
+
|
11
|
+
# **balance_controller_get_all_balances**
|
12
|
+
> AllBalancesResponse balance_controller_get_all_balances
|
13
|
+
|
14
|
+
Get all stablecoin balances for an app
|
15
|
+
|
16
|
+
Retrieves both USDC and EURC balances across all wallets for the specified app. This comprehensive endpoint provides: - 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 ## Use Cases - Complete financial dashboard overview - Multi-currency balance reporting - Comprehensive wallet management - Cross-currency analytics and reporting ## Response Format The response includes separate aggregations for each currency plus a combined USD value estimate, providing complete visibility into stablecoin holdings.
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'devdraft_ai_sdk'
|
22
|
+
# setup authorization
|
23
|
+
DevDraftAI.configure do |config|
|
24
|
+
# Configure API key authorization: x-client-key
|
25
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
26
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
27
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
28
|
+
|
29
|
+
# Configure API key authorization: x-client-secret
|
30
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
31
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
32
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
33
|
+
end
|
34
|
+
|
35
|
+
api_instance = DevDraftAI::AppBalancesApi.new
|
36
|
+
|
37
|
+
begin
|
38
|
+
#Get all stablecoin balances for an app
|
39
|
+
result = api_instance.balance_controller_get_all_balances
|
40
|
+
p result
|
41
|
+
rescue DevDraftAI::ApiError => e
|
42
|
+
puts "Exception when calling AppBalancesApi->balance_controller_get_all_balances: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
### Parameters
|
47
|
+
This endpoint does not need any parameter.
|
48
|
+
|
49
|
+
### Return type
|
50
|
+
|
51
|
+
[**AllBalancesResponse**](AllBalancesResponse.md)
|
52
|
+
|
53
|
+
### Authorization
|
54
|
+
|
55
|
+
[x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
|
56
|
+
|
57
|
+
### HTTP request headers
|
58
|
+
|
59
|
+
- **Content-Type**: Not defined
|
60
|
+
- **Accept**: application/json
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
# **balance_controller_get_eurc_balance**
|
65
|
+
> AggregatedBalanceResponse balance_controller_get_eurc_balance
|
66
|
+
|
67
|
+
Get EURC balance for an app
|
68
|
+
|
69
|
+
Retrieves the total EURC balance across all wallets for the specified app. This endpoint aggregates EURC balances from all associated wallets and provides: - Total EURC balance across all chains and wallets - Detailed breakdown by individual wallet and blockchain network - Contract addresses and wallet identifiers for each balance ## Use Cases - Dashboard balance display - European market operations - Euro-denominated financial reporting - Cross-currency balance tracking ## Response Format The response includes both the aggregated total and detailed breakdown, enabling comprehensive euro stablecoin balance management.
|
70
|
+
|
71
|
+
### Example
|
72
|
+
```ruby
|
73
|
+
# load the gem
|
74
|
+
require 'devdraft_ai_sdk'
|
75
|
+
# setup authorization
|
76
|
+
DevDraftAI.configure do |config|
|
77
|
+
# Configure API key authorization: x-client-key
|
78
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
79
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
80
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
81
|
+
|
82
|
+
# Configure API key authorization: x-client-secret
|
83
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
84
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
85
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
86
|
+
end
|
87
|
+
|
88
|
+
api_instance = DevDraftAI::AppBalancesApi.new
|
89
|
+
|
90
|
+
begin
|
91
|
+
#Get EURC balance for an app
|
92
|
+
result = api_instance.balance_controller_get_eurc_balance
|
93
|
+
p result
|
94
|
+
rescue DevDraftAI::ApiError => e
|
95
|
+
puts "Exception when calling AppBalancesApi->balance_controller_get_eurc_balance: #{e}"
|
96
|
+
end
|
97
|
+
```
|
98
|
+
|
99
|
+
### Parameters
|
100
|
+
This endpoint does not need any parameter.
|
101
|
+
|
102
|
+
### Return type
|
103
|
+
|
104
|
+
[**AggregatedBalanceResponse**](AggregatedBalanceResponse.md)
|
105
|
+
|
106
|
+
### Authorization
|
107
|
+
|
108
|
+
[x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
|
109
|
+
|
110
|
+
### HTTP request headers
|
111
|
+
|
112
|
+
- **Content-Type**: Not defined
|
113
|
+
- **Accept**: application/json
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
# **balance_controller_get_usdc_balance**
|
118
|
+
> AggregatedBalanceResponse balance_controller_get_usdc_balance
|
119
|
+
|
120
|
+
Get USDC balance for an app
|
121
|
+
|
122
|
+
Retrieves the total USDC balance across all wallets for the specified app. This endpoint aggregates USDC balances from all associated wallets and provides: - Total USDC balance across all chains and wallets - Detailed breakdown by individual wallet and blockchain network - Contract addresses and wallet identifiers for each balance ## Use Cases - Dashboard balance display - Financial reporting and reconciliation - Real-time balance monitoring - Multi-chain balance aggregation ## Response Format The response includes both the aggregated total and detailed breakdown, allowing for comprehensive balance tracking and wallet-specific analysis.
|
123
|
+
|
124
|
+
### Example
|
125
|
+
```ruby
|
126
|
+
# load the gem
|
127
|
+
require 'devdraft_ai_sdk'
|
128
|
+
# setup authorization
|
129
|
+
DevDraftAI.configure do |config|
|
130
|
+
# Configure API key authorization: x-client-key
|
131
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
132
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
133
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
134
|
+
|
135
|
+
# Configure API key authorization: x-client-secret
|
136
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
137
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
138
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
139
|
+
end
|
140
|
+
|
141
|
+
api_instance = DevDraftAI::AppBalancesApi.new
|
142
|
+
|
143
|
+
begin
|
144
|
+
#Get USDC balance for an app
|
145
|
+
result = api_instance.balance_controller_get_usdc_balance
|
146
|
+
p result
|
147
|
+
rescue DevDraftAI::ApiError => e
|
148
|
+
puts "Exception when calling AppBalancesApi->balance_controller_get_usdc_balance: #{e}"
|
149
|
+
end
|
150
|
+
```
|
151
|
+
|
152
|
+
### Parameters
|
153
|
+
This endpoint does not need any parameter.
|
154
|
+
|
155
|
+
### Return type
|
156
|
+
|
157
|
+
[**AggregatedBalanceResponse**](AggregatedBalanceResponse.md)
|
158
|
+
|
159
|
+
### Authorization
|
160
|
+
|
161
|
+
[x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
|
162
|
+
|
163
|
+
### HTTP request headers
|
164
|
+
|
165
|
+
- **Content-Type**: Not defined
|
166
|
+
- **Accept**: application/json
|
167
|
+
|
168
|
+
|
169
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# DevDraftAI::CreateBankPaymentIntentDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**source_payment_rail** | [**AllOfCreateBankPaymentIntentDtoSourcePaymentRail**](AllOfCreateBankPaymentIntentDtoSourcePaymentRail.md) | The banking payment method to use for the transfer. Determines processing time and fees. |
|
7
|
+
**source_currency** | [**AllOfCreateBankPaymentIntentDtoSourceCurrency**](AllOfCreateBankPaymentIntentDtoSourceCurrency.md) | The fiat currency to convert FROM. Must match the currency of the source payment rail. |
|
8
|
+
**destination_currency** | [**AllOfCreateBankPaymentIntentDtoDestinationCurrency**](AllOfCreateBankPaymentIntentDtoDestinationCurrency.md) | The stablecoin currency to convert TO. The customer will receive this currency. |
|
9
|
+
**destination_network** | [**AllOfCreateBankPaymentIntentDtoDestinationNetwork**](AllOfCreateBankPaymentIntentDtoDestinationNetwork.md) | The blockchain network where the stablecoin will be delivered. Must support the destination currency. |
|
10
|
+
**destination_address** | **String** | Destination wallet address. Supports Ethereum (0x...) and Solana address formats. | [optional]
|
11
|
+
**amount** | **String** | Payment amount (optional for flexible amount) | [optional]
|
12
|
+
**customer_first_name** | **String** | Customer first name | [optional]
|
13
|
+
**customer_last_name** | **String** | Customer last name | [optional]
|
14
|
+
**customer_email** | **String** | Customer email address | [optional]
|
15
|
+
**customer_address** | **String** | Customer address | [optional]
|
16
|
+
**customer_country** | **String** | Customer country | [optional]
|
17
|
+
**customer_country_iso** | **String** | Customer country ISO code | [optional]
|
18
|
+
**customer_province** | **String** | Customer province/state | [optional]
|
19
|
+
**customer_province_iso** | **String** | Customer province/state ISO code | [optional]
|
20
|
+
**phone_number** | **String** | Customer phone number | [optional]
|
21
|
+
**wire_message** | **String** | Wire transfer message (for WIRE transfers) | [optional]
|
22
|
+
**sepa_reference** | **String** | SEPA reference (for SEPA transfers) | [optional]
|
23
|
+
**ach_reference** | **String** | ACH reference (for ACH transfers) | [optional]
|
24
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# DevDraftAI::CreateCustomerDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**first_name** | **String** | Customer's first name. Used for personalization and legal documentation. |
|
7
|
+
**last_name** | **String** | Customer's last name. Used for personalization and legal documentation. |
|
8
|
+
**email** | **String** | Customer's email address. Used for notifications, receipts, and account management. Must be a valid email format. | [optional]
|
9
|
+
**phone_number** | **String** | Customer's phone number. Used for SMS notifications and verification. Include country code for international numbers. |
|
10
|
+
**customer_type** | **String** | Type of customer account. Determines available features and compliance requirements. | [optional] [default to 'Individual']
|
11
|
+
**status** | [**AllOfCreateCustomerDtoStatus**](AllOfCreateCustomerDtoStatus.md) | Current status of the customer account. Controls access to services and features. | [optional]
|
12
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# DevDraftAI::CreateDirectBankTransferDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**wallet_id** | **String** | The ID of the bridge wallet to transfer from |
|
7
|
+
**payment_rail** | **String** | The payment rail to use |
|
8
|
+
**destination_currency** | **String** | The destination currency |
|
9
|
+
**source_currency** | **String** | The source currency |
|
10
|
+
**amount** | [**BigDecimal**](BigDecimal.md) | The amount to transfer |
|
11
|
+
**wire_message** | **String** | Wire transfer message | [optional]
|
12
|
+
**sepa_reference** | **String** | SEPA transfer reference | [optional]
|
13
|
+
**ach_reference** | **String** | ACH transfer reference | [optional]
|
14
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# DevDraftAI::CreateDirectWalletTransferDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**wallet_id** | **String** | The ID of the bridge wallet to transfer from |
|
7
|
+
**network** | **String** | The network to use for the transfer |
|
8
|
+
**stable_coin_currency** | **String** | The stablecoin currency to use |
|
9
|
+
**amount** | [**BigDecimal**](BigDecimal.md) | The amount to transfer |
|
10
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# DevDraftAI::CreateInvoiceDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**name** | **String** | Name of the invoice |
|
7
|
+
**email** | **String** | Email address |
|
8
|
+
**customer_id** | **String** | Customer ID |
|
9
|
+
**currency** | **String** | Currency for the invoice |
|
10
|
+
**items** | [**Array<InvoiceProductDto>**](InvoiceProductDto.md) | Array of products in the invoice |
|
11
|
+
**due_date** | **DateTime** | Due date of the invoice |
|
12
|
+
**delivery** | **String** | Delivery method |
|
13
|
+
**payment_link** | **BOOLEAN** | Whether to generate a payment link |
|
14
|
+
**payment_methods** | **Array<String>** | Array of accepted payment methods |
|
15
|
+
**status** | **String** | Invoice status |
|
16
|
+
**address** | **String** | Address | [optional]
|
17
|
+
**phone_number** | **String** | Phone number | [optional]
|
18
|
+
**send_date** | **DateTime** | Send date | [optional]
|
19
|
+
**logo** | **String** | Logo URL | [optional]
|
20
|
+
**partial_payment** | **BOOLEAN** | Allow partial payments |
|
21
|
+
**tax_id** | **String** | Tax ID | [optional]
|
22
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# DevDraftAI::CreateLiquidationAddressDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**chain** | **String** | The blockchain chain for the liquidation address |
|
7
|
+
**currency** | **String** | The currency for the liquidation address |
|
8
|
+
**address** | **String** | The liquidation address on the blockchain |
|
9
|
+
**external_account_id** | **String** | External bank account to send funds to | [optional]
|
10
|
+
**prefunded_account_id** | **String** | Developer's prefunded account id | [optional]
|
11
|
+
**bridge_wallet_id** | **String** | Bridge Wallet to send funds to | [optional]
|
12
|
+
**destination_payment_rail** | [**AllOfCreateLiquidationAddressDtoDestinationPaymentRail**](AllOfCreateLiquidationAddressDtoDestinationPaymentRail.md) | Payment rail for sending funds | [optional]
|
13
|
+
**destination_currency** | [**AllOfCreateLiquidationAddressDtoDestinationCurrency**](AllOfCreateLiquidationAddressDtoDestinationCurrency.md) | Currency for sending funds | [optional]
|
14
|
+
**destination_wire_message** | **String** | Message for wire transfers | [optional]
|
15
|
+
**destination_sepa_reference** | **String** | Reference for SEPA transactions | [optional]
|
16
|
+
**destination_ach_reference** | **String** | Reference for ACH transactions | [optional]
|
17
|
+
**destination_address** | **String** | Crypto wallet address for crypto transfers | [optional]
|
18
|
+
**destination_blockchain_memo** | **String** | Memo for blockchain transactions | [optional]
|
19
|
+
**return_address** | **String** | Address to return funds on failed transactions (Not supported on Stellar) | [optional]
|
20
|
+
**custom_developer_fee_percent** | **String** | Custom developer fee percentage (Base 100 percentage: 10.2% = \"10.2\") | [optional]
|
21
|
+
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# DevDraftAI::CreatePaymentLinkDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**title** | **String** | Display title for the payment link. This appears on the checkout page and in customer communications. |
|
7
|
+
**url** | **String** | Unique URL slug for the payment link. Can be a full URL or just the path segment. Must be unique within your account. |
|
8
|
+
**description** | **String** | Detailed description of what the customer is purchasing. Supports markdown formatting. | [optional]
|
9
|
+
**cover_image** | **String** | Cover image URL | [optional]
|
10
|
+
**link_type** | **String** | Type of the payment link |
|
11
|
+
**amount** | [**BigDecimal**](BigDecimal.md) | Amount for the payment link | [optional]
|
12
|
+
**payment_for_id** | **String** | Payment for ID | [optional]
|
13
|
+
**recurring_type** | **String** | Recurring type | [default to 'ONE_TIME']
|
14
|
+
**customer_id** | **String** | Customer ID | [optional]
|
15
|
+
**payment_link_products** | [**Array<PaymentLinkProductDto>**](PaymentLinkProductDto.md) | Array of products in the payment link | [optional]
|
16
|
+
**is_for_all_product** | **BOOLEAN** | Whether the payment link is for all products | [optional] [default to false]
|
17
|
+
**allow_quantity_adjustment** | **BOOLEAN** | Whether to allow quantity adjustment | [default to true]
|
18
|
+
**collect_tax** | **BOOLEAN** | Whether to collect tax | [default to false]
|
19
|
+
**tax_id** | **String** | Tax ID | [optional]
|
20
|
+
**collect_address** | **BOOLEAN** | Whether to collect address | [default to false]
|
21
|
+
**require_phone_number** | **BOOLEAN** | Whether to require phone number | [default to false]
|
22
|
+
**limit_payments** | **BOOLEAN** | Whether to limit payments | [optional] [default to false]
|
23
|
+
**max_payments** | [**BigDecimal**](BigDecimal.md) | Maximum number of payments | [optional]
|
24
|
+
**custom_fields** | **Object** | Custom fields | [optional]
|
25
|
+
**allow_business_tax_id** | **BOOLEAN** | Whether to allow business tax ID | [optional] [default to false]
|
26
|
+
**allow_mobile_payment** | **BOOLEAN** | Whether to allow mobile payment | [default to false]
|
27
|
+
**confirmation_page** | **String** | Confirmation page type | [default to 'SHOW']
|
28
|
+
**create_invoice_pdf** | **BOOLEAN** | Whether to create invoice PDF | [default to false]
|
29
|
+
**currency** | **String** | Currency | [default to 'usdc']
|
30
|
+
**expiration_date** | **DateTime** | Expiration date | [optional]
|
31
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# DevDraftAI::CreateProductDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**name** | **String** | Product name as it will appear to customers. Should be clear and descriptive. |
|
7
|
+
**description** | **String** | Detailed description of the product. Supports markdown formatting for rich text display. |
|
8
|
+
**price** | [**BigDecimal**](BigDecimal.md) | Product price in the specified currency. Must be greater than 0. |
|
9
|
+
**currency** | **String** | Currency code for the price. Defaults to USD if not specified. | [optional] [default to 'USD']
|
10
|
+
**type** | **String** | Product type | [optional]
|
11
|
+
**weight** | [**BigDecimal**](BigDecimal.md) | Weight of the product | [optional]
|
12
|
+
**unit** | **String** | Unit of measurement | [optional]
|
13
|
+
**quantity** | [**BigDecimal**](BigDecimal.md) | Quantity available | [optional]
|
14
|
+
**stock_count** | [**BigDecimal**](BigDecimal.md) | Stock count | [optional]
|
15
|
+
**status** | **String** | Product status | [optional]
|
16
|
+
**product_type** | **String** | Product type | [optional]
|
17
|
+
**images** | **Array<String>** | Array of image URLs | [optional]
|
18
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# DevDraftAI::CreateStablePaymentIntentDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**source_currency** | [**AllOfCreateStablePaymentIntentDtoSourceCurrency**](AllOfCreateStablePaymentIntentDtoSourceCurrency.md) | The stablecoin currency to convert FROM. This is the currency the customer will pay with. |
|
7
|
+
**source_network** | [**AllOfCreateStablePaymentIntentDtoSourceNetwork**](AllOfCreateStablePaymentIntentDtoSourceNetwork.md) | The blockchain network where the source currency resides. Determines gas fees and transaction speed. |
|
8
|
+
**destination_currency** | [**AllOfCreateStablePaymentIntentDtoDestinationCurrency**](AllOfCreateStablePaymentIntentDtoDestinationCurrency.md) | The stablecoin currency to convert TO. If omitted, defaults to the same as source currency (cross-chain transfer). | [optional]
|
9
|
+
**destination_network** | [**AllOfCreateStablePaymentIntentDtoDestinationNetwork**](AllOfCreateStablePaymentIntentDtoDestinationNetwork.md) | The blockchain network where the converted currency will be delivered. Must support the destination currency. |
|
10
|
+
**destination_address** | **String** | The wallet address where converted funds will be sent. Supports Ethereum (0x...) and Solana address formats. | [optional]
|
11
|
+
**amount** | **String** | Payment amount in the source currency. Omit for flexible amount payments where users specify the amount during checkout. | [optional]
|
12
|
+
**customer_first_name** | **String** | Customer's first name. Used for transaction records and compliance. Required for amounts over $1000. | [optional]
|
13
|
+
**customer_last_name** | **String** | Customer's last name. Used for transaction records and compliance. Required for amounts over $1000. | [optional]
|
14
|
+
**customer_email** | **String** | Customer's email address. Used for transaction notifications and receipts. Highly recommended for all transactions. | [optional]
|
15
|
+
**customer_address** | **String** | Customer's full address. Required for compliance in certain jurisdictions and high-value transactions. | [optional]
|
16
|
+
**customer_country** | **String** | Customer's country of residence. Used for compliance and tax reporting. | [optional]
|
17
|
+
**customer_country_iso** | **String** | Customer's country ISO 3166-1 alpha-2 code. Used for automated compliance checks. | [optional]
|
18
|
+
**customer_province** | **String** | Customer's state or province. Required for US and Canadian customers. | [optional]
|
19
|
+
**customer_province_iso** | **String** | Customer's state or province ISO code. Used for automated tax calculations. | [optional]
|
20
|
+
**phone_number** | **String** | Customer's phone number with country code. Used for SMS notifications and verification. | [optional]
|
21
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# DevDraftAI::CreateStablecoinConversionDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**wallet_id** | **String** | The ID of the bridge wallet to use |
|
7
|
+
**source_network** | **String** | The source network |
|
8
|
+
**source_currency** | **String** | The source currency |
|
9
|
+
**destination_currency** | **String** | The destination currency |
|
10
|
+
**amount** | [**BigDecimal**](BigDecimal.md) | The amount to convert |
|
11
|
+
|