griffnode 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/LICENSE +17 -0
- data/README.md +24 -0
- data/Rakefile +10 -0
- data/docs/Account.md +22 -0
- data/docs/AccountApi.md +339 -0
- data/docs/AccountLimits.md +22 -0
- data/docs/AccountPlan.md +24 -0
- data/docs/AccountUsage.md +22 -0
- data/docs/Balance.md +24 -0
- data/docs/BillingApi.md +75 -0
- data/docs/CreateBillingCheckoutRequest.md +22 -0
- data/docs/CreateDetailedTransactionRequest.md +32 -0
- data/docs/CreateTransactionRequest.md +30 -0
- data/docs/CryptoSymbol.md +15 -0
- data/docs/Cryptocurrency.md +26 -0
- data/docs/DefaultApi.md +78 -0
- data/docs/Error.md +22 -0
- data/docs/FiatCurrency.md +15 -0
- data/docs/GetAccount200Response.md +20 -0
- data/docs/GetHealth200Response.md +22 -0
- data/docs/GetPrices200Response.md +20 -0
- data/docs/GetPrices200ResponseData.md +22 -0
- data/docs/GetStats200Response.md +20 -0
- data/docs/GetStats200ResponseData.md +24 -0
- data/docs/InlineObject.md +24 -0
- data/docs/InlineObjectAllOfExistingTransaction.md +22 -0
- data/docs/Invoice.md +34 -0
- data/docs/LineItem.md +22 -0
- data/docs/ListBalances200Response.md +20 -0
- data/docs/ListBalances200ResponseData.md +18 -0
- data/docs/ListCryptocurrencies200Response.md +20 -0
- data/docs/ListCryptocurrencies200ResponseData.md +20 -0
- data/docs/ListInvoices200Response.md +20 -0
- data/docs/ListInvoices200ResponseData.md +20 -0
- data/docs/ListPlans200Response.md +20 -0
- data/docs/ListPlans200ResponseData.md +20 -0
- data/docs/ListTransactions200Response.md +20 -0
- data/docs/ListTransactions200ResponseData.md +20 -0
- data/docs/MarketDataApi.md +202 -0
- data/docs/Pagination.md +22 -0
- data/docs/PaymentSplit.md +28 -0
- data/docs/Plan.md +38 -0
- data/docs/PlanTier.md +15 -0
- data/docs/SystemApi.md +139 -0
- data/docs/Transaction.md +66 -0
- data/docs/TransactionEnvelope.md +20 -0
- data/docs/TransactionStatus.md +15 -0
- data/docs/TransactionsApi.md +295 -0
- data/docs/WebhookPayload.md +40 -0
- data/git_push.sh +57 -0
- data/griffnode.gemspec +43 -0
- data/lib/griffnode/api/account_api.rb +315 -0
- data/lib/griffnode/api/billing_api.rb +88 -0
- data/lib/griffnode/api/default_api.rb +84 -0
- data/lib/griffnode/api/market_data_api.rb +187 -0
- data/lib/griffnode/api/system_api.rb +158 -0
- data/lib/griffnode/api/transactions_api.rb +300 -0
- data/lib/griffnode/api_client.rb +394 -0
- data/lib/griffnode/api_error.rb +58 -0
- data/lib/griffnode/configuration.rb +308 -0
- data/lib/griffnode/models/account.rb +232 -0
- data/lib/griffnode/models/account_limits.rb +232 -0
- data/lib/griffnode/models/account_plan.rb +264 -0
- data/lib/griffnode/models/account_usage.rb +234 -0
- data/lib/griffnode/models/balance.rb +241 -0
- data/lib/griffnode/models/create_billing_checkout_request.rb +284 -0
- data/lib/griffnode/models/create_detailed_transaction_request.rb +349 -0
- data/lib/griffnode/models/create_transaction_request.rb +313 -0
- data/lib/griffnode/models/crypto_symbol.rb +53 -0
- data/lib/griffnode/models/cryptocurrency.rb +284 -0
- data/lib/griffnode/models/error.rb +251 -0
- data/lib/griffnode/models/fiat_currency.rb +42 -0
- data/lib/griffnode/models/get_account200_response.rb +233 -0
- data/lib/griffnode/models/get_health200_response.rb +232 -0
- data/lib/griffnode/models/get_prices200_response.rb +233 -0
- data/lib/griffnode/models/get_prices200_response_data.rb +238 -0
- data/lib/griffnode/models/get_stats200_response.rb +233 -0
- data/lib/griffnode/models/get_stats200_response_data.rb +241 -0
- data/lib/griffnode/models/inline_object.rb +267 -0
- data/lib/griffnode/models/inline_object_all_of_existing_transaction.rb +254 -0
- data/lib/griffnode/models/invoice.rb +311 -0
- data/lib/griffnode/models/line_item.rb +267 -0
- data/lib/griffnode/models/list_balances200_response.rb +233 -0
- data/lib/griffnode/models/list_balances200_response_data.rb +216 -0
- data/lib/griffnode/models/list_cryptocurrencies200_response.rb +233 -0
- data/lib/griffnode/models/list_cryptocurrencies200_response_data.rb +225 -0
- data/lib/griffnode/models/list_invoices200_response.rb +233 -0
- data/lib/griffnode/models/list_invoices200_response_data.rb +225 -0
- data/lib/griffnode/models/list_plans200_response.rb +233 -0
- data/lib/griffnode/models/list_plans200_response_data.rb +227 -0
- data/lib/griffnode/models/list_transactions200_response.rb +233 -0
- data/lib/griffnode/models/list_transactions200_response_data.rb +239 -0
- data/lib/griffnode/models/pagination.rb +253 -0
- data/lib/griffnode/models/payment_split.rb +262 -0
- data/lib/griffnode/models/plan.rb +330 -0
- data/lib/griffnode/models/plan_tier.rb +42 -0
- data/lib/griffnode/models/transaction.rb +535 -0
- data/lib/griffnode/models/transaction_envelope.rb +233 -0
- data/lib/griffnode/models/transaction_status.rb +44 -0
- data/lib/griffnode/models/webhook_payload.rb +387 -0
- data/lib/griffnode/version.rb +15 -0
- data/lib/griffnode.rb +84 -0
- data/openapi.yaml +791 -0
- data/openapitools.json +15 -0
- data/spec/api/account_api_spec.rb +87 -0
- data/spec/api/billing_api_spec.rb +46 -0
- data/spec/api/default_api_spec.rb +47 -0
- data/spec/api/market_data_api_spec.rb +65 -0
- data/spec/api/system_api_spec.rb +60 -0
- data/spec/api/transactions_api_spec.rb +84 -0
- data/spec/models/account_limits_spec.rb +48 -0
- data/spec/models/account_plan_spec.rb +54 -0
- data/spec/models/account_spec.rb +48 -0
- data/spec/models/account_usage_spec.rb +48 -0
- data/spec/models/balance_spec.rb +54 -0
- data/spec/models/create_billing_checkout_request_spec.rb +48 -0
- data/spec/models/create_detailed_transaction_request_spec.rb +78 -0
- data/spec/models/create_transaction_request_spec.rb +72 -0
- data/spec/models/crypto_symbol_spec.rb +30 -0
- data/spec/models/cryptocurrency_spec.rb +64 -0
- data/spec/models/error_spec.rb +48 -0
- data/spec/models/fiat_currency_spec.rb +30 -0
- data/spec/models/get_account200_response_spec.rb +42 -0
- data/spec/models/get_health200_response_spec.rb +48 -0
- data/spec/models/get_prices200_response_data_spec.rb +48 -0
- data/spec/models/get_prices200_response_spec.rb +42 -0
- data/spec/models/get_stats200_response_data_spec.rb +54 -0
- data/spec/models/get_stats200_response_spec.rb +42 -0
- data/spec/models/inline_object_all_of_existing_transaction_spec.rb +48 -0
- data/spec/models/inline_object_spec.rb +54 -0
- data/spec/models/invoice_spec.rb +84 -0
- data/spec/models/line_item_spec.rb +48 -0
- data/spec/models/list_balances200_response_data_spec.rb +36 -0
- data/spec/models/list_balances200_response_spec.rb +42 -0
- data/spec/models/list_cryptocurrencies200_response_data_spec.rb +42 -0
- data/spec/models/list_cryptocurrencies200_response_spec.rb +42 -0
- data/spec/models/list_invoices200_response_data_spec.rb +42 -0
- data/spec/models/list_invoices200_response_spec.rb +42 -0
- data/spec/models/list_plans200_response_data_spec.rb +42 -0
- data/spec/models/list_plans200_response_spec.rb +42 -0
- data/spec/models/list_transactions200_response_data_spec.rb +42 -0
- data/spec/models/list_transactions200_response_spec.rb +42 -0
- data/spec/models/pagination_spec.rb +48 -0
- data/spec/models/payment_split_spec.rb +66 -0
- data/spec/models/plan_spec.rb +96 -0
- data/spec/models/plan_tier_spec.rb +30 -0
- data/spec/models/transaction_envelope_spec.rb +42 -0
- data/spec/models/transaction_spec.rb +184 -0
- data/spec/models/transaction_status_spec.rb +30 -0
- data/spec/models/webhook_payload_spec.rb +106 -0
- data/spec/spec_helper.rb +111 -0
- metadata +286 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# GriffNode::Cryptocurrency
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **symbol** | [**CryptoSymbol**](CryptoSymbol.md) | | [optional] |
|
|
8
|
+
| **name** | **String** | | [optional] |
|
|
9
|
+
| **blockchain** | **String** | | [optional] |
|
|
10
|
+
| **network** | **String** | | [optional] |
|
|
11
|
+
| **type** | **String** | | [optional] |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'griffnode'
|
|
17
|
+
|
|
18
|
+
instance = GriffNode::Cryptocurrency.new(
|
|
19
|
+
symbol: null,
|
|
20
|
+
name: null,
|
|
21
|
+
blockchain: null,
|
|
22
|
+
network: null,
|
|
23
|
+
type: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
data/docs/DefaultApi.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# GriffNode::DefaultApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.griffnode.com/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**payment_webhook**](DefaultApi.md#payment_webhook) | **POST** /paymentEvent | Payment lifecycle event delivered to the merchant's webhook URL |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## payment_webhook
|
|
11
|
+
|
|
12
|
+
> payment_webhook(opts)
|
|
13
|
+
|
|
14
|
+
Payment lifecycle event delivered to the merchant's webhook URL
|
|
15
|
+
|
|
16
|
+
Signed with HMAC-SHA256 over the RAW request body. Verify by comparing `X-GriffNode-Signature: sha256=<hex>` to `hex(hmac_sha256(webhook_secret, raw_body))` using a constant-time compare. Also sent: `X-GriffNode-Event` (the event type) and `X-Webhook-ID` (unique delivery id — use for idempotency).
|
|
17
|
+
|
|
18
|
+
### Examples
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
require 'time'
|
|
22
|
+
require 'griffnode'
|
|
23
|
+
# setup authorization
|
|
24
|
+
GriffNode.configure do |config|
|
|
25
|
+
# Configure Bearer authorization: SecretKey
|
|
26
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
api_instance = GriffNode::DefaultApi.new
|
|
30
|
+
opts = {
|
|
31
|
+
webhook_payload: # WebhookPayload |
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
begin
|
|
35
|
+
# Payment lifecycle event delivered to the merchant's webhook URL
|
|
36
|
+
api_instance.payment_webhook(opts)
|
|
37
|
+
rescue GriffNode::ApiError => e
|
|
38
|
+
puts "Error when calling DefaultApi->payment_webhook: #{e}"
|
|
39
|
+
end
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
#### Using the payment_webhook_with_http_info variant
|
|
43
|
+
|
|
44
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
45
|
+
|
|
46
|
+
> <Array(nil, Integer, Hash)> payment_webhook_with_http_info(opts)
|
|
47
|
+
|
|
48
|
+
```ruby
|
|
49
|
+
begin
|
|
50
|
+
# Payment lifecycle event delivered to the merchant's webhook URL
|
|
51
|
+
data, status_code, headers = api_instance.payment_webhook_with_http_info(opts)
|
|
52
|
+
p status_code # => 2xx
|
|
53
|
+
p headers # => { ... }
|
|
54
|
+
p data # => nil
|
|
55
|
+
rescue GriffNode::ApiError => e
|
|
56
|
+
puts "Error when calling DefaultApi->payment_webhook_with_http_info: #{e}"
|
|
57
|
+
end
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Parameters
|
|
61
|
+
|
|
62
|
+
| Name | Type | Description | Notes |
|
|
63
|
+
| ---- | ---- | ----------- | ----- |
|
|
64
|
+
| **webhook_payload** | [**WebhookPayload**](WebhookPayload.md) | | [optional] |
|
|
65
|
+
|
|
66
|
+
### Return type
|
|
67
|
+
|
|
68
|
+
nil (empty response body)
|
|
69
|
+
|
|
70
|
+
### Authorization
|
|
71
|
+
|
|
72
|
+
[SecretKey](../README.md#SecretKey)
|
|
73
|
+
|
|
74
|
+
### HTTP request headers
|
|
75
|
+
|
|
76
|
+
- **Content-Type**: application/json
|
|
77
|
+
- **Accept**: Not defined
|
|
78
|
+
|
data/docs/Error.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# GriffNode::Error
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Object** | | |
|
|
8
|
+
| **error** | **String** | Machine-readable code. | |
|
|
9
|
+
| **message** | **String** | Human-readable description. | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'griffnode'
|
|
15
|
+
|
|
16
|
+
instance = GriffNode::Error.new(
|
|
17
|
+
success: null,
|
|
18
|
+
error: null,
|
|
19
|
+
message: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GriffNode::GetAccount200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Object** | | |
|
|
8
|
+
| **data** | [**Account**](Account.md) | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'griffnode'
|
|
14
|
+
|
|
15
|
+
instance = GriffNode::GetAccount200Response.new(
|
|
16
|
+
success: null,
|
|
17
|
+
data: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# GriffNode::GetHealth200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **status** | **String** | | [optional] |
|
|
8
|
+
| **service** | **String** | | [optional] |
|
|
9
|
+
| **version** | **String** | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'griffnode'
|
|
15
|
+
|
|
16
|
+
instance = GriffNode::GetHealth200Response.new(
|
|
17
|
+
status: null,
|
|
18
|
+
service: null,
|
|
19
|
+
version: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GriffNode::GetPrices200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Object** | | |
|
|
8
|
+
| **data** | [**GetPrices200ResponseData**](GetPrices200ResponseData.md) | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'griffnode'
|
|
14
|
+
|
|
15
|
+
instance = GriffNode::GetPrices200Response.new(
|
|
16
|
+
success: null,
|
|
17
|
+
data: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# GriffNode::GetPrices200ResponseData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **crypto** | **Hash<String, Float>** | USD price per unit, keyed by crypto symbol (active coins only). | [optional] |
|
|
8
|
+
| **fiat** | **Hash<String, Float>** | USD value of one unit of each fiat currency. | [optional] |
|
|
9
|
+
| **fetched_at** | **Time** | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'griffnode'
|
|
15
|
+
|
|
16
|
+
instance = GriffNode::GetPrices200ResponseData.new(
|
|
17
|
+
crypto: null,
|
|
18
|
+
fiat: null,
|
|
19
|
+
fetched_at: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GriffNode::GetStats200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Object** | | |
|
|
8
|
+
| **data** | [**GetStats200ResponseData**](GetStats200ResponseData.md) | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'griffnode'
|
|
14
|
+
|
|
15
|
+
instance = GriffNode::GetStats200Response.new(
|
|
16
|
+
success: null,
|
|
17
|
+
data: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# GriffNode::GetStats200ResponseData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **total_transactions** | **Integer** | | [optional] |
|
|
8
|
+
| **monthly_transactions** | **Integer** | | [optional] |
|
|
9
|
+
| **total_volume_fiat** | **Float** | | [optional] |
|
|
10
|
+
| **unique_customers** | **Integer** | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'griffnode'
|
|
16
|
+
|
|
17
|
+
instance = GriffNode::GetStats200ResponseData.new(
|
|
18
|
+
total_transactions: null,
|
|
19
|
+
monthly_transactions: null,
|
|
20
|
+
total_volume_fiat: null,
|
|
21
|
+
unique_customers: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# GriffNode::InlineObject
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Object** | | |
|
|
8
|
+
| **error** | **String** | Machine-readable code. | |
|
|
9
|
+
| **message** | **String** | Human-readable description. | |
|
|
10
|
+
| **existing_transaction** | [**InlineObjectAllOfExistingTransaction**](InlineObjectAllOfExistingTransaction.md) | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'griffnode'
|
|
16
|
+
|
|
17
|
+
instance = GriffNode::InlineObject.new(
|
|
18
|
+
success: null,
|
|
19
|
+
error: null,
|
|
20
|
+
message: null,
|
|
21
|
+
existing_transaction: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# GriffNode::InlineObjectAllOfExistingTransaction
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **transaction_id** | **String** | | [optional] |
|
|
8
|
+
| **status** | [**TransactionStatus**](TransactionStatus.md) | | [optional] |
|
|
9
|
+
| **payment_url** | **String** | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'griffnode'
|
|
15
|
+
|
|
16
|
+
instance = GriffNode::InlineObjectAllOfExistingTransaction.new(
|
|
17
|
+
transaction_id: null,
|
|
18
|
+
status: null,
|
|
19
|
+
payment_url: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/Invoice.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# GriffNode::Invoice
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **transaction_id** | **String** | | [optional] |
|
|
8
|
+
| **purchase_type** | **String** | | [optional] |
|
|
9
|
+
| **amount_fiat** | **Float** | | [optional] |
|
|
10
|
+
| **currency_fiat** | [**FiatCurrency**](FiatCurrency.md) | | [optional][default to 'USD'] |
|
|
11
|
+
| **status** | **String** | | [optional] |
|
|
12
|
+
| **crypto_symbol** | [**CryptoSymbol**](CryptoSymbol.md) | | [optional] |
|
|
13
|
+
| **created_at** | **Time** | | [optional] |
|
|
14
|
+
| **confirmed_at** | **Time** | | [optional] |
|
|
15
|
+
| **expires_at** | **Time** | | [optional] |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'griffnode'
|
|
21
|
+
|
|
22
|
+
instance = GriffNode::Invoice.new(
|
|
23
|
+
transaction_id: null,
|
|
24
|
+
purchase_type: null,
|
|
25
|
+
amount_fiat: null,
|
|
26
|
+
currency_fiat: null,
|
|
27
|
+
status: null,
|
|
28
|
+
crypto_symbol: null,
|
|
29
|
+
created_at: null,
|
|
30
|
+
confirmed_at: null,
|
|
31
|
+
expires_at: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
data/docs/LineItem.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# GriffNode::LineItem
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | | |
|
|
8
|
+
| **quantity** | **Integer** | | [optional][default to 1] |
|
|
9
|
+
| **price** | **Float** | | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'griffnode'
|
|
15
|
+
|
|
16
|
+
instance = GriffNode::LineItem.new(
|
|
17
|
+
name: null,
|
|
18
|
+
quantity: null,
|
|
19
|
+
price: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GriffNode::ListBalances200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Object** | | |
|
|
8
|
+
| **data** | [**ListBalances200ResponseData**](ListBalances200ResponseData.md) | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'griffnode'
|
|
14
|
+
|
|
15
|
+
instance = GriffNode::ListBalances200Response.new(
|
|
16
|
+
success: null,
|
|
17
|
+
data: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# GriffNode::ListBalances200ResponseData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **balances** | [**Array<Balance>**](Balance.md) | | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'griffnode'
|
|
13
|
+
|
|
14
|
+
instance = GriffNode::ListBalances200ResponseData.new(
|
|
15
|
+
balances: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GriffNode::ListCryptocurrencies200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Object** | | |
|
|
8
|
+
| **data** | [**ListCryptocurrencies200ResponseData**](ListCryptocurrencies200ResponseData.md) | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'griffnode'
|
|
14
|
+
|
|
15
|
+
instance = GriffNode::ListCryptocurrencies200Response.new(
|
|
16
|
+
success: null,
|
|
17
|
+
data: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GriffNode::ListCryptocurrencies200ResponseData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **cryptocurrencies** | [**Array<Cryptocurrency>**](Cryptocurrency.md) | | [optional] |
|
|
8
|
+
| **total** | **Integer** | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'griffnode'
|
|
14
|
+
|
|
15
|
+
instance = GriffNode::ListCryptocurrencies200ResponseData.new(
|
|
16
|
+
cryptocurrencies: null,
|
|
17
|
+
total: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GriffNode::ListInvoices200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Object** | | |
|
|
8
|
+
| **data** | [**ListInvoices200ResponseData**](ListInvoices200ResponseData.md) | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'griffnode'
|
|
14
|
+
|
|
15
|
+
instance = GriffNode::ListInvoices200Response.new(
|
|
16
|
+
success: null,
|
|
17
|
+
data: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GriffNode::ListInvoices200ResponseData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **invoices** | [**Array<Invoice>**](Invoice.md) | | [optional] |
|
|
8
|
+
| **pagination** | [**Pagination**](Pagination.md) | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'griffnode'
|
|
14
|
+
|
|
15
|
+
instance = GriffNode::ListInvoices200ResponseData.new(
|
|
16
|
+
invoices: null,
|
|
17
|
+
pagination: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GriffNode::ListPlans200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Object** | | |
|
|
8
|
+
| **data** | [**ListPlans200ResponseData**](ListPlans200ResponseData.md) | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'griffnode'
|
|
14
|
+
|
|
15
|
+
instance = GriffNode::ListPlans200Response.new(
|
|
16
|
+
success: null,
|
|
17
|
+
data: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GriffNode::ListPlans200ResponseData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **plans** | [**Array<Plan>**](Plan.md) | | [optional] |
|
|
8
|
+
| **billing_cycles** | **Array<String>** | | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'griffnode'
|
|
14
|
+
|
|
15
|
+
instance = GriffNode::ListPlans200ResponseData.new(
|
|
16
|
+
plans: null,
|
|
17
|
+
billing_cycles: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GriffNode::ListTransactions200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **success** | **Object** | | |
|
|
8
|
+
| **data** | [**ListTransactions200ResponseData**](ListTransactions200ResponseData.md) | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'griffnode'
|
|
14
|
+
|
|
15
|
+
instance = GriffNode::ListTransactions200Response.new(
|
|
16
|
+
success: null,
|
|
17
|
+
data: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# GriffNode::ListTransactions200ResponseData
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **transactions** | [**Array<Transaction>**](Transaction.md) | | |
|
|
8
|
+
| **pagination** | [**Pagination**](Pagination.md) | | |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'griffnode'
|
|
14
|
+
|
|
15
|
+
instance = GriffNode::ListTransactions200ResponseData.new(
|
|
16
|
+
transactions: null,
|
|
17
|
+
pagination: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|