devdraft 1.0.2 → 1.0.3
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 +4 -4
- data/README.md +155 -253
- data/Rakefile +2 -0
- data/devdraft-1.0.0.gem +0 -0
- data/{devdraft_ai_sdk.gemspec → devdraft.gemspec} +15 -11
- data/docs/APIHealthApi.md +82 -30
- data/docs/AggregatedBalanceResponse.md +19 -6
- data/docs/AllBalancesResponse.md +19 -6
- data/docs/AppBalancesApi.md +125 -65
- data/docs/BridgeFiatPaymentRail.md +15 -0
- data/docs/BridgePaymentRail.md +12 -3
- data/docs/CreateBankPaymentIntentDto.md +49 -21
- data/docs/CreateCustomerDto.md +25 -9
- data/docs/CreateDirectBankTransferDto.md +29 -11
- data/docs/CreateDirectWalletTransferDto.md +21 -7
- data/docs/CreateExternalBankTransferDto.md +40 -0
- data/docs/CreateExternalStablecoinTransferDto.md +28 -0
- data/docs/CreateInvoiceDto.md +45 -19
- data/docs/CreateLiquidationAddressDto.md +43 -18
- data/docs/CreatePaymentLinkDto.md +53 -28
- data/docs/CreateStablePaymentIntentDto.md +43 -18
- data/docs/CreateStablecoinConversionDto.md +23 -8
- data/docs/CreateTaxDto.md +26 -0
- data/docs/CreateWebhookDto.md +23 -8
- data/docs/CustomerStatus.md +12 -3
- data/docs/CustomerType.md +15 -0
- data/docs/CustomersApi.md +187 -114
- data/docs/DestinationCurrency.md +12 -3
- data/docs/ExchangeRateResponseDto.md +25 -9
- data/docs/ExchangeRatesApi.md +130 -72
- data/docs/FiatCurrency.md +12 -3
- data/docs/HealthResponseDto.md +25 -9
- data/docs/InvoiceProductDto.md +17 -5
- data/docs/InvoicesApi.md +177 -104
- data/docs/LiquidationAddressResponseDto.md +41 -17
- data/docs/LiquidationAddressesApi.md +115 -61
- data/docs/PaymentIntentsApi.md +93 -57
- data/docs/PaymentLinkProductDto.md +17 -5
- data/docs/PaymentLinksApi.md +175 -102
- data/docs/PaymentRequestDto.md +21 -7
- data/docs/PaymentResponseDto.md +23 -8
- data/docs/ProductsApi.md +307 -194
- data/docs/PublicHealthResponseDto.md +19 -6
- data/docs/RefundResponseDto.md +23 -8
- data/docs/StableCoinCurrency.md +12 -3
- data/docs/TaxControllerCreate201Response.md +30 -0
- data/docs/TaxControllerDeleteWithoutId400Response.md +22 -0
- data/docs/TaxControllerUpdateWithoutId400Response.md +22 -0
- data/docs/TaxesApi.md +374 -122
- data/docs/TestPaymentsApi.md +150 -60
- data/docs/TransfersApi.md +274 -72
- data/docs/UpdateCustomerDto.md +25 -9
- data/docs/UpdateTaxDto.md +26 -0
- data/docs/UpdateWebhookDto.md +23 -8
- data/docs/WalletsApi.md +44 -24
- data/docs/WebhookResponseDto.md +29 -11
- data/docs/WebhooksApi.md +225 -134
- data/git_push.sh +41 -28
- data/lib/devdraft/api/api_health_api.rb +32 -16
- data/lib/devdraft/api/app_balances_api.rb +45 -22
- data/lib/devdraft/api/customers_api.rb +124 -71
- data/lib/devdraft/api/exchange_rates_api.rb +49 -26
- data/lib/devdraft/api/invoices_api.rb +89 -53
- data/lib/devdraft/api/liquidation_addresses_api.rb +70 -44
- data/lib/devdraft/api/payment_intents_api.rb +62 -40
- data/lib/devdraft/api/payment_links_api.rb +85 -49
- data/lib/devdraft/api/products_api.rb +214 -216
- data/lib/devdraft/api/taxes_api.rb +257 -66
- data/lib/devdraft/api/test_payments_api.rb +70 -44
- data/lib/devdraft/api/transfers_api.rb +206 -46
- data/lib/devdraft/api/wallets_api.rb +18 -9
- data/lib/devdraft/api/webhooks_api.rb +109 -66
- data/lib/devdraft/api_client.rb +76 -71
- data/lib/devdraft/api_error.rb +5 -4
- data/lib/devdraft/api_model_base.rb +88 -0
- data/lib/devdraft/configuration.rb +121 -18
- data/lib/devdraft/models/aggregated_balance_response.rb +68 -101
- data/lib/devdraft/models/all_balances_response.rb +76 -99
- data/lib/devdraft/models/bridge_fiat_payment_rail.rb +45 -0
- data/lib/devdraft/models/bridge_payment_rail.rb +36 -24
- data/lib/devdraft/models/create_bank_payment_intent_dto.rb +191 -114
- data/lib/devdraft/models/create_customer_dto.rb +123 -113
- data/lib/devdraft/models/create_direct_bank_transfer_dto.rb +105 -104
- data/lib/devdraft/models/create_direct_wallet_transfer_dto.rb +89 -100
- data/lib/devdraft/models/create_external_bank_transfer_dto.rb +505 -0
- data/lib/devdraft/models/create_external_stablecoin_transfer_dto.rb +266 -0
- data/lib/devdraft/models/create_invoice_dto.rb +151 -121
- data/lib/devdraft/models/create_liquidation_address_dto.rb +195 -115
- data/lib/devdraft/models/create_payment_link_dto.rb +192 -214
- data/lib/devdraft/models/create_stable_payment_intent_dto.rb +324 -111
- data/lib/devdraft/models/create_stablecoin_conversion_dto.rb +102 -101
- data/lib/devdraft/models/create_tax_dto.rb +281 -0
- data/lib/devdraft/models/create_webhook_dto.rb +104 -101
- data/lib/devdraft/models/customer_status.rb +23 -10
- data/lib/devdraft/models/customer_type.rb +45 -0
- data/lib/devdraft/models/destination_currency.rb +27 -15
- data/lib/devdraft/models/exchange_rate_response_dto.rb +103 -102
- data/lib/devdraft/models/fiat_currency.rb +22 -10
- data/lib/devdraft/models/health_response_dto.rb +99 -106
- data/lib/devdraft/models/invoice_product_dto.rb +63 -98
- data/lib/devdraft/models/liquidation_address_response_dto.rb +147 -110
- data/lib/devdraft/models/payment_link_product_dto.rb +70 -98
- data/lib/devdraft/models/payment_request_dto.rb +77 -100
- data/lib/devdraft/models/payment_response_dto.rb +102 -101
- data/lib/devdraft/models/public_health_response_dto.rb +68 -101
- data/lib/devdraft/models/refund_response_dto.rb +102 -101
- data/lib/devdraft/models/stable_coin_currency.rb +21 -9
- data/lib/devdraft/models/tax_controller_create201_response.rb +201 -0
- data/lib/devdraft/models/tax_controller_delete_without_id400_response.rb +165 -0
- data/lib/devdraft/models/tax_controller_update_without_id400_response.rb +165 -0
- data/lib/devdraft/models/update_customer_dto.rb +117 -113
- data/lib/devdraft/models/update_tax_dto.rb +256 -0
- data/lib/devdraft/models/update_webhook_dto.rb +70 -101
- data/lib/devdraft/models/webhook_response_dto.rb +140 -103
- data/lib/devdraft/version.rb +6 -5
- data/lib/devdraft.rb +18 -27
- data/spec/api/api_health_api_spec.rb +10 -9
- data/spec/api/app_balances_api_spec.rb +11 -10
- data/spec/api/customers_api_spec.rb +25 -24
- data/spec/api/exchange_rates_api_spec.rb +11 -10
- data/spec/api/invoices_api_spec.rb +16 -15
- data/spec/api/liquidation_addresses_api_spec.rb +13 -12
- data/spec/api/payment_intents_api_spec.rb +12 -11
- data/spec/api/payment_links_api_spec.rb +14 -13
- data/spec/api/products_api_spec.rb +41 -40
- data/spec/api/taxes_api_spec.rb +51 -21
- data/spec/api/test_payments_api_spec.rb +14 -13
- data/spec/api/transfers_api_spec.rb +36 -13
- data/spec/api/wallets_api_spec.rb +9 -8
- data/spec/api/webhooks_api_spec.rb +20 -19
- data/spec/models/aggregated_balance_response_spec.rb +15 -19
- data/spec/models/all_balances_response_spec.rb +14 -18
- data/spec/models/bridge_fiat_payment_rail_spec.rb +30 -0
- data/spec/models/bridge_payment_rail_spec.rb +11 -15
- data/spec/models/create_bank_payment_intent_dto_spec.rb +29 -33
- data/spec/models/create_customer_dto_spec.rb +17 -25
- data/spec/models/create_direct_bank_transfer_dto_spec.rb +19 -23
- data/spec/models/create_direct_wallet_transfer_dto_spec.rb +15 -19
- data/spec/models/create_external_bank_transfer_dto_spec.rb +102 -0
- data/spec/models/create_external_stablecoin_transfer_dto_spec.rb +66 -0
- data/spec/models/create_invoice_dto_spec.rb +31 -35
- data/spec/models/create_liquidation_address_dto_spec.rb +28 -32
- data/spec/models/create_payment_link_dto_spec.rb +34 -76
- data/spec/models/create_stable_payment_intent_dto_spec.rb +26 -30
- data/spec/models/create_stablecoin_conversion_dto_spec.rb +16 -20
- data/spec/models/create_tax_dto_spec.rb +60 -0
- data/spec/models/create_webhook_dto_spec.rb +16 -20
- data/spec/models/customer_status_spec.rb +11 -15
- data/spec/models/customer_type_spec.rb +30 -0
- data/spec/models/destination_currency_spec.rb +11 -15
- data/spec/models/exchange_rate_response_dto_spec.rb +17 -21
- data/spec/models/fiat_currency_spec.rb +11 -15
- data/spec/models/health_response_dto_spec.rb +19 -23
- data/spec/models/invoice_product_dto_spec.rb +13 -17
- data/spec/models/liquidation_address_response_dto_spec.rb +25 -29
- data/spec/models/payment_link_product_dto_spec.rb +13 -17
- data/spec/models/payment_request_dto_spec.rb +15 -19
- data/spec/models/payment_response_dto_spec.rb +16 -20
- data/spec/models/public_health_response_dto_spec.rb +15 -19
- data/spec/models/refund_response_dto_spec.rb +16 -20
- data/spec/models/stable_coin_currency_spec.rb +11 -15
- data/spec/models/tax_controller_create201_response_spec.rb +72 -0
- data/spec/models/tax_controller_delete_without_id400_response_spec.rb +48 -0
- data/spec/models/tax_controller_update_without_id400_response_spec.rb +48 -0
- data/spec/models/update_customer_dto_spec.rb +17 -25
- data/spec/models/update_tax_dto_spec.rb +60 -0
- data/spec/models/update_webhook_dto_spec.rb +16 -20
- data/spec/models/webhook_response_dto_spec.rb +19 -23
- data/spec/spec_helper.rb +5 -4
- metadata +49 -116
- data/docs/AllOfAllBalancesResponseEurc.md +0 -9
- data/docs/AllOfAllBalancesResponseUsdc.md +0 -9
- data/docs/AllOfCreateBankPaymentIntentDtoDestinationCurrency.md +0 -6
- data/docs/AllOfCreateBankPaymentIntentDtoDestinationNetwork.md +0 -6
- data/docs/AllOfCreateBankPaymentIntentDtoSourceCurrency.md +0 -6
- data/docs/AllOfCreateBankPaymentIntentDtoSourcePaymentRail.md +0 -6
- data/docs/AllOfCreateCustomerDtoStatus.md +0 -6
- data/docs/AllOfCreateLiquidationAddressDtoDestinationCurrency.md +0 -6
- data/docs/AllOfCreateLiquidationAddressDtoDestinationPaymentRail.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoDestinationCurrency.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoDestinationNetwork.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoSourceCurrency.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoSourceNetwork.md +0 -6
- data/docs/AllOfUpdateCustomerDtoStatus.md +0 -6
- data/docs/CreateProductDto.md +0 -18
- data/docs/CreateTaxInput.md +0 -6
- data/docs/UpdatePaymentLinkDto.md +0 -6
- data/docs/UpdatePreferenceInput.md +0 -6
- data/docs/UpdateProductDto.md +0 -18
- data/docs/UpdateTaxInput.md +0 -6
- data/example.rb +0 -129
- data/lib/devdraft/models/all_of_all_balances_response_eurc.rb +0 -283
- data/lib/devdraft/models/all_of_all_balances_response_usdc.rb +0 -283
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_network.rb +0 -202
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_payment_rail.rb +0 -202
- data/lib/devdraft/models/all_of_create_customer_dto_status.rb +0 -202
- data/lib/devdraft/models/all_of_create_liquidation_address_dto_destination_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_liquidation_address_dto_destination_payment_rail.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_network.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_network.rb +0 -202
- data/lib/devdraft/models/all_of_update_customer_dto_status.rb +0 -202
- data/lib/devdraft/models/create_product_dto.rb +0 -370
- data/lib/devdraft/models/create_tax_input.rb +0 -197
- data/lib/devdraft/models/update_payment_link_dto.rb +0 -197
- data/lib/devdraft/models/update_preference_input.rb +0 -197
- data/lib/devdraft/models/update_product_dto.rb +0 -355
- data/lib/devdraft/models/update_tax_input.rb +0 -197
- data/spec/api_client_spec.rb +0 -225
- data/spec/base_object_spec.rb +0 -109
- data/spec/configuration_spec.rb +0 -41
- data/spec/models/all_of_all_balances_response_eurc_spec.rb +0 -56
- data/spec/models/all_of_all_balances_response_usdc_spec.rb +0 -56
- data/spec/models/all_of_create_bank_payment_intent_dto_destination_currency_spec.rb +0 -34
- data/spec/models/all_of_create_bank_payment_intent_dto_destination_network_spec.rb +0 -34
- data/spec/models/all_of_create_bank_payment_intent_dto_source_currency_spec.rb +0 -34
- data/spec/models/all_of_create_bank_payment_intent_dto_source_payment_rail_spec.rb +0 -34
- data/spec/models/all_of_create_customer_dto_status_spec.rb +0 -34
- data/spec/models/all_of_create_liquidation_address_dto_destination_currency_spec.rb +0 -34
- data/spec/models/all_of_create_liquidation_address_dto_destination_payment_rail_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_destination_currency_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_destination_network_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_source_currency_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_source_network_spec.rb +0 -34
- data/spec/models/all_of_update_customer_dto_status_spec.rb +0 -34
- data/spec/models/create_product_dto_spec.rb +0 -110
- data/spec/models/create_tax_input_spec.rb +0 -34
- data/spec/models/update_payment_link_dto_spec.rb +0 -34
- data/spec/models/update_preference_input_spec.rb +0 -34
- data/spec/models/update_product_dto_spec.rb +0 -110
- data/spec/models/update_tax_input_spec.rb +0 -34
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 286ba4f773316c9e0c6c7382bbb8ad4cf057907300162be8f186df2894664a64
|
|
4
|
+
data.tar.gz: cfd3aca39640ca0eb6e92938a1fdf8f36cbd73ff523c1f0a1e88c55ed92f16b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f98be3f527993886dcbd821703562f26b398c2ad71236db9340ef1433df2d8fecbf4afa34b5a5513df9b2bc8fc3ea85eadda1cad5900848c0b167e5a8137065c
|
|
7
|
+
data.tar.gz: 109e4aced6b6b194135672ccb56679831b440aa7b3173cd4f9776a45cccc556eca18a3d7f8e8f612c0c86ba6e3b2c07afdd83e5e89fc19d359ccbedb0f0e3f28
|
data/README.md
CHANGED
|
@@ -1,185 +1,88 @@
|
|
|
1
|
-
#
|
|
1
|
+
# devdraft
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Devdraft - the Ruby gem for the Devdraft AI Payment & Business Management API
|
|
4
4
|
|
|
5
|
-
## Installation
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
|
|
7
|
+
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
gem 'devdraft', '~> 1.0.1'
|
|
11
|
-
```
|
|
9
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
- API version: 1.0.0
|
|
12
|
+
- Package version: 1.0.0
|
|
13
|
+
- Generator version: 7.17.0
|
|
14
|
+
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
$ gem install devdraft
|
|
21
|
-
```
|
|
16
|
+
## Installation
|
|
22
17
|
|
|
23
|
-
|
|
18
|
+
### Build a gem
|
|
24
19
|
|
|
25
|
-
|
|
20
|
+
To build the Ruby code into a gem:
|
|
26
21
|
|
|
27
|
-
```
|
|
28
|
-
|
|
22
|
+
```shell
|
|
23
|
+
gem build devdraft.gemspec
|
|
24
|
+
```
|
|
29
25
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
'x-client-key' => 'YOUR_CLIENT_KEY',
|
|
35
|
-
'x-secret-key' => 'YOUR_SECRET_KEY'
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
# Optional: Set a custom base URL if needed
|
|
39
|
-
# config.base_url = 'https://api.devdraft.com'
|
|
40
|
-
|
|
41
|
-
# Optional: Enable debug logging
|
|
42
|
-
config.debugging = true
|
|
43
|
-
end
|
|
26
|
+
Then either install the gem locally:
|
|
27
|
+
|
|
28
|
+
```shell
|
|
29
|
+
gem install ./devdraft-1.0.0.gem
|
|
44
30
|
```
|
|
45
31
|
|
|
46
|
-
|
|
32
|
+
(for development, run `gem install --dev ./devdraft-1.0.0.gem` to install the development dependencies)
|
|
47
33
|
|
|
48
|
-
|
|
34
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
49
35
|
|
|
50
|
-
|
|
51
|
-
```ruby
|
|
52
|
-
require 'devdraft'
|
|
36
|
+
Finally add this to the Gemfile:
|
|
53
37
|
|
|
54
|
-
|
|
55
|
-
Devdraft.configure do |config|
|
|
56
|
-
# Set your authentication headers (required for authenticated endpoints)
|
|
57
|
-
config.default_headers = {
|
|
58
|
-
'x-client-key' => 'YOUR_CLIENT_KEY',
|
|
59
|
-
'x-secret-key' => 'YOUR_SECRET_KEY'
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
# Optional: Set a custom base URL if needed
|
|
63
|
-
# config.base_url = 'https://api.devdraft.com'
|
|
64
|
-
|
|
65
|
-
# Optional: Enable debug logging
|
|
66
|
-
config.debugging = true
|
|
67
|
-
end
|
|
68
|
-
```
|
|
38
|
+
gem 'devdraft', '~> 1.0.0'
|
|
69
39
|
|
|
70
|
-
|
|
40
|
+
### Install from Git
|
|
71
41
|
|
|
72
|
-
|
|
73
|
-
```ruby
|
|
74
|
-
api_instance = Devdraft::CustomersApi.new
|
|
42
|
+
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:
|
|
75
43
|
|
|
76
|
-
|
|
77
|
-
customer_data = Devdraft::CreateCustomerDto.new(
|
|
78
|
-
email: 'customer@example.com',
|
|
79
|
-
name: 'John Doe',
|
|
80
|
-
status: 'active'
|
|
81
|
-
)
|
|
44
|
+
gem 'devdraft', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
|
82
45
|
|
|
83
|
-
|
|
84
|
-
result = api_instance.customer_controller_create(customer_data)
|
|
85
|
-
puts "Customer created: #{result.inspect}"
|
|
86
|
-
rescue Devdraft::ApiError => e
|
|
87
|
-
puts "Error creating customer: #{e.response_body}"
|
|
88
|
-
end
|
|
89
|
-
```
|
|
46
|
+
### Include the Ruby code directly
|
|
90
47
|
|
|
91
|
-
|
|
92
|
-
```ruby
|
|
93
|
-
api_instance = Devdraft::PaymentLinksApi.new
|
|
94
|
-
|
|
95
|
-
# Create a payment link for a product
|
|
96
|
-
payment_link = Devdraft::CreatePaymentLinkDto.new(
|
|
97
|
-
amount: 99.99,
|
|
98
|
-
currency: 'USD',
|
|
99
|
-
description: 'Premium Subscription',
|
|
100
|
-
expires_at: (Time.now + 7.days).iso8601, # Expires in 7 days
|
|
101
|
-
products: [
|
|
102
|
-
Devdraft::PaymentLinkProductDto.new(
|
|
103
|
-
name: 'Premium Plan',
|
|
104
|
-
quantity: 1,
|
|
105
|
-
price: 99.99
|
|
106
|
-
)
|
|
107
|
-
]
|
|
108
|
-
)
|
|
48
|
+
Include the Ruby code directly using `-I` as follows:
|
|
109
49
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
puts "Payment link created: #{result.inspect}"
|
|
113
|
-
rescue Devdraft::ApiError => e
|
|
114
|
-
puts "Error creating payment link: #{e.response_body}"
|
|
115
|
-
end
|
|
50
|
+
```shell
|
|
51
|
+
ruby -Ilib script.rb
|
|
116
52
|
```
|
|
117
53
|
|
|
118
|
-
|
|
119
|
-
```ruby
|
|
120
|
-
api_instance = Devdraft::AppBalancesApi.new
|
|
54
|
+
## Getting Started
|
|
121
55
|
|
|
122
|
-
|
|
123
|
-
# Get all balances
|
|
124
|
-
balances = api_instance.balance_controller_get_all_balances
|
|
125
|
-
puts "All balances: #{balances.inspect}"
|
|
126
|
-
|
|
127
|
-
# Get specific currency balance
|
|
128
|
-
usdc_balance = api_instance.balance_controller_get_usdc_balance
|
|
129
|
-
puts "USDC balance: #{usdc_balance.inspect}"
|
|
130
|
-
rescue Devdraft::ApiError => e
|
|
131
|
-
puts "Error checking balance: #{e.response_body}"
|
|
132
|
-
end
|
|
133
|
-
```
|
|
56
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
|
134
57
|
|
|
135
|
-
#### Create a Webhook
|
|
136
58
|
```ruby
|
|
137
|
-
|
|
59
|
+
# Load the gem
|
|
60
|
+
require 'devdraft'
|
|
61
|
+
|
|
62
|
+
# Setup authorization
|
|
63
|
+
Devdraft.configure do |config|
|
|
64
|
+
# Configure API key authorization: x-client-secret
|
|
65
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
|
66
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
67
|
+
# config.api_key_prefix['x-client-secret'] = 'Bearer'
|
|
68
|
+
|
|
69
|
+
# Configure API key authorization: x-client-key
|
|
70
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
|
71
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
72
|
+
# config.api_key_prefix['x-client-key'] = 'Bearer'
|
|
73
|
+
end
|
|
138
74
|
|
|
139
|
-
|
|
140
|
-
url: 'https://your-domain.com/webhooks',
|
|
141
|
-
events: ['payment.created', 'payment.completed'],
|
|
142
|
-
description: 'Payment notifications'
|
|
143
|
-
)
|
|
75
|
+
api_instance = Devdraft::APIHealthApi.new
|
|
144
76
|
|
|
145
77
|
begin
|
|
146
|
-
|
|
147
|
-
|
|
78
|
+
#Authenticated health check endpoint
|
|
79
|
+
result = api_instance.health_controller_check_v0
|
|
80
|
+
p result
|
|
148
81
|
rescue Devdraft::ApiError => e
|
|
149
|
-
puts "
|
|
82
|
+
puts "Exception when calling APIHealthApi->health_controller_check_v0: #{e}"
|
|
150
83
|
end
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
### Available APIs
|
|
154
|
-
|
|
155
|
-
The SDK provides access to the following APIs:
|
|
156
|
-
|
|
157
|
-
- `APIHealthApi`: Health check endpoints
|
|
158
|
-
- `AppBalancesApi`: Balance management
|
|
159
|
-
- `CustomersApi`: Customer management
|
|
160
|
-
- `ExchangeRatesApi`: Exchange rate information
|
|
161
|
-
- `InvoicesApi`: Invoice management
|
|
162
|
-
- `LiquidationAddressesApi`: Liquidation address management
|
|
163
|
-
- `PaymentIntentsApi`: Payment intent management
|
|
164
|
-
- `PaymentLinksApi`: Payment link management
|
|
165
|
-
- `ProductsApi`: Product management
|
|
166
|
-
- `TaxesApi`: Tax management
|
|
167
|
-
- `TestPaymentsApi`: Test payment endpoints
|
|
168
|
-
- `TransfersApi`: Transfer management
|
|
169
|
-
- `WalletsApi`: Wallet management
|
|
170
|
-
- `WebhooksApi`: Webhook management
|
|
171
84
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests.
|
|
175
|
-
|
|
176
|
-
## Contributing
|
|
177
|
-
|
|
178
|
-
Bug reports and pull requests are welcome on GitHub.
|
|
179
|
-
|
|
180
|
-
## License
|
|
181
|
-
|
|
182
|
-
The gem is available as open source under the terms of the [Unlicense](http://unlicense.org/).
|
|
85
|
+
```
|
|
183
86
|
|
|
184
87
|
## Documentation for API Endpoints
|
|
185
88
|
|
|
@@ -187,125 +90,124 @@ All URIs are relative to *https://api.devdraft.ai*
|
|
|
187
90
|
|
|
188
91
|
Class | Method | HTTP request | Description
|
|
189
92
|
------------ | ------------- | ------------- | -------------
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
*
|
|
204
|
-
*
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
*
|
|
93
|
+
*Devdraft::APIHealthApi* | [**health_controller_check_v0**](docs/APIHealthApi.md#health_controller_check_v0) | **GET** /api/v0/health | Authenticated health check endpoint
|
|
94
|
+
*Devdraft::APIHealthApi* | [**health_controller_public_health_check_v0**](docs/APIHealthApi.md#health_controller_public_health_check_v0) | **GET** /api/v0/health/public | Public health check endpoint
|
|
95
|
+
*Devdraft::AppBalancesApi* | [**balance_controller_get_all_balances**](docs/AppBalancesApi.md#balance_controller_get_all_balances) | **GET** /api/v0/balance | Get all stablecoin balances for an app
|
|
96
|
+
*Devdraft::AppBalancesApi* | [**balance_controller_get_eurc_balance**](docs/AppBalancesApi.md#balance_controller_get_eurc_balance) | **GET** /api/v0/balance/eurc | Get EURC balance for an app
|
|
97
|
+
*Devdraft::AppBalancesApi* | [**balance_controller_get_usdc_balance**](docs/AppBalancesApi.md#balance_controller_get_usdc_balance) | **GET** /api/v0/balance/usdc | Get USDC balance for an app
|
|
98
|
+
*Devdraft::CustomersApi* | [**customer_controller_create**](docs/CustomersApi.md#customer_controller_create) | **POST** /api/v0/customers | Create a new customer
|
|
99
|
+
*Devdraft::CustomersApi* | [**customer_controller_find_all**](docs/CustomersApi.md#customer_controller_find_all) | **GET** /api/v0/customers | Get all customers with filters
|
|
100
|
+
*Devdraft::CustomersApi* | [**customer_controller_find_one**](docs/CustomersApi.md#customer_controller_find_one) | **GET** /api/v0/customers/{id} | Get a customer by ID
|
|
101
|
+
*Devdraft::CustomersApi* | [**customer_controller_update**](docs/CustomersApi.md#customer_controller_update) | **PATCH** /api/v0/customers/{id} | Update a customer
|
|
102
|
+
*Devdraft::ExchangeRatesApi* | [**exchange_rate_controller_get_eurto_usd_rate**](docs/ExchangeRatesApi.md#exchange_rate_controller_get_eurto_usd_rate) | **GET** /api/v0/exchange-rate/eur-to-usd | Get EUR to USD exchange rate
|
|
103
|
+
*Devdraft::ExchangeRatesApi* | [**exchange_rate_controller_get_exchange_rate**](docs/ExchangeRatesApi.md#exchange_rate_controller_get_exchange_rate) | **GET** /api/v0/exchange-rate | Get exchange rate between specified currencies
|
|
104
|
+
*Devdraft::ExchangeRatesApi* | [**exchange_rate_controller_get_usdto_eur_rate**](docs/ExchangeRatesApi.md#exchange_rate_controller_get_usdto_eur_rate) | **GET** /api/v0/exchange-rate/usd-to-eur | Get USD to EUR exchange rate
|
|
105
|
+
*Devdraft::InvoicesApi* | [**invoice_controller_create**](docs/InvoicesApi.md#invoice_controller_create) | **POST** /api/v0/invoices | Create a new invoice
|
|
106
|
+
*Devdraft::InvoicesApi* | [**invoice_controller_find_all**](docs/InvoicesApi.md#invoice_controller_find_all) | **GET** /api/v0/invoices | Get all invoices
|
|
107
|
+
*Devdraft::InvoicesApi* | [**invoice_controller_find_one**](docs/InvoicesApi.md#invoice_controller_find_one) | **GET** /api/v0/invoices/{id} | Get an invoice by ID
|
|
108
|
+
*Devdraft::InvoicesApi* | [**invoice_controller_update**](docs/InvoicesApi.md#invoice_controller_update) | **PUT** /api/v0/invoices/{id} | Update an invoice
|
|
109
|
+
*Devdraft::LiquidationAddressesApi* | [**liquidation_address_controller_create_liquidation_address**](docs/LiquidationAddressesApi.md#liquidation_address_controller_create_liquidation_address) | **POST** /api/v0/customers/{customerId}/liquidation_addresses | Create a new liquidation address for a customer
|
|
110
|
+
*Devdraft::LiquidationAddressesApi* | [**liquidation_address_controller_get_liquidation_address**](docs/LiquidationAddressesApi.md#liquidation_address_controller_get_liquidation_address) | **GET** /api/v0/customers/{customerId}/liquidation_addresses/{liquidationAddressId} | Get a specific liquidation address
|
|
111
|
+
*Devdraft::LiquidationAddressesApi* | [**liquidation_address_controller_get_liquidation_addresses**](docs/LiquidationAddressesApi.md#liquidation_address_controller_get_liquidation_addresses) | **GET** /api/v0/customers/{customerId}/liquidation_addresses | Get all liquidation addresses for a customer
|
|
112
|
+
*Devdraft::PaymentIntentsApi* | [**payment_intent_controller_create_bank_payment_intent**](docs/PaymentIntentsApi.md#payment_intent_controller_create_bank_payment_intent) | **POST** /api/v0/payment-intents/bank | Create a bank payment intent
|
|
113
|
+
*Devdraft::PaymentIntentsApi* | [**payment_intent_controller_create_stable_payment_intent**](docs/PaymentIntentsApi.md#payment_intent_controller_create_stable_payment_intent) | **POST** /api/v0/payment-intents/stablecoin | Create a stable payment intent
|
|
114
|
+
*Devdraft::PaymentLinksApi* | [**payment_links_controller_create**](docs/PaymentLinksApi.md#payment_links_controller_create) | **POST** /api/v0/payment-links | Create a new payment link
|
|
115
|
+
*Devdraft::PaymentLinksApi* | [**payment_links_controller_find_all**](docs/PaymentLinksApi.md#payment_links_controller_find_all) | **GET** /api/v0/payment-links | Get all payment links
|
|
116
|
+
*Devdraft::PaymentLinksApi* | [**payment_links_controller_find_one**](docs/PaymentLinksApi.md#payment_links_controller_find_one) | **GET** /api/v0/payment-links/{id} | Get a payment link by ID
|
|
117
|
+
*Devdraft::PaymentLinksApi* | [**payment_links_controller_update**](docs/PaymentLinksApi.md#payment_links_controller_update) | **PUT** /api/v0/payment-links/{id} | Update a payment link
|
|
118
|
+
*Devdraft::ProductsApi* | [**product_controller_create**](docs/ProductsApi.md#product_controller_create) | **POST** /api/v0/products | Create a new product
|
|
119
|
+
*Devdraft::ProductsApi* | [**product_controller_find_all**](docs/ProductsApi.md#product_controller_find_all) | **GET** /api/v0/products | Get all products
|
|
120
|
+
*Devdraft::ProductsApi* | [**product_controller_find_one**](docs/ProductsApi.md#product_controller_find_one) | **GET** /api/v0/products/{id} | Get a product by ID
|
|
121
|
+
*Devdraft::ProductsApi* | [**product_controller_remove**](docs/ProductsApi.md#product_controller_remove) | **DELETE** /api/v0/products/{id} | Delete a product
|
|
122
|
+
*Devdraft::ProductsApi* | [**product_controller_update**](docs/ProductsApi.md#product_controller_update) | **PUT** /api/v0/products/{id} | Update a product
|
|
123
|
+
*Devdraft::ProductsApi* | [**product_controller_upload_image**](docs/ProductsApi.md#product_controller_upload_image) | **POST** /api/v0/products/{id}/images | Upload images for a product
|
|
124
|
+
*Devdraft::TaxesApi* | [**tax_controller_create**](docs/TaxesApi.md#tax_controller_create) | **POST** /api/v0/taxes | Create a new tax
|
|
125
|
+
*Devdraft::TaxesApi* | [**tax_controller_delete_without_id**](docs/TaxesApi.md#tax_controller_delete_without_id) | **DELETE** /api/v0/taxes | Tax ID required for deletion
|
|
126
|
+
*Devdraft::TaxesApi* | [**tax_controller_find_all**](docs/TaxesApi.md#tax_controller_find_all) | **GET** /api/v0/taxes | Get all taxes with filters
|
|
127
|
+
*Devdraft::TaxesApi* | [**tax_controller_find_one**](docs/TaxesApi.md#tax_controller_find_one) | **GET** /api/v0/taxes/{id} | Get a tax by ID
|
|
128
|
+
*Devdraft::TaxesApi* | [**tax_controller_remove**](docs/TaxesApi.md#tax_controller_remove) | **DELETE** /api/v0/taxes/{id} | Delete a tax
|
|
129
|
+
*Devdraft::TaxesApi* | [**tax_controller_update**](docs/TaxesApi.md#tax_controller_update) | **PUT** /api/v0/taxes/{id} | Update a tax
|
|
130
|
+
*Devdraft::TaxesApi* | [**tax_controller_update_without_id**](docs/TaxesApi.md#tax_controller_update_without_id) | **PUT** /api/v0/taxes | Tax ID required for updates
|
|
131
|
+
*Devdraft::TestPaymentsApi* | [**test_payment_controller_create_payment_v0**](docs/TestPaymentsApi.md#test_payment_controller_create_payment_v0) | **POST** /api/v0/test-payment | Process a test payment
|
|
132
|
+
*Devdraft::TestPaymentsApi* | [**test_payment_controller_get_payment_v0**](docs/TestPaymentsApi.md#test_payment_controller_get_payment_v0) | **GET** /api/v0/test-payment/{id} | Get payment details by ID
|
|
133
|
+
*Devdraft::TestPaymentsApi* | [**test_payment_controller_refund_payment_v0**](docs/TestPaymentsApi.md#test_payment_controller_refund_payment_v0) | **POST** /api/v0/test-payment/{id}/refund | Refund a payment
|
|
134
|
+
*Devdraft::TransfersApi* | [**transfer_controller_create_direct_bank_transfer**](docs/TransfersApi.md#transfer_controller_create_direct_bank_transfer) | **POST** /api/v0/transfers/direct-bank | Create a direct bank transfer
|
|
135
|
+
*Devdraft::TransfersApi* | [**transfer_controller_create_direct_wallet_transfer**](docs/TransfersApi.md#transfer_controller_create_direct_wallet_transfer) | **POST** /api/v0/transfers/direct-wallet | Create a direct wallet transfer
|
|
136
|
+
*Devdraft::TransfersApi* | [**transfer_controller_create_external_bank_transfer**](docs/TransfersApi.md#transfer_controller_create_external_bank_transfer) | **POST** /api/v0/transfers/external-bank-transfer | Create an external bank transfer
|
|
137
|
+
*Devdraft::TransfersApi* | [**transfer_controller_create_external_stablecoin_transfer**](docs/TransfersApi.md#transfer_controller_create_external_stablecoin_transfer) | **POST** /api/v0/transfers/external-stablecoin-transfer | Create an external stablecoin transfer
|
|
138
|
+
*Devdraft::TransfersApi* | [**transfer_controller_create_stablecoin_conversion**](docs/TransfersApi.md#transfer_controller_create_stablecoin_conversion) | **POST** /api/v0/transfers/stablecoin-conversion | Create a stablecoin conversion
|
|
139
|
+
*Devdraft::WalletsApi* | [**wallet_controller_get_wallets**](docs/WalletsApi.md#wallet_controller_get_wallets) | **GET** /api/v0/wallets | Get wallets for an app
|
|
140
|
+
*Devdraft::WebhooksApi* | [**webhook_controller_create**](docs/WebhooksApi.md#webhook_controller_create) | **POST** /api/v0/webhooks | Create a new webhook
|
|
141
|
+
*Devdraft::WebhooksApi* | [**webhook_controller_find_all**](docs/WebhooksApi.md#webhook_controller_find_all) | **GET** /api/v0/webhooks | Get all webhooks
|
|
142
|
+
*Devdraft::WebhooksApi* | [**webhook_controller_find_one**](docs/WebhooksApi.md#webhook_controller_find_one) | **GET** /api/v0/webhooks/{id} | Get a webhook by id
|
|
143
|
+
*Devdraft::WebhooksApi* | [**webhook_controller_remove**](docs/WebhooksApi.md#webhook_controller_remove) | **DELETE** /api/v0/webhooks/{id} | Delete a webhook
|
|
144
|
+
*Devdraft::WebhooksApi* | [**webhook_controller_update**](docs/WebhooksApi.md#webhook_controller_update) | **PATCH** /api/v0/webhooks/{id} | Update a webhook
|
|
145
|
+
|
|
238
146
|
|
|
239
147
|
## Documentation for Models
|
|
240
148
|
|
|
241
|
-
- [
|
|
242
|
-
- [
|
|
243
|
-
- [
|
|
244
|
-
- [
|
|
245
|
-
- [
|
|
246
|
-
- [
|
|
247
|
-
- [
|
|
248
|
-
- [
|
|
249
|
-
- [
|
|
250
|
-
- [
|
|
251
|
-
- [
|
|
252
|
-
- [
|
|
253
|
-
- [
|
|
254
|
-
- [
|
|
255
|
-
- [
|
|
256
|
-
- [
|
|
257
|
-
- [
|
|
258
|
-
- [
|
|
259
|
-
- [
|
|
260
|
-
- [
|
|
261
|
-
- [
|
|
262
|
-
- [
|
|
263
|
-
- [
|
|
264
|
-
- [
|
|
265
|
-
- [
|
|
266
|
-
- [
|
|
267
|
-
- [
|
|
268
|
-
- [
|
|
269
|
-
- [
|
|
270
|
-
- [
|
|
271
|
-
- [
|
|
272
|
-
- [
|
|
273
|
-
- [
|
|
274
|
-
- [
|
|
275
|
-
- [
|
|
276
|
-
- [
|
|
277
|
-
- [
|
|
278
|
-
- [
|
|
279
|
-
- [DevDraftAI::PaymentResponseDto](docs/PaymentResponseDto.md)
|
|
280
|
-
- [DevDraftAI::PublicHealthResponseDto](docs/PublicHealthResponseDto.md)
|
|
281
|
-
- [DevDraftAI::RefundResponseDto](docs/RefundResponseDto.md)
|
|
282
|
-
- [DevDraftAI::StableCoinCurrency](docs/StableCoinCurrency.md)
|
|
283
|
-
- [DevDraftAI::UpdateCustomerDto](docs/UpdateCustomerDto.md)
|
|
284
|
-
- [DevDraftAI::UpdatePaymentLinkDto](docs/UpdatePaymentLinkDto.md)
|
|
285
|
-
- [DevDraftAI::UpdatePreferenceInput](docs/UpdatePreferenceInput.md)
|
|
286
|
-
- [DevDraftAI::UpdateProductDto](docs/UpdateProductDto.md)
|
|
287
|
-
- [DevDraftAI::UpdateTaxInput](docs/UpdateTaxInput.md)
|
|
288
|
-
- [DevDraftAI::UpdateWebhookDto](docs/UpdateWebhookDto.md)
|
|
289
|
-
- [DevDraftAI::WebhookResponseDto](docs/WebhookResponseDto.md)
|
|
149
|
+
- [Devdraft::AggregatedBalanceResponse](docs/AggregatedBalanceResponse.md)
|
|
150
|
+
- [Devdraft::AllBalancesResponse](docs/AllBalancesResponse.md)
|
|
151
|
+
- [Devdraft::BridgeFiatPaymentRail](docs/BridgeFiatPaymentRail.md)
|
|
152
|
+
- [Devdraft::BridgePaymentRail](docs/BridgePaymentRail.md)
|
|
153
|
+
- [Devdraft::CreateBankPaymentIntentDto](docs/CreateBankPaymentIntentDto.md)
|
|
154
|
+
- [Devdraft::CreateCustomerDto](docs/CreateCustomerDto.md)
|
|
155
|
+
- [Devdraft::CreateDirectBankTransferDto](docs/CreateDirectBankTransferDto.md)
|
|
156
|
+
- [Devdraft::CreateDirectWalletTransferDto](docs/CreateDirectWalletTransferDto.md)
|
|
157
|
+
- [Devdraft::CreateExternalBankTransferDto](docs/CreateExternalBankTransferDto.md)
|
|
158
|
+
- [Devdraft::CreateExternalStablecoinTransferDto](docs/CreateExternalStablecoinTransferDto.md)
|
|
159
|
+
- [Devdraft::CreateInvoiceDto](docs/CreateInvoiceDto.md)
|
|
160
|
+
- [Devdraft::CreateLiquidationAddressDto](docs/CreateLiquidationAddressDto.md)
|
|
161
|
+
- [Devdraft::CreatePaymentLinkDto](docs/CreatePaymentLinkDto.md)
|
|
162
|
+
- [Devdraft::CreateStablePaymentIntentDto](docs/CreateStablePaymentIntentDto.md)
|
|
163
|
+
- [Devdraft::CreateStablecoinConversionDto](docs/CreateStablecoinConversionDto.md)
|
|
164
|
+
- [Devdraft::CreateTaxDto](docs/CreateTaxDto.md)
|
|
165
|
+
- [Devdraft::CreateWebhookDto](docs/CreateWebhookDto.md)
|
|
166
|
+
- [Devdraft::CustomerStatus](docs/CustomerStatus.md)
|
|
167
|
+
- [Devdraft::CustomerType](docs/CustomerType.md)
|
|
168
|
+
- [Devdraft::DestinationCurrency](docs/DestinationCurrency.md)
|
|
169
|
+
- [Devdraft::ExchangeRateResponseDto](docs/ExchangeRateResponseDto.md)
|
|
170
|
+
- [Devdraft::FiatCurrency](docs/FiatCurrency.md)
|
|
171
|
+
- [Devdraft::HealthResponseDto](docs/HealthResponseDto.md)
|
|
172
|
+
- [Devdraft::InvoiceProductDto](docs/InvoiceProductDto.md)
|
|
173
|
+
- [Devdraft::LiquidationAddressResponseDto](docs/LiquidationAddressResponseDto.md)
|
|
174
|
+
- [Devdraft::PaymentLinkProductDto](docs/PaymentLinkProductDto.md)
|
|
175
|
+
- [Devdraft::PaymentRequestDto](docs/PaymentRequestDto.md)
|
|
176
|
+
- [Devdraft::PaymentResponseDto](docs/PaymentResponseDto.md)
|
|
177
|
+
- [Devdraft::PublicHealthResponseDto](docs/PublicHealthResponseDto.md)
|
|
178
|
+
- [Devdraft::RefundResponseDto](docs/RefundResponseDto.md)
|
|
179
|
+
- [Devdraft::StableCoinCurrency](docs/StableCoinCurrency.md)
|
|
180
|
+
- [Devdraft::TaxControllerCreate201Response](docs/TaxControllerCreate201Response.md)
|
|
181
|
+
- [Devdraft::TaxControllerDeleteWithoutId400Response](docs/TaxControllerDeleteWithoutId400Response.md)
|
|
182
|
+
- [Devdraft::TaxControllerUpdateWithoutId400Response](docs/TaxControllerUpdateWithoutId400Response.md)
|
|
183
|
+
- [Devdraft::UpdateCustomerDto](docs/UpdateCustomerDto.md)
|
|
184
|
+
- [Devdraft::UpdateTaxDto](docs/UpdateTaxDto.md)
|
|
185
|
+
- [Devdraft::UpdateWebhookDto](docs/UpdateWebhookDto.md)
|
|
186
|
+
- [Devdraft::WebhookResponseDto](docs/WebhookResponseDto.md)
|
|
290
187
|
|
|
291
|
-
## Documentation for Authorization
|
|
292
188
|
|
|
189
|
+
## Documentation for Authorization
|
|
293
190
|
|
|
294
|
-
### idempotency-key
|
|
295
|
-
|
|
296
|
-
- **Type**: API key
|
|
297
|
-
- **API key parameter name**: idempotency-key
|
|
298
|
-
- **Location**: HTTP header
|
|
299
191
|
|
|
192
|
+
Authentication schemes defined for the API:
|
|
300
193
|
### x-client-key
|
|
301
194
|
|
|
195
|
+
|
|
302
196
|
- **Type**: API key
|
|
303
197
|
- **API key parameter name**: x-client-key
|
|
304
198
|
- **Location**: HTTP header
|
|
305
199
|
|
|
306
200
|
### x-client-secret
|
|
307
201
|
|
|
202
|
+
|
|
308
203
|
- **Type**: API key
|
|
309
204
|
- **API key parameter name**: x-client-secret
|
|
310
205
|
- **Location**: HTTP header
|
|
311
206
|
|
|
207
|
+
### idempotency-key
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
- **Type**: API key
|
|
211
|
+
- **API key parameter name**: idempotency-key
|
|
212
|
+
- **Location**: HTTP header
|
|
213
|
+
|
data/Rakefile
CHANGED
data/devdraft-1.0.0.gem
ADDED
|
Binary file
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
2
|
|
|
3
3
|
=begin
|
|
4
|
-
#Devdraft Payment & Business Management API
|
|
4
|
+
#Devdraft AI Payment & Business Management API
|
|
5
5
|
|
|
6
6
|
# A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
|
|
7
7
|
|
|
8
|
-
OpenAPI
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
|
|
10
|
+
Generated by: https://openapi-generator.tech
|
|
11
|
+
Generator version: 7.17.0
|
|
9
12
|
|
|
10
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
-
Swagger Codegen version: 3.0.65
|
|
12
13
|
=end
|
|
13
14
|
|
|
14
15
|
$:.push File.expand_path("../lib", __FILE__)
|
|
@@ -18,20 +19,23 @@ Gem::Specification.new do |s|
|
|
|
18
19
|
s.name = "devdraft"
|
|
19
20
|
s.version = Devdraft::VERSION
|
|
20
21
|
s.platform = Gem::Platform::RUBY
|
|
21
|
-
s.authors = ["Devdraft
|
|
22
|
-
s.email = ["
|
|
23
|
-
s.homepage = "https://github.com/devdraftengineer/
|
|
24
|
-
s.summary = "Devdraft Payment & Business Management API Ruby Gem"
|
|
22
|
+
s.authors = ["Devdraft"]
|
|
23
|
+
s.email = ["support@devdraft.com"]
|
|
24
|
+
s.homepage = "https://github.com/devdraftengineer/ruby"
|
|
25
|
+
s.summary = "Devdraft AI Payment & Business Management API Ruby Gem"
|
|
25
26
|
s.description = " A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods. "
|
|
26
27
|
s.license = "Unlicense"
|
|
27
|
-
s.required_ruby_version = ">=
|
|
28
|
+
s.required_ruby_version = ">= 2.7"
|
|
29
|
+
s.metadata = {
|
|
30
|
+
"source_code_uri" => "https://github.com/devdraftengineer/ruby",
|
|
31
|
+
"homepage_uri" => "https://github.com/devdraftengineer/ruby"
|
|
32
|
+
}
|
|
28
33
|
|
|
29
34
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
|
30
|
-
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
|
31
35
|
|
|
32
36
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
|
33
37
|
|
|
34
|
-
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty?
|
|
38
|
+
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
|
|
35
39
|
s.test_files = `find spec/*`.split("\n")
|
|
36
40
|
s.executables = []
|
|
37
41
|
s.require_paths = ["lib"]
|