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/README.md
ADDED
@@ -0,0 +1,1246 @@
|
|
1
|
+
# devdraft_ai_sdk
|
2
|
+
|
3
|
+
DevDraftAI - the Ruby gem for the Devdraft AI Payment & Business Management API
|
4
|
+
|
5
|
+
A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
|
6
|
+
|
7
|
+
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
|
+
|
9
|
+
- API version: 1.0.0
|
10
|
+
- Package version: 1.0.0
|
11
|
+
- Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
### Build a gem
|
16
|
+
|
17
|
+
To build the Ruby code into a gem:
|
18
|
+
|
19
|
+
```shell
|
20
|
+
gem build devdraft_ai_sdk.gemspec
|
21
|
+
```
|
22
|
+
|
23
|
+
Then either install the gem locally:
|
24
|
+
|
25
|
+
```shell
|
26
|
+
gem install ./devdraft_ai_sdk-1.0.0.gem
|
27
|
+
```
|
28
|
+
(for development, run `gem install --dev ./devdraft_ai_sdk-1.0.0.gem` to install the development dependencies)
|
29
|
+
|
30
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
|
+
|
32
|
+
Finally add this to the Gemfile:
|
33
|
+
|
34
|
+
gem 'devdraft_ai_sdk', '~> 1.0.0'
|
35
|
+
|
36
|
+
### Install from Git
|
37
|
+
|
38
|
+
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:
|
39
|
+
|
40
|
+
gem 'devdraft_ai_sdk', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
41
|
+
|
42
|
+
### Include the Ruby code directly
|
43
|
+
|
44
|
+
Include the Ruby code directly using `-I` as follows:
|
45
|
+
|
46
|
+
```shell
|
47
|
+
ruby -Ilib script.rb
|
48
|
+
```
|
49
|
+
|
50
|
+
## Getting Started
|
51
|
+
|
52
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
53
|
+
```ruby
|
54
|
+
# Load the gem
|
55
|
+
require 'devdraft_ai_sdk'
|
56
|
+
|
57
|
+
api_instance = DevDraftAI::APIHealthApi.new
|
58
|
+
|
59
|
+
begin
|
60
|
+
#Authenticated health check endpoint
|
61
|
+
result = api_instance.health_controller_check_v0
|
62
|
+
p result
|
63
|
+
rescue DevDraftAI::ApiError => e
|
64
|
+
puts "Exception when calling APIHealthApi->health_controller_check_v0: #{e}"
|
65
|
+
end
|
66
|
+
|
67
|
+
api_instance = DevDraftAI::APIHealthApi.new
|
68
|
+
|
69
|
+
begin
|
70
|
+
#Public health check endpoint
|
71
|
+
result = api_instance.health_controller_public_health_check_v0
|
72
|
+
p result
|
73
|
+
rescue DevDraftAI::ApiError => e
|
74
|
+
puts "Exception when calling APIHealthApi->health_controller_public_health_check_v0: #{e}"
|
75
|
+
end
|
76
|
+
# Setup authorization
|
77
|
+
DevDraftAI.configure do |config|
|
78
|
+
# Configure API key authorization: x-client-key
|
79
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
80
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
81
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
82
|
+
|
83
|
+
# Configure API key authorization: x-client-secret
|
84
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
85
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
86
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
87
|
+
end
|
88
|
+
|
89
|
+
api_instance = DevDraftAI::AppBalancesApi.new
|
90
|
+
|
91
|
+
begin
|
92
|
+
#Get all stablecoin balances for an app
|
93
|
+
result = api_instance.balance_controller_get_all_balances
|
94
|
+
p result
|
95
|
+
rescue DevDraftAI::ApiError => e
|
96
|
+
puts "Exception when calling AppBalancesApi->balance_controller_get_all_balances: #{e}"
|
97
|
+
end
|
98
|
+
# Setup authorization
|
99
|
+
DevDraftAI.configure do |config|
|
100
|
+
# Configure API key authorization: x-client-key
|
101
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
102
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
103
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
104
|
+
|
105
|
+
# Configure API key authorization: x-client-secret
|
106
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
107
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
108
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
109
|
+
end
|
110
|
+
|
111
|
+
api_instance = DevDraftAI::AppBalancesApi.new
|
112
|
+
|
113
|
+
begin
|
114
|
+
#Get EURC balance for an app
|
115
|
+
result = api_instance.balance_controller_get_eurc_balance
|
116
|
+
p result
|
117
|
+
rescue DevDraftAI::ApiError => e
|
118
|
+
puts "Exception when calling AppBalancesApi->balance_controller_get_eurc_balance: #{e}"
|
119
|
+
end
|
120
|
+
# Setup authorization
|
121
|
+
DevDraftAI.configure do |config|
|
122
|
+
# Configure API key authorization: x-client-key
|
123
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
124
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
125
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
126
|
+
|
127
|
+
# Configure API key authorization: x-client-secret
|
128
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
129
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
130
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
131
|
+
end
|
132
|
+
|
133
|
+
api_instance = DevDraftAI::AppBalancesApi.new
|
134
|
+
|
135
|
+
begin
|
136
|
+
#Get USDC balance for an app
|
137
|
+
result = api_instance.balance_controller_get_usdc_balance
|
138
|
+
p result
|
139
|
+
rescue DevDraftAI::ApiError => e
|
140
|
+
puts "Exception when calling AppBalancesApi->balance_controller_get_usdc_balance: #{e}"
|
141
|
+
end
|
142
|
+
# Setup authorization
|
143
|
+
DevDraftAI.configure do |config|
|
144
|
+
# Configure API key authorization: x-client-key
|
145
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
146
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
147
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
148
|
+
|
149
|
+
# Configure API key authorization: x-client-secret
|
150
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
151
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
152
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
153
|
+
end
|
154
|
+
|
155
|
+
api_instance = DevDraftAI::CustomersApi.new
|
156
|
+
body = DevDraftAI::CreateCustomerDto.new # CreateCustomerDto | Customer creation data
|
157
|
+
|
158
|
+
|
159
|
+
begin
|
160
|
+
#Create a new customer
|
161
|
+
api_instance.customer_controller_create(body)
|
162
|
+
rescue DevDraftAI::ApiError => e
|
163
|
+
puts "Exception when calling CustomersApi->customer_controller_create: #{e}"
|
164
|
+
end
|
165
|
+
# Setup authorization
|
166
|
+
DevDraftAI.configure do |config|
|
167
|
+
# Configure API key authorization: x-client-key
|
168
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
169
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
170
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
171
|
+
|
172
|
+
# Configure API key authorization: x-client-secret
|
173
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
174
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
175
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
176
|
+
end
|
177
|
+
|
178
|
+
api_instance = DevDraftAI::CustomersApi.new
|
179
|
+
opts = {
|
180
|
+
status: 'status_example', # String | Filter by customer status
|
181
|
+
name: 'name_example', # String | Filter by customer name
|
182
|
+
email: 'email_example', # String | Filter by customer email
|
183
|
+
take: DevDraftAI::BigDecimal.new, # BigDecimal | Number of records to take
|
184
|
+
skip: DevDraftAI::BigDecimal.new # BigDecimal | Number of records to skip
|
185
|
+
}
|
186
|
+
|
187
|
+
begin
|
188
|
+
#Get all customers with filters
|
189
|
+
api_instance.customer_controller_find_all(opts)
|
190
|
+
rescue DevDraftAI::ApiError => e
|
191
|
+
puts "Exception when calling CustomersApi->customer_controller_find_all: #{e}"
|
192
|
+
end
|
193
|
+
# Setup authorization
|
194
|
+
DevDraftAI.configure do |config|
|
195
|
+
# Configure API key authorization: x-client-key
|
196
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
197
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
198
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
199
|
+
|
200
|
+
# Configure API key authorization: x-client-secret
|
201
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
202
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
203
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
204
|
+
end
|
205
|
+
|
206
|
+
api_instance = DevDraftAI::CustomersApi.new
|
207
|
+
id = 'id_example' # String |
|
208
|
+
|
209
|
+
|
210
|
+
begin
|
211
|
+
#Get a customer by ID
|
212
|
+
api_instance.customer_controller_find_one(id)
|
213
|
+
rescue DevDraftAI::ApiError => e
|
214
|
+
puts "Exception when calling CustomersApi->customer_controller_find_one: #{e}"
|
215
|
+
end
|
216
|
+
# Setup authorization
|
217
|
+
DevDraftAI.configure do |config|
|
218
|
+
# Configure API key authorization: x-client-key
|
219
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
220
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
221
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
222
|
+
|
223
|
+
# Configure API key authorization: x-client-secret
|
224
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
225
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
226
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
227
|
+
end
|
228
|
+
|
229
|
+
api_instance = DevDraftAI::CustomersApi.new
|
230
|
+
body = DevDraftAI::UpdateCustomerDto.new # UpdateCustomerDto | Customer update data
|
231
|
+
id = 'id_example' # String |
|
232
|
+
|
233
|
+
|
234
|
+
begin
|
235
|
+
#Update a customer
|
236
|
+
api_instance.customer_controller_update(body, id)
|
237
|
+
rescue DevDraftAI::ApiError => e
|
238
|
+
puts "Exception when calling CustomersApi->customer_controller_update: #{e}"
|
239
|
+
end
|
240
|
+
# Setup authorization
|
241
|
+
DevDraftAI.configure do |config|
|
242
|
+
# Configure API key authorization: x-client-key
|
243
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
244
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
245
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
246
|
+
|
247
|
+
# Configure API key authorization: x-client-secret
|
248
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
249
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
250
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
251
|
+
end
|
252
|
+
|
253
|
+
api_instance = DevDraftAI::ExchangeRatesApi.new
|
254
|
+
|
255
|
+
begin
|
256
|
+
#Get EUR to USD exchange rate
|
257
|
+
result = api_instance.exchange_rate_controller_get_eurto_usd_rate
|
258
|
+
p result
|
259
|
+
rescue DevDraftAI::ApiError => e
|
260
|
+
puts "Exception when calling ExchangeRatesApi->exchange_rate_controller_get_eurto_usd_rate: #{e}"
|
261
|
+
end
|
262
|
+
# Setup authorization
|
263
|
+
DevDraftAI.configure do |config|
|
264
|
+
# Configure API key authorization: x-client-key
|
265
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
266
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
267
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
268
|
+
|
269
|
+
# Configure API key authorization: x-client-secret
|
270
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
271
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
272
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
273
|
+
end
|
274
|
+
|
275
|
+
api_instance = DevDraftAI::ExchangeRatesApi.new
|
276
|
+
from = 'from_example' # String | Source currency code (e.g., usd)
|
277
|
+
to = 'to_example' # String | Target currency code (e.g., eur)
|
278
|
+
|
279
|
+
|
280
|
+
begin
|
281
|
+
#Get exchange rate between specified currencies
|
282
|
+
result = api_instance.exchange_rate_controller_get_exchange_rate(from, to)
|
283
|
+
p result
|
284
|
+
rescue DevDraftAI::ApiError => e
|
285
|
+
puts "Exception when calling ExchangeRatesApi->exchange_rate_controller_get_exchange_rate: #{e}"
|
286
|
+
end
|
287
|
+
# Setup authorization
|
288
|
+
DevDraftAI.configure do |config|
|
289
|
+
# Configure API key authorization: x-client-key
|
290
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
291
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
292
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
293
|
+
|
294
|
+
# Configure API key authorization: x-client-secret
|
295
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
296
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
297
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
298
|
+
end
|
299
|
+
|
300
|
+
api_instance = DevDraftAI::ExchangeRatesApi.new
|
301
|
+
|
302
|
+
begin
|
303
|
+
#Get USD to EUR exchange rate
|
304
|
+
result = api_instance.exchange_rate_controller_get_usdto_eur_rate
|
305
|
+
p result
|
306
|
+
rescue DevDraftAI::ApiError => e
|
307
|
+
puts "Exception when calling ExchangeRatesApi->exchange_rate_controller_get_usdto_eur_rate: #{e}"
|
308
|
+
end
|
309
|
+
# Setup authorization
|
310
|
+
DevDraftAI.configure do |config|
|
311
|
+
# Configure API key authorization: x-client-key
|
312
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
313
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
314
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
315
|
+
|
316
|
+
# Configure API key authorization: x-client-secret
|
317
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
318
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
319
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
320
|
+
end
|
321
|
+
|
322
|
+
api_instance = DevDraftAI::InvoicesApi.new
|
323
|
+
body = DevDraftAI::CreateInvoiceDto.new # CreateInvoiceDto |
|
324
|
+
|
325
|
+
|
326
|
+
begin
|
327
|
+
#Create a new invoice
|
328
|
+
api_instance.invoice_controller_create(body)
|
329
|
+
rescue DevDraftAI::ApiError => e
|
330
|
+
puts "Exception when calling InvoicesApi->invoice_controller_create: #{e}"
|
331
|
+
end
|
332
|
+
# Setup authorization
|
333
|
+
DevDraftAI.configure do |config|
|
334
|
+
# Configure API key authorization: x-client-key
|
335
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
336
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
337
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
338
|
+
|
339
|
+
# Configure API key authorization: x-client-secret
|
340
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
341
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
342
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
343
|
+
end
|
344
|
+
|
345
|
+
api_instance = DevDraftAI::InvoicesApi.new
|
346
|
+
opts = {
|
347
|
+
skip: DevDraftAI::BigDecimal.new, # BigDecimal | Number of records to skip
|
348
|
+
take: DevDraftAI::BigDecimal.new # BigDecimal | Number of records to take
|
349
|
+
}
|
350
|
+
|
351
|
+
begin
|
352
|
+
#Get all invoices
|
353
|
+
api_instance.invoice_controller_find_all(opts)
|
354
|
+
rescue DevDraftAI::ApiError => e
|
355
|
+
puts "Exception when calling InvoicesApi->invoice_controller_find_all: #{e}"
|
356
|
+
end
|
357
|
+
# Setup authorization
|
358
|
+
DevDraftAI.configure do |config|
|
359
|
+
# Configure API key authorization: x-client-key
|
360
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
361
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
362
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
363
|
+
|
364
|
+
# Configure API key authorization: x-client-secret
|
365
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
366
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
367
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
368
|
+
end
|
369
|
+
|
370
|
+
api_instance = DevDraftAI::InvoicesApi.new
|
371
|
+
id = 'id_example' # String | Invoice ID
|
372
|
+
|
373
|
+
|
374
|
+
begin
|
375
|
+
#Get an invoice by ID
|
376
|
+
api_instance.invoice_controller_find_one(id)
|
377
|
+
rescue DevDraftAI::ApiError => e
|
378
|
+
puts "Exception when calling InvoicesApi->invoice_controller_find_one: #{e}"
|
379
|
+
end
|
380
|
+
# Setup authorization
|
381
|
+
DevDraftAI.configure do |config|
|
382
|
+
# Configure API key authorization: x-client-key
|
383
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
384
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
385
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
386
|
+
|
387
|
+
# Configure API key authorization: x-client-secret
|
388
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
389
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
390
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
391
|
+
end
|
392
|
+
|
393
|
+
api_instance = DevDraftAI::InvoicesApi.new
|
394
|
+
body = DevDraftAI::CreateInvoiceDto.new # CreateInvoiceDto |
|
395
|
+
id = 'id_example' # String | Invoice ID
|
396
|
+
|
397
|
+
|
398
|
+
begin
|
399
|
+
#Update an invoice
|
400
|
+
api_instance.invoice_controller_update(body, id)
|
401
|
+
rescue DevDraftAI::ApiError => e
|
402
|
+
puts "Exception when calling InvoicesApi->invoice_controller_update: #{e}"
|
403
|
+
end
|
404
|
+
|
405
|
+
api_instance = DevDraftAI::LiquidationAddressesApi.new
|
406
|
+
body = DevDraftAI::CreateLiquidationAddressDto.new # CreateLiquidationAddressDto |
|
407
|
+
customer_id = 'customer_id_example' # String | Unique identifier for the customer
|
408
|
+
|
409
|
+
|
410
|
+
begin
|
411
|
+
#Create a new liquidation address for a customer
|
412
|
+
result = api_instance.liquidation_address_controller_create_liquidation_address(body, customer_id)
|
413
|
+
p result
|
414
|
+
rescue DevDraftAI::ApiError => e
|
415
|
+
puts "Exception when calling LiquidationAddressesApi->liquidation_address_controller_create_liquidation_address: #{e}"
|
416
|
+
end
|
417
|
+
|
418
|
+
api_instance = DevDraftAI::LiquidationAddressesApi.new
|
419
|
+
customer_id = 'customer_id_example' # String | Unique identifier for the customer
|
420
|
+
liquidation_address_id = 'liquidation_address_id_example' # String | Unique identifier for the liquidation address
|
421
|
+
|
422
|
+
|
423
|
+
begin
|
424
|
+
#Get a specific liquidation address
|
425
|
+
result = api_instance.liquidation_address_controller_get_liquidation_address(customer_id, liquidation_address_id)
|
426
|
+
p result
|
427
|
+
rescue DevDraftAI::ApiError => e
|
428
|
+
puts "Exception when calling LiquidationAddressesApi->liquidation_address_controller_get_liquidation_address: #{e}"
|
429
|
+
end
|
430
|
+
|
431
|
+
api_instance = DevDraftAI::LiquidationAddressesApi.new
|
432
|
+
customer_id = 'customer_id_example' # String | Unique identifier for the customer
|
433
|
+
|
434
|
+
|
435
|
+
begin
|
436
|
+
#Get all liquidation addresses for a customer
|
437
|
+
result = api_instance.liquidation_address_controller_get_liquidation_addresses(customer_id)
|
438
|
+
p result
|
439
|
+
rescue DevDraftAI::ApiError => e
|
440
|
+
puts "Exception when calling LiquidationAddressesApi->liquidation_address_controller_get_liquidation_addresses: #{e}"
|
441
|
+
end
|
442
|
+
# Setup authorization
|
443
|
+
DevDraftAI.configure do |config|
|
444
|
+
# Configure API key authorization: x-client-key
|
445
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
446
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
447
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
448
|
+
|
449
|
+
# Configure API key authorization: x-client-secret
|
450
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
451
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
452
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
453
|
+
end
|
454
|
+
|
455
|
+
api_instance = DevDraftAI::PaymentIntentsApi.new
|
456
|
+
body = DevDraftAI::CreateBankPaymentIntentDto.new # CreateBankPaymentIntentDto | Bank payment intent creation data
|
457
|
+
idempotency_key = 'idempotency_key_example' # String | Unique UUID v4 for idempotent requests. Prevents duplicate payments.
|
458
|
+
|
459
|
+
|
460
|
+
begin
|
461
|
+
#Create a bank payment intent
|
462
|
+
api_instance.payment_intent_controller_create_bank_payment_intent(body, idempotency_key)
|
463
|
+
rescue DevDraftAI::ApiError => e
|
464
|
+
puts "Exception when calling PaymentIntentsApi->payment_intent_controller_create_bank_payment_intent: #{e}"
|
465
|
+
end
|
466
|
+
# Setup authorization
|
467
|
+
DevDraftAI.configure do |config|
|
468
|
+
# Configure API key authorization: x-client-key
|
469
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
470
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
471
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
472
|
+
|
473
|
+
# Configure API key authorization: x-client-secret
|
474
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
475
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
476
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
477
|
+
end
|
478
|
+
|
479
|
+
api_instance = DevDraftAI::PaymentIntentsApi.new
|
480
|
+
body = DevDraftAI::CreateStablePaymentIntentDto.new # CreateStablePaymentIntentDto | Stable payment intent creation data
|
481
|
+
idempotency_key = 'idempotency_key_example' # String | Unique UUID v4 for idempotent requests. Prevents duplicate payments.
|
482
|
+
|
483
|
+
|
484
|
+
begin
|
485
|
+
#Create a stable payment intent
|
486
|
+
api_instance.payment_intent_controller_create_stable_payment_intent(body, idempotency_key)
|
487
|
+
rescue DevDraftAI::ApiError => e
|
488
|
+
puts "Exception when calling PaymentIntentsApi->payment_intent_controller_create_stable_payment_intent: #{e}"
|
489
|
+
end
|
490
|
+
# Setup authorization
|
491
|
+
DevDraftAI.configure do |config|
|
492
|
+
# Configure API key authorization: x-client-key
|
493
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
494
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
495
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
496
|
+
|
497
|
+
# Configure API key authorization: x-client-secret
|
498
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
499
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
500
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
501
|
+
end
|
502
|
+
|
503
|
+
api_instance = DevDraftAI::PaymentLinksApi.new
|
504
|
+
body = DevDraftAI::CreatePaymentLinkDto.new # CreatePaymentLinkDto | Payment link creation data
|
505
|
+
|
506
|
+
|
507
|
+
begin
|
508
|
+
#Create a new payment link
|
509
|
+
api_instance.payment_links_controller_create(body)
|
510
|
+
rescue DevDraftAI::ApiError => e
|
511
|
+
puts "Exception when calling PaymentLinksApi->payment_links_controller_create: #{e}"
|
512
|
+
end
|
513
|
+
# Setup authorization
|
514
|
+
DevDraftAI.configure do |config|
|
515
|
+
# Configure API key authorization: x-client-key
|
516
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
517
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
518
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
519
|
+
|
520
|
+
# Configure API key authorization: x-client-secret
|
521
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
522
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
523
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
524
|
+
end
|
525
|
+
|
526
|
+
api_instance = DevDraftAI::PaymentLinksApi.new
|
527
|
+
opts = {
|
528
|
+
skip: 'skip_example', # String | Number of records to skip (must be non-negative)
|
529
|
+
take: 'take_example' # String | Number of records to take (must be positive)
|
530
|
+
}
|
531
|
+
|
532
|
+
begin
|
533
|
+
#Get all payment links
|
534
|
+
api_instance.payment_links_controller_find_all(opts)
|
535
|
+
rescue DevDraftAI::ApiError => e
|
536
|
+
puts "Exception when calling PaymentLinksApi->payment_links_controller_find_all: #{e}"
|
537
|
+
end
|
538
|
+
# Setup authorization
|
539
|
+
DevDraftAI.configure do |config|
|
540
|
+
# Configure API key authorization: x-client-key
|
541
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
542
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
543
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
544
|
+
|
545
|
+
# Configure API key authorization: x-client-secret
|
546
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
547
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
548
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
549
|
+
end
|
550
|
+
|
551
|
+
api_instance = DevDraftAI::PaymentLinksApi.new
|
552
|
+
id = 'id_example' # String | Payment Link ID
|
553
|
+
|
554
|
+
|
555
|
+
begin
|
556
|
+
#Get a payment link by ID
|
557
|
+
api_instance.payment_links_controller_find_one(id)
|
558
|
+
rescue DevDraftAI::ApiError => e
|
559
|
+
puts "Exception when calling PaymentLinksApi->payment_links_controller_find_one: #{e}"
|
560
|
+
end
|
561
|
+
# Setup authorization
|
562
|
+
DevDraftAI.configure do |config|
|
563
|
+
# Configure API key authorization: x-client-key
|
564
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
565
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
566
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
567
|
+
|
568
|
+
# Configure API key authorization: x-client-secret
|
569
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
570
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
571
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
572
|
+
end
|
573
|
+
|
574
|
+
api_instance = DevDraftAI::PaymentLinksApi.new
|
575
|
+
body = DevDraftAI::UpdatePaymentLinkDto.new # UpdatePaymentLinkDto |
|
576
|
+
id = 'id_example' # String | Payment Link ID
|
577
|
+
|
578
|
+
|
579
|
+
begin
|
580
|
+
#Update a payment link
|
581
|
+
api_instance.payment_links_controller_update(body, id)
|
582
|
+
rescue DevDraftAI::ApiError => e
|
583
|
+
puts "Exception when calling PaymentLinksApi->payment_links_controller_update: #{e}"
|
584
|
+
end
|
585
|
+
# Setup authorization
|
586
|
+
DevDraftAI.configure do |config|
|
587
|
+
# Configure API key authorization: x-client-key
|
588
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
589
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
590
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
591
|
+
|
592
|
+
# Configure API key authorization: x-client-secret
|
593
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
594
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
595
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
596
|
+
end
|
597
|
+
|
598
|
+
api_instance = DevDraftAI::ProductsApi.new
|
599
|
+
name = 'name_example' # String |
|
600
|
+
description = 'description_example' # String |
|
601
|
+
price = DevDraftAI::BigDecimal.new # BigDecimal |
|
602
|
+
currency = 'currency_example' # String |
|
603
|
+
type = 'type_example' # String |
|
604
|
+
weight = DevDraftAI::BigDecimal.new # BigDecimal |
|
605
|
+
unit = 'unit_example' # String |
|
606
|
+
quantity = DevDraftAI::BigDecimal.new # BigDecimal |
|
607
|
+
stock_count = DevDraftAI::BigDecimal.new # BigDecimal |
|
608
|
+
status = 'status_example' # String |
|
609
|
+
product_type = 'product_type_example' # String |
|
610
|
+
images = ['images_example'] # Array<String> |
|
611
|
+
|
612
|
+
|
613
|
+
begin
|
614
|
+
#Create a new product
|
615
|
+
api_instance.product_controller_create(name, description, price, currency, type, weight, unit, quantity, stock_count, status, product_type, images)
|
616
|
+
rescue DevDraftAI::ApiError => e
|
617
|
+
puts "Exception when calling ProductsApi->product_controller_create: #{e}"
|
618
|
+
end
|
619
|
+
# Setup authorization
|
620
|
+
DevDraftAI.configure do |config|
|
621
|
+
# Configure API key authorization: x-client-key
|
622
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
623
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
624
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
625
|
+
|
626
|
+
# Configure API key authorization: x-client-secret
|
627
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
628
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
629
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
630
|
+
end
|
631
|
+
|
632
|
+
api_instance = DevDraftAI::ProductsApi.new
|
633
|
+
opts = {
|
634
|
+
skip: DevDraftAI::BigDecimal.new, # BigDecimal | Number of records to skip
|
635
|
+
take: DevDraftAI::BigDecimal.new # BigDecimal | Number of records to take
|
636
|
+
}
|
637
|
+
|
638
|
+
begin
|
639
|
+
#Get all products
|
640
|
+
api_instance.product_controller_find_all(opts)
|
641
|
+
rescue DevDraftAI::ApiError => e
|
642
|
+
puts "Exception when calling ProductsApi->product_controller_find_all: #{e}"
|
643
|
+
end
|
644
|
+
# Setup authorization
|
645
|
+
DevDraftAI.configure do |config|
|
646
|
+
# Configure API key authorization: x-client-key
|
647
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
648
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
649
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
650
|
+
|
651
|
+
# Configure API key authorization: x-client-secret
|
652
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
653
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
654
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
655
|
+
end
|
656
|
+
|
657
|
+
api_instance = DevDraftAI::ProductsApi.new
|
658
|
+
id = 'id_example' # String | Product ID
|
659
|
+
|
660
|
+
|
661
|
+
begin
|
662
|
+
#Get a product by ID
|
663
|
+
api_instance.product_controller_find_one(id)
|
664
|
+
rescue DevDraftAI::ApiError => e
|
665
|
+
puts "Exception when calling ProductsApi->product_controller_find_one: #{e}"
|
666
|
+
end
|
667
|
+
# Setup authorization
|
668
|
+
DevDraftAI.configure do |config|
|
669
|
+
# Configure API key authorization: x-client-key
|
670
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
671
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
672
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
673
|
+
|
674
|
+
# Configure API key authorization: x-client-secret
|
675
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
676
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
677
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
678
|
+
end
|
679
|
+
|
680
|
+
api_instance = DevDraftAI::ProductsApi.new
|
681
|
+
id = 'id_example' # String | Product ID
|
682
|
+
|
683
|
+
|
684
|
+
begin
|
685
|
+
#Delete a product
|
686
|
+
api_instance.product_controller_remove(id)
|
687
|
+
rescue DevDraftAI::ApiError => e
|
688
|
+
puts "Exception when calling ProductsApi->product_controller_remove: #{e}"
|
689
|
+
end
|
690
|
+
# Setup authorization
|
691
|
+
DevDraftAI.configure do |config|
|
692
|
+
# Configure API key authorization: x-client-key
|
693
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
694
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
695
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
696
|
+
|
697
|
+
# Configure API key authorization: x-client-secret
|
698
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
699
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
700
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
701
|
+
end
|
702
|
+
|
703
|
+
api_instance = DevDraftAI::ProductsApi.new
|
704
|
+
name = 'name_example' # String |
|
705
|
+
description = 'description_example' # String |
|
706
|
+
price = DevDraftAI::BigDecimal.new # BigDecimal |
|
707
|
+
currency = 'currency_example' # String |
|
708
|
+
type = 'type_example' # String |
|
709
|
+
weight = DevDraftAI::BigDecimal.new # BigDecimal |
|
710
|
+
unit = 'unit_example' # String |
|
711
|
+
quantity = DevDraftAI::BigDecimal.new # BigDecimal |
|
712
|
+
stock_count = DevDraftAI::BigDecimal.new # BigDecimal |
|
713
|
+
status = 'status_example' # String |
|
714
|
+
product_type = 'product_type_example' # String |
|
715
|
+
images = ['images_example'] # Array<String> |
|
716
|
+
id = 'id_example' # String | Product ID
|
717
|
+
|
718
|
+
|
719
|
+
begin
|
720
|
+
#Update a product
|
721
|
+
api_instance.product_controller_update(name, description, price, currency, type, weight, unit, quantity, stock_count, status, product_type, images, id)
|
722
|
+
rescue DevDraftAI::ApiError => e
|
723
|
+
puts "Exception when calling ProductsApi->product_controller_update: #{e}"
|
724
|
+
end
|
725
|
+
# Setup authorization
|
726
|
+
DevDraftAI.configure do |config|
|
727
|
+
# Configure API key authorization: x-client-key
|
728
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
729
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
730
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
731
|
+
|
732
|
+
# Configure API key authorization: x-client-secret
|
733
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
734
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
735
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
736
|
+
end
|
737
|
+
|
738
|
+
api_instance = DevDraftAI::ProductsApi.new
|
739
|
+
id = 'id_example' # String | Product ID
|
740
|
+
|
741
|
+
|
742
|
+
begin
|
743
|
+
#Upload images for a product
|
744
|
+
api_instance.product_controller_upload_image(id)
|
745
|
+
rescue DevDraftAI::ApiError => e
|
746
|
+
puts "Exception when calling ProductsApi->product_controller_upload_image: #{e}"
|
747
|
+
end
|
748
|
+
# Setup authorization
|
749
|
+
DevDraftAI.configure do |config|
|
750
|
+
# Configure API key authorization: x-client-key
|
751
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
752
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
753
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
754
|
+
|
755
|
+
# Configure API key authorization: x-client-secret
|
756
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
757
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
758
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
759
|
+
end
|
760
|
+
|
761
|
+
api_instance = DevDraftAI::TaxesApi.new
|
762
|
+
body = DevDraftAI::CreateTaxInput.new # CreateTaxInput |
|
763
|
+
|
764
|
+
|
765
|
+
begin
|
766
|
+
#Create a new tax
|
767
|
+
api_instance.tax_controller_create(body)
|
768
|
+
rescue DevDraftAI::ApiError => e
|
769
|
+
puts "Exception when calling TaxesApi->tax_controller_create: #{e}"
|
770
|
+
end
|
771
|
+
# Setup authorization
|
772
|
+
DevDraftAI.configure do |config|
|
773
|
+
# Configure API key authorization: x-client-key
|
774
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
775
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
776
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
777
|
+
|
778
|
+
# Configure API key authorization: x-client-secret
|
779
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
780
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
781
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
782
|
+
end
|
783
|
+
|
784
|
+
api_instance = DevDraftAI::TaxesApi.new
|
785
|
+
opts = {
|
786
|
+
skip: 'skip_example', # String | Number of records to skip
|
787
|
+
take: 'take_example' # String | Number of records to take
|
788
|
+
}
|
789
|
+
|
790
|
+
begin
|
791
|
+
#Get all taxes
|
792
|
+
api_instance.tax_controller_find_all(opts)
|
793
|
+
rescue DevDraftAI::ApiError => e
|
794
|
+
puts "Exception when calling TaxesApi->tax_controller_find_all: #{e}"
|
795
|
+
end
|
796
|
+
# Setup authorization
|
797
|
+
DevDraftAI.configure do |config|
|
798
|
+
# Configure API key authorization: x-client-key
|
799
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
800
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
801
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
802
|
+
|
803
|
+
# Configure API key authorization: x-client-secret
|
804
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
805
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
806
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
807
|
+
end
|
808
|
+
|
809
|
+
api_instance = DevDraftAI::TaxesApi.new
|
810
|
+
id = 'id_example' # String | Tax ID
|
811
|
+
|
812
|
+
|
813
|
+
begin
|
814
|
+
#Get a tax by ID
|
815
|
+
api_instance.tax_controller_find_one(id)
|
816
|
+
rescue DevDraftAI::ApiError => e
|
817
|
+
puts "Exception when calling TaxesApi->tax_controller_find_one: #{e}"
|
818
|
+
end
|
819
|
+
# Setup authorization
|
820
|
+
DevDraftAI.configure do |config|
|
821
|
+
# Configure API key authorization: x-client-key
|
822
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
823
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
824
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
825
|
+
|
826
|
+
# Configure API key authorization: x-client-secret
|
827
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
828
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
829
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
830
|
+
end
|
831
|
+
|
832
|
+
api_instance = DevDraftAI::TaxesApi.new
|
833
|
+
id = 'id_example' # String | Tax ID
|
834
|
+
|
835
|
+
|
836
|
+
begin
|
837
|
+
#Delete a tax
|
838
|
+
api_instance.tax_controller_remove(id)
|
839
|
+
rescue DevDraftAI::ApiError => e
|
840
|
+
puts "Exception when calling TaxesApi->tax_controller_remove: #{e}"
|
841
|
+
end
|
842
|
+
# Setup authorization
|
843
|
+
DevDraftAI.configure do |config|
|
844
|
+
# Configure API key authorization: x-client-key
|
845
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
846
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
847
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
848
|
+
|
849
|
+
# Configure API key authorization: x-client-secret
|
850
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
851
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
852
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
853
|
+
end
|
854
|
+
|
855
|
+
api_instance = DevDraftAI::TaxesApi.new
|
856
|
+
body = DevDraftAI::UpdateTaxInput.new # UpdateTaxInput |
|
857
|
+
id = 'id_example' # String | Tax ID
|
858
|
+
|
859
|
+
|
860
|
+
begin
|
861
|
+
#Update a tax
|
862
|
+
api_instance.tax_controller_update(body, id)
|
863
|
+
rescue DevDraftAI::ApiError => e
|
864
|
+
puts "Exception when calling TaxesApi->tax_controller_update: #{e}"
|
865
|
+
end
|
866
|
+
|
867
|
+
api_instance = DevDraftAI::TestPaymentsApi.new
|
868
|
+
body = DevDraftAI::PaymentRequestDto.new # PaymentRequestDto |
|
869
|
+
idempotency_key = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Unique key to ensure the request is idempotent. If a request with the same key is sent multiple times, only the first will be processed, and subsequent requests will return the same response.
|
870
|
+
|
871
|
+
|
872
|
+
begin
|
873
|
+
#Process a test payment
|
874
|
+
result = api_instance.test_payment_controller_create_payment_v0(body, idempotency_key)
|
875
|
+
p result
|
876
|
+
rescue DevDraftAI::ApiError => e
|
877
|
+
puts "Exception when calling TestPaymentsApi->test_payment_controller_create_payment_v0: #{e}"
|
878
|
+
end
|
879
|
+
|
880
|
+
api_instance = DevDraftAI::TestPaymentsApi.new
|
881
|
+
id = 'id_example' # String | Payment ID
|
882
|
+
|
883
|
+
|
884
|
+
begin
|
885
|
+
#Get payment details by ID
|
886
|
+
result = api_instance.test_payment_controller_get_payment_v0(id)
|
887
|
+
p result
|
888
|
+
rescue DevDraftAI::ApiError => e
|
889
|
+
puts "Exception when calling TestPaymentsApi->test_payment_controller_get_payment_v0: #{e}"
|
890
|
+
end
|
891
|
+
|
892
|
+
api_instance = DevDraftAI::TestPaymentsApi.new
|
893
|
+
id = 'id_example' # String | Payment ID to refund
|
894
|
+
idempotency_key = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | Unique key to ensure the refund request is idempotent. If a request with the same key is sent multiple times, only the first will be processed, and subsequent requests will return the same response.
|
895
|
+
|
896
|
+
|
897
|
+
begin
|
898
|
+
#Refund a payment
|
899
|
+
result = api_instance.test_payment_controller_refund_payment_v0(id, idempotency_key)
|
900
|
+
p result
|
901
|
+
rescue DevDraftAI::ApiError => e
|
902
|
+
puts "Exception when calling TestPaymentsApi->test_payment_controller_refund_payment_v0: #{e}"
|
903
|
+
end
|
904
|
+
# Setup authorization
|
905
|
+
DevDraftAI.configure do |config|
|
906
|
+
# Configure API key authorization: x-client-key
|
907
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
908
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
909
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
910
|
+
|
911
|
+
# Configure API key authorization: x-client-secret
|
912
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
913
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
914
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
915
|
+
end
|
916
|
+
|
917
|
+
api_instance = DevDraftAI::TransfersApi.new
|
918
|
+
body = DevDraftAI::CreateDirectBankTransferDto.new # CreateDirectBankTransferDto |
|
919
|
+
|
920
|
+
|
921
|
+
begin
|
922
|
+
#Create a direct bank transfer
|
923
|
+
api_instance.transfer_controller_create_direct_bank_transfer(body)
|
924
|
+
rescue DevDraftAI::ApiError => e
|
925
|
+
puts "Exception when calling TransfersApi->transfer_controller_create_direct_bank_transfer: #{e}"
|
926
|
+
end
|
927
|
+
# Setup authorization
|
928
|
+
DevDraftAI.configure do |config|
|
929
|
+
# Configure API key authorization: x-client-key
|
930
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
931
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
932
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
933
|
+
|
934
|
+
# Configure API key authorization: x-client-secret
|
935
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
936
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
937
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
938
|
+
end
|
939
|
+
|
940
|
+
api_instance = DevDraftAI::TransfersApi.new
|
941
|
+
body = DevDraftAI::CreateDirectWalletTransferDto.new # CreateDirectWalletTransferDto |
|
942
|
+
|
943
|
+
|
944
|
+
begin
|
945
|
+
#Create a direct wallet transfer
|
946
|
+
api_instance.transfer_controller_create_direct_wallet_transfer(body)
|
947
|
+
rescue DevDraftAI::ApiError => e
|
948
|
+
puts "Exception when calling TransfersApi->transfer_controller_create_direct_wallet_transfer: #{e}"
|
949
|
+
end
|
950
|
+
# Setup authorization
|
951
|
+
DevDraftAI.configure do |config|
|
952
|
+
# Configure API key authorization: x-client-key
|
953
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
954
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
955
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
956
|
+
|
957
|
+
# Configure API key authorization: x-client-secret
|
958
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
959
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
960
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
961
|
+
end
|
962
|
+
|
963
|
+
api_instance = DevDraftAI::TransfersApi.new
|
964
|
+
body = DevDraftAI::CreateStablecoinConversionDto.new # CreateStablecoinConversionDto |
|
965
|
+
|
966
|
+
|
967
|
+
begin
|
968
|
+
#Create a stablecoin conversion
|
969
|
+
api_instance.transfer_controller_create_stablecoin_conversion(body)
|
970
|
+
rescue DevDraftAI::ApiError => e
|
971
|
+
puts "Exception when calling TransfersApi->transfer_controller_create_stablecoin_conversion: #{e}"
|
972
|
+
end
|
973
|
+
# Setup authorization
|
974
|
+
DevDraftAI.configure do |config|
|
975
|
+
# Configure API key authorization: x-client-key
|
976
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
977
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
978
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
979
|
+
|
980
|
+
# Configure API key authorization: x-client-secret
|
981
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
982
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
983
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
984
|
+
end
|
985
|
+
|
986
|
+
api_instance = DevDraftAI::WalletsApi.new
|
987
|
+
|
988
|
+
begin
|
989
|
+
#Get wallets for an app
|
990
|
+
api_instance.wallet_controller_get_wallets
|
991
|
+
rescue DevDraftAI::ApiError => e
|
992
|
+
puts "Exception when calling WalletsApi->wallet_controller_get_wallets: #{e}"
|
993
|
+
end
|
994
|
+
# Setup authorization
|
995
|
+
DevDraftAI.configure do |config|
|
996
|
+
# Configure API key authorization: x-client-key
|
997
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
998
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
999
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
1000
|
+
|
1001
|
+
# Configure API key authorization: x-client-secret
|
1002
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
1003
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1004
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
api_instance = DevDraftAI::WebhooksApi.new
|
1008
|
+
body = DevDraftAI::CreateWebhookDto.new # CreateWebhookDto | Webhook configuration details
|
1009
|
+
|
1010
|
+
|
1011
|
+
begin
|
1012
|
+
#Create a new webhook
|
1013
|
+
result = api_instance.webhook_controller_create(body)
|
1014
|
+
p result
|
1015
|
+
rescue DevDraftAI::ApiError => e
|
1016
|
+
puts "Exception when calling WebhooksApi->webhook_controller_create: #{e}"
|
1017
|
+
end
|
1018
|
+
# Setup authorization
|
1019
|
+
DevDraftAI.configure do |config|
|
1020
|
+
# Configure API key authorization: x-client-key
|
1021
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
1022
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1023
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
1024
|
+
|
1025
|
+
# Configure API key authorization: x-client-secret
|
1026
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
1027
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1028
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
1029
|
+
end
|
1030
|
+
|
1031
|
+
api_instance = DevDraftAI::WebhooksApi.new
|
1032
|
+
opts = {
|
1033
|
+
skip: DevDraftAI::BigDecimal.new, # BigDecimal | Number of records to skip (default: 0)
|
1034
|
+
take: DevDraftAI::BigDecimal.new # BigDecimal | Number of records to return (default: 10)
|
1035
|
+
}
|
1036
|
+
|
1037
|
+
begin
|
1038
|
+
#Get all webhooks
|
1039
|
+
result = api_instance.webhook_controller_find_all(opts)
|
1040
|
+
p result
|
1041
|
+
rescue DevDraftAI::ApiError => e
|
1042
|
+
puts "Exception when calling WebhooksApi->webhook_controller_find_all: #{e}"
|
1043
|
+
end
|
1044
|
+
# Setup authorization
|
1045
|
+
DevDraftAI.configure do |config|
|
1046
|
+
# Configure API key authorization: x-client-key
|
1047
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
1048
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1049
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
1050
|
+
|
1051
|
+
# Configure API key authorization: x-client-secret
|
1052
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
1053
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1054
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
1055
|
+
end
|
1056
|
+
|
1057
|
+
api_instance = DevDraftAI::WebhooksApi.new
|
1058
|
+
id = 'id_example' # String | Webhook ID
|
1059
|
+
|
1060
|
+
|
1061
|
+
begin
|
1062
|
+
#Get a webhook by id
|
1063
|
+
result = api_instance.webhook_controller_find_one(id)
|
1064
|
+
p result
|
1065
|
+
rescue DevDraftAI::ApiError => e
|
1066
|
+
puts "Exception when calling WebhooksApi->webhook_controller_find_one: #{e}"
|
1067
|
+
end
|
1068
|
+
# Setup authorization
|
1069
|
+
DevDraftAI.configure do |config|
|
1070
|
+
# Configure API key authorization: x-client-key
|
1071
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
1072
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1073
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
1074
|
+
|
1075
|
+
# Configure API key authorization: x-client-secret
|
1076
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
1077
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1078
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
1079
|
+
end
|
1080
|
+
|
1081
|
+
api_instance = DevDraftAI::WebhooksApi.new
|
1082
|
+
id = 'id_example' # String | Webhook ID
|
1083
|
+
|
1084
|
+
|
1085
|
+
begin
|
1086
|
+
#Delete a webhook
|
1087
|
+
result = api_instance.webhook_controller_remove(id)
|
1088
|
+
p result
|
1089
|
+
rescue DevDraftAI::ApiError => e
|
1090
|
+
puts "Exception when calling WebhooksApi->webhook_controller_remove: #{e}"
|
1091
|
+
end
|
1092
|
+
# Setup authorization
|
1093
|
+
DevDraftAI.configure do |config|
|
1094
|
+
# Configure API key authorization: x-client-key
|
1095
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
1096
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1097
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
1098
|
+
|
1099
|
+
# Configure API key authorization: x-client-secret
|
1100
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
1101
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
1102
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
1103
|
+
end
|
1104
|
+
|
1105
|
+
api_instance = DevDraftAI::WebhooksApi.new
|
1106
|
+
body = DevDraftAI::UpdateWebhookDto.new # UpdateWebhookDto | Webhook update details
|
1107
|
+
id = 'id_example' # String | Webhook ID
|
1108
|
+
|
1109
|
+
|
1110
|
+
begin
|
1111
|
+
#Update a webhook
|
1112
|
+
result = api_instance.webhook_controller_update(body, id)
|
1113
|
+
p result
|
1114
|
+
rescue DevDraftAI::ApiError => e
|
1115
|
+
puts "Exception when calling WebhooksApi->webhook_controller_update: #{e}"
|
1116
|
+
end
|
1117
|
+
```
|
1118
|
+
|
1119
|
+
## Documentation for API Endpoints
|
1120
|
+
|
1121
|
+
All URIs are relative to *https://api.devdraft.ai*
|
1122
|
+
|
1123
|
+
Class | Method | HTTP request | Description
|
1124
|
+
------------ | ------------- | ------------- | -------------
|
1125
|
+
*DevDraftAI::APIHealthApi* | [**health_controller_check_v0**](docs/APIHealthApi.md#health_controller_check_v0) | **GET** /api/v0/health | Authenticated health check endpoint
|
1126
|
+
*DevDraftAI::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
|
1127
|
+
*DevDraftAI::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
|
1128
|
+
*DevDraftAI::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
|
1129
|
+
*DevDraftAI::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
|
1130
|
+
*DevDraftAI::CustomersApi* | [**customer_controller_create**](docs/CustomersApi.md#customer_controller_create) | **POST** /api/v0/customers | Create a new customer
|
1131
|
+
*DevDraftAI::CustomersApi* | [**customer_controller_find_all**](docs/CustomersApi.md#customer_controller_find_all) | **GET** /api/v0/customers | Get all customers with filters
|
1132
|
+
*DevDraftAI::CustomersApi* | [**customer_controller_find_one**](docs/CustomersApi.md#customer_controller_find_one) | **GET** /api/v0/customers/{id} | Get a customer by ID
|
1133
|
+
*DevDraftAI::CustomersApi* | [**customer_controller_update**](docs/CustomersApi.md#customer_controller_update) | **PATCH** /api/v0/customers/{id} | Update a customer
|
1134
|
+
*DevDraftAI::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
|
1135
|
+
*DevDraftAI::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
|
1136
|
+
*DevDraftAI::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
|
1137
|
+
*DevDraftAI::InvoicesApi* | [**invoice_controller_create**](docs/InvoicesApi.md#invoice_controller_create) | **POST** /api/v0/invoices | Create a new invoice
|
1138
|
+
*DevDraftAI::InvoicesApi* | [**invoice_controller_find_all**](docs/InvoicesApi.md#invoice_controller_find_all) | **GET** /api/v0/invoices | Get all invoices
|
1139
|
+
*DevDraftAI::InvoicesApi* | [**invoice_controller_find_one**](docs/InvoicesApi.md#invoice_controller_find_one) | **GET** /api/v0/invoices/{id} | Get an invoice by ID
|
1140
|
+
*DevDraftAI::InvoicesApi* | [**invoice_controller_update**](docs/InvoicesApi.md#invoice_controller_update) | **PUT** /api/v0/invoices/{id} | Update an invoice
|
1141
|
+
*DevDraftAI::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
|
1142
|
+
*DevDraftAI::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
|
1143
|
+
*DevDraftAI::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
|
1144
|
+
*DevDraftAI::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
|
1145
|
+
*DevDraftAI::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
|
1146
|
+
*DevDraftAI::PaymentLinksApi* | [**payment_links_controller_create**](docs/PaymentLinksApi.md#payment_links_controller_create) | **POST** /api/v0/payment-links | Create a new payment link
|
1147
|
+
*DevDraftAI::PaymentLinksApi* | [**payment_links_controller_find_all**](docs/PaymentLinksApi.md#payment_links_controller_find_all) | **GET** /api/v0/payment-links | Get all payment links
|
1148
|
+
*DevDraftAI::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
|
1149
|
+
*DevDraftAI::PaymentLinksApi* | [**payment_links_controller_update**](docs/PaymentLinksApi.md#payment_links_controller_update) | **PUT** /api/v0/payment-links/{id} | Update a payment link
|
1150
|
+
*DevDraftAI::ProductsApi* | [**product_controller_create**](docs/ProductsApi.md#product_controller_create) | **POST** /api/v0/products | Create a new product
|
1151
|
+
*DevDraftAI::ProductsApi* | [**product_controller_find_all**](docs/ProductsApi.md#product_controller_find_all) | **GET** /api/v0/products | Get all products
|
1152
|
+
*DevDraftAI::ProductsApi* | [**product_controller_find_one**](docs/ProductsApi.md#product_controller_find_one) | **GET** /api/v0/products/{id} | Get a product by ID
|
1153
|
+
*DevDraftAI::ProductsApi* | [**product_controller_remove**](docs/ProductsApi.md#product_controller_remove) | **DELETE** /api/v0/products/{id} | Delete a product
|
1154
|
+
*DevDraftAI::ProductsApi* | [**product_controller_update**](docs/ProductsApi.md#product_controller_update) | **PUT** /api/v0/products/{id} | Update a product
|
1155
|
+
*DevDraftAI::ProductsApi* | [**product_controller_upload_image**](docs/ProductsApi.md#product_controller_upload_image) | **POST** /api/v0/products/{id}/images | Upload images for a product
|
1156
|
+
*DevDraftAI::TaxesApi* | [**tax_controller_create**](docs/TaxesApi.md#tax_controller_create) | **POST** /api/v0/taxes | Create a new tax
|
1157
|
+
*DevDraftAI::TaxesApi* | [**tax_controller_find_all**](docs/TaxesApi.md#tax_controller_find_all) | **GET** /api/v0/taxes | Get all taxes
|
1158
|
+
*DevDraftAI::TaxesApi* | [**tax_controller_find_one**](docs/TaxesApi.md#tax_controller_find_one) | **GET** /api/v0/taxes/{id} | Get a tax by ID
|
1159
|
+
*DevDraftAI::TaxesApi* | [**tax_controller_remove**](docs/TaxesApi.md#tax_controller_remove) | **DELETE** /api/v0/taxes/{id} | Delete a tax
|
1160
|
+
*DevDraftAI::TaxesApi* | [**tax_controller_update**](docs/TaxesApi.md#tax_controller_update) | **PUT** /api/v0/taxes/{id} | Update a tax
|
1161
|
+
*DevDraftAI::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
|
1162
|
+
*DevDraftAI::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
|
1163
|
+
*DevDraftAI::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
|
1164
|
+
*DevDraftAI::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
|
1165
|
+
*DevDraftAI::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
|
1166
|
+
*DevDraftAI::TransfersApi* | [**transfer_controller_create_stablecoin_conversion**](docs/TransfersApi.md#transfer_controller_create_stablecoin_conversion) | **POST** /api/v0/transfers/stablecoin-conversion | Create a stablecoin conversion
|
1167
|
+
*DevDraftAI::WalletsApi* | [**wallet_controller_get_wallets**](docs/WalletsApi.md#wallet_controller_get_wallets) | **GET** /api/v0/wallets | Get wallets for an app
|
1168
|
+
*DevDraftAI::WebhooksApi* | [**webhook_controller_create**](docs/WebhooksApi.md#webhook_controller_create) | **POST** /api/v0/webhooks | Create a new webhook
|
1169
|
+
*DevDraftAI::WebhooksApi* | [**webhook_controller_find_all**](docs/WebhooksApi.md#webhook_controller_find_all) | **GET** /api/v0/webhooks | Get all webhooks
|
1170
|
+
*DevDraftAI::WebhooksApi* | [**webhook_controller_find_one**](docs/WebhooksApi.md#webhook_controller_find_one) | **GET** /api/v0/webhooks/{id} | Get a webhook by id
|
1171
|
+
*DevDraftAI::WebhooksApi* | [**webhook_controller_remove**](docs/WebhooksApi.md#webhook_controller_remove) | **DELETE** /api/v0/webhooks/{id} | Delete a webhook
|
1172
|
+
*DevDraftAI::WebhooksApi* | [**webhook_controller_update**](docs/WebhooksApi.md#webhook_controller_update) | **PATCH** /api/v0/webhooks/{id} | Update a webhook
|
1173
|
+
|
1174
|
+
## Documentation for Models
|
1175
|
+
|
1176
|
+
- [DevDraftAI::AggregatedBalanceResponse](docs/AggregatedBalanceResponse.md)
|
1177
|
+
- [DevDraftAI::AllBalancesResponse](docs/AllBalancesResponse.md)
|
1178
|
+
- [DevDraftAI::AllOfAllBalancesResponseEurc](docs/AllOfAllBalancesResponseEurc.md)
|
1179
|
+
- [DevDraftAI::AllOfAllBalancesResponseUsdc](docs/AllOfAllBalancesResponseUsdc.md)
|
1180
|
+
- [DevDraftAI::AllOfCreateBankPaymentIntentDtoDestinationCurrency](docs/AllOfCreateBankPaymentIntentDtoDestinationCurrency.md)
|
1181
|
+
- [DevDraftAI::AllOfCreateBankPaymentIntentDtoDestinationNetwork](docs/AllOfCreateBankPaymentIntentDtoDestinationNetwork.md)
|
1182
|
+
- [DevDraftAI::AllOfCreateBankPaymentIntentDtoSourceCurrency](docs/AllOfCreateBankPaymentIntentDtoSourceCurrency.md)
|
1183
|
+
- [DevDraftAI::AllOfCreateBankPaymentIntentDtoSourcePaymentRail](docs/AllOfCreateBankPaymentIntentDtoSourcePaymentRail.md)
|
1184
|
+
- [DevDraftAI::AllOfCreateCustomerDtoStatus](docs/AllOfCreateCustomerDtoStatus.md)
|
1185
|
+
- [DevDraftAI::AllOfCreateLiquidationAddressDtoDestinationCurrency](docs/AllOfCreateLiquidationAddressDtoDestinationCurrency.md)
|
1186
|
+
- [DevDraftAI::AllOfCreateLiquidationAddressDtoDestinationPaymentRail](docs/AllOfCreateLiquidationAddressDtoDestinationPaymentRail.md)
|
1187
|
+
- [DevDraftAI::AllOfCreateStablePaymentIntentDtoDestinationCurrency](docs/AllOfCreateStablePaymentIntentDtoDestinationCurrency.md)
|
1188
|
+
- [DevDraftAI::AllOfCreateStablePaymentIntentDtoDestinationNetwork](docs/AllOfCreateStablePaymentIntentDtoDestinationNetwork.md)
|
1189
|
+
- [DevDraftAI::AllOfCreateStablePaymentIntentDtoSourceCurrency](docs/AllOfCreateStablePaymentIntentDtoSourceCurrency.md)
|
1190
|
+
- [DevDraftAI::AllOfCreateStablePaymentIntentDtoSourceNetwork](docs/AllOfCreateStablePaymentIntentDtoSourceNetwork.md)
|
1191
|
+
- [DevDraftAI::AllOfUpdateCustomerDtoStatus](docs/AllOfUpdateCustomerDtoStatus.md)
|
1192
|
+
- [DevDraftAI::BridgePaymentRail](docs/BridgePaymentRail.md)
|
1193
|
+
- [DevDraftAI::CreateBankPaymentIntentDto](docs/CreateBankPaymentIntentDto.md)
|
1194
|
+
- [DevDraftAI::CreateCustomerDto](docs/CreateCustomerDto.md)
|
1195
|
+
- [DevDraftAI::CreateDirectBankTransferDto](docs/CreateDirectBankTransferDto.md)
|
1196
|
+
- [DevDraftAI::CreateDirectWalletTransferDto](docs/CreateDirectWalletTransferDto.md)
|
1197
|
+
- [DevDraftAI::CreateInvoiceDto](docs/CreateInvoiceDto.md)
|
1198
|
+
- [DevDraftAI::CreateLiquidationAddressDto](docs/CreateLiquidationAddressDto.md)
|
1199
|
+
- [DevDraftAI::CreatePaymentLinkDto](docs/CreatePaymentLinkDto.md)
|
1200
|
+
- [DevDraftAI::CreateProductDto](docs/CreateProductDto.md)
|
1201
|
+
- [DevDraftAI::CreateStablePaymentIntentDto](docs/CreateStablePaymentIntentDto.md)
|
1202
|
+
- [DevDraftAI::CreateStablecoinConversionDto](docs/CreateStablecoinConversionDto.md)
|
1203
|
+
- [DevDraftAI::CreateTaxInput](docs/CreateTaxInput.md)
|
1204
|
+
- [DevDraftAI::CreateWebhookDto](docs/CreateWebhookDto.md)
|
1205
|
+
- [DevDraftAI::CustomerStatus](docs/CustomerStatus.md)
|
1206
|
+
- [DevDraftAI::DestinationCurrency](docs/DestinationCurrency.md)
|
1207
|
+
- [DevDraftAI::ExchangeRateResponseDto](docs/ExchangeRateResponseDto.md)
|
1208
|
+
- [DevDraftAI::FiatCurrency](docs/FiatCurrency.md)
|
1209
|
+
- [DevDraftAI::HealthResponseDto](docs/HealthResponseDto.md)
|
1210
|
+
- [DevDraftAI::InvoiceProductDto](docs/InvoiceProductDto.md)
|
1211
|
+
- [DevDraftAI::LiquidationAddressResponseDto](docs/LiquidationAddressResponseDto.md)
|
1212
|
+
- [DevDraftAI::PaymentLinkProductDto](docs/PaymentLinkProductDto.md)
|
1213
|
+
- [DevDraftAI::PaymentRequestDto](docs/PaymentRequestDto.md)
|
1214
|
+
- [DevDraftAI::PaymentResponseDto](docs/PaymentResponseDto.md)
|
1215
|
+
- [DevDraftAI::PublicHealthResponseDto](docs/PublicHealthResponseDto.md)
|
1216
|
+
- [DevDraftAI::RefundResponseDto](docs/RefundResponseDto.md)
|
1217
|
+
- [DevDraftAI::StableCoinCurrency](docs/StableCoinCurrency.md)
|
1218
|
+
- [DevDraftAI::UpdateCustomerDto](docs/UpdateCustomerDto.md)
|
1219
|
+
- [DevDraftAI::UpdatePaymentLinkDto](docs/UpdatePaymentLinkDto.md)
|
1220
|
+
- [DevDraftAI::UpdatePreferenceInput](docs/UpdatePreferenceInput.md)
|
1221
|
+
- [DevDraftAI::UpdateProductDto](docs/UpdateProductDto.md)
|
1222
|
+
- [DevDraftAI::UpdateTaxInput](docs/UpdateTaxInput.md)
|
1223
|
+
- [DevDraftAI::UpdateWebhookDto](docs/UpdateWebhookDto.md)
|
1224
|
+
- [DevDraftAI::WebhookResponseDto](docs/WebhookResponseDto.md)
|
1225
|
+
|
1226
|
+
## Documentation for Authorization
|
1227
|
+
|
1228
|
+
|
1229
|
+
### idempotency-key
|
1230
|
+
|
1231
|
+
- **Type**: API key
|
1232
|
+
- **API key parameter name**: idempotency-key
|
1233
|
+
- **Location**: HTTP header
|
1234
|
+
|
1235
|
+
### x-client-key
|
1236
|
+
|
1237
|
+
- **Type**: API key
|
1238
|
+
- **API key parameter name**: x-client-key
|
1239
|
+
- **Location**: HTTP header
|
1240
|
+
|
1241
|
+
### x-client-secret
|
1242
|
+
|
1243
|
+
- **Type**: API key
|
1244
|
+
- **API key parameter name**: x-client-secret
|
1245
|
+
- **Location**: HTTP header
|
1246
|
+
|