up_banking 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +219 -0
- data/Rakefile +10 -0
- data/config.json +11 -0
- data/docs/AccountResource.md +26 -0
- data/docs/AccountResourceAttributes.md +26 -0
- data/docs/AccountResourceAttributesBalance.md +22 -0
- data/docs/AccountResourceLinks.md +18 -0
- data/docs/AccountResourceRelationships.md +18 -0
- data/docs/AccountResourceRelationshipsTransactions.md +18 -0
- data/docs/AccountResourceRelationshipsTransactionsLinks.md +18 -0
- data/docs/AccountTypeEnum.md +15 -0
- data/docs/AccountsApi.md +153 -0
- data/docs/CashbackObject.md +20 -0
- data/docs/CashbackObjectAmount.md +22 -0
- data/docs/CategoriesApi.md +222 -0
- data/docs/CategoryInputResourceIdentifier.md +20 -0
- data/docs/CategoryResource.md +26 -0
- data/docs/CategoryResourceAttributes.md +18 -0
- data/docs/CategoryResourceRelationships.md +20 -0
- data/docs/CategoryResourceRelationshipsChildren.md +20 -0
- data/docs/CategoryResourceRelationshipsChildrenDataInner.md +20 -0
- data/docs/CategoryResourceRelationshipsParent.md +20 -0
- data/docs/CategoryResourceRelationshipsParentData.md +20 -0
- data/docs/CreateWebhookRequest.md +18 -0
- data/docs/CreateWebhookRequestData.md +18 -0
- data/docs/CreateWebhookResponse.md +18 -0
- data/docs/CreateWebhookResponseData.md +26 -0
- data/docs/ErrorObject.md +24 -0
- data/docs/ErrorObjectSource.md +20 -0
- data/docs/ErrorResponse.md +18 -0
- data/docs/GetAccountResponse.md +18 -0
- data/docs/GetAccountResponseData.md +26 -0
- data/docs/GetCategoryResponse.md +18 -0
- data/docs/GetCategoryResponseData.md +26 -0
- data/docs/GetTransactionResponse.md +18 -0
- data/docs/GetTransactionResponseData.md +26 -0
- data/docs/GetWebhookResponse.md +18 -0
- data/docs/GetWebhookResponseData.md +26 -0
- data/docs/HoldInfoObject.md +20 -0
- data/docs/HoldInfoObjectAmount.md +22 -0
- data/docs/HoldInfoObjectForeignAmount.md +22 -0
- data/docs/ListAccountsResponse.md +20 -0
- data/docs/ListAccountsResponseLinks.md +20 -0
- data/docs/ListCategoriesResponse.md +18 -0
- data/docs/ListTagsResponse.md +20 -0
- data/docs/ListTransactionsResponse.md +20 -0
- data/docs/ListWebhookDeliveryLogsResponse.md +20 -0
- data/docs/ListWebhooksResponse.md +20 -0
- data/docs/MoneyObject.md +22 -0
- data/docs/OwnershipTypeEnum.md +15 -0
- data/docs/PingResponse.md +18 -0
- data/docs/PingResponseMeta.md +20 -0
- data/docs/RoundUpObject.md +20 -0
- data/docs/RoundUpObjectAmount.md +22 -0
- data/docs/RoundUpObjectBoostPortion.md +22 -0
- data/docs/TagInputResourceIdentifier.md +20 -0
- data/docs/TagResource.md +22 -0
- data/docs/TagsApi.md +225 -0
- data/docs/TransactionResource.md +26 -0
- data/docs/TransactionResourceAttributes.md +40 -0
- data/docs/TransactionResourceAttributesAmount.md +22 -0
- data/docs/TransactionResourceAttributesCashback.md +20 -0
- data/docs/TransactionResourceAttributesForeignAmount.md +22 -0
- data/docs/TransactionResourceAttributesHoldInfo.md +20 -0
- data/docs/TransactionResourceAttributesRoundUp.md +20 -0
- data/docs/TransactionResourceRelationships.md +26 -0
- data/docs/TransactionResourceRelationshipsAccount.md +20 -0
- data/docs/TransactionResourceRelationshipsAccountData.md +20 -0
- data/docs/TransactionResourceRelationshipsCategory.md +20 -0
- data/docs/TransactionResourceRelationshipsCategoryLinks.md +20 -0
- data/docs/TransactionResourceRelationshipsTags.md +20 -0
- data/docs/TransactionResourceRelationshipsTagsDataInner.md +20 -0
- data/docs/TransactionResourceRelationshipsTagsLinks.md +18 -0
- data/docs/TransactionResourceRelationshipsTransferAccount.md +20 -0
- data/docs/TransactionResourceRelationshipsTransferAccountData.md +20 -0
- data/docs/TransactionStatusEnum.md +15 -0
- data/docs/TransactionsApi.md +243 -0
- data/docs/UpdateTransactionCategoryRequest.md +18 -0
- data/docs/UpdateTransactionCategoryRequestData.md +20 -0
- data/docs/UpdateTransactionTagsRequest.md +18 -0
- data/docs/UtilityEndpointsApi.md +74 -0
- data/docs/WebhookDeliveryLogResource.md +24 -0
- data/docs/WebhookDeliveryLogResourceAttributes.md +24 -0
- data/docs/WebhookDeliveryLogResourceAttributesRequest.md +18 -0
- data/docs/WebhookDeliveryLogResourceAttributesResponse.md +20 -0
- data/docs/WebhookDeliveryLogResourceRelationships.md +18 -0
- data/docs/WebhookDeliveryLogResourceRelationshipsWebhookEvent.md +18 -0
- data/docs/WebhookDeliveryLogResourceRelationshipsWebhookEventData.md +20 -0
- data/docs/WebhookDeliveryStatusEnum.md +15 -0
- data/docs/WebhookEventCallback.md +18 -0
- data/docs/WebhookEventCallbackData.md +24 -0
- data/docs/WebhookEventResource.md +24 -0
- data/docs/WebhookEventResourceAttributes.md +20 -0
- data/docs/WebhookEventResourceRelationships.md +20 -0
- data/docs/WebhookEventResourceRelationshipsTransaction.md +20 -0
- data/docs/WebhookEventResourceRelationshipsTransactionData.md +20 -0
- data/docs/WebhookEventResourceRelationshipsWebhook.md +20 -0
- data/docs/WebhookEventResourceRelationshipsWebhookData.md +20 -0
- data/docs/WebhookEventTypeEnum.md +15 -0
- data/docs/WebhookInputResource.md +18 -0
- data/docs/WebhookInputResourceAttributes.md +20 -0
- data/docs/WebhookResource.md +26 -0
- data/docs/WebhookResourceAttributes.md +24 -0
- data/docs/WebhookResourceRelationships.md +18 -0
- data/docs/WebhooksApi.md +434 -0
- data/git_push.sh +57 -0
- data/lib/.DS_Store +0 -0
- data/lib/up_banking/.DS_Store +0 -0
- data/lib/up_banking/api/accounts_api.rb +151 -0
- data/lib/up_banking/api/categories_api.rb +213 -0
- data/lib/up_banking/api/tags_api.rb +218 -0
- data/lib/up_banking/api/transactions_api.rb +241 -0
- data/lib/up_banking/api/utility_endpoints_api.rb +79 -0
- data/lib/up_banking/api/webhooks_api.rb +399 -0
- data/lib/up_banking/api_client.rb +392 -0
- data/lib/up_banking/api_error.rb +57 -0
- data/lib/up_banking/configuration.rb +279 -0
- data/lib/up_banking/models/account_resource.rb +278 -0
- data/lib/up_banking/models/account_resource_attributes.rb +284 -0
- data/lib/up_banking/models/account_resource_attributes_balance.rb +263 -0
- data/lib/up_banking/models/account_resource_links.rb +225 -0
- data/lib/up_banking/models/account_resource_relationships.rb +224 -0
- data/lib/up_banking/models/account_resource_relationships_transactions.rb +219 -0
- data/lib/up_banking/models/account_resource_relationships_transactions_links.rb +225 -0
- data/lib/up_banking/models/account_type_enum.rb +40 -0
- data/lib/up_banking/models/cashback_object.rb +240 -0
- data/lib/up_banking/models/cashback_object_amount.rb +263 -0
- data/lib/up_banking/models/category_input_resource_identifier.rb +241 -0
- data/lib/up_banking/models/category_resource.rb +278 -0
- data/lib/up_banking/models/category_resource_attributes.rb +225 -0
- data/lib/up_banking/models/category_resource_relationships.rb +238 -0
- data/lib/up_banking/models/category_resource_relationships_children.rb +235 -0
- data/lib/up_banking/models/category_resource_relationships_children_data_inner.rb +240 -0
- data/lib/up_banking/models/category_resource_relationships_parent.rb +229 -0
- data/lib/up_banking/models/category_resource_relationships_parent_data.rb +240 -0
- data/lib/up_banking/models/create_webhook_request.rb +225 -0
- data/lib/up_banking/models/create_webhook_request_data.rb +232 -0
- data/lib/up_banking/models/create_webhook_response.rb +225 -0
- data/lib/up_banking/models/create_webhook_response_data.rb +285 -0
- data/lib/up_banking/models/error_object.rb +265 -0
- data/lib/up_banking/models/error_object_source.rb +231 -0
- data/lib/up_banking/models/error_response.rb +228 -0
- data/lib/up_banking/models/get_account_response.rb +225 -0
- data/lib/up_banking/models/get_account_response_data.rb +285 -0
- data/lib/up_banking/models/get_category_response.rb +225 -0
- data/lib/up_banking/models/get_category_response_data.rb +285 -0
- data/lib/up_banking/models/get_transaction_response.rb +225 -0
- data/lib/up_banking/models/get_transaction_response_data.rb +285 -0
- data/lib/up_banking/models/get_webhook_response.rb +225 -0
- data/lib/up_banking/models/get_webhook_response_data.rb +285 -0
- data/lib/up_banking/models/hold_info_object.rb +235 -0
- data/lib/up_banking/models/hold_info_object_amount.rb +263 -0
- data/lib/up_banking/models/hold_info_object_foreign_amount.rb +263 -0
- data/lib/up_banking/models/list_accounts_response.rb +242 -0
- data/lib/up_banking/models/list_accounts_response_links.rb +232 -0
- data/lib/up_banking/models/list_categories_response.rb +228 -0
- data/lib/up_banking/models/list_tags_response.rb +242 -0
- data/lib/up_banking/models/list_transactions_response.rb +242 -0
- data/lib/up_banking/models/list_webhook_delivery_logs_response.rb +242 -0
- data/lib/up_banking/models/list_webhooks_response.rb +242 -0
- data/lib/up_banking/models/money_object.rb +256 -0
- data/lib/up_banking/models/ownership_type_enum.rb +40 -0
- data/lib/up_banking/models/ping_response.rb +225 -0
- data/lib/up_banking/models/ping_response_meta.rb +240 -0
- data/lib/up_banking/models/round_up_object.rb +235 -0
- data/lib/up_banking/models/round_up_object_amount.rb +263 -0
- data/lib/up_banking/models/round_up_object_boost_portion.rb +263 -0
- data/lib/up_banking/models/tag_input_resource_identifier.rb +241 -0
- data/lib/up_banking/models/tag_resource.rb +255 -0
- data/lib/up_banking/models/transaction_resource.rb +277 -0
- data/lib/up_banking/models/transaction_resource_attributes.rb +357 -0
- data/lib/up_banking/models/transaction_resource_attributes_amount.rb +263 -0
- data/lib/up_banking/models/transaction_resource_attributes_cashback.rb +247 -0
- data/lib/up_banking/models/transaction_resource_attributes_foreign_amount.rb +263 -0
- data/lib/up_banking/models/transaction_resource_attributes_hold_info.rb +242 -0
- data/lib/up_banking/models/transaction_resource_attributes_round_up.rb +242 -0
- data/lib/up_banking/models/transaction_resource_relationships.rb +280 -0
- data/lib/up_banking/models/transaction_resource_relationships_account.rb +233 -0
- data/lib/up_banking/models/transaction_resource_relationships_account_data.rb +240 -0
- data/lib/up_banking/models/transaction_resource_relationships_category.rb +229 -0
- data/lib/up_banking/models/transaction_resource_relationships_category_links.rb +235 -0
- data/lib/up_banking/models/transaction_resource_relationships_tags.rb +235 -0
- data/lib/up_banking/models/transaction_resource_relationships_tags_data_inner.rb +240 -0
- data/lib/up_banking/models/transaction_resource_relationships_tags_links.rb +225 -0
- data/lib/up_banking/models/transaction_resource_relationships_transfer_account.rb +230 -0
- data/lib/up_banking/models/transaction_resource_relationships_transfer_account_data.rb +240 -0
- data/lib/up_banking/models/transaction_status_enum.rb +40 -0
- data/lib/up_banking/models/update_transaction_category_request.rb +221 -0
- data/lib/up_banking/models/update_transaction_category_request_data.rb +248 -0
- data/lib/up_banking/models/update_transaction_tags_request.rb +228 -0
- data/lib/up_banking/models/webhook_delivery_log_resource.rb +269 -0
- data/lib/up_banking/models/webhook_delivery_log_resource_attributes.rb +264 -0
- data/lib/up_banking/models/webhook_delivery_log_resource_attributes_request.rb +226 -0
- data/lib/up_banking/models/webhook_delivery_log_resource_attributes_response.rb +241 -0
- data/lib/up_banking/models/webhook_delivery_log_resource_relationships.rb +224 -0
- data/lib/up_banking/models/webhook_delivery_log_resource_relationships_webhook_event.rb +224 -0
- data/lib/up_banking/models/webhook_delivery_log_resource_relationships_webhook_event_data.rb +240 -0
- data/lib/up_banking/models/webhook_delivery_status_enum.rb +41 -0
- data/lib/up_banking/models/webhook_event_callback.rb +225 -0
- data/lib/up_banking/models/webhook_event_callback_data.rb +276 -0
- data/lib/up_banking/models/webhook_event_resource.rb +269 -0
- data/lib/up_banking/models/webhook_event_resource_attributes.rb +240 -0
- data/lib/up_banking/models/webhook_event_resource_relationships.rb +233 -0
- data/lib/up_banking/models/webhook_event_resource_relationships_transaction.rb +233 -0
- data/lib/up_banking/models/webhook_event_resource_relationships_transaction_data.rb +240 -0
- data/lib/up_banking/models/webhook_event_resource_relationships_webhook.rb +233 -0
- data/lib/up_banking/models/webhook_event_resource_relationships_webhook_data.rb +240 -0
- data/lib/up_banking/models/webhook_event_type_enum.rb +42 -0
- data/lib/up_banking/models/webhook_input_resource.rb +225 -0
- data/lib/up_banking/models/webhook_input_resource_attributes.rb +236 -0
- data/lib/up_banking/models/webhook_resource.rb +278 -0
- data/lib/up_banking/models/webhook_resource_attributes.rb +261 -0
- data/lib/up_banking/models/webhook_resource_relationships.rb +224 -0
- data/lib/up_banking/version.rb +15 -0
- data/lib/up_banking.rb +141 -0
- data/spec/.DS_Store +0 -0
- data/spec/api/accounts_api_spec.rb +61 -0
- data/spec/api/categories_api_spec.rb +72 -0
- data/spec/api/tags_api_spec.rb +73 -0
- data/spec/api/transactions_api_spec.rb +82 -0
- data/spec/api/utility_endpoints_api_spec.rb +46 -0
- data/spec/api/webhooks_api_spec.rb +108 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_resource_attributes_balance_spec.rb +46 -0
- data/spec/models/account_resource_attributes_spec.rb +58 -0
- data/spec/models/account_resource_links_spec.rb +34 -0
- data/spec/models/account_resource_relationships_spec.rb +34 -0
- data/spec/models/account_resource_relationships_transactions_links_spec.rb +34 -0
- data/spec/models/account_resource_relationships_transactions_spec.rb +34 -0
- data/spec/models/account_resource_spec.rb +58 -0
- data/spec/models/account_type_enum_spec.rb +28 -0
- data/spec/models/cashback_object_amount_spec.rb +46 -0
- data/spec/models/cashback_object_spec.rb +40 -0
- data/spec/models/category_input_resource_identifier_spec.rb +40 -0
- data/spec/models/category_resource_attributes_spec.rb +34 -0
- data/spec/models/category_resource_relationships_children_data_inner_spec.rb +40 -0
- data/spec/models/category_resource_relationships_children_spec.rb +40 -0
- data/spec/models/category_resource_relationships_parent_data_spec.rb +40 -0
- data/spec/models/category_resource_relationships_parent_spec.rb +40 -0
- data/spec/models/category_resource_relationships_spec.rb +40 -0
- data/spec/models/category_resource_spec.rb +58 -0
- data/spec/models/create_webhook_request_data_spec.rb +34 -0
- data/spec/models/create_webhook_request_spec.rb +34 -0
- data/spec/models/create_webhook_response_data_spec.rb +58 -0
- data/spec/models/create_webhook_response_spec.rb +34 -0
- data/spec/models/error_object_source_spec.rb +40 -0
- data/spec/models/error_object_spec.rb +52 -0
- data/spec/models/error_response_spec.rb +34 -0
- data/spec/models/get_account_response_data_spec.rb +58 -0
- data/spec/models/get_account_response_spec.rb +34 -0
- data/spec/models/get_category_response_data_spec.rb +58 -0
- data/spec/models/get_category_response_spec.rb +34 -0
- data/spec/models/get_transaction_response_data_spec.rb +58 -0
- data/spec/models/get_transaction_response_spec.rb +34 -0
- data/spec/models/get_webhook_response_data_spec.rb +58 -0
- data/spec/models/get_webhook_response_spec.rb +34 -0
- data/spec/models/hold_info_object_amount_spec.rb +46 -0
- data/spec/models/hold_info_object_foreign_amount_spec.rb +46 -0
- data/spec/models/hold_info_object_spec.rb +40 -0
- data/spec/models/list_accounts_response_links_spec.rb +40 -0
- data/spec/models/list_accounts_response_spec.rb +40 -0
- data/spec/models/list_categories_response_spec.rb +34 -0
- data/spec/models/list_tags_response_spec.rb +40 -0
- data/spec/models/list_transactions_response_spec.rb +40 -0
- data/spec/models/list_webhook_delivery_logs_response_spec.rb +40 -0
- data/spec/models/list_webhooks_response_spec.rb +40 -0
- data/spec/models/money_object_spec.rb +46 -0
- data/spec/models/ownership_type_enum_spec.rb +28 -0
- data/spec/models/ping_response_meta_spec.rb +40 -0
- data/spec/models/ping_response_spec.rb +34 -0
- data/spec/models/round_up_object_amount_spec.rb +46 -0
- data/spec/models/round_up_object_boost_portion_spec.rb +46 -0
- data/spec/models/round_up_object_spec.rb +40 -0
- data/spec/models/tag_input_resource_identifier_spec.rb +40 -0
- data/spec/models/tag_resource_spec.rb +46 -0
- data/spec/models/transaction_resource_attributes_amount_spec.rb +46 -0
- data/spec/models/transaction_resource_attributes_cashback_spec.rb +40 -0
- data/spec/models/transaction_resource_attributes_foreign_amount_spec.rb +46 -0
- data/spec/models/transaction_resource_attributes_hold_info_spec.rb +40 -0
- data/spec/models/transaction_resource_attributes_round_up_spec.rb +40 -0
- data/spec/models/transaction_resource_attributes_spec.rb +100 -0
- data/spec/models/transaction_resource_relationships_account_data_spec.rb +40 -0
- data/spec/models/transaction_resource_relationships_account_spec.rb +40 -0
- data/spec/models/transaction_resource_relationships_category_links_spec.rb +40 -0
- data/spec/models/transaction_resource_relationships_category_spec.rb +40 -0
- data/spec/models/transaction_resource_relationships_spec.rb +58 -0
- data/spec/models/transaction_resource_relationships_tags_data_inner_spec.rb +40 -0
- data/spec/models/transaction_resource_relationships_tags_links_spec.rb +34 -0
- data/spec/models/transaction_resource_relationships_tags_spec.rb +40 -0
- data/spec/models/transaction_resource_relationships_transfer_account_data_spec.rb +40 -0
- data/spec/models/transaction_resource_relationships_transfer_account_spec.rb +40 -0
- data/spec/models/transaction_resource_spec.rb +58 -0
- data/spec/models/transaction_status_enum_spec.rb +28 -0
- data/spec/models/update_transaction_category_request_data_spec.rb +40 -0
- data/spec/models/update_transaction_category_request_spec.rb +34 -0
- data/spec/models/update_transaction_tags_request_spec.rb +34 -0
- data/spec/models/webhook_delivery_log_resource_attributes_request_spec.rb +34 -0
- data/spec/models/webhook_delivery_log_resource_attributes_response_spec.rb +40 -0
- data/spec/models/webhook_delivery_log_resource_attributes_spec.rb +52 -0
- data/spec/models/webhook_delivery_log_resource_relationships_spec.rb +34 -0
- data/spec/models/webhook_delivery_log_resource_relationships_webhook_event_data_spec.rb +40 -0
- data/spec/models/webhook_delivery_log_resource_relationships_webhook_event_spec.rb +34 -0
- data/spec/models/webhook_delivery_log_resource_spec.rb +52 -0
- data/spec/models/webhook_delivery_status_enum_spec.rb +28 -0
- data/spec/models/webhook_event_callback_data_spec.rb +52 -0
- data/spec/models/webhook_event_callback_spec.rb +34 -0
- data/spec/models/webhook_event_resource_attributes_spec.rb +40 -0
- data/spec/models/webhook_event_resource_relationships_spec.rb +40 -0
- data/spec/models/webhook_event_resource_relationships_transaction_data_spec.rb +40 -0
- data/spec/models/webhook_event_resource_relationships_transaction_spec.rb +40 -0
- data/spec/models/webhook_event_resource_relationships_webhook_data_spec.rb +40 -0
- data/spec/models/webhook_event_resource_relationships_webhook_spec.rb +40 -0
- data/spec/models/webhook_event_resource_spec.rb +52 -0
- data/spec/models/webhook_event_type_enum_spec.rb +28 -0
- data/spec/models/webhook_input_resource_attributes_spec.rb +40 -0
- data/spec/models/webhook_input_resource_spec.rb +34 -0
- data/spec/models/webhook_resource_attributes_spec.rb +52 -0
- data/spec/models/webhook_resource_relationships_spec.rb +34 -0
- data/spec/models/webhook_resource_spec.rb +58 -0
- data/spec/spec_helper.rb +111 -0
- data/up_banking.gemspec +38 -0
- metadata +511 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Up API
|
|
3
|
+
|
|
4
|
+
#The Up API gives you programmatic access to your balances and transaction data. You can request past transactions or set up webhooks to receive real-time events when new transactions hit your account. It’s new, it’s exciting and it’s just the beginning.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.2.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module UpBankingClient
|
|
17
|
+
class WebhookResourceRelationships
|
|
18
|
+
attr_accessor :logs
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'logs' => :'logs'
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Returns all the JSON keys this model knows about
|
|
28
|
+
def self.acceptable_attributes
|
|
29
|
+
attribute_map.values
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Attribute type mapping.
|
|
33
|
+
def self.openapi_types
|
|
34
|
+
{
|
|
35
|
+
:'logs' => :'AccountResourceRelationshipsTransactions'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# List of attributes with nullable: true
|
|
40
|
+
def self.openapi_nullable
|
|
41
|
+
Set.new([
|
|
42
|
+
])
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Initializes the object
|
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
47
|
+
def initialize(attributes = {})
|
|
48
|
+
if (!attributes.is_a?(Hash))
|
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UpBankingClient::WebhookResourceRelationships` initialize method"
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
53
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
54
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UpBankingClient::WebhookResourceRelationships`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
56
|
+
end
|
|
57
|
+
h[k.to_sym] = v
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if attributes.key?(:'logs')
|
|
61
|
+
self.logs = attributes[:'logs']
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
66
|
+
# @return Array for valid properties with the reasons
|
|
67
|
+
def list_invalid_properties
|
|
68
|
+
invalid_properties = Array.new
|
|
69
|
+
if @logs.nil?
|
|
70
|
+
invalid_properties.push('invalid value for "logs", logs cannot be nil.')
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
invalid_properties
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Check to see if the all the properties in the model are valid
|
|
77
|
+
# @return true if the model is valid
|
|
78
|
+
def valid?
|
|
79
|
+
return false if @logs.nil?
|
|
80
|
+
true
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Checks equality by comparing each attribute.
|
|
84
|
+
# @param [Object] Object to be compared
|
|
85
|
+
def ==(o)
|
|
86
|
+
return true if self.equal?(o)
|
|
87
|
+
self.class == o.class &&
|
|
88
|
+
logs == o.logs
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# @see the `==` method
|
|
92
|
+
# @param [Object] Object to be compared
|
|
93
|
+
def eql?(o)
|
|
94
|
+
self == o
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Calculates hash code according to all attributes.
|
|
98
|
+
# @return [Integer] Hash code
|
|
99
|
+
def hash
|
|
100
|
+
[logs].hash
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Builds the object from hash
|
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
105
|
+
# @return [Object] Returns the model itself
|
|
106
|
+
def self.build_from_hash(attributes)
|
|
107
|
+
new.build_from_hash(attributes)
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Builds the object from hash
|
|
111
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
112
|
+
# @return [Object] Returns the model itself
|
|
113
|
+
def build_from_hash(attributes)
|
|
114
|
+
return nil unless attributes.is_a?(Hash)
|
|
115
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
116
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
117
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
118
|
+
self.send("#{key}=", nil)
|
|
119
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
120
|
+
# check to ensure the input is an array given that the attribute
|
|
121
|
+
# is documented as an array but the input is not
|
|
122
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
123
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
124
|
+
end
|
|
125
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
126
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
self
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Deserializes the data based on type
|
|
134
|
+
# @param string type Data type
|
|
135
|
+
# @param string value Value to be deserialized
|
|
136
|
+
# @return [Object] Deserialized data
|
|
137
|
+
def _deserialize(type, value)
|
|
138
|
+
case type.to_sym
|
|
139
|
+
when :Time
|
|
140
|
+
Time.parse(value)
|
|
141
|
+
when :Date
|
|
142
|
+
Date.parse(value)
|
|
143
|
+
when :String
|
|
144
|
+
value.to_s
|
|
145
|
+
when :Integer
|
|
146
|
+
value.to_i
|
|
147
|
+
when :Float
|
|
148
|
+
value.to_f
|
|
149
|
+
when :Boolean
|
|
150
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
151
|
+
true
|
|
152
|
+
else
|
|
153
|
+
false
|
|
154
|
+
end
|
|
155
|
+
when :Object
|
|
156
|
+
# generic object (usually a Hash), return directly
|
|
157
|
+
value
|
|
158
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
159
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
160
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
161
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
162
|
+
k_type = Regexp.last_match[:k_type]
|
|
163
|
+
v_type = Regexp.last_match[:v_type]
|
|
164
|
+
{}.tap do |hash|
|
|
165
|
+
value.each do |k, v|
|
|
166
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
else # model
|
|
170
|
+
# models (e.g. Pet) or oneOf
|
|
171
|
+
klass = UpBankingClient.const_get(type)
|
|
172
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Returns the string representation of the object
|
|
177
|
+
# @return [String] String presentation of the object
|
|
178
|
+
def to_s
|
|
179
|
+
to_hash.to_s
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
183
|
+
# @return [Hash] Returns the object in the form of hash
|
|
184
|
+
def to_body
|
|
185
|
+
to_hash
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Returns the object in the form of hash
|
|
189
|
+
# @return [Hash] Returns the object in the form of hash
|
|
190
|
+
def to_hash
|
|
191
|
+
hash = {}
|
|
192
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
193
|
+
value = self.send(attr)
|
|
194
|
+
if value.nil?
|
|
195
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
196
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
hash[param] = _to_hash(value)
|
|
200
|
+
end
|
|
201
|
+
hash
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Outputs non-array value in the form of hash
|
|
205
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
206
|
+
# @param [Object] value Any valid value
|
|
207
|
+
# @return [Hash] Returns the value in the form of hash
|
|
208
|
+
def _to_hash(value)
|
|
209
|
+
if value.is_a?(Array)
|
|
210
|
+
value.compact.map { |v| _to_hash(v) }
|
|
211
|
+
elsif value.is_a?(Hash)
|
|
212
|
+
{}.tap do |hash|
|
|
213
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
214
|
+
end
|
|
215
|
+
elsif value.respond_to? :to_hash
|
|
216
|
+
value.to_hash
|
|
217
|
+
else
|
|
218
|
+
value
|
|
219
|
+
end
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Up API
|
|
3
|
+
|
|
4
|
+
#The Up API gives you programmatic access to your balances and transaction data. You can request past transactions or set up webhooks to receive real-time events when new transactions hit your account. It’s new, it’s exciting and it’s just the beginning.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.2.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
module UpBankingClient
|
|
14
|
+
VERSION = '1.0.0'
|
|
15
|
+
end
|
data/lib/up_banking.rb
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Up API
|
|
3
|
+
|
|
4
|
+
#The Up API gives you programmatic access to your balances and transaction data. You can request past transactions or set up webhooks to receive real-time events when new transactions hit your account. It’s new, it’s exciting and it’s just the beginning.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.2.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
# Common files
|
|
14
|
+
require 'up_banking/api_client'
|
|
15
|
+
require 'up_banking/api_error'
|
|
16
|
+
require 'up_banking/version'
|
|
17
|
+
require 'up_banking/configuration'
|
|
18
|
+
|
|
19
|
+
# Models
|
|
20
|
+
require 'up_banking/models/account_resource'
|
|
21
|
+
require 'up_banking/models/account_resource_attributes'
|
|
22
|
+
require 'up_banking/models/account_resource_attributes_balance'
|
|
23
|
+
require 'up_banking/models/account_resource_links'
|
|
24
|
+
require 'up_banking/models/account_resource_relationships'
|
|
25
|
+
require 'up_banking/models/account_resource_relationships_transactions'
|
|
26
|
+
require 'up_banking/models/account_resource_relationships_transactions_links'
|
|
27
|
+
require 'up_banking/models/account_type_enum'
|
|
28
|
+
require 'up_banking/models/cashback_object'
|
|
29
|
+
require 'up_banking/models/cashback_object_amount'
|
|
30
|
+
require 'up_banking/models/category_input_resource_identifier'
|
|
31
|
+
require 'up_banking/models/category_resource'
|
|
32
|
+
require 'up_banking/models/category_resource_attributes'
|
|
33
|
+
require 'up_banking/models/category_resource_relationships'
|
|
34
|
+
require 'up_banking/models/category_resource_relationships_children'
|
|
35
|
+
require 'up_banking/models/category_resource_relationships_children_data_inner'
|
|
36
|
+
require 'up_banking/models/category_resource_relationships_parent'
|
|
37
|
+
require 'up_banking/models/category_resource_relationships_parent_data'
|
|
38
|
+
require 'up_banking/models/create_webhook_request'
|
|
39
|
+
require 'up_banking/models/create_webhook_request_data'
|
|
40
|
+
require 'up_banking/models/create_webhook_response'
|
|
41
|
+
require 'up_banking/models/create_webhook_response_data'
|
|
42
|
+
require 'up_banking/models/error_object'
|
|
43
|
+
require 'up_banking/models/error_object_source'
|
|
44
|
+
require 'up_banking/models/error_response'
|
|
45
|
+
require 'up_banking/models/get_account_response'
|
|
46
|
+
require 'up_banking/models/get_account_response_data'
|
|
47
|
+
require 'up_banking/models/get_category_response'
|
|
48
|
+
require 'up_banking/models/get_category_response_data'
|
|
49
|
+
require 'up_banking/models/get_transaction_response'
|
|
50
|
+
require 'up_banking/models/get_transaction_response_data'
|
|
51
|
+
require 'up_banking/models/get_webhook_response'
|
|
52
|
+
require 'up_banking/models/get_webhook_response_data'
|
|
53
|
+
require 'up_banking/models/hold_info_object'
|
|
54
|
+
require 'up_banking/models/hold_info_object_amount'
|
|
55
|
+
require 'up_banking/models/hold_info_object_foreign_amount'
|
|
56
|
+
require 'up_banking/models/list_accounts_response'
|
|
57
|
+
require 'up_banking/models/list_accounts_response_links'
|
|
58
|
+
require 'up_banking/models/list_categories_response'
|
|
59
|
+
require 'up_banking/models/list_tags_response'
|
|
60
|
+
require 'up_banking/models/list_transactions_response'
|
|
61
|
+
require 'up_banking/models/list_webhook_delivery_logs_response'
|
|
62
|
+
require 'up_banking/models/list_webhooks_response'
|
|
63
|
+
require 'up_banking/models/money_object'
|
|
64
|
+
require 'up_banking/models/ownership_type_enum'
|
|
65
|
+
require 'up_banking/models/ping_response'
|
|
66
|
+
require 'up_banking/models/ping_response_meta'
|
|
67
|
+
require 'up_banking/models/round_up_object'
|
|
68
|
+
require 'up_banking/models/round_up_object_amount'
|
|
69
|
+
require 'up_banking/models/round_up_object_boost_portion'
|
|
70
|
+
require 'up_banking/models/tag_input_resource_identifier'
|
|
71
|
+
require 'up_banking/models/tag_resource'
|
|
72
|
+
require 'up_banking/models/transaction_resource'
|
|
73
|
+
require 'up_banking/models/transaction_resource_attributes'
|
|
74
|
+
require 'up_banking/models/transaction_resource_attributes_amount'
|
|
75
|
+
require 'up_banking/models/transaction_resource_attributes_cashback'
|
|
76
|
+
require 'up_banking/models/transaction_resource_attributes_foreign_amount'
|
|
77
|
+
require 'up_banking/models/transaction_resource_attributes_hold_info'
|
|
78
|
+
require 'up_banking/models/transaction_resource_attributes_round_up'
|
|
79
|
+
require 'up_banking/models/transaction_resource_relationships'
|
|
80
|
+
require 'up_banking/models/transaction_resource_relationships_account'
|
|
81
|
+
require 'up_banking/models/transaction_resource_relationships_account_data'
|
|
82
|
+
require 'up_banking/models/transaction_resource_relationships_category'
|
|
83
|
+
require 'up_banking/models/transaction_resource_relationships_category_links'
|
|
84
|
+
require 'up_banking/models/transaction_resource_relationships_tags'
|
|
85
|
+
require 'up_banking/models/transaction_resource_relationships_tags_data_inner'
|
|
86
|
+
require 'up_banking/models/transaction_resource_relationships_tags_links'
|
|
87
|
+
require 'up_banking/models/transaction_resource_relationships_transfer_account'
|
|
88
|
+
require 'up_banking/models/transaction_resource_relationships_transfer_account_data'
|
|
89
|
+
require 'up_banking/models/transaction_status_enum'
|
|
90
|
+
require 'up_banking/models/update_transaction_category_request'
|
|
91
|
+
require 'up_banking/models/update_transaction_category_request_data'
|
|
92
|
+
require 'up_banking/models/update_transaction_tags_request'
|
|
93
|
+
require 'up_banking/models/webhook_delivery_log_resource'
|
|
94
|
+
require 'up_banking/models/webhook_delivery_log_resource_attributes'
|
|
95
|
+
require 'up_banking/models/webhook_delivery_log_resource_attributes_request'
|
|
96
|
+
require 'up_banking/models/webhook_delivery_log_resource_attributes_response'
|
|
97
|
+
require 'up_banking/models/webhook_delivery_log_resource_relationships'
|
|
98
|
+
require 'up_banking/models/webhook_delivery_log_resource_relationships_webhook_event'
|
|
99
|
+
require 'up_banking/models/webhook_delivery_log_resource_relationships_webhook_event_data'
|
|
100
|
+
require 'up_banking/models/webhook_delivery_status_enum'
|
|
101
|
+
require 'up_banking/models/webhook_event_callback'
|
|
102
|
+
require 'up_banking/models/webhook_event_callback_data'
|
|
103
|
+
require 'up_banking/models/webhook_event_resource'
|
|
104
|
+
require 'up_banking/models/webhook_event_resource_attributes'
|
|
105
|
+
require 'up_banking/models/webhook_event_resource_relationships'
|
|
106
|
+
require 'up_banking/models/webhook_event_resource_relationships_transaction'
|
|
107
|
+
require 'up_banking/models/webhook_event_resource_relationships_transaction_data'
|
|
108
|
+
require 'up_banking/models/webhook_event_resource_relationships_webhook'
|
|
109
|
+
require 'up_banking/models/webhook_event_resource_relationships_webhook_data'
|
|
110
|
+
require 'up_banking/models/webhook_event_type_enum'
|
|
111
|
+
require 'up_banking/models/webhook_input_resource'
|
|
112
|
+
require 'up_banking/models/webhook_input_resource_attributes'
|
|
113
|
+
require 'up_banking/models/webhook_resource'
|
|
114
|
+
require 'up_banking/models/webhook_resource_attributes'
|
|
115
|
+
require 'up_banking/models/webhook_resource_relationships'
|
|
116
|
+
|
|
117
|
+
# APIs
|
|
118
|
+
require 'up_banking/api/accounts_api'
|
|
119
|
+
require 'up_banking/api/categories_api'
|
|
120
|
+
require 'up_banking/api/tags_api'
|
|
121
|
+
require 'up_banking/api/transactions_api'
|
|
122
|
+
require 'up_banking/api/utility_endpoints_api'
|
|
123
|
+
require 'up_banking/api/webhooks_api'
|
|
124
|
+
|
|
125
|
+
module UpBankingClient
|
|
126
|
+
class << self
|
|
127
|
+
# Customize default settings for the SDK using block.
|
|
128
|
+
# UpBankingClient.configure do |config|
|
|
129
|
+
# config.username = "xxx"
|
|
130
|
+
# config.password = "xxx"
|
|
131
|
+
# end
|
|
132
|
+
# If no block given, return the default Configuration object.
|
|
133
|
+
def configure
|
|
134
|
+
if block_given?
|
|
135
|
+
yield(Configuration.default)
|
|
136
|
+
else
|
|
137
|
+
Configuration.default
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|
data/spec/.DS_Store
ADDED
|
Binary file
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Up API
|
|
3
|
+
|
|
4
|
+
#The Up API gives you programmatic access to your balances and transaction data. You can request past transactions or set up webhooks to receive real-time events when new transactions hit your account. It’s new, it’s exciting and it’s just the beginning.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.2.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for UpBankingClient::AccountsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'AccountsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = UpBankingClient::AccountsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of AccountsApi' do
|
|
30
|
+
it 'should create an instance of AccountsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(UpBankingClient::AccountsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for accounts_get
|
|
36
|
+
# List accounts
|
|
37
|
+
# Retrieve a paginated list of all accounts for the currently authenticated user. The returned list is paginated and can be scrolled by following the `prev` and `next` links where present.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [Integer] :page_size The number of records to return in each page.
|
|
40
|
+
# @option opts [AccountTypeEnum] :filter_account_type The type of account for which to return records. This can be used to filter Savers from spending accounts.
|
|
41
|
+
# @option opts [OwnershipTypeEnum] :filter_ownership_type The account ownership structure for which to return records. This can be used to filter 2Up accounts from Up accounts.
|
|
42
|
+
# @return [ListAccountsResponse]
|
|
43
|
+
describe 'accounts_get test' do
|
|
44
|
+
it 'should work' do
|
|
45
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# unit tests for accounts_id_get
|
|
50
|
+
# Retrieve account
|
|
51
|
+
# Retrieve a specific account by providing its unique identifier.
|
|
52
|
+
# @param id The unique identifier for the account.
|
|
53
|
+
# @param [Hash] opts the optional parameters
|
|
54
|
+
# @return [GetAccountResponse]
|
|
55
|
+
describe 'accounts_id_get test' do
|
|
56
|
+
it 'should work' do
|
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Up API
|
|
3
|
+
|
|
4
|
+
#The Up API gives you programmatic access to your balances and transaction data. You can request past transactions or set up webhooks to receive real-time events when new transactions hit your account. It’s new, it’s exciting and it’s just the beginning.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.2.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for UpBankingClient::CategoriesApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'CategoriesApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = UpBankingClient::CategoriesApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of CategoriesApi' do
|
|
30
|
+
it 'should create an instance of CategoriesApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(UpBankingClient::CategoriesApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for categories_get
|
|
36
|
+
# List categories
|
|
37
|
+
# Retrieve a list of all categories and their ancestry. The returned list is not paginated.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [String] :filter_parent The unique identifier of a parent category for which to return only its children. Providing an invalid category identifier results in a `404` response.
|
|
40
|
+
# @return [ListCategoriesResponse]
|
|
41
|
+
describe 'categories_get test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for categories_id_get
|
|
48
|
+
# Retrieve category
|
|
49
|
+
# Retrieve a specific category by providing its unique identifier.
|
|
50
|
+
# @param id The unique identifier for the category.
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @return [GetCategoryResponse]
|
|
53
|
+
describe 'categories_id_get test' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# unit tests for transactions_transaction_id_relationships_category_patch
|
|
60
|
+
# Categorize transaction
|
|
61
|
+
# Updates the category associated with a transaction. Only transactions for which `isCategorizable` is set to true support this operation. The `id` is taken from the list exposed on `/categories` and cannot be one of the top-level (parent) categories. To de-categorize a transaction, set the entire `data` key to `null`. An HTTP `204` is returned on success. The associated category, along with its request URL is also exposed via the `category` relationship on the transaction resource returned from `/transactions/{id}`.
|
|
62
|
+
# @param transaction_id The unique identifier for the transaction.
|
|
63
|
+
# @param [Hash] opts the optional parameters
|
|
64
|
+
# @option opts [UpdateTransactionCategoryRequest] :update_transaction_category_request
|
|
65
|
+
# @return [nil]
|
|
66
|
+
describe 'transactions_transaction_id_relationships_category_patch test' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
end
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Up API
|
|
3
|
+
|
|
4
|
+
#The Up API gives you programmatic access to your balances and transaction data. You can request past transactions or set up webhooks to receive real-time events when new transactions hit your account. It’s new, it’s exciting and it’s just the beginning.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.2.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for UpBankingClient::TagsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'TagsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = UpBankingClient::TagsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of TagsApi' do
|
|
30
|
+
it 'should create an instance of TagsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(UpBankingClient::TagsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for tags_get
|
|
36
|
+
# List tags
|
|
37
|
+
# Retrieve a list of all tags currently in use. The returned list is [paginated](#pagination) and can be scrolled by following the `next` and `prev` links where present. Results are ordered lexicographically. The `transactions` relationship for each tag exposes a link to get the transactions with the given tag.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [Integer] :page_size The number of records to return in each page.
|
|
40
|
+
# @return [ListTagsResponse]
|
|
41
|
+
describe 'tags_get test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for transactions_transaction_id_relationships_tags_delete
|
|
48
|
+
# Remove tags from transaction
|
|
49
|
+
# Disassociates one or more tags from a specific transaction. Tags that are not associated are silently ignored. An HTTP `204` is returned on success. The associated tags, along with this request URL, are also exposed via the `tags` relationship on the transaction resource returned from `/transactions/{id}`.
|
|
50
|
+
# @param transaction_id The unique identifier for the transaction.
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @option opts [UpdateTransactionTagsRequest] :update_transaction_tags_request
|
|
53
|
+
# @return [nil]
|
|
54
|
+
describe 'transactions_transaction_id_relationships_tags_delete test' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# unit tests for transactions_transaction_id_relationships_tags_post
|
|
61
|
+
# Add tags to transaction
|
|
62
|
+
# Associates one or more tags with a specific transaction. No more than 6 tags may be present on any single transaction. Duplicate tags are silently ignored. An HTTP `204` is returned on success. The associated tags, along with this request URL, are also exposed via the `tags` relationship on the transaction resource returned from `/transactions/{id}`.
|
|
63
|
+
# @param transaction_id The unique identifier for the transaction.
|
|
64
|
+
# @param [Hash] opts the optional parameters
|
|
65
|
+
# @option opts [UpdateTransactionTagsRequest] :update_transaction_tags_request
|
|
66
|
+
# @return [nil]
|
|
67
|
+
describe 'transactions_transaction_id_relationships_tags_post test' do
|
|
68
|
+
it 'should work' do
|
|
69
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
end
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Up API
|
|
3
|
+
|
|
4
|
+
#The Up API gives you programmatic access to your balances and transaction data. You can request past transactions or set up webhooks to receive real-time events when new transactions hit your account. It’s new, it’s exciting and it’s just the beginning.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 6.2.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for UpBankingClient::TransactionsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'TransactionsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = UpBankingClient::TransactionsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of TransactionsApi' do
|
|
30
|
+
it 'should create an instance of TransactionsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(UpBankingClient::TransactionsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for accounts_account_id_transactions_get
|
|
36
|
+
# List transactions by account
|
|
37
|
+
# Retrieve a list of all transactions for a specific account. The returned list is [paginated](#pagination) and can be scrolled by following the `next` and `prev` links where present. To narrow the results to a specific date range pass one or both of `filter[since]` and `filter[until]` in the query string. These filter parameters **should not** be used for pagination. Results are ordered newest first to oldest last.
|
|
38
|
+
# @param account_id The unique identifier for the account.
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [Integer] :page_size The number of records to return in each page.
|
|
41
|
+
# @option opts [TransactionStatusEnum] :filter_status The transaction status for which to return records. This can be used to filter `HELD` transactions from those that are `SETTLED`.
|
|
42
|
+
# @option opts [Time] :filter_since The start date-time from which to return records, formatted according to rfc-3339. Not to be used for pagination purposes.
|
|
43
|
+
# @option opts [Time] :filter_until The end date-time up to which to return records, formatted according to rfc-3339. Not to be used for pagination purposes.
|
|
44
|
+
# @option opts [String] :filter_category The category identifier for which to filter transactions. Both parent and child categories can be filtered through this parameter. Providing an invalid category identifier results in a `404` response.
|
|
45
|
+
# @option opts [String] :filter_tag A transaction tag to filter for which to return records. If the tag does not exist, zero records are returned and a success response is given.
|
|
46
|
+
# @return [ListTransactionsResponse]
|
|
47
|
+
describe 'accounts_account_id_transactions_get test' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# unit tests for transactions_get
|
|
54
|
+
# List transactions
|
|
55
|
+
# Retrieve a list of all transactions across all accounts for the currently authenticated user. The returned list is [paginated](#pagination) and can be scrolled by following the `next` and `prev` links where present. To narrow the results to a specific date range pass one or both of `filter[since]` and `filter[until]` in the query string. These filter parameters **should not** be used for pagination. Results are ordered newest first to oldest last.
|
|
56
|
+
# @param [Hash] opts the optional parameters
|
|
57
|
+
# @option opts [Integer] :page_size The number of records to return in each page.
|
|
58
|
+
# @option opts [TransactionStatusEnum] :filter_status The transaction status for which to return records. This can be used to filter `HELD` transactions from those that are `SETTLED`.
|
|
59
|
+
# @option opts [Time] :filter_since The start date-time from which to return records, formatted according to rfc-3339. Not to be used for pagination purposes.
|
|
60
|
+
# @option opts [Time] :filter_until The end date-time up to which to return records, formatted according to rfc-3339. Not to be used for pagination purposes.
|
|
61
|
+
# @option opts [String] :filter_category The category identifier for which to filter transactions. Both parent and child categories can be filtered through this parameter. Providing an invalid category identifier results in a `404` response.
|
|
62
|
+
# @option opts [String] :filter_tag A transaction tag to filter for which to return records. If the tag does not exist, zero records are returned and a success response is given.
|
|
63
|
+
# @return [ListTransactionsResponse]
|
|
64
|
+
describe 'transactions_get test' do
|
|
65
|
+
it 'should work' do
|
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# unit tests for transactions_id_get
|
|
71
|
+
# Retrieve transaction
|
|
72
|
+
# Retrieve a specific transaction by providing its unique identifier.
|
|
73
|
+
# @param id The unique identifier for the transaction.
|
|
74
|
+
# @param [Hash] opts the optional parameters
|
|
75
|
+
# @return [GetTransactionResponse]
|
|
76
|
+
describe 'transactions_id_get test' do
|
|
77
|
+
it 'should work' do
|
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
end
|