devdraft 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +155 -253
- data/Rakefile +2 -0
- data/devdraft-1.0.0.gem +0 -0
- data/{devdraft_ai_sdk.gemspec → devdraft.gemspec} +15 -11
- data/docs/APIHealthApi.md +82 -30
- data/docs/AggregatedBalanceResponse.md +19 -6
- data/docs/AllBalancesResponse.md +19 -6
- data/docs/AppBalancesApi.md +125 -65
- data/docs/BridgeFiatPaymentRail.md +15 -0
- data/docs/BridgePaymentRail.md +12 -3
- data/docs/CreateBankPaymentIntentDto.md +49 -21
- data/docs/CreateCustomerDto.md +25 -9
- data/docs/CreateDirectBankTransferDto.md +29 -11
- data/docs/CreateDirectWalletTransferDto.md +21 -7
- data/docs/CreateExternalBankTransferDto.md +40 -0
- data/docs/CreateExternalStablecoinTransferDto.md +28 -0
- data/docs/CreateInvoiceDto.md +45 -19
- data/docs/CreateLiquidationAddressDto.md +43 -18
- data/docs/CreatePaymentLinkDto.md +53 -28
- data/docs/CreateStablePaymentIntentDto.md +43 -18
- data/docs/CreateStablecoinConversionDto.md +23 -8
- data/docs/CreateTaxDto.md +26 -0
- data/docs/CreateWebhookDto.md +23 -8
- data/docs/CustomerStatus.md +12 -3
- data/docs/CustomerType.md +15 -0
- data/docs/CustomersApi.md +187 -114
- data/docs/DestinationCurrency.md +12 -3
- data/docs/ExchangeRateResponseDto.md +25 -9
- data/docs/ExchangeRatesApi.md +130 -72
- data/docs/FiatCurrency.md +12 -3
- data/docs/HealthResponseDto.md +25 -9
- data/docs/InvoiceProductDto.md +17 -5
- data/docs/InvoicesApi.md +177 -104
- data/docs/LiquidationAddressResponseDto.md +41 -17
- data/docs/LiquidationAddressesApi.md +115 -61
- data/docs/PaymentIntentsApi.md +93 -57
- data/docs/PaymentLinkProductDto.md +17 -5
- data/docs/PaymentLinksApi.md +175 -102
- data/docs/PaymentRequestDto.md +21 -7
- data/docs/PaymentResponseDto.md +23 -8
- data/docs/ProductsApi.md +307 -194
- data/docs/PublicHealthResponseDto.md +19 -6
- data/docs/RefundResponseDto.md +23 -8
- data/docs/StableCoinCurrency.md +12 -3
- data/docs/TaxControllerCreate201Response.md +30 -0
- data/docs/TaxControllerDeleteWithoutId400Response.md +22 -0
- data/docs/TaxControllerUpdateWithoutId400Response.md +22 -0
- data/docs/TaxesApi.md +374 -122
- data/docs/TestPaymentsApi.md +150 -60
- data/docs/TransfersApi.md +274 -72
- data/docs/UpdateCustomerDto.md +25 -9
- data/docs/UpdateTaxDto.md +26 -0
- data/docs/UpdateWebhookDto.md +23 -8
- data/docs/WalletsApi.md +44 -24
- data/docs/WebhookResponseDto.md +29 -11
- data/docs/WebhooksApi.md +225 -134
- data/git_push.sh +41 -28
- data/lib/devdraft/api/api_health_api.rb +32 -16
- data/lib/devdraft/api/app_balances_api.rb +45 -22
- data/lib/devdraft/api/customers_api.rb +124 -71
- data/lib/devdraft/api/exchange_rates_api.rb +49 -26
- data/lib/devdraft/api/invoices_api.rb +89 -53
- data/lib/devdraft/api/liquidation_addresses_api.rb +70 -44
- data/lib/devdraft/api/payment_intents_api.rb +62 -40
- data/lib/devdraft/api/payment_links_api.rb +85 -49
- data/lib/devdraft/api/products_api.rb +214 -216
- data/lib/devdraft/api/taxes_api.rb +257 -66
- data/lib/devdraft/api/test_payments_api.rb +70 -44
- data/lib/devdraft/api/transfers_api.rb +206 -46
- data/lib/devdraft/api/wallets_api.rb +18 -9
- data/lib/devdraft/api/webhooks_api.rb +109 -66
- data/lib/devdraft/api_client.rb +76 -71
- data/lib/devdraft/api_error.rb +5 -4
- data/lib/devdraft/api_model_base.rb +88 -0
- data/lib/devdraft/configuration.rb +121 -18
- data/lib/devdraft/models/aggregated_balance_response.rb +68 -101
- data/lib/devdraft/models/all_balances_response.rb +76 -99
- data/lib/devdraft/models/bridge_fiat_payment_rail.rb +45 -0
- data/lib/devdraft/models/bridge_payment_rail.rb +36 -24
- data/lib/devdraft/models/create_bank_payment_intent_dto.rb +191 -114
- data/lib/devdraft/models/create_customer_dto.rb +123 -113
- data/lib/devdraft/models/create_direct_bank_transfer_dto.rb +105 -104
- data/lib/devdraft/models/create_direct_wallet_transfer_dto.rb +89 -100
- data/lib/devdraft/models/create_external_bank_transfer_dto.rb +505 -0
- data/lib/devdraft/models/create_external_stablecoin_transfer_dto.rb +266 -0
- data/lib/devdraft/models/create_invoice_dto.rb +151 -121
- data/lib/devdraft/models/create_liquidation_address_dto.rb +195 -115
- data/lib/devdraft/models/create_payment_link_dto.rb +192 -214
- data/lib/devdraft/models/create_stable_payment_intent_dto.rb +324 -111
- data/lib/devdraft/models/create_stablecoin_conversion_dto.rb +102 -101
- data/lib/devdraft/models/create_tax_dto.rb +281 -0
- data/lib/devdraft/models/create_webhook_dto.rb +104 -101
- data/lib/devdraft/models/customer_status.rb +23 -10
- data/lib/devdraft/models/customer_type.rb +45 -0
- data/lib/devdraft/models/destination_currency.rb +27 -15
- data/lib/devdraft/models/exchange_rate_response_dto.rb +103 -102
- data/lib/devdraft/models/fiat_currency.rb +22 -10
- data/lib/devdraft/models/health_response_dto.rb +99 -106
- data/lib/devdraft/models/invoice_product_dto.rb +63 -98
- data/lib/devdraft/models/liquidation_address_response_dto.rb +147 -110
- data/lib/devdraft/models/payment_link_product_dto.rb +70 -98
- data/lib/devdraft/models/payment_request_dto.rb +77 -100
- data/lib/devdraft/models/payment_response_dto.rb +102 -101
- data/lib/devdraft/models/public_health_response_dto.rb +68 -101
- data/lib/devdraft/models/refund_response_dto.rb +102 -101
- data/lib/devdraft/models/stable_coin_currency.rb +21 -9
- data/lib/devdraft/models/tax_controller_create201_response.rb +201 -0
- data/lib/devdraft/models/tax_controller_delete_without_id400_response.rb +165 -0
- data/lib/devdraft/models/tax_controller_update_without_id400_response.rb +165 -0
- data/lib/devdraft/models/update_customer_dto.rb +117 -113
- data/lib/devdraft/models/update_tax_dto.rb +256 -0
- data/lib/devdraft/models/update_webhook_dto.rb +70 -101
- data/lib/devdraft/models/webhook_response_dto.rb +140 -103
- data/lib/devdraft/version.rb +6 -5
- data/lib/devdraft.rb +18 -27
- data/spec/api/api_health_api_spec.rb +10 -9
- data/spec/api/app_balances_api_spec.rb +11 -10
- data/spec/api/customers_api_spec.rb +25 -24
- data/spec/api/exchange_rates_api_spec.rb +11 -10
- data/spec/api/invoices_api_spec.rb +16 -15
- data/spec/api/liquidation_addresses_api_spec.rb +13 -12
- data/spec/api/payment_intents_api_spec.rb +12 -11
- data/spec/api/payment_links_api_spec.rb +14 -13
- data/spec/api/products_api_spec.rb +41 -40
- data/spec/api/taxes_api_spec.rb +51 -21
- data/spec/api/test_payments_api_spec.rb +14 -13
- data/spec/api/transfers_api_spec.rb +36 -13
- data/spec/api/wallets_api_spec.rb +9 -8
- data/spec/api/webhooks_api_spec.rb +20 -19
- data/spec/models/aggregated_balance_response_spec.rb +15 -19
- data/spec/models/all_balances_response_spec.rb +14 -18
- data/spec/models/bridge_fiat_payment_rail_spec.rb +30 -0
- data/spec/models/bridge_payment_rail_spec.rb +11 -15
- data/spec/models/create_bank_payment_intent_dto_spec.rb +29 -33
- data/spec/models/create_customer_dto_spec.rb +17 -25
- data/spec/models/create_direct_bank_transfer_dto_spec.rb +19 -23
- data/spec/models/create_direct_wallet_transfer_dto_spec.rb +15 -19
- data/spec/models/create_external_bank_transfer_dto_spec.rb +102 -0
- data/spec/models/create_external_stablecoin_transfer_dto_spec.rb +66 -0
- data/spec/models/create_invoice_dto_spec.rb +31 -35
- data/spec/models/create_liquidation_address_dto_spec.rb +28 -32
- data/spec/models/create_payment_link_dto_spec.rb +34 -76
- data/spec/models/create_stable_payment_intent_dto_spec.rb +26 -30
- data/spec/models/create_stablecoin_conversion_dto_spec.rb +16 -20
- data/spec/models/create_tax_dto_spec.rb +60 -0
- data/spec/models/create_webhook_dto_spec.rb +16 -20
- data/spec/models/customer_status_spec.rb +11 -15
- data/spec/models/customer_type_spec.rb +30 -0
- data/spec/models/destination_currency_spec.rb +11 -15
- data/spec/models/exchange_rate_response_dto_spec.rb +17 -21
- data/spec/models/fiat_currency_spec.rb +11 -15
- data/spec/models/health_response_dto_spec.rb +19 -23
- data/spec/models/invoice_product_dto_spec.rb +13 -17
- data/spec/models/liquidation_address_response_dto_spec.rb +25 -29
- data/spec/models/payment_link_product_dto_spec.rb +13 -17
- data/spec/models/payment_request_dto_spec.rb +15 -19
- data/spec/models/payment_response_dto_spec.rb +16 -20
- data/spec/models/public_health_response_dto_spec.rb +15 -19
- data/spec/models/refund_response_dto_spec.rb +16 -20
- data/spec/models/stable_coin_currency_spec.rb +11 -15
- data/spec/models/tax_controller_create201_response_spec.rb +72 -0
- data/spec/models/tax_controller_delete_without_id400_response_spec.rb +48 -0
- data/spec/models/tax_controller_update_without_id400_response_spec.rb +48 -0
- data/spec/models/update_customer_dto_spec.rb +17 -25
- data/spec/models/update_tax_dto_spec.rb +60 -0
- data/spec/models/update_webhook_dto_spec.rb +16 -20
- data/spec/models/webhook_response_dto_spec.rb +19 -23
- data/spec/spec_helper.rb +5 -4
- metadata +49 -116
- data/docs/AllOfAllBalancesResponseEurc.md +0 -9
- data/docs/AllOfAllBalancesResponseUsdc.md +0 -9
- data/docs/AllOfCreateBankPaymentIntentDtoDestinationCurrency.md +0 -6
- data/docs/AllOfCreateBankPaymentIntentDtoDestinationNetwork.md +0 -6
- data/docs/AllOfCreateBankPaymentIntentDtoSourceCurrency.md +0 -6
- data/docs/AllOfCreateBankPaymentIntentDtoSourcePaymentRail.md +0 -6
- data/docs/AllOfCreateCustomerDtoStatus.md +0 -6
- data/docs/AllOfCreateLiquidationAddressDtoDestinationCurrency.md +0 -6
- data/docs/AllOfCreateLiquidationAddressDtoDestinationPaymentRail.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoDestinationCurrency.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoDestinationNetwork.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoSourceCurrency.md +0 -6
- data/docs/AllOfCreateStablePaymentIntentDtoSourceNetwork.md +0 -6
- data/docs/AllOfUpdateCustomerDtoStatus.md +0 -6
- data/docs/CreateProductDto.md +0 -18
- data/docs/CreateTaxInput.md +0 -6
- data/docs/UpdatePaymentLinkDto.md +0 -6
- data/docs/UpdatePreferenceInput.md +0 -6
- data/docs/UpdateProductDto.md +0 -18
- data/docs/UpdateTaxInput.md +0 -6
- data/example.rb +0 -129
- data/lib/devdraft/models/all_of_all_balances_response_eurc.rb +0 -283
- data/lib/devdraft/models/all_of_all_balances_response_usdc.rb +0 -283
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_network.rb +0 -202
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_payment_rail.rb +0 -202
- data/lib/devdraft/models/all_of_create_customer_dto_status.rb +0 -202
- data/lib/devdraft/models/all_of_create_liquidation_address_dto_destination_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_liquidation_address_dto_destination_payment_rail.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_network.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_currency.rb +0 -202
- data/lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_network.rb +0 -202
- data/lib/devdraft/models/all_of_update_customer_dto_status.rb +0 -202
- data/lib/devdraft/models/create_product_dto.rb +0 -370
- data/lib/devdraft/models/create_tax_input.rb +0 -197
- data/lib/devdraft/models/update_payment_link_dto.rb +0 -197
- data/lib/devdraft/models/update_preference_input.rb +0 -197
- data/lib/devdraft/models/update_product_dto.rb +0 -355
- data/lib/devdraft/models/update_tax_input.rb +0 -197
- data/spec/api_client_spec.rb +0 -225
- data/spec/base_object_spec.rb +0 -109
- data/spec/configuration_spec.rb +0 -41
- data/spec/models/all_of_all_balances_response_eurc_spec.rb +0 -56
- data/spec/models/all_of_all_balances_response_usdc_spec.rb +0 -56
- data/spec/models/all_of_create_bank_payment_intent_dto_destination_currency_spec.rb +0 -34
- data/spec/models/all_of_create_bank_payment_intent_dto_destination_network_spec.rb +0 -34
- data/spec/models/all_of_create_bank_payment_intent_dto_source_currency_spec.rb +0 -34
- data/spec/models/all_of_create_bank_payment_intent_dto_source_payment_rail_spec.rb +0 -34
- data/spec/models/all_of_create_customer_dto_status_spec.rb +0 -34
- data/spec/models/all_of_create_liquidation_address_dto_destination_currency_spec.rb +0 -34
- data/spec/models/all_of_create_liquidation_address_dto_destination_payment_rail_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_destination_currency_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_destination_network_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_source_currency_spec.rb +0 -34
- data/spec/models/all_of_create_stable_payment_intent_dto_source_network_spec.rb +0 -34
- data/spec/models/all_of_update_customer_dto_status_spec.rb +0 -34
- data/spec/models/create_product_dto_spec.rb +0 -110
- data/spec/models/create_tax_input_spec.rb +0 -34
- data/spec/models/update_payment_link_dto_spec.rb +0 -34
- data/spec/models/update_preference_input_spec.rb +0 -34
- data/spec/models/update_product_dto_spec.rb +0 -110
- data/spec/models/update_tax_input_spec.rb +0 -34
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: devdraft
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- Devdraft
|
|
7
|
+
- Devdraft
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -30,26 +30,6 @@ dependencies:
|
|
|
30
30
|
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 1.0.1
|
|
33
|
-
- !ruby/object:Gem::Dependency
|
|
34
|
-
name: json
|
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
|
36
|
-
requirements:
|
|
37
|
-
- - ">="
|
|
38
|
-
- !ruby/object:Gem::Version
|
|
39
|
-
version: 2.1.0
|
|
40
|
-
- - "~>"
|
|
41
|
-
- !ruby/object:Gem::Version
|
|
42
|
-
version: '2.1'
|
|
43
|
-
type: :runtime
|
|
44
|
-
prerelease: false
|
|
45
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
46
|
-
requirements:
|
|
47
|
-
- - ">="
|
|
48
|
-
- !ruby/object:Gem::Version
|
|
49
|
-
version: 2.1.0
|
|
50
|
-
- - "~>"
|
|
51
|
-
- !ruby/object:Gem::Version
|
|
52
|
-
version: '2.1'
|
|
53
33
|
- !ruby/object:Gem::Dependency
|
|
54
34
|
name: rspec
|
|
55
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -74,7 +54,7 @@ description: " A comprehensive payment processing and business management API th
|
|
|
74
54
|
enables seamless integration of cryptocurrency and traditional payment methods.
|
|
75
55
|
\ "
|
|
76
56
|
email:
|
|
77
|
-
-
|
|
57
|
+
- support@devdraft.com
|
|
78
58
|
executables: []
|
|
79
59
|
extensions: []
|
|
80
60
|
extra_rdoc_files: []
|
|
@@ -82,39 +62,29 @@ files:
|
|
|
82
62
|
- Gemfile
|
|
83
63
|
- README.md
|
|
84
64
|
- Rakefile
|
|
85
|
-
-
|
|
65
|
+
- devdraft-1.0.0.gem
|
|
66
|
+
- devdraft.gemspec
|
|
86
67
|
- docs/APIHealthApi.md
|
|
87
68
|
- docs/AggregatedBalanceResponse.md
|
|
88
69
|
- docs/AllBalancesResponse.md
|
|
89
|
-
- docs/AllOfAllBalancesResponseEurc.md
|
|
90
|
-
- docs/AllOfAllBalancesResponseUsdc.md
|
|
91
|
-
- docs/AllOfCreateBankPaymentIntentDtoDestinationCurrency.md
|
|
92
|
-
- docs/AllOfCreateBankPaymentIntentDtoDestinationNetwork.md
|
|
93
|
-
- docs/AllOfCreateBankPaymentIntentDtoSourceCurrency.md
|
|
94
|
-
- docs/AllOfCreateBankPaymentIntentDtoSourcePaymentRail.md
|
|
95
|
-
- docs/AllOfCreateCustomerDtoStatus.md
|
|
96
|
-
- docs/AllOfCreateLiquidationAddressDtoDestinationCurrency.md
|
|
97
|
-
- docs/AllOfCreateLiquidationAddressDtoDestinationPaymentRail.md
|
|
98
|
-
- docs/AllOfCreateStablePaymentIntentDtoDestinationCurrency.md
|
|
99
|
-
- docs/AllOfCreateStablePaymentIntentDtoDestinationNetwork.md
|
|
100
|
-
- docs/AllOfCreateStablePaymentIntentDtoSourceCurrency.md
|
|
101
|
-
- docs/AllOfCreateStablePaymentIntentDtoSourceNetwork.md
|
|
102
|
-
- docs/AllOfUpdateCustomerDtoStatus.md
|
|
103
70
|
- docs/AppBalancesApi.md
|
|
71
|
+
- docs/BridgeFiatPaymentRail.md
|
|
104
72
|
- docs/BridgePaymentRail.md
|
|
105
73
|
- docs/CreateBankPaymentIntentDto.md
|
|
106
74
|
- docs/CreateCustomerDto.md
|
|
107
75
|
- docs/CreateDirectBankTransferDto.md
|
|
108
76
|
- docs/CreateDirectWalletTransferDto.md
|
|
77
|
+
- docs/CreateExternalBankTransferDto.md
|
|
78
|
+
- docs/CreateExternalStablecoinTransferDto.md
|
|
109
79
|
- docs/CreateInvoiceDto.md
|
|
110
80
|
- docs/CreateLiquidationAddressDto.md
|
|
111
81
|
- docs/CreatePaymentLinkDto.md
|
|
112
|
-
- docs/CreateProductDto.md
|
|
113
82
|
- docs/CreateStablePaymentIntentDto.md
|
|
114
83
|
- docs/CreateStablecoinConversionDto.md
|
|
115
|
-
- docs/
|
|
84
|
+
- docs/CreateTaxDto.md
|
|
116
85
|
- docs/CreateWebhookDto.md
|
|
117
86
|
- docs/CustomerStatus.md
|
|
87
|
+
- docs/CustomerType.md
|
|
118
88
|
- docs/CustomersApi.md
|
|
119
89
|
- docs/DestinationCurrency.md
|
|
120
90
|
- docs/ExchangeRateResponseDto.md
|
|
@@ -134,19 +104,18 @@ files:
|
|
|
134
104
|
- docs/PublicHealthResponseDto.md
|
|
135
105
|
- docs/RefundResponseDto.md
|
|
136
106
|
- docs/StableCoinCurrency.md
|
|
107
|
+
- docs/TaxControllerCreate201Response.md
|
|
108
|
+
- docs/TaxControllerDeleteWithoutId400Response.md
|
|
109
|
+
- docs/TaxControllerUpdateWithoutId400Response.md
|
|
137
110
|
- docs/TaxesApi.md
|
|
138
111
|
- docs/TestPaymentsApi.md
|
|
139
112
|
- docs/TransfersApi.md
|
|
140
113
|
- docs/UpdateCustomerDto.md
|
|
141
|
-
- docs/
|
|
142
|
-
- docs/UpdatePreferenceInput.md
|
|
143
|
-
- docs/UpdateProductDto.md
|
|
144
|
-
- docs/UpdateTaxInput.md
|
|
114
|
+
- docs/UpdateTaxDto.md
|
|
145
115
|
- docs/UpdateWebhookDto.md
|
|
146
116
|
- docs/WalletsApi.md
|
|
147
117
|
- docs/WebhookResponseDto.md
|
|
148
118
|
- docs/WebhooksApi.md
|
|
149
|
-
- example.rb
|
|
150
119
|
- git_push.sh
|
|
151
120
|
- lib/devdraft.rb
|
|
152
121
|
- lib/devdraft/api/api_health_api.rb
|
|
@@ -165,37 +134,27 @@ files:
|
|
|
165
134
|
- lib/devdraft/api/webhooks_api.rb
|
|
166
135
|
- lib/devdraft/api_client.rb
|
|
167
136
|
- lib/devdraft/api_error.rb
|
|
137
|
+
- lib/devdraft/api_model_base.rb
|
|
168
138
|
- lib/devdraft/configuration.rb
|
|
169
139
|
- lib/devdraft/models/aggregated_balance_response.rb
|
|
170
140
|
- lib/devdraft/models/all_balances_response.rb
|
|
171
|
-
- lib/devdraft/models/
|
|
172
|
-
- lib/devdraft/models/all_of_all_balances_response_usdc.rb
|
|
173
|
-
- lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_currency.rb
|
|
174
|
-
- lib/devdraft/models/all_of_create_bank_payment_intent_dto_destination_network.rb
|
|
175
|
-
- lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_currency.rb
|
|
176
|
-
- lib/devdraft/models/all_of_create_bank_payment_intent_dto_source_payment_rail.rb
|
|
177
|
-
- lib/devdraft/models/all_of_create_customer_dto_status.rb
|
|
178
|
-
- lib/devdraft/models/all_of_create_liquidation_address_dto_destination_currency.rb
|
|
179
|
-
- lib/devdraft/models/all_of_create_liquidation_address_dto_destination_payment_rail.rb
|
|
180
|
-
- lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_currency.rb
|
|
181
|
-
- lib/devdraft/models/all_of_create_stable_payment_intent_dto_destination_network.rb
|
|
182
|
-
- lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_currency.rb
|
|
183
|
-
- lib/devdraft/models/all_of_create_stable_payment_intent_dto_source_network.rb
|
|
184
|
-
- lib/devdraft/models/all_of_update_customer_dto_status.rb
|
|
141
|
+
- lib/devdraft/models/bridge_fiat_payment_rail.rb
|
|
185
142
|
- lib/devdraft/models/bridge_payment_rail.rb
|
|
186
143
|
- lib/devdraft/models/create_bank_payment_intent_dto.rb
|
|
187
144
|
- lib/devdraft/models/create_customer_dto.rb
|
|
188
145
|
- lib/devdraft/models/create_direct_bank_transfer_dto.rb
|
|
189
146
|
- lib/devdraft/models/create_direct_wallet_transfer_dto.rb
|
|
147
|
+
- lib/devdraft/models/create_external_bank_transfer_dto.rb
|
|
148
|
+
- lib/devdraft/models/create_external_stablecoin_transfer_dto.rb
|
|
190
149
|
- lib/devdraft/models/create_invoice_dto.rb
|
|
191
150
|
- lib/devdraft/models/create_liquidation_address_dto.rb
|
|
192
151
|
- lib/devdraft/models/create_payment_link_dto.rb
|
|
193
|
-
- lib/devdraft/models/create_product_dto.rb
|
|
194
152
|
- lib/devdraft/models/create_stable_payment_intent_dto.rb
|
|
195
153
|
- lib/devdraft/models/create_stablecoin_conversion_dto.rb
|
|
196
|
-
- lib/devdraft/models/
|
|
154
|
+
- lib/devdraft/models/create_tax_dto.rb
|
|
197
155
|
- lib/devdraft/models/create_webhook_dto.rb
|
|
198
156
|
- lib/devdraft/models/customer_status.rb
|
|
157
|
+
- lib/devdraft/models/customer_type.rb
|
|
199
158
|
- lib/devdraft/models/destination_currency.rb
|
|
200
159
|
- lib/devdraft/models/exchange_rate_response_dto.rb
|
|
201
160
|
- lib/devdraft/models/fiat_currency.rb
|
|
@@ -208,11 +167,11 @@ files:
|
|
|
208
167
|
- lib/devdraft/models/public_health_response_dto.rb
|
|
209
168
|
- lib/devdraft/models/refund_response_dto.rb
|
|
210
169
|
- lib/devdraft/models/stable_coin_currency.rb
|
|
170
|
+
- lib/devdraft/models/tax_controller_create201_response.rb
|
|
171
|
+
- lib/devdraft/models/tax_controller_delete_without_id400_response.rb
|
|
172
|
+
- lib/devdraft/models/tax_controller_update_without_id400_response.rb
|
|
211
173
|
- lib/devdraft/models/update_customer_dto.rb
|
|
212
|
-
- lib/devdraft/models/
|
|
213
|
-
- lib/devdraft/models/update_preference_input.rb
|
|
214
|
-
- lib/devdraft/models/update_product_dto.rb
|
|
215
|
-
- lib/devdraft/models/update_tax_input.rb
|
|
174
|
+
- lib/devdraft/models/update_tax_dto.rb
|
|
216
175
|
- lib/devdraft/models/update_webhook_dto.rb
|
|
217
176
|
- lib/devdraft/models/webhook_response_dto.rb
|
|
218
177
|
- lib/devdraft/version.rb
|
|
@@ -230,39 +189,25 @@ files:
|
|
|
230
189
|
- spec/api/transfers_api_spec.rb
|
|
231
190
|
- spec/api/wallets_api_spec.rb
|
|
232
191
|
- spec/api/webhooks_api_spec.rb
|
|
233
|
-
- spec/api_client_spec.rb
|
|
234
|
-
- spec/base_object_spec.rb
|
|
235
|
-
- spec/configuration_spec.rb
|
|
236
192
|
- spec/models/aggregated_balance_response_spec.rb
|
|
237
193
|
- spec/models/all_balances_response_spec.rb
|
|
238
|
-
- spec/models/
|
|
239
|
-
- spec/models/all_of_all_balances_response_usdc_spec.rb
|
|
240
|
-
- spec/models/all_of_create_bank_payment_intent_dto_destination_currency_spec.rb
|
|
241
|
-
- spec/models/all_of_create_bank_payment_intent_dto_destination_network_spec.rb
|
|
242
|
-
- spec/models/all_of_create_bank_payment_intent_dto_source_currency_spec.rb
|
|
243
|
-
- spec/models/all_of_create_bank_payment_intent_dto_source_payment_rail_spec.rb
|
|
244
|
-
- spec/models/all_of_create_customer_dto_status_spec.rb
|
|
245
|
-
- spec/models/all_of_create_liquidation_address_dto_destination_currency_spec.rb
|
|
246
|
-
- spec/models/all_of_create_liquidation_address_dto_destination_payment_rail_spec.rb
|
|
247
|
-
- spec/models/all_of_create_stable_payment_intent_dto_destination_currency_spec.rb
|
|
248
|
-
- spec/models/all_of_create_stable_payment_intent_dto_destination_network_spec.rb
|
|
249
|
-
- spec/models/all_of_create_stable_payment_intent_dto_source_currency_spec.rb
|
|
250
|
-
- spec/models/all_of_create_stable_payment_intent_dto_source_network_spec.rb
|
|
251
|
-
- spec/models/all_of_update_customer_dto_status_spec.rb
|
|
194
|
+
- spec/models/bridge_fiat_payment_rail_spec.rb
|
|
252
195
|
- spec/models/bridge_payment_rail_spec.rb
|
|
253
196
|
- spec/models/create_bank_payment_intent_dto_spec.rb
|
|
254
197
|
- spec/models/create_customer_dto_spec.rb
|
|
255
198
|
- spec/models/create_direct_bank_transfer_dto_spec.rb
|
|
256
199
|
- spec/models/create_direct_wallet_transfer_dto_spec.rb
|
|
200
|
+
- spec/models/create_external_bank_transfer_dto_spec.rb
|
|
201
|
+
- spec/models/create_external_stablecoin_transfer_dto_spec.rb
|
|
257
202
|
- spec/models/create_invoice_dto_spec.rb
|
|
258
203
|
- spec/models/create_liquidation_address_dto_spec.rb
|
|
259
204
|
- spec/models/create_payment_link_dto_spec.rb
|
|
260
|
-
- spec/models/create_product_dto_spec.rb
|
|
261
205
|
- spec/models/create_stable_payment_intent_dto_spec.rb
|
|
262
206
|
- spec/models/create_stablecoin_conversion_dto_spec.rb
|
|
263
|
-
- spec/models/
|
|
207
|
+
- spec/models/create_tax_dto_spec.rb
|
|
264
208
|
- spec/models/create_webhook_dto_spec.rb
|
|
265
209
|
- spec/models/customer_status_spec.rb
|
|
210
|
+
- spec/models/customer_type_spec.rb
|
|
266
211
|
- spec/models/destination_currency_spec.rb
|
|
267
212
|
- spec/models/exchange_rate_response_dto_spec.rb
|
|
268
213
|
- spec/models/fiat_currency_spec.rb
|
|
@@ -275,18 +220,20 @@ files:
|
|
|
275
220
|
- spec/models/public_health_response_dto_spec.rb
|
|
276
221
|
- spec/models/refund_response_dto_spec.rb
|
|
277
222
|
- spec/models/stable_coin_currency_spec.rb
|
|
223
|
+
- spec/models/tax_controller_create201_response_spec.rb
|
|
224
|
+
- spec/models/tax_controller_delete_without_id400_response_spec.rb
|
|
225
|
+
- spec/models/tax_controller_update_without_id400_response_spec.rb
|
|
278
226
|
- spec/models/update_customer_dto_spec.rb
|
|
279
|
-
- spec/models/
|
|
280
|
-
- spec/models/update_preference_input_spec.rb
|
|
281
|
-
- spec/models/update_product_dto_spec.rb
|
|
282
|
-
- spec/models/update_tax_input_spec.rb
|
|
227
|
+
- spec/models/update_tax_dto_spec.rb
|
|
283
228
|
- spec/models/update_webhook_dto_spec.rb
|
|
284
229
|
- spec/models/webhook_response_dto_spec.rb
|
|
285
230
|
- spec/spec_helper.rb
|
|
286
|
-
homepage: https://github.com/devdraftengineer/
|
|
231
|
+
homepage: https://github.com/devdraftengineer/ruby
|
|
287
232
|
licenses:
|
|
288
233
|
- Unlicense
|
|
289
|
-
metadata:
|
|
234
|
+
metadata:
|
|
235
|
+
source_code_uri: https://github.com/devdraftengineer/ruby
|
|
236
|
+
homepage_uri: https://github.com/devdraftengineer/ruby
|
|
290
237
|
post_install_message:
|
|
291
238
|
rdoc_options: []
|
|
292
239
|
require_paths:
|
|
@@ -295,7 +242,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
295
242
|
requirements:
|
|
296
243
|
- - ">="
|
|
297
244
|
- !ruby/object:Gem::Version
|
|
298
|
-
version: '
|
|
245
|
+
version: '2.7'
|
|
299
246
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
300
247
|
requirements:
|
|
301
248
|
- - ">="
|
|
@@ -305,7 +252,7 @@ requirements: []
|
|
|
305
252
|
rubygems_version: 3.0.3.1
|
|
306
253
|
signing_key:
|
|
307
254
|
specification_version: 4
|
|
308
|
-
summary: Devdraft Payment & Business Management API Ruby Gem
|
|
255
|
+
summary: Devdraft AI Payment & Business Management API Ruby Gem
|
|
309
256
|
test_files:
|
|
310
257
|
- spec/api/test_payments_api_spec.rb
|
|
311
258
|
- spec/api/customers_api_spec.rb
|
|
@@ -321,56 +268,42 @@ test_files:
|
|
|
321
268
|
- spec/api/api_health_api_spec.rb
|
|
322
269
|
- spec/api/liquidation_addresses_api_spec.rb
|
|
323
270
|
- spec/api/payment_intents_api_spec.rb
|
|
324
|
-
- spec/api_client_spec.rb
|
|
325
|
-
- spec/base_object_spec.rb
|
|
326
|
-
- spec/configuration_spec.rb
|
|
327
|
-
- spec/models/update_preference_input_spec.rb
|
|
328
|
-
- spec/models/all_of_create_bank_payment_intent_dto_source_currency_spec.rb
|
|
329
271
|
- spec/models/destination_currency_spec.rb
|
|
330
|
-
- spec/models/
|
|
272
|
+
- spec/models/create_external_stablecoin_transfer_dto_spec.rb
|
|
331
273
|
- spec/models/refund_response_dto_spec.rb
|
|
274
|
+
- spec/models/tax_controller_create201_response_spec.rb
|
|
332
275
|
- spec/models/bridge_payment_rail_spec.rb
|
|
333
276
|
- spec/models/payment_link_product_dto_spec.rb
|
|
334
277
|
- spec/models/customer_status_spec.rb
|
|
278
|
+
- spec/models/tax_controller_delete_without_id400_response_spec.rb
|
|
335
279
|
- spec/models/payment_response_dto_spec.rb
|
|
336
|
-
- spec/models/all_of_create_stable_payment_intent_dto_destination_network_spec.rb
|
|
337
280
|
- spec/models/create_direct_bank_transfer_dto_spec.rb
|
|
338
281
|
- spec/models/all_balances_response_spec.rb
|
|
339
282
|
- spec/models/create_stable_payment_intent_dto_spec.rb
|
|
340
283
|
- spec/models/liquidation_address_response_dto_spec.rb
|
|
341
284
|
- spec/models/public_health_response_dto_spec.rb
|
|
342
|
-
- spec/models/all_of_create_bank_payment_intent_dto_destination_network_spec.rb
|
|
343
285
|
- spec/models/health_response_dto_spec.rb
|
|
286
|
+
- spec/models/tax_controller_update_without_id400_response_spec.rb
|
|
344
287
|
- spec/models/payment_request_dto_spec.rb
|
|
345
288
|
- spec/models/exchange_rate_response_dto_spec.rb
|
|
346
|
-
- spec/models/all_of_create_stable_payment_intent_dto_destination_currency_spec.rb
|
|
347
|
-
- spec/models/all_of_create_bank_payment_intent_dto_destination_currency_spec.rb
|
|
348
|
-
- spec/models/create_product_dto_spec.rb
|
|
349
289
|
- spec/models/create_stablecoin_conversion_dto_spec.rb
|
|
350
290
|
- spec/models/webhook_response_dto_spec.rb
|
|
351
|
-
- spec/models/update_tax_input_spec.rb
|
|
352
291
|
- spec/models/create_webhook_dto_spec.rb
|
|
353
292
|
- spec/models/create_invoice_dto_spec.rb
|
|
354
293
|
- spec/models/fiat_currency_spec.rb
|
|
355
294
|
- spec/models/create_payment_link_dto_spec.rb
|
|
356
|
-
- spec/models/
|
|
295
|
+
- spec/models/create_tax_dto_spec.rb
|
|
357
296
|
- spec/models/update_customer_dto_spec.rb
|
|
358
297
|
- spec/models/create_customer_dto_spec.rb
|
|
359
|
-
- spec/models/all_of_all_balances_response_usdc_spec.rb
|
|
360
|
-
- spec/models/all_of_create_liquidation_address_dto_destination_currency_spec.rb
|
|
361
|
-
- spec/models/update_payment_link_dto_spec.rb
|
|
362
298
|
- spec/models/create_liquidation_address_dto_spec.rb
|
|
363
|
-
- spec/models/all_of_create_customer_dto_status_spec.rb
|
|
364
299
|
- spec/models/create_direct_wallet_transfer_dto_spec.rb
|
|
365
|
-
- spec/models/all_of_create_bank_payment_intent_dto_source_payment_rail_spec.rb
|
|
366
300
|
- spec/models/update_webhook_dto_spec.rb
|
|
367
301
|
- spec/models/create_bank_payment_intent_dto_spec.rb
|
|
368
|
-
- spec/models/
|
|
369
|
-
- spec/models/
|
|
302
|
+
- spec/models/bridge_fiat_payment_rail_spec.rb
|
|
303
|
+
- spec/models/customer_type_spec.rb
|
|
370
304
|
- spec/models/aggregated_balance_response_spec.rb
|
|
371
|
-
- spec/models/
|
|
305
|
+
- spec/models/update_tax_dto_spec.rb
|
|
306
|
+
- spec/models/create_external_bank_transfer_dto_spec.rb
|
|
372
307
|
- spec/models/stable_coin_currency_spec.rb
|
|
373
|
-
- spec/models/all_of_update_customer_dto_status_spec.rb
|
|
374
|
-
- spec/models/create_tax_input_spec.rb
|
|
375
308
|
- spec/models/invoice_product_dto_spec.rb
|
|
376
309
|
- spec/spec_helper.rb
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# DevDraftAI::AllOfAllBalancesResponseEurc
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**currency** | **String** | The stablecoin currency |
|
|
7
|
-
**total_balance** | **String** | The total aggregated balance across all wallets and chains |
|
|
8
|
-
**balances** | **Array<Array>** | Detailed breakdown of balances by wallet and chain |
|
|
9
|
-
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# DevDraftAI::AllOfAllBalancesResponseUsdc
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**currency** | **String** | The stablecoin currency |
|
|
7
|
-
**total_balance** | **String** | The total aggregated balance across all wallets and chains |
|
|
8
|
-
**balances** | **Array<Array>** | Detailed breakdown of balances by wallet and chain |
|
|
9
|
-
|
data/docs/CreateProductDto.md
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# DevDraftAI::CreateProductDto
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**name** | **String** | Product name as it will appear to customers. Should be clear and descriptive. |
|
|
7
|
-
**description** | **String** | Detailed description of the product. Supports markdown formatting for rich text display. |
|
|
8
|
-
**price** | [**BigDecimal**](BigDecimal.md) | Product price in the specified currency. Must be greater than 0. |
|
|
9
|
-
**currency** | **String** | Currency code for the price. Defaults to USD if not specified. | [optional] [default to 'USD']
|
|
10
|
-
**type** | **String** | Product type | [optional]
|
|
11
|
-
**weight** | [**BigDecimal**](BigDecimal.md) | Weight of the product | [optional]
|
|
12
|
-
**unit** | **String** | Unit of measurement | [optional]
|
|
13
|
-
**quantity** | [**BigDecimal**](BigDecimal.md) | Quantity available | [optional]
|
|
14
|
-
**stock_count** | [**BigDecimal**](BigDecimal.md) | Stock count | [optional]
|
|
15
|
-
**status** | **String** | Product status | [optional]
|
|
16
|
-
**product_type** | **String** | Product type | [optional]
|
|
17
|
-
**images** | **Array<String>** | Array of image URLs | [optional]
|
|
18
|
-
|
data/docs/CreateTaxInput.md
DELETED
data/docs/UpdateProductDto.md
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# DevDraftAI::UpdateProductDto
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**name** | **String** | Product name as it will appear to customers. Should be clear and descriptive. | [optional]
|
|
7
|
-
**description** | **String** | Detailed description of the product. Supports markdown formatting for rich text display. | [optional]
|
|
8
|
-
**price** | [**BigDecimal**](BigDecimal.md) | Product price in the specified currency. Must be greater than 0. | [optional]
|
|
9
|
-
**currency** | **String** | Currency code for the price. Defaults to USD if not specified. | [optional] [default to 'USD']
|
|
10
|
-
**type** | **String** | Product type | [optional]
|
|
11
|
-
**weight** | [**BigDecimal**](BigDecimal.md) | Weight of the product | [optional]
|
|
12
|
-
**unit** | **String** | Unit of measurement | [optional]
|
|
13
|
-
**quantity** | [**BigDecimal**](BigDecimal.md) | Quantity available | [optional]
|
|
14
|
-
**stock_count** | [**BigDecimal**](BigDecimal.md) | Stock count | [optional]
|
|
15
|
-
**status** | **String** | Product status | [optional]
|
|
16
|
-
**product_type** | **String** | Product type | [optional]
|
|
17
|
-
**images** | **Array<String>** | Array of image URLs | [optional]
|
|
18
|
-
|
data/docs/UpdateTaxInput.md
DELETED
data/example.rb
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
# Example usage of the Devdraft Ruby SDK
|
|
3
|
-
#
|
|
4
|
-
# Installation:
|
|
5
|
-
# gem install devdraft
|
|
6
|
-
#
|
|
7
|
-
# Usage:
|
|
8
|
-
# ruby example.rb
|
|
9
|
-
|
|
10
|
-
require 'devdraft'
|
|
11
|
-
|
|
12
|
-
# Configure the SDK
|
|
13
|
-
Devdraft.configure do |config|
|
|
14
|
-
# Set your authentication headers (required for authenticated endpoints)
|
|
15
|
-
config.default_headers = {
|
|
16
|
-
'x-client-key' => 'YOUR_CLIENT_KEY',
|
|
17
|
-
'x-secret-key' => 'YOUR_SECRET_KEY'
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
# Optional: Set a custom base URL if needed
|
|
21
|
-
# config.base_url = 'https://api.devdraft.com'
|
|
22
|
-
|
|
23
|
-
# Optional: Enable debug logging
|
|
24
|
-
config.debugging = true
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
# Example 1: Health Check
|
|
28
|
-
def check_health
|
|
29
|
-
puts "\n=== Health Check Example ==="
|
|
30
|
-
api_instance = Devdraft::APIHealthApi.new
|
|
31
|
-
|
|
32
|
-
begin
|
|
33
|
-
# Public health check (no auth required)
|
|
34
|
-
result = api_instance.health_controller_public_health_check_v0
|
|
35
|
-
puts "Public Health Check Response:"
|
|
36
|
-
puts result.inspect
|
|
37
|
-
|
|
38
|
-
# Authenticated health check
|
|
39
|
-
result = api_instance.health_controller_check_v0
|
|
40
|
-
puts "\nAuthenticated Health Check Response:"
|
|
41
|
-
puts result.inspect
|
|
42
|
-
rescue => e
|
|
43
|
-
puts "Error during health check: #{e}"
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
# Example 2: Create Customer
|
|
48
|
-
def create_customer
|
|
49
|
-
puts "\n=== Create Customer Example ==="
|
|
50
|
-
api_instance = Devdraft::CustomersApi.new
|
|
51
|
-
|
|
52
|
-
begin
|
|
53
|
-
# Create a new customer
|
|
54
|
-
customer_data = Devdraft::CreateCustomerDto.new(
|
|
55
|
-
email: 'customer@example.com',
|
|
56
|
-
name: 'John Doe',
|
|
57
|
-
status: 'active'
|
|
58
|
-
)
|
|
59
|
-
|
|
60
|
-
result = api_instance.customer_controller_create(customer_data)
|
|
61
|
-
puts "Customer Created:"
|
|
62
|
-
puts result.inspect
|
|
63
|
-
rescue => e
|
|
64
|
-
puts "Error creating customer: #{e}"
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
# Example 3: Create Payment Link
|
|
69
|
-
def create_payment_link
|
|
70
|
-
puts "\n=== Create Payment Link Example ==="
|
|
71
|
-
api_instance = Devdraft::PaymentLinksApi.new
|
|
72
|
-
|
|
73
|
-
begin
|
|
74
|
-
# Create a payment link
|
|
75
|
-
payment_link = Devdraft::CreatePaymentLinkDto.new(
|
|
76
|
-
amount: 99.99,
|
|
77
|
-
currency: 'USD',
|
|
78
|
-
description: 'Premium Subscription',
|
|
79
|
-
expires_at: (Time.now + 7.days).iso8601, # Expires in 7 days
|
|
80
|
-
products: [
|
|
81
|
-
Devdraft::PaymentLinkProductDto.new(
|
|
82
|
-
name: 'Premium Plan',
|
|
83
|
-
quantity: 1,
|
|
84
|
-
price: 99.99
|
|
85
|
-
)
|
|
86
|
-
]
|
|
87
|
-
)
|
|
88
|
-
|
|
89
|
-
result = api_instance.payment_links_controller_create(payment_link)
|
|
90
|
-
puts "Payment Link Created:"
|
|
91
|
-
puts result.inspect
|
|
92
|
-
rescue => e
|
|
93
|
-
puts "Error creating payment link: #{e}"
|
|
94
|
-
end
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
# Example 4: Check Balance
|
|
98
|
-
def check_balance
|
|
99
|
-
puts "\n=== Check Balance Example ==="
|
|
100
|
-
api_instance = Devdraft::AppBalancesApi.new
|
|
101
|
-
|
|
102
|
-
begin
|
|
103
|
-
# Get all balances
|
|
104
|
-
balances = api_instance.balance_controller_get_all_balances
|
|
105
|
-
puts "All Balances:"
|
|
106
|
-
puts balances.inspect
|
|
107
|
-
|
|
108
|
-
# Get specific currency balance
|
|
109
|
-
usdc_balance = api_instance.balance_controller_get_usdc_balance
|
|
110
|
-
puts "\nUSDC Balance:"
|
|
111
|
-
puts usdc_balance.inspect
|
|
112
|
-
rescue => e
|
|
113
|
-
puts "Error checking balance: #{e}"
|
|
114
|
-
end
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
# Run examples
|
|
118
|
-
puts "Devdraft Ruby SDK Examples"
|
|
119
|
-
puts "=========================="
|
|
120
|
-
puts "Make sure to set your client key and secret key in the configuration block above."
|
|
121
|
-
puts "You can generate these keys from https://console.devdraft.ai under App Settings."
|
|
122
|
-
puts "Running examples..."
|
|
123
|
-
|
|
124
|
-
check_health
|
|
125
|
-
create_customer
|
|
126
|
-
create_payment_link
|
|
127
|
-
check_balance
|
|
128
|
-
|
|
129
|
-
puts "\nExamples completed!"
|