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
@@ -0,0 +1,238 @@
|
|
1
|
+
# DevDraftAI::PaymentLinksApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.devdraft.ai*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**payment_links_controller_create**](PaymentLinksApi.md#payment_links_controller_create) | **POST** /api/v0/payment-links | Create a new payment link
|
8
|
+
[**payment_links_controller_find_all**](PaymentLinksApi.md#payment_links_controller_find_all) | **GET** /api/v0/payment-links | Get all payment links
|
9
|
+
[**payment_links_controller_find_one**](PaymentLinksApi.md#payment_links_controller_find_one) | **GET** /api/v0/payment-links/{id} | Get a payment link by ID
|
10
|
+
[**payment_links_controller_update**](PaymentLinksApi.md#payment_links_controller_update) | **PUT** /api/v0/payment-links/{id} | Update a payment link
|
11
|
+
|
12
|
+
# **payment_links_controller_create**
|
13
|
+
> payment_links_controller_create(body)
|
14
|
+
|
15
|
+
Create a new payment link
|
16
|
+
|
17
|
+
Creates a new payment link with the provided details. Supports both simple one-time payments and complex product bundles.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
```ruby
|
21
|
+
# load the gem
|
22
|
+
require 'devdraft_ai_sdk'
|
23
|
+
# setup authorization
|
24
|
+
DevDraftAI.configure do |config|
|
25
|
+
# Configure API key authorization: x-client-key
|
26
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
27
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
28
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
29
|
+
|
30
|
+
# Configure API key authorization: x-client-secret
|
31
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
32
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
33
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
34
|
+
end
|
35
|
+
|
36
|
+
api_instance = DevDraftAI::PaymentLinksApi.new
|
37
|
+
body = DevDraftAI::CreatePaymentLinkDto.new # CreatePaymentLinkDto | Payment link creation data
|
38
|
+
|
39
|
+
|
40
|
+
begin
|
41
|
+
#Create a new payment link
|
42
|
+
api_instance.payment_links_controller_create(body)
|
43
|
+
rescue DevDraftAI::ApiError => e
|
44
|
+
puts "Exception when calling PaymentLinksApi->payment_links_controller_create: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
Name | Type | Description | Notes
|
51
|
+
------------- | ------------- | ------------- | -------------
|
52
|
+
**body** | [**CreatePaymentLinkDto**](CreatePaymentLinkDto.md)| Payment link creation data |
|
53
|
+
|
54
|
+
### Return type
|
55
|
+
|
56
|
+
nil (empty response body)
|
57
|
+
|
58
|
+
### Authorization
|
59
|
+
|
60
|
+
[x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
|
61
|
+
|
62
|
+
### HTTP request headers
|
63
|
+
|
64
|
+
- **Content-Type**: application/json
|
65
|
+
- **Accept**: Not defined
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
# **payment_links_controller_find_all**
|
70
|
+
> payment_links_controller_find_all(opts)
|
71
|
+
|
72
|
+
Get all payment links
|
73
|
+
|
74
|
+
### Example
|
75
|
+
```ruby
|
76
|
+
# load the gem
|
77
|
+
require 'devdraft_ai_sdk'
|
78
|
+
# setup authorization
|
79
|
+
DevDraftAI.configure do |config|
|
80
|
+
# Configure API key authorization: x-client-key
|
81
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
82
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
83
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
84
|
+
|
85
|
+
# Configure API key authorization: x-client-secret
|
86
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
87
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
88
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
89
|
+
end
|
90
|
+
|
91
|
+
api_instance = DevDraftAI::PaymentLinksApi.new
|
92
|
+
opts = {
|
93
|
+
skip: 'skip_example', # String | Number of records to skip (must be non-negative)
|
94
|
+
take: 'take_example' # String | Number of records to take (must be positive)
|
95
|
+
}
|
96
|
+
|
97
|
+
begin
|
98
|
+
#Get all payment links
|
99
|
+
api_instance.payment_links_controller_find_all(opts)
|
100
|
+
rescue DevDraftAI::ApiError => e
|
101
|
+
puts "Exception when calling PaymentLinksApi->payment_links_controller_find_all: #{e}"
|
102
|
+
end
|
103
|
+
```
|
104
|
+
|
105
|
+
### Parameters
|
106
|
+
|
107
|
+
Name | Type | Description | Notes
|
108
|
+
------------- | ------------- | ------------- | -------------
|
109
|
+
**skip** | **String**| Number of records to skip (must be non-negative) | [optional]
|
110
|
+
**take** | **String**| Number of records to take (must be positive) | [optional]
|
111
|
+
|
112
|
+
### Return type
|
113
|
+
|
114
|
+
nil (empty response body)
|
115
|
+
|
116
|
+
### Authorization
|
117
|
+
|
118
|
+
[x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
|
119
|
+
|
120
|
+
### HTTP request headers
|
121
|
+
|
122
|
+
- **Content-Type**: Not defined
|
123
|
+
- **Accept**: Not defined
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
# **payment_links_controller_find_one**
|
128
|
+
> payment_links_controller_find_one(id)
|
129
|
+
|
130
|
+
Get a payment link by ID
|
131
|
+
|
132
|
+
### Example
|
133
|
+
```ruby
|
134
|
+
# load the gem
|
135
|
+
require 'devdraft_ai_sdk'
|
136
|
+
# setup authorization
|
137
|
+
DevDraftAI.configure do |config|
|
138
|
+
# Configure API key authorization: x-client-key
|
139
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
140
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
141
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
142
|
+
|
143
|
+
# Configure API key authorization: x-client-secret
|
144
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
145
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
146
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
147
|
+
end
|
148
|
+
|
149
|
+
api_instance = DevDraftAI::PaymentLinksApi.new
|
150
|
+
id = 'id_example' # String | Payment Link ID
|
151
|
+
|
152
|
+
|
153
|
+
begin
|
154
|
+
#Get a payment link by ID
|
155
|
+
api_instance.payment_links_controller_find_one(id)
|
156
|
+
rescue DevDraftAI::ApiError => e
|
157
|
+
puts "Exception when calling PaymentLinksApi->payment_links_controller_find_one: #{e}"
|
158
|
+
end
|
159
|
+
```
|
160
|
+
|
161
|
+
### Parameters
|
162
|
+
|
163
|
+
Name | Type | Description | Notes
|
164
|
+
------------- | ------------- | ------------- | -------------
|
165
|
+
**id** | **String**| Payment Link ID |
|
166
|
+
|
167
|
+
### Return type
|
168
|
+
|
169
|
+
nil (empty response body)
|
170
|
+
|
171
|
+
### Authorization
|
172
|
+
|
173
|
+
[x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
|
174
|
+
|
175
|
+
### HTTP request headers
|
176
|
+
|
177
|
+
- **Content-Type**: Not defined
|
178
|
+
- **Accept**: Not defined
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
# **payment_links_controller_update**
|
183
|
+
> payment_links_controller_update(bodyid)
|
184
|
+
|
185
|
+
Update a payment link
|
186
|
+
|
187
|
+
### Example
|
188
|
+
```ruby
|
189
|
+
# load the gem
|
190
|
+
require 'devdraft_ai_sdk'
|
191
|
+
# setup authorization
|
192
|
+
DevDraftAI.configure do |config|
|
193
|
+
# Configure API key authorization: x-client-key
|
194
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
195
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
196
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
197
|
+
|
198
|
+
# Configure API key authorization: x-client-secret
|
199
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
200
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
201
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
202
|
+
end
|
203
|
+
|
204
|
+
api_instance = DevDraftAI::PaymentLinksApi.new
|
205
|
+
body = DevDraftAI::UpdatePaymentLinkDto.new # UpdatePaymentLinkDto |
|
206
|
+
id = 'id_example' # String | Payment Link ID
|
207
|
+
|
208
|
+
|
209
|
+
begin
|
210
|
+
#Update a payment link
|
211
|
+
api_instance.payment_links_controller_update(bodyid)
|
212
|
+
rescue DevDraftAI::ApiError => e
|
213
|
+
puts "Exception when calling PaymentLinksApi->payment_links_controller_update: #{e}"
|
214
|
+
end
|
215
|
+
```
|
216
|
+
|
217
|
+
### Parameters
|
218
|
+
|
219
|
+
Name | Type | Description | Notes
|
220
|
+
------------- | ------------- | ------------- | -------------
|
221
|
+
**body** | [**UpdatePaymentLinkDto**](UpdatePaymentLinkDto.md)| |
|
222
|
+
**id** | **String**| Payment Link ID |
|
223
|
+
|
224
|
+
### Return type
|
225
|
+
|
226
|
+
nil (empty response body)
|
227
|
+
|
228
|
+
### Authorization
|
229
|
+
|
230
|
+
[x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
|
231
|
+
|
232
|
+
### HTTP request headers
|
233
|
+
|
234
|
+
- **Content-Type**: application/json
|
235
|
+
- **Accept**: Not defined
|
236
|
+
|
237
|
+
|
238
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# DevDraftAI::PaymentRequestDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**amount** | [**BigDecimal**](BigDecimal.md) | The amount to charge |
|
7
|
+
**currency** | **String** | The currency code |
|
8
|
+
**description** | **String** | Description of the payment |
|
9
|
+
**customer_id** | **String** | Customer reference ID | [optional]
|
10
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# DevDraftAI::PaymentResponseDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | Payment ID |
|
7
|
+
**amount** | [**BigDecimal**](BigDecimal.md) | The amount charged |
|
8
|
+
**currency** | **String** | The currency code |
|
9
|
+
**status** | **String** | Payment status |
|
10
|
+
**timestamp** | **String** | Timestamp of the payment |
|
11
|
+
|
data/docs/ProductsApi.md
ADDED
@@ -0,0 +1,404 @@
|
|
1
|
+
# DevDraftAI::ProductsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.devdraft.ai*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**product_controller_create**](ProductsApi.md#product_controller_create) | **POST** /api/v0/products | Create a new product
|
8
|
+
[**product_controller_find_all**](ProductsApi.md#product_controller_find_all) | **GET** /api/v0/products | Get all products
|
9
|
+
[**product_controller_find_one**](ProductsApi.md#product_controller_find_one) | **GET** /api/v0/products/{id} | Get a product by ID
|
10
|
+
[**product_controller_remove**](ProductsApi.md#product_controller_remove) | **DELETE** /api/v0/products/{id} | Delete a product
|
11
|
+
[**product_controller_update**](ProductsApi.md#product_controller_update) | **PUT** /api/v0/products/{id} | Update a product
|
12
|
+
[**product_controller_upload_image**](ProductsApi.md#product_controller_upload_image) | **POST** /api/v0/products/{id}/images | Upload images for a product
|
13
|
+
|
14
|
+
# **product_controller_create**
|
15
|
+
> product_controller_create(namedescriptionpricecurrencytypeweightunitquantitystock_countstatusproduct_typeimages)
|
16
|
+
|
17
|
+
Create a new product
|
18
|
+
|
19
|
+
Creates a new product with optional image uploads. This endpoint allows you to create products with detailed information and multiple images. ## Use Cases - Add new products to your catalog - Create products with multiple images - Set up product pricing and descriptions ## Supported Image Formats - JPEG/JPG - PNG - WebP - Maximum 10 images per product - Maximum file size: 5MB per image ## Example Request (multipart/form-data) ``` name: \"Premium Widget\" description: \"High-quality widget for all your needs\" price: \"99.99\" images: [file1.jpg, file2.jpg] // Optional, up to 10 images ``` ## Required Fields - `name`: Product name - `price`: Product price (decimal number) ## Optional Fields - `description`: Detailed product description - `images`: Product images (up to 10 files)
|
20
|
+
|
21
|
+
### Example
|
22
|
+
```ruby
|
23
|
+
# load the gem
|
24
|
+
require 'devdraft_ai_sdk'
|
25
|
+
# setup authorization
|
26
|
+
DevDraftAI.configure do |config|
|
27
|
+
# Configure API key authorization: x-client-key
|
28
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
29
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
30
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
31
|
+
|
32
|
+
# Configure API key authorization: x-client-secret
|
33
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
34
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
35
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
36
|
+
end
|
37
|
+
|
38
|
+
api_instance = DevDraftAI::ProductsApi.new
|
39
|
+
name = 'name_example' # String |
|
40
|
+
description = 'description_example' # String |
|
41
|
+
price = DevDraftAI::BigDecimal.new # BigDecimal |
|
42
|
+
currency = 'currency_example' # String |
|
43
|
+
type = 'type_example' # String |
|
44
|
+
weight = DevDraftAI::BigDecimal.new # BigDecimal |
|
45
|
+
unit = 'unit_example' # String |
|
46
|
+
quantity = DevDraftAI::BigDecimal.new # BigDecimal |
|
47
|
+
stock_count = DevDraftAI::BigDecimal.new # BigDecimal |
|
48
|
+
status = 'status_example' # String |
|
49
|
+
product_type = 'product_type_example' # String |
|
50
|
+
images = ['images_example'] # Array<String> |
|
51
|
+
|
52
|
+
|
53
|
+
begin
|
54
|
+
#Create a new product
|
55
|
+
api_instance.product_controller_create(namedescriptionpricecurrencytypeweightunitquantitystock_countstatusproduct_typeimages)
|
56
|
+
rescue DevDraftAI::ApiError => e
|
57
|
+
puts "Exception when calling ProductsApi->product_controller_create: #{e}"
|
58
|
+
end
|
59
|
+
```
|
60
|
+
|
61
|
+
### Parameters
|
62
|
+
|
63
|
+
Name | Type | Description | Notes
|
64
|
+
------------- | ------------- | ------------- | -------------
|
65
|
+
**name** | **String**| |
|
66
|
+
**description** | **String**| |
|
67
|
+
**price** | **BigDecimal**| |
|
68
|
+
**currency** | **String**| |
|
69
|
+
**type** | **String**| |
|
70
|
+
**weight** | **BigDecimal**| |
|
71
|
+
**unit** | **String**| |
|
72
|
+
**quantity** | **BigDecimal**| |
|
73
|
+
**stock_count** | **BigDecimal**| |
|
74
|
+
**status** | **String**| |
|
75
|
+
**product_type** | **String**| |
|
76
|
+
**images** | [**Array<String>**](String.md)| |
|
77
|
+
|
78
|
+
### Return type
|
79
|
+
|
80
|
+
nil (empty response body)
|
81
|
+
|
82
|
+
### Authorization
|
83
|
+
|
84
|
+
[x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
|
85
|
+
|
86
|
+
### HTTP request headers
|
87
|
+
|
88
|
+
- **Content-Type**: multipart/form-data
|
89
|
+
- **Accept**: Not defined
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
# **product_controller_find_all**
|
94
|
+
> product_controller_find_all(opts)
|
95
|
+
|
96
|
+
Get all products
|
97
|
+
|
98
|
+
Retrieves a list of products with pagination. This endpoint allows you to fetch products with optional pagination. ## Use Cases - List all products - Browse product catalog - Implement product search ## Query Parameters - `skip`: Number of records to skip (default: 0) - `take`: Number of records to take (default: 10) ## Example Response ```json { \"data\": [ { \"id\": \"prod_123456\", \"name\": \"Premium Widget\", \"description\": \"High-quality widget for all your needs\", \"price\": \"99.99\", \"images\": [ \"https://storage.example.com/images/file1.jpg\", \"https://storage.example.com/images/file2.jpg\" ], \"createdAt\": \"2024-03-20T10:00:00Z\" } ], \"total\": 100, \"skip\": 0, \"take\": 10 } ```
|
99
|
+
|
100
|
+
### Example
|
101
|
+
```ruby
|
102
|
+
# load the gem
|
103
|
+
require 'devdraft_ai_sdk'
|
104
|
+
# setup authorization
|
105
|
+
DevDraftAI.configure do |config|
|
106
|
+
# Configure API key authorization: x-client-key
|
107
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
108
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
109
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
110
|
+
|
111
|
+
# Configure API key authorization: x-client-secret
|
112
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
113
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
114
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
115
|
+
end
|
116
|
+
|
117
|
+
api_instance = DevDraftAI::ProductsApi.new
|
118
|
+
opts = {
|
119
|
+
skip: DevDraftAI::BigDecimal.new, # BigDecimal | Number of records to skip
|
120
|
+
take: DevDraftAI::BigDecimal.new # BigDecimal | Number of records to take
|
121
|
+
}
|
122
|
+
|
123
|
+
begin
|
124
|
+
#Get all products
|
125
|
+
api_instance.product_controller_find_all(opts)
|
126
|
+
rescue DevDraftAI::ApiError => e
|
127
|
+
puts "Exception when calling ProductsApi->product_controller_find_all: #{e}"
|
128
|
+
end
|
129
|
+
```
|
130
|
+
|
131
|
+
### Parameters
|
132
|
+
|
133
|
+
Name | Type | Description | Notes
|
134
|
+
------------- | ------------- | ------------- | -------------
|
135
|
+
**skip** | **BigDecimal**| Number of records to skip | [optional]
|
136
|
+
**take** | **BigDecimal**| Number of records to take | [optional]
|
137
|
+
|
138
|
+
### Return type
|
139
|
+
|
140
|
+
nil (empty response body)
|
141
|
+
|
142
|
+
### Authorization
|
143
|
+
|
144
|
+
[x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
|
145
|
+
|
146
|
+
### HTTP request headers
|
147
|
+
|
148
|
+
- **Content-Type**: Not defined
|
149
|
+
- **Accept**: Not defined
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
# **product_controller_find_one**
|
154
|
+
> product_controller_find_one(id)
|
155
|
+
|
156
|
+
Get a product by ID
|
157
|
+
|
158
|
+
Retrieves detailed information about a specific product. This endpoint allows you to fetch complete product details including all images. ## Use Cases - View product details - Display product information - Check product availability ## Example Response ```json { \"id\": \"prod_123456\", \"name\": \"Premium Widget\", \"description\": \"High-quality widget for all your needs\", \"price\": \"99.99\", \"images\": [ \"https://storage.example.com/images/file1.jpg\", \"https://storage.example.com/images/file2.jpg\" ], \"createdAt\": \"2024-03-20T10:00:00Z\", \"updatedAt\": \"2024-03-20T10:00:00Z\" } ```
|
159
|
+
|
160
|
+
### Example
|
161
|
+
```ruby
|
162
|
+
# load the gem
|
163
|
+
require 'devdraft_ai_sdk'
|
164
|
+
# setup authorization
|
165
|
+
DevDraftAI.configure do |config|
|
166
|
+
# Configure API key authorization: x-client-key
|
167
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
168
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
169
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
170
|
+
|
171
|
+
# Configure API key authorization: x-client-secret
|
172
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
173
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
174
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
175
|
+
end
|
176
|
+
|
177
|
+
api_instance = DevDraftAI::ProductsApi.new
|
178
|
+
id = 'id_example' # String | Product ID
|
179
|
+
|
180
|
+
|
181
|
+
begin
|
182
|
+
#Get a product by ID
|
183
|
+
api_instance.product_controller_find_one(id)
|
184
|
+
rescue DevDraftAI::ApiError => e
|
185
|
+
puts "Exception when calling ProductsApi->product_controller_find_one: #{e}"
|
186
|
+
end
|
187
|
+
```
|
188
|
+
|
189
|
+
### Parameters
|
190
|
+
|
191
|
+
Name | Type | Description | Notes
|
192
|
+
------------- | ------------- | ------------- | -------------
|
193
|
+
**id** | **String**| Product ID |
|
194
|
+
|
195
|
+
### Return type
|
196
|
+
|
197
|
+
nil (empty response body)
|
198
|
+
|
199
|
+
### Authorization
|
200
|
+
|
201
|
+
[x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
|
202
|
+
|
203
|
+
### HTTP request headers
|
204
|
+
|
205
|
+
- **Content-Type**: Not defined
|
206
|
+
- **Accept**: Not defined
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
# **product_controller_remove**
|
211
|
+
> product_controller_remove(id)
|
212
|
+
|
213
|
+
Delete a product
|
214
|
+
|
215
|
+
Deletes a product and its associated images. This endpoint allows you to remove a product and all its associated data. ## Use Cases - Remove discontinued products - Clean up product catalog - Delete test products ## Notes - This action cannot be undone - All product images will be deleted - Associated data will be removed
|
216
|
+
|
217
|
+
### Example
|
218
|
+
```ruby
|
219
|
+
# load the gem
|
220
|
+
require 'devdraft_ai_sdk'
|
221
|
+
# setup authorization
|
222
|
+
DevDraftAI.configure do |config|
|
223
|
+
# Configure API key authorization: x-client-key
|
224
|
+
config.api_key['x-client-key'] = '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-key'] = 'Bearer'
|
227
|
+
|
228
|
+
# Configure API key authorization: x-client-secret
|
229
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
230
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
231
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
232
|
+
end
|
233
|
+
|
234
|
+
api_instance = DevDraftAI::ProductsApi.new
|
235
|
+
id = 'id_example' # String | Product ID
|
236
|
+
|
237
|
+
|
238
|
+
begin
|
239
|
+
#Delete a product
|
240
|
+
api_instance.product_controller_remove(id)
|
241
|
+
rescue DevDraftAI::ApiError => e
|
242
|
+
puts "Exception when calling ProductsApi->product_controller_remove: #{e}"
|
243
|
+
end
|
244
|
+
```
|
245
|
+
|
246
|
+
### Parameters
|
247
|
+
|
248
|
+
Name | Type | Description | Notes
|
249
|
+
------------- | ------------- | ------------- | -------------
|
250
|
+
**id** | **String**| Product ID |
|
251
|
+
|
252
|
+
### Return type
|
253
|
+
|
254
|
+
nil (empty response body)
|
255
|
+
|
256
|
+
### Authorization
|
257
|
+
|
258
|
+
[x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
|
259
|
+
|
260
|
+
### HTTP request headers
|
261
|
+
|
262
|
+
- **Content-Type**: Not defined
|
263
|
+
- **Accept**: Not defined
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
# **product_controller_update**
|
268
|
+
> product_controller_update(namedescriptionpricecurrencytypeweightunitquantitystock_countstatusproduct_typeimagesid)
|
269
|
+
|
270
|
+
Update a product
|
271
|
+
|
272
|
+
Updates an existing product's information and optionally adds new images. This endpoint allows you to modify product details and manage product images. ## Use Cases - Update product information - Change product pricing - Modify product images - Update product description ## Example Request (multipart/form-data) ``` name: \"Updated Premium Widget\" description: \"Updated description\" price: \"129.99\" images: [file1.jpg, file2.jpg] // Optional, up to 10 images ``` ## Notes - Only include fields that need to be updated - New images will replace existing images - Maximum 10 images per product - Images are automatically optimized
|
273
|
+
|
274
|
+
### Example
|
275
|
+
```ruby
|
276
|
+
# load the gem
|
277
|
+
require 'devdraft_ai_sdk'
|
278
|
+
# setup authorization
|
279
|
+
DevDraftAI.configure do |config|
|
280
|
+
# Configure API key authorization: x-client-key
|
281
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
282
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
283
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
284
|
+
|
285
|
+
# Configure API key authorization: x-client-secret
|
286
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
287
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
288
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
289
|
+
end
|
290
|
+
|
291
|
+
api_instance = DevDraftAI::ProductsApi.new
|
292
|
+
name = 'name_example' # String |
|
293
|
+
description = 'description_example' # String |
|
294
|
+
price = DevDraftAI::BigDecimal.new # BigDecimal |
|
295
|
+
currency = 'currency_example' # String |
|
296
|
+
type = 'type_example' # String |
|
297
|
+
weight = DevDraftAI::BigDecimal.new # BigDecimal |
|
298
|
+
unit = 'unit_example' # String |
|
299
|
+
quantity = DevDraftAI::BigDecimal.new # BigDecimal |
|
300
|
+
stock_count = DevDraftAI::BigDecimal.new # BigDecimal |
|
301
|
+
status = 'status_example' # String |
|
302
|
+
product_type = 'product_type_example' # String |
|
303
|
+
images = ['images_example'] # Array<String> |
|
304
|
+
id = 'id_example' # String | Product ID
|
305
|
+
|
306
|
+
|
307
|
+
begin
|
308
|
+
#Update a product
|
309
|
+
api_instance.product_controller_update(namedescriptionpricecurrencytypeweightunitquantitystock_countstatusproduct_typeimagesid)
|
310
|
+
rescue DevDraftAI::ApiError => e
|
311
|
+
puts "Exception when calling ProductsApi->product_controller_update: #{e}"
|
312
|
+
end
|
313
|
+
```
|
314
|
+
|
315
|
+
### Parameters
|
316
|
+
|
317
|
+
Name | Type | Description | Notes
|
318
|
+
------------- | ------------- | ------------- | -------------
|
319
|
+
**name** | **String**| |
|
320
|
+
**description** | **String**| |
|
321
|
+
**price** | **BigDecimal**| |
|
322
|
+
**currency** | **String**| |
|
323
|
+
**type** | **String**| |
|
324
|
+
**weight** | **BigDecimal**| |
|
325
|
+
**unit** | **String**| |
|
326
|
+
**quantity** | **BigDecimal**| |
|
327
|
+
**stock_count** | **BigDecimal**| |
|
328
|
+
**status** | **String**| |
|
329
|
+
**product_type** | **String**| |
|
330
|
+
**images** | [**Array<String>**](String.md)| |
|
331
|
+
**id** | **String**| Product ID |
|
332
|
+
|
333
|
+
### Return type
|
334
|
+
|
335
|
+
nil (empty response body)
|
336
|
+
|
337
|
+
### Authorization
|
338
|
+
|
339
|
+
[x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
|
340
|
+
|
341
|
+
### HTTP request headers
|
342
|
+
|
343
|
+
- **Content-Type**: multipart/form-data
|
344
|
+
- **Accept**: Not defined
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
# **product_controller_upload_image**
|
349
|
+
> product_controller_upload_image(id)
|
350
|
+
|
351
|
+
Upload images for a product
|
352
|
+
|
353
|
+
Adds new images to an existing product. This endpoint allows you to upload additional images for a product that already exists. ## Use Cases - Add more product images - Update product gallery - Enhance product presentation ## Supported Image Formats - JPEG/JPG - PNG - WebP - Maximum 10 images per upload - Maximum file size: 5MB per image ## Example Request (multipart/form-data) ``` images: [file1.jpg, file2.jpg] // Up to 10 images ``` ## Notes - Images are appended to existing product images - Total images per product cannot exceed 10 - Images are automatically optimized and resized
|
354
|
+
|
355
|
+
### Example
|
356
|
+
```ruby
|
357
|
+
# load the gem
|
358
|
+
require 'devdraft_ai_sdk'
|
359
|
+
# setup authorization
|
360
|
+
DevDraftAI.configure do |config|
|
361
|
+
# Configure API key authorization: x-client-key
|
362
|
+
config.api_key['x-client-key'] = 'YOUR API KEY'
|
363
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
364
|
+
#config.api_key_prefix['x-client-key'] = 'Bearer'
|
365
|
+
|
366
|
+
# Configure API key authorization: x-client-secret
|
367
|
+
config.api_key['x-client-secret'] = 'YOUR API KEY'
|
368
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
369
|
+
#config.api_key_prefix['x-client-secret'] = 'Bearer'
|
370
|
+
end
|
371
|
+
|
372
|
+
api_instance = DevDraftAI::ProductsApi.new
|
373
|
+
id = 'id_example' # String | Product ID
|
374
|
+
|
375
|
+
|
376
|
+
begin
|
377
|
+
#Upload images for a product
|
378
|
+
api_instance.product_controller_upload_image(id)
|
379
|
+
rescue DevDraftAI::ApiError => e
|
380
|
+
puts "Exception when calling ProductsApi->product_controller_upload_image: #{e}"
|
381
|
+
end
|
382
|
+
```
|
383
|
+
|
384
|
+
### Parameters
|
385
|
+
|
386
|
+
Name | Type | Description | Notes
|
387
|
+
------------- | ------------- | ------------- | -------------
|
388
|
+
**id** | **String**| Product ID |
|
389
|
+
|
390
|
+
### Return type
|
391
|
+
|
392
|
+
nil (empty response body)
|
393
|
+
|
394
|
+
### Authorization
|
395
|
+
|
396
|
+
[x-client-key](../README.md#x-client-key), [x-client-secret](../README.md#x-client-secret)
|
397
|
+
|
398
|
+
### HTTP request headers
|
399
|
+
|
400
|
+
- **Content-Type**: Not defined
|
401
|
+
- **Accept**: Not defined
|
402
|
+
|
403
|
+
|
404
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# DevDraftAI::PublicHealthResponseDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**status** | **String** | Basic health status of the service. Returns \"ok\" when the service is responding. |
|
7
|
+
**timestamp** | **DateTime** | ISO 8601 timestamp when the health check was performed. |
|
8
|
+
**version** | **String** | Current version of the API service. |
|
9
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# DevDraftAI::RefundResponseDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | Refund ID |
|
7
|
+
**payment_id** | **String** | Original payment ID |
|
8
|
+
**amount** | [**BigDecimal**](BigDecimal.md) | The amount refunded |
|
9
|
+
**status** | **String** | Refund status |
|
10
|
+
**timestamp** | **String** | Timestamp of the refund |
|
11
|
+
|