cryptopay-ruby 2.0.0 → 2.1.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 +4 -4
- data/.github/workflows/ci.yml +6 -1
- data/.rubocop.yml +3 -0
- data/README.md +60 -0
- data/lib/cryptopay/api/invoices.rb +2 -0
- data/lib/cryptopay/api/subscriptions.rb +99 -0
- data/lib/cryptopay/client.rb +4 -2
- data/lib/cryptopay/models/account.rb +8 -8
- data/lib/cryptopay/models/account_list_result.rb +8 -8
- data/lib/cryptopay/models/callback.rb +3 -1
- data/lib/cryptopay/models/channel.rb +8 -8
- data/lib/cryptopay/models/channel_list_result.rb +8 -8
- data/lib/cryptopay/models/channel_params.rb +8 -8
- data/lib/cryptopay/models/channel_payment.rb +8 -8
- data/lib/cryptopay/models/channel_payment_callback.rb +8 -8
- data/lib/cryptopay/models/channel_payment_list_result.rb +8 -8
- data/lib/cryptopay/models/channel_payment_result.rb +8 -8
- data/lib/cryptopay/models/channel_result.rb +8 -8
- data/lib/cryptopay/models/channel_update_params.rb +8 -8
- data/lib/cryptopay/models/channels_config.rb +8 -8
- data/lib/cryptopay/models/coin.rb +8 -8
- data/lib/cryptopay/models/coin_destination_tag.rb +8 -8
- data/lib/cryptopay/models/coin_list_result.rb +8 -8
- data/lib/cryptopay/models/coin_network.rb +8 -8
- data/lib/cryptopay/models/coin_withdrawal.rb +8 -8
- data/lib/cryptopay/models/coin_withdrawal_callback.rb +8 -8
- data/lib/cryptopay/models/coin_withdrawal_list_result.rb +8 -8
- data/lib/cryptopay/models/coin_withdrawal_params.rb +8 -8
- data/lib/cryptopay/models/coin_withdrawal_result.rb +8 -8
- data/lib/cryptopay/models/coin_withdrawals_config.rb +8 -8
- data/lib/cryptopay/models/customer.rb +8 -8
- data/lib/cryptopay/models/customer_address.rb +8 -8
- data/lib/cryptopay/models/customer_list_result.rb +8 -8
- data/lib/cryptopay/models/customer_params.rb +8 -8
- data/lib/cryptopay/models/customer_result.rb +8 -8
- data/lib/cryptopay/models/customer_update_params.rb +8 -8
- data/lib/cryptopay/models/exchange.rb +8 -8
- data/lib/cryptopay/models/exchange_transfer.rb +8 -8
- data/lib/cryptopay/models/exchange_transfer_params.rb +8 -8
- data/lib/cryptopay/models/exchange_transfer_result.rb +8 -8
- data/lib/cryptopay/models/invoice.rb +15 -8
- data/lib/cryptopay/models/invoice_callback.rb +8 -8
- data/lib/cryptopay/models/invoice_list_result.rb +8 -8
- data/lib/cryptopay/models/invoice_params.rb +17 -10
- data/lib/cryptopay/models/invoice_recalculation.rb +8 -8
- data/lib/cryptopay/models/invoice_recalculation_params.rb +8 -8
- data/lib/cryptopay/models/invoice_recalculation_result.rb +8 -8
- data/lib/cryptopay/models/invoice_refund.rb +8 -8
- data/lib/cryptopay/models/invoice_refund_list_result.rb +8 -8
- data/lib/cryptopay/models/invoice_refund_params.rb +8 -8
- data/lib/cryptopay/models/invoice_refund_result.rb +8 -8
- data/lib/cryptopay/models/invoice_result.rb +8 -8
- data/lib/cryptopay/models/invoice_transaction.rb +8 -8
- data/lib/cryptopay/models/invoices_config.rb +8 -8
- data/lib/cryptopay/models/network_fee.rb +8 -8
- data/lib/cryptopay/models/network_fee_list_result.rb +8 -8
- data/lib/cryptopay/models/pagination.rb +8 -8
- data/lib/cryptopay/models/rate.rb +8 -8
- data/lib/cryptopay/models/rate_result.rb +8 -8
- data/lib/cryptopay/models/rates_result.rb +8 -8
- data/lib/cryptopay/models/risk.rb +8 -8
- data/lib/cryptopay/models/risk_params.rb +8 -8
- data/lib/cryptopay/models/risk_result.rb +8 -8
- data/lib/cryptopay/models/subscription.rb +222 -0
- data/lib/cryptopay/models/subscription_callback.rb +88 -0
- data/lib/cryptopay/models/subscription_callback_event.rb +18 -0
- data/lib/cryptopay/models/subscription_list_result.rb +82 -0
- data/lib/cryptopay/models/subscription_params.rb +159 -0
- data/lib/cryptopay/models/subscription_period.rb +20 -0
- data/lib/cryptopay/models/subscription_result.rb +68 -0
- data/lib/cryptopay/models/subscription_status.rb +18 -0
- data/lib/cryptopay/models/transaction.rb +8 -8
- data/lib/cryptopay/models/transaction_list_result.rb +8 -8
- data/lib/cryptopay/require.rb +9 -0
- data/lib/cryptopay/version.rb +1 -1
- metadata +15 -6
@@ -19,6 +19,14 @@ module Cryptopay
|
|
19
19
|
)
|
20
20
|
private_constant :ENCODER
|
21
21
|
|
22
|
+
# Builds the object from hash
|
23
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
24
|
+
# @return [Cryptopay::TransactionListResult] Returns the model itself
|
25
|
+
def self.build_from_hash(data)
|
26
|
+
attributes = ENCODER.build_from_hash(data)
|
27
|
+
new(attributes)
|
28
|
+
end
|
29
|
+
|
22
30
|
# Initializes the object
|
23
31
|
# @param [Hash] attributes Model attributes in the form of hash
|
24
32
|
def initialize(attributes = {})
|
@@ -61,14 +69,6 @@ module Cryptopay
|
|
61
69
|
invalid_properties.empty?
|
62
70
|
end
|
63
71
|
|
64
|
-
# Builds the object from hash
|
65
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
66
|
-
# @return [Cryptopay::TransactionListResult] Returns the model itself
|
67
|
-
def self.build_from_hash(data)
|
68
|
-
attributes = ENCODER.build_from_hash(data)
|
69
|
-
new(attributes)
|
70
|
-
end
|
71
|
-
|
72
72
|
# Returns the object in the form of hash
|
73
73
|
# @return [Hash] Returns the object in the form of hash
|
74
74
|
def to_hash
|
data/lib/cryptopay/require.rb
CHANGED
@@ -72,6 +72,14 @@ require 'cryptopay/models/risk_level'
|
|
72
72
|
require 'cryptopay/models/risk_params'
|
73
73
|
require 'cryptopay/models/risk_result'
|
74
74
|
require 'cryptopay/models/risk_type'
|
75
|
+
require 'cryptopay/models/subscription'
|
76
|
+
require 'cryptopay/models/subscription_callback'
|
77
|
+
require 'cryptopay/models/subscription_callback_event'
|
78
|
+
require 'cryptopay/models/subscription_list_result'
|
79
|
+
require 'cryptopay/models/subscription_params'
|
80
|
+
require 'cryptopay/models/subscription_period'
|
81
|
+
require 'cryptopay/models/subscription_result'
|
82
|
+
require 'cryptopay/models/subscription_status'
|
75
83
|
require 'cryptopay/models/transaction'
|
76
84
|
require 'cryptopay/models/transaction_list_result'
|
77
85
|
require 'cryptopay/models/transaction_reference_type'
|
@@ -86,4 +94,5 @@ require 'cryptopay/api/exchange_transfers'
|
|
86
94
|
require 'cryptopay/api/invoices'
|
87
95
|
require 'cryptopay/api/rates'
|
88
96
|
require 'cryptopay/api/risks'
|
97
|
+
require 'cryptopay/api/subscriptions'
|
89
98
|
require 'cryptopay/api/transactions'
|
data/lib/cryptopay/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cryptopay-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cryptopay
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -154,6 +154,7 @@ files:
|
|
154
154
|
- lib/cryptopay/api/invoices.rb
|
155
155
|
- lib/cryptopay/api/rates.rb
|
156
156
|
- lib/cryptopay/api/risks.rb
|
157
|
+
- lib/cryptopay/api/subscriptions.rb
|
157
158
|
- lib/cryptopay/api/transactions.rb
|
158
159
|
- lib/cryptopay/authentication.rb
|
159
160
|
- lib/cryptopay/callbacks.rb
|
@@ -230,6 +231,14 @@ files:
|
|
230
231
|
- lib/cryptopay/models/risk_params.rb
|
231
232
|
- lib/cryptopay/models/risk_result.rb
|
232
233
|
- lib/cryptopay/models/risk_type.rb
|
234
|
+
- lib/cryptopay/models/subscription.rb
|
235
|
+
- lib/cryptopay/models/subscription_callback.rb
|
236
|
+
- lib/cryptopay/models/subscription_callback_event.rb
|
237
|
+
- lib/cryptopay/models/subscription_list_result.rb
|
238
|
+
- lib/cryptopay/models/subscription_params.rb
|
239
|
+
- lib/cryptopay/models/subscription_period.rb
|
240
|
+
- lib/cryptopay/models/subscription_result.rb
|
241
|
+
- lib/cryptopay/models/subscription_status.rb
|
233
242
|
- lib/cryptopay/models/transaction.rb
|
234
243
|
- lib/cryptopay/models/transaction_list_result.rb
|
235
244
|
- lib/cryptopay/models/transaction_reference_type.rb
|
@@ -244,7 +253,7 @@ metadata:
|
|
244
253
|
bug_tracker_uri: https://github.com/cryptopay-dev/cryptopay-ruby/issues
|
245
254
|
source_code_uri: https://github.com/cryptopay-dev/cryptopay-ruby
|
246
255
|
rubygems_mfa_required: 'true'
|
247
|
-
post_install_message:
|
256
|
+
post_install_message:
|
248
257
|
rdoc_options: []
|
249
258
|
require_paths:
|
250
259
|
- lib
|
@@ -259,8 +268,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
259
268
|
- !ruby/object:Gem::Version
|
260
269
|
version: '0'
|
261
270
|
requirements: []
|
262
|
-
rubygems_version: 3.
|
263
|
-
signing_key:
|
271
|
+
rubygems_version: 3.3.20
|
272
|
+
signing_key:
|
264
273
|
specification_version: 4
|
265
274
|
summary: The official Ruby gem for the Cryptopay API
|
266
275
|
test_files: []
|