devdraft 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +160 -191
- data/Rakefile +2 -0
- data/devdraft-1.0.0.gem +0 -0
- data/{devdraft_ai_sdk.gemspec → devdraft.gemspec} +15 -11
- data/docs/APIHealthApi.md +82 -30
- data/docs/AggregatedBalanceResponse.md +19 -6
- data/docs/AllBalancesResponse.md +19 -6
- data/docs/AppBalancesApi.md +125 -65
- data/docs/BridgeFiatPaymentRail.md +15 -0
- data/docs/BridgePaymentRail.md +12 -3
- data/docs/CreateBankPaymentIntentDto.md +49 -21
- data/docs/CreateCustomerDto.md +25 -9
- data/docs/CreateDirectBankTransferDto.md +29 -11
- data/docs/CreateDirectWalletTransferDto.md +21 -7
- data/docs/CreateExternalBankTransferDto.md +40 -0
- data/docs/CreateExternalStablecoinTransferDto.md +28 -0
- data/docs/CreateInvoiceDto.md +45 -19
- data/docs/CreateLiquidationAddressDto.md +43 -18
- data/docs/CreatePaymentLinkDto.md +53 -28
- data/docs/CreateStablePaymentIntentDto.md +43 -18
- data/docs/CreateStablecoinConversionDto.md +23 -8
- data/docs/CreateTaxDto.md +26 -0
- data/docs/CreateWebhookDto.md +23 -8
- data/docs/CustomerStatus.md +12 -3
- data/docs/CustomerType.md +15 -0
- data/docs/CustomersApi.md +187 -114
- data/docs/DestinationCurrency.md +12 -3
- data/docs/ExchangeRateResponseDto.md +25 -9
- data/docs/ExchangeRatesApi.md +130 -72
- data/docs/FiatCurrency.md +12 -3
- data/docs/HealthResponseDto.md +25 -9
- data/docs/InvoiceProductDto.md +17 -5
- data/docs/InvoicesApi.md +177 -104
- data/docs/LiquidationAddressResponseDto.md +41 -17
- data/docs/LiquidationAddressesApi.md +115 -61
- data/docs/PaymentIntentsApi.md +93 -57
- data/docs/PaymentLinkProductDto.md +17 -5
- data/docs/PaymentLinksApi.md +175 -102
- data/docs/PaymentRequestDto.md +21 -7
- data/docs/PaymentResponseDto.md +23 -8
- data/docs/ProductsApi.md +307 -194
- data/docs/PublicHealthResponseDto.md +19 -6
- data/docs/RefundResponseDto.md +23 -8
- data/docs/StableCoinCurrency.md +12 -3
- data/docs/TaxControllerCreate201Response.md +30 -0
- data/docs/TaxControllerDeleteWithoutId400Response.md +22 -0
- data/docs/TaxControllerUpdateWithoutId400Response.md +22 -0
- data/docs/TaxesApi.md +374 -122
- data/docs/TestPaymentsApi.md +150 -60
- data/docs/TransfersApi.md +274 -72
- data/docs/UpdateCustomerDto.md +25 -9
- data/docs/UpdateTaxDto.md +26 -0
- data/docs/UpdateWebhookDto.md +23 -8
- data/docs/WalletsApi.md +44 -24
- data/docs/WebhookResponseDto.md +29 -11
- data/docs/WebhooksApi.md +225 -134
- data/git_push.sh +41 -28
- data/lib/devdraft/api/api_health_api.rb +32 -16
- data/lib/devdraft/api/app_balances_api.rb +45 -22
- data/lib/devdraft/api/customers_api.rb +124 -71
- data/lib/devdraft/api/exchange_rates_api.rb +49 -26
- data/lib/devdraft/api/invoices_api.rb +89 -53
- data/lib/devdraft/api/liquidation_addresses_api.rb +70 -44
- data/lib/devdraft/api/payment_intents_api.rb +62 -40
- data/lib/devdraft/api/payment_links_api.rb +85 -49
- data/lib/devdraft/api/products_api.rb +214 -216
- data/lib/devdraft/api/taxes_api.rb +257 -66
- data/lib/devdraft/api/test_payments_api.rb +70 -44
- data/lib/devdraft/api/transfers_api.rb +206 -46
- data/lib/devdraft/api/wallets_api.rb +18 -9
- data/lib/devdraft/api/webhooks_api.rb +109 -66
- data/lib/devdraft/api_client.rb +76 -71
- data/lib/devdraft/api_error.rb +5 -4
- data/lib/devdraft/api_model_base.rb +88 -0
- data/lib/devdraft/configuration.rb +121 -18
- data/lib/devdraft/models/aggregated_balance_response.rb +68 -101
- data/lib/devdraft/models/all_balances_response.rb +76 -99
- data/lib/devdraft/models/bridge_fiat_payment_rail.rb +45 -0
- data/lib/devdraft/models/bridge_payment_rail.rb +36 -24
- data/lib/devdraft/models/create_bank_payment_intent_dto.rb +191 -114
- data/lib/devdraft/models/create_customer_dto.rb +123 -113
- data/lib/devdraft/models/create_direct_bank_transfer_dto.rb +105 -104
- data/lib/devdraft/models/create_direct_wallet_transfer_dto.rb +89 -100
- data/lib/devdraft/models/create_external_bank_transfer_dto.rb +505 -0
- data/lib/devdraft/models/create_external_stablecoin_transfer_dto.rb +266 -0
- data/lib/devdraft/models/create_invoice_dto.rb +151 -121
- data/lib/devdraft/models/create_liquidation_address_dto.rb +195 -115
- data/lib/devdraft/models/create_payment_link_dto.rb +192 -214
- data/lib/devdraft/models/create_stable_payment_intent_dto.rb +324 -111
- data/lib/devdraft/models/create_stablecoin_conversion_dto.rb +102 -101
- data/lib/devdraft/models/create_tax_dto.rb +281 -0
- data/lib/devdraft/models/create_webhook_dto.rb +104 -101
- data/lib/devdraft/models/customer_status.rb +23 -10
- data/lib/devdraft/models/customer_type.rb +45 -0
- data/lib/devdraft/models/destination_currency.rb +27 -15
- data/lib/devdraft/models/exchange_rate_response_dto.rb +103 -102
- data/lib/devdraft/models/fiat_currency.rb +22 -10
- data/lib/devdraft/models/health_response_dto.rb +99 -106
- data/lib/devdraft/models/invoice_product_dto.rb +63 -98
- data/lib/devdraft/models/liquidation_address_response_dto.rb +147 -110
- data/lib/devdraft/models/payment_link_product_dto.rb +70 -98
- data/lib/devdraft/models/payment_request_dto.rb +77 -100
- data/lib/devdraft/models/payment_response_dto.rb +102 -101
- data/lib/devdraft/models/public_health_response_dto.rb +68 -101
- data/lib/devdraft/models/refund_response_dto.rb +102 -101
- data/lib/devdraft/models/stable_coin_currency.rb +21 -9
- data/lib/devdraft/models/tax_controller_create201_response.rb +201 -0
- data/lib/devdraft/models/tax_controller_delete_without_id400_response.rb +165 -0
- data/lib/devdraft/models/tax_controller_update_without_id400_response.rb +165 -0
- data/lib/devdraft/models/update_customer_dto.rb +117 -113
- data/lib/devdraft/models/update_tax_dto.rb +256 -0
- data/lib/devdraft/models/update_webhook_dto.rb +70 -101
- data/lib/devdraft/models/webhook_response_dto.rb +140 -103
- data/lib/devdraft/version.rb +6 -5
- data/lib/devdraft.rb +18 -27
- data/spec/api/api_health_api_spec.rb +10 -9
- data/spec/api/app_balances_api_spec.rb +11 -10
- data/spec/api/customers_api_spec.rb +25 -24
- data/spec/api/exchange_rates_api_spec.rb +11 -10
- data/spec/api/invoices_api_spec.rb +16 -15
- data/spec/api/liquidation_addresses_api_spec.rb +13 -12
- data/spec/api/payment_intents_api_spec.rb +12 -11
- data/spec/api/payment_links_api_spec.rb +14 -13
- data/spec/api/products_api_spec.rb +41 -40
- data/spec/api/taxes_api_spec.rb +51 -21
- data/spec/api/test_payments_api_spec.rb +14 -13
- data/spec/api/transfers_api_spec.rb +36 -13
- data/spec/api/wallets_api_spec.rb +9 -8
- data/spec/api/webhooks_api_spec.rb +20 -19
- data/spec/models/aggregated_balance_response_spec.rb +15 -19
- data/spec/models/all_balances_response_spec.rb +14 -18
- data/spec/models/bridge_fiat_payment_rail_spec.rb +30 -0
- data/spec/models/bridge_payment_rail_spec.rb +11 -15
- data/spec/models/create_bank_payment_intent_dto_spec.rb +29 -33
- data/spec/models/create_customer_dto_spec.rb +17 -25
- data/spec/models/create_direct_bank_transfer_dto_spec.rb +19 -23
- data/spec/models/create_direct_wallet_transfer_dto_spec.rb +15 -19
- data/spec/models/create_external_bank_transfer_dto_spec.rb +102 -0
- data/spec/models/create_external_stablecoin_transfer_dto_spec.rb +66 -0
- data/spec/models/create_invoice_dto_spec.rb +31 -35
- data/spec/models/create_liquidation_address_dto_spec.rb +28 -32
- data/spec/models/create_payment_link_dto_spec.rb +34 -76
- data/spec/models/create_stable_payment_intent_dto_spec.rb +26 -30
- data/spec/models/create_stablecoin_conversion_dto_spec.rb +16 -20
- data/spec/models/create_tax_dto_spec.rb +60 -0
- data/spec/models/create_webhook_dto_spec.rb +16 -20
- data/spec/models/customer_status_spec.rb +11 -15
- data/spec/models/customer_type_spec.rb +30 -0
- data/spec/models/destination_currency_spec.rb +11 -15
- data/spec/models/exchange_rate_response_dto_spec.rb +17 -21
- data/spec/models/fiat_currency_spec.rb +11 -15
- data/spec/models/health_response_dto_spec.rb +19 -23
- data/spec/models/invoice_product_dto_spec.rb +13 -17
- data/spec/models/liquidation_address_response_dto_spec.rb +25 -29
- data/spec/models/payment_link_product_dto_spec.rb +13 -17
- data/spec/models/payment_request_dto_spec.rb +15 -19
- data/spec/models/payment_response_dto_spec.rb +16 -20
- data/spec/models/public_health_response_dto_spec.rb +15 -19
- data/spec/models/refund_response_dto_spec.rb +16 -20
- data/spec/models/stable_coin_currency_spec.rb +11 -15
- data/spec/models/tax_controller_create201_response_spec.rb +72 -0
- data/spec/models/tax_controller_delete_without_id400_response_spec.rb +48 -0
- data/spec/models/tax_controller_update_without_id400_response_spec.rb +48 -0
- data/spec/models/update_customer_dto_spec.rb +17 -25
- data/spec/models/update_tax_dto_spec.rb +60 -0
- data/spec/models/update_webhook_dto_spec.rb +16 -20
- data/spec/models/webhook_response_dto_spec.rb +19 -23
- data/spec/spec_helper.rb +5 -4
- metadata +49 -116
- data/docs/AllOfAllBalancesResponseEurc.md +0 -9
- data/docs/AllOfAllBalancesResponseUsdc.md +0 -9
- data/docs/AllOfCreateBankPaymentIntentDtoDestinationCurrency.md +0 -6
- data/docs/AllOfCreateBankPaymentIntentDtoDestinationNetwork.md +0 -6
- data/docs/AllOfCreateBankPaymentIntentDtoSourceCurrency.md +0 -6
- data/docs/AllOfCreateBankPaymentIntentDtoSourcePaymentRail.md +0 -6
- data/docs/AllOfCreateCustomerDtoStatus.md +0 -6
- data/docs/AllOfCreateLiquidationAddressDtoDestinationCurrency.md +0 -6
- data/docs/AllOfCreateLiquidationAddressDtoDestinationPaymentRail.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoDestinationCurrency.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoDestinationNetwork.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoSourceCurrency.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoSourceNetwork.md +0 -6
- data/docs/AllOfUpdateCustomerDtoStatus.md +0 -6
- data/docs/CreateProductDto.md +0 -18
- data/docs/CreateTaxInput.md +0 -6
- data/docs/UpdatePaymentLinkDto.md +0 -6
- data/docs/UpdatePreferenceInput.md +0 -6
- data/docs/UpdateProductDto.md +0 -18
- data/docs/UpdateTaxInput.md +0 -6
- data/example.rb +0 -94
- data/lib/devdraft/models/all_of_all_balances_response_eurc.rb +0 -283
- data/lib/devdraft/models/all_of_all_balances_response_usdc.rb +0 -283
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_network.rb +0 -202
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_payment_rail.rb +0 -202
- data/lib/devdraft/models/all_of_create_customer_dto_status.rb +0 -202
- data/lib/devdraft/models/all_of_create_liquidation_address_dto_destination_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_liquidation_address_dto_destination_payment_rail.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_network.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_network.rb +0 -202
- data/lib/devdraft/models/all_of_update_customer_dto_status.rb +0 -202
- data/lib/devdraft/models/create_product_dto.rb +0 -370
- data/lib/devdraft/models/create_tax_input.rb +0 -197
- data/lib/devdraft/models/update_payment_link_dto.rb +0 -197
- data/lib/devdraft/models/update_preference_input.rb +0 -197
- data/lib/devdraft/models/update_product_dto.rb +0 -355
- data/lib/devdraft/models/update_tax_input.rb +0 -197
- data/spec/api_client_spec.rb +0 -225
- data/spec/base_object_spec.rb +0 -109
- data/spec/configuration_spec.rb +0 -41
- data/spec/models/all_of_all_balances_response_eurc_spec.rb +0 -56
- data/spec/models/all_of_all_balances_response_usdc_spec.rb +0 -56
- data/spec/models/all_of_create_bank_payment_intent_dto_destination_currency_spec.rb +0 -34
- data/spec/models/all_of_create_bank_payment_intent_dto_destination_network_spec.rb +0 -34
- data/spec/models/all_of_create_bank_payment_intent_dto_source_currency_spec.rb +0 -34
- data/spec/models/all_of_create_bank_payment_intent_dto_source_payment_rail_spec.rb +0 -34
- data/spec/models/all_of_create_customer_dto_status_spec.rb +0 -34
- data/spec/models/all_of_create_liquidation_address_dto_destination_currency_spec.rb +0 -34
- data/spec/models/all_of_create_liquidation_address_dto_destination_payment_rail_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_destination_currency_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_destination_network_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_source_currency_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_source_network_spec.rb +0 -34
- data/spec/models/all_of_update_customer_dto_status_spec.rb +0 -34
- data/spec/models/create_product_dto_spec.rb +0 -110
- data/spec/models/create_tax_input_spec.rb +0 -34
- data/spec/models/update_payment_link_dto_spec.rb +0 -34
- data/spec/models/update_preference_input_spec.rb +0 -34
- data/spec/models/update_product_dto_spec.rb +0 -110
- data/spec/models/update_tax_input_spec.rb +0 -34
|
@@ -3,16 +3,18 @@
|
|
|
3
3
|
|
|
4
4
|
# A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
|
|
5
5
|
|
|
6
|
-
OpenAPI
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.17.0
|
|
7
10
|
|
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 3.0.65
|
|
10
11
|
=end
|
|
11
12
|
|
|
12
13
|
require 'date'
|
|
14
|
+
require 'time'
|
|
13
15
|
|
|
14
|
-
module
|
|
15
|
-
class WebhookResponseDto
|
|
16
|
+
module Devdraft
|
|
17
|
+
class WebhookResponseDto < ApiModelBase
|
|
16
18
|
# Unique identifier for the webhook
|
|
17
19
|
attr_accessor :id
|
|
18
20
|
|
|
@@ -51,16 +53,26 @@ module DevDraftAI
|
|
|
51
53
|
}
|
|
52
54
|
end
|
|
53
55
|
|
|
56
|
+
# Returns attribute mapping this model knows about
|
|
57
|
+
def self.acceptable_attribute_map
|
|
58
|
+
attribute_map
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Returns all the JSON keys this model knows about
|
|
62
|
+
def self.acceptable_attributes
|
|
63
|
+
acceptable_attribute_map.values
|
|
64
|
+
end
|
|
65
|
+
|
|
54
66
|
# Attribute type mapping.
|
|
55
67
|
def self.openapi_types
|
|
56
68
|
{
|
|
57
|
-
:'id' => :'
|
|
58
|
-
:'name' => :'
|
|
59
|
-
:'url' => :'
|
|
60
|
-
:'is_active' => :'
|
|
61
|
-
:'encrypted' => :'
|
|
62
|
-
:'created_at' => :'
|
|
63
|
-
:'updated_at' => :'
|
|
69
|
+
:'id' => :'String',
|
|
70
|
+
:'name' => :'String',
|
|
71
|
+
:'url' => :'String',
|
|
72
|
+
:'is_active' => :'Boolean',
|
|
73
|
+
:'encrypted' => :'Boolean',
|
|
74
|
+
:'created_at' => :'String',
|
|
75
|
+
:'updated_at' => :'String',
|
|
64
76
|
:'delivery_stats' => :'Object'
|
|
65
77
|
}
|
|
66
78
|
end
|
|
@@ -70,58 +82,76 @@ module DevDraftAI
|
|
|
70
82
|
Set.new([
|
|
71
83
|
])
|
|
72
84
|
end
|
|
73
|
-
|
|
85
|
+
|
|
74
86
|
# Initializes the object
|
|
75
87
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
76
88
|
def initialize(attributes = {})
|
|
77
89
|
if (!attributes.is_a?(Hash))
|
|
78
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
|
90
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Devdraft::WebhookResponseDto` initialize method"
|
|
79
91
|
end
|
|
80
92
|
|
|
81
93
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
94
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
82
95
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
83
|
-
if (!
|
|
84
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
|
96
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
97
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Devdraft::WebhookResponseDto`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
85
98
|
end
|
|
86
99
|
h[k.to_sym] = v
|
|
87
100
|
}
|
|
88
101
|
|
|
89
102
|
if attributes.key?(:'id')
|
|
90
103
|
self.id = attributes[:'id']
|
|
104
|
+
else
|
|
105
|
+
self.id = nil
|
|
91
106
|
end
|
|
92
107
|
|
|
93
108
|
if attributes.key?(:'name')
|
|
94
109
|
self.name = attributes[:'name']
|
|
110
|
+
else
|
|
111
|
+
self.name = nil
|
|
95
112
|
end
|
|
96
113
|
|
|
97
114
|
if attributes.key?(:'url')
|
|
98
115
|
self.url = attributes[:'url']
|
|
116
|
+
else
|
|
117
|
+
self.url = nil
|
|
99
118
|
end
|
|
100
119
|
|
|
101
120
|
if attributes.key?(:'is_active')
|
|
102
121
|
self.is_active = attributes[:'is_active']
|
|
122
|
+
else
|
|
123
|
+
self.is_active = nil
|
|
103
124
|
end
|
|
104
125
|
|
|
105
126
|
if attributes.key?(:'encrypted')
|
|
106
127
|
self.encrypted = attributes[:'encrypted']
|
|
128
|
+
else
|
|
129
|
+
self.encrypted = nil
|
|
107
130
|
end
|
|
108
131
|
|
|
109
132
|
if attributes.key?(:'created_at')
|
|
110
133
|
self.created_at = attributes[:'created_at']
|
|
134
|
+
else
|
|
135
|
+
self.created_at = nil
|
|
111
136
|
end
|
|
112
137
|
|
|
113
138
|
if attributes.key?(:'updated_at')
|
|
114
139
|
self.updated_at = attributes[:'updated_at']
|
|
140
|
+
else
|
|
141
|
+
self.updated_at = nil
|
|
115
142
|
end
|
|
116
143
|
|
|
117
144
|
if attributes.key?(:'delivery_stats')
|
|
118
145
|
self.delivery_stats = attributes[:'delivery_stats']
|
|
146
|
+
else
|
|
147
|
+
self.delivery_stats = nil
|
|
119
148
|
end
|
|
120
149
|
end
|
|
121
150
|
|
|
122
151
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
123
152
|
# @return Array for valid properties with the reasons
|
|
124
153
|
def list_invalid_properties
|
|
154
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
125
155
|
invalid_properties = Array.new
|
|
126
156
|
if @id.nil?
|
|
127
157
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
@@ -161,6 +191,7 @@ module DevDraftAI
|
|
|
161
191
|
# Check to see if the all the properties in the model are valid
|
|
162
192
|
# @return true if the model is valid
|
|
163
193
|
def valid?
|
|
194
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
164
195
|
return false if @id.nil?
|
|
165
196
|
return false if @name.nil?
|
|
166
197
|
return false if @url.nil?
|
|
@@ -172,6 +203,86 @@ module DevDraftAI
|
|
|
172
203
|
true
|
|
173
204
|
end
|
|
174
205
|
|
|
206
|
+
# Custom attribute writer method with validation
|
|
207
|
+
# @param [Object] id Value to be assigned
|
|
208
|
+
def id=(id)
|
|
209
|
+
if id.nil?
|
|
210
|
+
fail ArgumentError, 'id cannot be nil'
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
@id = id
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Custom attribute writer method with validation
|
|
217
|
+
# @param [Object] name Value to be assigned
|
|
218
|
+
def name=(name)
|
|
219
|
+
if name.nil?
|
|
220
|
+
fail ArgumentError, 'name cannot be nil'
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
@name = name
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Custom attribute writer method with validation
|
|
227
|
+
# @param [Object] url Value to be assigned
|
|
228
|
+
def url=(url)
|
|
229
|
+
if url.nil?
|
|
230
|
+
fail ArgumentError, 'url cannot be nil'
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
@url = url
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
# Custom attribute writer method with validation
|
|
237
|
+
# @param [Object] is_active Value to be assigned
|
|
238
|
+
def is_active=(is_active)
|
|
239
|
+
if is_active.nil?
|
|
240
|
+
fail ArgumentError, 'is_active cannot be nil'
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
@is_active = is_active
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
# Custom attribute writer method with validation
|
|
247
|
+
# @param [Object] encrypted Value to be assigned
|
|
248
|
+
def encrypted=(encrypted)
|
|
249
|
+
if encrypted.nil?
|
|
250
|
+
fail ArgumentError, 'encrypted cannot be nil'
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
@encrypted = encrypted
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Custom attribute writer method with validation
|
|
257
|
+
# @param [Object] created_at Value to be assigned
|
|
258
|
+
def created_at=(created_at)
|
|
259
|
+
if created_at.nil?
|
|
260
|
+
fail ArgumentError, 'created_at cannot be nil'
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
@created_at = created_at
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# Custom attribute writer method with validation
|
|
267
|
+
# @param [Object] updated_at Value to be assigned
|
|
268
|
+
def updated_at=(updated_at)
|
|
269
|
+
if updated_at.nil?
|
|
270
|
+
fail ArgumentError, 'updated_at cannot be nil'
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
@updated_at = updated_at
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
# Custom attribute writer method with validation
|
|
277
|
+
# @param [Object] delivery_stats Value to be assigned
|
|
278
|
+
def delivery_stats=(delivery_stats)
|
|
279
|
+
if delivery_stats.nil?
|
|
280
|
+
fail ArgumentError, 'delivery_stats cannot be nil'
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
@delivery_stats = delivery_stats
|
|
284
|
+
end
|
|
285
|
+
|
|
175
286
|
# Checks equality by comparing each attribute.
|
|
176
287
|
# @param [Object] Object to be compared
|
|
177
288
|
def ==(o)
|
|
@@ -203,82 +314,23 @@ module DevDraftAI
|
|
|
203
314
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
204
315
|
# @return [Object] Returns the model itself
|
|
205
316
|
def self.build_from_hash(attributes)
|
|
206
|
-
new.build_from_hash(attributes)
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
# Builds the object from hash
|
|
210
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
211
|
-
# @return [Object] Returns the model itself
|
|
212
|
-
def build_from_hash(attributes)
|
|
213
317
|
return nil unless attributes.is_a?(Hash)
|
|
214
|
-
|
|
215
|
-
|
|
318
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
319
|
+
transformed_hash = {}
|
|
320
|
+
openapi_types.each_pair do |key, type|
|
|
321
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
322
|
+
transformed_hash["#{key}"] = nil
|
|
323
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
216
324
|
# check to ensure the input is an array given that the attribute
|
|
217
325
|
# is documented as an array but the input is not
|
|
218
|
-
if attributes[
|
|
219
|
-
|
|
326
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
327
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
220
328
|
end
|
|
221
|
-
elsif !attributes[
|
|
222
|
-
|
|
223
|
-
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
224
|
-
self.send("#{key}=", nil)
|
|
329
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
330
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
225
331
|
end
|
|
226
332
|
end
|
|
227
|
-
|
|
228
|
-
self
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
# Deserializes the data based on type
|
|
232
|
-
# @param string type Data type
|
|
233
|
-
# @param string value Value to be deserialized
|
|
234
|
-
# @return [Object] Deserialized data
|
|
235
|
-
def _deserialize(type, value)
|
|
236
|
-
case type.to_sym
|
|
237
|
-
when :DateTime
|
|
238
|
-
DateTime.parse(value)
|
|
239
|
-
when :Date
|
|
240
|
-
Date.parse(value)
|
|
241
|
-
when :String
|
|
242
|
-
value.to_s
|
|
243
|
-
when :Integer
|
|
244
|
-
value.to_i
|
|
245
|
-
when :Float
|
|
246
|
-
value.to_f
|
|
247
|
-
when :Boolean
|
|
248
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
249
|
-
true
|
|
250
|
-
else
|
|
251
|
-
false
|
|
252
|
-
end
|
|
253
|
-
when :Object
|
|
254
|
-
# generic object (usually a Hash), return directly
|
|
255
|
-
value
|
|
256
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
257
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
258
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
259
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
260
|
-
k_type = Regexp.last_match[:k_type]
|
|
261
|
-
v_type = Regexp.last_match[:v_type]
|
|
262
|
-
{}.tap do |hash|
|
|
263
|
-
value.each do |k, v|
|
|
264
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
265
|
-
end
|
|
266
|
-
end
|
|
267
|
-
else # model
|
|
268
|
-
DevDraftAI.const_get(type).build_from_hash(value)
|
|
269
|
-
end
|
|
270
|
-
end
|
|
271
|
-
|
|
272
|
-
# Returns the string representation of the object
|
|
273
|
-
# @return [String] String presentation of the object
|
|
274
|
-
def to_s
|
|
275
|
-
to_hash.to_s
|
|
276
|
-
end
|
|
277
|
-
|
|
278
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
279
|
-
# @return [Hash] Returns the object in the form of hash
|
|
280
|
-
def to_body
|
|
281
|
-
to_hash
|
|
333
|
+
new(transformed_hash)
|
|
282
334
|
end
|
|
283
335
|
|
|
284
336
|
# Returns the object in the form of hash
|
|
@@ -297,21 +349,6 @@ module DevDraftAI
|
|
|
297
349
|
hash
|
|
298
350
|
end
|
|
299
351
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
# @param [Object] value Any valid value
|
|
303
|
-
# @return [Hash] Returns the value in the form of hash
|
|
304
|
-
def _to_hash(value)
|
|
305
|
-
if value.is_a?(Array)
|
|
306
|
-
value.compact.map { |v| _to_hash(v) }
|
|
307
|
-
elsif value.is_a?(Hash)
|
|
308
|
-
{}.tap do |hash|
|
|
309
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
310
|
-
end
|
|
311
|
-
elsif value.respond_to? :to_hash
|
|
312
|
-
value.to_hash
|
|
313
|
-
else
|
|
314
|
-
value
|
|
315
|
-
end
|
|
316
|
-
end end
|
|
352
|
+
end
|
|
353
|
+
|
|
317
354
|
end
|
data/lib/devdraft/version.rb
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#Devdraft Payment & Business Management API
|
|
2
|
+
#Devdraft AI Payment & Business Management API
|
|
3
3
|
|
|
4
4
|
# A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
|
|
5
5
|
|
|
6
|
-
OpenAPI
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.17.0
|
|
7
10
|
|
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 3.0.65
|
|
10
11
|
=end
|
|
11
12
|
|
|
12
13
|
module Devdraft
|
|
13
|
-
VERSION = '1.0.
|
|
14
|
+
VERSION = '1.0.3'
|
|
14
15
|
end
|
data/lib/devdraft.rb
CHANGED
|
@@ -1,51 +1,42 @@
|
|
|
1
1
|
=begin
|
|
2
|
-
#Devdraft Payment & Business Management API
|
|
2
|
+
#Devdraft AI Payment & Business Management API
|
|
3
3
|
|
|
4
4
|
# A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
|
|
5
5
|
|
|
6
|
-
OpenAPI
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.17.0
|
|
7
10
|
|
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 3.0.65
|
|
10
11
|
=end
|
|
11
12
|
|
|
12
13
|
# Common files
|
|
13
14
|
require 'devdraft/api_client'
|
|
14
15
|
require 'devdraft/api_error'
|
|
16
|
+
require 'devdraft/api_model_base'
|
|
15
17
|
require 'devdraft/version'
|
|
16
18
|
require 'devdraft/configuration'
|
|
17
19
|
|
|
18
20
|
# Models
|
|
19
21
|
require 'devdraft/models/aggregated_balance_response'
|
|
20
22
|
require 'devdraft/models/all_balances_response'
|
|
21
|
-
require 'devdraft/models/
|
|
22
|
-
require 'devdraft/models/all_of_all_balances_response_usdc'
|
|
23
|
-
require 'devdraft/models/all_of_create_bank_payment_intent_dto_destination_currency'
|
|
24
|
-
require 'devdraft/models/all_of_create_bank_payment_intent_dto_destination_network'
|
|
25
|
-
require 'devdraft/models/all_of_create_bank_payment_intent_dto_source_currency'
|
|
26
|
-
require 'devdraft/models/all_of_create_bank_payment_intent_dto_source_payment_rail'
|
|
27
|
-
require 'devdraft/models/all_of_create_customer_dto_status'
|
|
28
|
-
require 'devdraft/models/all_of_create_liquidation_address_dto_destination_currency'
|
|
29
|
-
require 'devdraft/models/all_of_create_liquidation_address_dto_destination_payment_rail'
|
|
30
|
-
require 'devdraft/models/all_of_create_stable_payment_intent_dto_destination_currency'
|
|
31
|
-
require 'devdraft/models/all_of_create_stable_payment_intent_dto_destination_network'
|
|
32
|
-
require 'devdraft/models/all_of_create_stable_payment_intent_dto_source_currency'
|
|
33
|
-
require 'devdraft/models/all_of_create_stable_payment_intent_dto_source_network'
|
|
34
|
-
require 'devdraft/models/all_of_update_customer_dto_status'
|
|
23
|
+
require 'devdraft/models/bridge_fiat_payment_rail'
|
|
35
24
|
require 'devdraft/models/bridge_payment_rail'
|
|
36
25
|
require 'devdraft/models/create_bank_payment_intent_dto'
|
|
37
26
|
require 'devdraft/models/create_customer_dto'
|
|
38
27
|
require 'devdraft/models/create_direct_bank_transfer_dto'
|
|
39
28
|
require 'devdraft/models/create_direct_wallet_transfer_dto'
|
|
29
|
+
require 'devdraft/models/create_external_bank_transfer_dto'
|
|
30
|
+
require 'devdraft/models/create_external_stablecoin_transfer_dto'
|
|
40
31
|
require 'devdraft/models/create_invoice_dto'
|
|
41
32
|
require 'devdraft/models/create_liquidation_address_dto'
|
|
42
33
|
require 'devdraft/models/create_payment_link_dto'
|
|
43
|
-
require 'devdraft/models/create_product_dto'
|
|
44
34
|
require 'devdraft/models/create_stable_payment_intent_dto'
|
|
45
35
|
require 'devdraft/models/create_stablecoin_conversion_dto'
|
|
46
|
-
require 'devdraft/models/
|
|
36
|
+
require 'devdraft/models/create_tax_dto'
|
|
47
37
|
require 'devdraft/models/create_webhook_dto'
|
|
48
38
|
require 'devdraft/models/customer_status'
|
|
39
|
+
require 'devdraft/models/customer_type'
|
|
49
40
|
require 'devdraft/models/destination_currency'
|
|
50
41
|
require 'devdraft/models/exchange_rate_response_dto'
|
|
51
42
|
require 'devdraft/models/fiat_currency'
|
|
@@ -58,11 +49,11 @@ require 'devdraft/models/payment_response_dto'
|
|
|
58
49
|
require 'devdraft/models/public_health_response_dto'
|
|
59
50
|
require 'devdraft/models/refund_response_dto'
|
|
60
51
|
require 'devdraft/models/stable_coin_currency'
|
|
52
|
+
require 'devdraft/models/tax_controller_create201_response'
|
|
53
|
+
require 'devdraft/models/tax_controller_delete_without_id400_response'
|
|
54
|
+
require 'devdraft/models/tax_controller_update_without_id400_response'
|
|
61
55
|
require 'devdraft/models/update_customer_dto'
|
|
62
|
-
require 'devdraft/models/
|
|
63
|
-
require 'devdraft/models/update_preference_input'
|
|
64
|
-
require 'devdraft/models/update_product_dto'
|
|
65
|
-
require 'devdraft/models/update_tax_input'
|
|
56
|
+
require 'devdraft/models/update_tax_dto'
|
|
66
57
|
require 'devdraft/models/update_webhook_dto'
|
|
67
58
|
require 'devdraft/models/webhook_response_dto'
|
|
68
59
|
|
|
@@ -82,10 +73,10 @@ require 'devdraft/api/transfers_api'
|
|
|
82
73
|
require 'devdraft/api/wallets_api'
|
|
83
74
|
require 'devdraft/api/webhooks_api'
|
|
84
75
|
|
|
85
|
-
module
|
|
76
|
+
module Devdraft
|
|
86
77
|
class << self
|
|
87
78
|
# Customize default settings for the SDK using block.
|
|
88
|
-
#
|
|
79
|
+
# Devdraft.configure do |config|
|
|
89
80
|
# config.username = "xxx"
|
|
90
81
|
# config.password = "xxx"
|
|
91
82
|
# end
|
|
@@ -98,4 +89,4 @@ module DevDraft
|
|
|
98
89
|
end
|
|
99
90
|
end
|
|
100
91
|
end
|
|
101
|
-
end
|
|
92
|
+
end
|
|
@@ -3,22 +3,23 @@
|
|
|
3
3
|
|
|
4
4
|
# A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
|
|
5
5
|
|
|
6
|
-
OpenAPI
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.17.0
|
|
7
10
|
|
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 3.0.65
|
|
10
11
|
=end
|
|
11
12
|
|
|
12
13
|
require 'spec_helper'
|
|
13
14
|
require 'json'
|
|
14
15
|
|
|
15
|
-
# Unit tests for
|
|
16
|
-
# Automatically generated by
|
|
16
|
+
# Unit tests for Devdraft::APIHealthApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
17
18
|
# Please update as you see appropriate
|
|
18
19
|
describe 'APIHealthApi' do
|
|
19
20
|
before do
|
|
20
21
|
# run before each test
|
|
21
|
-
@
|
|
22
|
+
@api_instance = Devdraft::APIHealthApi.new
|
|
22
23
|
end
|
|
23
24
|
|
|
24
25
|
after do
|
|
@@ -27,7 +28,7 @@ describe 'APIHealthApi' do
|
|
|
27
28
|
|
|
28
29
|
describe 'test an instance of APIHealthApi' do
|
|
29
30
|
it 'should create an instance of APIHealthApi' do
|
|
30
|
-
expect(@
|
|
31
|
+
expect(@api_instance).to be_instance_of(Devdraft::APIHealthApi)
|
|
31
32
|
end
|
|
32
33
|
end
|
|
33
34
|
|
|
@@ -37,7 +38,7 @@ describe 'APIHealthApi' do
|
|
|
37
38
|
# @return [HealthResponseDto]
|
|
38
39
|
describe 'health_controller_check_v0 test' do
|
|
39
40
|
it 'should work' do
|
|
40
|
-
# assertion here. ref: https://
|
|
41
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
41
42
|
end
|
|
42
43
|
end
|
|
43
44
|
|
|
@@ -47,7 +48,7 @@ describe 'APIHealthApi' do
|
|
|
47
48
|
# @return [PublicHealthResponseDto]
|
|
48
49
|
describe 'health_controller_public_health_check_v0 test' do
|
|
49
50
|
it 'should work' do
|
|
50
|
-
# assertion here. ref: https://
|
|
51
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
52
|
end
|
|
52
53
|
end
|
|
53
54
|
|
|
@@ -3,22 +3,23 @@
|
|
|
3
3
|
|
|
4
4
|
# A comprehensive payment processing and business management API that enables seamless integration of cryptocurrency and traditional payment methods.
|
|
5
5
|
|
|
6
|
-
OpenAPI
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.17.0
|
|
7
10
|
|
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
-
Swagger Codegen version: 3.0.65
|
|
10
11
|
=end
|
|
11
12
|
|
|
12
13
|
require 'spec_helper'
|
|
13
14
|
require 'json'
|
|
14
15
|
|
|
15
|
-
# Unit tests for
|
|
16
|
-
# Automatically generated by
|
|
16
|
+
# Unit tests for Devdraft::AppBalancesApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
17
18
|
# Please update as you see appropriate
|
|
18
19
|
describe 'AppBalancesApi' do
|
|
19
20
|
before do
|
|
20
21
|
# run before each test
|
|
21
|
-
@
|
|
22
|
+
@api_instance = Devdraft::AppBalancesApi.new
|
|
22
23
|
end
|
|
23
24
|
|
|
24
25
|
after do
|
|
@@ -27,7 +28,7 @@ describe 'AppBalancesApi' do
|
|
|
27
28
|
|
|
28
29
|
describe 'test an instance of AppBalancesApi' do
|
|
29
30
|
it 'should create an instance of AppBalancesApi' do
|
|
30
|
-
expect(@
|
|
31
|
+
expect(@api_instance).to be_instance_of(Devdraft::AppBalancesApi)
|
|
31
32
|
end
|
|
32
33
|
end
|
|
33
34
|
|
|
@@ -38,7 +39,7 @@ describe 'AppBalancesApi' do
|
|
|
38
39
|
# @return [AllBalancesResponse]
|
|
39
40
|
describe 'balance_controller_get_all_balances test' do
|
|
40
41
|
it 'should work' do
|
|
41
|
-
# assertion here. ref: https://
|
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
42
43
|
end
|
|
43
44
|
end
|
|
44
45
|
|
|
@@ -49,7 +50,7 @@ describe 'AppBalancesApi' do
|
|
|
49
50
|
# @return [AggregatedBalanceResponse]
|
|
50
51
|
describe 'balance_controller_get_eurc_balance test' do
|
|
51
52
|
it 'should work' do
|
|
52
|
-
# assertion here. ref: https://
|
|
53
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
53
54
|
end
|
|
54
55
|
end
|
|
55
56
|
|
|
@@ -60,7 +61,7 @@ describe 'AppBalancesApi' do
|
|
|
60
61
|
# @return [AggregatedBalanceResponse]
|
|
61
62
|
describe 'balance_controller_get_usdc_balance test' do
|
|
62
63
|
it 'should work' do
|
|
63
|
-
# assertion here. ref: https://
|
|
64
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
64
65
|
end
|
|
65
66
|
end
|
|
66
67
|
|