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
data/docs/WebhooksApi.md
ADDED
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
# UpBankingClient::WebhooksApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.up.com.au/api/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**webhooks_get**](WebhooksApi.md#webhooks_get) | **GET** /webhooks | List webhooks |
|
|
8
|
+
| [**webhooks_id_delete**](WebhooksApi.md#webhooks_id_delete) | **DELETE** /webhooks/{id} | Delete webhook |
|
|
9
|
+
| [**webhooks_id_get**](WebhooksApi.md#webhooks_id_get) | **GET** /webhooks/{id} | Retrieve webhook |
|
|
10
|
+
| [**webhooks_post**](WebhooksApi.md#webhooks_post) | **POST** /webhooks | Create webhook |
|
|
11
|
+
| [**webhooks_webhook_id_logs_get**](WebhooksApi.md#webhooks_webhook_id_logs_get) | **GET** /webhooks/{webhookId}/logs | List webhook logs |
|
|
12
|
+
| [**webhooks_webhook_id_ping_post**](WebhooksApi.md#webhooks_webhook_id_ping_post) | **POST** /webhooks/{webhookId}/ping | Ping webhook |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## webhooks_get
|
|
16
|
+
|
|
17
|
+
> <ListWebhooksResponse> webhooks_get(opts)
|
|
18
|
+
|
|
19
|
+
List webhooks
|
|
20
|
+
|
|
21
|
+
Retrieve a list of configured webhooks. The returned list is [paginated](#pagination) and can be scrolled by following the `next` and `prev` links where present. Results are ordered oldest first to newest last.
|
|
22
|
+
|
|
23
|
+
### Examples
|
|
24
|
+
|
|
25
|
+
```ruby
|
|
26
|
+
require 'time'
|
|
27
|
+
require 'up_banking'
|
|
28
|
+
# setup authorization
|
|
29
|
+
UpBankingClient.configure do |config|
|
|
30
|
+
# Configure Bearer authorization: bearer_auth
|
|
31
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
api_instance = UpBankingClient::WebhooksApi.new
|
|
35
|
+
opts = {
|
|
36
|
+
page_size: 30 # Integer | The number of records to return in each page.
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
begin
|
|
40
|
+
# List webhooks
|
|
41
|
+
result = api_instance.webhooks_get(opts)
|
|
42
|
+
p result
|
|
43
|
+
rescue UpBankingClient::ApiError => e
|
|
44
|
+
puts "Error when calling WebhooksApi->webhooks_get: #{e}"
|
|
45
|
+
end
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
#### Using the webhooks_get_with_http_info variant
|
|
49
|
+
|
|
50
|
+
This returns an Array which contains the response data, status code and headers.
|
|
51
|
+
|
|
52
|
+
> <Array(<ListWebhooksResponse>, Integer, Hash)> webhooks_get_with_http_info(opts)
|
|
53
|
+
|
|
54
|
+
```ruby
|
|
55
|
+
begin
|
|
56
|
+
# List webhooks
|
|
57
|
+
data, status_code, headers = api_instance.webhooks_get_with_http_info(opts)
|
|
58
|
+
p status_code # => 2xx
|
|
59
|
+
p headers # => { ... }
|
|
60
|
+
p data # => <ListWebhooksResponse>
|
|
61
|
+
rescue UpBankingClient::ApiError => e
|
|
62
|
+
puts "Error when calling WebhooksApi->webhooks_get_with_http_info: #{e}"
|
|
63
|
+
end
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Parameters
|
|
67
|
+
|
|
68
|
+
| Name | Type | Description | Notes |
|
|
69
|
+
| ---- | ---- | ----------- | ----- |
|
|
70
|
+
| **page_size** | **Integer** | The number of records to return in each page. | [optional] |
|
|
71
|
+
|
|
72
|
+
### Return type
|
|
73
|
+
|
|
74
|
+
[**ListWebhooksResponse**](ListWebhooksResponse.md)
|
|
75
|
+
|
|
76
|
+
### Authorization
|
|
77
|
+
|
|
78
|
+
[bearer_auth](../README.md#bearer_auth)
|
|
79
|
+
|
|
80
|
+
### HTTP request headers
|
|
81
|
+
|
|
82
|
+
- **Content-Type**: Not defined
|
|
83
|
+
- **Accept**: application/json
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## webhooks_id_delete
|
|
87
|
+
|
|
88
|
+
> webhooks_id_delete(id)
|
|
89
|
+
|
|
90
|
+
Delete webhook
|
|
91
|
+
|
|
92
|
+
Delete a specific webhook by providing its unique identifier. Once deleted, webhook events will no longer be sent to the configured URL.
|
|
93
|
+
|
|
94
|
+
### Examples
|
|
95
|
+
|
|
96
|
+
```ruby
|
|
97
|
+
require 'time'
|
|
98
|
+
require 'up_banking'
|
|
99
|
+
# setup authorization
|
|
100
|
+
UpBankingClient.configure do |config|
|
|
101
|
+
# Configure Bearer authorization: bearer_auth
|
|
102
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
api_instance = UpBankingClient::WebhooksApi.new
|
|
106
|
+
id = 'a940825b-80b6-4798-b378-c6284259b4c5' # String | The unique identifier for the webhook.
|
|
107
|
+
|
|
108
|
+
begin
|
|
109
|
+
# Delete webhook
|
|
110
|
+
api_instance.webhooks_id_delete(id)
|
|
111
|
+
rescue UpBankingClient::ApiError => e
|
|
112
|
+
puts "Error when calling WebhooksApi->webhooks_id_delete: #{e}"
|
|
113
|
+
end
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
#### Using the webhooks_id_delete_with_http_info variant
|
|
117
|
+
|
|
118
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
119
|
+
|
|
120
|
+
> <Array(nil, Integer, Hash)> webhooks_id_delete_with_http_info(id)
|
|
121
|
+
|
|
122
|
+
```ruby
|
|
123
|
+
begin
|
|
124
|
+
# Delete webhook
|
|
125
|
+
data, status_code, headers = api_instance.webhooks_id_delete_with_http_info(id)
|
|
126
|
+
p status_code # => 2xx
|
|
127
|
+
p headers # => { ... }
|
|
128
|
+
p data # => nil
|
|
129
|
+
rescue UpBankingClient::ApiError => e
|
|
130
|
+
puts "Error when calling WebhooksApi->webhooks_id_delete_with_http_info: #{e}"
|
|
131
|
+
end
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Parameters
|
|
135
|
+
|
|
136
|
+
| Name | Type | Description | Notes |
|
|
137
|
+
| ---- | ---- | ----------- | ----- |
|
|
138
|
+
| **id** | **String** | The unique identifier for the webhook. | |
|
|
139
|
+
|
|
140
|
+
### Return type
|
|
141
|
+
|
|
142
|
+
nil (empty response body)
|
|
143
|
+
|
|
144
|
+
### Authorization
|
|
145
|
+
|
|
146
|
+
[bearer_auth](../README.md#bearer_auth)
|
|
147
|
+
|
|
148
|
+
### HTTP request headers
|
|
149
|
+
|
|
150
|
+
- **Content-Type**: Not defined
|
|
151
|
+
- **Accept**: Not defined
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
## webhooks_id_get
|
|
155
|
+
|
|
156
|
+
> <GetWebhookResponse> webhooks_id_get(id)
|
|
157
|
+
|
|
158
|
+
Retrieve webhook
|
|
159
|
+
|
|
160
|
+
Retrieve a specific webhook by providing its unique identifier.
|
|
161
|
+
|
|
162
|
+
### Examples
|
|
163
|
+
|
|
164
|
+
```ruby
|
|
165
|
+
require 'time'
|
|
166
|
+
require 'up_banking'
|
|
167
|
+
# setup authorization
|
|
168
|
+
UpBankingClient.configure do |config|
|
|
169
|
+
# Configure Bearer authorization: bearer_auth
|
|
170
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
api_instance = UpBankingClient::WebhooksApi.new
|
|
174
|
+
id = 'c8283a72-24b0-4fd8-9b13-fccccab371e5' # String | The unique identifier for the webhook.
|
|
175
|
+
|
|
176
|
+
begin
|
|
177
|
+
# Retrieve webhook
|
|
178
|
+
result = api_instance.webhooks_id_get(id)
|
|
179
|
+
p result
|
|
180
|
+
rescue UpBankingClient::ApiError => e
|
|
181
|
+
puts "Error when calling WebhooksApi->webhooks_id_get: #{e}"
|
|
182
|
+
end
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
#### Using the webhooks_id_get_with_http_info variant
|
|
186
|
+
|
|
187
|
+
This returns an Array which contains the response data, status code and headers.
|
|
188
|
+
|
|
189
|
+
> <Array(<GetWebhookResponse>, Integer, Hash)> webhooks_id_get_with_http_info(id)
|
|
190
|
+
|
|
191
|
+
```ruby
|
|
192
|
+
begin
|
|
193
|
+
# Retrieve webhook
|
|
194
|
+
data, status_code, headers = api_instance.webhooks_id_get_with_http_info(id)
|
|
195
|
+
p status_code # => 2xx
|
|
196
|
+
p headers # => { ... }
|
|
197
|
+
p data # => <GetWebhookResponse>
|
|
198
|
+
rescue UpBankingClient::ApiError => e
|
|
199
|
+
puts "Error when calling WebhooksApi->webhooks_id_get_with_http_info: #{e}"
|
|
200
|
+
end
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Parameters
|
|
204
|
+
|
|
205
|
+
| Name | Type | Description | Notes |
|
|
206
|
+
| ---- | ---- | ----------- | ----- |
|
|
207
|
+
| **id** | **String** | The unique identifier for the webhook. | |
|
|
208
|
+
|
|
209
|
+
### Return type
|
|
210
|
+
|
|
211
|
+
[**GetWebhookResponse**](GetWebhookResponse.md)
|
|
212
|
+
|
|
213
|
+
### Authorization
|
|
214
|
+
|
|
215
|
+
[bearer_auth](../README.md#bearer_auth)
|
|
216
|
+
|
|
217
|
+
### HTTP request headers
|
|
218
|
+
|
|
219
|
+
- **Content-Type**: Not defined
|
|
220
|
+
- **Accept**: application/json
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
## webhooks_post
|
|
224
|
+
|
|
225
|
+
> <CreateWebhookResponse> webhooks_post(opts)
|
|
226
|
+
|
|
227
|
+
Create webhook
|
|
228
|
+
|
|
229
|
+
Create a new webhook with a given URL. The URL will receive webhook events as JSON-encoded `POST` requests. The URL must respond with a HTTP `200` status on success. There is currently a limit of 10 webhooks at any given time. Once this limit is reached, existing webhooks will need to be deleted before new webhooks can be created. Event delivery is retried with exponential backoff if the URL is unreachable or it does not respond with a `200` status. The response includes a `secretKey` attribute, which is used to sign requests sent to the webhook URL. It will not be returned from any other endpoints within the Up API. If the `secretKey` is lost, simply create a new webhook with the same URL, capture its `secretKey` and then delete the original webhook. See [Handling webhook events](#callback_post_webhookURL) for details on how to process webhook events. It is probably a good idea to test the webhook by [sending it a `PING` event](#post_webhooks_webhookId_ping) after creating it.
|
|
230
|
+
|
|
231
|
+
### Examples
|
|
232
|
+
|
|
233
|
+
```ruby
|
|
234
|
+
require 'time'
|
|
235
|
+
require 'up_banking'
|
|
236
|
+
# setup authorization
|
|
237
|
+
UpBankingClient.configure do |config|
|
|
238
|
+
# Configure Bearer authorization: bearer_auth
|
|
239
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
api_instance = UpBankingClient::WebhooksApi.new
|
|
243
|
+
opts = {
|
|
244
|
+
create_webhook_request: UpBankingClient::CreateWebhookRequest.new({data: UpBankingClient::CreateWebhookRequestData.new({attributes: UpBankingClient::WebhookInputResourceAttributes.new({url: 'url_example'})})}) # CreateWebhookRequest |
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
begin
|
|
248
|
+
# Create webhook
|
|
249
|
+
result = api_instance.webhooks_post(opts)
|
|
250
|
+
p result
|
|
251
|
+
rescue UpBankingClient::ApiError => e
|
|
252
|
+
puts "Error when calling WebhooksApi->webhooks_post: #{e}"
|
|
253
|
+
end
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
#### Using the webhooks_post_with_http_info variant
|
|
257
|
+
|
|
258
|
+
This returns an Array which contains the response data, status code and headers.
|
|
259
|
+
|
|
260
|
+
> <Array(<CreateWebhookResponse>, Integer, Hash)> webhooks_post_with_http_info(opts)
|
|
261
|
+
|
|
262
|
+
```ruby
|
|
263
|
+
begin
|
|
264
|
+
# Create webhook
|
|
265
|
+
data, status_code, headers = api_instance.webhooks_post_with_http_info(opts)
|
|
266
|
+
p status_code # => 2xx
|
|
267
|
+
p headers # => { ... }
|
|
268
|
+
p data # => <CreateWebhookResponse>
|
|
269
|
+
rescue UpBankingClient::ApiError => e
|
|
270
|
+
puts "Error when calling WebhooksApi->webhooks_post_with_http_info: #{e}"
|
|
271
|
+
end
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### Parameters
|
|
275
|
+
|
|
276
|
+
| Name | Type | Description | Notes |
|
|
277
|
+
| ---- | ---- | ----------- | ----- |
|
|
278
|
+
| **create_webhook_request** | [**CreateWebhookRequest**](CreateWebhookRequest.md) | | [optional] |
|
|
279
|
+
|
|
280
|
+
### Return type
|
|
281
|
+
|
|
282
|
+
[**CreateWebhookResponse**](CreateWebhookResponse.md)
|
|
283
|
+
|
|
284
|
+
### Authorization
|
|
285
|
+
|
|
286
|
+
[bearer_auth](../README.md#bearer_auth)
|
|
287
|
+
|
|
288
|
+
### HTTP request headers
|
|
289
|
+
|
|
290
|
+
- **Content-Type**: application/json
|
|
291
|
+
- **Accept**: application/json
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
## webhooks_webhook_id_logs_get
|
|
295
|
+
|
|
296
|
+
> <ListWebhookDeliveryLogsResponse> webhooks_webhook_id_logs_get(webhook_id, opts)
|
|
297
|
+
|
|
298
|
+
List webhook logs
|
|
299
|
+
|
|
300
|
+
Retrieve a list of delivery logs for a webhook by providing its unique identifier. This is useful for analysis and debugging purposes. The returned list is [paginated](#pagination) and can be scrolled by following the `next` and `prev` links where present. Results are ordered newest first to oldest last. Logs may be automatically purged after a period of time.
|
|
301
|
+
|
|
302
|
+
### Examples
|
|
303
|
+
|
|
304
|
+
```ruby
|
|
305
|
+
require 'time'
|
|
306
|
+
require 'up_banking'
|
|
307
|
+
# setup authorization
|
|
308
|
+
UpBankingClient.configure do |config|
|
|
309
|
+
# Configure Bearer authorization: bearer_auth
|
|
310
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
api_instance = UpBankingClient::WebhooksApi.new
|
|
314
|
+
webhook_id = '7104f5df-4993-495f-9d29-2b4d062c03a9' # String | The unique identifier for the webhook.
|
|
315
|
+
opts = {
|
|
316
|
+
page_size: 30 # Integer | The number of records to return in each page.
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
begin
|
|
320
|
+
# List webhook logs
|
|
321
|
+
result = api_instance.webhooks_webhook_id_logs_get(webhook_id, opts)
|
|
322
|
+
p result
|
|
323
|
+
rescue UpBankingClient::ApiError => e
|
|
324
|
+
puts "Error when calling WebhooksApi->webhooks_webhook_id_logs_get: #{e}"
|
|
325
|
+
end
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
#### Using the webhooks_webhook_id_logs_get_with_http_info variant
|
|
329
|
+
|
|
330
|
+
This returns an Array which contains the response data, status code and headers.
|
|
331
|
+
|
|
332
|
+
> <Array(<ListWebhookDeliveryLogsResponse>, Integer, Hash)> webhooks_webhook_id_logs_get_with_http_info(webhook_id, opts)
|
|
333
|
+
|
|
334
|
+
```ruby
|
|
335
|
+
begin
|
|
336
|
+
# List webhook logs
|
|
337
|
+
data, status_code, headers = api_instance.webhooks_webhook_id_logs_get_with_http_info(webhook_id, opts)
|
|
338
|
+
p status_code # => 2xx
|
|
339
|
+
p headers # => { ... }
|
|
340
|
+
p data # => <ListWebhookDeliveryLogsResponse>
|
|
341
|
+
rescue UpBankingClient::ApiError => e
|
|
342
|
+
puts "Error when calling WebhooksApi->webhooks_webhook_id_logs_get_with_http_info: #{e}"
|
|
343
|
+
end
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
### Parameters
|
|
347
|
+
|
|
348
|
+
| Name | Type | Description | Notes |
|
|
349
|
+
| ---- | ---- | ----------- | ----- |
|
|
350
|
+
| **webhook_id** | **String** | The unique identifier for the webhook. | |
|
|
351
|
+
| **page_size** | **Integer** | The number of records to return in each page. | [optional] |
|
|
352
|
+
|
|
353
|
+
### Return type
|
|
354
|
+
|
|
355
|
+
[**ListWebhookDeliveryLogsResponse**](ListWebhookDeliveryLogsResponse.md)
|
|
356
|
+
|
|
357
|
+
### Authorization
|
|
358
|
+
|
|
359
|
+
[bearer_auth](../README.md#bearer_auth)
|
|
360
|
+
|
|
361
|
+
### HTTP request headers
|
|
362
|
+
|
|
363
|
+
- **Content-Type**: Not defined
|
|
364
|
+
- **Accept**: application/json
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
## webhooks_webhook_id_ping_post
|
|
368
|
+
|
|
369
|
+
> <WebhookEventCallback> webhooks_webhook_id_ping_post(webhook_id)
|
|
370
|
+
|
|
371
|
+
Ping webhook
|
|
372
|
+
|
|
373
|
+
Send a `PING` event to a webhook by providing its unique identifier. This is useful for testing and debugging purposes. The event is delivered asynchronously and its data is returned in the response to this request.
|
|
374
|
+
|
|
375
|
+
### Examples
|
|
376
|
+
|
|
377
|
+
```ruby
|
|
378
|
+
require 'time'
|
|
379
|
+
require 'up_banking'
|
|
380
|
+
# setup authorization
|
|
381
|
+
UpBankingClient.configure do |config|
|
|
382
|
+
# Configure Bearer authorization: bearer_auth
|
|
383
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
api_instance = UpBankingClient::WebhooksApi.new
|
|
387
|
+
webhook_id = '830e127d-fb89-4400-92bb-f3f48289dcba' # String | The unique identifier for the webhook.
|
|
388
|
+
|
|
389
|
+
begin
|
|
390
|
+
# Ping webhook
|
|
391
|
+
result = api_instance.webhooks_webhook_id_ping_post(webhook_id)
|
|
392
|
+
p result
|
|
393
|
+
rescue UpBankingClient::ApiError => e
|
|
394
|
+
puts "Error when calling WebhooksApi->webhooks_webhook_id_ping_post: #{e}"
|
|
395
|
+
end
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
#### Using the webhooks_webhook_id_ping_post_with_http_info variant
|
|
399
|
+
|
|
400
|
+
This returns an Array which contains the response data, status code and headers.
|
|
401
|
+
|
|
402
|
+
> <Array(<WebhookEventCallback>, Integer, Hash)> webhooks_webhook_id_ping_post_with_http_info(webhook_id)
|
|
403
|
+
|
|
404
|
+
```ruby
|
|
405
|
+
begin
|
|
406
|
+
# Ping webhook
|
|
407
|
+
data, status_code, headers = api_instance.webhooks_webhook_id_ping_post_with_http_info(webhook_id)
|
|
408
|
+
p status_code # => 2xx
|
|
409
|
+
p headers # => { ... }
|
|
410
|
+
p data # => <WebhookEventCallback>
|
|
411
|
+
rescue UpBankingClient::ApiError => e
|
|
412
|
+
puts "Error when calling WebhooksApi->webhooks_webhook_id_ping_post_with_http_info: #{e}"
|
|
413
|
+
end
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
### Parameters
|
|
417
|
+
|
|
418
|
+
| Name | Type | Description | Notes |
|
|
419
|
+
| ---- | ---- | ----------- | ----- |
|
|
420
|
+
| **webhook_id** | **String** | The unique identifier for the webhook. | |
|
|
421
|
+
|
|
422
|
+
### Return type
|
|
423
|
+
|
|
424
|
+
[**WebhookEventCallback**](WebhookEventCallback.md)
|
|
425
|
+
|
|
426
|
+
### Authorization
|
|
427
|
+
|
|
428
|
+
[bearer_auth](../README.md#bearer_auth)
|
|
429
|
+
|
|
430
|
+
### HTTP request headers
|
|
431
|
+
|
|
432
|
+
- **Content-Type**: Not defined
|
|
433
|
+
- **Accept**: application/json
|
|
434
|
+
|
data/git_push.sh
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
+
#
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host="github.com"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
|
17
|
+
git_user_id="GIT_USER_ID"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if [ "$release_note" = "" ]; then
|
|
27
|
+
release_note="Minor update"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Initialize the local directory as a Git repository
|
|
32
|
+
git init
|
|
33
|
+
|
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
|
35
|
+
git add .
|
|
36
|
+
|
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
+
git commit -m "$release_note"
|
|
39
|
+
|
|
40
|
+
# Sets the new remote
|
|
41
|
+
git_remote=$(git remote)
|
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
+
|
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
+
else
|
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
git pull origin master
|
|
54
|
+
|
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
data/lib/.DS_Store
ADDED
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,151 @@
|
|
|
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 'cgi'
|
|
14
|
+
|
|
15
|
+
module UpBankingClient
|
|
16
|
+
class AccountsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# List accounts
|
|
23
|
+
# 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.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [Integer] :page_size The number of records to return in each page.
|
|
26
|
+
# @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.
|
|
27
|
+
# @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.
|
|
28
|
+
# @return [ListAccountsResponse]
|
|
29
|
+
def accounts_get(opts = {})
|
|
30
|
+
data, _status_code, _headers = accounts_get_with_http_info(opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# List accounts
|
|
35
|
+
# 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.
|
|
36
|
+
# @param [Hash] opts the optional parameters
|
|
37
|
+
# @option opts [Integer] :page_size The number of records to return in each page.
|
|
38
|
+
# @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.
|
|
39
|
+
# @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.
|
|
40
|
+
# @return [Array<(ListAccountsResponse, Integer, Hash)>] ListAccountsResponse data, response status code and response headers
|
|
41
|
+
def accounts_get_with_http_info(opts = {})
|
|
42
|
+
if @api_client.config.debugging
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: AccountsApi.accounts_get ...'
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/accounts'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
query_params[:'page[size]'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
51
|
+
query_params[:'filter[accountType]'] = opts[:'filter_account_type'] if !opts[:'filter_account_type'].nil?
|
|
52
|
+
query_params[:'filter[ownershipType]'] = opts[:'filter_ownership_type'] if !opts[:'filter_ownership_type'].nil?
|
|
53
|
+
|
|
54
|
+
# header parameters
|
|
55
|
+
header_params = opts[:header_params] || {}
|
|
56
|
+
# HTTP header 'Accept' (if needed)
|
|
57
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
58
|
+
|
|
59
|
+
# form parameters
|
|
60
|
+
form_params = opts[:form_params] || {}
|
|
61
|
+
|
|
62
|
+
# http body (model)
|
|
63
|
+
post_body = opts[:debug_body]
|
|
64
|
+
|
|
65
|
+
# return_type
|
|
66
|
+
return_type = opts[:debug_return_type] || 'ListAccountsResponse'
|
|
67
|
+
|
|
68
|
+
# auth_names
|
|
69
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
|
70
|
+
|
|
71
|
+
new_options = opts.merge(
|
|
72
|
+
:operation => :"AccountsApi.accounts_get",
|
|
73
|
+
:header_params => header_params,
|
|
74
|
+
:query_params => query_params,
|
|
75
|
+
:form_params => form_params,
|
|
76
|
+
:body => post_body,
|
|
77
|
+
:auth_names => auth_names,
|
|
78
|
+
:return_type => return_type
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
82
|
+
if @api_client.config.debugging
|
|
83
|
+
@api_client.config.logger.debug "API called: AccountsApi#accounts_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
84
|
+
end
|
|
85
|
+
return data, status_code, headers
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Retrieve account
|
|
89
|
+
# Retrieve a specific account by providing its unique identifier.
|
|
90
|
+
# @param id [String] The unique identifier for the account.
|
|
91
|
+
# @param [Hash] opts the optional parameters
|
|
92
|
+
# @return [GetAccountResponse]
|
|
93
|
+
def accounts_id_get(id, opts = {})
|
|
94
|
+
data, _status_code, _headers = accounts_id_get_with_http_info(id, opts)
|
|
95
|
+
data
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Retrieve account
|
|
99
|
+
# Retrieve a specific account by providing its unique identifier.
|
|
100
|
+
# @param id [String] The unique identifier for the account.
|
|
101
|
+
# @param [Hash] opts the optional parameters
|
|
102
|
+
# @return [Array<(GetAccountResponse, Integer, Hash)>] GetAccountResponse data, response status code and response headers
|
|
103
|
+
def accounts_id_get_with_http_info(id, opts = {})
|
|
104
|
+
if @api_client.config.debugging
|
|
105
|
+
@api_client.config.logger.debug 'Calling API: AccountsApi.accounts_id_get ...'
|
|
106
|
+
end
|
|
107
|
+
# verify the required parameter 'id' is set
|
|
108
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
109
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AccountsApi.accounts_id_get"
|
|
110
|
+
end
|
|
111
|
+
# resource path
|
|
112
|
+
local_var_path = '/accounts/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
113
|
+
|
|
114
|
+
# query parameters
|
|
115
|
+
query_params = opts[:query_params] || {}
|
|
116
|
+
|
|
117
|
+
# header parameters
|
|
118
|
+
header_params = opts[:header_params] || {}
|
|
119
|
+
# HTTP header 'Accept' (if needed)
|
|
120
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
121
|
+
|
|
122
|
+
# form parameters
|
|
123
|
+
form_params = opts[:form_params] || {}
|
|
124
|
+
|
|
125
|
+
# http body (model)
|
|
126
|
+
post_body = opts[:debug_body]
|
|
127
|
+
|
|
128
|
+
# return_type
|
|
129
|
+
return_type = opts[:debug_return_type] || 'GetAccountResponse'
|
|
130
|
+
|
|
131
|
+
# auth_names
|
|
132
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
|
133
|
+
|
|
134
|
+
new_options = opts.merge(
|
|
135
|
+
:operation => :"AccountsApi.accounts_id_get",
|
|
136
|
+
:header_params => header_params,
|
|
137
|
+
:query_params => query_params,
|
|
138
|
+
:form_params => form_params,
|
|
139
|
+
:body => post_body,
|
|
140
|
+
:auth_names => auth_names,
|
|
141
|
+
:return_type => return_type
|
|
142
|
+
)
|
|
143
|
+
|
|
144
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
145
|
+
if @api_client.config.debugging
|
|
146
|
+
@api_client.config.logger.debug "API called: AccountsApi#accounts_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
147
|
+
end
|
|
148
|
+
return data, status_code, headers
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|