From e9654e5f5ba2832e5eaef8bd5e3219ae36406882 Mon Sep 17 00:00:00 2001 From: skellsrs <19161310+ESteanes@users.noreply.github.com> Date: Fri, 5 Jul 2024 21:54:44 +1000 Subject: [PATCH] removing redundant openapi package --- expense-manager/openapi/.gitignore | 24 - .../openapi/.openapi-generator-ignore | 23 - .../openapi/.openapi-generator/FILES | 198 - .../openapi/.openapi-generator/VERSION | 1 - expense-manager/openapi/.travis.yml | 8 - expense-manager/openapi/README.md | 229 -- expense-manager/openapi/api/openapi.yaml | 3400 ----------------- expense-manager/openapi/api_accounts.go | 259 -- expense-manager/openapi/api_categories.go | 345 -- expense-manager/openapi/api_tags.go | 346 -- expense-manager/openapi/api_transactions.go | 464 --- .../openapi/api_utility_endpoints.go | 135 - expense-manager/openapi/api_webhooks.go | 685 ---- expense-manager/openapi/client.go | 679 ---- expense-manager/openapi/configuration.go | 217 -- .../openapi/docs/AccountResource.md | 140 - .../openapi/docs/AccountResourceAttributes.md | 135 - .../openapi/docs/AccountResourceLinks.md | 51 - .../docs/AccountResourceRelationships.md | 51 - ...ccountResourceRelationshipsTransactions.md | 56 - ...tResourceRelationshipsTransactionsLinks.md | 51 - .../openapi/docs/AccountTypeEnum.md | 13 - expense-manager/openapi/docs/AccountsAPI.md | 150 - .../openapi/docs/CashbackObject.md | 72 - expense-manager/openapi/docs/CategoriesAPI.md | 217 -- .../docs/CategoryInputResourceIdentifier.md | 72 - .../openapi/docs/CategoryResource.md | 140 - .../docs/CategoryResourceAttributes.md | 51 - .../docs/CategoryResourceRelationships.md | 72 - .../CategoryResourceRelationshipsChildren.md | 77 - ...yResourceRelationshipsChildrenDataInner.md | 72 - .../CategoryResourceRelationshipsParent.md | 87 - ...CategoryResourceRelationshipsParentData.md | 72 - .../openapi/docs/CreateWebhookRequest.md | 51 - .../openapi/docs/CreateWebhookResponse.md | 51 - expense-manager/openapi/docs/ErrorObject.md | 119 - .../openapi/docs/ErrorObjectSource.md | 82 - expense-manager/openapi/docs/ErrorResponse.md | 51 - .../openapi/docs/GetAccountResponse.md | 51 - .../openapi/docs/GetCategoryResponse.md | 51 - .../openapi/docs/GetTransactionResponse.md | 51 - .../openapi/docs/GetWebhookResponse.md | 51 - .../openapi/docs/HoldInfoObject.md | 82 - .../docs/HoldInfoObjectForeignAmount.md | 93 - .../openapi/docs/ListAccountsResponse.md | 72 - .../openapi/docs/ListAccountsResponseLinks.md | 92 - .../openapi/docs/ListCategoriesResponse.md | 51 - .../openapi/docs/ListTagsResponse.md | 72 - .../openapi/docs/ListTransactionsResponse.md | 72 - .../docs/ListWebhookDeliveryLogsResponse.md | 72 - .../openapi/docs/ListWebhooksResponse.md | 72 - expense-manager/openapi/docs/MoneyObject.md | 93 - .../openapi/docs/OwnershipTypeEnum.md | 13 - expense-manager/openapi/docs/PingResponse.md | 51 - .../openapi/docs/PingResponseMeta.md | 72 - expense-manager/openapi/docs/RoundUpObject.md | 82 - .../openapi/docs/RoundUpObjectBoostPortion.md | 93 - .../docs/TagInputResourceIdentifier.md | 72 - expense-manager/openapi/docs/TagResource.md | 93 - expense-manager/openapi/docs/TagsAPI.md | 217 -- .../openapi/docs/TransactionResource.md | 140 - .../docs/TransactionResourceAttributes.md | 352 -- .../TransactionResourceAttributesCashback.md | 72 - ...nsactionResourceAttributesForeignAmount.md | 93 - .../TransactionResourceAttributesHoldInfo.md | 82 - .../TransactionResourceAttributesRoundUp.md | 82 - .../docs/TransactionResourceRelationships.md | 135 - ...TransactionResourceRelationshipsAccount.md | 77 - ...sactionResourceRelationshipsAccountData.md | 72 - ...ransactionResourceRelationshipsCategory.md | 87 - ...ctionResourceRelationshipsCategoryLinks.md | 77 - .../TransactionResourceRelationshipsTags.md | 77 - ...ctionResourceRelationshipsTagsDataInner.md | 72 - ...ansactionResourceRelationshipsTagsLinks.md | 51 - ...ionResourceRelationshipsTransferAccount.md | 87 - ...esourceRelationshipsTransferAccountData.md | 72 - .../openapi/docs/TransactionStatusEnum.md | 13 - .../openapi/docs/TransactionsAPI.md | 241 -- .../docs/UpdateTransactionCategoryRequest.md | 61 - .../UpdateTransactionCategoryRequestData.md | 72 - .../docs/UpdateTransactionTagsRequest.md | 51 - .../openapi/docs/UtilityEndpointsAPI.md | 70 - .../docs/WebhookDeliveryLogResource.md | 114 - .../WebhookDeliveryLogResourceAttributes.md | 124 - ...ookDeliveryLogResourceAttributesRequest.md | 51 - ...okDeliveryLogResourceAttributesResponse.md | 72 - ...WebhookDeliveryLogResourceRelationships.md | 51 - ...eryLogResourceRelationshipsWebhookEvent.md | 51 - ...ogResourceRelationshipsWebhookEventData.md | 72 - .../openapi/docs/WebhookDeliveryStatusEnum.md | 15 - .../openapi/docs/WebhookEventCallback.md | 51 - .../openapi/docs/WebhookEventResource.md | 114 - .../docs/WebhookEventResourceAttributes.md | 72 - .../docs/WebhookEventResourceRelationships.md | 77 - ...okEventResourceRelationshipsTransaction.md | 77 - ...entResourceRelationshipsTransactionData.md | 72 - ...ebhookEventResourceRelationshipsWebhook.md | 77 - ...okEventResourceRelationshipsWebhookData.md | 72 - .../openapi/docs/WebhookEventTypeEnum.md | 17 - .../openapi/docs/WebhookInputResource.md | 51 - .../docs/WebhookInputResourceAttributes.md | 87 - .../openapi/docs/WebhookResource.md | 140 - .../openapi/docs/WebhookResourceAttributes.md | 129 - .../docs/WebhookResourceRelationships.md | 51 - expense-manager/openapi/docs/WebhooksAPI.md | 426 --- .../openapi/model_account_resource.go | 278 -- .../model_account_resource_attributes.go | 274 -- .../openapi/model_account_resource_links.go | 157 - .../model_account_resource_relationships.go | 156 - ...unt_resource_relationships_transactions.go | 124 - ...source_relationships_transactions_links.go | 157 - .../openapi/model_account_type_enum.go | 110 - .../openapi/model_cashback_object.go | 186 - ...odel_category_input_resource_identifier.go | 186 - .../openapi/model_category_resource.go | 278 -- .../model_category_resource_attributes.go | 157 - .../model_category_resource_relationships.go | 184 - ...ategory_resource_relationships_children.go | 192 - ...ource_relationships_children_data_inner.go | 186 - ..._category_resource_relationships_parent.go | 194 - ...gory_resource_relationships_parent_data.go | 186 - .../openapi/model_create_webhook_request.go | 157 - .../openapi/model_create_webhook_response.go | 157 - expense-manager/openapi/model_error_object.go | 251 -- .../openapi/model_error_object_source.go | 162 - .../openapi/model_error_response.go | 157 - .../openapi/model_get_account_response.go | 157 - .../openapi/model_get_category_response.go | 157 - .../openapi/model_get_transaction_response.go | 157 - .../openapi/model_get_webhook_response.go | 157 - .../openapi/model_hold_info_object.go | 187 - .../model_hold_info_object_foreign_amount.go | 215 -- .../openapi/model_list_accounts_response.go | 185 - .../model_list_accounts_response_links.go | 190 - .../openapi/model_list_categories_response.go | 157 - .../openapi/model_list_tags_response.go | 185 - .../model_list_transactions_response.go | 185 - ...del_list_webhook_delivery_logs_response.go | 185 - .../openapi/model_list_webhooks_response.go | 185 - expense-manager/openapi/model_money_object.go | 215 -- .../openapi/model_ownership_type_enum.go | 110 - .../openapi/model_ping_response.go | 156 - .../openapi/model_ping_response_meta.go | 186 - .../openapi/model_round_up_object.go | 187 - .../model_round_up_object_boost_portion.go | 215 -- .../model_tag_input_resource_identifier.go | 186 - expense-manager/openapi/model_tag_resource.go | 214 -- .../openapi/model_transaction_resource.go | 278 -- .../model_transaction_resource_attributes.go | 487 --- ...ransaction_resource_attributes_cashback.go | 186 - ...tion_resource_attributes_foreign_amount.go | 215 -- ...ansaction_resource_attributes_hold_info.go | 187 - ...ransaction_resource_attributes_round_up.go | 187 - ...odel_transaction_resource_relationships.go | 268 -- ...nsaction_resource_relationships_account.go | 192 - ...ion_resource_relationships_account_data.go | 186 - ...saction_resource_relationships_category.go | 194 - ...n_resource_relationships_category_links.go | 194 - ...transaction_resource_relationships_tags.go | 192 - ..._resource_relationships_tags_data_inner.go | 186 - ...ction_resource_relationships_tags_links.go | 157 - ...resource_relationships_transfer_account.go | 194 - ...rce_relationships_transfer_account_data.go | 186 - .../openapi/model_transaction_status_enum.go | 110 - ...del_update_transaction_category_request.go | 158 - ...pdate_transaction_category_request_data.go | 186 - .../model_update_transaction_tags_request.go | 157 - .../model_webhook_delivery_log_resource.go | 242 -- ...ebhook_delivery_log_resource_attributes.go | 245 -- ...elivery_log_resource_attributes_request.go | 157 - ...livery_log_resource_attributes_response.go | 186 - ...ook_delivery_log_resource_relationships.go | 156 - ...og_resource_relationships_webhook_event.go | 156 - ...source_relationships_webhook_event_data.go | 186 - .../model_webhook_delivery_status_enum.go | 112 - .../openapi/model_webhook_event_callback.go | 157 - .../openapi/model_webhook_event_resource.go | 242 -- ...model_webhook_event_resource_attributes.go | 187 - ...el_webhook_event_resource_relationships.go | 192 - ...vent_resource_relationships_transaction.go | 192 - ...resource_relationships_transaction_data.go | 186 - ...ok_event_resource_relationships_webhook.go | 192 - ...ent_resource_relationships_webhook_data.go | 186 - .../openapi/model_webhook_event_type_enum.go | 114 - .../openapi/model_webhook_input_resource.go | 156 - ...model_webhook_input_resource_attributes.go | 205 - .../openapi/model_webhook_resource.go | 278 -- .../model_webhook_resource_attributes.go | 255 -- .../model_webhook_resource_relationships.go | 156 - expense-manager/openapi/response.go | 47 - .../openapi/test/api_accounts_test.go | 52 - .../openapi/test/api_categories_test.go | 65 - expense-manager/openapi/test/api_tags_test.go | 64 - .../openapi/test/api_transactions_test.go | 66 - .../test/api_utility_endpoints_test.go | 38 - .../openapi/test/api_webhooks_test.go | 105 - expense-manager/openapi/utils.go | 347 -- 197 files changed, 31495 deletions(-) delete mode 100644 expense-manager/openapi/.gitignore delete mode 100644 expense-manager/openapi/.openapi-generator-ignore delete mode 100644 expense-manager/openapi/.openapi-generator/FILES delete mode 100644 expense-manager/openapi/.openapi-generator/VERSION delete mode 100644 expense-manager/openapi/.travis.yml delete mode 100644 expense-manager/openapi/README.md delete mode 100644 expense-manager/openapi/api/openapi.yaml delete mode 100644 expense-manager/openapi/api_accounts.go delete mode 100644 expense-manager/openapi/api_categories.go delete mode 100644 expense-manager/openapi/api_tags.go delete mode 100644 expense-manager/openapi/api_transactions.go delete mode 100644 expense-manager/openapi/api_utility_endpoints.go delete mode 100644 expense-manager/openapi/api_webhooks.go delete mode 100644 expense-manager/openapi/client.go delete mode 100644 expense-manager/openapi/configuration.go delete mode 100644 expense-manager/openapi/docs/AccountResource.md delete mode 100644 expense-manager/openapi/docs/AccountResourceAttributes.md delete mode 100644 expense-manager/openapi/docs/AccountResourceLinks.md delete mode 100644 expense-manager/openapi/docs/AccountResourceRelationships.md delete mode 100644 expense-manager/openapi/docs/AccountResourceRelationshipsTransactions.md delete mode 100644 expense-manager/openapi/docs/AccountResourceRelationshipsTransactionsLinks.md delete mode 100644 expense-manager/openapi/docs/AccountTypeEnum.md delete mode 100644 expense-manager/openapi/docs/AccountsAPI.md delete mode 100644 expense-manager/openapi/docs/CashbackObject.md delete mode 100644 expense-manager/openapi/docs/CategoriesAPI.md delete mode 100644 expense-manager/openapi/docs/CategoryInputResourceIdentifier.md delete mode 100644 expense-manager/openapi/docs/CategoryResource.md delete mode 100644 expense-manager/openapi/docs/CategoryResourceAttributes.md delete mode 100644 expense-manager/openapi/docs/CategoryResourceRelationships.md delete mode 100644 expense-manager/openapi/docs/CategoryResourceRelationshipsChildren.md delete mode 100644 expense-manager/openapi/docs/CategoryResourceRelationshipsChildrenDataInner.md delete mode 100644 expense-manager/openapi/docs/CategoryResourceRelationshipsParent.md delete mode 100644 expense-manager/openapi/docs/CategoryResourceRelationshipsParentData.md delete mode 100644 expense-manager/openapi/docs/CreateWebhookRequest.md delete mode 100644 expense-manager/openapi/docs/CreateWebhookResponse.md delete mode 100644 expense-manager/openapi/docs/ErrorObject.md delete mode 100644 expense-manager/openapi/docs/ErrorObjectSource.md delete mode 100644 expense-manager/openapi/docs/ErrorResponse.md delete mode 100644 expense-manager/openapi/docs/GetAccountResponse.md delete mode 100644 expense-manager/openapi/docs/GetCategoryResponse.md delete mode 100644 expense-manager/openapi/docs/GetTransactionResponse.md delete mode 100644 expense-manager/openapi/docs/GetWebhookResponse.md delete mode 100644 expense-manager/openapi/docs/HoldInfoObject.md delete mode 100644 expense-manager/openapi/docs/HoldInfoObjectForeignAmount.md delete mode 100644 expense-manager/openapi/docs/ListAccountsResponse.md delete mode 100644 expense-manager/openapi/docs/ListAccountsResponseLinks.md delete mode 100644 expense-manager/openapi/docs/ListCategoriesResponse.md delete mode 100644 expense-manager/openapi/docs/ListTagsResponse.md delete mode 100644 expense-manager/openapi/docs/ListTransactionsResponse.md delete mode 100644 expense-manager/openapi/docs/ListWebhookDeliveryLogsResponse.md delete mode 100644 expense-manager/openapi/docs/ListWebhooksResponse.md delete mode 100644 expense-manager/openapi/docs/MoneyObject.md delete mode 100644 expense-manager/openapi/docs/OwnershipTypeEnum.md delete mode 100644 expense-manager/openapi/docs/PingResponse.md delete mode 100644 expense-manager/openapi/docs/PingResponseMeta.md delete mode 100644 expense-manager/openapi/docs/RoundUpObject.md delete mode 100644 expense-manager/openapi/docs/RoundUpObjectBoostPortion.md delete mode 100644 expense-manager/openapi/docs/TagInputResourceIdentifier.md delete mode 100644 expense-manager/openapi/docs/TagResource.md delete mode 100644 expense-manager/openapi/docs/TagsAPI.md delete mode 100644 expense-manager/openapi/docs/TransactionResource.md delete mode 100644 expense-manager/openapi/docs/TransactionResourceAttributes.md delete mode 100644 expense-manager/openapi/docs/TransactionResourceAttributesCashback.md delete mode 100644 expense-manager/openapi/docs/TransactionResourceAttributesForeignAmount.md delete mode 100644 expense-manager/openapi/docs/TransactionResourceAttributesHoldInfo.md delete mode 100644 expense-manager/openapi/docs/TransactionResourceAttributesRoundUp.md delete mode 100644 expense-manager/openapi/docs/TransactionResourceRelationships.md delete mode 100644 expense-manager/openapi/docs/TransactionResourceRelationshipsAccount.md delete mode 100644 expense-manager/openapi/docs/TransactionResourceRelationshipsAccountData.md delete mode 100644 expense-manager/openapi/docs/TransactionResourceRelationshipsCategory.md delete mode 100644 expense-manager/openapi/docs/TransactionResourceRelationshipsCategoryLinks.md delete mode 100644 expense-manager/openapi/docs/TransactionResourceRelationshipsTags.md delete mode 100644 expense-manager/openapi/docs/TransactionResourceRelationshipsTagsDataInner.md delete mode 100644 expense-manager/openapi/docs/TransactionResourceRelationshipsTagsLinks.md delete mode 100644 expense-manager/openapi/docs/TransactionResourceRelationshipsTransferAccount.md delete mode 100644 expense-manager/openapi/docs/TransactionResourceRelationshipsTransferAccountData.md delete mode 100644 expense-manager/openapi/docs/TransactionStatusEnum.md delete mode 100644 expense-manager/openapi/docs/TransactionsAPI.md delete mode 100644 expense-manager/openapi/docs/UpdateTransactionCategoryRequest.md delete mode 100644 expense-manager/openapi/docs/UpdateTransactionCategoryRequestData.md delete mode 100644 expense-manager/openapi/docs/UpdateTransactionTagsRequest.md delete mode 100644 expense-manager/openapi/docs/UtilityEndpointsAPI.md delete mode 100644 expense-manager/openapi/docs/WebhookDeliveryLogResource.md delete mode 100644 expense-manager/openapi/docs/WebhookDeliveryLogResourceAttributes.md delete mode 100644 expense-manager/openapi/docs/WebhookDeliveryLogResourceAttributesRequest.md delete mode 100644 expense-manager/openapi/docs/WebhookDeliveryLogResourceAttributesResponse.md delete mode 100644 expense-manager/openapi/docs/WebhookDeliveryLogResourceRelationships.md delete mode 100644 expense-manager/openapi/docs/WebhookDeliveryLogResourceRelationshipsWebhookEvent.md delete mode 100644 expense-manager/openapi/docs/WebhookDeliveryLogResourceRelationshipsWebhookEventData.md delete mode 100644 expense-manager/openapi/docs/WebhookDeliveryStatusEnum.md delete mode 100644 expense-manager/openapi/docs/WebhookEventCallback.md delete mode 100644 expense-manager/openapi/docs/WebhookEventResource.md delete mode 100644 expense-manager/openapi/docs/WebhookEventResourceAttributes.md delete mode 100644 expense-manager/openapi/docs/WebhookEventResourceRelationships.md delete mode 100644 expense-manager/openapi/docs/WebhookEventResourceRelationshipsTransaction.md delete mode 100644 expense-manager/openapi/docs/WebhookEventResourceRelationshipsTransactionData.md delete mode 100644 expense-manager/openapi/docs/WebhookEventResourceRelationshipsWebhook.md delete mode 100644 expense-manager/openapi/docs/WebhookEventResourceRelationshipsWebhookData.md delete mode 100644 expense-manager/openapi/docs/WebhookEventTypeEnum.md delete mode 100644 expense-manager/openapi/docs/WebhookInputResource.md delete mode 100644 expense-manager/openapi/docs/WebhookInputResourceAttributes.md delete mode 100644 expense-manager/openapi/docs/WebhookResource.md delete mode 100644 expense-manager/openapi/docs/WebhookResourceAttributes.md delete mode 100644 expense-manager/openapi/docs/WebhookResourceRelationships.md delete mode 100644 expense-manager/openapi/docs/WebhooksAPI.md delete mode 100644 expense-manager/openapi/model_account_resource.go delete mode 100644 expense-manager/openapi/model_account_resource_attributes.go delete mode 100644 expense-manager/openapi/model_account_resource_links.go delete mode 100644 expense-manager/openapi/model_account_resource_relationships.go delete mode 100644 expense-manager/openapi/model_account_resource_relationships_transactions.go delete mode 100644 expense-manager/openapi/model_account_resource_relationships_transactions_links.go delete mode 100644 expense-manager/openapi/model_account_type_enum.go delete mode 100644 expense-manager/openapi/model_cashback_object.go delete mode 100644 expense-manager/openapi/model_category_input_resource_identifier.go delete mode 100644 expense-manager/openapi/model_category_resource.go delete mode 100644 expense-manager/openapi/model_category_resource_attributes.go delete mode 100644 expense-manager/openapi/model_category_resource_relationships.go delete mode 100644 expense-manager/openapi/model_category_resource_relationships_children.go delete mode 100644 expense-manager/openapi/model_category_resource_relationships_children_data_inner.go delete mode 100644 expense-manager/openapi/model_category_resource_relationships_parent.go delete mode 100644 expense-manager/openapi/model_category_resource_relationships_parent_data.go delete mode 100644 expense-manager/openapi/model_create_webhook_request.go delete mode 100644 expense-manager/openapi/model_create_webhook_response.go delete mode 100644 expense-manager/openapi/model_error_object.go delete mode 100644 expense-manager/openapi/model_error_object_source.go delete mode 100644 expense-manager/openapi/model_error_response.go delete mode 100644 expense-manager/openapi/model_get_account_response.go delete mode 100644 expense-manager/openapi/model_get_category_response.go delete mode 100644 expense-manager/openapi/model_get_transaction_response.go delete mode 100644 expense-manager/openapi/model_get_webhook_response.go delete mode 100644 expense-manager/openapi/model_hold_info_object.go delete mode 100644 expense-manager/openapi/model_hold_info_object_foreign_amount.go delete mode 100644 expense-manager/openapi/model_list_accounts_response.go delete mode 100644 expense-manager/openapi/model_list_accounts_response_links.go delete mode 100644 expense-manager/openapi/model_list_categories_response.go delete mode 100644 expense-manager/openapi/model_list_tags_response.go delete mode 100644 expense-manager/openapi/model_list_transactions_response.go delete mode 100644 expense-manager/openapi/model_list_webhook_delivery_logs_response.go delete mode 100644 expense-manager/openapi/model_list_webhooks_response.go delete mode 100644 expense-manager/openapi/model_money_object.go delete mode 100644 expense-manager/openapi/model_ownership_type_enum.go delete mode 100644 expense-manager/openapi/model_ping_response.go delete mode 100644 expense-manager/openapi/model_ping_response_meta.go delete mode 100644 expense-manager/openapi/model_round_up_object.go delete mode 100644 expense-manager/openapi/model_round_up_object_boost_portion.go delete mode 100644 expense-manager/openapi/model_tag_input_resource_identifier.go delete mode 100644 expense-manager/openapi/model_tag_resource.go delete mode 100644 expense-manager/openapi/model_transaction_resource.go delete mode 100644 expense-manager/openapi/model_transaction_resource_attributes.go delete mode 100644 expense-manager/openapi/model_transaction_resource_attributes_cashback.go delete mode 100644 expense-manager/openapi/model_transaction_resource_attributes_foreign_amount.go delete mode 100644 expense-manager/openapi/model_transaction_resource_attributes_hold_info.go delete mode 100644 expense-manager/openapi/model_transaction_resource_attributes_round_up.go delete mode 100644 expense-manager/openapi/model_transaction_resource_relationships.go delete mode 100644 expense-manager/openapi/model_transaction_resource_relationships_account.go delete mode 100644 expense-manager/openapi/model_transaction_resource_relationships_account_data.go delete mode 100644 expense-manager/openapi/model_transaction_resource_relationships_category.go delete mode 100644 expense-manager/openapi/model_transaction_resource_relationships_category_links.go delete mode 100644 expense-manager/openapi/model_transaction_resource_relationships_tags.go delete mode 100644 expense-manager/openapi/model_transaction_resource_relationships_tags_data_inner.go delete mode 100644 expense-manager/openapi/model_transaction_resource_relationships_tags_links.go delete mode 100644 expense-manager/openapi/model_transaction_resource_relationships_transfer_account.go delete mode 100644 expense-manager/openapi/model_transaction_resource_relationships_transfer_account_data.go delete mode 100644 expense-manager/openapi/model_transaction_status_enum.go delete mode 100644 expense-manager/openapi/model_update_transaction_category_request.go delete mode 100644 expense-manager/openapi/model_update_transaction_category_request_data.go delete mode 100644 expense-manager/openapi/model_update_transaction_tags_request.go delete mode 100644 expense-manager/openapi/model_webhook_delivery_log_resource.go delete mode 100644 expense-manager/openapi/model_webhook_delivery_log_resource_attributes.go delete mode 100644 expense-manager/openapi/model_webhook_delivery_log_resource_attributes_request.go delete mode 100644 expense-manager/openapi/model_webhook_delivery_log_resource_attributes_response.go delete mode 100644 expense-manager/openapi/model_webhook_delivery_log_resource_relationships.go delete mode 100644 expense-manager/openapi/model_webhook_delivery_log_resource_relationships_webhook_event.go delete mode 100644 expense-manager/openapi/model_webhook_delivery_log_resource_relationships_webhook_event_data.go delete mode 100644 expense-manager/openapi/model_webhook_delivery_status_enum.go delete mode 100644 expense-manager/openapi/model_webhook_event_callback.go delete mode 100644 expense-manager/openapi/model_webhook_event_resource.go delete mode 100644 expense-manager/openapi/model_webhook_event_resource_attributes.go delete mode 100644 expense-manager/openapi/model_webhook_event_resource_relationships.go delete mode 100644 expense-manager/openapi/model_webhook_event_resource_relationships_transaction.go delete mode 100644 expense-manager/openapi/model_webhook_event_resource_relationships_transaction_data.go delete mode 100644 expense-manager/openapi/model_webhook_event_resource_relationships_webhook.go delete mode 100644 expense-manager/openapi/model_webhook_event_resource_relationships_webhook_data.go delete mode 100644 expense-manager/openapi/model_webhook_event_type_enum.go delete mode 100644 expense-manager/openapi/model_webhook_input_resource.go delete mode 100644 expense-manager/openapi/model_webhook_input_resource_attributes.go delete mode 100644 expense-manager/openapi/model_webhook_resource.go delete mode 100644 expense-manager/openapi/model_webhook_resource_attributes.go delete mode 100644 expense-manager/openapi/model_webhook_resource_relationships.go delete mode 100644 expense-manager/openapi/response.go delete mode 100644 expense-manager/openapi/test/api_accounts_test.go delete mode 100644 expense-manager/openapi/test/api_categories_test.go delete mode 100644 expense-manager/openapi/test/api_tags_test.go delete mode 100644 expense-manager/openapi/test/api_transactions_test.go delete mode 100644 expense-manager/openapi/test/api_utility_endpoints_test.go delete mode 100644 expense-manager/openapi/test/api_webhooks_test.go delete mode 100644 expense-manager/openapi/utils.go diff --git a/expense-manager/openapi/.gitignore b/expense-manager/openapi/.gitignore deleted file mode 100644 index daf913b..0000000 --- a/expense-manager/openapi/.gitignore +++ /dev/null @@ -1,24 +0,0 @@ -# Compiled Object files, Static and Dynamic libs (Shared Objects) -*.o -*.a -*.so - -# Folders -_obj -_test - -# Architecture specific extensions/prefixes -*.[568vq] -[568vq].out - -*.cgo1.go -*.cgo2.c -_cgo_defun.c -_cgo_gotypes.go -_cgo_export.* - -_testmain.go - -*.exe -*.test -*.prof diff --git a/expense-manager/openapi/.openapi-generator-ignore b/expense-manager/openapi/.openapi-generator-ignore deleted file mode 100644 index 7484ee5..0000000 --- a/expense-manager/openapi/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/expense-manager/openapi/.openapi-generator/FILES b/expense-manager/openapi/.openapi-generator/FILES deleted file mode 100644 index a647037..0000000 --- a/expense-manager/openapi/.openapi-generator/FILES +++ /dev/null @@ -1,198 +0,0 @@ -.gitignore -.openapi-generator-ignore -.travis.yml -README.md -api/openapi.yaml -api_accounts.go -api_categories.go -api_tags.go -api_transactions.go -api_utility_endpoints.go -api_webhooks.go -client.go -configuration.go -docs/AccountResource.md -docs/AccountResourceAttributes.md -docs/AccountResourceLinks.md -docs/AccountResourceRelationships.md -docs/AccountResourceRelationshipsTransactions.md -docs/AccountResourceRelationshipsTransactionsLinks.md -docs/AccountTypeEnum.md -docs/AccountsAPI.md -docs/CashbackObject.md -docs/CategoriesAPI.md -docs/CategoryInputResourceIdentifier.md -docs/CategoryResource.md -docs/CategoryResourceAttributes.md -docs/CategoryResourceRelationships.md -docs/CategoryResourceRelationshipsChildren.md -docs/CategoryResourceRelationshipsChildrenDataInner.md -docs/CategoryResourceRelationshipsParent.md -docs/CategoryResourceRelationshipsParentData.md -docs/CreateWebhookRequest.md -docs/CreateWebhookResponse.md -docs/ErrorObject.md -docs/ErrorObjectSource.md -docs/ErrorResponse.md -docs/GetAccountResponse.md -docs/GetCategoryResponse.md -docs/GetTransactionResponse.md -docs/GetWebhookResponse.md -docs/HoldInfoObject.md -docs/HoldInfoObjectForeignAmount.md -docs/ListAccountsResponse.md -docs/ListAccountsResponseLinks.md -docs/ListCategoriesResponse.md -docs/ListTagsResponse.md -docs/ListTransactionsResponse.md -docs/ListWebhookDeliveryLogsResponse.md -docs/ListWebhooksResponse.md -docs/MoneyObject.md -docs/OwnershipTypeEnum.md -docs/PingResponse.md -docs/PingResponseMeta.md -docs/RoundUpObject.md -docs/RoundUpObjectBoostPortion.md -docs/TagInputResourceIdentifier.md -docs/TagResource.md -docs/TagsAPI.md -docs/TransactionResource.md -docs/TransactionResourceAttributes.md -docs/TransactionResourceAttributesCashback.md -docs/TransactionResourceAttributesForeignAmount.md -docs/TransactionResourceAttributesHoldInfo.md -docs/TransactionResourceAttributesRoundUp.md -docs/TransactionResourceRelationships.md -docs/TransactionResourceRelationshipsAccount.md -docs/TransactionResourceRelationshipsAccountData.md -docs/TransactionResourceRelationshipsCategory.md -docs/TransactionResourceRelationshipsCategoryLinks.md -docs/TransactionResourceRelationshipsTags.md -docs/TransactionResourceRelationshipsTagsDataInner.md -docs/TransactionResourceRelationshipsTagsLinks.md -docs/TransactionResourceRelationshipsTransferAccount.md -docs/TransactionResourceRelationshipsTransferAccountData.md -docs/TransactionStatusEnum.md -docs/TransactionsAPI.md -docs/UpdateTransactionCategoryRequest.md -docs/UpdateTransactionCategoryRequestData.md -docs/UpdateTransactionTagsRequest.md -docs/UtilityEndpointsAPI.md -docs/WebhookDeliveryLogResource.md -docs/WebhookDeliveryLogResourceAttributes.md -docs/WebhookDeliveryLogResourceAttributesRequest.md -docs/WebhookDeliveryLogResourceAttributesResponse.md -docs/WebhookDeliveryLogResourceRelationships.md -docs/WebhookDeliveryLogResourceRelationshipsWebhookEvent.md -docs/WebhookDeliveryLogResourceRelationshipsWebhookEventData.md -docs/WebhookDeliveryStatusEnum.md -docs/WebhookEventCallback.md -docs/WebhookEventResource.md -docs/WebhookEventResourceAttributes.md -docs/WebhookEventResourceRelationships.md -docs/WebhookEventResourceRelationshipsTransaction.md -docs/WebhookEventResourceRelationshipsTransactionData.md -docs/WebhookEventResourceRelationshipsWebhook.md -docs/WebhookEventResourceRelationshipsWebhookData.md -docs/WebhookEventTypeEnum.md -docs/WebhookInputResource.md -docs/WebhookInputResourceAttributes.md -docs/WebhookResource.md -docs/WebhookResourceAttributes.md -docs/WebhookResourceRelationships.md -docs/WebhooksAPI.md -git_push.sh -go.mod -go.sum -model_account_resource.go -model_account_resource_attributes.go -model_account_resource_links.go -model_account_resource_relationships.go -model_account_resource_relationships_transactions.go -model_account_resource_relationships_transactions_links.go -model_account_type_enum.go -model_cashback_object.go -model_category_input_resource_identifier.go -model_category_resource.go -model_category_resource_attributes.go -model_category_resource_relationships.go -model_category_resource_relationships_children.go -model_category_resource_relationships_children_data_inner.go -model_category_resource_relationships_parent.go -model_category_resource_relationships_parent_data.go -model_create_webhook_request.go -model_create_webhook_response.go -model_error_object.go -model_error_object_source.go -model_error_response.go -model_get_account_response.go -model_get_category_response.go -model_get_transaction_response.go -model_get_webhook_response.go -model_hold_info_object.go -model_hold_info_object_foreign_amount.go -model_list_accounts_response.go -model_list_accounts_response_links.go -model_list_categories_response.go -model_list_tags_response.go -model_list_transactions_response.go -model_list_webhook_delivery_logs_response.go -model_list_webhooks_response.go -model_money_object.go -model_ownership_type_enum.go -model_ping_response.go -model_ping_response_meta.go -model_round_up_object.go -model_round_up_object_boost_portion.go -model_tag_input_resource_identifier.go -model_tag_resource.go -model_transaction_resource.go -model_transaction_resource_attributes.go -model_transaction_resource_attributes_cashback.go -model_transaction_resource_attributes_foreign_amount.go -model_transaction_resource_attributes_hold_info.go -model_transaction_resource_attributes_round_up.go -model_transaction_resource_relationships.go -model_transaction_resource_relationships_account.go -model_transaction_resource_relationships_account_data.go -model_transaction_resource_relationships_category.go -model_transaction_resource_relationships_category_links.go -model_transaction_resource_relationships_tags.go -model_transaction_resource_relationships_tags_data_inner.go -model_transaction_resource_relationships_tags_links.go -model_transaction_resource_relationships_transfer_account.go -model_transaction_resource_relationships_transfer_account_data.go -model_transaction_status_enum.go -model_update_transaction_category_request.go -model_update_transaction_category_request_data.go -model_update_transaction_tags_request.go -model_webhook_delivery_log_resource.go -model_webhook_delivery_log_resource_attributes.go -model_webhook_delivery_log_resource_attributes_request.go -model_webhook_delivery_log_resource_attributes_response.go -model_webhook_delivery_log_resource_relationships.go -model_webhook_delivery_log_resource_relationships_webhook_event.go -model_webhook_delivery_log_resource_relationships_webhook_event_data.go -model_webhook_delivery_status_enum.go -model_webhook_event_callback.go -model_webhook_event_resource.go -model_webhook_event_resource_attributes.go -model_webhook_event_resource_relationships.go -model_webhook_event_resource_relationships_transaction.go -model_webhook_event_resource_relationships_transaction_data.go -model_webhook_event_resource_relationships_webhook.go -model_webhook_event_resource_relationships_webhook_data.go -model_webhook_event_type_enum.go -model_webhook_input_resource.go -model_webhook_input_resource_attributes.go -model_webhook_resource.go -model_webhook_resource_attributes.go -model_webhook_resource_relationships.go -response.go -test/api_accounts_test.go -test/api_categories_test.go -test/api_tags_test.go -test/api_transactions_test.go -test/api_utility_endpoints_test.go -test/api_webhooks_test.go -utils.go diff --git a/expense-manager/openapi/.openapi-generator/VERSION b/expense-manager/openapi/.openapi-generator/VERSION deleted file mode 100644 index 08bfd06..0000000 --- a/expense-manager/openapi/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -7.5.0-SNAPSHOT diff --git a/expense-manager/openapi/.travis.yml b/expense-manager/openapi/.travis.yml deleted file mode 100644 index f5cb2ce..0000000 --- a/expense-manager/openapi/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: go - -install: - - go get -d -v . - -script: - - go build -v ./ - diff --git a/expense-manager/openapi/README.md b/expense-manager/openapi/README.md deleted file mode 100644 index 6f05a79..0000000 --- a/expense-manager/openapi/README.md +++ /dev/null @@ -1,229 +0,0 @@ -# Go API client for openapi - -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. - - -## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - -- API version: v1 -- Package version: 1.0.0 -- Generator version: 7.5.0-SNAPSHOT -- Build package: org.openapitools.codegen.languages.GoClientCodegen -For more information, please visit [https://github.com/up-banking/api](https://github.com/up-banking/api) - -## Installation - -Install the following dependencies: - -```sh -go get github.com/stretchr/testify/assert -go get golang.org/x/net/context -``` - -Put the package under your project folder and add the following in import: - -```go -import openapi "github.com/ESteanes/expense-manager" -``` - -To use a proxy, set the environment variable `HTTP_PROXY`: - -```go -os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") -``` - -## Configuration of Server URL - -Default configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification. - -### Select Server Configuration - -For using other server than the one defined on index 0 set context value `openapi.ContextServerIndex` of type `int`. - -```go -ctx := context.WithValue(context.Background(), openapi.ContextServerIndex, 1) -``` - -### Templated Server URL - -Templated server URL is formatted using default variables from configuration or from context value `openapi.ContextServerVariables` of type `map[string]string`. - -```go -ctx := context.WithValue(context.Background(), openapi.ContextServerVariables, map[string]string{ - "basePath": "v2", -}) -``` - -Note, enum values are always validated and all unused variables are silently ignored. - -### URLs Configuration per Operation - -Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. -An operation is uniquely identified by `"{classname}Service.{nickname}"` string. -Similar rules for overriding default operation server index and variables applies by using `openapi.ContextOperationServerIndices` and `openapi.ContextOperationServerVariables` context maps. - -```go -ctx := context.WithValue(context.Background(), openapi.ContextOperationServerIndices, map[string]int{ - "{classname}Service.{nickname}": 2, -}) -ctx = context.WithValue(context.Background(), openapi.ContextOperationServerVariables, map[string]map[string]string{ - "{classname}Service.{nickname}": { - "port": "8443", - }, -}) -``` - -## Documentation for API Endpoints - -All URIs are relative to *https://api.up.com.au/api/v1* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*AccountsAPI* | [**AccountsGet**](docs/AccountsAPI.md#accountsget) | **Get** /accounts | List accounts -*AccountsAPI* | [**AccountsIdGet**](docs/AccountsAPI.md#accountsidget) | **Get** /accounts/{id} | Retrieve account -*CategoriesAPI* | [**CategoriesGet**](docs/CategoriesAPI.md#categoriesget) | **Get** /categories | List categories -*CategoriesAPI* | [**CategoriesIdGet**](docs/CategoriesAPI.md#categoriesidget) | **Get** /categories/{id} | Retrieve category -*CategoriesAPI* | [**TransactionsTransactionIdRelationshipsCategoryPatch**](docs/CategoriesAPI.md#transactionstransactionidrelationshipscategorypatch) | **Patch** /transactions/{transactionId}/relationships/category | Categorize transaction -*TagsAPI* | [**TagsGet**](docs/TagsAPI.md#tagsget) | **Get** /tags | List tags -*TagsAPI* | [**TransactionsTransactionIdRelationshipsTagsDelete**](docs/TagsAPI.md#transactionstransactionidrelationshipstagsdelete) | **Delete** /transactions/{transactionId}/relationships/tags | Remove tags from transaction -*TagsAPI* | [**TransactionsTransactionIdRelationshipsTagsPost**](docs/TagsAPI.md#transactionstransactionidrelationshipstagspost) | **Post** /transactions/{transactionId}/relationships/tags | Add tags to transaction -*TransactionsAPI* | [**AccountsAccountIdTransactionsGet**](docs/TransactionsAPI.md#accountsaccountidtransactionsget) | **Get** /accounts/{accountId}/transactions | List transactions by account -*TransactionsAPI* | [**TransactionsGet**](docs/TransactionsAPI.md#transactionsget) | **Get** /transactions | List transactions -*TransactionsAPI* | [**TransactionsIdGet**](docs/TransactionsAPI.md#transactionsidget) | **Get** /transactions/{id} | Retrieve transaction -*UtilityEndpointsAPI* | [**UtilPingGet**](docs/UtilityEndpointsAPI.md#utilpingget) | **Get** /util/ping | Ping -*WebhooksAPI* | [**WebhooksGet**](docs/WebhooksAPI.md#webhooksget) | **Get** /webhooks | List webhooks -*WebhooksAPI* | [**WebhooksIdDelete**](docs/WebhooksAPI.md#webhooksiddelete) | **Delete** /webhooks/{id} | Delete webhook -*WebhooksAPI* | [**WebhooksIdGet**](docs/WebhooksAPI.md#webhooksidget) | **Get** /webhooks/{id} | Retrieve webhook -*WebhooksAPI* | [**WebhooksPost**](docs/WebhooksAPI.md#webhookspost) | **Post** /webhooks | Create webhook -*WebhooksAPI* | [**WebhooksWebhookIdLogsGet**](docs/WebhooksAPI.md#webhookswebhookidlogsget) | **Get** /webhooks/{webhookId}/logs | List webhook logs -*WebhooksAPI* | [**WebhooksWebhookIdPingPost**](docs/WebhooksAPI.md#webhookswebhookidpingpost) | **Post** /webhooks/{webhookId}/ping | Ping webhook - - -## Documentation For Models - - - [AccountResource](docs/AccountResource.md) - - [AccountResourceAttributes](docs/AccountResourceAttributes.md) - - [AccountResourceLinks](docs/AccountResourceLinks.md) - - [AccountResourceRelationships](docs/AccountResourceRelationships.md) - - [AccountResourceRelationshipsTransactions](docs/AccountResourceRelationshipsTransactions.md) - - [AccountResourceRelationshipsTransactionsLinks](docs/AccountResourceRelationshipsTransactionsLinks.md) - - [AccountTypeEnum](docs/AccountTypeEnum.md) - - [CashbackObject](docs/CashbackObject.md) - - [CategoryInputResourceIdentifier](docs/CategoryInputResourceIdentifier.md) - - [CategoryResource](docs/CategoryResource.md) - - [CategoryResourceAttributes](docs/CategoryResourceAttributes.md) - - [CategoryResourceRelationships](docs/CategoryResourceRelationships.md) - - [CategoryResourceRelationshipsChildren](docs/CategoryResourceRelationshipsChildren.md) - - [CategoryResourceRelationshipsChildrenDataInner](docs/CategoryResourceRelationshipsChildrenDataInner.md) - - [CategoryResourceRelationshipsParent](docs/CategoryResourceRelationshipsParent.md) - - [CategoryResourceRelationshipsParentData](docs/CategoryResourceRelationshipsParentData.md) - - [CreateWebhookRequest](docs/CreateWebhookRequest.md) - - [CreateWebhookResponse](docs/CreateWebhookResponse.md) - - [ErrorObject](docs/ErrorObject.md) - - [ErrorObjectSource](docs/ErrorObjectSource.md) - - [ErrorResponse](docs/ErrorResponse.md) - - [GetAccountResponse](docs/GetAccountResponse.md) - - [GetCategoryResponse](docs/GetCategoryResponse.md) - - [GetTransactionResponse](docs/GetTransactionResponse.md) - - [GetWebhookResponse](docs/GetWebhookResponse.md) - - [HoldInfoObject](docs/HoldInfoObject.md) - - [HoldInfoObjectForeignAmount](docs/HoldInfoObjectForeignAmount.md) - - [ListAccountsResponse](docs/ListAccountsResponse.md) - - [ListAccountsResponseLinks](docs/ListAccountsResponseLinks.md) - - [ListCategoriesResponse](docs/ListCategoriesResponse.md) - - [ListTagsResponse](docs/ListTagsResponse.md) - - [ListTransactionsResponse](docs/ListTransactionsResponse.md) - - [ListWebhookDeliveryLogsResponse](docs/ListWebhookDeliveryLogsResponse.md) - - [ListWebhooksResponse](docs/ListWebhooksResponse.md) - - [MoneyObject](docs/MoneyObject.md) - - [OwnershipTypeEnum](docs/OwnershipTypeEnum.md) - - [PingResponse](docs/PingResponse.md) - - [PingResponseMeta](docs/PingResponseMeta.md) - - [RoundUpObject](docs/RoundUpObject.md) - - [RoundUpObjectBoostPortion](docs/RoundUpObjectBoostPortion.md) - - [TagInputResourceIdentifier](docs/TagInputResourceIdentifier.md) - - [TagResource](docs/TagResource.md) - - [TransactionResource](docs/TransactionResource.md) - - [TransactionResourceAttributes](docs/TransactionResourceAttributes.md) - - [TransactionResourceAttributesCashback](docs/TransactionResourceAttributesCashback.md) - - [TransactionResourceAttributesForeignAmount](docs/TransactionResourceAttributesForeignAmount.md) - - [TransactionResourceAttributesHoldInfo](docs/TransactionResourceAttributesHoldInfo.md) - - [TransactionResourceAttributesRoundUp](docs/TransactionResourceAttributesRoundUp.md) - - [TransactionResourceRelationships](docs/TransactionResourceRelationships.md) - - [TransactionResourceRelationshipsAccount](docs/TransactionResourceRelationshipsAccount.md) - - [TransactionResourceRelationshipsAccountData](docs/TransactionResourceRelationshipsAccountData.md) - - [TransactionResourceRelationshipsCategory](docs/TransactionResourceRelationshipsCategory.md) - - [TransactionResourceRelationshipsCategoryLinks](docs/TransactionResourceRelationshipsCategoryLinks.md) - - [TransactionResourceRelationshipsTags](docs/TransactionResourceRelationshipsTags.md) - - [TransactionResourceRelationshipsTagsDataInner](docs/TransactionResourceRelationshipsTagsDataInner.md) - - [TransactionResourceRelationshipsTagsLinks](docs/TransactionResourceRelationshipsTagsLinks.md) - - [TransactionResourceRelationshipsTransferAccount](docs/TransactionResourceRelationshipsTransferAccount.md) - - [TransactionResourceRelationshipsTransferAccountData](docs/TransactionResourceRelationshipsTransferAccountData.md) - - [TransactionStatusEnum](docs/TransactionStatusEnum.md) - - [UpdateTransactionCategoryRequest](docs/UpdateTransactionCategoryRequest.md) - - [UpdateTransactionCategoryRequestData](docs/UpdateTransactionCategoryRequestData.md) - - [UpdateTransactionTagsRequest](docs/UpdateTransactionTagsRequest.md) - - [WebhookDeliveryLogResource](docs/WebhookDeliveryLogResource.md) - - [WebhookDeliveryLogResourceAttributes](docs/WebhookDeliveryLogResourceAttributes.md) - - [WebhookDeliveryLogResourceAttributesRequest](docs/WebhookDeliveryLogResourceAttributesRequest.md) - - [WebhookDeliveryLogResourceAttributesResponse](docs/WebhookDeliveryLogResourceAttributesResponse.md) - - [WebhookDeliveryLogResourceRelationships](docs/WebhookDeliveryLogResourceRelationships.md) - - [WebhookDeliveryLogResourceRelationshipsWebhookEvent](docs/WebhookDeliveryLogResourceRelationshipsWebhookEvent.md) - - [WebhookDeliveryLogResourceRelationshipsWebhookEventData](docs/WebhookDeliveryLogResourceRelationshipsWebhookEventData.md) - - [WebhookDeliveryStatusEnum](docs/WebhookDeliveryStatusEnum.md) - - [WebhookEventCallback](docs/WebhookEventCallback.md) - - [WebhookEventResource](docs/WebhookEventResource.md) - - [WebhookEventResourceAttributes](docs/WebhookEventResourceAttributes.md) - - [WebhookEventResourceRelationships](docs/WebhookEventResourceRelationships.md) - - [WebhookEventResourceRelationshipsTransaction](docs/WebhookEventResourceRelationshipsTransaction.md) - - [WebhookEventResourceRelationshipsTransactionData](docs/WebhookEventResourceRelationshipsTransactionData.md) - - [WebhookEventResourceRelationshipsWebhook](docs/WebhookEventResourceRelationshipsWebhook.md) - - [WebhookEventResourceRelationshipsWebhookData](docs/WebhookEventResourceRelationshipsWebhookData.md) - - [WebhookEventTypeEnum](docs/WebhookEventTypeEnum.md) - - [WebhookInputResource](docs/WebhookInputResource.md) - - [WebhookInputResourceAttributes](docs/WebhookInputResourceAttributes.md) - - [WebhookResource](docs/WebhookResource.md) - - [WebhookResourceAttributes](docs/WebhookResourceAttributes.md) - - [WebhookResourceRelationships](docs/WebhookResourceRelationships.md) - - -## Documentation For Authorization - - -Authentication schemes defined for the API: -### bearer_auth - -- **Type**: HTTP Bearer token authentication - -Example - -```go -auth := context.WithValue(context.Background(), openapi.ContextAccessToken, "BEARER_TOKEN_STRING") -r, err := client.Service.Operation(auth, args) -``` - - -## Documentation for Utility Methods - -Due to the fact that model structure members are all pointers, this package contains -a number of utility functions to easily obtain pointers to values of basic types. -Each of these functions takes a value of the given basic type and returns a pointer to it: - -* `PtrBool` -* `PtrInt` -* `PtrInt32` -* `PtrInt64` -* `PtrFloat` -* `PtrFloat32` -* `PtrFloat64` -* `PtrString` -* `PtrTime` - -## Author - - - diff --git a/expense-manager/openapi/api/openapi.yaml b/expense-manager/openapi/api/openapi.yaml deleted file mode 100644 index f346886..0000000 --- a/expense-manager/openapi/api/openapi.yaml +++ /dev/null @@ -1,3400 +0,0 @@ -openapi: 3.0.3 -info: - contact: - name: API Specification and Support - url: https://github.com/up-banking/api - description: | - 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. - title: Up API - version: v1 -servers: -- url: https://api.up.com.au/api/v1 -security: -- bearer_auth: [] -tags: -- description: | - Accounts represent the underlying store used to track balances - and the transactions that have occurred to modify those balances - over time. Up currently has two types of account: `SAVER`—used to - earn interest and to hit savings goals, and `TRANSACTIONAL`—used - for everyday spending. - name: Accounts -- description: | - Categories enable understanding where your money goes by driving - powerful insights in Up. All categories in Up are pre-defined - and are automatically assigned to new purchases in most cases. A - parent-child relationship is used to represent categories, - however parent categories cannot be directly assigned to - transactions. - name: Categories -- description: | - Tags are custom labels that can be associated with transactions - on Up. Within the Up application, tags provide additional insight - into spending. For example, you could have a "Take Away" tag that - you apply to purchases from food delivery services. The Up API - allows you to manage the tags associated with transactions. Each - transaction may have up to 6 tags. - - Tags are identified by their labels, which are unique strings, - so the tag "Holiday" has also the `id` `"Holiday"`. - name: Tags -- description: | - Transactions represent the movement of money into and out of an - account. They have many characteristics that vary depending on - the kind of transaction. Transactions may be temporarily `HELD` - (pending) or `SETTLED`, typically depending on which payment - method was used at the point of sale. - name: Transactions -- description: | - Some endpoints exist not to expose data, but to test the API - itself. Currently there is only one endpoint in this group: ping! - name: Utility endpoints -- description: | - Webhooks provide a mechanism for a configured URL to receive - events when transaction activity occurs on Up. You can think of - webhooks as being like push notifications for your server-side - application. - name: Webhooks -paths: - /accounts: - get: - description: | - 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. - parameters: - - description: | - The number of records to return in each page. - example: 30 - explode: true - in: query - name: "page[size]" - required: false - schema: - type: integer - style: form - - description: | - The type of account for which to return records. This - can be used to filter Savers from spending accounts. - example: SAVER - explode: true - in: query - name: "filter[accountType]" - required: false - schema: - $ref: '#/components/schemas/AccountTypeEnum' - style: form - - description: | - The account ownership structure for which to return - records. This can be used to filter 2Up accounts from Up - accounts. - example: INDIVIDUAL - explode: true - in: query - name: "filter[ownershipType]" - required: false - schema: - $ref: '#/components/schemas/OwnershipTypeEnum' - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ListAccountsResponse' - description: Successful Response - x-up:example: - type: exampleRequestResponse - request: - headers: - Authorization: Bearer up:demo:5PnWS0GVxCU0O1Oz - pathParameters: {} - queryParameters: - page[size]: 1 - response: - data: - - type: accounts - id: 26d88ec4-78d0-443c-a71f-48bcbf1d7a8e - attributes: - displayName: Spending - accountType: TRANSACTIONAL - ownershipType: INDIVIDUAL - balance: - currencyCode: AUD - value: "1.00" - valueInBaseUnits: 100 - createdAt: 2022-01-13T14:50:14+11:00 - relationships: - transactions: - links: - related: https://api.up.com.au/api/v1/accounts/26d88ec4-78d0-443c-a71f-48bcbf1d7a8e/transactions - links: - self: https://api.up.com.au/api/v1/accounts/26d88ec4-78d0-443c-a71f-48bcbf1d7a8e - links: - next: https://api.up.com.au/api/v1/accounts?page%5Bafter%5D=WyIyMDIyLTAxLTEzVDAzOjUwOjE0LjUzNzk0NzAwMFoiLCIyNmQ4OGVjNC03OGQwLTQ0M2MtYTcxZi00OGJjYmYxZDdhOGUiXQ%3D%3D&page%5Bsize%5D=1 - summary: List accounts - tags: - - Accounts - /accounts/{id}: - get: - description: | - Retrieve a specific account by providing its unique identifier. - parameters: - - description: | - The unique identifier for the account. - example: 92b41408-6b7b-4fca-982b-3fb1fdd77220 - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/GetAccountResponse' - description: Successful Response - x-up:example: - type: exampleRequestResponse - request: - headers: - Authorization: Bearer up:demo:DpnDo3VeOQrhTq13 - pathParameters: - id: c2b6547c-6189-42b8-bd63-3993761825a0 - queryParameters: {} - response: - data: - type: accounts - id: c2b6547c-6189-42b8-bd63-3993761825a0 - attributes: - displayName: 🐷 Savings - accountType: SAVER - ownershipType: INDIVIDUAL - balance: - currencyCode: AUD - value: "125.36" - valueInBaseUnits: 12536 - createdAt: 2022-01-13T14:50:15+11:00 - relationships: - transactions: - links: - related: https://api.up.com.au/api/v1/accounts/c2b6547c-6189-42b8-bd63-3993761825a0/transactions - links: - self: https://api.up.com.au/api/v1/accounts/c2b6547c-6189-42b8-bd63-3993761825a0 - summary: Retrieve account - tags: - - Accounts - /categories: - get: - description: | - Retrieve a list of all categories and their ancestry. The returned list - is not paginated. - parameters: - - description: | - The unique identifier of a parent category for which to - return only its children. Providing an invalid category - identifier results in a `404` response. - example: good-life - explode: true - in: query - name: "filter[parent]" - required: false - schema: - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ListCategoriesResponse' - description: Successful Response - x-up:example: - type: exampleRequestResponse - request: - headers: - Authorization: Bearer up:demo:WPt3A6fzd8WAsLLP - pathParameters: {} - queryParameters: - filter[parent]: good-life - response: - data: - - type: categories - id: hobbies - attributes: - name: Hobbies - relationships: - parent: - data: - type: categories - id: good-life - links: - related: https://api.up.com.au/api/v1/categories/good-life - children: - data: [] - links: - related: https://api.up.com.au/api/v1/categories?filter%5Bparent%5D=hobbies - links: - self: https://api.up.com.au/api/v1/categories/hobbies - - type: categories - id: restaurants-and-cafes - attributes: - name: Restaurants & Cafes - relationships: - parent: - data: - type: categories - id: good-life - links: - related: https://api.up.com.au/api/v1/categories/good-life - children: - data: [] - links: - related: https://api.up.com.au/api/v1/categories?filter%5Bparent%5D=restaurants-and-cafes - links: - self: https://api.up.com.au/api/v1/categories/restaurants-and-cafes - summary: List categories - tags: - - Categories - /categories/{id}: - get: - description: | - Retrieve a specific category by providing its unique identifier. - parameters: - - description: | - The unique identifier for the category. - example: restaurants-and-cafes - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/GetCategoryResponse' - description: Successful Response - x-up:example: - type: exampleRequestResponse - request: - headers: - Authorization: Bearer up:demo:tOnteWbP5FzK52tt - pathParameters: - id: home - queryParameters: {} - response: - data: - type: categories - id: home - attributes: - name: Home - relationships: - parent: {} - children: - data: - - type: categories - id: groceries - links: - related: https://api.up.com.au/api/v1/categories?filter%5Bparent%5D=home - links: - self: https://api.up.com.au/api/v1/categories/home - summary: Retrieve category - tags: - - Categories - /transactions/{transactionId}/relationships/category: - patch: - description: | - 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}`. - parameters: - - description: | - The unique identifier for the transaction. - example: a572c7c3-b637-433c-a4ce-c0be5dcb0a5a - explode: false - in: path - name: transactionId - required: true - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UpdateTransactionCategoryRequest' - responses: - "204": - description: Successful Response - x-up:example: - type: exampleRequestResponse - request: - headers: - Authorization: Bearer up:demo:FGVj7lJzpYRFBcwQ - Content-Type: application/json - pathParameters: - transactionId: 5a010c5d-a058-465a-956b-93809e8bbf16 - queryParameters: {} - payload: - data: - type: categories - id: restaurants-and-cafes - summary: Categorize transaction - tags: - - Categories - /util/ping: - get: - description: | - Make a basic ping request to the API. This is useful to verify that - authentication is functioning correctly. On authentication success an - HTTP `200` status is returned. On failure an HTTP `401` error response - is returned. - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/PingResponse' - description: Successful Response - x-up:example: - type: exampleRequestResponse - request: - headers: - Authorization: Bearer up:demo:eOr0TZ0qTMpcXWJj - pathParameters: {} - queryParameters: {} - response: - meta: - id: 7feb7523-d65e-4b98-9eae-cd521b5005de - statusEmoji: ⚡️ - "401": - content: - application/json: - schema: - $ref: '#/components/schemas/ErrorResponse' - description: Not Authorized - x-up:example: - type: exampleRequestResponse - request: - headers: {} - pathParameters: {} - queryParameters: {} - response: - errors: - - status: "401" - title: Not Authorized - detail: "The request was not authenticated because no valid credential\ - \ was found in the Authorization header, or the Authorization header\ - \ was not present." - summary: Ping - tags: - - Utility endpoints - /tags: - get: - description: | - 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. - parameters: - - description: | - The number of records to return in each page. - example: 50 - explode: true - in: query - name: "page[size]" - required: false - schema: - type: integer - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ListTagsResponse' - description: Successful Response - x-up:example: - type: exampleRequestResponse - request: - headers: - Authorization: Bearer up:demo:Z4FAB4Tl7jVHdp3w - pathParameters: {} - queryParameters: - page[size]: 2 - response: - data: - - type: tags - id: Holiday - relationships: - transactions: - links: - related: https://api.up.com.au/api/v1/transactions?filter%5Btag%5D=Holiday - - type: tags - id: Pizza Night - relationships: - transactions: - links: - related: https://api.up.com.au/api/v1/transactions?filter%5Btag%5D=Pizza+Night - links: - next: https://api.up.com.au/api/v1/tags?page%5Bafter%5D=WyJQaXp6YSBOaWdodCJd&page%5Bsize%5D=2 - summary: List tags - tags: - - Tags - /transactions/{transactionId}/relationships/tags: - delete: - description: | - 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}`. - parameters: - - description: | - The unique identifier for the transaction. - example: c3feb4ba-829c-4482-b882-1b9bd23da82d - explode: false - in: path - name: transactionId - required: true - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UpdateTransactionTagsRequest' - responses: - "204": - description: Successful Response - x-up:example: - type: exampleRequestResponse - request: - headers: - Authorization: Bearer up:demo:qc6D7GoPamQ09cJH - Content-Type: application/json - pathParameters: - transactionId: 32e050dc-ed36-462c-9cf6-68d5cb64e289 - queryParameters: {} - payload: - data: - - type: tags - id: Holiday - - type: tags - id: Queensland - summary: Remove tags from transaction - tags: - - Tags - post: - description: | - 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}`. - parameters: - - description: | - The unique identifier for the transaction. - example: acde4631-db56-49a6-aea3-4e2311ef1d6a - explode: false - in: path - name: transactionId - required: true - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UpdateTransactionTagsRequest' - responses: - "204": - description: Successful Response - x-up:example: - type: exampleRequestResponse - request: - headers: - Authorization: Bearer up:demo:Sr1VvsqAqKngeTQS - Content-Type: application/json - pathParameters: - transactionId: af2f319c-1edd-4386-ad15-5927f7ead3af - queryParameters: {} - payload: - data: - - type: tags - id: Holiday - - type: tags - id: Queensland - summary: Add tags to transaction - tags: - - Tags - /transactions: - get: - description: | - 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. - parameters: - - description: | - The number of records to return in each page. - example: 30 - explode: true - in: query - name: "page[size]" - required: false - schema: - type: integer - style: form - - description: | - The transaction status for which to return records. This - can be used to filter `HELD` transactions from those - that are `SETTLED`. - example: HELD - explode: true - in: query - name: "filter[status]" - required: false - schema: - $ref: '#/components/schemas/TransactionStatusEnum' - style: form - - description: | - The start date-time from which to return records, - formatted according to rfc-3339. Not to be used for - pagination purposes. - example: 2020-01-01T01:02:03+10:00 - explode: true - in: query - name: "filter[since]" - required: false - schema: - format: date-time - type: string - style: form - - description: | - The end date-time up to which to return records, - formatted according to rfc-3339. Not to be used for - pagination purposes. - example: 2020-02-01T01:02:03+10:00 - explode: true - in: query - name: "filter[until]" - required: false - schema: - format: date-time - type: string - style: form - - description: | - 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. - example: good-life - explode: true - in: query - name: "filter[category]" - required: false - schema: - type: string - style: form - - description: | - 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. - example: Holiday - explode: true - in: query - name: "filter[tag]" - required: false - schema: - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ListTransactionsResponse' - description: Successful Response - x-up:example: - type: exampleRequestResponse - request: - headers: - Authorization: Bearer up:demo:9iP9L9BTmcPc1dTh - pathParameters: {} - queryParameters: - page[size]: 1 - filter[tag]: Pizza Night - filter[status]: SETTLED - response: - data: - - type: transactions - id: f2020933-8b6c-47a8-bb4e-fe5477d876c1 - attributes: - status: SETTLED - description: David Taylor - message: Money for the pizzas last night. - isCategorizable: true - amount: - currencyCode: AUD - value: "-59.98" - valueInBaseUnits: -5998 - settledAt: 2022-01-12T07:48:33+11:00 - createdAt: 2022-01-12T07:48:33+11:00 - relationships: - account: - data: - type: accounts - id: 3050a1f9-5157-4b71-99c5-3524c083ecfe - links: - related: https://api.up.com.au/api/v1/accounts/3050a1f9-5157-4b71-99c5-3524c083ecfe - transferAccount: {} - category: - links: - self: https://api.up.com.au/api/v1/transactions/f2020933-8b6c-47a8-bb4e-fe5477d876c1/relationships/category - parentCategory: {} - tags: - data: - - type: tags - id: Pizza Night - links: - self: https://api.up.com.au/api/v1/transactions/f2020933-8b6c-47a8-bb4e-fe5477d876c1/relationships/tags - links: - self: https://api.up.com.au/api/v1/transactions/f2020933-8b6c-47a8-bb4e-fe5477d876c1 - links: {} - summary: List transactions - tags: - - Transactions - /transactions/{id}: - get: - description: | - Retrieve a specific transaction by providing its unique identifier. - parameters: - - description: | - The unique identifier for the transaction. - example: 7a9d19f9-106c-4e29-8591-52fc5d8f09c5 - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/GetTransactionResponse' - description: Successful Response - x-up:example: - type: exampleRequestResponse - request: - headers: - Authorization: Bearer up:demo:XLk9FDAi6bniOFR9 - pathParameters: - id: 7c125426-98b7-4cd5-b899-95db54f5c6c1 - queryParameters: {} - response: - data: - type: transactions - id: 7c125426-98b7-4cd5-b899-95db54f5c6c1 - attributes: - status: SETTLED - rawText: "WARUNG BEBEK, UBUD INDONES" - description: Warung Bebek Bengil - isCategorizable: true - holdInfo: - amount: - currencyCode: AUD - value: "-107.92" - valueInBaseUnits: -10792 - roundUp: - amount: - currencyCode: AUD - value: "-0.08" - valueInBaseUnits: -8 - amount: - currencyCode: AUD - value: "-107.92" - valueInBaseUnits: -10792 - foreignAmount: - currencyCode: IDR - value: "-1053698.77" - valueInBaseUnits: -105369877 - settledAt: 2022-01-10T04:00:00+11:00 - createdAt: 2022-01-10T04:00:00+11:00 - relationships: - account: - data: - type: accounts - id: 1bf1c1b3-2ea9-48b6-9e94-1bcfcaf56b7d - links: - related: https://api.up.com.au/api/v1/accounts/1bf1c1b3-2ea9-48b6-9e94-1bcfcaf56b7d - transferAccount: {} - category: - links: - self: https://api.up.com.au/api/v1/transactions/7c125426-98b7-4cd5-b899-95db54f5c6c1/relationships/category - parentCategory: {} - tags: - data: [] - links: - self: https://api.up.com.au/api/v1/transactions/7c125426-98b7-4cd5-b899-95db54f5c6c1/relationships/tags - links: - self: https://api.up.com.au/api/v1/transactions/7c125426-98b7-4cd5-b899-95db54f5c6c1 - summary: Retrieve transaction - tags: - - Transactions - /accounts/{accountId}/transactions: - get: - description: | - 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. - parameters: - - description: | - The unique identifier for the account. - example: b5544658-4bbd-4eb1-8f63-a9909e0f564b - explode: false - in: path - name: accountId - required: true - schema: - type: string - style: simple - - description: | - The number of records to return in each page. - example: 30 - explode: true - in: query - name: "page[size]" - required: false - schema: - type: integer - style: form - - description: | - The transaction status for which to return records. This - can be used to filter `HELD` transactions from those - that are `SETTLED`. - example: HELD - explode: true - in: query - name: "filter[status]" - required: false - schema: - $ref: '#/components/schemas/TransactionStatusEnum' - style: form - - description: | - The start date-time from which to return records, - formatted according to rfc-3339. Not to be used for - pagination purposes. - example: 2020-01-01T01:02:03+10:00 - explode: true - in: query - name: "filter[since]" - required: false - schema: - format: date-time - type: string - style: form - - description: | - The end date-time up to which to return records, - formatted according to rfc-3339. Not to be used for - pagination purposes. - example: 2020-02-01T01:02:03+10:00 - explode: true - in: query - name: "filter[until]" - required: false - schema: - format: date-time - type: string - style: form - - description: | - 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. - example: good-life - explode: true - in: query - name: "filter[category]" - required: false - schema: - type: string - style: form - - description: | - 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. - example: Holiday - explode: true - in: query - name: "filter[tag]" - required: false - schema: - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ListTransactionsResponse' - description: Successful Response - x-up:example: - type: exampleRequestResponse - request: - headers: - Authorization: Bearer up:demo:p5OsA0UQU85Tto4g - pathParameters: - accountId: 654cd41a-6f6d-4c2f-a1dd-5ad42c5ea175 - queryParameters: - page[size]: 1 - filter[status]: HELD - filter[category]: good-life - response: - data: - - type: transactions - id: d3726667-719e-4202-b889-cee39dfedb70 - attributes: - status: HELD - rawText: Spotify 0123456789 - description: Spotify - isCategorizable: true - holdInfo: - amount: - currencyCode: AUD - value: "-11.95" - valueInBaseUnits: -1195 - amount: - currencyCode: AUD - value: "-11.95" - valueInBaseUnits: -1195 - createdAt: 2022-01-10T10:41:42+11:00 - relationships: - account: - data: - type: accounts - id: 654cd41a-6f6d-4c2f-a1dd-5ad42c5ea175 - links: - related: https://api.up.com.au/api/v1/accounts/654cd41a-6f6d-4c2f-a1dd-5ad42c5ea175 - transferAccount: {} - category: - data: - type: categories - id: tv-and-music - links: - self: https://api.up.com.au/api/v1/transactions/d3726667-719e-4202-b889-cee39dfedb70/relationships/category - related: https://api.up.com.au/api/v1/categories/tv-and-music - parentCategory: - data: - type: categories - id: good-life - links: - related: https://api.up.com.au/api/v1/categories/good-life - tags: - data: [] - links: - self: https://api.up.com.au/api/v1/transactions/d3726667-719e-4202-b889-cee39dfedb70/relationships/tags - links: - self: https://api.up.com.au/api/v1/transactions/d3726667-719e-4202-b889-cee39dfedb70 - links: {} - summary: List transactions by account - tags: - - Transactions - /webhooks: - get: - description: | - 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. - parameters: - - description: | - The number of records to return in each page. - example: 30 - explode: true - in: query - name: "page[size]" - required: false - schema: - type: integer - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ListWebhooksResponse' - description: Successful Response - x-up:example: - type: exampleRequestResponse - request: - headers: - Authorization: Bearer up:demo:Id50WZYXl1n7Pb7o - pathParameters: {} - queryParameters: - page[size]: 1 - response: - data: - - type: webhooks - id: dcb32837-b686-42eb-82a9-2c173b5b3ee4 - attributes: - url: http://example.com/webhook-1 - description: Webhook number 1 - createdAt: 2022-01-11T14:50:43+11:00 - relationships: - logs: - links: - related: https://api.up.com.au/api/v1/webhooks/dcb32837-b686-42eb-82a9-2c173b5b3ee4/logs - links: - self: https://api.up.com.au/api/v1/webhooks/dcb32837-b686-42eb-82a9-2c173b5b3ee4 - links: - next: https://api.up.com.au/api/v1/webhooks?page%5Bafter%5D=WyIyMDIyLTAxLTExVDAzOjUwOjQzLjc1OTEyMzAwMFoiLCJkY2IzMjgzNy1iNjg2LTQyZWItODJhOS0yYzE3M2I1YjNlZTQiXQ%3D%3D&page%5Bsize%5D=1 - summary: List webhooks - tags: - - Webhooks - post: - callbacks: - Event: - '{webhookURL}': - post: - description: | - Once you have created a webhook in the Up API, events are sent to the - webhook’s configured URL as JSON-encoded `POST` requests. The webhook - URL must respond with a HTTP `200` status on success. - - It is important that the URL responds in a timely manner. If the URL - takes too long to respond (currently 30s), the request will be timed - out. For this reason it is strongly advised to avoid any heavy - processing before a response has been returned from the URL. A common - solution to this problem is to use a message broker such as RabbitMQ - to do the work asynchronously. - - Event delivery is retried with exponential backoff in the case of any - non-`200` response status, if the URL is unreachable, or if the request - is timed out. - - Refer to the `eventType` attribute in order to determine what course of - action to take when handling the event. The following event types are - currently sent: - - **`PING`** - - Manually triggered by calls to the webhook `ping` endpoint. Used for - testing and debugging purposes. - - **`TRANSACTION_CREATED`** - - Triggered whenever a new transaction is created in Up. This event - includes a `transaction` relationship that provides the unique - identifier for the transaction and a link to the transaction within the - Up API. This link should be used to retrieve the complete transaction - data. - - **`TRANSACTION_SETTLED`** - - Triggered whenever a transaction transitions from the `HELD` status to - the `SETTLED` status. This event includes a `transaction` relationship - that provides the unique identifier for the transaction and a link to - the transaction within the Up API. This link should be used to retrieve - the complete transaction data. - - Due to external factors in banking processes, on rare occasions this - event may not be triggered. Separate `TRANSACTION_DELETED` and - `TRANSACTION_CREATED` events will be received in its place. - - **`TRANSACTION_DELETED`** - - Triggered whenever a `HELD` transaction is deleted from Up. This - generally occurs for example when a hotel deposit is returned. This - event includes a `transaction` relationship that provides the unique - identifier for the transaction, however no link is provided to the - transaction within the Up API as it no longer exists. - - ## Securing Webhook Event Handlers - - Incoming webhook event requests include a `X-Up-Authenticity-Signature` - header, which can be used to verify that the event was sent by Up. - Verification of the signature requires knowledge of the shared - `secretKey` that was returned upon creation of the webhook. This key is - known only to your application and to Up. - - The verification process involves: - - 1. Taking the raw, unparsed webhook event request body. - 2. Computing the SHA-256 HMAC signature of the request body, using the - shared `secretKey`. - 3. Comparing the computed HMAC signature with the value of the - `X-Up-Authenticity-Signature` header. - - If the computed SHA-256 HMAC signature matches the - `X-Up-Authenticity-Signature` header, the request is valid. - - A few language-specific examples follow. - - **Ruby**: - - This example uses the Ruby on Rails framework. - - ```ruby - require 'openssl' - - def handle_webhook_event - received_signature = - request.headers['X-Up-Authenticity-Signature'] - - signature = OpenSSL::HMAC.hexdigest( - 'SHA256', - secret_key, - request.raw_post, - ) - - if Rack::Utils.secure_compare(received_signature, signature) - # Process webhook event - end - end - ``` - - **PHP**: - - This example uses the Laravel framework. - - ```php - public function handleWebhookEvent(Request $request) { - $received_signature = $request->header( - 'X-Up-Authenticity-Signature', - '' - ); - $raw_body = $request->getContent(); - $signature = hash_hmac('sha256', $raw_body, $this->secretKey); - - if (hash_equals($signature, $received_signature)) { - // Process webhook event - } - } - ``` - - **Go**: - - This example is in plain Go. - - ```go - import ( - "crypto/hmac" - "crypto/sha256" - "encoding/hex" - "io" - "net/http" - ) - - func handleWebhookEvent(w http.ResponseWriter, r *http.Request) { - receivedSignature, _ := hex.DecodeString( - r.Header.Get("X-Up-Authenticity-Signature"), - ) - - mac := hmac.New(sha256.New, secretKey) - io.Copy(mac, r.Body) - signature := mac.Sum(nil) - - if hmac.Equal(signature, receivedSignature) - // Process webhook event - } - } - ``` - - If the `secretKey` for a webhook is lost, simply create a new webhook - with the same URL, capture the returned `secretKey` and delete the - original webhook. - operationId: event_webhookURLPost - parameters: - - description: | - The SHA-256 HMAC signature of the raw request body, signed using - the `secretKey` of the webhook. - example: 317c0a8ea81df3f53c1d2aef5dcbf60492d0df557197b2990e71daa4a0693364 - explode: false - in: header - name: X-Up-Authenticity-Signature - required: false - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WebhookEventCallback' - responses: - "200": - description: Successful Response - summary: Handling webhook events - x-up:example: - type: examplePayload - payload: - data: - type: webhook-events - id: f23aba64-a992-46e3-a6f9-b162d58bc731 - attributes: - eventType: TRANSACTION_CREATED - createdAt: 2022-01-13T14:50:45+11:00 - relationships: - webhook: - data: - type: webhooks - id: 8b1744c4-d65c-4d9e-9ab5-3b50512fa867 - links: - related: https://api.up.com.au/api/v1/webhooks/8b1744c4-d65c-4d9e-9ab5-3b50512fa867 - transaction: - data: - type: transactions - id: 52717f62-f725-4674-94a9-8470decf2c2a - links: - related: https://api.up.com.au/api/v1/transactions/52717f62-f725-4674-94a9-8470decf2c2a - x-callback-request: true - description: | - 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. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreateWebhookRequest' - responses: - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/CreateWebhookResponse' - description: Created - x-up:example: - type: exampleRequestResponse - request: - headers: - Authorization: Bearer up:demo:Q8zq1dRpYtsGeGHE - Content-Type: application/json - pathParameters: {} - queryParameters: {} - payload: - data: - attributes: - url: http://example.com/webhook - description: Example webhook - response: - data: - type: webhooks - id: 4229772e-3558-46c9-8df1-526b7c0632bc - attributes: - url: http://example.com/webhook - description: Example webhook - secretKey: 5l2wSJIvC01gD2W2GZ6XPHN7SEg2cXUWWKf7xiVLdk0Qsmuu9NHDmNV3M5DxVDg6 - createdAt: 2022-01-13T14:50:44+11:00 - relationships: - logs: - links: - related: https://api.up.com.au/api/v1/webhooks/4229772e-3558-46c9-8df1-526b7c0632bc/logs - links: - self: https://api.up.com.au/api/v1/webhooks/4229772e-3558-46c9-8df1-526b7c0632bc - summary: Create webhook - tags: - - Webhooks - /webhooks/{id}: - delete: - description: | - Delete a specific webhook by providing its unique identifier. Once - deleted, webhook events will no longer be sent to the configured URL. - parameters: - - description: | - The unique identifier for the webhook. - example: a940825b-80b6-4798-b378-c6284259b4c5 - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "204": - description: Deleted - x-up:example: - type: exampleRequestResponse - request: - headers: - Authorization: Bearer up:demo:DSduRSY7s3nReT16 - pathParameters: - id: b2daaed4-4403-44fd-acec-9f9b8ceba5d9 - queryParameters: {} - summary: Delete webhook - tags: - - Webhooks - get: - description: | - Retrieve a specific webhook by providing its unique identifier. - parameters: - - description: | - The unique identifier for the webhook. - example: c8283a72-24b0-4fd8-9b13-fccccab371e5 - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/GetWebhookResponse' - description: Successful Response - x-up:example: - type: exampleRequestResponse - request: - headers: - Authorization: Bearer up:demo:6qAFUokK7x5aUTSL - pathParameters: - id: 4485694d-d057-4e7f-879c-0886d2092a71 - queryParameters: {} - response: - data: - type: webhooks - id: 4485694d-d057-4e7f-879c-0886d2092a71 - attributes: - url: http://example.com/webhook-2 - description: Webhook number 2 - createdAt: 2022-01-12T14:50:46+11:00 - relationships: - logs: - links: - related: https://api.up.com.au/api/v1/webhooks/4485694d-d057-4e7f-879c-0886d2092a71/logs - links: - self: https://api.up.com.au/api/v1/webhooks/4485694d-d057-4e7f-879c-0886d2092a71 - summary: Retrieve webhook - tags: - - Webhooks - /webhooks/{webhookId}/ping: - post: - description: | - 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. - parameters: - - description: | - The unique identifier for the webhook. - example: 830e127d-fb89-4400-92bb-f3f48289dcba - explode: false - in: path - name: webhookId - required: true - schema: - type: string - style: simple - responses: - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/WebhookEventCallback' - description: Successful response - x-up:example: - type: exampleRequestResponse - request: - headers: - Authorization: Bearer up:demo:oLDKm4XoYRcboJD3 - Content-Type: application/json - pathParameters: - webhookId: c673b0fa-caee-4d05-9fa6-9a76ee58f838 - queryParameters: {} - payload: "" - response: - data: - type: webhook-events - id: f0adb047-e63e-41d7-bdba-263c38f14581 - attributes: - eventType: PING - createdAt: 2022-01-13T14:50:48+11:00 - relationships: - webhook: - data: - type: webhooks - id: c673b0fa-caee-4d05-9fa6-9a76ee58f838 - links: - related: https://api.up.com.au/api/v1/webhooks/c673b0fa-caee-4d05-9fa6-9a76ee58f838 - summary: Ping webhook - tags: - - Webhooks - /webhooks/{webhookId}/logs: - get: - description: | - 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. - parameters: - - description: | - The unique identifier for the webhook. - example: 7104f5df-4993-495f-9d29-2b4d062c03a9 - explode: false - in: path - name: webhookId - required: true - schema: - type: string - style: simple - - description: | - The number of records to return in each page. - example: 30 - explode: true - in: query - name: "page[size]" - required: false - schema: - type: integer - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ListWebhookDeliveryLogsResponse' - description: Successful response - x-up:example: - type: exampleRequestResponse - request: - headers: - Authorization: Bearer up:demo:TONkbYAMSJJAbHbp - pathParameters: - webhookId: 117454bf-46ad-4be9-be0f-cadabf14e2c9 - queryParameters: - page[size]: 1 - response: - data: - - type: webhook-delivery-logs - id: 2482a02f-ebec-42a0-a09f-eb15843378d9 - attributes: - request: - body: "{\"data\":{\"type\":\"webhook-events\",\"id\":\"2347d5a4-78c8-47f8-b858-6a6f7ed8cd10\"\ - ,\"attributes\":{\"eventType\":\"TRANSACTION_CREATED\",\"createdAt\"\ - :\"2022-01-12T14:51:50+11:00\"},\"relationships\":{\"webhook\"\ - :{\"data\":{\"type\":\"webhooks\",\"id\":\"117454bf-46ad-4be9-be0f-cadabf14e2c9\"\ - },\"links\":{\"related\":\"https://api.up.com.au/api/v1/webhooks/117454bf-46ad-4be9-be0f-cadabf14e2c9\"\ - }},\"transaction\":{\"data\":{\"type\":\"transactions\",\"id\"\ - :\"346eeb5b-43ba-4a5b-a747-667d72bef559\"},\"links\":{\"related\"\ - :\"https://api.up.com.au/api/v1/transactions/346eeb5b-43ba-4a5b-a747-667d72bef559\"\ - }}}}}" - response: - statusCode: 200 - body: "{\"ok\":true}" - deliveryStatus: DELIVERED - createdAt: 2022-01-12T14:51:50+11:00 - relationships: - webhookEvent: - data: - type: webhook-events - id: 2347d5a4-78c8-47f8-b858-6a6f7ed8cd10 - links: - next: https://api.up.com.au/api/v1/webhooks/117454bf-46ad-4be9-be0f-cadabf14e2c9/logs?page%5Bafter%5D=WyIyMDIyLTAxLTEyVDAzOjUxOjUwLjYyNTgwODAwMFoiLCIyNDgyYTAyZi1lYmVjLTQyYTAtYTA5Zi1lYjE1ODQzMzc4ZDkiXQ%3D%3D&page%5Bsize%5D=1 - summary: List webhook logs - tags: - - Webhooks -components: - schemas: - AccountTypeEnum: - description: | - Specifies the type of bank account. Currently returned values are `SAVER` - and `TRANSACTIONAL`. - enum: - - SAVER - - TRANSACTIONAL - type: string - OwnershipTypeEnum: - description: | - Specifies the structure under which a bank account is owned. Currently - returned values are `INDIVIDUAL` and `JOINT`. - enum: - - INDIVIDUAL - - JOINT - type: string - MoneyObject: - description: | - Provides information about a value of money. - properties: - currencyCode: - description: | - The ISO 4217 currency code. - type: string - value: - description: | - The amount of money, formatted as a string in the relevant currency. - For example, for an Australian dollar value of $10.56, this field will - be `"10.56"`. The currency symbol is not included in the string. - type: string - valueInBaseUnits: - description: | - The amount of money in the smallest denomination for the currency, as a - 64-bit integer. For example, for an Australian dollar value of $10.56, - this field will be `1056`. - type: integer - required: - - currencyCode - - value - - valueInBaseUnits - type: object - AccountResource: - description: | - Provides information about an Up bank account. - example: - relationships: - transactions: - links: - related: related - attributes: - ownershipType: "" - createdAt: 2000-01-23T04:56:07.000+00:00 - balance: "" - displayName: displayName - accountType: "" - links: - self: self - id: id - type: type - properties: - type: - description: "The type of this resource: `accounts`" - type: string - id: - description: | - The unique identifier for this account. - type: string - attributes: - $ref: '#/components/schemas/AccountResource_attributes' - relationships: - $ref: '#/components/schemas/AccountResource_relationships' - links: - $ref: '#/components/schemas/AccountResource_links' - required: - - attributes - - id - - relationships - - type - type: object - ListAccountsResponse: - description: | - Successful response to get all accounts. This returns a paginated list of - accounts, which can be scrolled by following the `prev` and `next` links - if present. - example: - data: - - relationships: - transactions: - links: - related: related - attributes: - ownershipType: "" - createdAt: 2000-01-23T04:56:07.000+00:00 - balance: "" - displayName: displayName - accountType: "" - links: - self: self - id: id - type: type - - relationships: - transactions: - links: - related: related - attributes: - ownershipType: "" - createdAt: 2000-01-23T04:56:07.000+00:00 - balance: "" - displayName: displayName - accountType: "" - links: - self: self - id: id - type: type - links: - next: next - prev: prev - properties: - data: - description: | - The list of accounts returned in this response. - items: - $ref: '#/components/schemas/AccountResource' - type: array - links: - $ref: '#/components/schemas/ListAccountsResponse_links' - required: - - data - - links - type: object - GetAccountResponse: - description: | - Successful response to get a single account. - example: - data: "" - properties: - data: - allOf: - - $ref: '#/components/schemas/AccountResource' - description: | - The account returned in this response. - required: - - data - type: object - CategoryResource: - description: | - Provides information about a category and its ancestry. - example: - relationships: - parent: - data: - id: id - type: type - links: - related: related - children: - data: - - id: id - type: type - - id: id - type: type - links: - related: related - attributes: - name: name - links: - self: self - id: id - type: type - properties: - type: - description: "The type of this resource: `categories`" - type: string - id: - description: | - The unique identifier for this category. This is a human-readable but - URL-safe value. - type: string - attributes: - $ref: '#/components/schemas/CategoryResource_attributes' - relationships: - $ref: '#/components/schemas/CategoryResource_relationships' - links: - $ref: '#/components/schemas/AccountResource_links' - required: - - attributes - - id - - relationships - - type - type: object - ListCategoriesResponse: - description: | - Successful response to get all categories and their ancestry. The - returned list is not paginated. - example: - data: - - relationships: - parent: - data: - id: id - type: type - links: - related: related - children: - data: - - id: id - type: type - - id: id - type: type - links: - related: related - attributes: - name: name - links: - self: self - id: id - type: type - - relationships: - parent: - data: - id: id - type: type - links: - related: related - children: - data: - - id: id - type: type - - id: id - type: type - links: - related: related - attributes: - name: name - links: - self: self - id: id - type: type - properties: - data: - description: | - The list of categories returned in this response. - items: - $ref: '#/components/schemas/CategoryResource' - type: array - required: - - data - type: object - GetCategoryResponse: - description: | - Successful response to get a single category and its ancestry. - example: - data: "" - properties: - data: - allOf: - - $ref: '#/components/schemas/CategoryResource' - description: | - The category returned in this response. - required: - - data - type: object - CategoryInputResourceIdentifier: - description: | - Uniquely identifies a category in the API. - properties: - type: - description: "The type of this resource: `categories`" - type: string - id: - description: | - The unique identifier of the category, as returned by the `/categories` - endpoint. - type: string - required: - - id - - type - type: object - UpdateTransactionCategoryRequest: - description: | - Request to update the category associated with a transaction. - example: - data: - id: id - type: type - properties: - data: - $ref: '#/components/schemas/UpdateTransactionCategoryRequest_data' - required: - - data - type: object - PingResponse: - description: | - Basic ping response to verify authentication. - example: - meta: - id: id - statusEmoji: statusEmoji - properties: - meta: - $ref: '#/components/schemas/PingResponse_meta' - required: - - meta - type: object - ErrorObject: - description: | - Provides information about an error processing a request. - example: - detail: detail - source: - pointer: pointer - parameter: parameter - title: title - status: status - properties: - status: - description: | - The HTTP status code associated with this error. This can also be - obtained from the response headers. The status indicates the broad type - of error according to HTTP semantics. - type: string - title: - description: | - A short description of this error. This should be stable across - multiple occurrences of this type of error and typically expands on the - reason for the status code. - type: string - detail: - description: | - A detailed description of this error. This should be considered unique - to individual occurrences of an error and subject to change. It is - useful for debugging purposes. - type: string - source: - $ref: '#/components/schemas/ErrorObject_source' - required: - - detail - - status - - title - type: object - ErrorResponse: - description: | - Generic error response that returns one or more errors. - example: - errors: - - detail: detail - source: - pointer: pointer - parameter: parameter - title: title - status: status - - detail: detail - source: - pointer: pointer - parameter: parameter - title: title - status: status - properties: - errors: - description: | - The list of errors returned in this response. - items: - $ref: '#/components/schemas/ErrorObject' - type: array - required: - - errors - type: object - TagResource: - description: | - Provides information about a tag. - example: - relationships: - transactions: - links: - related: related - id: id - type: type - properties: - type: - description: "The type of this resource: `tags`" - type: string - id: - description: | - The label of the tag, which also acts as the tag’s unique identifier. - type: string - relationships: - $ref: '#/components/schemas/AccountResource_relationships' - required: - - id - - relationships - - type - type: object - ListTagsResponse: - description: | - Successful response to get all tags. This returns a paginated list of - tags, which can be scrolled by following the `prev` and `next` links if - present. - example: - data: - - relationships: - transactions: - links: - related: related - id: id - type: type - - relationships: - transactions: - links: - related: related - id: id - type: type - links: - next: next - prev: prev - properties: - data: - description: | - The list of tags returned in this response. - items: - $ref: '#/components/schemas/TagResource' - type: array - links: - $ref: '#/components/schemas/ListAccountsResponse_links' - required: - - data - - links - type: object - TagInputResourceIdentifier: - description: | - Uniquely identifies a single tag in the API. - example: - id: id - type: type - properties: - type: - description: "The type of this resource: `tags`" - type: string - id: - description: | - The label of the tag, which also acts as the tag’s unique identifier. - type: string - required: - - id - - type - type: object - UpdateTransactionTagsRequest: - description: | - Request to add or remove tags associated with a transaction. - example: - data: - - id: id - type: type - - id: id - type: type - properties: - data: - description: | - The tags to add to or remove from the transaction. - items: - $ref: '#/components/schemas/TagInputResourceIdentifier' - type: array - required: - - data - type: object - TransactionStatusEnum: - description: | - Specifies which stage of processing a transaction is currently at. - Currently returned values are `HELD` and `SETTLED`. When a transaction is - held, its account’s `availableBalance` is affected. When a transaction is - settled, its account’s `currentBalance` is affected. - enum: - - HELD - - SETTLED - type: string - HoldInfoObject: - description: | - Provides information about the amount at which a transaction was in the - `HELD` status. - properties: - amount: - allOf: - - $ref: '#/components/schemas/MoneyObject' - description: | - The amount of this transaction while in the `HELD` status, in - Australian dollars. - foreignAmount: - $ref: '#/components/schemas/HoldInfoObject_foreignAmount' - required: - - amount - - foreignAmount - type: object - RoundUpObject: - description: | - Provides information about how a Round Up was applied, such as whether or - not a boost was included in the Round Up. - properties: - amount: - allOf: - - $ref: '#/components/schemas/MoneyObject' - description: | - The total amount of this Round Up, including any boosts, represented as - a negative value. - boostPortion: - $ref: '#/components/schemas/RoundUpObject_boostPortion' - required: - - amount - - boostPortion - type: object - CashbackObject: - description: | - Provides information about an instant reimbursement in the form of - cashback. - properties: - description: - description: | - A brief description of why this cashback was paid. - type: string - amount: - allOf: - - $ref: '#/components/schemas/MoneyObject' - description: | - The total amount of cashback paid, represented as a positive value. - required: - - amount - - description - type: object - TransactionResource: - example: - relationships: - transferAccount: - data: - id: id - type: type - links: - related: related - parentCategory: - data: - id: id - type: type - links: - related: related - category: - data: - id: id - type: type - links: - related: related - self: self - account: - data: - id: id - type: type - links: - related: related - tags: - data: - - id: id - type: type - - id: id - type: type - links: - self: self - attributes: - holdInfo: - amount: "" - foreignAmount: - valueInBaseUnits: 0 - currencyCode: currencyCode - value: value - createdAt: 2000-01-23T04:56:07.000+00:00 - amount: "" - rawText: rawText - isCategorizable: true - settledAt: 2000-01-23T04:56:07.000+00:00 - description: description - message: message - roundUp: - amount: "" - boostPortion: - valueInBaseUnits: 6 - currencyCode: currencyCode - value: value - status: "" - cashback: - amount: "" - description: description - foreignAmount: - valueInBaseUnits: 1 - currencyCode: currencyCode - value: value - links: - self: self - id: id - type: type - properties: - type: - description: "The type of this resource: `transactions`" - type: string - id: - description: | - The unique identifier for this transaction. - type: string - attributes: - $ref: '#/components/schemas/TransactionResource_attributes' - relationships: - $ref: '#/components/schemas/TransactionResource_relationships' - links: - $ref: '#/components/schemas/AccountResource_links' - required: - - attributes - - id - - relationships - - type - type: object - ListTransactionsResponse: - description: | - Successful response to get all transactions. This returns a paginated - list of transactions, which can be scrolled by following the `prev` and - `next` links if present. - example: - data: - - relationships: - transferAccount: - data: - id: id - type: type - links: - related: related - parentCategory: - data: - id: id - type: type - links: - related: related - category: - data: - id: id - type: type - links: - related: related - self: self - account: - data: - id: id - type: type - links: - related: related - tags: - data: - - id: id - type: type - - id: id - type: type - links: - self: self - attributes: - holdInfo: - amount: "" - foreignAmount: - valueInBaseUnits: 0 - currencyCode: currencyCode - value: value - createdAt: 2000-01-23T04:56:07.000+00:00 - amount: "" - rawText: rawText - isCategorizable: true - settledAt: 2000-01-23T04:56:07.000+00:00 - description: description - message: message - roundUp: - amount: "" - boostPortion: - valueInBaseUnits: 6 - currencyCode: currencyCode - value: value - status: "" - cashback: - amount: "" - description: description - foreignAmount: - valueInBaseUnits: 1 - currencyCode: currencyCode - value: value - links: - self: self - id: id - type: type - - relationships: - transferAccount: - data: - id: id - type: type - links: - related: related - parentCategory: - data: - id: id - type: type - links: - related: related - category: - data: - id: id - type: type - links: - related: related - self: self - account: - data: - id: id - type: type - links: - related: related - tags: - data: - - id: id - type: type - - id: id - type: type - links: - self: self - attributes: - holdInfo: - amount: "" - foreignAmount: - valueInBaseUnits: 0 - currencyCode: currencyCode - value: value - createdAt: 2000-01-23T04:56:07.000+00:00 - amount: "" - rawText: rawText - isCategorizable: true - settledAt: 2000-01-23T04:56:07.000+00:00 - description: description - message: message - roundUp: - amount: "" - boostPortion: - valueInBaseUnits: 6 - currencyCode: currencyCode - value: value - status: "" - cashback: - amount: "" - description: description - foreignAmount: - valueInBaseUnits: 1 - currencyCode: currencyCode - value: value - links: - self: self - id: id - type: type - links: - next: next - prev: prev - properties: - data: - description: | - The list of transactions returned in this response. - items: - $ref: '#/components/schemas/TransactionResource' - type: array - links: - $ref: '#/components/schemas/ListAccountsResponse_links' - required: - - data - - links - type: object - GetTransactionResponse: - description: | - Successful response to get a single transaction. - example: - data: "" - properties: - data: - allOf: - - $ref: '#/components/schemas/TransactionResource' - description: | - The transaction returned in this response. - required: - - data - type: object - WebhookResource: - description: | - Provides information about a webhook. - example: - relationships: - logs: - links: - related: related - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - secretKey: secretKey - description: description - url: url - links: - self: self - id: id - type: type - properties: - type: - description: "The type of this resource: `webhooks`" - type: string - id: - description: | - The unique identifier for this webhook. - type: string - attributes: - $ref: '#/components/schemas/WebhookResource_attributes' - relationships: - $ref: '#/components/schemas/WebhookResource_relationships' - links: - $ref: '#/components/schemas/AccountResource_links' - required: - - attributes - - id - - relationships - - type - type: object - ListWebhooksResponse: - description: | - Successful response to get all webhooks. This returns a paginated list of - webhooks, which can be scrolled by following the `prev` and `next` links - if present. - example: - data: - - relationships: - logs: - links: - related: related - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - secretKey: secretKey - description: description - url: url - links: - self: self - id: id - type: type - - relationships: - logs: - links: - related: related - attributes: - createdAt: 2000-01-23T04:56:07.000+00:00 - secretKey: secretKey - description: description - url: url - links: - self: self - id: id - type: type - links: - next: next - prev: prev - properties: - data: - description: | - The list of webhooks returned in this response. - items: - $ref: '#/components/schemas/WebhookResource' - type: array - links: - $ref: '#/components/schemas/ListAccountsResponse_links' - required: - - data - - links - type: object - WebhookInputResource: - description: | - Represents a webhook specified as request input. - properties: - attributes: - $ref: '#/components/schemas/WebhookInputResource_attributes' - required: - - attributes - type: object - CreateWebhookRequest: - description: | - Request to create a new webhook. This currently only requires a `url` - attribute. - example: - data: "" - properties: - data: - allOf: - - $ref: '#/components/schemas/WebhookInputResource' - description: | - The webhook resource to create. - required: - - data - type: object - CreateWebhookResponse: - description: | - Successful response after creating a webhook. - example: - data: "" - properties: - data: - allOf: - - $ref: '#/components/schemas/WebhookResource' - description: | - The webhook that was created. - required: - - data - type: object - WebhookEventTypeEnum: - description: | - Specifies the type of a webhook event. This can be used to determine what - action to take in response to the event, such as which relationships to - expect. - enum: - - TRANSACTION_CREATED - - TRANSACTION_SETTLED - - TRANSACTION_DELETED - - PING - type: string - WebhookEventResource: - description: | - Provides the event data used in asynchronous webhook event callbacks to - subscribed endpoints. Webhooks events have defined `eventType`s and may - optionally relate to other resources within the Up API. - properties: - type: - description: "The type of this resource: `webhook-events`" - type: string - id: - description: | - The unique identifier for this event. This will remain constant across - delivery retries. - type: string - attributes: - $ref: '#/components/schemas/WebhookEventResource_attributes' - relationships: - $ref: '#/components/schemas/WebhookEventResource_relationships' - required: - - attributes - - id - - relationships - - type - type: object - WebhookEventCallback: - description: | - Asynchronous callback request used for webhook event delivery. - example: - data: "" - properties: - data: - allOf: - - $ref: '#/components/schemas/WebhookEventResource' - description: | - The webhook event data sent to the subscribed webhook. - required: - - data - type: object - GetWebhookResponse: - description: | - Successful response to get a single webhook. - example: - data: "" - properties: - data: - allOf: - - $ref: '#/components/schemas/WebhookResource' - description: | - The webhook returned in this response. - required: - - data - type: object - WebhookDeliveryStatusEnum: - description: | - Specifies the nature of the success or failure of a webhook delivery - attempt to the subscribed webhook URL. The currently returned values are - described below: - - - **`DELIVERED`**: The event was delivered to the webhook URL - successfully and a `200` response was received. - - **`UNDELIVERABLE`**: The webhook URL was not reachable, or timed out. - - **`BAD_RESPONSE_CODE`**: The event was delivered to the webhook URL - but a non-`200` response was received. - enum: - - DELIVERED - - UNDELIVERABLE - - BAD_RESPONSE_CODE - type: string - WebhookDeliveryLogResource: - description: | - Provides historical webhook event delivery information for analysis and - debugging purposes. - example: - relationships: - webhookEvent: - data: - id: id - type: type - attributes: - request: - body: body - createdAt: 2000-01-23T04:56:07.000+00:00 - response: - body: body - statusCode: 0 - deliveryStatus: "" - id: id - type: type - properties: - type: - description: "The type of this resource: `webhook-delivery-logs`" - type: string - id: - description: | - The unique identifier for this log entry. - type: string - attributes: - $ref: '#/components/schemas/WebhookDeliveryLogResource_attributes' - relationships: - $ref: '#/components/schemas/WebhookDeliveryLogResource_relationships' - required: - - attributes - - id - - relationships - - type - type: object - ListWebhookDeliveryLogsResponse: - description: | - Successful response to get all delivery logs for a webhook. This returns - a paginated list of delivery logs, which can be scrolled by following the - `next` and `prev` links if present. - example: - data: - - relationships: - webhookEvent: - data: - id: id - type: type - attributes: - request: - body: body - createdAt: 2000-01-23T04:56:07.000+00:00 - response: - body: body - statusCode: 0 - deliveryStatus: "" - id: id - type: type - - relationships: - webhookEvent: - data: - id: id - type: type - attributes: - request: - body: body - createdAt: 2000-01-23T04:56:07.000+00:00 - response: - body: body - statusCode: 0 - deliveryStatus: "" - id: id - type: type - links: - next: next - prev: prev - properties: - data: - description: | - The list of delivery logs returned in this response. - items: - $ref: '#/components/schemas/WebhookDeliveryLogResource' - type: array - links: - $ref: '#/components/schemas/ListAccountsResponse_links' - required: - - data - - links - type: object - AccountResource_attributes: - example: - ownershipType: "" - createdAt: 2000-01-23T04:56:07.000+00:00 - balance: "" - displayName: displayName - accountType: "" - properties: - displayName: - description: | - The name associated with the account in the Up application. - type: string - accountType: - allOf: - - $ref: '#/components/schemas/AccountTypeEnum' - description: | - The bank account type of this account. - ownershipType: - allOf: - - $ref: '#/components/schemas/OwnershipTypeEnum' - description: | - The ownership structure for this account. - balance: - allOf: - - $ref: '#/components/schemas/MoneyObject' - description: | - The available balance of the account, taking into account any amounts - that are currently on hold. - createdAt: - description: | - The date-time at which this account was first opened. - format: date-time - type: string - required: - - accountType - - balance - - createdAt - - displayName - - ownershipType - type: object - AccountResource_relationships_transactions_links: - example: - related: related - properties: - related: - description: | - The link to retrieve the related resource(s) in this relationship. - type: string - required: - - related - type: object - AccountResource_relationships_transactions: - example: - links: - related: related - properties: - links: - $ref: '#/components/schemas/AccountResource_relationships_transactions_links' - type: object - AccountResource_relationships: - example: - transactions: - links: - related: related - properties: - transactions: - $ref: '#/components/schemas/AccountResource_relationships_transactions' - required: - - transactions - type: object - AccountResource_links: - example: - self: self - properties: - self: - description: | - The canonical link to this resource within the API. - type: string - required: - - self - type: object - ListAccountsResponse_links: - example: - next: next - prev: prev - properties: - prev: - description: | - The link to the previous page in the results. If this value is `null` - there is no previous page. - nullable: true - type: string - next: - description: | - The link to the next page in the results. If this value is `null` - there is no next page. - nullable: true - type: string - required: - - next - - prev - type: object - CategoryResource_attributes: - example: - name: name - properties: - name: - description: | - The name of this category as seen in the Up application. - type: string - required: - - name - type: object - CategoryResource_relationships_parent_data: - example: - id: id - type: type - nullable: true - properties: - type: - description: "The type of this resource: `categories`" - type: string - id: - description: | - The unique identifier of the resource within its type. - type: string - required: - - id - - type - type: object - CategoryResource_relationships_parent: - example: - data: - id: id - type: type - links: - related: related - properties: - data: - $ref: '#/components/schemas/CategoryResource_relationships_parent_data' - links: - $ref: '#/components/schemas/AccountResource_relationships_transactions_links' - required: - - data - type: object - CategoryResource_relationships_children_data_inner: - example: - id: id - type: type - properties: - type: - description: "The type of this resource: `categories`" - type: string - id: - description: | - The unique identifier of the resource within its type. - type: string - required: - - id - - type - type: object - CategoryResource_relationships_children: - example: - data: - - id: id - type: type - - id: id - type: type - links: - related: related - properties: - data: - items: - $ref: '#/components/schemas/CategoryResource_relationships_children_data_inner' - type: array - links: - $ref: '#/components/schemas/AccountResource_relationships_transactions_links' - required: - - data - type: object - CategoryResource_relationships: - example: - parent: - data: - id: id - type: type - links: - related: related - children: - data: - - id: id - type: type - - id: id - type: type - links: - related: related - properties: - parent: - $ref: '#/components/schemas/CategoryResource_relationships_parent' - children: - $ref: '#/components/schemas/CategoryResource_relationships_children' - required: - - children - - parent - type: object - UpdateTransactionCategoryRequest_data: - allOf: - - $ref: '#/components/schemas/CategoryInputResourceIdentifier' - description: | - The category to set on the transaction. Set this entire key to `null` - de-categorize a transaction. - example: - id: id - type: type - nullable: true - PingResponse_meta: - example: - id: id - statusEmoji: statusEmoji - properties: - id: - description: | - The unique identifier of the authenticated customer. - type: string - statusEmoji: - description: | - A cute emoji that represents the response status. - type: string - required: - - id - - statusEmoji - type: object - ErrorObject_source: - description: | - If applicable, location in the request that this error relates to. This - may be a parameter in the query string, or a an attribute in the - request body. - example: - pointer: pointer - parameter: parameter - properties: - parameter: - description: | - If this error relates to a query parameter, the name of the - parameter. - type: string - pointer: - description: | - If this error relates to an attribute in the request body, a - rfc-6901 JSON pointer to the attribute. - type: string - type: object - HoldInfoObject_foreignAmount: - allOf: - - $ref: '#/components/schemas/MoneyObject' - description: | - The foreign currency amount of this transaction while in the `HELD` - status. This field will be `null` for domestic transactions. The amount - was converted to the AUD amount reflected in the `amount` field. - example: - valueInBaseUnits: 0 - currencyCode: currencyCode - value: value - nullable: true - RoundUpObject_boostPortion: - allOf: - - $ref: '#/components/schemas/MoneyObject' - description: | - The portion of the Round Up `amount` owing to boosted Round Ups, - represented as a negative value. If no boost was added to the Round Up - this field will be `null`. - example: - valueInBaseUnits: 6 - currencyCode: currencyCode - value: value - nullable: true - TransactionResource_attributes_holdInfo: - allOf: - - $ref: '#/components/schemas/HoldInfoObject' - description: | - If this transaction is currently in the `HELD` status, or was ever in - the `HELD` status, the `amount` and `foreignAmount` of the - transaction while `HELD`. - example: - amount: "" - foreignAmount: - valueInBaseUnits: 0 - currencyCode: currencyCode - value: value - nullable: true - TransactionResource_attributes_roundUp: - allOf: - - $ref: '#/components/schemas/RoundUpObject' - description: | - Details of how this transaction was rounded-up. If no Round Up was - applied this field will be `null`. - example: - amount: "" - boostPortion: - valueInBaseUnits: 6 - currencyCode: currencyCode - value: value - nullable: true - TransactionResource_attributes_cashback: - allOf: - - $ref: '#/components/schemas/CashbackObject' - description: | - If all or part of this transaction was instantly reimbursed in the - form of cashback, details of the reimbursement. - example: - amount: "" - description: description - nullable: true - TransactionResource_attributes_foreignAmount: - allOf: - - $ref: '#/components/schemas/MoneyObject' - description: | - The foreign currency amount of this transaction. This field will be - `null` for domestic transactions. The amount was converted to the AUD - amount reflected in the `amount` of this transaction. Refer to the - `holdInfo` field for the original `foreignAmount` the transaction was - `HELD` at. - example: - valueInBaseUnits: 1 - currencyCode: currencyCode - value: value - nullable: true - TransactionResource_attributes: - example: - holdInfo: - amount: "" - foreignAmount: - valueInBaseUnits: 0 - currencyCode: currencyCode - value: value - createdAt: 2000-01-23T04:56:07.000+00:00 - amount: "" - rawText: rawText - isCategorizable: true - settledAt: 2000-01-23T04:56:07.000+00:00 - description: description - message: message - roundUp: - amount: "" - boostPortion: - valueInBaseUnits: 6 - currencyCode: currencyCode - value: value - status: "" - cashback: - amount: "" - description: description - foreignAmount: - valueInBaseUnits: 1 - currencyCode: currencyCode - value: value - properties: - status: - allOf: - - $ref: '#/components/schemas/TransactionStatusEnum' - description: | - The current processing status of this transaction, according to - whether or not this transaction has settled or is still held. - rawText: - description: | - The original, unprocessed text of the transaction. This is often not - a perfect indicator of the actual merchant, but it is useful for - reconciliation purposes in some cases. - nullable: true - type: string - description: - description: | - A short description for this transaction. Usually the merchant name - for purchases. - type: string - message: - description: | - Attached message for this transaction, such as a payment message, or a - transfer note. - nullable: true - type: string - isCategorizable: - description: | - Boolean flag set to true on transactions that support the use of - categories. - type: boolean - holdInfo: - $ref: '#/components/schemas/TransactionResource_attributes_holdInfo' - roundUp: - $ref: '#/components/schemas/TransactionResource_attributes_roundUp' - cashback: - $ref: '#/components/schemas/TransactionResource_attributes_cashback' - amount: - allOf: - - $ref: '#/components/schemas/MoneyObject' - description: | - The amount of this transaction in Australian dollars. For - transactions that were once `HELD` but are now `SETTLED`, refer to - the `holdInfo` field for the original `amount` the transaction was - `HELD` at. - foreignAmount: - $ref: '#/components/schemas/TransactionResource_attributes_foreignAmount' - settledAt: - description: | - The date-time at which this transaction settled. This field will be - `null` for transactions that are currently in the `HELD` status. - format: date-time - nullable: true - type: string - createdAt: - description: | - The date-time at which this transaction was first encountered. - format: date-time - type: string - required: - - amount - - cashback - - createdAt - - description - - foreignAmount - - holdInfo - - isCategorizable - - message - - rawText - - roundUp - - settledAt - - status - type: object - TransactionResource_relationships_account_data: - example: - id: id - type: type - properties: - type: - description: "The type of this resource: `accounts`" - type: string - id: - description: | - The unique identifier of the resource within its type. - type: string - required: - - id - - type - type: object - TransactionResource_relationships_account: - example: - data: - id: id - type: type - links: - related: related - properties: - data: - $ref: '#/components/schemas/TransactionResource_relationships_account_data' - links: - $ref: '#/components/schemas/AccountResource_relationships_transactions_links' - required: - - data - type: object - TransactionResource_relationships_transferAccount_data: - example: - id: id - type: type - nullable: true - properties: - type: - description: "The type of this resource: `accounts`" - type: string - id: - description: | - The unique identifier of the resource within its type. - type: string - required: - - id - - type - type: object - TransactionResource_relationships_transferAccount: - description: | - If this transaction is a transfer between accounts, this relationship - will contain the account the transaction went to/came from. The - `amount` field can be used to determine the direction of the transfer. - example: - data: - id: id - type: type - links: - related: related - properties: - data: - $ref: '#/components/schemas/TransactionResource_relationships_transferAccount_data' - links: - $ref: '#/components/schemas/AccountResource_relationships_transactions_links' - required: - - data - type: object - TransactionResource_relationships_category_links: - example: - related: related - self: self - properties: - self: - description: | - The link to retrieve or modify linkage between this resources and the - related resource(s) in this relationship. - type: string - related: - description: | - The link to retrieve the related resource(s) in this relationship. - type: string - required: - - self - type: object - TransactionResource_relationships_category: - example: - data: - id: id - type: type - links: - related: related - self: self - properties: - data: - $ref: '#/components/schemas/CategoryResource_relationships_parent_data' - links: - $ref: '#/components/schemas/TransactionResource_relationships_category_links' - required: - - data - type: object - TransactionResource_relationships_tags_data_inner: - example: - id: id - type: type - properties: - type: - description: "The type of this resource: `tags`" - type: string - id: - description: | - The label of the tag, which also acts as the tag’s unique identifier. - type: string - required: - - id - - type - type: object - TransactionResource_relationships_tags_links: - example: - self: self - properties: - self: - description: | - The link to retrieve or modify linkage between this resources and the - related resource(s) in this relationship. - type: string - required: - - self - type: object - TransactionResource_relationships_tags: - example: - data: - - id: id - type: type - - id: id - type: type - links: - self: self - properties: - data: - items: - $ref: '#/components/schemas/TransactionResource_relationships_tags_data_inner' - type: array - links: - $ref: '#/components/schemas/TransactionResource_relationships_tags_links' - required: - - data - type: object - TransactionResource_relationships: - example: - transferAccount: - data: - id: id - type: type - links: - related: related - parentCategory: - data: - id: id - type: type - links: - related: related - category: - data: - id: id - type: type - links: - related: related - self: self - account: - data: - id: id - type: type - links: - related: related - tags: - data: - - id: id - type: type - - id: id - type: type - links: - self: self - properties: - account: - $ref: '#/components/schemas/TransactionResource_relationships_account' - transferAccount: - $ref: '#/components/schemas/TransactionResource_relationships_transferAccount' - category: - $ref: '#/components/schemas/TransactionResource_relationships_category' - parentCategory: - $ref: '#/components/schemas/CategoryResource_relationships_parent' - tags: - $ref: '#/components/schemas/TransactionResource_relationships_tags' - required: - - account - - category - - parentCategory - - tags - - transferAccount - type: object - WebhookResource_attributes: - example: - createdAt: 2000-01-23T04:56:07.000+00:00 - secretKey: secretKey - description: description - url: url - properties: - url: - description: | - The URL that this webhook is configured to `POST` events to. - type: string - description: - description: | - An optional description that was provided at the time the webhook was - created. - nullable: true - type: string - secretKey: - description: | - A shared secret key used to sign all webhook events sent to the - configured webhook URL. This field is returned only once, upon the - initial creation of the webhook. If lost, create a new webhook and - delete this webhook. - - The webhook URL receives a request with a - `X-Up-Authenticity-Signature` header, which is the SHA-256 HMAC of - the entire raw request body signed using this `secretKey`. It is - advised to compute and check this signature to verify the - authenticity of requests sent to the webhook URL. See - [Handling webhook events](#callback_post_webhookURL) for full - details. - type: string - createdAt: - description: | - The date-time at which this webhook was created. - format: date-time - type: string - required: - - createdAt - - description - - url - type: object - WebhookResource_relationships: - example: - logs: - links: - related: related - properties: - logs: - $ref: '#/components/schemas/AccountResource_relationships_transactions' - required: - - logs - type: object - WebhookInputResource_attributes: - properties: - url: - description: | - The URL that this webhook should post events to. This must be a valid - HTTP or HTTPS URL that does not exceed 300 characters in length. - format: uri - type: string - description: - description: | - An optional description for this webhook, up to 64 characters in - length. - nullable: true - type: string - required: - - url - type: object - WebhookEventResource_attributes: - properties: - eventType: - allOf: - - $ref: '#/components/schemas/WebhookEventTypeEnum' - description: | - The type of this event. This can be used to determine what action to - take in response to the event. - createdAt: - description: | - The date-time at which this event was generated. - format: date-time - type: string - required: - - createdAt - - eventType - type: object - WebhookEventResource_relationships_webhook_data: - properties: - type: - description: "The type of this resource: `webhooks`" - type: string - id: - description: | - The unique identifier of the resource within its type. - type: string - required: - - id - - type - type: object - WebhookEventResource_relationships_webhook: - properties: - data: - $ref: '#/components/schemas/WebhookEventResource_relationships_webhook_data' - links: - $ref: '#/components/schemas/AccountResource_relationships_transactions_links' - required: - - data - type: object - WebhookEventResource_relationships_transaction_data: - properties: - type: - description: "The type of this resource: `transactions`" - type: string - id: - description: | - The unique identifier of the resource within its type. - type: string - required: - - id - - type - type: object - WebhookEventResource_relationships_transaction: - properties: - data: - $ref: '#/components/schemas/WebhookEventResource_relationships_transaction_data' - links: - $ref: '#/components/schemas/AccountResource_relationships_transactions_links' - required: - - data - type: object - WebhookEventResource_relationships: - properties: - webhook: - $ref: '#/components/schemas/WebhookEventResource_relationships_webhook' - transaction: - $ref: '#/components/schemas/WebhookEventResource_relationships_transaction' - required: - - webhook - type: object - WebhookDeliveryLogResource_attributes_request: - description: | - Information about the request that was sent to the webhook URL. - example: - body: body - properties: - body: - description: | - The payload that was sent in the request body. - type: string - required: - - body - type: object - WebhookDeliveryLogResource_attributes_response: - description: | - Information about the response that was received from the webhook URL. - example: - body: body - statusCode: 0 - nullable: true - properties: - statusCode: - description: | - The HTTP status code received in the response. - type: integer - body: - description: | - The payload that was received in the response body. - type: string - required: - - body - - statusCode - type: object - WebhookDeliveryLogResource_attributes: - example: - request: - body: body - createdAt: 2000-01-23T04:56:07.000+00:00 - response: - body: body - statusCode: 0 - deliveryStatus: "" - properties: - request: - $ref: '#/components/schemas/WebhookDeliveryLogResource_attributes_request' - response: - $ref: '#/components/schemas/WebhookDeliveryLogResource_attributes_response' - deliveryStatus: - allOf: - - $ref: '#/components/schemas/WebhookDeliveryStatusEnum' - description: | - The success or failure status of this delivery attempt. - createdAt: - description: | - The date-time at which this log entry was created. - format: date-time - type: string - required: - - createdAt - - deliveryStatus - - request - - response - type: object - WebhookDeliveryLogResource_relationships_webhookEvent_data: - example: - id: id - type: type - properties: - type: - description: "The type of this resource: `webhook-events`" - type: string - id: - description: | - The unique identifier of the resource within its type. - type: string - required: - - id - - type - type: object - WebhookDeliveryLogResource_relationships_webhookEvent: - example: - data: - id: id - type: type - properties: - data: - $ref: '#/components/schemas/WebhookDeliveryLogResource_relationships_webhookEvent_data' - required: - - data - type: object - WebhookDeliveryLogResource_relationships: - example: - webhookEvent: - data: - id: id - type: type - properties: - webhookEvent: - $ref: '#/components/schemas/WebhookDeliveryLogResource_relationships_webhookEvent' - required: - - webhookEvent - type: object - securitySchemes: - bearer_auth: - scheme: bearer - type: http diff --git a/expense-manager/openapi/api_accounts.go b/expense-manager/openapi/api_accounts.go deleted file mode 100644 index bacac4a..0000000 --- a/expense-manager/openapi/api_accounts.go +++ /dev/null @@ -1,259 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" - "strings" -) - -// AccountsAPIService AccountsAPI service -type AccountsAPIService service - -type ApiAccountsGetRequest struct { - ctx context.Context - ApiService *AccountsAPIService - pageSize *int32 - filterAccountType *AccountTypeEnum - filterOwnershipType *OwnershipTypeEnum -} - -// The number of records to return in each page. -func (r ApiAccountsGetRequest) PageSize(pageSize int32) ApiAccountsGetRequest { - r.pageSize = &pageSize - return r -} - -// The type of account for which to return records. This can be used to filter Savers from spending accounts. -func (r ApiAccountsGetRequest) FilterAccountType(filterAccountType AccountTypeEnum) ApiAccountsGetRequest { - r.filterAccountType = &filterAccountType - return r -} - -// The account ownership structure for which to return records. This can be used to filter 2Up accounts from Up accounts. -func (r ApiAccountsGetRequest) FilterOwnershipType(filterOwnershipType OwnershipTypeEnum) ApiAccountsGetRequest { - r.filterOwnershipType = &filterOwnershipType - return r -} - -func (r ApiAccountsGetRequest) Execute() (*ListAccountsResponse, *http.Response, error) { - return r.ApiService.AccountsGetExecute(r) -} - -/* -AccountsGet List accounts - -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. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAccountsGetRequest -*/ -func (a *AccountsAPIService) AccountsGet(ctx context.Context) ApiAccountsGetRequest { - return ApiAccountsGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ListAccountsResponse -func (a *AccountsAPIService) AccountsGetExecute(r ApiAccountsGetRequest) (*ListAccountsResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListAccountsResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccountsAPIService.AccountsGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/accounts" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.pageSize != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page[size]", r.pageSize, "") - } - if r.filterAccountType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter[accountType]", r.filterAccountType, "") - } - if r.filterOwnershipType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter[ownershipType]", r.filterOwnershipType, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiAccountsIdGetRequest struct { - ctx context.Context - ApiService *AccountsAPIService - id string -} - -func (r ApiAccountsIdGetRequest) Execute() (*GetAccountResponse, *http.Response, error) { - return r.ApiService.AccountsIdGetExecute(r) -} - -/* -AccountsIdGet Retrieve account - -Retrieve a specific account by providing its unique identifier. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The unique identifier for the account. - @return ApiAccountsIdGetRequest -*/ -func (a *AccountsAPIService) AccountsIdGet(ctx context.Context, id string) ApiAccountsIdGetRequest { - return ApiAccountsIdGetRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return GetAccountResponse -func (a *AccountsAPIService) AccountsIdGetExecute(r ApiAccountsIdGetRequest) (*GetAccountResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GetAccountResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccountsAPIService.AccountsIdGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/accounts/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/expense-manager/openapi/api_categories.go b/expense-manager/openapi/api_categories.go deleted file mode 100644 index 9b525dc..0000000 --- a/expense-manager/openapi/api_categories.go +++ /dev/null @@ -1,345 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" - "strings" -) - -// CategoriesAPIService CategoriesAPI service -type CategoriesAPIService service - -type ApiCategoriesGetRequest struct { - ctx context.Context - ApiService *CategoriesAPIService - filterParent *string -} - -// The unique identifier of a parent category for which to return only its children. Providing an invalid category identifier results in a `404` response. -func (r ApiCategoriesGetRequest) FilterParent(filterParent string) ApiCategoriesGetRequest { - r.filterParent = &filterParent - return r -} - -func (r ApiCategoriesGetRequest) Execute() (*ListCategoriesResponse, *http.Response, error) { - return r.ApiService.CategoriesGetExecute(r) -} - -/* -CategoriesGet List categories - -Retrieve a list of all categories and their ancestry. The returned list -is not paginated. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCategoriesGetRequest -*/ -func (a *CategoriesAPIService) CategoriesGet(ctx context.Context) ApiCategoriesGetRequest { - return ApiCategoriesGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ListCategoriesResponse -func (a *CategoriesAPIService) CategoriesGetExecute(r ApiCategoriesGetRequest) (*ListCategoriesResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListCategoriesResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CategoriesAPIService.CategoriesGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/categories" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.filterParent != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter[parent]", r.filterParent, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCategoriesIdGetRequest struct { - ctx context.Context - ApiService *CategoriesAPIService - id string -} - -func (r ApiCategoriesIdGetRequest) Execute() (*GetCategoryResponse, *http.Response, error) { - return r.ApiService.CategoriesIdGetExecute(r) -} - -/* -CategoriesIdGet Retrieve category - -Retrieve a specific category by providing its unique identifier. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The unique identifier for the category. - @return ApiCategoriesIdGetRequest -*/ -func (a *CategoriesAPIService) CategoriesIdGet(ctx context.Context, id string) ApiCategoriesIdGetRequest { - return ApiCategoriesIdGetRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return GetCategoryResponse -func (a *CategoriesAPIService) CategoriesIdGetExecute(r ApiCategoriesIdGetRequest) (*GetCategoryResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GetCategoryResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CategoriesAPIService.CategoriesIdGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/categories/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiTransactionsTransactionIdRelationshipsCategoryPatchRequest struct { - ctx context.Context - ApiService *CategoriesAPIService - transactionId string - updateTransactionCategoryRequest *UpdateTransactionCategoryRequest -} - -func (r ApiTransactionsTransactionIdRelationshipsCategoryPatchRequest) UpdateTransactionCategoryRequest(updateTransactionCategoryRequest UpdateTransactionCategoryRequest) ApiTransactionsTransactionIdRelationshipsCategoryPatchRequest { - r.updateTransactionCategoryRequest = &updateTransactionCategoryRequest - return r -} - -func (r ApiTransactionsTransactionIdRelationshipsCategoryPatchRequest) Execute() (*http.Response, error) { - return r.ApiService.TransactionsTransactionIdRelationshipsCategoryPatchExecute(r) -} - -/* -TransactionsTransactionIdRelationshipsCategoryPatch Categorize transaction - -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}`. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param transactionId The unique identifier for the transaction. - @return ApiTransactionsTransactionIdRelationshipsCategoryPatchRequest -*/ -func (a *CategoriesAPIService) TransactionsTransactionIdRelationshipsCategoryPatch(ctx context.Context, transactionId string) ApiTransactionsTransactionIdRelationshipsCategoryPatchRequest { - return ApiTransactionsTransactionIdRelationshipsCategoryPatchRequest{ - ApiService: a, - ctx: ctx, - transactionId: transactionId, - } -} - -// Execute executes the request -func (a *CategoriesAPIService) TransactionsTransactionIdRelationshipsCategoryPatchExecute(r ApiTransactionsTransactionIdRelationshipsCategoryPatchRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CategoriesAPIService.TransactionsTransactionIdRelationshipsCategoryPatch") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/transactions/{transactionId}/relationships/category" - localVarPath = strings.Replace(localVarPath, "{"+"transactionId"+"}", url.PathEscape(parameterValueToString(r.transactionId, "transactionId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.updateTransactionCategoryRequest - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} diff --git a/expense-manager/openapi/api_tags.go b/expense-manager/openapi/api_tags.go deleted file mode 100644 index 93cdc19..0000000 --- a/expense-manager/openapi/api_tags.go +++ /dev/null @@ -1,346 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" - "strings" -) - -// TagsAPIService TagsAPI service -type TagsAPIService service - -type ApiTagsGetRequest struct { - ctx context.Context - ApiService *TagsAPIService - pageSize *int32 -} - -// The number of records to return in each page. -func (r ApiTagsGetRequest) PageSize(pageSize int32) ApiTagsGetRequest { - r.pageSize = &pageSize - return r -} - -func (r ApiTagsGetRequest) Execute() (*ListTagsResponse, *http.Response, error) { - return r.ApiService.TagsGetExecute(r) -} - -/* -TagsGet List tags - -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. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTagsGetRequest -*/ -func (a *TagsAPIService) TagsGet(ctx context.Context) ApiTagsGetRequest { - return ApiTagsGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ListTagsResponse -func (a *TagsAPIService) TagsGetExecute(r ApiTagsGetRequest) (*ListTagsResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListTagsResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsAPIService.TagsGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/tags" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.pageSize != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page[size]", r.pageSize, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiTransactionsTransactionIdRelationshipsTagsDeleteRequest struct { - ctx context.Context - ApiService *TagsAPIService - transactionId string - updateTransactionTagsRequest *UpdateTransactionTagsRequest -} - -func (r ApiTransactionsTransactionIdRelationshipsTagsDeleteRequest) UpdateTransactionTagsRequest(updateTransactionTagsRequest UpdateTransactionTagsRequest) ApiTransactionsTransactionIdRelationshipsTagsDeleteRequest { - r.updateTransactionTagsRequest = &updateTransactionTagsRequest - return r -} - -func (r ApiTransactionsTransactionIdRelationshipsTagsDeleteRequest) Execute() (*http.Response, error) { - return r.ApiService.TransactionsTransactionIdRelationshipsTagsDeleteExecute(r) -} - -/* -TransactionsTransactionIdRelationshipsTagsDelete Remove tags from transaction - -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}`. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param transactionId The unique identifier for the transaction. - @return ApiTransactionsTransactionIdRelationshipsTagsDeleteRequest -*/ -func (a *TagsAPIService) TransactionsTransactionIdRelationshipsTagsDelete(ctx context.Context, transactionId string) ApiTransactionsTransactionIdRelationshipsTagsDeleteRequest { - return ApiTransactionsTransactionIdRelationshipsTagsDeleteRequest{ - ApiService: a, - ctx: ctx, - transactionId: transactionId, - } -} - -// Execute executes the request -func (a *TagsAPIService) TransactionsTransactionIdRelationshipsTagsDeleteExecute(r ApiTransactionsTransactionIdRelationshipsTagsDeleteRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsAPIService.TransactionsTransactionIdRelationshipsTagsDelete") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/transactions/{transactionId}/relationships/tags" - localVarPath = strings.Replace(localVarPath, "{"+"transactionId"+"}", url.PathEscape(parameterValueToString(r.transactionId, "transactionId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.updateTransactionTagsRequest - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiTransactionsTransactionIdRelationshipsTagsPostRequest struct { - ctx context.Context - ApiService *TagsAPIService - transactionId string - updateTransactionTagsRequest *UpdateTransactionTagsRequest -} - -func (r ApiTransactionsTransactionIdRelationshipsTagsPostRequest) UpdateTransactionTagsRequest(updateTransactionTagsRequest UpdateTransactionTagsRequest) ApiTransactionsTransactionIdRelationshipsTagsPostRequest { - r.updateTransactionTagsRequest = &updateTransactionTagsRequest - return r -} - -func (r ApiTransactionsTransactionIdRelationshipsTagsPostRequest) Execute() (*http.Response, error) { - return r.ApiService.TransactionsTransactionIdRelationshipsTagsPostExecute(r) -} - -/* -TransactionsTransactionIdRelationshipsTagsPost Add tags to transaction - -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}`. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param transactionId The unique identifier for the transaction. - @return ApiTransactionsTransactionIdRelationshipsTagsPostRequest -*/ -func (a *TagsAPIService) TransactionsTransactionIdRelationshipsTagsPost(ctx context.Context, transactionId string) ApiTransactionsTransactionIdRelationshipsTagsPostRequest { - return ApiTransactionsTransactionIdRelationshipsTagsPostRequest{ - ApiService: a, - ctx: ctx, - transactionId: transactionId, - } -} - -// Execute executes the request -func (a *TagsAPIService) TransactionsTransactionIdRelationshipsTagsPostExecute(r ApiTransactionsTransactionIdRelationshipsTagsPostRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsAPIService.TransactionsTransactionIdRelationshipsTagsPost") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/transactions/{transactionId}/relationships/tags" - localVarPath = strings.Replace(localVarPath, "{"+"transactionId"+"}", url.PathEscape(parameterValueToString(r.transactionId, "transactionId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.updateTransactionTagsRequest - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} diff --git a/expense-manager/openapi/api_transactions.go b/expense-manager/openapi/api_transactions.go deleted file mode 100644 index 68051ae..0000000 --- a/expense-manager/openapi/api_transactions.go +++ /dev/null @@ -1,464 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" - "strings" - "time" -) - -// TransactionsAPIService TransactionsAPI service -type TransactionsAPIService service - -type ApiAccountsAccountIdTransactionsGetRequest struct { - ctx context.Context - ApiService *TransactionsAPIService - accountId string - pageSize *int32 - filterStatus *TransactionStatusEnum - filterSince *time.Time - filterUntil *time.Time - filterCategory *string - filterTag *string -} - -// The number of records to return in each page. -func (r ApiAccountsAccountIdTransactionsGetRequest) PageSize(pageSize int32) ApiAccountsAccountIdTransactionsGetRequest { - r.pageSize = &pageSize - return r -} - -// The transaction status for which to return records. This can be used to filter `HELD` transactions from those that are `SETTLED`. -func (r ApiAccountsAccountIdTransactionsGetRequest) FilterStatus(filterStatus TransactionStatusEnum) ApiAccountsAccountIdTransactionsGetRequest { - r.filterStatus = &filterStatus - return r -} - -// The start date-time from which to return records, formatted according to rfc-3339. Not to be used for pagination purposes. -func (r ApiAccountsAccountIdTransactionsGetRequest) FilterSince(filterSince time.Time) ApiAccountsAccountIdTransactionsGetRequest { - r.filterSince = &filterSince - return r -} - -// The end date-time up to which to return records, formatted according to rfc-3339. Not to be used for pagination purposes. -func (r ApiAccountsAccountIdTransactionsGetRequest) FilterUntil(filterUntil time.Time) ApiAccountsAccountIdTransactionsGetRequest { - r.filterUntil = &filterUntil - return r -} - -// 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. -func (r ApiAccountsAccountIdTransactionsGetRequest) FilterCategory(filterCategory string) ApiAccountsAccountIdTransactionsGetRequest { - r.filterCategory = &filterCategory - return r -} - -// 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. -func (r ApiAccountsAccountIdTransactionsGetRequest) FilterTag(filterTag string) ApiAccountsAccountIdTransactionsGetRequest { - r.filterTag = &filterTag - return r -} - -func (r ApiAccountsAccountIdTransactionsGetRequest) Execute() (*ListTransactionsResponse, *http.Response, error) { - return r.ApiService.AccountsAccountIdTransactionsGetExecute(r) -} - -/* -AccountsAccountIdTransactionsGet List transactions by account - -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. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param accountId The unique identifier for the account. - @return ApiAccountsAccountIdTransactionsGetRequest -*/ -func (a *TransactionsAPIService) AccountsAccountIdTransactionsGet(ctx context.Context, accountId string) ApiAccountsAccountIdTransactionsGetRequest { - return ApiAccountsAccountIdTransactionsGetRequest{ - ApiService: a, - ctx: ctx, - accountId: accountId, - } -} - -// Execute executes the request -// -// @return ListTransactionsResponse -func (a *TransactionsAPIService) AccountsAccountIdTransactionsGetExecute(r ApiAccountsAccountIdTransactionsGetRequest) (*ListTransactionsResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListTransactionsResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TransactionsAPIService.AccountsAccountIdTransactionsGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/accounts/{accountId}/transactions" - localVarPath = strings.Replace(localVarPath, "{"+"accountId"+"}", url.PathEscape(parameterValueToString(r.accountId, "accountId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.pageSize != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page[size]", r.pageSize, "") - } - if r.filterStatus != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter[status]", r.filterStatus, "") - } - if r.filterSince != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter[since]", r.filterSince, "") - } - if r.filterUntil != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter[until]", r.filterUntil, "") - } - if r.filterCategory != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter[category]", r.filterCategory, "") - } - if r.filterTag != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter[tag]", r.filterTag, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiTransactionsGetRequest struct { - ctx context.Context - ApiService *TransactionsAPIService - pageSize *int32 - filterStatus *TransactionStatusEnum - filterSince *time.Time - filterUntil *time.Time - filterCategory *string - filterTag *string -} - -// The number of records to return in each page. -func (r ApiTransactionsGetRequest) PageSize(pageSize int32) ApiTransactionsGetRequest { - r.pageSize = &pageSize - return r -} - -// The transaction status for which to return records. This can be used to filter `HELD` transactions from those that are `SETTLED`. -func (r ApiTransactionsGetRequest) FilterStatus(filterStatus TransactionStatusEnum) ApiTransactionsGetRequest { - r.filterStatus = &filterStatus - return r -} - -// The start date-time from which to return records, formatted according to rfc-3339. Not to be used for pagination purposes. -func (r ApiTransactionsGetRequest) FilterSince(filterSince time.Time) ApiTransactionsGetRequest { - r.filterSince = &filterSince - return r -} - -// The end date-time up to which to return records, formatted according to rfc-3339. Not to be used for pagination purposes. -func (r ApiTransactionsGetRequest) FilterUntil(filterUntil time.Time) ApiTransactionsGetRequest { - r.filterUntil = &filterUntil - return r -} - -// 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. -func (r ApiTransactionsGetRequest) FilterCategory(filterCategory string) ApiTransactionsGetRequest { - r.filterCategory = &filterCategory - return r -} - -// 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. -func (r ApiTransactionsGetRequest) FilterTag(filterTag string) ApiTransactionsGetRequest { - r.filterTag = &filterTag - return r -} - -func (r ApiTransactionsGetRequest) Execute() (*ListTransactionsResponse, *http.Response, error) { - return r.ApiService.TransactionsGetExecute(r) -} - -/* -TransactionsGet List transactions - -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. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTransactionsGetRequest -*/ -func (a *TransactionsAPIService) TransactionsGet(ctx context.Context) ApiTransactionsGetRequest { - return ApiTransactionsGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ListTransactionsResponse -func (a *TransactionsAPIService) TransactionsGetExecute(r ApiTransactionsGetRequest) (*ListTransactionsResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListTransactionsResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TransactionsAPIService.TransactionsGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/transactions" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.pageSize != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page[size]", r.pageSize, "") - } - if r.filterStatus != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter[status]", r.filterStatus, "") - } - if r.filterSince != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter[since]", r.filterSince, "") - } - if r.filterUntil != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter[until]", r.filterUntil, "") - } - if r.filterCategory != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter[category]", r.filterCategory, "") - } - if r.filterTag != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter[tag]", r.filterTag, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiTransactionsIdGetRequest struct { - ctx context.Context - ApiService *TransactionsAPIService - id string -} - -func (r ApiTransactionsIdGetRequest) Execute() (*GetTransactionResponse, *http.Response, error) { - return r.ApiService.TransactionsIdGetExecute(r) -} - -/* -TransactionsIdGet Retrieve transaction - -Retrieve a specific transaction by providing its unique identifier. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The unique identifier for the transaction. - @return ApiTransactionsIdGetRequest -*/ -func (a *TransactionsAPIService) TransactionsIdGet(ctx context.Context, id string) ApiTransactionsIdGetRequest { - return ApiTransactionsIdGetRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return GetTransactionResponse -func (a *TransactionsAPIService) TransactionsIdGetExecute(r ApiTransactionsIdGetRequest) (*GetTransactionResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GetTransactionResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TransactionsAPIService.TransactionsIdGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/transactions/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/expense-manager/openapi/api_utility_endpoints.go b/expense-manager/openapi/api_utility_endpoints.go deleted file mode 100644 index 94cf086..0000000 --- a/expense-manager/openapi/api_utility_endpoints.go +++ /dev/null @@ -1,135 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" -) - -// UtilityEndpointsAPIService UtilityEndpointsAPI service -type UtilityEndpointsAPIService service - -type ApiUtilPingGetRequest struct { - ctx context.Context - ApiService *UtilityEndpointsAPIService -} - -func (r ApiUtilPingGetRequest) Execute() (*PingResponse, *http.Response, error) { - return r.ApiService.UtilPingGetExecute(r) -} - -/* -UtilPingGet Ping - -Make a basic ping request to the API. This is useful to verify that -authentication is functioning correctly. On authentication success an -HTTP `200` status is returned. On failure an HTTP `401` error response -is returned. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUtilPingGetRequest -*/ -func (a *UtilityEndpointsAPIService) UtilPingGet(ctx context.Context) ApiUtilPingGetRequest { - return ApiUtilPingGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return PingResponse -func (a *UtilityEndpointsAPIService) UtilPingGetExecute(r ApiUtilPingGetRequest) (*PingResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PingResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UtilityEndpointsAPIService.UtilPingGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/util/ping" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 401 { - var v ErrorResponse - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/expense-manager/openapi/api_webhooks.go b/expense-manager/openapi/api_webhooks.go deleted file mode 100644 index 98b5e00..0000000 --- a/expense-manager/openapi/api_webhooks.go +++ /dev/null @@ -1,685 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "io" - "net/http" - "net/url" - "strings" -) - -// WebhooksAPIService WebhooksAPI service -type WebhooksAPIService service - -type ApiWebhooksGetRequest struct { - ctx context.Context - ApiService *WebhooksAPIService - pageSize *int32 -} - -// The number of records to return in each page. -func (r ApiWebhooksGetRequest) PageSize(pageSize int32) ApiWebhooksGetRequest { - r.pageSize = &pageSize - return r -} - -func (r ApiWebhooksGetRequest) Execute() (*ListWebhooksResponse, *http.Response, error) { - return r.ApiService.WebhooksGetExecute(r) -} - -/* -WebhooksGet List webhooks - -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. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWebhooksGetRequest -*/ -func (a *WebhooksAPIService) WebhooksGet(ctx context.Context) ApiWebhooksGetRequest { - return ApiWebhooksGetRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return ListWebhooksResponse -func (a *WebhooksAPIService) WebhooksGetExecute(r ApiWebhooksGetRequest) (*ListWebhooksResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListWebhooksResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksAPIService.WebhooksGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/webhooks" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.pageSize != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page[size]", r.pageSize, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiWebhooksIdDeleteRequest struct { - ctx context.Context - ApiService *WebhooksAPIService - id string -} - -func (r ApiWebhooksIdDeleteRequest) Execute() (*http.Response, error) { - return r.ApiService.WebhooksIdDeleteExecute(r) -} - -/* -WebhooksIdDelete Delete webhook - -Delete a specific webhook by providing its unique identifier. Once -deleted, webhook events will no longer be sent to the configured URL. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The unique identifier for the webhook. - @return ApiWebhooksIdDeleteRequest -*/ -func (a *WebhooksAPIService) WebhooksIdDelete(ctx context.Context, id string) ApiWebhooksIdDeleteRequest { - return ApiWebhooksIdDeleteRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -func (a *WebhooksAPIService) WebhooksIdDeleteExecute(r ApiWebhooksIdDeleteRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksAPIService.WebhooksIdDelete") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/webhooks/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiWebhooksIdGetRequest struct { - ctx context.Context - ApiService *WebhooksAPIService - id string -} - -func (r ApiWebhooksIdGetRequest) Execute() (*GetWebhookResponse, *http.Response, error) { - return r.ApiService.WebhooksIdGetExecute(r) -} - -/* -WebhooksIdGet Retrieve webhook - -Retrieve a specific webhook by providing its unique identifier. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The unique identifier for the webhook. - @return ApiWebhooksIdGetRequest -*/ -func (a *WebhooksAPIService) WebhooksIdGet(ctx context.Context, id string) ApiWebhooksIdGetRequest { - return ApiWebhooksIdGetRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return GetWebhookResponse -func (a *WebhooksAPIService) WebhooksIdGetExecute(r ApiWebhooksIdGetRequest) (*GetWebhookResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GetWebhookResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksAPIService.WebhooksIdGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/webhooks/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiWebhooksPostRequest struct { - ctx context.Context - ApiService *WebhooksAPIService - createWebhookRequest *CreateWebhookRequest -} - -func (r ApiWebhooksPostRequest) CreateWebhookRequest(createWebhookRequest CreateWebhookRequest) ApiWebhooksPostRequest { - r.createWebhookRequest = &createWebhookRequest - return r -} - -func (r ApiWebhooksPostRequest) Execute() (*CreateWebhookResponse, *http.Response, error) { - return r.ApiService.WebhooksPostExecute(r) -} - -/* -WebhooksPost Create webhook - -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. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWebhooksPostRequest -*/ -func (a *WebhooksAPIService) WebhooksPost(ctx context.Context) ApiWebhooksPostRequest { - return ApiWebhooksPostRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return CreateWebhookResponse -func (a *WebhooksAPIService) WebhooksPostExecute(r ApiWebhooksPostRequest) (*CreateWebhookResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateWebhookResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksAPIService.WebhooksPost") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/webhooks" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.createWebhookRequest - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiWebhooksWebhookIdLogsGetRequest struct { - ctx context.Context - ApiService *WebhooksAPIService - webhookId string - pageSize *int32 -} - -// The number of records to return in each page. -func (r ApiWebhooksWebhookIdLogsGetRequest) PageSize(pageSize int32) ApiWebhooksWebhookIdLogsGetRequest { - r.pageSize = &pageSize - return r -} - -func (r ApiWebhooksWebhookIdLogsGetRequest) Execute() (*ListWebhookDeliveryLogsResponse, *http.Response, error) { - return r.ApiService.WebhooksWebhookIdLogsGetExecute(r) -} - -/* -WebhooksWebhookIdLogsGet List webhook logs - -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. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param webhookId The unique identifier for the webhook. - @return ApiWebhooksWebhookIdLogsGetRequest -*/ -func (a *WebhooksAPIService) WebhooksWebhookIdLogsGet(ctx context.Context, webhookId string) ApiWebhooksWebhookIdLogsGetRequest { - return ApiWebhooksWebhookIdLogsGetRequest{ - ApiService: a, - ctx: ctx, - webhookId: webhookId, - } -} - -// Execute executes the request -// -// @return ListWebhookDeliveryLogsResponse -func (a *WebhooksAPIService) WebhooksWebhookIdLogsGetExecute(r ApiWebhooksWebhookIdLogsGetRequest) (*ListWebhookDeliveryLogsResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListWebhookDeliveryLogsResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksAPIService.WebhooksWebhookIdLogsGet") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/webhooks/{webhookId}/logs" - localVarPath = strings.Replace(localVarPath, "{"+"webhookId"+"}", url.PathEscape(parameterValueToString(r.webhookId, "webhookId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.pageSize != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page[size]", r.pageSize, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiWebhooksWebhookIdPingPostRequest struct { - ctx context.Context - ApiService *WebhooksAPIService - webhookId string -} - -func (r ApiWebhooksWebhookIdPingPostRequest) Execute() (*WebhookEventCallback, *http.Response, error) { - return r.ApiService.WebhooksWebhookIdPingPostExecute(r) -} - -/* -WebhooksWebhookIdPingPost Ping webhook - -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. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param webhookId The unique identifier for the webhook. - @return ApiWebhooksWebhookIdPingPostRequest -*/ -func (a *WebhooksAPIService) WebhooksWebhookIdPingPost(ctx context.Context, webhookId string) ApiWebhooksWebhookIdPingPostRequest { - return ApiWebhooksWebhookIdPingPostRequest{ - ApiService: a, - ctx: ctx, - webhookId: webhookId, - } -} - -// Execute executes the request -// -// @return WebhookEventCallback -func (a *WebhooksAPIService) WebhooksWebhookIdPingPostExecute(r ApiWebhooksWebhookIdPingPostRequest) (*WebhookEventCallback, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *WebhookEventCallback - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhooksAPIService.WebhooksWebhookIdPingPost") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/webhooks/{webhookId}/ping" - localVarPath = strings.Replace(localVarPath, "{"+"webhookId"+"}", url.PathEscape(parameterValueToString(r.webhookId, "webhookId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/expense-manager/openapi/client.go b/expense-manager/openapi/client.go deleted file mode 100644 index 5ab6681..0000000 --- a/expense-manager/openapi/client.go +++ /dev/null @@ -1,679 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "context" - "encoding/json" - "encoding/xml" - "errors" - "fmt" - "io" - "log" - "mime/multipart" - "net/http" - "net/http/httputil" - "net/url" - "os" - "path/filepath" - "reflect" - "regexp" - "strconv" - "strings" - "time" - "unicode/utf8" -) - -var ( - JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) - XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) - queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) - queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") -) - -// APIClient manages communication with the Up API API vv1 -// In most cases there should be only one, shared, APIClient. -type APIClient struct { - cfg *Configuration - common service // Reuse a single struct instead of allocating one for each service on the heap. - - // API Services - - AccountsAPI *AccountsAPIService - - CategoriesAPI *CategoriesAPIService - - TagsAPI *TagsAPIService - - TransactionsAPI *TransactionsAPIService - - UtilityEndpointsAPI *UtilityEndpointsAPIService - - WebhooksAPI *WebhooksAPIService -} - -type service struct { - client *APIClient -} - -// NewAPIClient creates a new API client. Requires a userAgent string describing your application. -// optionally a custom http.Client to allow for advanced features such as caching. -func NewAPIClient(cfg *Configuration) *APIClient { - if cfg.HTTPClient == nil { - cfg.HTTPClient = http.DefaultClient - } - - c := &APIClient{} - c.cfg = cfg - c.common.client = c - - // API Services - c.AccountsAPI = (*AccountsAPIService)(&c.common) - c.CategoriesAPI = (*CategoriesAPIService)(&c.common) - c.TagsAPI = (*TagsAPIService)(&c.common) - c.TransactionsAPI = (*TransactionsAPIService)(&c.common) - c.UtilityEndpointsAPI = (*UtilityEndpointsAPIService)(&c.common) - c.WebhooksAPI = (*WebhooksAPIService)(&c.common) - - return c -} - -func atoi(in string) (int, error) { - return strconv.Atoi(in) -} - -// selectHeaderContentType select a content type from the available list. -func selectHeaderContentType(contentTypes []string) string { - if len(contentTypes) == 0 { - return "" - } - if contains(contentTypes, "application/json") { - return "application/json" - } - return contentTypes[0] // use the first content type specified in 'consumes' -} - -// selectHeaderAccept join all accept types and return -func selectHeaderAccept(accepts []string) string { - if len(accepts) == 0 { - return "" - } - - if contains(accepts, "application/json") { - return "application/json" - } - - return strings.Join(accepts, ",") -} - -// contains is a case insensitive match, finding needle in a haystack -func contains(haystack []string, needle string) bool { - for _, a := range haystack { - if strings.EqualFold(a, needle) { - return true - } - } - return false -} - -// Verify optional parameters are of the correct type. -func typeCheckParameter(obj interface{}, expected string, name string) error { - // Make sure there is an object. - if obj == nil { - return nil - } - - // Check the type is as expected. - if reflect.TypeOf(obj).String() != expected { - return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) - } - return nil -} - -func parameterValueToString(obj interface{}, key string) string { - if reflect.TypeOf(obj).Kind() != reflect.Ptr { - return fmt.Sprintf("%v", obj) - } - var param, ok = obj.(MappedNullable) - if !ok { - return "" - } - dataMap, err := param.ToMap() - if err != nil { - return "" - } - return fmt.Sprintf("%v", dataMap[key]) -} - -// parameterAddToHeaderOrQuery adds the provided object to the request header or url query -// supporting deep object syntax -func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { - var v = reflect.ValueOf(obj) - var value = "" - if v == reflect.ValueOf(nil) { - value = "null" - } else { - switch v.Kind() { - case reflect.Invalid: - value = "invalid" - - case reflect.Struct: - if t, ok := obj.(MappedNullable); ok { - dataMap, err := t.ToMap() - if err != nil { - return - } - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) - return - } - if t, ok := obj.(time.Time); ok { - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) - return - } - value = v.Type().String() + " value" - case reflect.Slice: - var indValue = reflect.ValueOf(obj) - if indValue == reflect.ValueOf(nil) { - return - } - var lenIndValue = indValue.Len() - for i := 0; i < lenIndValue; i++ { - var arrayValue = indValue.Index(i) - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, arrayValue.Interface(), collectionType) - } - return - - case reflect.Map: - var indValue = reflect.ValueOf(obj) - if indValue == reflect.ValueOf(nil) { - return - } - iter := indValue.MapRange() - for iter.Next() { - k, v := iter.Key(), iter.Value() - parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), collectionType) - } - return - - case reflect.Interface: - fallthrough - case reflect.Ptr: - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), collectionType) - return - - case reflect.Int, reflect.Int8, reflect.Int16, - reflect.Int32, reflect.Int64: - value = strconv.FormatInt(v.Int(), 10) - case reflect.Uint, reflect.Uint8, reflect.Uint16, - reflect.Uint32, reflect.Uint64, reflect.Uintptr: - value = strconv.FormatUint(v.Uint(), 10) - case reflect.Float32, reflect.Float64: - value = strconv.FormatFloat(v.Float(), 'g', -1, 32) - case reflect.Bool: - value = strconv.FormatBool(v.Bool()) - case reflect.String: - value = v.String() - default: - value = v.Type().String() + " value" - } - } - - switch valuesMap := headerOrQueryParams.(type) { - case url.Values: - if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" { - valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value) - } else { - valuesMap.Add(keyPrefix, value) - } - break - case map[string]string: - valuesMap[keyPrefix] = value - break - } -} - -// helper for converting interface{} parameters to json strings -func parameterToJson(obj interface{}) (string, error) { - jsonBuf, err := json.Marshal(obj) - if err != nil { - return "", err - } - return string(jsonBuf), err -} - -// callAPI do the request. -func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { - if c.cfg.Debug { - dump, err := httputil.DumpRequestOut(request, true) - if err != nil { - return nil, err - } - log.Printf("\n%s\n", string(dump)) - } - - resp, err := c.cfg.HTTPClient.Do(request) - if err != nil { - return resp, err - } - - if c.cfg.Debug { - dump, err := httputil.DumpResponse(resp, true) - if err != nil { - return resp, err - } - log.Printf("\n%s\n", string(dump)) - } - return resp, err -} - -// Allow modification of underlying config for alternate implementations and testing -// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior -func (c *APIClient) GetConfig() *Configuration { - return c.cfg -} - -type formFile struct { - fileBytes []byte - fileName string - formFileName string -} - -// prepareRequest build the request -func (c *APIClient) prepareRequest( - ctx context.Context, - path string, method string, - postBody interface{}, - headerParams map[string]string, - queryParams url.Values, - formParams url.Values, - formFiles []formFile) (localVarRequest *http.Request, err error) { - - var body *bytes.Buffer - - // Detect postBody type and post. - if postBody != nil { - contentType := headerParams["Content-Type"] - if contentType == "" { - contentType = detectContentType(postBody) - headerParams["Content-Type"] = contentType - } - - body, err = setBody(postBody, contentType) - if err != nil { - return nil, err - } - } - - // add form parameters and file if available. - if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) { - if body != nil { - return nil, errors.New("Cannot specify postBody and multipart form at the same time.") - } - body = &bytes.Buffer{} - w := multipart.NewWriter(body) - - for k, v := range formParams { - for _, iv := range v { - if strings.HasPrefix(k, "@") { // file - err = addFile(w, k[1:], iv) - if err != nil { - return nil, err - } - } else { // form value - w.WriteField(k, iv) - } - } - } - for _, formFile := range formFiles { - if len(formFile.fileBytes) > 0 && formFile.fileName != "" { - w.Boundary() - part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) - if err != nil { - return nil, err - } - _, err = part.Write(formFile.fileBytes) - if err != nil { - return nil, err - } - } - } - - // Set the Boundary in the Content-Type - headerParams["Content-Type"] = w.FormDataContentType() - - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - w.Close() - } - - if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { - if body != nil { - return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") - } - body = &bytes.Buffer{} - body.WriteString(formParams.Encode()) - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - } - - // Setup path and query parameters - url, err := url.Parse(path) - if err != nil { - return nil, err - } - - // Override request host, if applicable - if c.cfg.Host != "" { - url.Host = c.cfg.Host - } - - // Override request scheme, if applicable - if c.cfg.Scheme != "" { - url.Scheme = c.cfg.Scheme - } - - // Adding Query Param - query := url.Query() - for k, v := range queryParams { - for _, iv := range v { - query.Add(k, iv) - } - } - - // Encode the parameters. - url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { - pieces := strings.Split(s, "=") - pieces[0] = queryDescape.Replace(pieces[0]) - return strings.Join(pieces, "=") - }) - - // Generate a new request - if body != nil { - localVarRequest, err = http.NewRequest(method, url.String(), body) - } else { - localVarRequest, err = http.NewRequest(method, url.String(), nil) - } - if err != nil { - return nil, err - } - - // add header parameters, if any - if len(headerParams) > 0 { - headers := http.Header{} - for h, v := range headerParams { - headers[h] = []string{v} - } - localVarRequest.Header = headers - } - - // Add the user agent to the request. - localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) - - if ctx != nil { - // add context to the request - localVarRequest = localVarRequest.WithContext(ctx) - - // Walk through any authentication. - - // AccessToken Authentication - if auth, ok := ctx.Value(ContextAccessToken).(string); ok { - localVarRequest.Header.Add("Authorization", "Bearer "+auth) - } - - } - - for header, value := range c.cfg.DefaultHeader { - localVarRequest.Header.Add(header, value) - } - return localVarRequest, nil -} - -func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { - if len(b) == 0 { - return nil - } - if s, ok := v.(*string); ok { - *s = string(b) - return nil - } - if f, ok := v.(*os.File); ok { - f, err = os.CreateTemp("", "HttpClientFile") - if err != nil { - return - } - _, err = f.Write(b) - if err != nil { - return - } - _, err = f.Seek(0, io.SeekStart) - return - } - if f, ok := v.(**os.File); ok { - *f, err = os.CreateTemp("", "HttpClientFile") - if err != nil { - return - } - _, err = (*f).Write(b) - if err != nil { - return - } - _, err = (*f).Seek(0, io.SeekStart) - return - } - if XmlCheck.MatchString(contentType) { - if err = xml.Unmarshal(b, v); err != nil { - return err - } - return nil - } - if JsonCheck.MatchString(contentType) { - if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas - if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined - if err = unmarshalObj.UnmarshalJSON(b); err != nil { - return err - } - } else { - return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") - } - } else if err = json.Unmarshal(b, v); err != nil { // simple model - return err - } - return nil - } - return errors.New("undefined response type") -} - -// Add a file to the multipart request -func addFile(w *multipart.Writer, fieldName, path string) error { - file, err := os.Open(filepath.Clean(path)) - if err != nil { - return err - } - err = file.Close() - if err != nil { - return err - } - - part, err := w.CreateFormFile(fieldName, filepath.Base(path)) - if err != nil { - return err - } - _, err = io.Copy(part, file) - - return err -} - -// Prevent trying to import "fmt" -func reportError(format string, a ...interface{}) error { - return fmt.Errorf(format, a...) -} - -// A wrapper for strict JSON decoding -func newStrictDecoder(data []byte) *json.Decoder { - dec := json.NewDecoder(bytes.NewBuffer(data)) - dec.DisallowUnknownFields() - return dec -} - -// Set request body from an interface{} -func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { - if bodyBuf == nil { - bodyBuf = &bytes.Buffer{} - } - - if reader, ok := body.(io.Reader); ok { - _, err = bodyBuf.ReadFrom(reader) - } else if fp, ok := body.(*os.File); ok { - _, err = bodyBuf.ReadFrom(fp) - } else if b, ok := body.([]byte); ok { - _, err = bodyBuf.Write(b) - } else if s, ok := body.(string); ok { - _, err = bodyBuf.WriteString(s) - } else if s, ok := body.(*string); ok { - _, err = bodyBuf.WriteString(*s) - } else if JsonCheck.MatchString(contentType) { - err = json.NewEncoder(bodyBuf).Encode(body) - } else if XmlCheck.MatchString(contentType) { - var bs []byte - bs, err = xml.Marshal(body) - if err == nil { - bodyBuf.Write(bs) - } - } - - if err != nil { - return nil, err - } - - if bodyBuf.Len() == 0 { - err = fmt.Errorf("invalid body type %s\n", contentType) - return nil, err - } - return bodyBuf, nil -} - -// detectContentType method is used to figure out `Request.Body` content type for request header -func detectContentType(body interface{}) string { - contentType := "text/plain; charset=utf-8" - kind := reflect.TypeOf(body).Kind() - - switch kind { - case reflect.Struct, reflect.Map, reflect.Ptr: - contentType = "application/json; charset=utf-8" - case reflect.String: - contentType = "text/plain; charset=utf-8" - default: - if b, ok := body.([]byte); ok { - contentType = http.DetectContentType(b) - } else if kind == reflect.Slice { - contentType = "application/json; charset=utf-8" - } - } - - return contentType -} - -// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go -type cacheControl map[string]string - -func parseCacheControl(headers http.Header) cacheControl { - cc := cacheControl{} - ccHeader := headers.Get("Cache-Control") - for _, part := range strings.Split(ccHeader, ",") { - part = strings.Trim(part, " ") - if part == "" { - continue - } - if strings.ContainsRune(part, '=') { - keyval := strings.Split(part, "=") - cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") - } else { - cc[part] = "" - } - } - return cc -} - -// CacheExpires helper function to determine remaining time before repeating a request. -func CacheExpires(r *http.Response) time.Time { - // Figure out when the cache expires. - var expires time.Time - now, err := time.Parse(time.RFC1123, r.Header.Get("date")) - if err != nil { - return time.Now() - } - respCacheControl := parseCacheControl(r.Header) - - if maxAge, ok := respCacheControl["max-age"]; ok { - lifetime, err := time.ParseDuration(maxAge + "s") - if err != nil { - expires = now - } else { - expires = now.Add(lifetime) - } - } else { - expiresHeader := r.Header.Get("Expires") - if expiresHeader != "" { - expires, err = time.Parse(time.RFC1123, expiresHeader) - if err != nil { - expires = now - } - } - } - return expires -} - -func strlen(s string) int { - return utf8.RuneCountInString(s) -} - -// GenericOpenAPIError Provides access to the body, error and model on returned errors. -type GenericOpenAPIError struct { - body []byte - error string - model interface{} -} - -// Error returns non-empty string if there was an error. -func (e GenericOpenAPIError) Error() string { - return e.error -} - -// Body returns the raw bytes of the response -func (e GenericOpenAPIError) Body() []byte { - return e.body -} - -// Model returns the unpacked model of the error -func (e GenericOpenAPIError) Model() interface{} { - return e.model -} - -// format error message using title and detail when model implements rfc7807 -func formatErrorMessage(status string, v interface{}) string { - str := "" - metaValue := reflect.ValueOf(v).Elem() - - if metaValue.Kind() == reflect.Struct { - field := metaValue.FieldByName("Title") - if field != (reflect.Value{}) { - str = fmt.Sprintf("%s", field.Interface()) - } - - field = metaValue.FieldByName("Detail") - if field != (reflect.Value{}) { - str = fmt.Sprintf("%s (%s)", str, field.Interface()) - } - } - - return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) -} diff --git a/expense-manager/openapi/configuration.go b/expense-manager/openapi/configuration.go deleted file mode 100644 index 43c0c10..0000000 --- a/expense-manager/openapi/configuration.go +++ /dev/null @@ -1,217 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "context" - "fmt" - "net/http" - "strings" -) - -// contextKeys are used to identify the type of value in the context. -// Since these are string, it is possible to get a short description of the -// context key for logging and debugging using key.String(). - -type contextKey string - -func (c contextKey) String() string { - return "auth " + string(c) -} - -var ( - // ContextAccessToken takes a string oauth2 access token as authentication for the request. - ContextAccessToken = contextKey("accesstoken") - - // ContextServerIndex uses a server configuration from the index. - ContextServerIndex = contextKey("serverIndex") - - // ContextOperationServerIndices uses a server configuration from the index mapping. - ContextOperationServerIndices = contextKey("serverOperationIndices") - - // ContextServerVariables overrides a server configuration variables. - ContextServerVariables = contextKey("serverVariables") - - // ContextOperationServerVariables overrides a server configuration variables using operation specific values. - ContextOperationServerVariables = contextKey("serverOperationVariables") -) - -// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth -type BasicAuth struct { - UserName string `json:"userName,omitempty"` - Password string `json:"password,omitempty"` -} - -// APIKey provides API key based authentication to a request passed via context using ContextAPIKey -type APIKey struct { - Key string - Prefix string -} - -// ServerVariable stores the information about a server variable -type ServerVariable struct { - Description string - DefaultValue string - EnumValues []string -} - -// ServerConfiguration stores the information about a server -type ServerConfiguration struct { - URL string - Description string - Variables map[string]ServerVariable -} - -// ServerConfigurations stores multiple ServerConfiguration items -type ServerConfigurations []ServerConfiguration - -// Configuration stores the configuration of the API client -type Configuration struct { - Host string `json:"host,omitempty"` - Scheme string `json:"scheme,omitempty"` - DefaultHeader map[string]string `json:"defaultHeader,omitempty"` - UserAgent string `json:"userAgent,omitempty"` - Debug bool `json:"debug,omitempty"` - Servers ServerConfigurations - OperationServers map[string]ServerConfigurations - HTTPClient *http.Client -} - -// NewConfiguration returns a new Configuration object -func NewConfiguration() *Configuration { - cfg := &Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.0.0/go", - Debug: false, - Servers: ServerConfigurations{ - { - URL: "https://api.up.com.au/api/v1", - Description: "No description provided", - }, - }, - OperationServers: map[string]ServerConfigurations{}, - } - return cfg -} - -// AddDefaultHeader adds a new HTTP header to the default header in the request -func (c *Configuration) AddDefaultHeader(key string, value string) { - c.DefaultHeader[key] = value -} - -// URL formats template on a index using given variables -func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { - if index < 0 || len(sc) <= index { - return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) - } - server := sc[index] - url := server.URL - - // go through variables and replace placeholders - for name, variable := range server.Variables { - if value, ok := variables[name]; ok { - found := bool(len(variable.EnumValues) == 0) - for _, enumValue := range variable.EnumValues { - if value == enumValue { - found = true - } - } - if !found { - return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) - } - url = strings.Replace(url, "{"+name+"}", value, -1) - } else { - url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) - } - } - return url, nil -} - -// ServerURL returns URL based on server settings -func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { - return c.Servers.URL(index, variables) -} - -func getServerIndex(ctx context.Context) (int, error) { - si := ctx.Value(ContextServerIndex) - if si != nil { - if index, ok := si.(int); ok { - return index, nil - } - return 0, reportError("Invalid type %T should be int", si) - } - return 0, nil -} - -func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { - osi := ctx.Value(ContextOperationServerIndices) - if osi != nil { - if operationIndices, ok := osi.(map[string]int); !ok { - return 0, reportError("Invalid type %T should be map[string]int", osi) - } else { - index, ok := operationIndices[endpoint] - if ok { - return index, nil - } - } - } - return getServerIndex(ctx) -} - -func getServerVariables(ctx context.Context) (map[string]string, error) { - sv := ctx.Value(ContextServerVariables) - if sv != nil { - if variables, ok := sv.(map[string]string); ok { - return variables, nil - } - return nil, reportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) - } - return nil, nil -} - -func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { - osv := ctx.Value(ContextOperationServerVariables) - if osv != nil { - if operationVariables, ok := osv.(map[string]map[string]string); !ok { - return nil, reportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) - } else { - variables, ok := operationVariables[endpoint] - if ok { - return variables, nil - } - } - } - return getServerVariables(ctx) -} - -// ServerURLWithContext returns a new server URL given an endpoint -func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { - sc, ok := c.OperationServers[endpoint] - if !ok { - sc = c.Servers - } - - if ctx == nil { - return sc.URL(0, nil) - } - - index, err := getServerOperationIndex(ctx, endpoint) - if err != nil { - return "", err - } - - variables, err := getServerOperationVariables(ctx, endpoint) - if err != nil { - return "", err - } - - return sc.URL(index, variables) -} diff --git a/expense-manager/openapi/docs/AccountResource.md b/expense-manager/openapi/docs/AccountResource.md deleted file mode 100644 index c0ea899..0000000 --- a/expense-manager/openapi/docs/AccountResource.md +++ /dev/null @@ -1,140 +0,0 @@ -# AccountResource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | The type of this resource: `accounts` | -**Id** | **string** | The unique identifier for this account. | -**Attributes** | [**AccountResourceAttributes**](AccountResourceAttributes.md) | | -**Relationships** | [**AccountResourceRelationships**](AccountResourceRelationships.md) | | -**Links** | Pointer to [**AccountResourceLinks**](AccountResourceLinks.md) | | [optional] - -## Methods - -### NewAccountResource - -`func NewAccountResource(type_ string, id string, attributes AccountResourceAttributes, relationships AccountResourceRelationships, ) *AccountResource` - -NewAccountResource instantiates a new AccountResource object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAccountResourceWithDefaults - -`func NewAccountResourceWithDefaults() *AccountResource` - -NewAccountResourceWithDefaults instantiates a new AccountResource object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *AccountResource) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *AccountResource) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *AccountResource) SetType(v string)` - -SetType sets Type field to given value. - - -### GetId - -`func (o *AccountResource) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *AccountResource) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *AccountResource) SetId(v string)` - -SetId sets Id field to given value. - - -### GetAttributes - -`func (o *AccountResource) GetAttributes() AccountResourceAttributes` - -GetAttributes returns the Attributes field if non-nil, zero value otherwise. - -### GetAttributesOk - -`func (o *AccountResource) GetAttributesOk() (*AccountResourceAttributes, bool)` - -GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttributes - -`func (o *AccountResource) SetAttributes(v AccountResourceAttributes)` - -SetAttributes sets Attributes field to given value. - - -### GetRelationships - -`func (o *AccountResource) GetRelationships() AccountResourceRelationships` - -GetRelationships returns the Relationships field if non-nil, zero value otherwise. - -### GetRelationshipsOk - -`func (o *AccountResource) GetRelationshipsOk() (*AccountResourceRelationships, bool)` - -GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRelationships - -`func (o *AccountResource) SetRelationships(v AccountResourceRelationships)` - -SetRelationships sets Relationships field to given value. - - -### GetLinks - -`func (o *AccountResource) GetLinks() AccountResourceLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *AccountResource) GetLinksOk() (*AccountResourceLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *AccountResource) SetLinks(v AccountResourceLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *AccountResource) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/AccountResourceAttributes.md b/expense-manager/openapi/docs/AccountResourceAttributes.md deleted file mode 100644 index 4f895bf..0000000 --- a/expense-manager/openapi/docs/AccountResourceAttributes.md +++ /dev/null @@ -1,135 +0,0 @@ -# AccountResourceAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**DisplayName** | **string** | The name associated with the account in the Up application. | -**AccountType** | [**AccountTypeEnum**](AccountTypeEnum.md) | The bank account type of this account. | -**OwnershipType** | [**OwnershipTypeEnum**](OwnershipTypeEnum.md) | The ownership structure for this account. | -**Balance** | [**MoneyObject**](MoneyObject.md) | The available balance of the account, taking into account any amounts that are currently on hold. | -**CreatedAt** | **time.Time** | The date-time at which this account was first opened. | - -## Methods - -### NewAccountResourceAttributes - -`func NewAccountResourceAttributes(displayName string, accountType AccountTypeEnum, ownershipType OwnershipTypeEnum, balance MoneyObject, createdAt time.Time, ) *AccountResourceAttributes` - -NewAccountResourceAttributes instantiates a new AccountResourceAttributes object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAccountResourceAttributesWithDefaults - -`func NewAccountResourceAttributesWithDefaults() *AccountResourceAttributes` - -NewAccountResourceAttributesWithDefaults instantiates a new AccountResourceAttributes object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetDisplayName - -`func (o *AccountResourceAttributes) GetDisplayName() string` - -GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. - -### GetDisplayNameOk - -`func (o *AccountResourceAttributes) GetDisplayNameOk() (*string, bool)` - -GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayName - -`func (o *AccountResourceAttributes) SetDisplayName(v string)` - -SetDisplayName sets DisplayName field to given value. - - -### GetAccountType - -`func (o *AccountResourceAttributes) GetAccountType() AccountTypeEnum` - -GetAccountType returns the AccountType field if non-nil, zero value otherwise. - -### GetAccountTypeOk - -`func (o *AccountResourceAttributes) GetAccountTypeOk() (*AccountTypeEnum, bool)` - -GetAccountTypeOk returns a tuple with the AccountType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccountType - -`func (o *AccountResourceAttributes) SetAccountType(v AccountTypeEnum)` - -SetAccountType sets AccountType field to given value. - - -### GetOwnershipType - -`func (o *AccountResourceAttributes) GetOwnershipType() OwnershipTypeEnum` - -GetOwnershipType returns the OwnershipType field if non-nil, zero value otherwise. - -### GetOwnershipTypeOk - -`func (o *AccountResourceAttributes) GetOwnershipTypeOk() (*OwnershipTypeEnum, bool)` - -GetOwnershipTypeOk returns a tuple with the OwnershipType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOwnershipType - -`func (o *AccountResourceAttributes) SetOwnershipType(v OwnershipTypeEnum)` - -SetOwnershipType sets OwnershipType field to given value. - - -### GetBalance - -`func (o *AccountResourceAttributes) GetBalance() MoneyObject` - -GetBalance returns the Balance field if non-nil, zero value otherwise. - -### GetBalanceOk - -`func (o *AccountResourceAttributes) GetBalanceOk() (*MoneyObject, bool)` - -GetBalanceOk returns a tuple with the Balance field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBalance - -`func (o *AccountResourceAttributes) SetBalance(v MoneyObject)` - -SetBalance sets Balance field to given value. - - -### GetCreatedAt - -`func (o *AccountResourceAttributes) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *AccountResourceAttributes) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *AccountResourceAttributes) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/AccountResourceLinks.md b/expense-manager/openapi/docs/AccountResourceLinks.md deleted file mode 100644 index 098b249..0000000 --- a/expense-manager/openapi/docs/AccountResourceLinks.md +++ /dev/null @@ -1,51 +0,0 @@ -# AccountResourceLinks - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Self** | **string** | The canonical link to this resource within the API. | - -## Methods - -### NewAccountResourceLinks - -`func NewAccountResourceLinks(self string, ) *AccountResourceLinks` - -NewAccountResourceLinks instantiates a new AccountResourceLinks object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAccountResourceLinksWithDefaults - -`func NewAccountResourceLinksWithDefaults() *AccountResourceLinks` - -NewAccountResourceLinksWithDefaults instantiates a new AccountResourceLinks object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetSelf - -`func (o *AccountResourceLinks) GetSelf() string` - -GetSelf returns the Self field if non-nil, zero value otherwise. - -### GetSelfOk - -`func (o *AccountResourceLinks) GetSelfOk() (*string, bool)` - -GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSelf - -`func (o *AccountResourceLinks) SetSelf(v string)` - -SetSelf sets Self field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/AccountResourceRelationships.md b/expense-manager/openapi/docs/AccountResourceRelationships.md deleted file mode 100644 index 928ba95..0000000 --- a/expense-manager/openapi/docs/AccountResourceRelationships.md +++ /dev/null @@ -1,51 +0,0 @@ -# AccountResourceRelationships - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Transactions** | [**AccountResourceRelationshipsTransactions**](AccountResourceRelationshipsTransactions.md) | | - -## Methods - -### NewAccountResourceRelationships - -`func NewAccountResourceRelationships(transactions AccountResourceRelationshipsTransactions, ) *AccountResourceRelationships` - -NewAccountResourceRelationships instantiates a new AccountResourceRelationships object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAccountResourceRelationshipsWithDefaults - -`func NewAccountResourceRelationshipsWithDefaults() *AccountResourceRelationships` - -NewAccountResourceRelationshipsWithDefaults instantiates a new AccountResourceRelationships object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetTransactions - -`func (o *AccountResourceRelationships) GetTransactions() AccountResourceRelationshipsTransactions` - -GetTransactions returns the Transactions field if non-nil, zero value otherwise. - -### GetTransactionsOk - -`func (o *AccountResourceRelationships) GetTransactionsOk() (*AccountResourceRelationshipsTransactions, bool)` - -GetTransactionsOk returns a tuple with the Transactions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTransactions - -`func (o *AccountResourceRelationships) SetTransactions(v AccountResourceRelationshipsTransactions)` - -SetTransactions sets Transactions field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/AccountResourceRelationshipsTransactions.md b/expense-manager/openapi/docs/AccountResourceRelationshipsTransactions.md deleted file mode 100644 index 1284ccc..0000000 --- a/expense-manager/openapi/docs/AccountResourceRelationshipsTransactions.md +++ /dev/null @@ -1,56 +0,0 @@ -# AccountResourceRelationshipsTransactions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Links** | Pointer to [**AccountResourceRelationshipsTransactionsLinks**](AccountResourceRelationshipsTransactionsLinks.md) | | [optional] - -## Methods - -### NewAccountResourceRelationshipsTransactions - -`func NewAccountResourceRelationshipsTransactions() *AccountResourceRelationshipsTransactions` - -NewAccountResourceRelationshipsTransactions instantiates a new AccountResourceRelationshipsTransactions object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAccountResourceRelationshipsTransactionsWithDefaults - -`func NewAccountResourceRelationshipsTransactionsWithDefaults() *AccountResourceRelationshipsTransactions` - -NewAccountResourceRelationshipsTransactionsWithDefaults instantiates a new AccountResourceRelationshipsTransactions object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetLinks - -`func (o *AccountResourceRelationshipsTransactions) GetLinks() AccountResourceRelationshipsTransactionsLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *AccountResourceRelationshipsTransactions) GetLinksOk() (*AccountResourceRelationshipsTransactionsLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *AccountResourceRelationshipsTransactions) SetLinks(v AccountResourceRelationshipsTransactionsLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *AccountResourceRelationshipsTransactions) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/AccountResourceRelationshipsTransactionsLinks.md b/expense-manager/openapi/docs/AccountResourceRelationshipsTransactionsLinks.md deleted file mode 100644 index 5e4b384..0000000 --- a/expense-manager/openapi/docs/AccountResourceRelationshipsTransactionsLinks.md +++ /dev/null @@ -1,51 +0,0 @@ -# AccountResourceRelationshipsTransactionsLinks - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Related** | **string** | The link to retrieve the related resource(s) in this relationship. | - -## Methods - -### NewAccountResourceRelationshipsTransactionsLinks - -`func NewAccountResourceRelationshipsTransactionsLinks(related string, ) *AccountResourceRelationshipsTransactionsLinks` - -NewAccountResourceRelationshipsTransactionsLinks instantiates a new AccountResourceRelationshipsTransactionsLinks object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewAccountResourceRelationshipsTransactionsLinksWithDefaults - -`func NewAccountResourceRelationshipsTransactionsLinksWithDefaults() *AccountResourceRelationshipsTransactionsLinks` - -NewAccountResourceRelationshipsTransactionsLinksWithDefaults instantiates a new AccountResourceRelationshipsTransactionsLinks object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetRelated - -`func (o *AccountResourceRelationshipsTransactionsLinks) GetRelated() string` - -GetRelated returns the Related field if non-nil, zero value otherwise. - -### GetRelatedOk - -`func (o *AccountResourceRelationshipsTransactionsLinks) GetRelatedOk() (*string, bool)` - -GetRelatedOk returns a tuple with the Related field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRelated - -`func (o *AccountResourceRelationshipsTransactionsLinks) SetRelated(v string)` - -SetRelated sets Related field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/AccountTypeEnum.md b/expense-manager/openapi/docs/AccountTypeEnum.md deleted file mode 100644 index 62e9094..0000000 --- a/expense-manager/openapi/docs/AccountTypeEnum.md +++ /dev/null @@ -1,13 +0,0 @@ -# AccountTypeEnum - -## Enum - - -* `SAVER` (value: `"SAVER"`) - -* `TRANSACTIONAL` (value: `"TRANSACTIONAL"`) - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/AccountsAPI.md b/expense-manager/openapi/docs/AccountsAPI.md deleted file mode 100644 index 4aaff2a..0000000 --- a/expense-manager/openapi/docs/AccountsAPI.md +++ /dev/null @@ -1,150 +0,0 @@ -# \AccountsAPI - -All URIs are relative to *https://api.up.com.au/api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**AccountsGet**](AccountsAPI.md#AccountsGet) | **Get** /accounts | List accounts -[**AccountsIdGet**](AccountsAPI.md#AccountsIdGet) | **Get** /accounts/{id} | Retrieve account - - - -## AccountsGet - -> ListAccountsResponse AccountsGet(ctx).PageSize(pageSize).FilterAccountType(filterAccountType).FilterOwnershipType(filterOwnershipType).Execute() - -List accounts - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/ESteanes/expense-manager" -) - -func main() { - pageSize := int32(30) // int32 | The number of records to return in each page. (optional) - filterAccountType := openapiclient.AccountTypeEnum("SAVER") // AccountTypeEnum | The type of account for which to return records. This can be used to filter Savers from spending accounts. (optional) - filterOwnershipType := openapiclient.OwnershipTypeEnum("INDIVIDUAL") // OwnershipTypeEnum | The account ownership structure for which to return records. This can be used to filter 2Up accounts from Up accounts. (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AccountsAPI.AccountsGet(context.Background()).PageSize(pageSize).FilterAccountType(filterAccountType).FilterOwnershipType(filterOwnershipType).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.AccountsGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AccountsGet`: ListAccountsResponse - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.AccountsGet`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiAccountsGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pageSize** | **int32** | The number of records to return in each page. | - **filterAccountType** | [**AccountTypeEnum**](AccountTypeEnum.md) | The type of account for which to return records. This can be used to filter Savers from spending accounts. | - **filterOwnershipType** | [**OwnershipTypeEnum**](OwnershipTypeEnum.md) | The account ownership structure for which to return records. This can be used to filter 2Up accounts from Up accounts. | - -### Return type - -[**ListAccountsResponse**](ListAccountsResponse.md) - -### Authorization - -[bearer_auth](../README.md#bearer_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## AccountsIdGet - -> GetAccountResponse AccountsIdGet(ctx, id).Execute() - -Retrieve account - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/ESteanes/expense-manager" -) - -func main() { - id := "92b41408-6b7b-4fca-982b-3fb1fdd77220" // string | The unique identifier for the account. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AccountsAPI.AccountsIdGet(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.AccountsIdGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AccountsIdGet`: GetAccountResponse - fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.AccountsIdGet`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | The unique identifier for the account. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiAccountsIdGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**GetAccountResponse**](GetAccountResponse.md) - -### Authorization - -[bearer_auth](../README.md#bearer_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/expense-manager/openapi/docs/CashbackObject.md b/expense-manager/openapi/docs/CashbackObject.md deleted file mode 100644 index bce9cac..0000000 --- a/expense-manager/openapi/docs/CashbackObject.md +++ /dev/null @@ -1,72 +0,0 @@ -# CashbackObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Description** | **string** | A brief description of why this cashback was paid. | -**Amount** | [**MoneyObject**](MoneyObject.md) | The total amount of cashback paid, represented as a positive value. | - -## Methods - -### NewCashbackObject - -`func NewCashbackObject(description string, amount MoneyObject, ) *CashbackObject` - -NewCashbackObject instantiates a new CashbackObject object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCashbackObjectWithDefaults - -`func NewCashbackObjectWithDefaults() *CashbackObject` - -NewCashbackObjectWithDefaults instantiates a new CashbackObject object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetDescription - -`func (o *CashbackObject) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *CashbackObject) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *CashbackObject) SetDescription(v string)` - -SetDescription sets Description field to given value. - - -### GetAmount - -`func (o *CashbackObject) GetAmount() MoneyObject` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *CashbackObject) GetAmountOk() (*MoneyObject, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *CashbackObject) SetAmount(v MoneyObject)` - -SetAmount sets Amount field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/CategoriesAPI.md b/expense-manager/openapi/docs/CategoriesAPI.md deleted file mode 100644 index 8d2274f..0000000 --- a/expense-manager/openapi/docs/CategoriesAPI.md +++ /dev/null @@ -1,217 +0,0 @@ -# \CategoriesAPI - -All URIs are relative to *https://api.up.com.au/api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CategoriesGet**](CategoriesAPI.md#CategoriesGet) | **Get** /categories | List categories -[**CategoriesIdGet**](CategoriesAPI.md#CategoriesIdGet) | **Get** /categories/{id} | Retrieve category -[**TransactionsTransactionIdRelationshipsCategoryPatch**](CategoriesAPI.md#TransactionsTransactionIdRelationshipsCategoryPatch) | **Patch** /transactions/{transactionId}/relationships/category | Categorize transaction - - - -## CategoriesGet - -> ListCategoriesResponse CategoriesGet(ctx).FilterParent(filterParent).Execute() - -List categories - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/ESteanes/expense-manager" -) - -func main() { - filterParent := "good-life" // string | The unique identifier of a parent category for which to return only its children. Providing an invalid category identifier results in a `404` response. (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CategoriesAPI.CategoriesGet(context.Background()).FilterParent(filterParent).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CategoriesAPI.CategoriesGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CategoriesGet`: ListCategoriesResponse - fmt.Fprintf(os.Stdout, "Response from `CategoriesAPI.CategoriesGet`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCategoriesGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **filterParent** | **string** | The unique identifier of a parent category for which to return only its children. Providing an invalid category identifier results in a `404` response. | - -### Return type - -[**ListCategoriesResponse**](ListCategoriesResponse.md) - -### Authorization - -[bearer_auth](../README.md#bearer_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CategoriesIdGet - -> GetCategoryResponse CategoriesIdGet(ctx, id).Execute() - -Retrieve category - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/ESteanes/expense-manager" -) - -func main() { - id := "restaurants-and-cafes" // string | The unique identifier for the category. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CategoriesAPI.CategoriesIdGet(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CategoriesAPI.CategoriesIdGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CategoriesIdGet`: GetCategoryResponse - fmt.Fprintf(os.Stdout, "Response from `CategoriesAPI.CategoriesIdGet`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | The unique identifier for the category. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiCategoriesIdGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**GetCategoryResponse**](GetCategoryResponse.md) - -### Authorization - -[bearer_auth](../README.md#bearer_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## TransactionsTransactionIdRelationshipsCategoryPatch - -> TransactionsTransactionIdRelationshipsCategoryPatch(ctx, transactionId).UpdateTransactionCategoryRequest(updateTransactionCategoryRequest).Execute() - -Categorize transaction - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/ESteanes/expense-manager" -) - -func main() { - transactionId := "a572c7c3-b637-433c-a4ce-c0be5dcb0a5a" // string | The unique identifier for the transaction. - updateTransactionCategoryRequest := *openapiclient.NewUpdateTransactionCategoryRequest("TODO") // UpdateTransactionCategoryRequest | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CategoriesAPI.TransactionsTransactionIdRelationshipsCategoryPatch(context.Background(), transactionId).UpdateTransactionCategoryRequest(updateTransactionCategoryRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CategoriesAPI.TransactionsTransactionIdRelationshipsCategoryPatch``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**transactionId** | **string** | The unique identifier for the transaction. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiTransactionsTransactionIdRelationshipsCategoryPatchRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **updateTransactionCategoryRequest** | [**UpdateTransactionCategoryRequest**](UpdateTransactionCategoryRequest.md) | | - -### Return type - - (empty response body) - -### Authorization - -[bearer_auth](../README.md#bearer_auth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/expense-manager/openapi/docs/CategoryInputResourceIdentifier.md b/expense-manager/openapi/docs/CategoryInputResourceIdentifier.md deleted file mode 100644 index b1a4991..0000000 --- a/expense-manager/openapi/docs/CategoryInputResourceIdentifier.md +++ /dev/null @@ -1,72 +0,0 @@ -# CategoryInputResourceIdentifier - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | The type of this resource: `categories` | -**Id** | **string** | The unique identifier of the category, as returned by the `/categories` endpoint. | - -## Methods - -### NewCategoryInputResourceIdentifier - -`func NewCategoryInputResourceIdentifier(type_ string, id string, ) *CategoryInputResourceIdentifier` - -NewCategoryInputResourceIdentifier instantiates a new CategoryInputResourceIdentifier object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCategoryInputResourceIdentifierWithDefaults - -`func NewCategoryInputResourceIdentifierWithDefaults() *CategoryInputResourceIdentifier` - -NewCategoryInputResourceIdentifierWithDefaults instantiates a new CategoryInputResourceIdentifier object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *CategoryInputResourceIdentifier) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *CategoryInputResourceIdentifier) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *CategoryInputResourceIdentifier) SetType(v string)` - -SetType sets Type field to given value. - - -### GetId - -`func (o *CategoryInputResourceIdentifier) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *CategoryInputResourceIdentifier) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *CategoryInputResourceIdentifier) SetId(v string)` - -SetId sets Id field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/CategoryResource.md b/expense-manager/openapi/docs/CategoryResource.md deleted file mode 100644 index b735d76..0000000 --- a/expense-manager/openapi/docs/CategoryResource.md +++ /dev/null @@ -1,140 +0,0 @@ -# CategoryResource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | The type of this resource: `categories` | -**Id** | **string** | The unique identifier for this category. This is a human-readable but URL-safe value. | -**Attributes** | [**CategoryResourceAttributes**](CategoryResourceAttributes.md) | | -**Relationships** | [**CategoryResourceRelationships**](CategoryResourceRelationships.md) | | -**Links** | Pointer to [**AccountResourceLinks**](AccountResourceLinks.md) | | [optional] - -## Methods - -### NewCategoryResource - -`func NewCategoryResource(type_ string, id string, attributes CategoryResourceAttributes, relationships CategoryResourceRelationships, ) *CategoryResource` - -NewCategoryResource instantiates a new CategoryResource object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCategoryResourceWithDefaults - -`func NewCategoryResourceWithDefaults() *CategoryResource` - -NewCategoryResourceWithDefaults instantiates a new CategoryResource object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *CategoryResource) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *CategoryResource) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *CategoryResource) SetType(v string)` - -SetType sets Type field to given value. - - -### GetId - -`func (o *CategoryResource) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *CategoryResource) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *CategoryResource) SetId(v string)` - -SetId sets Id field to given value. - - -### GetAttributes - -`func (o *CategoryResource) GetAttributes() CategoryResourceAttributes` - -GetAttributes returns the Attributes field if non-nil, zero value otherwise. - -### GetAttributesOk - -`func (o *CategoryResource) GetAttributesOk() (*CategoryResourceAttributes, bool)` - -GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttributes - -`func (o *CategoryResource) SetAttributes(v CategoryResourceAttributes)` - -SetAttributes sets Attributes field to given value. - - -### GetRelationships - -`func (o *CategoryResource) GetRelationships() CategoryResourceRelationships` - -GetRelationships returns the Relationships field if non-nil, zero value otherwise. - -### GetRelationshipsOk - -`func (o *CategoryResource) GetRelationshipsOk() (*CategoryResourceRelationships, bool)` - -GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRelationships - -`func (o *CategoryResource) SetRelationships(v CategoryResourceRelationships)` - -SetRelationships sets Relationships field to given value. - - -### GetLinks - -`func (o *CategoryResource) GetLinks() AccountResourceLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *CategoryResource) GetLinksOk() (*AccountResourceLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *CategoryResource) SetLinks(v AccountResourceLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *CategoryResource) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/CategoryResourceAttributes.md b/expense-manager/openapi/docs/CategoryResourceAttributes.md deleted file mode 100644 index 3fc7467..0000000 --- a/expense-manager/openapi/docs/CategoryResourceAttributes.md +++ /dev/null @@ -1,51 +0,0 @@ -# CategoryResourceAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | The name of this category as seen in the Up application. | - -## Methods - -### NewCategoryResourceAttributes - -`func NewCategoryResourceAttributes(name string, ) *CategoryResourceAttributes` - -NewCategoryResourceAttributes instantiates a new CategoryResourceAttributes object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCategoryResourceAttributesWithDefaults - -`func NewCategoryResourceAttributesWithDefaults() *CategoryResourceAttributes` - -NewCategoryResourceAttributesWithDefaults instantiates a new CategoryResourceAttributes object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetName - -`func (o *CategoryResourceAttributes) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *CategoryResourceAttributes) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *CategoryResourceAttributes) SetName(v string)` - -SetName sets Name field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/CategoryResourceRelationships.md b/expense-manager/openapi/docs/CategoryResourceRelationships.md deleted file mode 100644 index 9c691a9..0000000 --- a/expense-manager/openapi/docs/CategoryResourceRelationships.md +++ /dev/null @@ -1,72 +0,0 @@ -# CategoryResourceRelationships - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Parent** | [**CategoryResourceRelationshipsParent**](CategoryResourceRelationshipsParent.md) | | -**Children** | [**CategoryResourceRelationshipsChildren**](CategoryResourceRelationshipsChildren.md) | | - -## Methods - -### NewCategoryResourceRelationships - -`func NewCategoryResourceRelationships(parent CategoryResourceRelationshipsParent, children CategoryResourceRelationshipsChildren, ) *CategoryResourceRelationships` - -NewCategoryResourceRelationships instantiates a new CategoryResourceRelationships object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCategoryResourceRelationshipsWithDefaults - -`func NewCategoryResourceRelationshipsWithDefaults() *CategoryResourceRelationships` - -NewCategoryResourceRelationshipsWithDefaults instantiates a new CategoryResourceRelationships object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetParent - -`func (o *CategoryResourceRelationships) GetParent() CategoryResourceRelationshipsParent` - -GetParent returns the Parent field if non-nil, zero value otherwise. - -### GetParentOk - -`func (o *CategoryResourceRelationships) GetParentOk() (*CategoryResourceRelationshipsParent, bool)` - -GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetParent - -`func (o *CategoryResourceRelationships) SetParent(v CategoryResourceRelationshipsParent)` - -SetParent sets Parent field to given value. - - -### GetChildren - -`func (o *CategoryResourceRelationships) GetChildren() CategoryResourceRelationshipsChildren` - -GetChildren returns the Children field if non-nil, zero value otherwise. - -### GetChildrenOk - -`func (o *CategoryResourceRelationships) GetChildrenOk() (*CategoryResourceRelationshipsChildren, bool)` - -GetChildrenOk returns a tuple with the Children field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetChildren - -`func (o *CategoryResourceRelationships) SetChildren(v CategoryResourceRelationshipsChildren)` - -SetChildren sets Children field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/CategoryResourceRelationshipsChildren.md b/expense-manager/openapi/docs/CategoryResourceRelationshipsChildren.md deleted file mode 100644 index 80b61f7..0000000 --- a/expense-manager/openapi/docs/CategoryResourceRelationshipsChildren.md +++ /dev/null @@ -1,77 +0,0 @@ -# CategoryResourceRelationshipsChildren - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**[]CategoryResourceRelationshipsChildrenDataInner**](CategoryResourceRelationshipsChildrenDataInner.md) | | -**Links** | Pointer to [**AccountResourceRelationshipsTransactionsLinks**](AccountResourceRelationshipsTransactionsLinks.md) | | [optional] - -## Methods - -### NewCategoryResourceRelationshipsChildren - -`func NewCategoryResourceRelationshipsChildren(data []CategoryResourceRelationshipsChildrenDataInner, ) *CategoryResourceRelationshipsChildren` - -NewCategoryResourceRelationshipsChildren instantiates a new CategoryResourceRelationshipsChildren object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCategoryResourceRelationshipsChildrenWithDefaults - -`func NewCategoryResourceRelationshipsChildrenWithDefaults() *CategoryResourceRelationshipsChildren` - -NewCategoryResourceRelationshipsChildrenWithDefaults instantiates a new CategoryResourceRelationshipsChildren object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *CategoryResourceRelationshipsChildren) GetData() []CategoryResourceRelationshipsChildrenDataInner` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *CategoryResourceRelationshipsChildren) GetDataOk() (*[]CategoryResourceRelationshipsChildrenDataInner, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *CategoryResourceRelationshipsChildren) SetData(v []CategoryResourceRelationshipsChildrenDataInner)` - -SetData sets Data field to given value. - - -### GetLinks - -`func (o *CategoryResourceRelationshipsChildren) GetLinks() AccountResourceRelationshipsTransactionsLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *CategoryResourceRelationshipsChildren) GetLinksOk() (*AccountResourceRelationshipsTransactionsLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *CategoryResourceRelationshipsChildren) SetLinks(v AccountResourceRelationshipsTransactionsLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *CategoryResourceRelationshipsChildren) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/CategoryResourceRelationshipsChildrenDataInner.md b/expense-manager/openapi/docs/CategoryResourceRelationshipsChildrenDataInner.md deleted file mode 100644 index 8792a43..0000000 --- a/expense-manager/openapi/docs/CategoryResourceRelationshipsChildrenDataInner.md +++ /dev/null @@ -1,72 +0,0 @@ -# CategoryResourceRelationshipsChildrenDataInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | The type of this resource: `categories` | -**Id** | **string** | The unique identifier of the resource within its type. | - -## Methods - -### NewCategoryResourceRelationshipsChildrenDataInner - -`func NewCategoryResourceRelationshipsChildrenDataInner(type_ string, id string, ) *CategoryResourceRelationshipsChildrenDataInner` - -NewCategoryResourceRelationshipsChildrenDataInner instantiates a new CategoryResourceRelationshipsChildrenDataInner object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCategoryResourceRelationshipsChildrenDataInnerWithDefaults - -`func NewCategoryResourceRelationshipsChildrenDataInnerWithDefaults() *CategoryResourceRelationshipsChildrenDataInner` - -NewCategoryResourceRelationshipsChildrenDataInnerWithDefaults instantiates a new CategoryResourceRelationshipsChildrenDataInner object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *CategoryResourceRelationshipsChildrenDataInner) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *CategoryResourceRelationshipsChildrenDataInner) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *CategoryResourceRelationshipsChildrenDataInner) SetType(v string)` - -SetType sets Type field to given value. - - -### GetId - -`func (o *CategoryResourceRelationshipsChildrenDataInner) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *CategoryResourceRelationshipsChildrenDataInner) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *CategoryResourceRelationshipsChildrenDataInner) SetId(v string)` - -SetId sets Id field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/CategoryResourceRelationshipsParent.md b/expense-manager/openapi/docs/CategoryResourceRelationshipsParent.md deleted file mode 100644 index d2e6469..0000000 --- a/expense-manager/openapi/docs/CategoryResourceRelationshipsParent.md +++ /dev/null @@ -1,87 +0,0 @@ -# CategoryResourceRelationshipsParent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**NullableCategoryResourceRelationshipsParentData**](CategoryResourceRelationshipsParentData.md) | | -**Links** | Pointer to [**AccountResourceRelationshipsTransactionsLinks**](AccountResourceRelationshipsTransactionsLinks.md) | | [optional] - -## Methods - -### NewCategoryResourceRelationshipsParent - -`func NewCategoryResourceRelationshipsParent(data NullableCategoryResourceRelationshipsParentData, ) *CategoryResourceRelationshipsParent` - -NewCategoryResourceRelationshipsParent instantiates a new CategoryResourceRelationshipsParent object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCategoryResourceRelationshipsParentWithDefaults - -`func NewCategoryResourceRelationshipsParentWithDefaults() *CategoryResourceRelationshipsParent` - -NewCategoryResourceRelationshipsParentWithDefaults instantiates a new CategoryResourceRelationshipsParent object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *CategoryResourceRelationshipsParent) GetData() CategoryResourceRelationshipsParentData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *CategoryResourceRelationshipsParent) GetDataOk() (*CategoryResourceRelationshipsParentData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *CategoryResourceRelationshipsParent) SetData(v CategoryResourceRelationshipsParentData)` - -SetData sets Data field to given value. - - -### SetDataNil - -`func (o *CategoryResourceRelationshipsParent) SetDataNil(b bool)` - - SetDataNil sets the value for Data to be an explicit nil - -### UnsetData -`func (o *CategoryResourceRelationshipsParent) UnsetData()` - -UnsetData ensures that no value is present for Data, not even an explicit nil -### GetLinks - -`func (o *CategoryResourceRelationshipsParent) GetLinks() AccountResourceRelationshipsTransactionsLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *CategoryResourceRelationshipsParent) GetLinksOk() (*AccountResourceRelationshipsTransactionsLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *CategoryResourceRelationshipsParent) SetLinks(v AccountResourceRelationshipsTransactionsLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *CategoryResourceRelationshipsParent) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/CategoryResourceRelationshipsParentData.md b/expense-manager/openapi/docs/CategoryResourceRelationshipsParentData.md deleted file mode 100644 index c987808..0000000 --- a/expense-manager/openapi/docs/CategoryResourceRelationshipsParentData.md +++ /dev/null @@ -1,72 +0,0 @@ -# CategoryResourceRelationshipsParentData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | The type of this resource: `categories` | -**Id** | **string** | The unique identifier of the resource within its type. | - -## Methods - -### NewCategoryResourceRelationshipsParentData - -`func NewCategoryResourceRelationshipsParentData(type_ string, id string, ) *CategoryResourceRelationshipsParentData` - -NewCategoryResourceRelationshipsParentData instantiates a new CategoryResourceRelationshipsParentData object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCategoryResourceRelationshipsParentDataWithDefaults - -`func NewCategoryResourceRelationshipsParentDataWithDefaults() *CategoryResourceRelationshipsParentData` - -NewCategoryResourceRelationshipsParentDataWithDefaults instantiates a new CategoryResourceRelationshipsParentData object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *CategoryResourceRelationshipsParentData) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *CategoryResourceRelationshipsParentData) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *CategoryResourceRelationshipsParentData) SetType(v string)` - -SetType sets Type field to given value. - - -### GetId - -`func (o *CategoryResourceRelationshipsParentData) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *CategoryResourceRelationshipsParentData) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *CategoryResourceRelationshipsParentData) SetId(v string)` - -SetId sets Id field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/CreateWebhookRequest.md b/expense-manager/openapi/docs/CreateWebhookRequest.md deleted file mode 100644 index 734c4bd..0000000 --- a/expense-manager/openapi/docs/CreateWebhookRequest.md +++ /dev/null @@ -1,51 +0,0 @@ -# CreateWebhookRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**WebhookInputResource**](WebhookInputResource.md) | The webhook resource to create. | - -## Methods - -### NewCreateWebhookRequest - -`func NewCreateWebhookRequest(data WebhookInputResource, ) *CreateWebhookRequest` - -NewCreateWebhookRequest instantiates a new CreateWebhookRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCreateWebhookRequestWithDefaults - -`func NewCreateWebhookRequestWithDefaults() *CreateWebhookRequest` - -NewCreateWebhookRequestWithDefaults instantiates a new CreateWebhookRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *CreateWebhookRequest) GetData() WebhookInputResource` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *CreateWebhookRequest) GetDataOk() (*WebhookInputResource, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *CreateWebhookRequest) SetData(v WebhookInputResource)` - -SetData sets Data field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/CreateWebhookResponse.md b/expense-manager/openapi/docs/CreateWebhookResponse.md deleted file mode 100644 index afacb54..0000000 --- a/expense-manager/openapi/docs/CreateWebhookResponse.md +++ /dev/null @@ -1,51 +0,0 @@ -# CreateWebhookResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**WebhookResource**](WebhookResource.md) | The webhook that was created. | - -## Methods - -### NewCreateWebhookResponse - -`func NewCreateWebhookResponse(data WebhookResource, ) *CreateWebhookResponse` - -NewCreateWebhookResponse instantiates a new CreateWebhookResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewCreateWebhookResponseWithDefaults - -`func NewCreateWebhookResponseWithDefaults() *CreateWebhookResponse` - -NewCreateWebhookResponseWithDefaults instantiates a new CreateWebhookResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *CreateWebhookResponse) GetData() WebhookResource` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *CreateWebhookResponse) GetDataOk() (*WebhookResource, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *CreateWebhookResponse) SetData(v WebhookResource)` - -SetData sets Data field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/ErrorObject.md b/expense-manager/openapi/docs/ErrorObject.md deleted file mode 100644 index d2d8b3f..0000000 --- a/expense-manager/openapi/docs/ErrorObject.md +++ /dev/null @@ -1,119 +0,0 @@ -# ErrorObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | **string** | The HTTP status code associated with this error. This can also be obtained from the response headers. The status indicates the broad type of error according to HTTP semantics. | -**Title** | **string** | A short description of this error. This should be stable across multiple occurrences of this type of error and typically expands on the reason for the status code. | -**Detail** | **string** | A detailed description of this error. This should be considered unique to individual occurrences of an error and subject to change. It is useful for debugging purposes. | -**Source** | Pointer to [**ErrorObjectSource**](ErrorObjectSource.md) | | [optional] - -## Methods - -### NewErrorObject - -`func NewErrorObject(status string, title string, detail string, ) *ErrorObject` - -NewErrorObject instantiates a new ErrorObject object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewErrorObjectWithDefaults - -`func NewErrorObjectWithDefaults() *ErrorObject` - -NewErrorObjectWithDefaults instantiates a new ErrorObject object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *ErrorObject) GetStatus() string` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *ErrorObject) GetStatusOk() (*string, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *ErrorObject) SetStatus(v string)` - -SetStatus sets Status field to given value. - - -### GetTitle - -`func (o *ErrorObject) GetTitle() string` - -GetTitle returns the Title field if non-nil, zero value otherwise. - -### GetTitleOk - -`func (o *ErrorObject) GetTitleOk() (*string, bool)` - -GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTitle - -`func (o *ErrorObject) SetTitle(v string)` - -SetTitle sets Title field to given value. - - -### GetDetail - -`func (o *ErrorObject) GetDetail() string` - -GetDetail returns the Detail field if non-nil, zero value otherwise. - -### GetDetailOk - -`func (o *ErrorObject) GetDetailOk() (*string, bool)` - -GetDetailOk returns a tuple with the Detail field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDetail - -`func (o *ErrorObject) SetDetail(v string)` - -SetDetail sets Detail field to given value. - - -### GetSource - -`func (o *ErrorObject) GetSource() ErrorObjectSource` - -GetSource returns the Source field if non-nil, zero value otherwise. - -### GetSourceOk - -`func (o *ErrorObject) GetSourceOk() (*ErrorObjectSource, bool)` - -GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSource - -`func (o *ErrorObject) SetSource(v ErrorObjectSource)` - -SetSource sets Source field to given value. - -### HasSource - -`func (o *ErrorObject) HasSource() bool` - -HasSource returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/ErrorObjectSource.md b/expense-manager/openapi/docs/ErrorObjectSource.md deleted file mode 100644 index 952ebb6..0000000 --- a/expense-manager/openapi/docs/ErrorObjectSource.md +++ /dev/null @@ -1,82 +0,0 @@ -# ErrorObjectSource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Parameter** | Pointer to **string** | If this error relates to a query parameter, the name of the parameter. | [optional] -**Pointer** | Pointer to **string** | If this error relates to an attribute in the request body, a rfc-6901 JSON pointer to the attribute. | [optional] - -## Methods - -### NewErrorObjectSource - -`func NewErrorObjectSource() *ErrorObjectSource` - -NewErrorObjectSource instantiates a new ErrorObjectSource object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewErrorObjectSourceWithDefaults - -`func NewErrorObjectSourceWithDefaults() *ErrorObjectSource` - -NewErrorObjectSourceWithDefaults instantiates a new ErrorObjectSource object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetParameter - -`func (o *ErrorObjectSource) GetParameter() string` - -GetParameter returns the Parameter field if non-nil, zero value otherwise. - -### GetParameterOk - -`func (o *ErrorObjectSource) GetParameterOk() (*string, bool)` - -GetParameterOk returns a tuple with the Parameter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetParameter - -`func (o *ErrorObjectSource) SetParameter(v string)` - -SetParameter sets Parameter field to given value. - -### HasParameter - -`func (o *ErrorObjectSource) HasParameter() bool` - -HasParameter returns a boolean if a field has been set. - -### GetPointer - -`func (o *ErrorObjectSource) GetPointer() string` - -GetPointer returns the Pointer field if non-nil, zero value otherwise. - -### GetPointerOk - -`func (o *ErrorObjectSource) GetPointerOk() (*string, bool)` - -GetPointerOk returns a tuple with the Pointer field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPointer - -`func (o *ErrorObjectSource) SetPointer(v string)` - -SetPointer sets Pointer field to given value. - -### HasPointer - -`func (o *ErrorObjectSource) HasPointer() bool` - -HasPointer returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/ErrorResponse.md b/expense-manager/openapi/docs/ErrorResponse.md deleted file mode 100644 index 502d046..0000000 --- a/expense-manager/openapi/docs/ErrorResponse.md +++ /dev/null @@ -1,51 +0,0 @@ -# ErrorResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Errors** | [**[]ErrorObject**](ErrorObject.md) | The list of errors returned in this response. | - -## Methods - -### NewErrorResponse - -`func NewErrorResponse(errors []ErrorObject, ) *ErrorResponse` - -NewErrorResponse instantiates a new ErrorResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewErrorResponseWithDefaults - -`func NewErrorResponseWithDefaults() *ErrorResponse` - -NewErrorResponseWithDefaults instantiates a new ErrorResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetErrors - -`func (o *ErrorResponse) GetErrors() []ErrorObject` - -GetErrors returns the Errors field if non-nil, zero value otherwise. - -### GetErrorsOk - -`func (o *ErrorResponse) GetErrorsOk() (*[]ErrorObject, bool)` - -GetErrorsOk returns a tuple with the Errors field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetErrors - -`func (o *ErrorResponse) SetErrors(v []ErrorObject)` - -SetErrors sets Errors field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/GetAccountResponse.md b/expense-manager/openapi/docs/GetAccountResponse.md deleted file mode 100644 index 56e42b2..0000000 --- a/expense-manager/openapi/docs/GetAccountResponse.md +++ /dev/null @@ -1,51 +0,0 @@ -# GetAccountResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**AccountResource**](AccountResource.md) | The account returned in this response. | - -## Methods - -### NewGetAccountResponse - -`func NewGetAccountResponse(data AccountResource, ) *GetAccountResponse` - -NewGetAccountResponse instantiates a new GetAccountResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetAccountResponseWithDefaults - -`func NewGetAccountResponseWithDefaults() *GetAccountResponse` - -NewGetAccountResponseWithDefaults instantiates a new GetAccountResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *GetAccountResponse) GetData() AccountResource` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *GetAccountResponse) GetDataOk() (*AccountResource, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *GetAccountResponse) SetData(v AccountResource)` - -SetData sets Data field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/GetCategoryResponse.md b/expense-manager/openapi/docs/GetCategoryResponse.md deleted file mode 100644 index aac1905..0000000 --- a/expense-manager/openapi/docs/GetCategoryResponse.md +++ /dev/null @@ -1,51 +0,0 @@ -# GetCategoryResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**CategoryResource**](CategoryResource.md) | The category returned in this response. | - -## Methods - -### NewGetCategoryResponse - -`func NewGetCategoryResponse(data CategoryResource, ) *GetCategoryResponse` - -NewGetCategoryResponse instantiates a new GetCategoryResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetCategoryResponseWithDefaults - -`func NewGetCategoryResponseWithDefaults() *GetCategoryResponse` - -NewGetCategoryResponseWithDefaults instantiates a new GetCategoryResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *GetCategoryResponse) GetData() CategoryResource` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *GetCategoryResponse) GetDataOk() (*CategoryResource, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *GetCategoryResponse) SetData(v CategoryResource)` - -SetData sets Data field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/GetTransactionResponse.md b/expense-manager/openapi/docs/GetTransactionResponse.md deleted file mode 100644 index 3c2d675..0000000 --- a/expense-manager/openapi/docs/GetTransactionResponse.md +++ /dev/null @@ -1,51 +0,0 @@ -# GetTransactionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**TransactionResource**](TransactionResource.md) | The transaction returned in this response. | - -## Methods - -### NewGetTransactionResponse - -`func NewGetTransactionResponse(data TransactionResource, ) *GetTransactionResponse` - -NewGetTransactionResponse instantiates a new GetTransactionResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetTransactionResponseWithDefaults - -`func NewGetTransactionResponseWithDefaults() *GetTransactionResponse` - -NewGetTransactionResponseWithDefaults instantiates a new GetTransactionResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *GetTransactionResponse) GetData() TransactionResource` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *GetTransactionResponse) GetDataOk() (*TransactionResource, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *GetTransactionResponse) SetData(v TransactionResource)` - -SetData sets Data field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/GetWebhookResponse.md b/expense-manager/openapi/docs/GetWebhookResponse.md deleted file mode 100644 index 11a960a..0000000 --- a/expense-manager/openapi/docs/GetWebhookResponse.md +++ /dev/null @@ -1,51 +0,0 @@ -# GetWebhookResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**WebhookResource**](WebhookResource.md) | The webhook returned in this response. | - -## Methods - -### NewGetWebhookResponse - -`func NewGetWebhookResponse(data WebhookResource, ) *GetWebhookResponse` - -NewGetWebhookResponse instantiates a new GetWebhookResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewGetWebhookResponseWithDefaults - -`func NewGetWebhookResponseWithDefaults() *GetWebhookResponse` - -NewGetWebhookResponseWithDefaults instantiates a new GetWebhookResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *GetWebhookResponse) GetData() WebhookResource` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *GetWebhookResponse) GetDataOk() (*WebhookResource, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *GetWebhookResponse) SetData(v WebhookResource)` - -SetData sets Data field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/HoldInfoObject.md b/expense-manager/openapi/docs/HoldInfoObject.md deleted file mode 100644 index 63e77d5..0000000 --- a/expense-manager/openapi/docs/HoldInfoObject.md +++ /dev/null @@ -1,82 +0,0 @@ -# HoldInfoObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | [**MoneyObject**](MoneyObject.md) | The amount of this transaction while in the `HELD` status, in Australian dollars. | -**ForeignAmount** | [**NullableHoldInfoObjectForeignAmount**](HoldInfoObjectForeignAmount.md) | | - -## Methods - -### NewHoldInfoObject - -`func NewHoldInfoObject(amount MoneyObject, foreignAmount NullableHoldInfoObjectForeignAmount, ) *HoldInfoObject` - -NewHoldInfoObject instantiates a new HoldInfoObject object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewHoldInfoObjectWithDefaults - -`func NewHoldInfoObjectWithDefaults() *HoldInfoObject` - -NewHoldInfoObjectWithDefaults instantiates a new HoldInfoObject object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAmount - -`func (o *HoldInfoObject) GetAmount() MoneyObject` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *HoldInfoObject) GetAmountOk() (*MoneyObject, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *HoldInfoObject) SetAmount(v MoneyObject)` - -SetAmount sets Amount field to given value. - - -### GetForeignAmount - -`func (o *HoldInfoObject) GetForeignAmount() HoldInfoObjectForeignAmount` - -GetForeignAmount returns the ForeignAmount field if non-nil, zero value otherwise. - -### GetForeignAmountOk - -`func (o *HoldInfoObject) GetForeignAmountOk() (*HoldInfoObjectForeignAmount, bool)` - -GetForeignAmountOk returns a tuple with the ForeignAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetForeignAmount - -`func (o *HoldInfoObject) SetForeignAmount(v HoldInfoObjectForeignAmount)` - -SetForeignAmount sets ForeignAmount field to given value. - - -### SetForeignAmountNil - -`func (o *HoldInfoObject) SetForeignAmountNil(b bool)` - - SetForeignAmountNil sets the value for ForeignAmount to be an explicit nil - -### UnsetForeignAmount -`func (o *HoldInfoObject) UnsetForeignAmount()` - -UnsetForeignAmount ensures that no value is present for ForeignAmount, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/HoldInfoObjectForeignAmount.md b/expense-manager/openapi/docs/HoldInfoObjectForeignAmount.md deleted file mode 100644 index 278bd5a..0000000 --- a/expense-manager/openapi/docs/HoldInfoObjectForeignAmount.md +++ /dev/null @@ -1,93 +0,0 @@ -# HoldInfoObjectForeignAmount - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CurrencyCode** | **string** | The ISO 4217 currency code. | -**Value** | **string** | The amount of money, formatted as a string in the relevant currency. For example, for an Australian dollar value of $10.56, this field will be `\"10.56\"`. The currency symbol is not included in the string. | -**ValueInBaseUnits** | **int32** | The amount of money in the smallest denomination for the currency, as a 64-bit integer. For example, for an Australian dollar value of $10.56, this field will be `1056`. | - -## Methods - -### NewHoldInfoObjectForeignAmount - -`func NewHoldInfoObjectForeignAmount(currencyCode string, value string, valueInBaseUnits int32, ) *HoldInfoObjectForeignAmount` - -NewHoldInfoObjectForeignAmount instantiates a new HoldInfoObjectForeignAmount object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewHoldInfoObjectForeignAmountWithDefaults - -`func NewHoldInfoObjectForeignAmountWithDefaults() *HoldInfoObjectForeignAmount` - -NewHoldInfoObjectForeignAmountWithDefaults instantiates a new HoldInfoObjectForeignAmount object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCurrencyCode - -`func (o *HoldInfoObjectForeignAmount) GetCurrencyCode() string` - -GetCurrencyCode returns the CurrencyCode field if non-nil, zero value otherwise. - -### GetCurrencyCodeOk - -`func (o *HoldInfoObjectForeignAmount) GetCurrencyCodeOk() (*string, bool)` - -GetCurrencyCodeOk returns a tuple with the CurrencyCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCurrencyCode - -`func (o *HoldInfoObjectForeignAmount) SetCurrencyCode(v string)` - -SetCurrencyCode sets CurrencyCode field to given value. - - -### GetValue - -`func (o *HoldInfoObjectForeignAmount) GetValue() string` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *HoldInfoObjectForeignAmount) GetValueOk() (*string, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *HoldInfoObjectForeignAmount) SetValue(v string)` - -SetValue sets Value field to given value. - - -### GetValueInBaseUnits - -`func (o *HoldInfoObjectForeignAmount) GetValueInBaseUnits() int32` - -GetValueInBaseUnits returns the ValueInBaseUnits field if non-nil, zero value otherwise. - -### GetValueInBaseUnitsOk - -`func (o *HoldInfoObjectForeignAmount) GetValueInBaseUnitsOk() (*int32, bool)` - -GetValueInBaseUnitsOk returns a tuple with the ValueInBaseUnits field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValueInBaseUnits - -`func (o *HoldInfoObjectForeignAmount) SetValueInBaseUnits(v int32)` - -SetValueInBaseUnits sets ValueInBaseUnits field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/ListAccountsResponse.md b/expense-manager/openapi/docs/ListAccountsResponse.md deleted file mode 100644 index 6a809a6..0000000 --- a/expense-manager/openapi/docs/ListAccountsResponse.md +++ /dev/null @@ -1,72 +0,0 @@ -# ListAccountsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**[]AccountResource**](AccountResource.md) | The list of accounts returned in this response. | -**Links** | [**ListAccountsResponseLinks**](ListAccountsResponseLinks.md) | | - -## Methods - -### NewListAccountsResponse - -`func NewListAccountsResponse(data []AccountResource, links ListAccountsResponseLinks, ) *ListAccountsResponse` - -NewListAccountsResponse instantiates a new ListAccountsResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewListAccountsResponseWithDefaults - -`func NewListAccountsResponseWithDefaults() *ListAccountsResponse` - -NewListAccountsResponseWithDefaults instantiates a new ListAccountsResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *ListAccountsResponse) GetData() []AccountResource` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ListAccountsResponse) GetDataOk() (*[]AccountResource, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ListAccountsResponse) SetData(v []AccountResource)` - -SetData sets Data field to given value. - - -### GetLinks - -`func (o *ListAccountsResponse) GetLinks() ListAccountsResponseLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *ListAccountsResponse) GetLinksOk() (*ListAccountsResponseLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *ListAccountsResponse) SetLinks(v ListAccountsResponseLinks)` - -SetLinks sets Links field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/ListAccountsResponseLinks.md b/expense-manager/openapi/docs/ListAccountsResponseLinks.md deleted file mode 100644 index 4a0e9dd..0000000 --- a/expense-manager/openapi/docs/ListAccountsResponseLinks.md +++ /dev/null @@ -1,92 +0,0 @@ -# ListAccountsResponseLinks - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Prev** | **NullableString** | The link to the previous page in the results. If this value is `null` there is no previous page. | -**Next** | **NullableString** | The link to the next page in the results. If this value is `null` there is no next page. | - -## Methods - -### NewListAccountsResponseLinks - -`func NewListAccountsResponseLinks(prev NullableString, next NullableString, ) *ListAccountsResponseLinks` - -NewListAccountsResponseLinks instantiates a new ListAccountsResponseLinks object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewListAccountsResponseLinksWithDefaults - -`func NewListAccountsResponseLinksWithDefaults() *ListAccountsResponseLinks` - -NewListAccountsResponseLinksWithDefaults instantiates a new ListAccountsResponseLinks object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetPrev - -`func (o *ListAccountsResponseLinks) GetPrev() string` - -GetPrev returns the Prev field if non-nil, zero value otherwise. - -### GetPrevOk - -`func (o *ListAccountsResponseLinks) GetPrevOk() (*string, bool)` - -GetPrevOk returns a tuple with the Prev field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrev - -`func (o *ListAccountsResponseLinks) SetPrev(v string)` - -SetPrev sets Prev field to given value. - - -### SetPrevNil - -`func (o *ListAccountsResponseLinks) SetPrevNil(b bool)` - - SetPrevNil sets the value for Prev to be an explicit nil - -### UnsetPrev -`func (o *ListAccountsResponseLinks) UnsetPrev()` - -UnsetPrev ensures that no value is present for Prev, not even an explicit nil -### GetNext - -`func (o *ListAccountsResponseLinks) GetNext() string` - -GetNext returns the Next field if non-nil, zero value otherwise. - -### GetNextOk - -`func (o *ListAccountsResponseLinks) GetNextOk() (*string, bool)` - -GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNext - -`func (o *ListAccountsResponseLinks) SetNext(v string)` - -SetNext sets Next field to given value. - - -### SetNextNil - -`func (o *ListAccountsResponseLinks) SetNextNil(b bool)` - - SetNextNil sets the value for Next to be an explicit nil - -### UnsetNext -`func (o *ListAccountsResponseLinks) UnsetNext()` - -UnsetNext ensures that no value is present for Next, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/ListCategoriesResponse.md b/expense-manager/openapi/docs/ListCategoriesResponse.md deleted file mode 100644 index 9295de5..0000000 --- a/expense-manager/openapi/docs/ListCategoriesResponse.md +++ /dev/null @@ -1,51 +0,0 @@ -# ListCategoriesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**[]CategoryResource**](CategoryResource.md) | The list of categories returned in this response. | - -## Methods - -### NewListCategoriesResponse - -`func NewListCategoriesResponse(data []CategoryResource, ) *ListCategoriesResponse` - -NewListCategoriesResponse instantiates a new ListCategoriesResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewListCategoriesResponseWithDefaults - -`func NewListCategoriesResponseWithDefaults() *ListCategoriesResponse` - -NewListCategoriesResponseWithDefaults instantiates a new ListCategoriesResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *ListCategoriesResponse) GetData() []CategoryResource` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ListCategoriesResponse) GetDataOk() (*[]CategoryResource, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ListCategoriesResponse) SetData(v []CategoryResource)` - -SetData sets Data field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/ListTagsResponse.md b/expense-manager/openapi/docs/ListTagsResponse.md deleted file mode 100644 index 6e9c61a..0000000 --- a/expense-manager/openapi/docs/ListTagsResponse.md +++ /dev/null @@ -1,72 +0,0 @@ -# ListTagsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**[]TagResource**](TagResource.md) | The list of tags returned in this response. | -**Links** | [**ListAccountsResponseLinks**](ListAccountsResponseLinks.md) | | - -## Methods - -### NewListTagsResponse - -`func NewListTagsResponse(data []TagResource, links ListAccountsResponseLinks, ) *ListTagsResponse` - -NewListTagsResponse instantiates a new ListTagsResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewListTagsResponseWithDefaults - -`func NewListTagsResponseWithDefaults() *ListTagsResponse` - -NewListTagsResponseWithDefaults instantiates a new ListTagsResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *ListTagsResponse) GetData() []TagResource` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ListTagsResponse) GetDataOk() (*[]TagResource, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ListTagsResponse) SetData(v []TagResource)` - -SetData sets Data field to given value. - - -### GetLinks - -`func (o *ListTagsResponse) GetLinks() ListAccountsResponseLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *ListTagsResponse) GetLinksOk() (*ListAccountsResponseLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *ListTagsResponse) SetLinks(v ListAccountsResponseLinks)` - -SetLinks sets Links field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/ListTransactionsResponse.md b/expense-manager/openapi/docs/ListTransactionsResponse.md deleted file mode 100644 index c7b7c87..0000000 --- a/expense-manager/openapi/docs/ListTransactionsResponse.md +++ /dev/null @@ -1,72 +0,0 @@ -# ListTransactionsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**[]TransactionResource**](TransactionResource.md) | The list of transactions returned in this response. | -**Links** | [**ListAccountsResponseLinks**](ListAccountsResponseLinks.md) | | - -## Methods - -### NewListTransactionsResponse - -`func NewListTransactionsResponse(data []TransactionResource, links ListAccountsResponseLinks, ) *ListTransactionsResponse` - -NewListTransactionsResponse instantiates a new ListTransactionsResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewListTransactionsResponseWithDefaults - -`func NewListTransactionsResponseWithDefaults() *ListTransactionsResponse` - -NewListTransactionsResponseWithDefaults instantiates a new ListTransactionsResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *ListTransactionsResponse) GetData() []TransactionResource` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ListTransactionsResponse) GetDataOk() (*[]TransactionResource, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ListTransactionsResponse) SetData(v []TransactionResource)` - -SetData sets Data field to given value. - - -### GetLinks - -`func (o *ListTransactionsResponse) GetLinks() ListAccountsResponseLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *ListTransactionsResponse) GetLinksOk() (*ListAccountsResponseLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *ListTransactionsResponse) SetLinks(v ListAccountsResponseLinks)` - -SetLinks sets Links field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/ListWebhookDeliveryLogsResponse.md b/expense-manager/openapi/docs/ListWebhookDeliveryLogsResponse.md deleted file mode 100644 index f2a2aa9..0000000 --- a/expense-manager/openapi/docs/ListWebhookDeliveryLogsResponse.md +++ /dev/null @@ -1,72 +0,0 @@ -# ListWebhookDeliveryLogsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**[]WebhookDeliveryLogResource**](WebhookDeliveryLogResource.md) | The list of delivery logs returned in this response. | -**Links** | [**ListAccountsResponseLinks**](ListAccountsResponseLinks.md) | | - -## Methods - -### NewListWebhookDeliveryLogsResponse - -`func NewListWebhookDeliveryLogsResponse(data []WebhookDeliveryLogResource, links ListAccountsResponseLinks, ) *ListWebhookDeliveryLogsResponse` - -NewListWebhookDeliveryLogsResponse instantiates a new ListWebhookDeliveryLogsResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewListWebhookDeliveryLogsResponseWithDefaults - -`func NewListWebhookDeliveryLogsResponseWithDefaults() *ListWebhookDeliveryLogsResponse` - -NewListWebhookDeliveryLogsResponseWithDefaults instantiates a new ListWebhookDeliveryLogsResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *ListWebhookDeliveryLogsResponse) GetData() []WebhookDeliveryLogResource` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ListWebhookDeliveryLogsResponse) GetDataOk() (*[]WebhookDeliveryLogResource, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ListWebhookDeliveryLogsResponse) SetData(v []WebhookDeliveryLogResource)` - -SetData sets Data field to given value. - - -### GetLinks - -`func (o *ListWebhookDeliveryLogsResponse) GetLinks() ListAccountsResponseLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *ListWebhookDeliveryLogsResponse) GetLinksOk() (*ListAccountsResponseLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *ListWebhookDeliveryLogsResponse) SetLinks(v ListAccountsResponseLinks)` - -SetLinks sets Links field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/ListWebhooksResponse.md b/expense-manager/openapi/docs/ListWebhooksResponse.md deleted file mode 100644 index 5940fd9..0000000 --- a/expense-manager/openapi/docs/ListWebhooksResponse.md +++ /dev/null @@ -1,72 +0,0 @@ -# ListWebhooksResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**[]WebhookResource**](WebhookResource.md) | The list of webhooks returned in this response. | -**Links** | [**ListAccountsResponseLinks**](ListAccountsResponseLinks.md) | | - -## Methods - -### NewListWebhooksResponse - -`func NewListWebhooksResponse(data []WebhookResource, links ListAccountsResponseLinks, ) *ListWebhooksResponse` - -NewListWebhooksResponse instantiates a new ListWebhooksResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewListWebhooksResponseWithDefaults - -`func NewListWebhooksResponseWithDefaults() *ListWebhooksResponse` - -NewListWebhooksResponseWithDefaults instantiates a new ListWebhooksResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *ListWebhooksResponse) GetData() []WebhookResource` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *ListWebhooksResponse) GetDataOk() (*[]WebhookResource, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *ListWebhooksResponse) SetData(v []WebhookResource)` - -SetData sets Data field to given value. - - -### GetLinks - -`func (o *ListWebhooksResponse) GetLinks() ListAccountsResponseLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *ListWebhooksResponse) GetLinksOk() (*ListAccountsResponseLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *ListWebhooksResponse) SetLinks(v ListAccountsResponseLinks)` - -SetLinks sets Links field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/MoneyObject.md b/expense-manager/openapi/docs/MoneyObject.md deleted file mode 100644 index 79bf6b1..0000000 --- a/expense-manager/openapi/docs/MoneyObject.md +++ /dev/null @@ -1,93 +0,0 @@ -# MoneyObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CurrencyCode** | **string** | The ISO 4217 currency code. | -**Value** | **string** | The amount of money, formatted as a string in the relevant currency. For example, for an Australian dollar value of $10.56, this field will be `\"10.56\"`. The currency symbol is not included in the string. | -**ValueInBaseUnits** | **int32** | The amount of money in the smallest denomination for the currency, as a 64-bit integer. For example, for an Australian dollar value of $10.56, this field will be `1056`. | - -## Methods - -### NewMoneyObject - -`func NewMoneyObject(currencyCode string, value string, valueInBaseUnits int32, ) *MoneyObject` - -NewMoneyObject instantiates a new MoneyObject object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewMoneyObjectWithDefaults - -`func NewMoneyObjectWithDefaults() *MoneyObject` - -NewMoneyObjectWithDefaults instantiates a new MoneyObject object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCurrencyCode - -`func (o *MoneyObject) GetCurrencyCode() string` - -GetCurrencyCode returns the CurrencyCode field if non-nil, zero value otherwise. - -### GetCurrencyCodeOk - -`func (o *MoneyObject) GetCurrencyCodeOk() (*string, bool)` - -GetCurrencyCodeOk returns a tuple with the CurrencyCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCurrencyCode - -`func (o *MoneyObject) SetCurrencyCode(v string)` - -SetCurrencyCode sets CurrencyCode field to given value. - - -### GetValue - -`func (o *MoneyObject) GetValue() string` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *MoneyObject) GetValueOk() (*string, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *MoneyObject) SetValue(v string)` - -SetValue sets Value field to given value. - - -### GetValueInBaseUnits - -`func (o *MoneyObject) GetValueInBaseUnits() int32` - -GetValueInBaseUnits returns the ValueInBaseUnits field if non-nil, zero value otherwise. - -### GetValueInBaseUnitsOk - -`func (o *MoneyObject) GetValueInBaseUnitsOk() (*int32, bool)` - -GetValueInBaseUnitsOk returns a tuple with the ValueInBaseUnits field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValueInBaseUnits - -`func (o *MoneyObject) SetValueInBaseUnits(v int32)` - -SetValueInBaseUnits sets ValueInBaseUnits field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/OwnershipTypeEnum.md b/expense-manager/openapi/docs/OwnershipTypeEnum.md deleted file mode 100644 index a53dda7..0000000 --- a/expense-manager/openapi/docs/OwnershipTypeEnum.md +++ /dev/null @@ -1,13 +0,0 @@ -# OwnershipTypeEnum - -## Enum - - -* `INDIVIDUAL` (value: `"INDIVIDUAL"`) - -* `JOINT` (value: `"JOINT"`) - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/PingResponse.md b/expense-manager/openapi/docs/PingResponse.md deleted file mode 100644 index e3829e4..0000000 --- a/expense-manager/openapi/docs/PingResponse.md +++ /dev/null @@ -1,51 +0,0 @@ -# PingResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Meta** | [**PingResponseMeta**](PingResponseMeta.md) | | - -## Methods - -### NewPingResponse - -`func NewPingResponse(meta PingResponseMeta, ) *PingResponse` - -NewPingResponse instantiates a new PingResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPingResponseWithDefaults - -`func NewPingResponseWithDefaults() *PingResponse` - -NewPingResponseWithDefaults instantiates a new PingResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetMeta - -`func (o *PingResponse) GetMeta() PingResponseMeta` - -GetMeta returns the Meta field if non-nil, zero value otherwise. - -### GetMetaOk - -`func (o *PingResponse) GetMetaOk() (*PingResponseMeta, bool)` - -GetMetaOk returns a tuple with the Meta field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMeta - -`func (o *PingResponse) SetMeta(v PingResponseMeta)` - -SetMeta sets Meta field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/PingResponseMeta.md b/expense-manager/openapi/docs/PingResponseMeta.md deleted file mode 100644 index 523d46e..0000000 --- a/expense-manager/openapi/docs/PingResponseMeta.md +++ /dev/null @@ -1,72 +0,0 @@ -# PingResponseMeta - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Id** | **string** | The unique identifier of the authenticated customer. | -**StatusEmoji** | **string** | A cute emoji that represents the response status. | - -## Methods - -### NewPingResponseMeta - -`func NewPingResponseMeta(id string, statusEmoji string, ) *PingResponseMeta` - -NewPingResponseMeta instantiates a new PingResponseMeta object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewPingResponseMetaWithDefaults - -`func NewPingResponseMetaWithDefaults() *PingResponseMeta` - -NewPingResponseMetaWithDefaults instantiates a new PingResponseMeta object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetId - -`func (o *PingResponseMeta) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *PingResponseMeta) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *PingResponseMeta) SetId(v string)` - -SetId sets Id field to given value. - - -### GetStatusEmoji - -`func (o *PingResponseMeta) GetStatusEmoji() string` - -GetStatusEmoji returns the StatusEmoji field if non-nil, zero value otherwise. - -### GetStatusEmojiOk - -`func (o *PingResponseMeta) GetStatusEmojiOk() (*string, bool)` - -GetStatusEmojiOk returns a tuple with the StatusEmoji field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatusEmoji - -`func (o *PingResponseMeta) SetStatusEmoji(v string)` - -SetStatusEmoji sets StatusEmoji field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/RoundUpObject.md b/expense-manager/openapi/docs/RoundUpObject.md deleted file mode 100644 index b9ae606..0000000 --- a/expense-manager/openapi/docs/RoundUpObject.md +++ /dev/null @@ -1,82 +0,0 @@ -# RoundUpObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | [**MoneyObject**](MoneyObject.md) | The total amount of this Round Up, including any boosts, represented as a negative value. | -**BoostPortion** | [**NullableRoundUpObjectBoostPortion**](RoundUpObjectBoostPortion.md) | | - -## Methods - -### NewRoundUpObject - -`func NewRoundUpObject(amount MoneyObject, boostPortion NullableRoundUpObjectBoostPortion, ) *RoundUpObject` - -NewRoundUpObject instantiates a new RoundUpObject object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewRoundUpObjectWithDefaults - -`func NewRoundUpObjectWithDefaults() *RoundUpObject` - -NewRoundUpObjectWithDefaults instantiates a new RoundUpObject object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAmount - -`func (o *RoundUpObject) GetAmount() MoneyObject` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *RoundUpObject) GetAmountOk() (*MoneyObject, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *RoundUpObject) SetAmount(v MoneyObject)` - -SetAmount sets Amount field to given value. - - -### GetBoostPortion - -`func (o *RoundUpObject) GetBoostPortion() RoundUpObjectBoostPortion` - -GetBoostPortion returns the BoostPortion field if non-nil, zero value otherwise. - -### GetBoostPortionOk - -`func (o *RoundUpObject) GetBoostPortionOk() (*RoundUpObjectBoostPortion, bool)` - -GetBoostPortionOk returns a tuple with the BoostPortion field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBoostPortion - -`func (o *RoundUpObject) SetBoostPortion(v RoundUpObjectBoostPortion)` - -SetBoostPortion sets BoostPortion field to given value. - - -### SetBoostPortionNil - -`func (o *RoundUpObject) SetBoostPortionNil(b bool)` - - SetBoostPortionNil sets the value for BoostPortion to be an explicit nil - -### UnsetBoostPortion -`func (o *RoundUpObject) UnsetBoostPortion()` - -UnsetBoostPortion ensures that no value is present for BoostPortion, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/RoundUpObjectBoostPortion.md b/expense-manager/openapi/docs/RoundUpObjectBoostPortion.md deleted file mode 100644 index d504153..0000000 --- a/expense-manager/openapi/docs/RoundUpObjectBoostPortion.md +++ /dev/null @@ -1,93 +0,0 @@ -# RoundUpObjectBoostPortion - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CurrencyCode** | **string** | The ISO 4217 currency code. | -**Value** | **string** | The amount of money, formatted as a string in the relevant currency. For example, for an Australian dollar value of $10.56, this field will be `\"10.56\"`. The currency symbol is not included in the string. | -**ValueInBaseUnits** | **int32** | The amount of money in the smallest denomination for the currency, as a 64-bit integer. For example, for an Australian dollar value of $10.56, this field will be `1056`. | - -## Methods - -### NewRoundUpObjectBoostPortion - -`func NewRoundUpObjectBoostPortion(currencyCode string, value string, valueInBaseUnits int32, ) *RoundUpObjectBoostPortion` - -NewRoundUpObjectBoostPortion instantiates a new RoundUpObjectBoostPortion object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewRoundUpObjectBoostPortionWithDefaults - -`func NewRoundUpObjectBoostPortionWithDefaults() *RoundUpObjectBoostPortion` - -NewRoundUpObjectBoostPortionWithDefaults instantiates a new RoundUpObjectBoostPortion object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCurrencyCode - -`func (o *RoundUpObjectBoostPortion) GetCurrencyCode() string` - -GetCurrencyCode returns the CurrencyCode field if non-nil, zero value otherwise. - -### GetCurrencyCodeOk - -`func (o *RoundUpObjectBoostPortion) GetCurrencyCodeOk() (*string, bool)` - -GetCurrencyCodeOk returns a tuple with the CurrencyCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCurrencyCode - -`func (o *RoundUpObjectBoostPortion) SetCurrencyCode(v string)` - -SetCurrencyCode sets CurrencyCode field to given value. - - -### GetValue - -`func (o *RoundUpObjectBoostPortion) GetValue() string` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *RoundUpObjectBoostPortion) GetValueOk() (*string, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *RoundUpObjectBoostPortion) SetValue(v string)` - -SetValue sets Value field to given value. - - -### GetValueInBaseUnits - -`func (o *RoundUpObjectBoostPortion) GetValueInBaseUnits() int32` - -GetValueInBaseUnits returns the ValueInBaseUnits field if non-nil, zero value otherwise. - -### GetValueInBaseUnitsOk - -`func (o *RoundUpObjectBoostPortion) GetValueInBaseUnitsOk() (*int32, bool)` - -GetValueInBaseUnitsOk returns a tuple with the ValueInBaseUnits field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValueInBaseUnits - -`func (o *RoundUpObjectBoostPortion) SetValueInBaseUnits(v int32)` - -SetValueInBaseUnits sets ValueInBaseUnits field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TagInputResourceIdentifier.md b/expense-manager/openapi/docs/TagInputResourceIdentifier.md deleted file mode 100644 index a88fe0e..0000000 --- a/expense-manager/openapi/docs/TagInputResourceIdentifier.md +++ /dev/null @@ -1,72 +0,0 @@ -# TagInputResourceIdentifier - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | The type of this resource: `tags` | -**Id** | **string** | The label of the tag, which also acts as the tag’s unique identifier. | - -## Methods - -### NewTagInputResourceIdentifier - -`func NewTagInputResourceIdentifier(type_ string, id string, ) *TagInputResourceIdentifier` - -NewTagInputResourceIdentifier instantiates a new TagInputResourceIdentifier object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTagInputResourceIdentifierWithDefaults - -`func NewTagInputResourceIdentifierWithDefaults() *TagInputResourceIdentifier` - -NewTagInputResourceIdentifierWithDefaults instantiates a new TagInputResourceIdentifier object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *TagInputResourceIdentifier) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *TagInputResourceIdentifier) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *TagInputResourceIdentifier) SetType(v string)` - -SetType sets Type field to given value. - - -### GetId - -`func (o *TagInputResourceIdentifier) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *TagInputResourceIdentifier) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *TagInputResourceIdentifier) SetId(v string)` - -SetId sets Id field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TagResource.md b/expense-manager/openapi/docs/TagResource.md deleted file mode 100644 index 3451cd0..0000000 --- a/expense-manager/openapi/docs/TagResource.md +++ /dev/null @@ -1,93 +0,0 @@ -# TagResource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | The type of this resource: `tags` | -**Id** | **string** | The label of the tag, which also acts as the tag’s unique identifier. | -**Relationships** | [**AccountResourceRelationships**](AccountResourceRelationships.md) | | - -## Methods - -### NewTagResource - -`func NewTagResource(type_ string, id string, relationships AccountResourceRelationships, ) *TagResource` - -NewTagResource instantiates a new TagResource object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTagResourceWithDefaults - -`func NewTagResourceWithDefaults() *TagResource` - -NewTagResourceWithDefaults instantiates a new TagResource object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *TagResource) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *TagResource) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *TagResource) SetType(v string)` - -SetType sets Type field to given value. - - -### GetId - -`func (o *TagResource) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *TagResource) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *TagResource) SetId(v string)` - -SetId sets Id field to given value. - - -### GetRelationships - -`func (o *TagResource) GetRelationships() AccountResourceRelationships` - -GetRelationships returns the Relationships field if non-nil, zero value otherwise. - -### GetRelationshipsOk - -`func (o *TagResource) GetRelationshipsOk() (*AccountResourceRelationships, bool)` - -GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRelationships - -`func (o *TagResource) SetRelationships(v AccountResourceRelationships)` - -SetRelationships sets Relationships field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TagsAPI.md b/expense-manager/openapi/docs/TagsAPI.md deleted file mode 100644 index 5460124..0000000 --- a/expense-manager/openapi/docs/TagsAPI.md +++ /dev/null @@ -1,217 +0,0 @@ -# \TagsAPI - -All URIs are relative to *https://api.up.com.au/api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**TagsGet**](TagsAPI.md#TagsGet) | **Get** /tags | List tags -[**TransactionsTransactionIdRelationshipsTagsDelete**](TagsAPI.md#TransactionsTransactionIdRelationshipsTagsDelete) | **Delete** /transactions/{transactionId}/relationships/tags | Remove tags from transaction -[**TransactionsTransactionIdRelationshipsTagsPost**](TagsAPI.md#TransactionsTransactionIdRelationshipsTagsPost) | **Post** /transactions/{transactionId}/relationships/tags | Add tags to transaction - - - -## TagsGet - -> ListTagsResponse TagsGet(ctx).PageSize(pageSize).Execute() - -List tags - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/ESteanes/expense-manager" -) - -func main() { - pageSize := int32(50) // int32 | The number of records to return in each page. (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TagsAPI.TagsGet(context.Background()).PageSize(pageSize).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TagsAPI.TagsGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TagsGet`: ListTagsResponse - fmt.Fprintf(os.Stdout, "Response from `TagsAPI.TagsGet`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiTagsGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pageSize** | **int32** | The number of records to return in each page. | - -### Return type - -[**ListTagsResponse**](ListTagsResponse.md) - -### Authorization - -[bearer_auth](../README.md#bearer_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## TransactionsTransactionIdRelationshipsTagsDelete - -> TransactionsTransactionIdRelationshipsTagsDelete(ctx, transactionId).UpdateTransactionTagsRequest(updateTransactionTagsRequest).Execute() - -Remove tags from transaction - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/ESteanes/expense-manager" -) - -func main() { - transactionId := "c3feb4ba-829c-4482-b882-1b9bd23da82d" // string | The unique identifier for the transaction. - updateTransactionTagsRequest := *openapiclient.NewUpdateTransactionTagsRequest([]openapiclient.TagInputResourceIdentifier{*openapiclient.NewTagInputResourceIdentifier("Type_example", "Id_example")}) // UpdateTransactionTagsRequest | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.TagsAPI.TransactionsTransactionIdRelationshipsTagsDelete(context.Background(), transactionId).UpdateTransactionTagsRequest(updateTransactionTagsRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TagsAPI.TransactionsTransactionIdRelationshipsTagsDelete``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**transactionId** | **string** | The unique identifier for the transaction. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiTransactionsTransactionIdRelationshipsTagsDeleteRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **updateTransactionTagsRequest** | [**UpdateTransactionTagsRequest**](UpdateTransactionTagsRequest.md) | | - -### Return type - - (empty response body) - -### Authorization - -[bearer_auth](../README.md#bearer_auth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## TransactionsTransactionIdRelationshipsTagsPost - -> TransactionsTransactionIdRelationshipsTagsPost(ctx, transactionId).UpdateTransactionTagsRequest(updateTransactionTagsRequest).Execute() - -Add tags to transaction - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/ESteanes/expense-manager" -) - -func main() { - transactionId := "acde4631-db56-49a6-aea3-4e2311ef1d6a" // string | The unique identifier for the transaction. - updateTransactionTagsRequest := *openapiclient.NewUpdateTransactionTagsRequest([]openapiclient.TagInputResourceIdentifier{*openapiclient.NewTagInputResourceIdentifier("Type_example", "Id_example")}) // UpdateTransactionTagsRequest | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.TagsAPI.TransactionsTransactionIdRelationshipsTagsPost(context.Background(), transactionId).UpdateTransactionTagsRequest(updateTransactionTagsRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TagsAPI.TransactionsTransactionIdRelationshipsTagsPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**transactionId** | **string** | The unique identifier for the transaction. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiTransactionsTransactionIdRelationshipsTagsPostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **updateTransactionTagsRequest** | [**UpdateTransactionTagsRequest**](UpdateTransactionTagsRequest.md) | | - -### Return type - - (empty response body) - -### Authorization - -[bearer_auth](../README.md#bearer_auth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/expense-manager/openapi/docs/TransactionResource.md b/expense-manager/openapi/docs/TransactionResource.md deleted file mode 100644 index 52bf3c6..0000000 --- a/expense-manager/openapi/docs/TransactionResource.md +++ /dev/null @@ -1,140 +0,0 @@ -# TransactionResource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | The type of this resource: `transactions` | -**Id** | **string** | The unique identifier for this transaction. | -**Attributes** | [**TransactionResourceAttributes**](TransactionResourceAttributes.md) | | -**Relationships** | [**TransactionResourceRelationships**](TransactionResourceRelationships.md) | | -**Links** | Pointer to [**AccountResourceLinks**](AccountResourceLinks.md) | | [optional] - -## Methods - -### NewTransactionResource - -`func NewTransactionResource(type_ string, id string, attributes TransactionResourceAttributes, relationships TransactionResourceRelationships, ) *TransactionResource` - -NewTransactionResource instantiates a new TransactionResource object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactionResourceWithDefaults - -`func NewTransactionResourceWithDefaults() *TransactionResource` - -NewTransactionResourceWithDefaults instantiates a new TransactionResource object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *TransactionResource) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *TransactionResource) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *TransactionResource) SetType(v string)` - -SetType sets Type field to given value. - - -### GetId - -`func (o *TransactionResource) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *TransactionResource) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *TransactionResource) SetId(v string)` - -SetId sets Id field to given value. - - -### GetAttributes - -`func (o *TransactionResource) GetAttributes() TransactionResourceAttributes` - -GetAttributes returns the Attributes field if non-nil, zero value otherwise. - -### GetAttributesOk - -`func (o *TransactionResource) GetAttributesOk() (*TransactionResourceAttributes, bool)` - -GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttributes - -`func (o *TransactionResource) SetAttributes(v TransactionResourceAttributes)` - -SetAttributes sets Attributes field to given value. - - -### GetRelationships - -`func (o *TransactionResource) GetRelationships() TransactionResourceRelationships` - -GetRelationships returns the Relationships field if non-nil, zero value otherwise. - -### GetRelationshipsOk - -`func (o *TransactionResource) GetRelationshipsOk() (*TransactionResourceRelationships, bool)` - -GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRelationships - -`func (o *TransactionResource) SetRelationships(v TransactionResourceRelationships)` - -SetRelationships sets Relationships field to given value. - - -### GetLinks - -`func (o *TransactionResource) GetLinks() AccountResourceLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *TransactionResource) GetLinksOk() (*AccountResourceLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *TransactionResource) SetLinks(v AccountResourceLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *TransactionResource) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TransactionResourceAttributes.md b/expense-manager/openapi/docs/TransactionResourceAttributes.md deleted file mode 100644 index 2d35f54..0000000 --- a/expense-manager/openapi/docs/TransactionResourceAttributes.md +++ /dev/null @@ -1,352 +0,0 @@ -# TransactionResourceAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Status** | [**TransactionStatusEnum**](TransactionStatusEnum.md) | The current processing status of this transaction, according to whether or not this transaction has settled or is still held. | -**RawText** | **NullableString** | The original, unprocessed text of the transaction. This is often not a perfect indicator of the actual merchant, but it is useful for reconciliation purposes in some cases. | -**Description** | **string** | A short description for this transaction. Usually the merchant name for purchases. | -**Message** | **NullableString** | Attached message for this transaction, such as a payment message, or a transfer note. | -**IsCategorizable** | **bool** | Boolean flag set to true on transactions that support the use of categories. | -**HoldInfo** | [**NullableTransactionResourceAttributesHoldInfo**](TransactionResourceAttributesHoldInfo.md) | | -**RoundUp** | [**NullableTransactionResourceAttributesRoundUp**](TransactionResourceAttributesRoundUp.md) | | -**Cashback** | [**NullableTransactionResourceAttributesCashback**](TransactionResourceAttributesCashback.md) | | -**Amount** | [**MoneyObject**](MoneyObject.md) | The amount of this transaction in Australian dollars. For transactions that were once `HELD` but are now `SETTLED`, refer to the `holdInfo` field for the original `amount` the transaction was `HELD` at. | -**ForeignAmount** | [**NullableTransactionResourceAttributesForeignAmount**](TransactionResourceAttributesForeignAmount.md) | | -**SettledAt** | **NullableTime** | The date-time at which this transaction settled. This field will be `null` for transactions that are currently in the `HELD` status. | -**CreatedAt** | **time.Time** | The date-time at which this transaction was first encountered. | - -## Methods - -### NewTransactionResourceAttributes - -`func NewTransactionResourceAttributes(status TransactionStatusEnum, rawText NullableString, description string, message NullableString, isCategorizable bool, holdInfo NullableTransactionResourceAttributesHoldInfo, roundUp NullableTransactionResourceAttributesRoundUp, cashback NullableTransactionResourceAttributesCashback, amount MoneyObject, foreignAmount NullableTransactionResourceAttributesForeignAmount, settledAt NullableTime, createdAt time.Time, ) *TransactionResourceAttributes` - -NewTransactionResourceAttributes instantiates a new TransactionResourceAttributes object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactionResourceAttributesWithDefaults - -`func NewTransactionResourceAttributesWithDefaults() *TransactionResourceAttributes` - -NewTransactionResourceAttributesWithDefaults instantiates a new TransactionResourceAttributes object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatus - -`func (o *TransactionResourceAttributes) GetStatus() TransactionStatusEnum` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *TransactionResourceAttributes) GetStatusOk() (*TransactionStatusEnum, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *TransactionResourceAttributes) SetStatus(v TransactionStatusEnum)` - -SetStatus sets Status field to given value. - - -### GetRawText - -`func (o *TransactionResourceAttributes) GetRawText() string` - -GetRawText returns the RawText field if non-nil, zero value otherwise. - -### GetRawTextOk - -`func (o *TransactionResourceAttributes) GetRawTextOk() (*string, bool)` - -GetRawTextOk returns a tuple with the RawText field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRawText - -`func (o *TransactionResourceAttributes) SetRawText(v string)` - -SetRawText sets RawText field to given value. - - -### SetRawTextNil - -`func (o *TransactionResourceAttributes) SetRawTextNil(b bool)` - - SetRawTextNil sets the value for RawText to be an explicit nil - -### UnsetRawText -`func (o *TransactionResourceAttributes) UnsetRawText()` - -UnsetRawText ensures that no value is present for RawText, not even an explicit nil -### GetDescription - -`func (o *TransactionResourceAttributes) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *TransactionResourceAttributes) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *TransactionResourceAttributes) SetDescription(v string)` - -SetDescription sets Description field to given value. - - -### GetMessage - -`func (o *TransactionResourceAttributes) GetMessage() string` - -GetMessage returns the Message field if non-nil, zero value otherwise. - -### GetMessageOk - -`func (o *TransactionResourceAttributes) GetMessageOk() (*string, bool)` - -GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMessage - -`func (o *TransactionResourceAttributes) SetMessage(v string)` - -SetMessage sets Message field to given value. - - -### SetMessageNil - -`func (o *TransactionResourceAttributes) SetMessageNil(b bool)` - - SetMessageNil sets the value for Message to be an explicit nil - -### UnsetMessage -`func (o *TransactionResourceAttributes) UnsetMessage()` - -UnsetMessage ensures that no value is present for Message, not even an explicit nil -### GetIsCategorizable - -`func (o *TransactionResourceAttributes) GetIsCategorizable() bool` - -GetIsCategorizable returns the IsCategorizable field if non-nil, zero value otherwise. - -### GetIsCategorizableOk - -`func (o *TransactionResourceAttributes) GetIsCategorizableOk() (*bool, bool)` - -GetIsCategorizableOk returns a tuple with the IsCategorizable field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsCategorizable - -`func (o *TransactionResourceAttributes) SetIsCategorizable(v bool)` - -SetIsCategorizable sets IsCategorizable field to given value. - - -### GetHoldInfo - -`func (o *TransactionResourceAttributes) GetHoldInfo() TransactionResourceAttributesHoldInfo` - -GetHoldInfo returns the HoldInfo field if non-nil, zero value otherwise. - -### GetHoldInfoOk - -`func (o *TransactionResourceAttributes) GetHoldInfoOk() (*TransactionResourceAttributesHoldInfo, bool)` - -GetHoldInfoOk returns a tuple with the HoldInfo field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetHoldInfo - -`func (o *TransactionResourceAttributes) SetHoldInfo(v TransactionResourceAttributesHoldInfo)` - -SetHoldInfo sets HoldInfo field to given value. - - -### SetHoldInfoNil - -`func (o *TransactionResourceAttributes) SetHoldInfoNil(b bool)` - - SetHoldInfoNil sets the value for HoldInfo to be an explicit nil - -### UnsetHoldInfo -`func (o *TransactionResourceAttributes) UnsetHoldInfo()` - -UnsetHoldInfo ensures that no value is present for HoldInfo, not even an explicit nil -### GetRoundUp - -`func (o *TransactionResourceAttributes) GetRoundUp() TransactionResourceAttributesRoundUp` - -GetRoundUp returns the RoundUp field if non-nil, zero value otherwise. - -### GetRoundUpOk - -`func (o *TransactionResourceAttributes) GetRoundUpOk() (*TransactionResourceAttributesRoundUp, bool)` - -GetRoundUpOk returns a tuple with the RoundUp field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRoundUp - -`func (o *TransactionResourceAttributes) SetRoundUp(v TransactionResourceAttributesRoundUp)` - -SetRoundUp sets RoundUp field to given value. - - -### SetRoundUpNil - -`func (o *TransactionResourceAttributes) SetRoundUpNil(b bool)` - - SetRoundUpNil sets the value for RoundUp to be an explicit nil - -### UnsetRoundUp -`func (o *TransactionResourceAttributes) UnsetRoundUp()` - -UnsetRoundUp ensures that no value is present for RoundUp, not even an explicit nil -### GetCashback - -`func (o *TransactionResourceAttributes) GetCashback() TransactionResourceAttributesCashback` - -GetCashback returns the Cashback field if non-nil, zero value otherwise. - -### GetCashbackOk - -`func (o *TransactionResourceAttributes) GetCashbackOk() (*TransactionResourceAttributesCashback, bool)` - -GetCashbackOk returns a tuple with the Cashback field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCashback - -`func (o *TransactionResourceAttributes) SetCashback(v TransactionResourceAttributesCashback)` - -SetCashback sets Cashback field to given value. - - -### SetCashbackNil - -`func (o *TransactionResourceAttributes) SetCashbackNil(b bool)` - - SetCashbackNil sets the value for Cashback to be an explicit nil - -### UnsetCashback -`func (o *TransactionResourceAttributes) UnsetCashback()` - -UnsetCashback ensures that no value is present for Cashback, not even an explicit nil -### GetAmount - -`func (o *TransactionResourceAttributes) GetAmount() MoneyObject` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *TransactionResourceAttributes) GetAmountOk() (*MoneyObject, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *TransactionResourceAttributes) SetAmount(v MoneyObject)` - -SetAmount sets Amount field to given value. - - -### GetForeignAmount - -`func (o *TransactionResourceAttributes) GetForeignAmount() TransactionResourceAttributesForeignAmount` - -GetForeignAmount returns the ForeignAmount field if non-nil, zero value otherwise. - -### GetForeignAmountOk - -`func (o *TransactionResourceAttributes) GetForeignAmountOk() (*TransactionResourceAttributesForeignAmount, bool)` - -GetForeignAmountOk returns a tuple with the ForeignAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetForeignAmount - -`func (o *TransactionResourceAttributes) SetForeignAmount(v TransactionResourceAttributesForeignAmount)` - -SetForeignAmount sets ForeignAmount field to given value. - - -### SetForeignAmountNil - -`func (o *TransactionResourceAttributes) SetForeignAmountNil(b bool)` - - SetForeignAmountNil sets the value for ForeignAmount to be an explicit nil - -### UnsetForeignAmount -`func (o *TransactionResourceAttributes) UnsetForeignAmount()` - -UnsetForeignAmount ensures that no value is present for ForeignAmount, not even an explicit nil -### GetSettledAt - -`func (o *TransactionResourceAttributes) GetSettledAt() time.Time` - -GetSettledAt returns the SettledAt field if non-nil, zero value otherwise. - -### GetSettledAtOk - -`func (o *TransactionResourceAttributes) GetSettledAtOk() (*time.Time, bool)` - -GetSettledAtOk returns a tuple with the SettledAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSettledAt - -`func (o *TransactionResourceAttributes) SetSettledAt(v time.Time)` - -SetSettledAt sets SettledAt field to given value. - - -### SetSettledAtNil - -`func (o *TransactionResourceAttributes) SetSettledAtNil(b bool)` - - SetSettledAtNil sets the value for SettledAt to be an explicit nil - -### UnsetSettledAt -`func (o *TransactionResourceAttributes) UnsetSettledAt()` - -UnsetSettledAt ensures that no value is present for SettledAt, not even an explicit nil -### GetCreatedAt - -`func (o *TransactionResourceAttributes) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *TransactionResourceAttributes) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *TransactionResourceAttributes) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TransactionResourceAttributesCashback.md b/expense-manager/openapi/docs/TransactionResourceAttributesCashback.md deleted file mode 100644 index f4a403a..0000000 --- a/expense-manager/openapi/docs/TransactionResourceAttributesCashback.md +++ /dev/null @@ -1,72 +0,0 @@ -# TransactionResourceAttributesCashback - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Description** | **string** | A brief description of why this cashback was paid. | -**Amount** | [**MoneyObject**](MoneyObject.md) | The total amount of cashback paid, represented as a positive value. | - -## Methods - -### NewTransactionResourceAttributesCashback - -`func NewTransactionResourceAttributesCashback(description string, amount MoneyObject, ) *TransactionResourceAttributesCashback` - -NewTransactionResourceAttributesCashback instantiates a new TransactionResourceAttributesCashback object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactionResourceAttributesCashbackWithDefaults - -`func NewTransactionResourceAttributesCashbackWithDefaults() *TransactionResourceAttributesCashback` - -NewTransactionResourceAttributesCashbackWithDefaults instantiates a new TransactionResourceAttributesCashback object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetDescription - -`func (o *TransactionResourceAttributesCashback) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *TransactionResourceAttributesCashback) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *TransactionResourceAttributesCashback) SetDescription(v string)` - -SetDescription sets Description field to given value. - - -### GetAmount - -`func (o *TransactionResourceAttributesCashback) GetAmount() MoneyObject` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *TransactionResourceAttributesCashback) GetAmountOk() (*MoneyObject, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *TransactionResourceAttributesCashback) SetAmount(v MoneyObject)` - -SetAmount sets Amount field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TransactionResourceAttributesForeignAmount.md b/expense-manager/openapi/docs/TransactionResourceAttributesForeignAmount.md deleted file mode 100644 index d469f82..0000000 --- a/expense-manager/openapi/docs/TransactionResourceAttributesForeignAmount.md +++ /dev/null @@ -1,93 +0,0 @@ -# TransactionResourceAttributesForeignAmount - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CurrencyCode** | **string** | The ISO 4217 currency code. | -**Value** | **string** | The amount of money, formatted as a string in the relevant currency. For example, for an Australian dollar value of $10.56, this field will be `\"10.56\"`. The currency symbol is not included in the string. | -**ValueInBaseUnits** | **int32** | The amount of money in the smallest denomination for the currency, as a 64-bit integer. For example, for an Australian dollar value of $10.56, this field will be `1056`. | - -## Methods - -### NewTransactionResourceAttributesForeignAmount - -`func NewTransactionResourceAttributesForeignAmount(currencyCode string, value string, valueInBaseUnits int32, ) *TransactionResourceAttributesForeignAmount` - -NewTransactionResourceAttributesForeignAmount instantiates a new TransactionResourceAttributesForeignAmount object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactionResourceAttributesForeignAmountWithDefaults - -`func NewTransactionResourceAttributesForeignAmountWithDefaults() *TransactionResourceAttributesForeignAmount` - -NewTransactionResourceAttributesForeignAmountWithDefaults instantiates a new TransactionResourceAttributesForeignAmount object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCurrencyCode - -`func (o *TransactionResourceAttributesForeignAmount) GetCurrencyCode() string` - -GetCurrencyCode returns the CurrencyCode field if non-nil, zero value otherwise. - -### GetCurrencyCodeOk - -`func (o *TransactionResourceAttributesForeignAmount) GetCurrencyCodeOk() (*string, bool)` - -GetCurrencyCodeOk returns a tuple with the CurrencyCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCurrencyCode - -`func (o *TransactionResourceAttributesForeignAmount) SetCurrencyCode(v string)` - -SetCurrencyCode sets CurrencyCode field to given value. - - -### GetValue - -`func (o *TransactionResourceAttributesForeignAmount) GetValue() string` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *TransactionResourceAttributesForeignAmount) GetValueOk() (*string, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *TransactionResourceAttributesForeignAmount) SetValue(v string)` - -SetValue sets Value field to given value. - - -### GetValueInBaseUnits - -`func (o *TransactionResourceAttributesForeignAmount) GetValueInBaseUnits() int32` - -GetValueInBaseUnits returns the ValueInBaseUnits field if non-nil, zero value otherwise. - -### GetValueInBaseUnitsOk - -`func (o *TransactionResourceAttributesForeignAmount) GetValueInBaseUnitsOk() (*int32, bool)` - -GetValueInBaseUnitsOk returns a tuple with the ValueInBaseUnits field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValueInBaseUnits - -`func (o *TransactionResourceAttributesForeignAmount) SetValueInBaseUnits(v int32)` - -SetValueInBaseUnits sets ValueInBaseUnits field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TransactionResourceAttributesHoldInfo.md b/expense-manager/openapi/docs/TransactionResourceAttributesHoldInfo.md deleted file mode 100644 index 7de7d5f..0000000 --- a/expense-manager/openapi/docs/TransactionResourceAttributesHoldInfo.md +++ /dev/null @@ -1,82 +0,0 @@ -# TransactionResourceAttributesHoldInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | [**MoneyObject**](MoneyObject.md) | The amount of this transaction while in the `HELD` status, in Australian dollars. | -**ForeignAmount** | [**NullableHoldInfoObjectForeignAmount**](HoldInfoObjectForeignAmount.md) | | - -## Methods - -### NewTransactionResourceAttributesHoldInfo - -`func NewTransactionResourceAttributesHoldInfo(amount MoneyObject, foreignAmount NullableHoldInfoObjectForeignAmount, ) *TransactionResourceAttributesHoldInfo` - -NewTransactionResourceAttributesHoldInfo instantiates a new TransactionResourceAttributesHoldInfo object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactionResourceAttributesHoldInfoWithDefaults - -`func NewTransactionResourceAttributesHoldInfoWithDefaults() *TransactionResourceAttributesHoldInfo` - -NewTransactionResourceAttributesHoldInfoWithDefaults instantiates a new TransactionResourceAttributesHoldInfo object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAmount - -`func (o *TransactionResourceAttributesHoldInfo) GetAmount() MoneyObject` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *TransactionResourceAttributesHoldInfo) GetAmountOk() (*MoneyObject, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *TransactionResourceAttributesHoldInfo) SetAmount(v MoneyObject)` - -SetAmount sets Amount field to given value. - - -### GetForeignAmount - -`func (o *TransactionResourceAttributesHoldInfo) GetForeignAmount() HoldInfoObjectForeignAmount` - -GetForeignAmount returns the ForeignAmount field if non-nil, zero value otherwise. - -### GetForeignAmountOk - -`func (o *TransactionResourceAttributesHoldInfo) GetForeignAmountOk() (*HoldInfoObjectForeignAmount, bool)` - -GetForeignAmountOk returns a tuple with the ForeignAmount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetForeignAmount - -`func (o *TransactionResourceAttributesHoldInfo) SetForeignAmount(v HoldInfoObjectForeignAmount)` - -SetForeignAmount sets ForeignAmount field to given value. - - -### SetForeignAmountNil - -`func (o *TransactionResourceAttributesHoldInfo) SetForeignAmountNil(b bool)` - - SetForeignAmountNil sets the value for ForeignAmount to be an explicit nil - -### UnsetForeignAmount -`func (o *TransactionResourceAttributesHoldInfo) UnsetForeignAmount()` - -UnsetForeignAmount ensures that no value is present for ForeignAmount, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TransactionResourceAttributesRoundUp.md b/expense-manager/openapi/docs/TransactionResourceAttributesRoundUp.md deleted file mode 100644 index d709a64..0000000 --- a/expense-manager/openapi/docs/TransactionResourceAttributesRoundUp.md +++ /dev/null @@ -1,82 +0,0 @@ -# TransactionResourceAttributesRoundUp - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Amount** | [**MoneyObject**](MoneyObject.md) | The total amount of this Round Up, including any boosts, represented as a negative value. | -**BoostPortion** | [**NullableRoundUpObjectBoostPortion**](RoundUpObjectBoostPortion.md) | | - -## Methods - -### NewTransactionResourceAttributesRoundUp - -`func NewTransactionResourceAttributesRoundUp(amount MoneyObject, boostPortion NullableRoundUpObjectBoostPortion, ) *TransactionResourceAttributesRoundUp` - -NewTransactionResourceAttributesRoundUp instantiates a new TransactionResourceAttributesRoundUp object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactionResourceAttributesRoundUpWithDefaults - -`func NewTransactionResourceAttributesRoundUpWithDefaults() *TransactionResourceAttributesRoundUp` - -NewTransactionResourceAttributesRoundUpWithDefaults instantiates a new TransactionResourceAttributesRoundUp object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAmount - -`func (o *TransactionResourceAttributesRoundUp) GetAmount() MoneyObject` - -GetAmount returns the Amount field if non-nil, zero value otherwise. - -### GetAmountOk - -`func (o *TransactionResourceAttributesRoundUp) GetAmountOk() (*MoneyObject, bool)` - -GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAmount - -`func (o *TransactionResourceAttributesRoundUp) SetAmount(v MoneyObject)` - -SetAmount sets Amount field to given value. - - -### GetBoostPortion - -`func (o *TransactionResourceAttributesRoundUp) GetBoostPortion() RoundUpObjectBoostPortion` - -GetBoostPortion returns the BoostPortion field if non-nil, zero value otherwise. - -### GetBoostPortionOk - -`func (o *TransactionResourceAttributesRoundUp) GetBoostPortionOk() (*RoundUpObjectBoostPortion, bool)` - -GetBoostPortionOk returns a tuple with the BoostPortion field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBoostPortion - -`func (o *TransactionResourceAttributesRoundUp) SetBoostPortion(v RoundUpObjectBoostPortion)` - -SetBoostPortion sets BoostPortion field to given value. - - -### SetBoostPortionNil - -`func (o *TransactionResourceAttributesRoundUp) SetBoostPortionNil(b bool)` - - SetBoostPortionNil sets the value for BoostPortion to be an explicit nil - -### UnsetBoostPortion -`func (o *TransactionResourceAttributesRoundUp) UnsetBoostPortion()` - -UnsetBoostPortion ensures that no value is present for BoostPortion, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TransactionResourceRelationships.md b/expense-manager/openapi/docs/TransactionResourceRelationships.md deleted file mode 100644 index 2125bf6..0000000 --- a/expense-manager/openapi/docs/TransactionResourceRelationships.md +++ /dev/null @@ -1,135 +0,0 @@ -# TransactionResourceRelationships - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Account** | [**TransactionResourceRelationshipsAccount**](TransactionResourceRelationshipsAccount.md) | | -**TransferAccount** | [**TransactionResourceRelationshipsTransferAccount**](TransactionResourceRelationshipsTransferAccount.md) | | -**Category** | [**TransactionResourceRelationshipsCategory**](TransactionResourceRelationshipsCategory.md) | | -**ParentCategory** | [**CategoryResourceRelationshipsParent**](CategoryResourceRelationshipsParent.md) | | -**Tags** | [**TransactionResourceRelationshipsTags**](TransactionResourceRelationshipsTags.md) | | - -## Methods - -### NewTransactionResourceRelationships - -`func NewTransactionResourceRelationships(account TransactionResourceRelationshipsAccount, transferAccount TransactionResourceRelationshipsTransferAccount, category TransactionResourceRelationshipsCategory, parentCategory CategoryResourceRelationshipsParent, tags TransactionResourceRelationshipsTags, ) *TransactionResourceRelationships` - -NewTransactionResourceRelationships instantiates a new TransactionResourceRelationships object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactionResourceRelationshipsWithDefaults - -`func NewTransactionResourceRelationshipsWithDefaults() *TransactionResourceRelationships` - -NewTransactionResourceRelationshipsWithDefaults instantiates a new TransactionResourceRelationships object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAccount - -`func (o *TransactionResourceRelationships) GetAccount() TransactionResourceRelationshipsAccount` - -GetAccount returns the Account field if non-nil, zero value otherwise. - -### GetAccountOk - -`func (o *TransactionResourceRelationships) GetAccountOk() (*TransactionResourceRelationshipsAccount, bool)` - -GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccount - -`func (o *TransactionResourceRelationships) SetAccount(v TransactionResourceRelationshipsAccount)` - -SetAccount sets Account field to given value. - - -### GetTransferAccount - -`func (o *TransactionResourceRelationships) GetTransferAccount() TransactionResourceRelationshipsTransferAccount` - -GetTransferAccount returns the TransferAccount field if non-nil, zero value otherwise. - -### GetTransferAccountOk - -`func (o *TransactionResourceRelationships) GetTransferAccountOk() (*TransactionResourceRelationshipsTransferAccount, bool)` - -GetTransferAccountOk returns a tuple with the TransferAccount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTransferAccount - -`func (o *TransactionResourceRelationships) SetTransferAccount(v TransactionResourceRelationshipsTransferAccount)` - -SetTransferAccount sets TransferAccount field to given value. - - -### GetCategory - -`func (o *TransactionResourceRelationships) GetCategory() TransactionResourceRelationshipsCategory` - -GetCategory returns the Category field if non-nil, zero value otherwise. - -### GetCategoryOk - -`func (o *TransactionResourceRelationships) GetCategoryOk() (*TransactionResourceRelationshipsCategory, bool)` - -GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCategory - -`func (o *TransactionResourceRelationships) SetCategory(v TransactionResourceRelationshipsCategory)` - -SetCategory sets Category field to given value. - - -### GetParentCategory - -`func (o *TransactionResourceRelationships) GetParentCategory() CategoryResourceRelationshipsParent` - -GetParentCategory returns the ParentCategory field if non-nil, zero value otherwise. - -### GetParentCategoryOk - -`func (o *TransactionResourceRelationships) GetParentCategoryOk() (*CategoryResourceRelationshipsParent, bool)` - -GetParentCategoryOk returns a tuple with the ParentCategory field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetParentCategory - -`func (o *TransactionResourceRelationships) SetParentCategory(v CategoryResourceRelationshipsParent)` - -SetParentCategory sets ParentCategory field to given value. - - -### GetTags - -`func (o *TransactionResourceRelationships) GetTags() TransactionResourceRelationshipsTags` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *TransactionResourceRelationships) GetTagsOk() (*TransactionResourceRelationshipsTags, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *TransactionResourceRelationships) SetTags(v TransactionResourceRelationshipsTags)` - -SetTags sets Tags field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TransactionResourceRelationshipsAccount.md b/expense-manager/openapi/docs/TransactionResourceRelationshipsAccount.md deleted file mode 100644 index dc24d54..0000000 --- a/expense-manager/openapi/docs/TransactionResourceRelationshipsAccount.md +++ /dev/null @@ -1,77 +0,0 @@ -# TransactionResourceRelationshipsAccount - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**TransactionResourceRelationshipsAccountData**](TransactionResourceRelationshipsAccountData.md) | | -**Links** | Pointer to [**AccountResourceRelationshipsTransactionsLinks**](AccountResourceRelationshipsTransactionsLinks.md) | | [optional] - -## Methods - -### NewTransactionResourceRelationshipsAccount - -`func NewTransactionResourceRelationshipsAccount(data TransactionResourceRelationshipsAccountData, ) *TransactionResourceRelationshipsAccount` - -NewTransactionResourceRelationshipsAccount instantiates a new TransactionResourceRelationshipsAccount object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactionResourceRelationshipsAccountWithDefaults - -`func NewTransactionResourceRelationshipsAccountWithDefaults() *TransactionResourceRelationshipsAccount` - -NewTransactionResourceRelationshipsAccountWithDefaults instantiates a new TransactionResourceRelationshipsAccount object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *TransactionResourceRelationshipsAccount) GetData() TransactionResourceRelationshipsAccountData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *TransactionResourceRelationshipsAccount) GetDataOk() (*TransactionResourceRelationshipsAccountData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *TransactionResourceRelationshipsAccount) SetData(v TransactionResourceRelationshipsAccountData)` - -SetData sets Data field to given value. - - -### GetLinks - -`func (o *TransactionResourceRelationshipsAccount) GetLinks() AccountResourceRelationshipsTransactionsLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *TransactionResourceRelationshipsAccount) GetLinksOk() (*AccountResourceRelationshipsTransactionsLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *TransactionResourceRelationshipsAccount) SetLinks(v AccountResourceRelationshipsTransactionsLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *TransactionResourceRelationshipsAccount) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TransactionResourceRelationshipsAccountData.md b/expense-manager/openapi/docs/TransactionResourceRelationshipsAccountData.md deleted file mode 100644 index af260c0..0000000 --- a/expense-manager/openapi/docs/TransactionResourceRelationshipsAccountData.md +++ /dev/null @@ -1,72 +0,0 @@ -# TransactionResourceRelationshipsAccountData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | The type of this resource: `accounts` | -**Id** | **string** | The unique identifier of the resource within its type. | - -## Methods - -### NewTransactionResourceRelationshipsAccountData - -`func NewTransactionResourceRelationshipsAccountData(type_ string, id string, ) *TransactionResourceRelationshipsAccountData` - -NewTransactionResourceRelationshipsAccountData instantiates a new TransactionResourceRelationshipsAccountData object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactionResourceRelationshipsAccountDataWithDefaults - -`func NewTransactionResourceRelationshipsAccountDataWithDefaults() *TransactionResourceRelationshipsAccountData` - -NewTransactionResourceRelationshipsAccountDataWithDefaults instantiates a new TransactionResourceRelationshipsAccountData object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *TransactionResourceRelationshipsAccountData) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *TransactionResourceRelationshipsAccountData) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *TransactionResourceRelationshipsAccountData) SetType(v string)` - -SetType sets Type field to given value. - - -### GetId - -`func (o *TransactionResourceRelationshipsAccountData) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *TransactionResourceRelationshipsAccountData) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *TransactionResourceRelationshipsAccountData) SetId(v string)` - -SetId sets Id field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TransactionResourceRelationshipsCategory.md b/expense-manager/openapi/docs/TransactionResourceRelationshipsCategory.md deleted file mode 100644 index d88158f..0000000 --- a/expense-manager/openapi/docs/TransactionResourceRelationshipsCategory.md +++ /dev/null @@ -1,87 +0,0 @@ -# TransactionResourceRelationshipsCategory - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**NullableCategoryResourceRelationshipsParentData**](CategoryResourceRelationshipsParentData.md) | | -**Links** | Pointer to [**TransactionResourceRelationshipsCategoryLinks**](TransactionResourceRelationshipsCategoryLinks.md) | | [optional] - -## Methods - -### NewTransactionResourceRelationshipsCategory - -`func NewTransactionResourceRelationshipsCategory(data NullableCategoryResourceRelationshipsParentData, ) *TransactionResourceRelationshipsCategory` - -NewTransactionResourceRelationshipsCategory instantiates a new TransactionResourceRelationshipsCategory object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactionResourceRelationshipsCategoryWithDefaults - -`func NewTransactionResourceRelationshipsCategoryWithDefaults() *TransactionResourceRelationshipsCategory` - -NewTransactionResourceRelationshipsCategoryWithDefaults instantiates a new TransactionResourceRelationshipsCategory object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *TransactionResourceRelationshipsCategory) GetData() CategoryResourceRelationshipsParentData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *TransactionResourceRelationshipsCategory) GetDataOk() (*CategoryResourceRelationshipsParentData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *TransactionResourceRelationshipsCategory) SetData(v CategoryResourceRelationshipsParentData)` - -SetData sets Data field to given value. - - -### SetDataNil - -`func (o *TransactionResourceRelationshipsCategory) SetDataNil(b bool)` - - SetDataNil sets the value for Data to be an explicit nil - -### UnsetData -`func (o *TransactionResourceRelationshipsCategory) UnsetData()` - -UnsetData ensures that no value is present for Data, not even an explicit nil -### GetLinks - -`func (o *TransactionResourceRelationshipsCategory) GetLinks() TransactionResourceRelationshipsCategoryLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *TransactionResourceRelationshipsCategory) GetLinksOk() (*TransactionResourceRelationshipsCategoryLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *TransactionResourceRelationshipsCategory) SetLinks(v TransactionResourceRelationshipsCategoryLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *TransactionResourceRelationshipsCategory) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TransactionResourceRelationshipsCategoryLinks.md b/expense-manager/openapi/docs/TransactionResourceRelationshipsCategoryLinks.md deleted file mode 100644 index ee8cb05..0000000 --- a/expense-manager/openapi/docs/TransactionResourceRelationshipsCategoryLinks.md +++ /dev/null @@ -1,77 +0,0 @@ -# TransactionResourceRelationshipsCategoryLinks - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Self** | **string** | The link to retrieve or modify linkage between this resources and the related resource(s) in this relationship. | -**Related** | Pointer to **string** | The link to retrieve the related resource(s) in this relationship. | [optional] - -## Methods - -### NewTransactionResourceRelationshipsCategoryLinks - -`func NewTransactionResourceRelationshipsCategoryLinks(self string, ) *TransactionResourceRelationshipsCategoryLinks` - -NewTransactionResourceRelationshipsCategoryLinks instantiates a new TransactionResourceRelationshipsCategoryLinks object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactionResourceRelationshipsCategoryLinksWithDefaults - -`func NewTransactionResourceRelationshipsCategoryLinksWithDefaults() *TransactionResourceRelationshipsCategoryLinks` - -NewTransactionResourceRelationshipsCategoryLinksWithDefaults instantiates a new TransactionResourceRelationshipsCategoryLinks object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetSelf - -`func (o *TransactionResourceRelationshipsCategoryLinks) GetSelf() string` - -GetSelf returns the Self field if non-nil, zero value otherwise. - -### GetSelfOk - -`func (o *TransactionResourceRelationshipsCategoryLinks) GetSelfOk() (*string, bool)` - -GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSelf - -`func (o *TransactionResourceRelationshipsCategoryLinks) SetSelf(v string)` - -SetSelf sets Self field to given value. - - -### GetRelated - -`func (o *TransactionResourceRelationshipsCategoryLinks) GetRelated() string` - -GetRelated returns the Related field if non-nil, zero value otherwise. - -### GetRelatedOk - -`func (o *TransactionResourceRelationshipsCategoryLinks) GetRelatedOk() (*string, bool)` - -GetRelatedOk returns a tuple with the Related field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRelated - -`func (o *TransactionResourceRelationshipsCategoryLinks) SetRelated(v string)` - -SetRelated sets Related field to given value. - -### HasRelated - -`func (o *TransactionResourceRelationshipsCategoryLinks) HasRelated() bool` - -HasRelated returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TransactionResourceRelationshipsTags.md b/expense-manager/openapi/docs/TransactionResourceRelationshipsTags.md deleted file mode 100644 index 495a362..0000000 --- a/expense-manager/openapi/docs/TransactionResourceRelationshipsTags.md +++ /dev/null @@ -1,77 +0,0 @@ -# TransactionResourceRelationshipsTags - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**[]TransactionResourceRelationshipsTagsDataInner**](TransactionResourceRelationshipsTagsDataInner.md) | | -**Links** | Pointer to [**TransactionResourceRelationshipsTagsLinks**](TransactionResourceRelationshipsTagsLinks.md) | | [optional] - -## Methods - -### NewTransactionResourceRelationshipsTags - -`func NewTransactionResourceRelationshipsTags(data []TransactionResourceRelationshipsTagsDataInner, ) *TransactionResourceRelationshipsTags` - -NewTransactionResourceRelationshipsTags instantiates a new TransactionResourceRelationshipsTags object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactionResourceRelationshipsTagsWithDefaults - -`func NewTransactionResourceRelationshipsTagsWithDefaults() *TransactionResourceRelationshipsTags` - -NewTransactionResourceRelationshipsTagsWithDefaults instantiates a new TransactionResourceRelationshipsTags object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *TransactionResourceRelationshipsTags) GetData() []TransactionResourceRelationshipsTagsDataInner` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *TransactionResourceRelationshipsTags) GetDataOk() (*[]TransactionResourceRelationshipsTagsDataInner, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *TransactionResourceRelationshipsTags) SetData(v []TransactionResourceRelationshipsTagsDataInner)` - -SetData sets Data field to given value. - - -### GetLinks - -`func (o *TransactionResourceRelationshipsTags) GetLinks() TransactionResourceRelationshipsTagsLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *TransactionResourceRelationshipsTags) GetLinksOk() (*TransactionResourceRelationshipsTagsLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *TransactionResourceRelationshipsTags) SetLinks(v TransactionResourceRelationshipsTagsLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *TransactionResourceRelationshipsTags) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TransactionResourceRelationshipsTagsDataInner.md b/expense-manager/openapi/docs/TransactionResourceRelationshipsTagsDataInner.md deleted file mode 100644 index 108bc99..0000000 --- a/expense-manager/openapi/docs/TransactionResourceRelationshipsTagsDataInner.md +++ /dev/null @@ -1,72 +0,0 @@ -# TransactionResourceRelationshipsTagsDataInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | The type of this resource: `tags` | -**Id** | **string** | The label of the tag, which also acts as the tag’s unique identifier. | - -## Methods - -### NewTransactionResourceRelationshipsTagsDataInner - -`func NewTransactionResourceRelationshipsTagsDataInner(type_ string, id string, ) *TransactionResourceRelationshipsTagsDataInner` - -NewTransactionResourceRelationshipsTagsDataInner instantiates a new TransactionResourceRelationshipsTagsDataInner object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactionResourceRelationshipsTagsDataInnerWithDefaults - -`func NewTransactionResourceRelationshipsTagsDataInnerWithDefaults() *TransactionResourceRelationshipsTagsDataInner` - -NewTransactionResourceRelationshipsTagsDataInnerWithDefaults instantiates a new TransactionResourceRelationshipsTagsDataInner object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *TransactionResourceRelationshipsTagsDataInner) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *TransactionResourceRelationshipsTagsDataInner) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *TransactionResourceRelationshipsTagsDataInner) SetType(v string)` - -SetType sets Type field to given value. - - -### GetId - -`func (o *TransactionResourceRelationshipsTagsDataInner) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *TransactionResourceRelationshipsTagsDataInner) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *TransactionResourceRelationshipsTagsDataInner) SetId(v string)` - -SetId sets Id field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TransactionResourceRelationshipsTagsLinks.md b/expense-manager/openapi/docs/TransactionResourceRelationshipsTagsLinks.md deleted file mode 100644 index d2c40df..0000000 --- a/expense-manager/openapi/docs/TransactionResourceRelationshipsTagsLinks.md +++ /dev/null @@ -1,51 +0,0 @@ -# TransactionResourceRelationshipsTagsLinks - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Self** | **string** | The link to retrieve or modify linkage between this resources and the related resource(s) in this relationship. | - -## Methods - -### NewTransactionResourceRelationshipsTagsLinks - -`func NewTransactionResourceRelationshipsTagsLinks(self string, ) *TransactionResourceRelationshipsTagsLinks` - -NewTransactionResourceRelationshipsTagsLinks instantiates a new TransactionResourceRelationshipsTagsLinks object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactionResourceRelationshipsTagsLinksWithDefaults - -`func NewTransactionResourceRelationshipsTagsLinksWithDefaults() *TransactionResourceRelationshipsTagsLinks` - -NewTransactionResourceRelationshipsTagsLinksWithDefaults instantiates a new TransactionResourceRelationshipsTagsLinks object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetSelf - -`func (o *TransactionResourceRelationshipsTagsLinks) GetSelf() string` - -GetSelf returns the Self field if non-nil, zero value otherwise. - -### GetSelfOk - -`func (o *TransactionResourceRelationshipsTagsLinks) GetSelfOk() (*string, bool)` - -GetSelfOk returns a tuple with the Self field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSelf - -`func (o *TransactionResourceRelationshipsTagsLinks) SetSelf(v string)` - -SetSelf sets Self field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TransactionResourceRelationshipsTransferAccount.md b/expense-manager/openapi/docs/TransactionResourceRelationshipsTransferAccount.md deleted file mode 100644 index c6202fc..0000000 --- a/expense-manager/openapi/docs/TransactionResourceRelationshipsTransferAccount.md +++ /dev/null @@ -1,87 +0,0 @@ -# TransactionResourceRelationshipsTransferAccount - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**NullableTransactionResourceRelationshipsTransferAccountData**](TransactionResourceRelationshipsTransferAccountData.md) | | -**Links** | Pointer to [**AccountResourceRelationshipsTransactionsLinks**](AccountResourceRelationshipsTransactionsLinks.md) | | [optional] - -## Methods - -### NewTransactionResourceRelationshipsTransferAccount - -`func NewTransactionResourceRelationshipsTransferAccount(data NullableTransactionResourceRelationshipsTransferAccountData, ) *TransactionResourceRelationshipsTransferAccount` - -NewTransactionResourceRelationshipsTransferAccount instantiates a new TransactionResourceRelationshipsTransferAccount object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactionResourceRelationshipsTransferAccountWithDefaults - -`func NewTransactionResourceRelationshipsTransferAccountWithDefaults() *TransactionResourceRelationshipsTransferAccount` - -NewTransactionResourceRelationshipsTransferAccountWithDefaults instantiates a new TransactionResourceRelationshipsTransferAccount object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *TransactionResourceRelationshipsTransferAccount) GetData() TransactionResourceRelationshipsTransferAccountData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *TransactionResourceRelationshipsTransferAccount) GetDataOk() (*TransactionResourceRelationshipsTransferAccountData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *TransactionResourceRelationshipsTransferAccount) SetData(v TransactionResourceRelationshipsTransferAccountData)` - -SetData sets Data field to given value. - - -### SetDataNil - -`func (o *TransactionResourceRelationshipsTransferAccount) SetDataNil(b bool)` - - SetDataNil sets the value for Data to be an explicit nil - -### UnsetData -`func (o *TransactionResourceRelationshipsTransferAccount) UnsetData()` - -UnsetData ensures that no value is present for Data, not even an explicit nil -### GetLinks - -`func (o *TransactionResourceRelationshipsTransferAccount) GetLinks() AccountResourceRelationshipsTransactionsLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *TransactionResourceRelationshipsTransferAccount) GetLinksOk() (*AccountResourceRelationshipsTransactionsLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *TransactionResourceRelationshipsTransferAccount) SetLinks(v AccountResourceRelationshipsTransactionsLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *TransactionResourceRelationshipsTransferAccount) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TransactionResourceRelationshipsTransferAccountData.md b/expense-manager/openapi/docs/TransactionResourceRelationshipsTransferAccountData.md deleted file mode 100644 index 18a2c64..0000000 --- a/expense-manager/openapi/docs/TransactionResourceRelationshipsTransferAccountData.md +++ /dev/null @@ -1,72 +0,0 @@ -# TransactionResourceRelationshipsTransferAccountData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | The type of this resource: `accounts` | -**Id** | **string** | The unique identifier of the resource within its type. | - -## Methods - -### NewTransactionResourceRelationshipsTransferAccountData - -`func NewTransactionResourceRelationshipsTransferAccountData(type_ string, id string, ) *TransactionResourceRelationshipsTransferAccountData` - -NewTransactionResourceRelationshipsTransferAccountData instantiates a new TransactionResourceRelationshipsTransferAccountData object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewTransactionResourceRelationshipsTransferAccountDataWithDefaults - -`func NewTransactionResourceRelationshipsTransferAccountDataWithDefaults() *TransactionResourceRelationshipsTransferAccountData` - -NewTransactionResourceRelationshipsTransferAccountDataWithDefaults instantiates a new TransactionResourceRelationshipsTransferAccountData object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *TransactionResourceRelationshipsTransferAccountData) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *TransactionResourceRelationshipsTransferAccountData) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *TransactionResourceRelationshipsTransferAccountData) SetType(v string)` - -SetType sets Type field to given value. - - -### GetId - -`func (o *TransactionResourceRelationshipsTransferAccountData) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *TransactionResourceRelationshipsTransferAccountData) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *TransactionResourceRelationshipsTransferAccountData) SetId(v string)` - -SetId sets Id field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TransactionStatusEnum.md b/expense-manager/openapi/docs/TransactionStatusEnum.md deleted file mode 100644 index eada66b..0000000 --- a/expense-manager/openapi/docs/TransactionStatusEnum.md +++ /dev/null @@ -1,13 +0,0 @@ -# TransactionStatusEnum - -## Enum - - -* `HELD` (value: `"HELD"`) - -* `SETTLED` (value: `"SETTLED"`) - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/TransactionsAPI.md b/expense-manager/openapi/docs/TransactionsAPI.md deleted file mode 100644 index bbf9365..0000000 --- a/expense-manager/openapi/docs/TransactionsAPI.md +++ /dev/null @@ -1,241 +0,0 @@ -# \TransactionsAPI - -All URIs are relative to *https://api.up.com.au/api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**AccountsAccountIdTransactionsGet**](TransactionsAPI.md#AccountsAccountIdTransactionsGet) | **Get** /accounts/{accountId}/transactions | List transactions by account -[**TransactionsGet**](TransactionsAPI.md#TransactionsGet) | **Get** /transactions | List transactions -[**TransactionsIdGet**](TransactionsAPI.md#TransactionsIdGet) | **Get** /transactions/{id} | Retrieve transaction - - - -## AccountsAccountIdTransactionsGet - -> ListTransactionsResponse AccountsAccountIdTransactionsGet(ctx, accountId).PageSize(pageSize).FilterStatus(filterStatus).FilterSince(filterSince).FilterUntil(filterUntil).FilterCategory(filterCategory).FilterTag(filterTag).Execute() - -List transactions by account - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - "time" - openapiclient "github.com/ESteanes/expense-manager" -) - -func main() { - accountId := "b5544658-4bbd-4eb1-8f63-a9909e0f564b" // string | The unique identifier for the account. - pageSize := int32(30) // int32 | The number of records to return in each page. (optional) - filterStatus := openapiclient.TransactionStatusEnum("HELD") // TransactionStatusEnum | The transaction status for which to return records. This can be used to filter `HELD` transactions from those that are `SETTLED`. (optional) - filterSince := time.Now() // time.Time | The start date-time from which to return records, formatted according to rfc-3339. Not to be used for pagination purposes. (optional) - filterUntil := time.Now() // time.Time | The end date-time up to which to return records, formatted according to rfc-3339. Not to be used for pagination purposes. (optional) - filterCategory := "good-life" // string | 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. (optional) - filterTag := "Holiday" // string | 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. (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TransactionsAPI.AccountsAccountIdTransactionsGet(context.Background(), accountId).PageSize(pageSize).FilterStatus(filterStatus).FilterSince(filterSince).FilterUntil(filterUntil).FilterCategory(filterCategory).FilterTag(filterTag).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransactionsAPI.AccountsAccountIdTransactionsGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `AccountsAccountIdTransactionsGet`: ListTransactionsResponse - fmt.Fprintf(os.Stdout, "Response from `TransactionsAPI.AccountsAccountIdTransactionsGet`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**accountId** | **string** | The unique identifier for the account. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiAccountsAccountIdTransactionsGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **pageSize** | **int32** | The number of records to return in each page. | - **filterStatus** | [**TransactionStatusEnum**](TransactionStatusEnum.md) | The transaction status for which to return records. This can be used to filter `HELD` transactions from those that are `SETTLED`. | - **filterSince** | **time.Time** | The start date-time from which to return records, formatted according to rfc-3339. Not to be used for pagination purposes. | - **filterUntil** | **time.Time** | The end date-time up to which to return records, formatted according to rfc-3339. Not to be used for pagination purposes. | - **filterCategory** | **string** | 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. | - **filterTag** | **string** | 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. | - -### Return type - -[**ListTransactionsResponse**](ListTransactionsResponse.md) - -### Authorization - -[bearer_auth](../README.md#bearer_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## TransactionsGet - -> ListTransactionsResponse TransactionsGet(ctx).PageSize(pageSize).FilterStatus(filterStatus).FilterSince(filterSince).FilterUntil(filterUntil).FilterCategory(filterCategory).FilterTag(filterTag).Execute() - -List transactions - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - "time" - openapiclient "github.com/ESteanes/expense-manager" -) - -func main() { - pageSize := int32(30) // int32 | The number of records to return in each page. (optional) - filterStatus := openapiclient.TransactionStatusEnum("HELD") // TransactionStatusEnum | The transaction status for which to return records. This can be used to filter `HELD` transactions from those that are `SETTLED`. (optional) - filterSince := time.Now() // time.Time | The start date-time from which to return records, formatted according to rfc-3339. Not to be used for pagination purposes. (optional) - filterUntil := time.Now() // time.Time | The end date-time up to which to return records, formatted according to rfc-3339. Not to be used for pagination purposes. (optional) - filterCategory := "good-life" // string | 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. (optional) - filterTag := "Holiday" // string | 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. (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TransactionsAPI.TransactionsGet(context.Background()).PageSize(pageSize).FilterStatus(filterStatus).FilterSince(filterSince).FilterUntil(filterUntil).FilterCategory(filterCategory).FilterTag(filterTag).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransactionsAPI.TransactionsGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TransactionsGet`: ListTransactionsResponse - fmt.Fprintf(os.Stdout, "Response from `TransactionsAPI.TransactionsGet`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiTransactionsGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pageSize** | **int32** | The number of records to return in each page. | - **filterStatus** | [**TransactionStatusEnum**](TransactionStatusEnum.md) | The transaction status for which to return records. This can be used to filter `HELD` transactions from those that are `SETTLED`. | - **filterSince** | **time.Time** | The start date-time from which to return records, formatted according to rfc-3339. Not to be used for pagination purposes. | - **filterUntil** | **time.Time** | The end date-time up to which to return records, formatted according to rfc-3339. Not to be used for pagination purposes. | - **filterCategory** | **string** | 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. | - **filterTag** | **string** | 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. | - -### Return type - -[**ListTransactionsResponse**](ListTransactionsResponse.md) - -### Authorization - -[bearer_auth](../README.md#bearer_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## TransactionsIdGet - -> GetTransactionResponse TransactionsIdGet(ctx, id).Execute() - -Retrieve transaction - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/ESteanes/expense-manager" -) - -func main() { - id := "7a9d19f9-106c-4e29-8591-52fc5d8f09c5" // string | The unique identifier for the transaction. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TransactionsAPI.TransactionsIdGet(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TransactionsAPI.TransactionsIdGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `TransactionsIdGet`: GetTransactionResponse - fmt.Fprintf(os.Stdout, "Response from `TransactionsAPI.TransactionsIdGet`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | The unique identifier for the transaction. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiTransactionsIdGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**GetTransactionResponse**](GetTransactionResponse.md) - -### Authorization - -[bearer_auth](../README.md#bearer_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/expense-manager/openapi/docs/UpdateTransactionCategoryRequest.md b/expense-manager/openapi/docs/UpdateTransactionCategoryRequest.md deleted file mode 100644 index 9374ac4..0000000 --- a/expense-manager/openapi/docs/UpdateTransactionCategoryRequest.md +++ /dev/null @@ -1,61 +0,0 @@ -# UpdateTransactionCategoryRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**NullableUpdateTransactionCategoryRequestData**](UpdateTransactionCategoryRequestData.md) | | - -## Methods - -### NewUpdateTransactionCategoryRequest - -`func NewUpdateTransactionCategoryRequest(data NullableUpdateTransactionCategoryRequestData, ) *UpdateTransactionCategoryRequest` - -NewUpdateTransactionCategoryRequest instantiates a new UpdateTransactionCategoryRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewUpdateTransactionCategoryRequestWithDefaults - -`func NewUpdateTransactionCategoryRequestWithDefaults() *UpdateTransactionCategoryRequest` - -NewUpdateTransactionCategoryRequestWithDefaults instantiates a new UpdateTransactionCategoryRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *UpdateTransactionCategoryRequest) GetData() UpdateTransactionCategoryRequestData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *UpdateTransactionCategoryRequest) GetDataOk() (*UpdateTransactionCategoryRequestData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *UpdateTransactionCategoryRequest) SetData(v UpdateTransactionCategoryRequestData)` - -SetData sets Data field to given value. - - -### SetDataNil - -`func (o *UpdateTransactionCategoryRequest) SetDataNil(b bool)` - - SetDataNil sets the value for Data to be an explicit nil - -### UnsetData -`func (o *UpdateTransactionCategoryRequest) UnsetData()` - -UnsetData ensures that no value is present for Data, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/UpdateTransactionCategoryRequestData.md b/expense-manager/openapi/docs/UpdateTransactionCategoryRequestData.md deleted file mode 100644 index 63c7d61..0000000 --- a/expense-manager/openapi/docs/UpdateTransactionCategoryRequestData.md +++ /dev/null @@ -1,72 +0,0 @@ -# UpdateTransactionCategoryRequestData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | The type of this resource: `categories` | -**Id** | **string** | The unique identifier of the category, as returned by the `/categories` endpoint. | - -## Methods - -### NewUpdateTransactionCategoryRequestData - -`func NewUpdateTransactionCategoryRequestData(type_ string, id string, ) *UpdateTransactionCategoryRequestData` - -NewUpdateTransactionCategoryRequestData instantiates a new UpdateTransactionCategoryRequestData object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewUpdateTransactionCategoryRequestDataWithDefaults - -`func NewUpdateTransactionCategoryRequestDataWithDefaults() *UpdateTransactionCategoryRequestData` - -NewUpdateTransactionCategoryRequestDataWithDefaults instantiates a new UpdateTransactionCategoryRequestData object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *UpdateTransactionCategoryRequestData) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *UpdateTransactionCategoryRequestData) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *UpdateTransactionCategoryRequestData) SetType(v string)` - -SetType sets Type field to given value. - - -### GetId - -`func (o *UpdateTransactionCategoryRequestData) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *UpdateTransactionCategoryRequestData) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *UpdateTransactionCategoryRequestData) SetId(v string)` - -SetId sets Id field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/UpdateTransactionTagsRequest.md b/expense-manager/openapi/docs/UpdateTransactionTagsRequest.md deleted file mode 100644 index dfce564..0000000 --- a/expense-manager/openapi/docs/UpdateTransactionTagsRequest.md +++ /dev/null @@ -1,51 +0,0 @@ -# UpdateTransactionTagsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**[]TagInputResourceIdentifier**](TagInputResourceIdentifier.md) | The tags to add to or remove from the transaction. | - -## Methods - -### NewUpdateTransactionTagsRequest - -`func NewUpdateTransactionTagsRequest(data []TagInputResourceIdentifier, ) *UpdateTransactionTagsRequest` - -NewUpdateTransactionTagsRequest instantiates a new UpdateTransactionTagsRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewUpdateTransactionTagsRequestWithDefaults - -`func NewUpdateTransactionTagsRequestWithDefaults() *UpdateTransactionTagsRequest` - -NewUpdateTransactionTagsRequestWithDefaults instantiates a new UpdateTransactionTagsRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *UpdateTransactionTagsRequest) GetData() []TagInputResourceIdentifier` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *UpdateTransactionTagsRequest) GetDataOk() (*[]TagInputResourceIdentifier, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *UpdateTransactionTagsRequest) SetData(v []TagInputResourceIdentifier)` - -SetData sets Data field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/UtilityEndpointsAPI.md b/expense-manager/openapi/docs/UtilityEndpointsAPI.md deleted file mode 100644 index dc2cf31..0000000 --- a/expense-manager/openapi/docs/UtilityEndpointsAPI.md +++ /dev/null @@ -1,70 +0,0 @@ -# \UtilityEndpointsAPI - -All URIs are relative to *https://api.up.com.au/api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**UtilPingGet**](UtilityEndpointsAPI.md#UtilPingGet) | **Get** /util/ping | Ping - - - -## UtilPingGet - -> PingResponse UtilPingGet(ctx).Execute() - -Ping - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/ESteanes/expense-manager" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UtilityEndpointsAPI.UtilPingGet(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UtilityEndpointsAPI.UtilPingGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UtilPingGet`: PingResponse - fmt.Fprintf(os.Stdout, "Response from `UtilityEndpointsAPI.UtilPingGet`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiUtilPingGetRequest struct via the builder pattern - - -### Return type - -[**PingResponse**](PingResponse.md) - -### Authorization - -[bearer_auth](../README.md#bearer_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/expense-manager/openapi/docs/WebhookDeliveryLogResource.md b/expense-manager/openapi/docs/WebhookDeliveryLogResource.md deleted file mode 100644 index 22bbc22..0000000 --- a/expense-manager/openapi/docs/WebhookDeliveryLogResource.md +++ /dev/null @@ -1,114 +0,0 @@ -# WebhookDeliveryLogResource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | The type of this resource: `webhook-delivery-logs` | -**Id** | **string** | The unique identifier for this log entry. | -**Attributes** | [**WebhookDeliveryLogResourceAttributes**](WebhookDeliveryLogResourceAttributes.md) | | -**Relationships** | [**WebhookDeliveryLogResourceRelationships**](WebhookDeliveryLogResourceRelationships.md) | | - -## Methods - -### NewWebhookDeliveryLogResource - -`func NewWebhookDeliveryLogResource(type_ string, id string, attributes WebhookDeliveryLogResourceAttributes, relationships WebhookDeliveryLogResourceRelationships, ) *WebhookDeliveryLogResource` - -NewWebhookDeliveryLogResource instantiates a new WebhookDeliveryLogResource object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookDeliveryLogResourceWithDefaults - -`func NewWebhookDeliveryLogResourceWithDefaults() *WebhookDeliveryLogResource` - -NewWebhookDeliveryLogResourceWithDefaults instantiates a new WebhookDeliveryLogResource object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *WebhookDeliveryLogResource) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *WebhookDeliveryLogResource) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *WebhookDeliveryLogResource) SetType(v string)` - -SetType sets Type field to given value. - - -### GetId - -`func (o *WebhookDeliveryLogResource) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *WebhookDeliveryLogResource) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *WebhookDeliveryLogResource) SetId(v string)` - -SetId sets Id field to given value. - - -### GetAttributes - -`func (o *WebhookDeliveryLogResource) GetAttributes() WebhookDeliveryLogResourceAttributes` - -GetAttributes returns the Attributes field if non-nil, zero value otherwise. - -### GetAttributesOk - -`func (o *WebhookDeliveryLogResource) GetAttributesOk() (*WebhookDeliveryLogResourceAttributes, bool)` - -GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttributes - -`func (o *WebhookDeliveryLogResource) SetAttributes(v WebhookDeliveryLogResourceAttributes)` - -SetAttributes sets Attributes field to given value. - - -### GetRelationships - -`func (o *WebhookDeliveryLogResource) GetRelationships() WebhookDeliveryLogResourceRelationships` - -GetRelationships returns the Relationships field if non-nil, zero value otherwise. - -### GetRelationshipsOk - -`func (o *WebhookDeliveryLogResource) GetRelationshipsOk() (*WebhookDeliveryLogResourceRelationships, bool)` - -GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRelationships - -`func (o *WebhookDeliveryLogResource) SetRelationships(v WebhookDeliveryLogResourceRelationships)` - -SetRelationships sets Relationships field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookDeliveryLogResourceAttributes.md b/expense-manager/openapi/docs/WebhookDeliveryLogResourceAttributes.md deleted file mode 100644 index e0a0912..0000000 --- a/expense-manager/openapi/docs/WebhookDeliveryLogResourceAttributes.md +++ /dev/null @@ -1,124 +0,0 @@ -# WebhookDeliveryLogResourceAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Request** | [**WebhookDeliveryLogResourceAttributesRequest**](WebhookDeliveryLogResourceAttributesRequest.md) | | -**Response** | [**NullableWebhookDeliveryLogResourceAttributesResponse**](WebhookDeliveryLogResourceAttributesResponse.md) | | -**DeliveryStatus** | [**WebhookDeliveryStatusEnum**](WebhookDeliveryStatusEnum.md) | The success or failure status of this delivery attempt. | -**CreatedAt** | **time.Time** | The date-time at which this log entry was created. | - -## Methods - -### NewWebhookDeliveryLogResourceAttributes - -`func NewWebhookDeliveryLogResourceAttributes(request WebhookDeliveryLogResourceAttributesRequest, response NullableWebhookDeliveryLogResourceAttributesResponse, deliveryStatus WebhookDeliveryStatusEnum, createdAt time.Time, ) *WebhookDeliveryLogResourceAttributes` - -NewWebhookDeliveryLogResourceAttributes instantiates a new WebhookDeliveryLogResourceAttributes object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookDeliveryLogResourceAttributesWithDefaults - -`func NewWebhookDeliveryLogResourceAttributesWithDefaults() *WebhookDeliveryLogResourceAttributes` - -NewWebhookDeliveryLogResourceAttributesWithDefaults instantiates a new WebhookDeliveryLogResourceAttributes object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetRequest - -`func (o *WebhookDeliveryLogResourceAttributes) GetRequest() WebhookDeliveryLogResourceAttributesRequest` - -GetRequest returns the Request field if non-nil, zero value otherwise. - -### GetRequestOk - -`func (o *WebhookDeliveryLogResourceAttributes) GetRequestOk() (*WebhookDeliveryLogResourceAttributesRequest, bool)` - -GetRequestOk returns a tuple with the Request field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequest - -`func (o *WebhookDeliveryLogResourceAttributes) SetRequest(v WebhookDeliveryLogResourceAttributesRequest)` - -SetRequest sets Request field to given value. - - -### GetResponse - -`func (o *WebhookDeliveryLogResourceAttributes) GetResponse() WebhookDeliveryLogResourceAttributesResponse` - -GetResponse returns the Response field if non-nil, zero value otherwise. - -### GetResponseOk - -`func (o *WebhookDeliveryLogResourceAttributes) GetResponseOk() (*WebhookDeliveryLogResourceAttributesResponse, bool)` - -GetResponseOk returns a tuple with the Response field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResponse - -`func (o *WebhookDeliveryLogResourceAttributes) SetResponse(v WebhookDeliveryLogResourceAttributesResponse)` - -SetResponse sets Response field to given value. - - -### SetResponseNil - -`func (o *WebhookDeliveryLogResourceAttributes) SetResponseNil(b bool)` - - SetResponseNil sets the value for Response to be an explicit nil - -### UnsetResponse -`func (o *WebhookDeliveryLogResourceAttributes) UnsetResponse()` - -UnsetResponse ensures that no value is present for Response, not even an explicit nil -### GetDeliveryStatus - -`func (o *WebhookDeliveryLogResourceAttributes) GetDeliveryStatus() WebhookDeliveryStatusEnum` - -GetDeliveryStatus returns the DeliveryStatus field if non-nil, zero value otherwise. - -### GetDeliveryStatusOk - -`func (o *WebhookDeliveryLogResourceAttributes) GetDeliveryStatusOk() (*WebhookDeliveryStatusEnum, bool)` - -GetDeliveryStatusOk returns a tuple with the DeliveryStatus field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeliveryStatus - -`func (o *WebhookDeliveryLogResourceAttributes) SetDeliveryStatus(v WebhookDeliveryStatusEnum)` - -SetDeliveryStatus sets DeliveryStatus field to given value. - - -### GetCreatedAt - -`func (o *WebhookDeliveryLogResourceAttributes) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *WebhookDeliveryLogResourceAttributes) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *WebhookDeliveryLogResourceAttributes) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookDeliveryLogResourceAttributesRequest.md b/expense-manager/openapi/docs/WebhookDeliveryLogResourceAttributesRequest.md deleted file mode 100644 index ad9e449..0000000 --- a/expense-manager/openapi/docs/WebhookDeliveryLogResourceAttributesRequest.md +++ /dev/null @@ -1,51 +0,0 @@ -# WebhookDeliveryLogResourceAttributesRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Body** | **string** | The payload that was sent in the request body. | - -## Methods - -### NewWebhookDeliveryLogResourceAttributesRequest - -`func NewWebhookDeliveryLogResourceAttributesRequest(body string, ) *WebhookDeliveryLogResourceAttributesRequest` - -NewWebhookDeliveryLogResourceAttributesRequest instantiates a new WebhookDeliveryLogResourceAttributesRequest object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookDeliveryLogResourceAttributesRequestWithDefaults - -`func NewWebhookDeliveryLogResourceAttributesRequestWithDefaults() *WebhookDeliveryLogResourceAttributesRequest` - -NewWebhookDeliveryLogResourceAttributesRequestWithDefaults instantiates a new WebhookDeliveryLogResourceAttributesRequest object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetBody - -`func (o *WebhookDeliveryLogResourceAttributesRequest) GetBody() string` - -GetBody returns the Body field if non-nil, zero value otherwise. - -### GetBodyOk - -`func (o *WebhookDeliveryLogResourceAttributesRequest) GetBodyOk() (*string, bool)` - -GetBodyOk returns a tuple with the Body field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBody - -`func (o *WebhookDeliveryLogResourceAttributesRequest) SetBody(v string)` - -SetBody sets Body field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookDeliveryLogResourceAttributesResponse.md b/expense-manager/openapi/docs/WebhookDeliveryLogResourceAttributesResponse.md deleted file mode 100644 index 2124225..0000000 --- a/expense-manager/openapi/docs/WebhookDeliveryLogResourceAttributesResponse.md +++ /dev/null @@ -1,72 +0,0 @@ -# WebhookDeliveryLogResourceAttributesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**StatusCode** | **int32** | The HTTP status code received in the response. | -**Body** | **string** | The payload that was received in the response body. | - -## Methods - -### NewWebhookDeliveryLogResourceAttributesResponse - -`func NewWebhookDeliveryLogResourceAttributesResponse(statusCode int32, body string, ) *WebhookDeliveryLogResourceAttributesResponse` - -NewWebhookDeliveryLogResourceAttributesResponse instantiates a new WebhookDeliveryLogResourceAttributesResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookDeliveryLogResourceAttributesResponseWithDefaults - -`func NewWebhookDeliveryLogResourceAttributesResponseWithDefaults() *WebhookDeliveryLogResourceAttributesResponse` - -NewWebhookDeliveryLogResourceAttributesResponseWithDefaults instantiates a new WebhookDeliveryLogResourceAttributesResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetStatusCode - -`func (o *WebhookDeliveryLogResourceAttributesResponse) GetStatusCode() int32` - -GetStatusCode returns the StatusCode field if non-nil, zero value otherwise. - -### GetStatusCodeOk - -`func (o *WebhookDeliveryLogResourceAttributesResponse) GetStatusCodeOk() (*int32, bool)` - -GetStatusCodeOk returns a tuple with the StatusCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatusCode - -`func (o *WebhookDeliveryLogResourceAttributesResponse) SetStatusCode(v int32)` - -SetStatusCode sets StatusCode field to given value. - - -### GetBody - -`func (o *WebhookDeliveryLogResourceAttributesResponse) GetBody() string` - -GetBody returns the Body field if non-nil, zero value otherwise. - -### GetBodyOk - -`func (o *WebhookDeliveryLogResourceAttributesResponse) GetBodyOk() (*string, bool)` - -GetBodyOk returns a tuple with the Body field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBody - -`func (o *WebhookDeliveryLogResourceAttributesResponse) SetBody(v string)` - -SetBody sets Body field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookDeliveryLogResourceRelationships.md b/expense-manager/openapi/docs/WebhookDeliveryLogResourceRelationships.md deleted file mode 100644 index ccbff52..0000000 --- a/expense-manager/openapi/docs/WebhookDeliveryLogResourceRelationships.md +++ /dev/null @@ -1,51 +0,0 @@ -# WebhookDeliveryLogResourceRelationships - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**WebhookEvent** | [**WebhookDeliveryLogResourceRelationshipsWebhookEvent**](WebhookDeliveryLogResourceRelationshipsWebhookEvent.md) | | - -## Methods - -### NewWebhookDeliveryLogResourceRelationships - -`func NewWebhookDeliveryLogResourceRelationships(webhookEvent WebhookDeliveryLogResourceRelationshipsWebhookEvent, ) *WebhookDeliveryLogResourceRelationships` - -NewWebhookDeliveryLogResourceRelationships instantiates a new WebhookDeliveryLogResourceRelationships object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookDeliveryLogResourceRelationshipsWithDefaults - -`func NewWebhookDeliveryLogResourceRelationshipsWithDefaults() *WebhookDeliveryLogResourceRelationships` - -NewWebhookDeliveryLogResourceRelationshipsWithDefaults instantiates a new WebhookDeliveryLogResourceRelationships object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetWebhookEvent - -`func (o *WebhookDeliveryLogResourceRelationships) GetWebhookEvent() WebhookDeliveryLogResourceRelationshipsWebhookEvent` - -GetWebhookEvent returns the WebhookEvent field if non-nil, zero value otherwise. - -### GetWebhookEventOk - -`func (o *WebhookDeliveryLogResourceRelationships) GetWebhookEventOk() (*WebhookDeliveryLogResourceRelationshipsWebhookEvent, bool)` - -GetWebhookEventOk returns a tuple with the WebhookEvent field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWebhookEvent - -`func (o *WebhookDeliveryLogResourceRelationships) SetWebhookEvent(v WebhookDeliveryLogResourceRelationshipsWebhookEvent)` - -SetWebhookEvent sets WebhookEvent field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookDeliveryLogResourceRelationshipsWebhookEvent.md b/expense-manager/openapi/docs/WebhookDeliveryLogResourceRelationshipsWebhookEvent.md deleted file mode 100644 index 5983d6b..0000000 --- a/expense-manager/openapi/docs/WebhookDeliveryLogResourceRelationshipsWebhookEvent.md +++ /dev/null @@ -1,51 +0,0 @@ -# WebhookDeliveryLogResourceRelationshipsWebhookEvent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**WebhookDeliveryLogResourceRelationshipsWebhookEventData**](WebhookDeliveryLogResourceRelationshipsWebhookEventData.md) | | - -## Methods - -### NewWebhookDeliveryLogResourceRelationshipsWebhookEvent - -`func NewWebhookDeliveryLogResourceRelationshipsWebhookEvent(data WebhookDeliveryLogResourceRelationshipsWebhookEventData, ) *WebhookDeliveryLogResourceRelationshipsWebhookEvent` - -NewWebhookDeliveryLogResourceRelationshipsWebhookEvent instantiates a new WebhookDeliveryLogResourceRelationshipsWebhookEvent object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookDeliveryLogResourceRelationshipsWebhookEventWithDefaults - -`func NewWebhookDeliveryLogResourceRelationshipsWebhookEventWithDefaults() *WebhookDeliveryLogResourceRelationshipsWebhookEvent` - -NewWebhookDeliveryLogResourceRelationshipsWebhookEventWithDefaults instantiates a new WebhookDeliveryLogResourceRelationshipsWebhookEvent object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *WebhookDeliveryLogResourceRelationshipsWebhookEvent) GetData() WebhookDeliveryLogResourceRelationshipsWebhookEventData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *WebhookDeliveryLogResourceRelationshipsWebhookEvent) GetDataOk() (*WebhookDeliveryLogResourceRelationshipsWebhookEventData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *WebhookDeliveryLogResourceRelationshipsWebhookEvent) SetData(v WebhookDeliveryLogResourceRelationshipsWebhookEventData)` - -SetData sets Data field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookDeliveryLogResourceRelationshipsWebhookEventData.md b/expense-manager/openapi/docs/WebhookDeliveryLogResourceRelationshipsWebhookEventData.md deleted file mode 100644 index a7c5c2c..0000000 --- a/expense-manager/openapi/docs/WebhookDeliveryLogResourceRelationshipsWebhookEventData.md +++ /dev/null @@ -1,72 +0,0 @@ -# WebhookDeliveryLogResourceRelationshipsWebhookEventData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | The type of this resource: `webhook-events` | -**Id** | **string** | The unique identifier of the resource within its type. | - -## Methods - -### NewWebhookDeliveryLogResourceRelationshipsWebhookEventData - -`func NewWebhookDeliveryLogResourceRelationshipsWebhookEventData(type_ string, id string, ) *WebhookDeliveryLogResourceRelationshipsWebhookEventData` - -NewWebhookDeliveryLogResourceRelationshipsWebhookEventData instantiates a new WebhookDeliveryLogResourceRelationshipsWebhookEventData object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookDeliveryLogResourceRelationshipsWebhookEventDataWithDefaults - -`func NewWebhookDeliveryLogResourceRelationshipsWebhookEventDataWithDefaults() *WebhookDeliveryLogResourceRelationshipsWebhookEventData` - -NewWebhookDeliveryLogResourceRelationshipsWebhookEventDataWithDefaults instantiates a new WebhookDeliveryLogResourceRelationshipsWebhookEventData object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *WebhookDeliveryLogResourceRelationshipsWebhookEventData) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *WebhookDeliveryLogResourceRelationshipsWebhookEventData) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *WebhookDeliveryLogResourceRelationshipsWebhookEventData) SetType(v string)` - -SetType sets Type field to given value. - - -### GetId - -`func (o *WebhookDeliveryLogResourceRelationshipsWebhookEventData) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *WebhookDeliveryLogResourceRelationshipsWebhookEventData) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *WebhookDeliveryLogResourceRelationshipsWebhookEventData) SetId(v string)` - -SetId sets Id field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookDeliveryStatusEnum.md b/expense-manager/openapi/docs/WebhookDeliveryStatusEnum.md deleted file mode 100644 index 57ce4a4..0000000 --- a/expense-manager/openapi/docs/WebhookDeliveryStatusEnum.md +++ /dev/null @@ -1,15 +0,0 @@ -# WebhookDeliveryStatusEnum - -## Enum - - -* `DELIVERED` (value: `"DELIVERED"`) - -* `UNDELIVERABLE` (value: `"UNDELIVERABLE"`) - -* `BAD_RESPONSE_CODE` (value: `"BAD_RESPONSE_CODE"`) - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookEventCallback.md b/expense-manager/openapi/docs/WebhookEventCallback.md deleted file mode 100644 index 6a07b56..0000000 --- a/expense-manager/openapi/docs/WebhookEventCallback.md +++ /dev/null @@ -1,51 +0,0 @@ -# WebhookEventCallback - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**WebhookEventResource**](WebhookEventResource.md) | The webhook event data sent to the subscribed webhook. | - -## Methods - -### NewWebhookEventCallback - -`func NewWebhookEventCallback(data WebhookEventResource, ) *WebhookEventCallback` - -NewWebhookEventCallback instantiates a new WebhookEventCallback object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookEventCallbackWithDefaults - -`func NewWebhookEventCallbackWithDefaults() *WebhookEventCallback` - -NewWebhookEventCallbackWithDefaults instantiates a new WebhookEventCallback object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *WebhookEventCallback) GetData() WebhookEventResource` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *WebhookEventCallback) GetDataOk() (*WebhookEventResource, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *WebhookEventCallback) SetData(v WebhookEventResource)` - -SetData sets Data field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookEventResource.md b/expense-manager/openapi/docs/WebhookEventResource.md deleted file mode 100644 index 232bb4d..0000000 --- a/expense-manager/openapi/docs/WebhookEventResource.md +++ /dev/null @@ -1,114 +0,0 @@ -# WebhookEventResource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | The type of this resource: `webhook-events` | -**Id** | **string** | The unique identifier for this event. This will remain constant across delivery retries. | -**Attributes** | [**WebhookEventResourceAttributes**](WebhookEventResourceAttributes.md) | | -**Relationships** | [**WebhookEventResourceRelationships**](WebhookEventResourceRelationships.md) | | - -## Methods - -### NewWebhookEventResource - -`func NewWebhookEventResource(type_ string, id string, attributes WebhookEventResourceAttributes, relationships WebhookEventResourceRelationships, ) *WebhookEventResource` - -NewWebhookEventResource instantiates a new WebhookEventResource object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookEventResourceWithDefaults - -`func NewWebhookEventResourceWithDefaults() *WebhookEventResource` - -NewWebhookEventResourceWithDefaults instantiates a new WebhookEventResource object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *WebhookEventResource) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *WebhookEventResource) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *WebhookEventResource) SetType(v string)` - -SetType sets Type field to given value. - - -### GetId - -`func (o *WebhookEventResource) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *WebhookEventResource) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *WebhookEventResource) SetId(v string)` - -SetId sets Id field to given value. - - -### GetAttributes - -`func (o *WebhookEventResource) GetAttributes() WebhookEventResourceAttributes` - -GetAttributes returns the Attributes field if non-nil, zero value otherwise. - -### GetAttributesOk - -`func (o *WebhookEventResource) GetAttributesOk() (*WebhookEventResourceAttributes, bool)` - -GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttributes - -`func (o *WebhookEventResource) SetAttributes(v WebhookEventResourceAttributes)` - -SetAttributes sets Attributes field to given value. - - -### GetRelationships - -`func (o *WebhookEventResource) GetRelationships() WebhookEventResourceRelationships` - -GetRelationships returns the Relationships field if non-nil, zero value otherwise. - -### GetRelationshipsOk - -`func (o *WebhookEventResource) GetRelationshipsOk() (*WebhookEventResourceRelationships, bool)` - -GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRelationships - -`func (o *WebhookEventResource) SetRelationships(v WebhookEventResourceRelationships)` - -SetRelationships sets Relationships field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookEventResourceAttributes.md b/expense-manager/openapi/docs/WebhookEventResourceAttributes.md deleted file mode 100644 index f414eea..0000000 --- a/expense-manager/openapi/docs/WebhookEventResourceAttributes.md +++ /dev/null @@ -1,72 +0,0 @@ -# WebhookEventResourceAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**EventType** | [**WebhookEventTypeEnum**](WebhookEventTypeEnum.md) | The type of this event. This can be used to determine what action to take in response to the event. | -**CreatedAt** | **time.Time** | The date-time at which this event was generated. | - -## Methods - -### NewWebhookEventResourceAttributes - -`func NewWebhookEventResourceAttributes(eventType WebhookEventTypeEnum, createdAt time.Time, ) *WebhookEventResourceAttributes` - -NewWebhookEventResourceAttributes instantiates a new WebhookEventResourceAttributes object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookEventResourceAttributesWithDefaults - -`func NewWebhookEventResourceAttributesWithDefaults() *WebhookEventResourceAttributes` - -NewWebhookEventResourceAttributesWithDefaults instantiates a new WebhookEventResourceAttributes object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetEventType - -`func (o *WebhookEventResourceAttributes) GetEventType() WebhookEventTypeEnum` - -GetEventType returns the EventType field if non-nil, zero value otherwise. - -### GetEventTypeOk - -`func (o *WebhookEventResourceAttributes) GetEventTypeOk() (*WebhookEventTypeEnum, bool)` - -GetEventTypeOk returns a tuple with the EventType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEventType - -`func (o *WebhookEventResourceAttributes) SetEventType(v WebhookEventTypeEnum)` - -SetEventType sets EventType field to given value. - - -### GetCreatedAt - -`func (o *WebhookEventResourceAttributes) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *WebhookEventResourceAttributes) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *WebhookEventResourceAttributes) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookEventResourceRelationships.md b/expense-manager/openapi/docs/WebhookEventResourceRelationships.md deleted file mode 100644 index b697ecb..0000000 --- a/expense-manager/openapi/docs/WebhookEventResourceRelationships.md +++ /dev/null @@ -1,77 +0,0 @@ -# WebhookEventResourceRelationships - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Webhook** | [**WebhookEventResourceRelationshipsWebhook**](WebhookEventResourceRelationshipsWebhook.md) | | -**Transaction** | Pointer to [**WebhookEventResourceRelationshipsTransaction**](WebhookEventResourceRelationshipsTransaction.md) | | [optional] - -## Methods - -### NewWebhookEventResourceRelationships - -`func NewWebhookEventResourceRelationships(webhook WebhookEventResourceRelationshipsWebhook, ) *WebhookEventResourceRelationships` - -NewWebhookEventResourceRelationships instantiates a new WebhookEventResourceRelationships object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookEventResourceRelationshipsWithDefaults - -`func NewWebhookEventResourceRelationshipsWithDefaults() *WebhookEventResourceRelationships` - -NewWebhookEventResourceRelationshipsWithDefaults instantiates a new WebhookEventResourceRelationships object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetWebhook - -`func (o *WebhookEventResourceRelationships) GetWebhook() WebhookEventResourceRelationshipsWebhook` - -GetWebhook returns the Webhook field if non-nil, zero value otherwise. - -### GetWebhookOk - -`func (o *WebhookEventResourceRelationships) GetWebhookOk() (*WebhookEventResourceRelationshipsWebhook, bool)` - -GetWebhookOk returns a tuple with the Webhook field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWebhook - -`func (o *WebhookEventResourceRelationships) SetWebhook(v WebhookEventResourceRelationshipsWebhook)` - -SetWebhook sets Webhook field to given value. - - -### GetTransaction - -`func (o *WebhookEventResourceRelationships) GetTransaction() WebhookEventResourceRelationshipsTransaction` - -GetTransaction returns the Transaction field if non-nil, zero value otherwise. - -### GetTransactionOk - -`func (o *WebhookEventResourceRelationships) GetTransactionOk() (*WebhookEventResourceRelationshipsTransaction, bool)` - -GetTransactionOk returns a tuple with the Transaction field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTransaction - -`func (o *WebhookEventResourceRelationships) SetTransaction(v WebhookEventResourceRelationshipsTransaction)` - -SetTransaction sets Transaction field to given value. - -### HasTransaction - -`func (o *WebhookEventResourceRelationships) HasTransaction() bool` - -HasTransaction returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookEventResourceRelationshipsTransaction.md b/expense-manager/openapi/docs/WebhookEventResourceRelationshipsTransaction.md deleted file mode 100644 index 3c38b16..0000000 --- a/expense-manager/openapi/docs/WebhookEventResourceRelationshipsTransaction.md +++ /dev/null @@ -1,77 +0,0 @@ -# WebhookEventResourceRelationshipsTransaction - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**WebhookEventResourceRelationshipsTransactionData**](WebhookEventResourceRelationshipsTransactionData.md) | | -**Links** | Pointer to [**AccountResourceRelationshipsTransactionsLinks**](AccountResourceRelationshipsTransactionsLinks.md) | | [optional] - -## Methods - -### NewWebhookEventResourceRelationshipsTransaction - -`func NewWebhookEventResourceRelationshipsTransaction(data WebhookEventResourceRelationshipsTransactionData, ) *WebhookEventResourceRelationshipsTransaction` - -NewWebhookEventResourceRelationshipsTransaction instantiates a new WebhookEventResourceRelationshipsTransaction object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookEventResourceRelationshipsTransactionWithDefaults - -`func NewWebhookEventResourceRelationshipsTransactionWithDefaults() *WebhookEventResourceRelationshipsTransaction` - -NewWebhookEventResourceRelationshipsTransactionWithDefaults instantiates a new WebhookEventResourceRelationshipsTransaction object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *WebhookEventResourceRelationshipsTransaction) GetData() WebhookEventResourceRelationshipsTransactionData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *WebhookEventResourceRelationshipsTransaction) GetDataOk() (*WebhookEventResourceRelationshipsTransactionData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *WebhookEventResourceRelationshipsTransaction) SetData(v WebhookEventResourceRelationshipsTransactionData)` - -SetData sets Data field to given value. - - -### GetLinks - -`func (o *WebhookEventResourceRelationshipsTransaction) GetLinks() AccountResourceRelationshipsTransactionsLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *WebhookEventResourceRelationshipsTransaction) GetLinksOk() (*AccountResourceRelationshipsTransactionsLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *WebhookEventResourceRelationshipsTransaction) SetLinks(v AccountResourceRelationshipsTransactionsLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *WebhookEventResourceRelationshipsTransaction) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookEventResourceRelationshipsTransactionData.md b/expense-manager/openapi/docs/WebhookEventResourceRelationshipsTransactionData.md deleted file mode 100644 index 4bfb62a..0000000 --- a/expense-manager/openapi/docs/WebhookEventResourceRelationshipsTransactionData.md +++ /dev/null @@ -1,72 +0,0 @@ -# WebhookEventResourceRelationshipsTransactionData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | The type of this resource: `transactions` | -**Id** | **string** | The unique identifier of the resource within its type. | - -## Methods - -### NewWebhookEventResourceRelationshipsTransactionData - -`func NewWebhookEventResourceRelationshipsTransactionData(type_ string, id string, ) *WebhookEventResourceRelationshipsTransactionData` - -NewWebhookEventResourceRelationshipsTransactionData instantiates a new WebhookEventResourceRelationshipsTransactionData object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookEventResourceRelationshipsTransactionDataWithDefaults - -`func NewWebhookEventResourceRelationshipsTransactionDataWithDefaults() *WebhookEventResourceRelationshipsTransactionData` - -NewWebhookEventResourceRelationshipsTransactionDataWithDefaults instantiates a new WebhookEventResourceRelationshipsTransactionData object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *WebhookEventResourceRelationshipsTransactionData) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *WebhookEventResourceRelationshipsTransactionData) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *WebhookEventResourceRelationshipsTransactionData) SetType(v string)` - -SetType sets Type field to given value. - - -### GetId - -`func (o *WebhookEventResourceRelationshipsTransactionData) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *WebhookEventResourceRelationshipsTransactionData) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *WebhookEventResourceRelationshipsTransactionData) SetId(v string)` - -SetId sets Id field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookEventResourceRelationshipsWebhook.md b/expense-manager/openapi/docs/WebhookEventResourceRelationshipsWebhook.md deleted file mode 100644 index e797706..0000000 --- a/expense-manager/openapi/docs/WebhookEventResourceRelationshipsWebhook.md +++ /dev/null @@ -1,77 +0,0 @@ -# WebhookEventResourceRelationshipsWebhook - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Data** | [**WebhookEventResourceRelationshipsWebhookData**](WebhookEventResourceRelationshipsWebhookData.md) | | -**Links** | Pointer to [**AccountResourceRelationshipsTransactionsLinks**](AccountResourceRelationshipsTransactionsLinks.md) | | [optional] - -## Methods - -### NewWebhookEventResourceRelationshipsWebhook - -`func NewWebhookEventResourceRelationshipsWebhook(data WebhookEventResourceRelationshipsWebhookData, ) *WebhookEventResourceRelationshipsWebhook` - -NewWebhookEventResourceRelationshipsWebhook instantiates a new WebhookEventResourceRelationshipsWebhook object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookEventResourceRelationshipsWebhookWithDefaults - -`func NewWebhookEventResourceRelationshipsWebhookWithDefaults() *WebhookEventResourceRelationshipsWebhook` - -NewWebhookEventResourceRelationshipsWebhookWithDefaults instantiates a new WebhookEventResourceRelationshipsWebhook object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetData - -`func (o *WebhookEventResourceRelationshipsWebhook) GetData() WebhookEventResourceRelationshipsWebhookData` - -GetData returns the Data field if non-nil, zero value otherwise. - -### GetDataOk - -`func (o *WebhookEventResourceRelationshipsWebhook) GetDataOk() (*WebhookEventResourceRelationshipsWebhookData, bool)` - -GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetData - -`func (o *WebhookEventResourceRelationshipsWebhook) SetData(v WebhookEventResourceRelationshipsWebhookData)` - -SetData sets Data field to given value. - - -### GetLinks - -`func (o *WebhookEventResourceRelationshipsWebhook) GetLinks() AccountResourceRelationshipsTransactionsLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *WebhookEventResourceRelationshipsWebhook) GetLinksOk() (*AccountResourceRelationshipsTransactionsLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *WebhookEventResourceRelationshipsWebhook) SetLinks(v AccountResourceRelationshipsTransactionsLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *WebhookEventResourceRelationshipsWebhook) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookEventResourceRelationshipsWebhookData.md b/expense-manager/openapi/docs/WebhookEventResourceRelationshipsWebhookData.md deleted file mode 100644 index f27ec0b..0000000 --- a/expense-manager/openapi/docs/WebhookEventResourceRelationshipsWebhookData.md +++ /dev/null @@ -1,72 +0,0 @@ -# WebhookEventResourceRelationshipsWebhookData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | The type of this resource: `webhooks` | -**Id** | **string** | The unique identifier of the resource within its type. | - -## Methods - -### NewWebhookEventResourceRelationshipsWebhookData - -`func NewWebhookEventResourceRelationshipsWebhookData(type_ string, id string, ) *WebhookEventResourceRelationshipsWebhookData` - -NewWebhookEventResourceRelationshipsWebhookData instantiates a new WebhookEventResourceRelationshipsWebhookData object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookEventResourceRelationshipsWebhookDataWithDefaults - -`func NewWebhookEventResourceRelationshipsWebhookDataWithDefaults() *WebhookEventResourceRelationshipsWebhookData` - -NewWebhookEventResourceRelationshipsWebhookDataWithDefaults instantiates a new WebhookEventResourceRelationshipsWebhookData object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *WebhookEventResourceRelationshipsWebhookData) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *WebhookEventResourceRelationshipsWebhookData) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *WebhookEventResourceRelationshipsWebhookData) SetType(v string)` - -SetType sets Type field to given value. - - -### GetId - -`func (o *WebhookEventResourceRelationshipsWebhookData) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *WebhookEventResourceRelationshipsWebhookData) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *WebhookEventResourceRelationshipsWebhookData) SetId(v string)` - -SetId sets Id field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookEventTypeEnum.md b/expense-manager/openapi/docs/WebhookEventTypeEnum.md deleted file mode 100644 index 60f3653..0000000 --- a/expense-manager/openapi/docs/WebhookEventTypeEnum.md +++ /dev/null @@ -1,17 +0,0 @@ -# WebhookEventTypeEnum - -## Enum - - -* `TRANSACTION_CREATED` (value: `"TRANSACTION_CREATED"`) - -* `TRANSACTION_SETTLED` (value: `"TRANSACTION_SETTLED"`) - -* `TRANSACTION_DELETED` (value: `"TRANSACTION_DELETED"`) - -* `PING` (value: `"PING"`) - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookInputResource.md b/expense-manager/openapi/docs/WebhookInputResource.md deleted file mode 100644 index 2934e40..0000000 --- a/expense-manager/openapi/docs/WebhookInputResource.md +++ /dev/null @@ -1,51 +0,0 @@ -# WebhookInputResource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Attributes** | [**WebhookInputResourceAttributes**](WebhookInputResourceAttributes.md) | | - -## Methods - -### NewWebhookInputResource - -`func NewWebhookInputResource(attributes WebhookInputResourceAttributes, ) *WebhookInputResource` - -NewWebhookInputResource instantiates a new WebhookInputResource object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookInputResourceWithDefaults - -`func NewWebhookInputResourceWithDefaults() *WebhookInputResource` - -NewWebhookInputResourceWithDefaults instantiates a new WebhookInputResource object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetAttributes - -`func (o *WebhookInputResource) GetAttributes() WebhookInputResourceAttributes` - -GetAttributes returns the Attributes field if non-nil, zero value otherwise. - -### GetAttributesOk - -`func (o *WebhookInputResource) GetAttributesOk() (*WebhookInputResourceAttributes, bool)` - -GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttributes - -`func (o *WebhookInputResource) SetAttributes(v WebhookInputResourceAttributes)` - -SetAttributes sets Attributes field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookInputResourceAttributes.md b/expense-manager/openapi/docs/WebhookInputResourceAttributes.md deleted file mode 100644 index b0ac0fe..0000000 --- a/expense-manager/openapi/docs/WebhookInputResourceAttributes.md +++ /dev/null @@ -1,87 +0,0 @@ -# WebhookInputResourceAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Url** | **string** | The URL that this webhook should post events to. This must be a valid HTTP or HTTPS URL that does not exceed 300 characters in length. | -**Description** | Pointer to **NullableString** | An optional description for this webhook, up to 64 characters in length. | [optional] - -## Methods - -### NewWebhookInputResourceAttributes - -`func NewWebhookInputResourceAttributes(url string, ) *WebhookInputResourceAttributes` - -NewWebhookInputResourceAttributes instantiates a new WebhookInputResourceAttributes object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookInputResourceAttributesWithDefaults - -`func NewWebhookInputResourceAttributesWithDefaults() *WebhookInputResourceAttributes` - -NewWebhookInputResourceAttributesWithDefaults instantiates a new WebhookInputResourceAttributes object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetUrl - -`func (o *WebhookInputResourceAttributes) GetUrl() string` - -GetUrl returns the Url field if non-nil, zero value otherwise. - -### GetUrlOk - -`func (o *WebhookInputResourceAttributes) GetUrlOk() (*string, bool)` - -GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUrl - -`func (o *WebhookInputResourceAttributes) SetUrl(v string)` - -SetUrl sets Url field to given value. - - -### GetDescription - -`func (o *WebhookInputResourceAttributes) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *WebhookInputResourceAttributes) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *WebhookInputResourceAttributes) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *WebhookInputResourceAttributes) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### SetDescriptionNil - -`func (o *WebhookInputResourceAttributes) SetDescriptionNil(b bool)` - - SetDescriptionNil sets the value for Description to be an explicit nil - -### UnsetDescription -`func (o *WebhookInputResourceAttributes) UnsetDescription()` - -UnsetDescription ensures that no value is present for Description, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookResource.md b/expense-manager/openapi/docs/WebhookResource.md deleted file mode 100644 index 5eeda86..0000000 --- a/expense-manager/openapi/docs/WebhookResource.md +++ /dev/null @@ -1,140 +0,0 @@ -# WebhookResource - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | The type of this resource: `webhooks` | -**Id** | **string** | The unique identifier for this webhook. | -**Attributes** | [**WebhookResourceAttributes**](WebhookResourceAttributes.md) | | -**Relationships** | [**WebhookResourceRelationships**](WebhookResourceRelationships.md) | | -**Links** | Pointer to [**AccountResourceLinks**](AccountResourceLinks.md) | | [optional] - -## Methods - -### NewWebhookResource - -`func NewWebhookResource(type_ string, id string, attributes WebhookResourceAttributes, relationships WebhookResourceRelationships, ) *WebhookResource` - -NewWebhookResource instantiates a new WebhookResource object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookResourceWithDefaults - -`func NewWebhookResourceWithDefaults() *WebhookResource` - -NewWebhookResourceWithDefaults instantiates a new WebhookResource object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetType - -`func (o *WebhookResource) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *WebhookResource) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *WebhookResource) SetType(v string)` - -SetType sets Type field to given value. - - -### GetId - -`func (o *WebhookResource) GetId() string` - -GetId returns the Id field if non-nil, zero value otherwise. - -### GetIdOk - -`func (o *WebhookResource) GetIdOk() (*string, bool)` - -GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetId - -`func (o *WebhookResource) SetId(v string)` - -SetId sets Id field to given value. - - -### GetAttributes - -`func (o *WebhookResource) GetAttributes() WebhookResourceAttributes` - -GetAttributes returns the Attributes field if non-nil, zero value otherwise. - -### GetAttributesOk - -`func (o *WebhookResource) GetAttributesOk() (*WebhookResourceAttributes, bool)` - -GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAttributes - -`func (o *WebhookResource) SetAttributes(v WebhookResourceAttributes)` - -SetAttributes sets Attributes field to given value. - - -### GetRelationships - -`func (o *WebhookResource) GetRelationships() WebhookResourceRelationships` - -GetRelationships returns the Relationships field if non-nil, zero value otherwise. - -### GetRelationshipsOk - -`func (o *WebhookResource) GetRelationshipsOk() (*WebhookResourceRelationships, bool)` - -GetRelationshipsOk returns a tuple with the Relationships field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRelationships - -`func (o *WebhookResource) SetRelationships(v WebhookResourceRelationships)` - -SetRelationships sets Relationships field to given value. - - -### GetLinks - -`func (o *WebhookResource) GetLinks() AccountResourceLinks` - -GetLinks returns the Links field if non-nil, zero value otherwise. - -### GetLinksOk - -`func (o *WebhookResource) GetLinksOk() (*AccountResourceLinks, bool)` - -GetLinksOk returns a tuple with the Links field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinks - -`func (o *WebhookResource) SetLinks(v AccountResourceLinks)` - -SetLinks sets Links field to given value. - -### HasLinks - -`func (o *WebhookResource) HasLinks() bool` - -HasLinks returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookResourceAttributes.md b/expense-manager/openapi/docs/WebhookResourceAttributes.md deleted file mode 100644 index f2add69..0000000 --- a/expense-manager/openapi/docs/WebhookResourceAttributes.md +++ /dev/null @@ -1,129 +0,0 @@ -# WebhookResourceAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Url** | **string** | The URL that this webhook is configured to `POST` events to. | -**Description** | **NullableString** | An optional description that was provided at the time the webhook was created. | -**SecretKey** | Pointer to **string** | A shared secret key used to sign all webhook events sent to the configured webhook URL. This field is returned only once, upon the initial creation of the webhook. If lost, create a new webhook and delete this webhook. The webhook URL receives a request with a `X-Up-Authenticity-Signature` header, which is the SHA-256 HMAC of the entire raw request body signed using this `secretKey`. It is advised to compute and check this signature to verify the authenticity of requests sent to the webhook URL. See [Handling webhook events](#callback_post_webhookURL) for full details. | [optional] -**CreatedAt** | **time.Time** | The date-time at which this webhook was created. | - -## Methods - -### NewWebhookResourceAttributes - -`func NewWebhookResourceAttributes(url string, description NullableString, createdAt time.Time, ) *WebhookResourceAttributes` - -NewWebhookResourceAttributes instantiates a new WebhookResourceAttributes object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookResourceAttributesWithDefaults - -`func NewWebhookResourceAttributesWithDefaults() *WebhookResourceAttributes` - -NewWebhookResourceAttributesWithDefaults instantiates a new WebhookResourceAttributes object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetUrl - -`func (o *WebhookResourceAttributes) GetUrl() string` - -GetUrl returns the Url field if non-nil, zero value otherwise. - -### GetUrlOk - -`func (o *WebhookResourceAttributes) GetUrlOk() (*string, bool)` - -GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUrl - -`func (o *WebhookResourceAttributes) SetUrl(v string)` - -SetUrl sets Url field to given value. - - -### GetDescription - -`func (o *WebhookResourceAttributes) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *WebhookResourceAttributes) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *WebhookResourceAttributes) SetDescription(v string)` - -SetDescription sets Description field to given value. - - -### SetDescriptionNil - -`func (o *WebhookResourceAttributes) SetDescriptionNil(b bool)` - - SetDescriptionNil sets the value for Description to be an explicit nil - -### UnsetDescription -`func (o *WebhookResourceAttributes) UnsetDescription()` - -UnsetDescription ensures that no value is present for Description, not even an explicit nil -### GetSecretKey - -`func (o *WebhookResourceAttributes) GetSecretKey() string` - -GetSecretKey returns the SecretKey field if non-nil, zero value otherwise. - -### GetSecretKeyOk - -`func (o *WebhookResourceAttributes) GetSecretKeyOk() (*string, bool)` - -GetSecretKeyOk returns a tuple with the SecretKey field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSecretKey - -`func (o *WebhookResourceAttributes) SetSecretKey(v string)` - -SetSecretKey sets SecretKey field to given value. - -### HasSecretKey - -`func (o *WebhookResourceAttributes) HasSecretKey() bool` - -HasSecretKey returns a boolean if a field has been set. - -### GetCreatedAt - -`func (o *WebhookResourceAttributes) GetCreatedAt() time.Time` - -GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. - -### GetCreatedAtOk - -`func (o *WebhookResourceAttributes) GetCreatedAtOk() (*time.Time, bool)` - -GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreatedAt - -`func (o *WebhookResourceAttributes) SetCreatedAt(v time.Time)` - -SetCreatedAt sets CreatedAt field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhookResourceRelationships.md b/expense-manager/openapi/docs/WebhookResourceRelationships.md deleted file mode 100644 index db19ee0..0000000 --- a/expense-manager/openapi/docs/WebhookResourceRelationships.md +++ /dev/null @@ -1,51 +0,0 @@ -# WebhookResourceRelationships - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Logs** | [**AccountResourceRelationshipsTransactions**](AccountResourceRelationshipsTransactions.md) | | - -## Methods - -### NewWebhookResourceRelationships - -`func NewWebhookResourceRelationships(logs AccountResourceRelationshipsTransactions, ) *WebhookResourceRelationships` - -NewWebhookResourceRelationships instantiates a new WebhookResourceRelationships object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewWebhookResourceRelationshipsWithDefaults - -`func NewWebhookResourceRelationshipsWithDefaults() *WebhookResourceRelationships` - -NewWebhookResourceRelationshipsWithDefaults instantiates a new WebhookResourceRelationships object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetLogs - -`func (o *WebhookResourceRelationships) GetLogs() AccountResourceRelationshipsTransactions` - -GetLogs returns the Logs field if non-nil, zero value otherwise. - -### GetLogsOk - -`func (o *WebhookResourceRelationships) GetLogsOk() (*AccountResourceRelationshipsTransactions, bool)` - -GetLogsOk returns a tuple with the Logs field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLogs - -`func (o *WebhookResourceRelationships) SetLogs(v AccountResourceRelationshipsTransactions)` - -SetLogs sets Logs field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/expense-manager/openapi/docs/WebhooksAPI.md b/expense-manager/openapi/docs/WebhooksAPI.md deleted file mode 100644 index ac9a83c..0000000 --- a/expense-manager/openapi/docs/WebhooksAPI.md +++ /dev/null @@ -1,426 +0,0 @@ -# \WebhooksAPI - -All URIs are relative to *https://api.up.com.au/api/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**WebhooksGet**](WebhooksAPI.md#WebhooksGet) | **Get** /webhooks | List webhooks -[**WebhooksIdDelete**](WebhooksAPI.md#WebhooksIdDelete) | **Delete** /webhooks/{id} | Delete webhook -[**WebhooksIdGet**](WebhooksAPI.md#WebhooksIdGet) | **Get** /webhooks/{id} | Retrieve webhook -[**WebhooksPost**](WebhooksAPI.md#WebhooksPost) | **Post** /webhooks | Create webhook -[**WebhooksWebhookIdLogsGet**](WebhooksAPI.md#WebhooksWebhookIdLogsGet) | **Get** /webhooks/{webhookId}/logs | List webhook logs -[**WebhooksWebhookIdPingPost**](WebhooksAPI.md#WebhooksWebhookIdPingPost) | **Post** /webhooks/{webhookId}/ping | Ping webhook - - - -## WebhooksGet - -> ListWebhooksResponse WebhooksGet(ctx).PageSize(pageSize).Execute() - -List webhooks - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/ESteanes/expense-manager" -) - -func main() { - pageSize := int32(30) // int32 | The number of records to return in each page. (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WebhooksAPI.WebhooksGet(context.Background()).PageSize(pageSize).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.WebhooksGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `WebhooksGet`: ListWebhooksResponse - fmt.Fprintf(os.Stdout, "Response from `WebhooksAPI.WebhooksGet`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiWebhooksGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pageSize** | **int32** | The number of records to return in each page. | - -### Return type - -[**ListWebhooksResponse**](ListWebhooksResponse.md) - -### Authorization - -[bearer_auth](../README.md#bearer_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## WebhooksIdDelete - -> WebhooksIdDelete(ctx, id).Execute() - -Delete webhook - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/ESteanes/expense-manager" -) - -func main() { - id := "a940825b-80b6-4798-b378-c6284259b4c5" // string | The unique identifier for the webhook. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.WebhooksAPI.WebhooksIdDelete(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.WebhooksIdDelete``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | The unique identifier for the webhook. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiWebhooksIdDeleteRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - - (empty response body) - -### Authorization - -[bearer_auth](../README.md#bearer_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## WebhooksIdGet - -> GetWebhookResponse WebhooksIdGet(ctx, id).Execute() - -Retrieve webhook - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/ESteanes/expense-manager" -) - -func main() { - id := "c8283a72-24b0-4fd8-9b13-fccccab371e5" // string | The unique identifier for the webhook. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WebhooksAPI.WebhooksIdGet(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.WebhooksIdGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `WebhooksIdGet`: GetWebhookResponse - fmt.Fprintf(os.Stdout, "Response from `WebhooksAPI.WebhooksIdGet`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | The unique identifier for the webhook. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiWebhooksIdGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**GetWebhookResponse**](GetWebhookResponse.md) - -### Authorization - -[bearer_auth](../README.md#bearer_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## WebhooksPost - -> CreateWebhookResponse WebhooksPost(ctx).CreateWebhookRequest(createWebhookRequest).Execute() - -Create webhook - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/ESteanes/expense-manager" -) - -func main() { - createWebhookRequest := *openapiclient.NewCreateWebhookRequest(*openapiclient.NewWebhookInputResource(*openapiclient.NewWebhookInputResourceAttributes("Url_example"))) // CreateWebhookRequest | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WebhooksAPI.WebhooksPost(context.Background()).CreateWebhookRequest(createWebhookRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.WebhooksPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `WebhooksPost`: CreateWebhookResponse - fmt.Fprintf(os.Stdout, "Response from `WebhooksAPI.WebhooksPost`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiWebhooksPostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **createWebhookRequest** | [**CreateWebhookRequest**](CreateWebhookRequest.md) | | - -### Return type - -[**CreateWebhookResponse**](CreateWebhookResponse.md) - -### Authorization - -[bearer_auth](../README.md#bearer_auth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## WebhooksWebhookIdLogsGet - -> ListWebhookDeliveryLogsResponse WebhooksWebhookIdLogsGet(ctx, webhookId).PageSize(pageSize).Execute() - -List webhook logs - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/ESteanes/expense-manager" -) - -func main() { - webhookId := "7104f5df-4993-495f-9d29-2b4d062c03a9" // string | The unique identifier for the webhook. - pageSize := int32(30) // int32 | The number of records to return in each page. (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WebhooksAPI.WebhooksWebhookIdLogsGet(context.Background(), webhookId).PageSize(pageSize).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.WebhooksWebhookIdLogsGet``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `WebhooksWebhookIdLogsGet`: ListWebhookDeliveryLogsResponse - fmt.Fprintf(os.Stdout, "Response from `WebhooksAPI.WebhooksWebhookIdLogsGet`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**webhookId** | **string** | The unique identifier for the webhook. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiWebhooksWebhookIdLogsGetRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **pageSize** | **int32** | The number of records to return in each page. | - -### Return type - -[**ListWebhookDeliveryLogsResponse**](ListWebhookDeliveryLogsResponse.md) - -### Authorization - -[bearer_auth](../README.md#bearer_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## WebhooksWebhookIdPingPost - -> WebhookEventCallback WebhooksWebhookIdPingPost(ctx, webhookId).Execute() - -Ping webhook - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/ESteanes/expense-manager" -) - -func main() { - webhookId := "830e127d-fb89-4400-92bb-f3f48289dcba" // string | The unique identifier for the webhook. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WebhooksAPI.WebhooksWebhookIdPingPost(context.Background(), webhookId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.WebhooksWebhookIdPingPost``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `WebhooksWebhookIdPingPost`: WebhookEventCallback - fmt.Fprintf(os.Stdout, "Response from `WebhooksAPI.WebhooksWebhookIdPingPost`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**webhookId** | **string** | The unique identifier for the webhook. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiWebhooksWebhookIdPingPostRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**WebhookEventCallback**](WebhookEventCallback.md) - -### Authorization - -[bearer_auth](../README.md#bearer_auth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/expense-manager/openapi/model_account_resource.go b/expense-manager/openapi/model_account_resource.go deleted file mode 100644 index 4e3015e..0000000 --- a/expense-manager/openapi/model_account_resource.go +++ /dev/null @@ -1,278 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the AccountResource type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AccountResource{} - -// AccountResource Provides information about an Up bank account. -type AccountResource struct { - // The type of this resource: `accounts` - Type string `json:"type"` - // The unique identifier for this account. - Id string `json:"id"` - Attributes AccountResourceAttributes `json:"attributes"` - Relationships AccountResourceRelationships `json:"relationships"` - Links *AccountResourceLinks `json:"links,omitempty"` -} - -type _AccountResource AccountResource - -// NewAccountResource instantiates a new AccountResource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAccountResource(type_ string, id string, attributes AccountResourceAttributes, relationships AccountResourceRelationships) *AccountResource { - this := AccountResource{} - this.Type = type_ - this.Id = id - this.Attributes = attributes - this.Relationships = relationships - return &this -} - -// NewAccountResourceWithDefaults instantiates a new AccountResource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAccountResourceWithDefaults() *AccountResource { - this := AccountResource{} - return &this -} - -// GetType returns the Type field value -func (o *AccountResource) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *AccountResource) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *AccountResource) SetType(v string) { - o.Type = v -} - -// GetId returns the Id field value -func (o *AccountResource) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *AccountResource) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *AccountResource) SetId(v string) { - o.Id = v -} - -// GetAttributes returns the Attributes field value -func (o *AccountResource) GetAttributes() AccountResourceAttributes { - if o == nil { - var ret AccountResourceAttributes - return ret - } - - return o.Attributes -} - -// GetAttributesOk returns a tuple with the Attributes field value -// and a boolean to check if the value has been set. -func (o *AccountResource) GetAttributesOk() (*AccountResourceAttributes, bool) { - if o == nil { - return nil, false - } - return &o.Attributes, true -} - -// SetAttributes sets field value -func (o *AccountResource) SetAttributes(v AccountResourceAttributes) { - o.Attributes = v -} - -// GetRelationships returns the Relationships field value -func (o *AccountResource) GetRelationships() AccountResourceRelationships { - if o == nil { - var ret AccountResourceRelationships - return ret - } - - return o.Relationships -} - -// GetRelationshipsOk returns a tuple with the Relationships field value -// and a boolean to check if the value has been set. -func (o *AccountResource) GetRelationshipsOk() (*AccountResourceRelationships, bool) { - if o == nil { - return nil, false - } - return &o.Relationships, true -} - -// SetRelationships sets field value -func (o *AccountResource) SetRelationships(v AccountResourceRelationships) { - o.Relationships = v -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *AccountResource) GetLinks() AccountResourceLinks { - if o == nil || IsNil(o.Links) { - var ret AccountResourceLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AccountResource) GetLinksOk() (*AccountResourceLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *AccountResource) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given AccountResourceLinks and assigns it to the Links field. -func (o *AccountResource) SetLinks(v AccountResourceLinks) { - o.Links = &v -} - -func (o AccountResource) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AccountResource) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["id"] = o.Id - toSerialize["attributes"] = o.Attributes - toSerialize["relationships"] = o.Relationships - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - return toSerialize, nil -} - -func (o *AccountResource) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "id", - "attributes", - "relationships", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varAccountResource := _AccountResource{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varAccountResource) - - if err != nil { - return err - } - - *o = AccountResource(varAccountResource) - - return err -} - -type NullableAccountResource struct { - value *AccountResource - isSet bool -} - -func (v NullableAccountResource) Get() *AccountResource { - return v.value -} - -func (v *NullableAccountResource) Set(val *AccountResource) { - v.value = val - v.isSet = true -} - -func (v NullableAccountResource) IsSet() bool { - return v.isSet -} - -func (v *NullableAccountResource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAccountResource(val *AccountResource) *NullableAccountResource { - return &NullableAccountResource{value: val, isSet: true} -} - -func (v NullableAccountResource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAccountResource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_account_resource_attributes.go b/expense-manager/openapi/model_account_resource_attributes.go deleted file mode 100644 index 6e94901..0000000 --- a/expense-manager/openapi/model_account_resource_attributes.go +++ /dev/null @@ -1,274 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" - "time" -) - -// checks if the AccountResourceAttributes type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AccountResourceAttributes{} - -// AccountResourceAttributes struct for AccountResourceAttributes -type AccountResourceAttributes struct { - // The name associated with the account in the Up application. - DisplayName string `json:"displayName"` - // The bank account type of this account. - AccountType AccountTypeEnum `json:"accountType"` - // The ownership structure for this account. - OwnershipType OwnershipTypeEnum `json:"ownershipType"` - // The available balance of the account, taking into account any amounts that are currently on hold. - Balance MoneyObject `json:"balance"` - // The date-time at which this account was first opened. - CreatedAt time.Time `json:"createdAt"` -} - -type _AccountResourceAttributes AccountResourceAttributes - -// NewAccountResourceAttributes instantiates a new AccountResourceAttributes object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAccountResourceAttributes(displayName string, accountType AccountTypeEnum, ownershipType OwnershipTypeEnum, balance MoneyObject, createdAt time.Time) *AccountResourceAttributes { - this := AccountResourceAttributes{} - this.DisplayName = displayName - this.AccountType = accountType - this.OwnershipType = ownershipType - this.Balance = balance - this.CreatedAt = createdAt - return &this -} - -// NewAccountResourceAttributesWithDefaults instantiates a new AccountResourceAttributes object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAccountResourceAttributesWithDefaults() *AccountResourceAttributes { - this := AccountResourceAttributes{} - return &this -} - -// GetDisplayName returns the DisplayName field value -func (o *AccountResourceAttributes) GetDisplayName() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayName -} - -// GetDisplayNameOk returns a tuple with the DisplayName field value -// and a boolean to check if the value has been set. -func (o *AccountResourceAttributes) GetDisplayNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayName, true -} - -// SetDisplayName sets field value -func (o *AccountResourceAttributes) SetDisplayName(v string) { - o.DisplayName = v -} - -// GetAccountType returns the AccountType field value -func (o *AccountResourceAttributes) GetAccountType() AccountTypeEnum { - if o == nil { - var ret AccountTypeEnum - return ret - } - - return o.AccountType -} - -// GetAccountTypeOk returns a tuple with the AccountType field value -// and a boolean to check if the value has been set. -func (o *AccountResourceAttributes) GetAccountTypeOk() (*AccountTypeEnum, bool) { - if o == nil { - return nil, false - } - return &o.AccountType, true -} - -// SetAccountType sets field value -func (o *AccountResourceAttributes) SetAccountType(v AccountTypeEnum) { - o.AccountType = v -} - -// GetOwnershipType returns the OwnershipType field value -func (o *AccountResourceAttributes) GetOwnershipType() OwnershipTypeEnum { - if o == nil { - var ret OwnershipTypeEnum - return ret - } - - return o.OwnershipType -} - -// GetOwnershipTypeOk returns a tuple with the OwnershipType field value -// and a boolean to check if the value has been set. -func (o *AccountResourceAttributes) GetOwnershipTypeOk() (*OwnershipTypeEnum, bool) { - if o == nil { - return nil, false - } - return &o.OwnershipType, true -} - -// SetOwnershipType sets field value -func (o *AccountResourceAttributes) SetOwnershipType(v OwnershipTypeEnum) { - o.OwnershipType = v -} - -// GetBalance returns the Balance field value -func (o *AccountResourceAttributes) GetBalance() MoneyObject { - if o == nil { - var ret MoneyObject - return ret - } - - return o.Balance -} - -// GetBalanceOk returns a tuple with the Balance field value -// and a boolean to check if the value has been set. -func (o *AccountResourceAttributes) GetBalanceOk() (*MoneyObject, bool) { - if o == nil { - return nil, false - } - return &o.Balance, true -} - -// SetBalance sets field value -func (o *AccountResourceAttributes) SetBalance(v MoneyObject) { - o.Balance = v -} - -// GetCreatedAt returns the CreatedAt field value -func (o *AccountResourceAttributes) GetCreatedAt() time.Time { - if o == nil { - var ret time.Time - return ret - } - - return o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value -// and a boolean to check if the value has been set. -func (o *AccountResourceAttributes) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return &o.CreatedAt, true -} - -// SetCreatedAt sets field value -func (o *AccountResourceAttributes) SetCreatedAt(v time.Time) { - o.CreatedAt = v -} - -func (o AccountResourceAttributes) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AccountResourceAttributes) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["displayName"] = o.DisplayName - toSerialize["accountType"] = o.AccountType - toSerialize["ownershipType"] = o.OwnershipType - toSerialize["balance"] = o.Balance - toSerialize["createdAt"] = o.CreatedAt - return toSerialize, nil -} - -func (o *AccountResourceAttributes) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "displayName", - "accountType", - "ownershipType", - "balance", - "createdAt", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varAccountResourceAttributes := _AccountResourceAttributes{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varAccountResourceAttributes) - - if err != nil { - return err - } - - *o = AccountResourceAttributes(varAccountResourceAttributes) - - return err -} - -type NullableAccountResourceAttributes struct { - value *AccountResourceAttributes - isSet bool -} - -func (v NullableAccountResourceAttributes) Get() *AccountResourceAttributes { - return v.value -} - -func (v *NullableAccountResourceAttributes) Set(val *AccountResourceAttributes) { - v.value = val - v.isSet = true -} - -func (v NullableAccountResourceAttributes) IsSet() bool { - return v.isSet -} - -func (v *NullableAccountResourceAttributes) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAccountResourceAttributes(val *AccountResourceAttributes) *NullableAccountResourceAttributes { - return &NullableAccountResourceAttributes{value: val, isSet: true} -} - -func (v NullableAccountResourceAttributes) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAccountResourceAttributes) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_account_resource_links.go b/expense-manager/openapi/model_account_resource_links.go deleted file mode 100644 index 3be5ace..0000000 --- a/expense-manager/openapi/model_account_resource_links.go +++ /dev/null @@ -1,157 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the AccountResourceLinks type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AccountResourceLinks{} - -// AccountResourceLinks struct for AccountResourceLinks -type AccountResourceLinks struct { - // The canonical link to this resource within the API. - Self string `json:"self"` -} - -type _AccountResourceLinks AccountResourceLinks - -// NewAccountResourceLinks instantiates a new AccountResourceLinks object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAccountResourceLinks(self string) *AccountResourceLinks { - this := AccountResourceLinks{} - this.Self = self - return &this -} - -// NewAccountResourceLinksWithDefaults instantiates a new AccountResourceLinks object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAccountResourceLinksWithDefaults() *AccountResourceLinks { - this := AccountResourceLinks{} - return &this -} - -// GetSelf returns the Self field value -func (o *AccountResourceLinks) GetSelf() string { - if o == nil { - var ret string - return ret - } - - return o.Self -} - -// GetSelfOk returns a tuple with the Self field value -// and a boolean to check if the value has been set. -func (o *AccountResourceLinks) GetSelfOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Self, true -} - -// SetSelf sets field value -func (o *AccountResourceLinks) SetSelf(v string) { - o.Self = v -} - -func (o AccountResourceLinks) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AccountResourceLinks) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["self"] = o.Self - return toSerialize, nil -} - -func (o *AccountResourceLinks) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "self", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varAccountResourceLinks := _AccountResourceLinks{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varAccountResourceLinks) - - if err != nil { - return err - } - - *o = AccountResourceLinks(varAccountResourceLinks) - - return err -} - -type NullableAccountResourceLinks struct { - value *AccountResourceLinks - isSet bool -} - -func (v NullableAccountResourceLinks) Get() *AccountResourceLinks { - return v.value -} - -func (v *NullableAccountResourceLinks) Set(val *AccountResourceLinks) { - v.value = val - v.isSet = true -} - -func (v NullableAccountResourceLinks) IsSet() bool { - return v.isSet -} - -func (v *NullableAccountResourceLinks) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAccountResourceLinks(val *AccountResourceLinks) *NullableAccountResourceLinks { - return &NullableAccountResourceLinks{value: val, isSet: true} -} - -func (v NullableAccountResourceLinks) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAccountResourceLinks) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_account_resource_relationships.go b/expense-manager/openapi/model_account_resource_relationships.go deleted file mode 100644 index 1de3927..0000000 --- a/expense-manager/openapi/model_account_resource_relationships.go +++ /dev/null @@ -1,156 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the AccountResourceRelationships type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AccountResourceRelationships{} - -// AccountResourceRelationships struct for AccountResourceRelationships -type AccountResourceRelationships struct { - Transactions AccountResourceRelationshipsTransactions `json:"transactions"` -} - -type _AccountResourceRelationships AccountResourceRelationships - -// NewAccountResourceRelationships instantiates a new AccountResourceRelationships object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAccountResourceRelationships(transactions AccountResourceRelationshipsTransactions) *AccountResourceRelationships { - this := AccountResourceRelationships{} - this.Transactions = transactions - return &this -} - -// NewAccountResourceRelationshipsWithDefaults instantiates a new AccountResourceRelationships object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAccountResourceRelationshipsWithDefaults() *AccountResourceRelationships { - this := AccountResourceRelationships{} - return &this -} - -// GetTransactions returns the Transactions field value -func (o *AccountResourceRelationships) GetTransactions() AccountResourceRelationshipsTransactions { - if o == nil { - var ret AccountResourceRelationshipsTransactions - return ret - } - - return o.Transactions -} - -// GetTransactionsOk returns a tuple with the Transactions field value -// and a boolean to check if the value has been set. -func (o *AccountResourceRelationships) GetTransactionsOk() (*AccountResourceRelationshipsTransactions, bool) { - if o == nil { - return nil, false - } - return &o.Transactions, true -} - -// SetTransactions sets field value -func (o *AccountResourceRelationships) SetTransactions(v AccountResourceRelationshipsTransactions) { - o.Transactions = v -} - -func (o AccountResourceRelationships) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AccountResourceRelationships) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["transactions"] = o.Transactions - return toSerialize, nil -} - -func (o *AccountResourceRelationships) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "transactions", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varAccountResourceRelationships := _AccountResourceRelationships{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varAccountResourceRelationships) - - if err != nil { - return err - } - - *o = AccountResourceRelationships(varAccountResourceRelationships) - - return err -} - -type NullableAccountResourceRelationships struct { - value *AccountResourceRelationships - isSet bool -} - -func (v NullableAccountResourceRelationships) Get() *AccountResourceRelationships { - return v.value -} - -func (v *NullableAccountResourceRelationships) Set(val *AccountResourceRelationships) { - v.value = val - v.isSet = true -} - -func (v NullableAccountResourceRelationships) IsSet() bool { - return v.isSet -} - -func (v *NullableAccountResourceRelationships) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAccountResourceRelationships(val *AccountResourceRelationships) *NullableAccountResourceRelationships { - return &NullableAccountResourceRelationships{value: val, isSet: true} -} - -func (v NullableAccountResourceRelationships) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAccountResourceRelationships) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_account_resource_relationships_transactions.go b/expense-manager/openapi/model_account_resource_relationships_transactions.go deleted file mode 100644 index 2d17b0a..0000000 --- a/expense-manager/openapi/model_account_resource_relationships_transactions.go +++ /dev/null @@ -1,124 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the AccountResourceRelationshipsTransactions type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AccountResourceRelationshipsTransactions{} - -// AccountResourceRelationshipsTransactions struct for AccountResourceRelationshipsTransactions -type AccountResourceRelationshipsTransactions struct { - Links *AccountResourceRelationshipsTransactionsLinks `json:"links,omitempty"` -} - -// NewAccountResourceRelationshipsTransactions instantiates a new AccountResourceRelationshipsTransactions object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAccountResourceRelationshipsTransactions() *AccountResourceRelationshipsTransactions { - this := AccountResourceRelationshipsTransactions{} - return &this -} - -// NewAccountResourceRelationshipsTransactionsWithDefaults instantiates a new AccountResourceRelationshipsTransactions object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAccountResourceRelationshipsTransactionsWithDefaults() *AccountResourceRelationshipsTransactions { - this := AccountResourceRelationshipsTransactions{} - return &this -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *AccountResourceRelationshipsTransactions) GetLinks() AccountResourceRelationshipsTransactionsLinks { - if o == nil || IsNil(o.Links) { - var ret AccountResourceRelationshipsTransactionsLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *AccountResourceRelationshipsTransactions) GetLinksOk() (*AccountResourceRelationshipsTransactionsLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *AccountResourceRelationshipsTransactions) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given AccountResourceRelationshipsTransactionsLinks and assigns it to the Links field. -func (o *AccountResourceRelationshipsTransactions) SetLinks(v AccountResourceRelationshipsTransactionsLinks) { - o.Links = &v -} - -func (o AccountResourceRelationshipsTransactions) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AccountResourceRelationshipsTransactions) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - return toSerialize, nil -} - -type NullableAccountResourceRelationshipsTransactions struct { - value *AccountResourceRelationshipsTransactions - isSet bool -} - -func (v NullableAccountResourceRelationshipsTransactions) Get() *AccountResourceRelationshipsTransactions { - return v.value -} - -func (v *NullableAccountResourceRelationshipsTransactions) Set(val *AccountResourceRelationshipsTransactions) { - v.value = val - v.isSet = true -} - -func (v NullableAccountResourceRelationshipsTransactions) IsSet() bool { - return v.isSet -} - -func (v *NullableAccountResourceRelationshipsTransactions) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAccountResourceRelationshipsTransactions(val *AccountResourceRelationshipsTransactions) *NullableAccountResourceRelationshipsTransactions { - return &NullableAccountResourceRelationshipsTransactions{value: val, isSet: true} -} - -func (v NullableAccountResourceRelationshipsTransactions) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAccountResourceRelationshipsTransactions) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_account_resource_relationships_transactions_links.go b/expense-manager/openapi/model_account_resource_relationships_transactions_links.go deleted file mode 100644 index 319f64f..0000000 --- a/expense-manager/openapi/model_account_resource_relationships_transactions_links.go +++ /dev/null @@ -1,157 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the AccountResourceRelationshipsTransactionsLinks type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &AccountResourceRelationshipsTransactionsLinks{} - -// AccountResourceRelationshipsTransactionsLinks struct for AccountResourceRelationshipsTransactionsLinks -type AccountResourceRelationshipsTransactionsLinks struct { - // The link to retrieve the related resource(s) in this relationship. - Related string `json:"related"` -} - -type _AccountResourceRelationshipsTransactionsLinks AccountResourceRelationshipsTransactionsLinks - -// NewAccountResourceRelationshipsTransactionsLinks instantiates a new AccountResourceRelationshipsTransactionsLinks object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewAccountResourceRelationshipsTransactionsLinks(related string) *AccountResourceRelationshipsTransactionsLinks { - this := AccountResourceRelationshipsTransactionsLinks{} - this.Related = related - return &this -} - -// NewAccountResourceRelationshipsTransactionsLinksWithDefaults instantiates a new AccountResourceRelationshipsTransactionsLinks object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewAccountResourceRelationshipsTransactionsLinksWithDefaults() *AccountResourceRelationshipsTransactionsLinks { - this := AccountResourceRelationshipsTransactionsLinks{} - return &this -} - -// GetRelated returns the Related field value -func (o *AccountResourceRelationshipsTransactionsLinks) GetRelated() string { - if o == nil { - var ret string - return ret - } - - return o.Related -} - -// GetRelatedOk returns a tuple with the Related field value -// and a boolean to check if the value has been set. -func (o *AccountResourceRelationshipsTransactionsLinks) GetRelatedOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Related, true -} - -// SetRelated sets field value -func (o *AccountResourceRelationshipsTransactionsLinks) SetRelated(v string) { - o.Related = v -} - -func (o AccountResourceRelationshipsTransactionsLinks) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o AccountResourceRelationshipsTransactionsLinks) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["related"] = o.Related - return toSerialize, nil -} - -func (o *AccountResourceRelationshipsTransactionsLinks) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "related", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varAccountResourceRelationshipsTransactionsLinks := _AccountResourceRelationshipsTransactionsLinks{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varAccountResourceRelationshipsTransactionsLinks) - - if err != nil { - return err - } - - *o = AccountResourceRelationshipsTransactionsLinks(varAccountResourceRelationshipsTransactionsLinks) - - return err -} - -type NullableAccountResourceRelationshipsTransactionsLinks struct { - value *AccountResourceRelationshipsTransactionsLinks - isSet bool -} - -func (v NullableAccountResourceRelationshipsTransactionsLinks) Get() *AccountResourceRelationshipsTransactionsLinks { - return v.value -} - -func (v *NullableAccountResourceRelationshipsTransactionsLinks) Set(val *AccountResourceRelationshipsTransactionsLinks) { - v.value = val - v.isSet = true -} - -func (v NullableAccountResourceRelationshipsTransactionsLinks) IsSet() bool { - return v.isSet -} - -func (v *NullableAccountResourceRelationshipsTransactionsLinks) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAccountResourceRelationshipsTransactionsLinks(val *AccountResourceRelationshipsTransactionsLinks) *NullableAccountResourceRelationshipsTransactionsLinks { - return &NullableAccountResourceRelationshipsTransactionsLinks{value: val, isSet: true} -} - -func (v NullableAccountResourceRelationshipsTransactionsLinks) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAccountResourceRelationshipsTransactionsLinks) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_account_type_enum.go b/expense-manager/openapi/model_account_type_enum.go deleted file mode 100644 index 13f137c..0000000 --- a/expense-manager/openapi/model_account_type_enum.go +++ /dev/null @@ -1,110 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" - "fmt" -) - -// AccountTypeEnum Specifies the type of bank account. Currently returned values are `SAVER` and `TRANSACTIONAL`. -type AccountTypeEnum string - -// List of AccountTypeEnum -const ( - SAVER AccountTypeEnum = "SAVER" - TRANSACTIONAL AccountTypeEnum = "TRANSACTIONAL" -) - -// All allowed values of AccountTypeEnum enum -var AllowedAccountTypeEnumEnumValues = []AccountTypeEnum{ - "SAVER", - "TRANSACTIONAL", -} - -func (v *AccountTypeEnum) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := AccountTypeEnum(value) - for _, existing := range AllowedAccountTypeEnumEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid AccountTypeEnum", value) -} - -// NewAccountTypeEnumFromValue returns a pointer to a valid AccountTypeEnum -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewAccountTypeEnumFromValue(v string) (*AccountTypeEnum, error) { - ev := AccountTypeEnum(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for AccountTypeEnum: valid values are %v", v, AllowedAccountTypeEnumEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v AccountTypeEnum) IsValid() bool { - for _, existing := range AllowedAccountTypeEnumEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to AccountTypeEnum value -func (v AccountTypeEnum) Ptr() *AccountTypeEnum { - return &v -} - -type NullableAccountTypeEnum struct { - value *AccountTypeEnum - isSet bool -} - -func (v NullableAccountTypeEnum) Get() *AccountTypeEnum { - return v.value -} - -func (v *NullableAccountTypeEnum) Set(val *AccountTypeEnum) { - v.value = val - v.isSet = true -} - -func (v NullableAccountTypeEnum) IsSet() bool { - return v.isSet -} - -func (v *NullableAccountTypeEnum) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableAccountTypeEnum(val *AccountTypeEnum) *NullableAccountTypeEnum { - return &NullableAccountTypeEnum{value: val, isSet: true} -} - -func (v NullableAccountTypeEnum) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableAccountTypeEnum) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_cashback_object.go b/expense-manager/openapi/model_cashback_object.go deleted file mode 100644 index ad5bb46..0000000 --- a/expense-manager/openapi/model_cashback_object.go +++ /dev/null @@ -1,186 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the CashbackObject type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CashbackObject{} - -// CashbackObject Provides information about an instant reimbursement in the form of cashback. -type CashbackObject struct { - // A brief description of why this cashback was paid. - Description string `json:"description"` - // The total amount of cashback paid, represented as a positive value. - Amount MoneyObject `json:"amount"` -} - -type _CashbackObject CashbackObject - -// NewCashbackObject instantiates a new CashbackObject object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCashbackObject(description string, amount MoneyObject) *CashbackObject { - this := CashbackObject{} - this.Description = description - this.Amount = amount - return &this -} - -// NewCashbackObjectWithDefaults instantiates a new CashbackObject object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCashbackObjectWithDefaults() *CashbackObject { - this := CashbackObject{} - return &this -} - -// GetDescription returns the Description field value -func (o *CashbackObject) GetDescription() string { - if o == nil { - var ret string - return ret - } - - return o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value -// and a boolean to check if the value has been set. -func (o *CashbackObject) GetDescriptionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Description, true -} - -// SetDescription sets field value -func (o *CashbackObject) SetDescription(v string) { - o.Description = v -} - -// GetAmount returns the Amount field value -func (o *CashbackObject) GetAmount() MoneyObject { - if o == nil { - var ret MoneyObject - return ret - } - - return o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value -// and a boolean to check if the value has been set. -func (o *CashbackObject) GetAmountOk() (*MoneyObject, bool) { - if o == nil { - return nil, false - } - return &o.Amount, true -} - -// SetAmount sets field value -func (o *CashbackObject) SetAmount(v MoneyObject) { - o.Amount = v -} - -func (o CashbackObject) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CashbackObject) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["description"] = o.Description - toSerialize["amount"] = o.Amount - return toSerialize, nil -} - -func (o *CashbackObject) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "description", - "amount", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCashbackObject := _CashbackObject{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varCashbackObject) - - if err != nil { - return err - } - - *o = CashbackObject(varCashbackObject) - - return err -} - -type NullableCashbackObject struct { - value *CashbackObject - isSet bool -} - -func (v NullableCashbackObject) Get() *CashbackObject { - return v.value -} - -func (v *NullableCashbackObject) Set(val *CashbackObject) { - v.value = val - v.isSet = true -} - -func (v NullableCashbackObject) IsSet() bool { - return v.isSet -} - -func (v *NullableCashbackObject) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCashbackObject(val *CashbackObject) *NullableCashbackObject { - return &NullableCashbackObject{value: val, isSet: true} -} - -func (v NullableCashbackObject) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCashbackObject) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_category_input_resource_identifier.go b/expense-manager/openapi/model_category_input_resource_identifier.go deleted file mode 100644 index 138adf2..0000000 --- a/expense-manager/openapi/model_category_input_resource_identifier.go +++ /dev/null @@ -1,186 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the CategoryInputResourceIdentifier type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CategoryInputResourceIdentifier{} - -// CategoryInputResourceIdentifier Uniquely identifies a category in the API. -type CategoryInputResourceIdentifier struct { - // The type of this resource: `categories` - Type string `json:"type"` - // The unique identifier of the category, as returned by the `/categories` endpoint. - Id string `json:"id"` -} - -type _CategoryInputResourceIdentifier CategoryInputResourceIdentifier - -// NewCategoryInputResourceIdentifier instantiates a new CategoryInputResourceIdentifier object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCategoryInputResourceIdentifier(type_ string, id string) *CategoryInputResourceIdentifier { - this := CategoryInputResourceIdentifier{} - this.Type = type_ - this.Id = id - return &this -} - -// NewCategoryInputResourceIdentifierWithDefaults instantiates a new CategoryInputResourceIdentifier object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCategoryInputResourceIdentifierWithDefaults() *CategoryInputResourceIdentifier { - this := CategoryInputResourceIdentifier{} - return &this -} - -// GetType returns the Type field value -func (o *CategoryInputResourceIdentifier) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *CategoryInputResourceIdentifier) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *CategoryInputResourceIdentifier) SetType(v string) { - o.Type = v -} - -// GetId returns the Id field value -func (o *CategoryInputResourceIdentifier) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *CategoryInputResourceIdentifier) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *CategoryInputResourceIdentifier) SetId(v string) { - o.Id = v -} - -func (o CategoryInputResourceIdentifier) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CategoryInputResourceIdentifier) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["id"] = o.Id - return toSerialize, nil -} - -func (o *CategoryInputResourceIdentifier) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCategoryInputResourceIdentifier := _CategoryInputResourceIdentifier{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varCategoryInputResourceIdentifier) - - if err != nil { - return err - } - - *o = CategoryInputResourceIdentifier(varCategoryInputResourceIdentifier) - - return err -} - -type NullableCategoryInputResourceIdentifier struct { - value *CategoryInputResourceIdentifier - isSet bool -} - -func (v NullableCategoryInputResourceIdentifier) Get() *CategoryInputResourceIdentifier { - return v.value -} - -func (v *NullableCategoryInputResourceIdentifier) Set(val *CategoryInputResourceIdentifier) { - v.value = val - v.isSet = true -} - -func (v NullableCategoryInputResourceIdentifier) IsSet() bool { - return v.isSet -} - -func (v *NullableCategoryInputResourceIdentifier) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCategoryInputResourceIdentifier(val *CategoryInputResourceIdentifier) *NullableCategoryInputResourceIdentifier { - return &NullableCategoryInputResourceIdentifier{value: val, isSet: true} -} - -func (v NullableCategoryInputResourceIdentifier) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCategoryInputResourceIdentifier) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_category_resource.go b/expense-manager/openapi/model_category_resource.go deleted file mode 100644 index f5bfe6f..0000000 --- a/expense-manager/openapi/model_category_resource.go +++ /dev/null @@ -1,278 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the CategoryResource type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CategoryResource{} - -// CategoryResource Provides information about a category and its ancestry. -type CategoryResource struct { - // The type of this resource: `categories` - Type string `json:"type"` - // The unique identifier for this category. This is a human-readable but URL-safe value. - Id string `json:"id"` - Attributes CategoryResourceAttributes `json:"attributes"` - Relationships CategoryResourceRelationships `json:"relationships"` - Links *AccountResourceLinks `json:"links,omitempty"` -} - -type _CategoryResource CategoryResource - -// NewCategoryResource instantiates a new CategoryResource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCategoryResource(type_ string, id string, attributes CategoryResourceAttributes, relationships CategoryResourceRelationships) *CategoryResource { - this := CategoryResource{} - this.Type = type_ - this.Id = id - this.Attributes = attributes - this.Relationships = relationships - return &this -} - -// NewCategoryResourceWithDefaults instantiates a new CategoryResource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCategoryResourceWithDefaults() *CategoryResource { - this := CategoryResource{} - return &this -} - -// GetType returns the Type field value -func (o *CategoryResource) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *CategoryResource) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *CategoryResource) SetType(v string) { - o.Type = v -} - -// GetId returns the Id field value -func (o *CategoryResource) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *CategoryResource) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *CategoryResource) SetId(v string) { - o.Id = v -} - -// GetAttributes returns the Attributes field value -func (o *CategoryResource) GetAttributes() CategoryResourceAttributes { - if o == nil { - var ret CategoryResourceAttributes - return ret - } - - return o.Attributes -} - -// GetAttributesOk returns a tuple with the Attributes field value -// and a boolean to check if the value has been set. -func (o *CategoryResource) GetAttributesOk() (*CategoryResourceAttributes, bool) { - if o == nil { - return nil, false - } - return &o.Attributes, true -} - -// SetAttributes sets field value -func (o *CategoryResource) SetAttributes(v CategoryResourceAttributes) { - o.Attributes = v -} - -// GetRelationships returns the Relationships field value -func (o *CategoryResource) GetRelationships() CategoryResourceRelationships { - if o == nil { - var ret CategoryResourceRelationships - return ret - } - - return o.Relationships -} - -// GetRelationshipsOk returns a tuple with the Relationships field value -// and a boolean to check if the value has been set. -func (o *CategoryResource) GetRelationshipsOk() (*CategoryResourceRelationships, bool) { - if o == nil { - return nil, false - } - return &o.Relationships, true -} - -// SetRelationships sets field value -func (o *CategoryResource) SetRelationships(v CategoryResourceRelationships) { - o.Relationships = v -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *CategoryResource) GetLinks() AccountResourceLinks { - if o == nil || IsNil(o.Links) { - var ret AccountResourceLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CategoryResource) GetLinksOk() (*AccountResourceLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *CategoryResource) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given AccountResourceLinks and assigns it to the Links field. -func (o *CategoryResource) SetLinks(v AccountResourceLinks) { - o.Links = &v -} - -func (o CategoryResource) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CategoryResource) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["id"] = o.Id - toSerialize["attributes"] = o.Attributes - toSerialize["relationships"] = o.Relationships - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - return toSerialize, nil -} - -func (o *CategoryResource) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "id", - "attributes", - "relationships", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCategoryResource := _CategoryResource{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varCategoryResource) - - if err != nil { - return err - } - - *o = CategoryResource(varCategoryResource) - - return err -} - -type NullableCategoryResource struct { - value *CategoryResource - isSet bool -} - -func (v NullableCategoryResource) Get() *CategoryResource { - return v.value -} - -func (v *NullableCategoryResource) Set(val *CategoryResource) { - v.value = val - v.isSet = true -} - -func (v NullableCategoryResource) IsSet() bool { - return v.isSet -} - -func (v *NullableCategoryResource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCategoryResource(val *CategoryResource) *NullableCategoryResource { - return &NullableCategoryResource{value: val, isSet: true} -} - -func (v NullableCategoryResource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCategoryResource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_category_resource_attributes.go b/expense-manager/openapi/model_category_resource_attributes.go deleted file mode 100644 index 4378b88..0000000 --- a/expense-manager/openapi/model_category_resource_attributes.go +++ /dev/null @@ -1,157 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the CategoryResourceAttributes type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CategoryResourceAttributes{} - -// CategoryResourceAttributes struct for CategoryResourceAttributes -type CategoryResourceAttributes struct { - // The name of this category as seen in the Up application. - Name string `json:"name"` -} - -type _CategoryResourceAttributes CategoryResourceAttributes - -// NewCategoryResourceAttributes instantiates a new CategoryResourceAttributes object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCategoryResourceAttributes(name string) *CategoryResourceAttributes { - this := CategoryResourceAttributes{} - this.Name = name - return &this -} - -// NewCategoryResourceAttributesWithDefaults instantiates a new CategoryResourceAttributes object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCategoryResourceAttributesWithDefaults() *CategoryResourceAttributes { - this := CategoryResourceAttributes{} - return &this -} - -// GetName returns the Name field value -func (o *CategoryResourceAttributes) GetName() string { - if o == nil { - var ret string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *CategoryResourceAttributes) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *CategoryResourceAttributes) SetName(v string) { - o.Name = v -} - -func (o CategoryResourceAttributes) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CategoryResourceAttributes) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["name"] = o.Name - return toSerialize, nil -} - -func (o *CategoryResourceAttributes) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "name", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCategoryResourceAttributes := _CategoryResourceAttributes{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varCategoryResourceAttributes) - - if err != nil { - return err - } - - *o = CategoryResourceAttributes(varCategoryResourceAttributes) - - return err -} - -type NullableCategoryResourceAttributes struct { - value *CategoryResourceAttributes - isSet bool -} - -func (v NullableCategoryResourceAttributes) Get() *CategoryResourceAttributes { - return v.value -} - -func (v *NullableCategoryResourceAttributes) Set(val *CategoryResourceAttributes) { - v.value = val - v.isSet = true -} - -func (v NullableCategoryResourceAttributes) IsSet() bool { - return v.isSet -} - -func (v *NullableCategoryResourceAttributes) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCategoryResourceAttributes(val *CategoryResourceAttributes) *NullableCategoryResourceAttributes { - return &NullableCategoryResourceAttributes{value: val, isSet: true} -} - -func (v NullableCategoryResourceAttributes) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCategoryResourceAttributes) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_category_resource_relationships.go b/expense-manager/openapi/model_category_resource_relationships.go deleted file mode 100644 index d9d8640..0000000 --- a/expense-manager/openapi/model_category_resource_relationships.go +++ /dev/null @@ -1,184 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the CategoryResourceRelationships type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CategoryResourceRelationships{} - -// CategoryResourceRelationships struct for CategoryResourceRelationships -type CategoryResourceRelationships struct { - Parent CategoryResourceRelationshipsParent `json:"parent"` - Children CategoryResourceRelationshipsChildren `json:"children"` -} - -type _CategoryResourceRelationships CategoryResourceRelationships - -// NewCategoryResourceRelationships instantiates a new CategoryResourceRelationships object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCategoryResourceRelationships(parent CategoryResourceRelationshipsParent, children CategoryResourceRelationshipsChildren) *CategoryResourceRelationships { - this := CategoryResourceRelationships{} - this.Parent = parent - this.Children = children - return &this -} - -// NewCategoryResourceRelationshipsWithDefaults instantiates a new CategoryResourceRelationships object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCategoryResourceRelationshipsWithDefaults() *CategoryResourceRelationships { - this := CategoryResourceRelationships{} - return &this -} - -// GetParent returns the Parent field value -func (o *CategoryResourceRelationships) GetParent() CategoryResourceRelationshipsParent { - if o == nil { - var ret CategoryResourceRelationshipsParent - return ret - } - - return o.Parent -} - -// GetParentOk returns a tuple with the Parent field value -// and a boolean to check if the value has been set. -func (o *CategoryResourceRelationships) GetParentOk() (*CategoryResourceRelationshipsParent, bool) { - if o == nil { - return nil, false - } - return &o.Parent, true -} - -// SetParent sets field value -func (o *CategoryResourceRelationships) SetParent(v CategoryResourceRelationshipsParent) { - o.Parent = v -} - -// GetChildren returns the Children field value -func (o *CategoryResourceRelationships) GetChildren() CategoryResourceRelationshipsChildren { - if o == nil { - var ret CategoryResourceRelationshipsChildren - return ret - } - - return o.Children -} - -// GetChildrenOk returns a tuple with the Children field value -// and a boolean to check if the value has been set. -func (o *CategoryResourceRelationships) GetChildrenOk() (*CategoryResourceRelationshipsChildren, bool) { - if o == nil { - return nil, false - } - return &o.Children, true -} - -// SetChildren sets field value -func (o *CategoryResourceRelationships) SetChildren(v CategoryResourceRelationshipsChildren) { - o.Children = v -} - -func (o CategoryResourceRelationships) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CategoryResourceRelationships) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["parent"] = o.Parent - toSerialize["children"] = o.Children - return toSerialize, nil -} - -func (o *CategoryResourceRelationships) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "parent", - "children", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCategoryResourceRelationships := _CategoryResourceRelationships{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varCategoryResourceRelationships) - - if err != nil { - return err - } - - *o = CategoryResourceRelationships(varCategoryResourceRelationships) - - return err -} - -type NullableCategoryResourceRelationships struct { - value *CategoryResourceRelationships - isSet bool -} - -func (v NullableCategoryResourceRelationships) Get() *CategoryResourceRelationships { - return v.value -} - -func (v *NullableCategoryResourceRelationships) Set(val *CategoryResourceRelationships) { - v.value = val - v.isSet = true -} - -func (v NullableCategoryResourceRelationships) IsSet() bool { - return v.isSet -} - -func (v *NullableCategoryResourceRelationships) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCategoryResourceRelationships(val *CategoryResourceRelationships) *NullableCategoryResourceRelationships { - return &NullableCategoryResourceRelationships{value: val, isSet: true} -} - -func (v NullableCategoryResourceRelationships) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCategoryResourceRelationships) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_category_resource_relationships_children.go b/expense-manager/openapi/model_category_resource_relationships_children.go deleted file mode 100644 index b3d72d7..0000000 --- a/expense-manager/openapi/model_category_resource_relationships_children.go +++ /dev/null @@ -1,192 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the CategoryResourceRelationshipsChildren type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CategoryResourceRelationshipsChildren{} - -// CategoryResourceRelationshipsChildren struct for CategoryResourceRelationshipsChildren -type CategoryResourceRelationshipsChildren struct { - Data []CategoryResourceRelationshipsChildrenDataInner `json:"data"` - Links *AccountResourceRelationshipsTransactionsLinks `json:"links,omitempty"` -} - -type _CategoryResourceRelationshipsChildren CategoryResourceRelationshipsChildren - -// NewCategoryResourceRelationshipsChildren instantiates a new CategoryResourceRelationshipsChildren object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCategoryResourceRelationshipsChildren(data []CategoryResourceRelationshipsChildrenDataInner) *CategoryResourceRelationshipsChildren { - this := CategoryResourceRelationshipsChildren{} - this.Data = data - return &this -} - -// NewCategoryResourceRelationshipsChildrenWithDefaults instantiates a new CategoryResourceRelationshipsChildren object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCategoryResourceRelationshipsChildrenWithDefaults() *CategoryResourceRelationshipsChildren { - this := CategoryResourceRelationshipsChildren{} - return &this -} - -// GetData returns the Data field value -func (o *CategoryResourceRelationshipsChildren) GetData() []CategoryResourceRelationshipsChildrenDataInner { - if o == nil { - var ret []CategoryResourceRelationshipsChildrenDataInner - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *CategoryResourceRelationshipsChildren) GetDataOk() ([]CategoryResourceRelationshipsChildrenDataInner, bool) { - if o == nil { - return nil, false - } - return o.Data, true -} - -// SetData sets field value -func (o *CategoryResourceRelationshipsChildren) SetData(v []CategoryResourceRelationshipsChildrenDataInner) { - o.Data = v -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *CategoryResourceRelationshipsChildren) GetLinks() AccountResourceRelationshipsTransactionsLinks { - if o == nil || IsNil(o.Links) { - var ret AccountResourceRelationshipsTransactionsLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CategoryResourceRelationshipsChildren) GetLinksOk() (*AccountResourceRelationshipsTransactionsLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *CategoryResourceRelationshipsChildren) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given AccountResourceRelationshipsTransactionsLinks and assigns it to the Links field. -func (o *CategoryResourceRelationshipsChildren) SetLinks(v AccountResourceRelationshipsTransactionsLinks) { - o.Links = &v -} - -func (o CategoryResourceRelationshipsChildren) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CategoryResourceRelationshipsChildren) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - return toSerialize, nil -} - -func (o *CategoryResourceRelationshipsChildren) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCategoryResourceRelationshipsChildren := _CategoryResourceRelationshipsChildren{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varCategoryResourceRelationshipsChildren) - - if err != nil { - return err - } - - *o = CategoryResourceRelationshipsChildren(varCategoryResourceRelationshipsChildren) - - return err -} - -type NullableCategoryResourceRelationshipsChildren struct { - value *CategoryResourceRelationshipsChildren - isSet bool -} - -func (v NullableCategoryResourceRelationshipsChildren) Get() *CategoryResourceRelationshipsChildren { - return v.value -} - -func (v *NullableCategoryResourceRelationshipsChildren) Set(val *CategoryResourceRelationshipsChildren) { - v.value = val - v.isSet = true -} - -func (v NullableCategoryResourceRelationshipsChildren) IsSet() bool { - return v.isSet -} - -func (v *NullableCategoryResourceRelationshipsChildren) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCategoryResourceRelationshipsChildren(val *CategoryResourceRelationshipsChildren) *NullableCategoryResourceRelationshipsChildren { - return &NullableCategoryResourceRelationshipsChildren{value: val, isSet: true} -} - -func (v NullableCategoryResourceRelationshipsChildren) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCategoryResourceRelationshipsChildren) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_category_resource_relationships_children_data_inner.go b/expense-manager/openapi/model_category_resource_relationships_children_data_inner.go deleted file mode 100644 index 65d6577..0000000 --- a/expense-manager/openapi/model_category_resource_relationships_children_data_inner.go +++ /dev/null @@ -1,186 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the CategoryResourceRelationshipsChildrenDataInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CategoryResourceRelationshipsChildrenDataInner{} - -// CategoryResourceRelationshipsChildrenDataInner struct for CategoryResourceRelationshipsChildrenDataInner -type CategoryResourceRelationshipsChildrenDataInner struct { - // The type of this resource: `categories` - Type string `json:"type"` - // The unique identifier of the resource within its type. - Id string `json:"id"` -} - -type _CategoryResourceRelationshipsChildrenDataInner CategoryResourceRelationshipsChildrenDataInner - -// NewCategoryResourceRelationshipsChildrenDataInner instantiates a new CategoryResourceRelationshipsChildrenDataInner object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCategoryResourceRelationshipsChildrenDataInner(type_ string, id string) *CategoryResourceRelationshipsChildrenDataInner { - this := CategoryResourceRelationshipsChildrenDataInner{} - this.Type = type_ - this.Id = id - return &this -} - -// NewCategoryResourceRelationshipsChildrenDataInnerWithDefaults instantiates a new CategoryResourceRelationshipsChildrenDataInner object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCategoryResourceRelationshipsChildrenDataInnerWithDefaults() *CategoryResourceRelationshipsChildrenDataInner { - this := CategoryResourceRelationshipsChildrenDataInner{} - return &this -} - -// GetType returns the Type field value -func (o *CategoryResourceRelationshipsChildrenDataInner) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *CategoryResourceRelationshipsChildrenDataInner) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *CategoryResourceRelationshipsChildrenDataInner) SetType(v string) { - o.Type = v -} - -// GetId returns the Id field value -func (o *CategoryResourceRelationshipsChildrenDataInner) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *CategoryResourceRelationshipsChildrenDataInner) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *CategoryResourceRelationshipsChildrenDataInner) SetId(v string) { - o.Id = v -} - -func (o CategoryResourceRelationshipsChildrenDataInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CategoryResourceRelationshipsChildrenDataInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["id"] = o.Id - return toSerialize, nil -} - -func (o *CategoryResourceRelationshipsChildrenDataInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCategoryResourceRelationshipsChildrenDataInner := _CategoryResourceRelationshipsChildrenDataInner{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varCategoryResourceRelationshipsChildrenDataInner) - - if err != nil { - return err - } - - *o = CategoryResourceRelationshipsChildrenDataInner(varCategoryResourceRelationshipsChildrenDataInner) - - return err -} - -type NullableCategoryResourceRelationshipsChildrenDataInner struct { - value *CategoryResourceRelationshipsChildrenDataInner - isSet bool -} - -func (v NullableCategoryResourceRelationshipsChildrenDataInner) Get() *CategoryResourceRelationshipsChildrenDataInner { - return v.value -} - -func (v *NullableCategoryResourceRelationshipsChildrenDataInner) Set(val *CategoryResourceRelationshipsChildrenDataInner) { - v.value = val - v.isSet = true -} - -func (v NullableCategoryResourceRelationshipsChildrenDataInner) IsSet() bool { - return v.isSet -} - -func (v *NullableCategoryResourceRelationshipsChildrenDataInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCategoryResourceRelationshipsChildrenDataInner(val *CategoryResourceRelationshipsChildrenDataInner) *NullableCategoryResourceRelationshipsChildrenDataInner { - return &NullableCategoryResourceRelationshipsChildrenDataInner{value: val, isSet: true} -} - -func (v NullableCategoryResourceRelationshipsChildrenDataInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCategoryResourceRelationshipsChildrenDataInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_category_resource_relationships_parent.go b/expense-manager/openapi/model_category_resource_relationships_parent.go deleted file mode 100644 index 28540f2..0000000 --- a/expense-manager/openapi/model_category_resource_relationships_parent.go +++ /dev/null @@ -1,194 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the CategoryResourceRelationshipsParent type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CategoryResourceRelationshipsParent{} - -// CategoryResourceRelationshipsParent struct for CategoryResourceRelationshipsParent -type CategoryResourceRelationshipsParent struct { - Data NullableCategoryResourceRelationshipsParentData `json:"data"` - Links *AccountResourceRelationshipsTransactionsLinks `json:"links,omitempty"` -} - -type _CategoryResourceRelationshipsParent CategoryResourceRelationshipsParent - -// NewCategoryResourceRelationshipsParent instantiates a new CategoryResourceRelationshipsParent object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCategoryResourceRelationshipsParent(data NullableCategoryResourceRelationshipsParentData) *CategoryResourceRelationshipsParent { - this := CategoryResourceRelationshipsParent{} - this.Data = data - return &this -} - -// NewCategoryResourceRelationshipsParentWithDefaults instantiates a new CategoryResourceRelationshipsParent object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCategoryResourceRelationshipsParentWithDefaults() *CategoryResourceRelationshipsParent { - this := CategoryResourceRelationshipsParent{} - return &this -} - -// GetData returns the Data field value -// If the value is explicit nil, the zero value for CategoryResourceRelationshipsParentData will be returned -func (o *CategoryResourceRelationshipsParent) GetData() CategoryResourceRelationshipsParentData { - if o == nil || o.Data.Get() == nil { - var ret CategoryResourceRelationshipsParentData - return ret - } - - return *o.Data.Get() -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CategoryResourceRelationshipsParent) GetDataOk() (*CategoryResourceRelationshipsParentData, bool) { - if o == nil { - return nil, false - } - return o.Data.Get(), o.Data.IsSet() -} - -// SetData sets field value -func (o *CategoryResourceRelationshipsParent) SetData(v CategoryResourceRelationshipsParentData) { - o.Data.Set(&v) -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *CategoryResourceRelationshipsParent) GetLinks() AccountResourceRelationshipsTransactionsLinks { - if o == nil || IsNil(o.Links) { - var ret AccountResourceRelationshipsTransactionsLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CategoryResourceRelationshipsParent) GetLinksOk() (*AccountResourceRelationshipsTransactionsLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *CategoryResourceRelationshipsParent) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given AccountResourceRelationshipsTransactionsLinks and assigns it to the Links field. -func (o *CategoryResourceRelationshipsParent) SetLinks(v AccountResourceRelationshipsTransactionsLinks) { - o.Links = &v -} - -func (o CategoryResourceRelationshipsParent) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CategoryResourceRelationshipsParent) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data.Get() - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - return toSerialize, nil -} - -func (o *CategoryResourceRelationshipsParent) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCategoryResourceRelationshipsParent := _CategoryResourceRelationshipsParent{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varCategoryResourceRelationshipsParent) - - if err != nil { - return err - } - - *o = CategoryResourceRelationshipsParent(varCategoryResourceRelationshipsParent) - - return err -} - -type NullableCategoryResourceRelationshipsParent struct { - value *CategoryResourceRelationshipsParent - isSet bool -} - -func (v NullableCategoryResourceRelationshipsParent) Get() *CategoryResourceRelationshipsParent { - return v.value -} - -func (v *NullableCategoryResourceRelationshipsParent) Set(val *CategoryResourceRelationshipsParent) { - v.value = val - v.isSet = true -} - -func (v NullableCategoryResourceRelationshipsParent) IsSet() bool { - return v.isSet -} - -func (v *NullableCategoryResourceRelationshipsParent) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCategoryResourceRelationshipsParent(val *CategoryResourceRelationshipsParent) *NullableCategoryResourceRelationshipsParent { - return &NullableCategoryResourceRelationshipsParent{value: val, isSet: true} -} - -func (v NullableCategoryResourceRelationshipsParent) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCategoryResourceRelationshipsParent) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_category_resource_relationships_parent_data.go b/expense-manager/openapi/model_category_resource_relationships_parent_data.go deleted file mode 100644 index dbf4c53..0000000 --- a/expense-manager/openapi/model_category_resource_relationships_parent_data.go +++ /dev/null @@ -1,186 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the CategoryResourceRelationshipsParentData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CategoryResourceRelationshipsParentData{} - -// CategoryResourceRelationshipsParentData struct for CategoryResourceRelationshipsParentData -type CategoryResourceRelationshipsParentData struct { - // The type of this resource: `categories` - Type string `json:"type"` - // The unique identifier of the resource within its type. - Id string `json:"id"` -} - -type _CategoryResourceRelationshipsParentData CategoryResourceRelationshipsParentData - -// NewCategoryResourceRelationshipsParentData instantiates a new CategoryResourceRelationshipsParentData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCategoryResourceRelationshipsParentData(type_ string, id string) *CategoryResourceRelationshipsParentData { - this := CategoryResourceRelationshipsParentData{} - this.Type = type_ - this.Id = id - return &this -} - -// NewCategoryResourceRelationshipsParentDataWithDefaults instantiates a new CategoryResourceRelationshipsParentData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCategoryResourceRelationshipsParentDataWithDefaults() *CategoryResourceRelationshipsParentData { - this := CategoryResourceRelationshipsParentData{} - return &this -} - -// GetType returns the Type field value -func (o *CategoryResourceRelationshipsParentData) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *CategoryResourceRelationshipsParentData) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *CategoryResourceRelationshipsParentData) SetType(v string) { - o.Type = v -} - -// GetId returns the Id field value -func (o *CategoryResourceRelationshipsParentData) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *CategoryResourceRelationshipsParentData) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *CategoryResourceRelationshipsParentData) SetId(v string) { - o.Id = v -} - -func (o CategoryResourceRelationshipsParentData) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CategoryResourceRelationshipsParentData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["id"] = o.Id - return toSerialize, nil -} - -func (o *CategoryResourceRelationshipsParentData) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCategoryResourceRelationshipsParentData := _CategoryResourceRelationshipsParentData{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varCategoryResourceRelationshipsParentData) - - if err != nil { - return err - } - - *o = CategoryResourceRelationshipsParentData(varCategoryResourceRelationshipsParentData) - - return err -} - -type NullableCategoryResourceRelationshipsParentData struct { - value *CategoryResourceRelationshipsParentData - isSet bool -} - -func (v NullableCategoryResourceRelationshipsParentData) Get() *CategoryResourceRelationshipsParentData { - return v.value -} - -func (v *NullableCategoryResourceRelationshipsParentData) Set(val *CategoryResourceRelationshipsParentData) { - v.value = val - v.isSet = true -} - -func (v NullableCategoryResourceRelationshipsParentData) IsSet() bool { - return v.isSet -} - -func (v *NullableCategoryResourceRelationshipsParentData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCategoryResourceRelationshipsParentData(val *CategoryResourceRelationshipsParentData) *NullableCategoryResourceRelationshipsParentData { - return &NullableCategoryResourceRelationshipsParentData{value: val, isSet: true} -} - -func (v NullableCategoryResourceRelationshipsParentData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCategoryResourceRelationshipsParentData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_create_webhook_request.go b/expense-manager/openapi/model_create_webhook_request.go deleted file mode 100644 index e701a5f..0000000 --- a/expense-manager/openapi/model_create_webhook_request.go +++ /dev/null @@ -1,157 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the CreateWebhookRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateWebhookRequest{} - -// CreateWebhookRequest Request to create a new webhook. This currently only requires a `url` attribute. -type CreateWebhookRequest struct { - // The webhook resource to create. - Data WebhookInputResource `json:"data"` -} - -type _CreateWebhookRequest CreateWebhookRequest - -// NewCreateWebhookRequest instantiates a new CreateWebhookRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCreateWebhookRequest(data WebhookInputResource) *CreateWebhookRequest { - this := CreateWebhookRequest{} - this.Data = data - return &this -} - -// NewCreateWebhookRequestWithDefaults instantiates a new CreateWebhookRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCreateWebhookRequestWithDefaults() *CreateWebhookRequest { - this := CreateWebhookRequest{} - return &this -} - -// GetData returns the Data field value -func (o *CreateWebhookRequest) GetData() WebhookInputResource { - if o == nil { - var ret WebhookInputResource - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *CreateWebhookRequest) GetDataOk() (*WebhookInputResource, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *CreateWebhookRequest) SetData(v WebhookInputResource) { - o.Data = v -} - -func (o CreateWebhookRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CreateWebhookRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - return toSerialize, nil -} - -func (o *CreateWebhookRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCreateWebhookRequest := _CreateWebhookRequest{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varCreateWebhookRequest) - - if err != nil { - return err - } - - *o = CreateWebhookRequest(varCreateWebhookRequest) - - return err -} - -type NullableCreateWebhookRequest struct { - value *CreateWebhookRequest - isSet bool -} - -func (v NullableCreateWebhookRequest) Get() *CreateWebhookRequest { - return v.value -} - -func (v *NullableCreateWebhookRequest) Set(val *CreateWebhookRequest) { - v.value = val - v.isSet = true -} - -func (v NullableCreateWebhookRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateWebhookRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateWebhookRequest(val *CreateWebhookRequest) *NullableCreateWebhookRequest { - return &NullableCreateWebhookRequest{value: val, isSet: true} -} - -func (v NullableCreateWebhookRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateWebhookRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_create_webhook_response.go b/expense-manager/openapi/model_create_webhook_response.go deleted file mode 100644 index 1574693..0000000 --- a/expense-manager/openapi/model_create_webhook_response.go +++ /dev/null @@ -1,157 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the CreateWebhookResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateWebhookResponse{} - -// CreateWebhookResponse Successful response after creating a webhook. -type CreateWebhookResponse struct { - // The webhook that was created. - Data WebhookResource `json:"data"` -} - -type _CreateWebhookResponse CreateWebhookResponse - -// NewCreateWebhookResponse instantiates a new CreateWebhookResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewCreateWebhookResponse(data WebhookResource) *CreateWebhookResponse { - this := CreateWebhookResponse{} - this.Data = data - return &this -} - -// NewCreateWebhookResponseWithDefaults instantiates a new CreateWebhookResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewCreateWebhookResponseWithDefaults() *CreateWebhookResponse { - this := CreateWebhookResponse{} - return &this -} - -// GetData returns the Data field value -func (o *CreateWebhookResponse) GetData() WebhookResource { - if o == nil { - var ret WebhookResource - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *CreateWebhookResponse) GetDataOk() (*WebhookResource, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *CreateWebhookResponse) SetData(v WebhookResource) { - o.Data = v -} - -func (o CreateWebhookResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o CreateWebhookResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - return toSerialize, nil -} - -func (o *CreateWebhookResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varCreateWebhookResponse := _CreateWebhookResponse{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varCreateWebhookResponse) - - if err != nil { - return err - } - - *o = CreateWebhookResponse(varCreateWebhookResponse) - - return err -} - -type NullableCreateWebhookResponse struct { - value *CreateWebhookResponse - isSet bool -} - -func (v NullableCreateWebhookResponse) Get() *CreateWebhookResponse { - return v.value -} - -func (v *NullableCreateWebhookResponse) Set(val *CreateWebhookResponse) { - v.value = val - v.isSet = true -} - -func (v NullableCreateWebhookResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableCreateWebhookResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableCreateWebhookResponse(val *CreateWebhookResponse) *NullableCreateWebhookResponse { - return &NullableCreateWebhookResponse{value: val, isSet: true} -} - -func (v NullableCreateWebhookResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableCreateWebhookResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_error_object.go b/expense-manager/openapi/model_error_object.go deleted file mode 100644 index 98b3d53..0000000 --- a/expense-manager/openapi/model_error_object.go +++ /dev/null @@ -1,251 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the ErrorObject type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ErrorObject{} - -// ErrorObject Provides information about an error processing a request. -type ErrorObject struct { - // The HTTP status code associated with this error. This can also be obtained from the response headers. The status indicates the broad type of error according to HTTP semantics. - Status string `json:"status"` - // A short description of this error. This should be stable across multiple occurrences of this type of error and typically expands on the reason for the status code. - Title string `json:"title"` - // A detailed description of this error. This should be considered unique to individual occurrences of an error and subject to change. It is useful for debugging purposes. - Detail string `json:"detail"` - Source *ErrorObjectSource `json:"source,omitempty"` -} - -type _ErrorObject ErrorObject - -// NewErrorObject instantiates a new ErrorObject object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewErrorObject(status string, title string, detail string) *ErrorObject { - this := ErrorObject{} - this.Status = status - this.Title = title - this.Detail = detail - return &this -} - -// NewErrorObjectWithDefaults instantiates a new ErrorObject object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewErrorObjectWithDefaults() *ErrorObject { - this := ErrorObject{} - return &this -} - -// GetStatus returns the Status field value -func (o *ErrorObject) GetStatus() string { - if o == nil { - var ret string - return ret - } - - return o.Status -} - -// GetStatusOk returns a tuple with the Status field value -// and a boolean to check if the value has been set. -func (o *ErrorObject) GetStatusOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Status, true -} - -// SetStatus sets field value -func (o *ErrorObject) SetStatus(v string) { - o.Status = v -} - -// GetTitle returns the Title field value -func (o *ErrorObject) GetTitle() string { - if o == nil { - var ret string - return ret - } - - return o.Title -} - -// GetTitleOk returns a tuple with the Title field value -// and a boolean to check if the value has been set. -func (o *ErrorObject) GetTitleOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Title, true -} - -// SetTitle sets field value -func (o *ErrorObject) SetTitle(v string) { - o.Title = v -} - -// GetDetail returns the Detail field value -func (o *ErrorObject) GetDetail() string { - if o == nil { - var ret string - return ret - } - - return o.Detail -} - -// GetDetailOk returns a tuple with the Detail field value -// and a boolean to check if the value has been set. -func (o *ErrorObject) GetDetailOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Detail, true -} - -// SetDetail sets field value -func (o *ErrorObject) SetDetail(v string) { - o.Detail = v -} - -// GetSource returns the Source field value if set, zero value otherwise. -func (o *ErrorObject) GetSource() ErrorObjectSource { - if o == nil || IsNil(o.Source) { - var ret ErrorObjectSource - return ret - } - return *o.Source -} - -// GetSourceOk returns a tuple with the Source field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ErrorObject) GetSourceOk() (*ErrorObjectSource, bool) { - if o == nil || IsNil(o.Source) { - return nil, false - } - return o.Source, true -} - -// HasSource returns a boolean if a field has been set. -func (o *ErrorObject) HasSource() bool { - if o != nil && !IsNil(o.Source) { - return true - } - - return false -} - -// SetSource gets a reference to the given ErrorObjectSource and assigns it to the Source field. -func (o *ErrorObject) SetSource(v ErrorObjectSource) { - o.Source = &v -} - -func (o ErrorObject) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ErrorObject) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["status"] = o.Status - toSerialize["title"] = o.Title - toSerialize["detail"] = o.Detail - if !IsNil(o.Source) { - toSerialize["source"] = o.Source - } - return toSerialize, nil -} - -func (o *ErrorObject) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "status", - "title", - "detail", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varErrorObject := _ErrorObject{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varErrorObject) - - if err != nil { - return err - } - - *o = ErrorObject(varErrorObject) - - return err -} - -type NullableErrorObject struct { - value *ErrorObject - isSet bool -} - -func (v NullableErrorObject) Get() *ErrorObject { - return v.value -} - -func (v *NullableErrorObject) Set(val *ErrorObject) { - v.value = val - v.isSet = true -} - -func (v NullableErrorObject) IsSet() bool { - return v.isSet -} - -func (v *NullableErrorObject) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableErrorObject(val *ErrorObject) *NullableErrorObject { - return &NullableErrorObject{value: val, isSet: true} -} - -func (v NullableErrorObject) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableErrorObject) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_error_object_source.go b/expense-manager/openapi/model_error_object_source.go deleted file mode 100644 index 72bdb44..0000000 --- a/expense-manager/openapi/model_error_object_source.go +++ /dev/null @@ -1,162 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" -) - -// checks if the ErrorObjectSource type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ErrorObjectSource{} - -// ErrorObjectSource If applicable, location in the request that this error relates to. This may be a parameter in the query string, or a an attribute in the request body. -type ErrorObjectSource struct { - // If this error relates to a query parameter, the name of the parameter. - Parameter *string `json:"parameter,omitempty"` - // If this error relates to an attribute in the request body, a rfc-6901 JSON pointer to the attribute. - Pointer *string `json:"pointer,omitempty"` -} - -// NewErrorObjectSource instantiates a new ErrorObjectSource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewErrorObjectSource() *ErrorObjectSource { - this := ErrorObjectSource{} - return &this -} - -// NewErrorObjectSourceWithDefaults instantiates a new ErrorObjectSource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewErrorObjectSourceWithDefaults() *ErrorObjectSource { - this := ErrorObjectSource{} - return &this -} - -// GetParameter returns the Parameter field value if set, zero value otherwise. -func (o *ErrorObjectSource) GetParameter() string { - if o == nil || IsNil(o.Parameter) { - var ret string - return ret - } - return *o.Parameter -} - -// GetParameterOk returns a tuple with the Parameter field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ErrorObjectSource) GetParameterOk() (*string, bool) { - if o == nil || IsNil(o.Parameter) { - return nil, false - } - return o.Parameter, true -} - -// HasParameter returns a boolean if a field has been set. -func (o *ErrorObjectSource) HasParameter() bool { - if o != nil && !IsNil(o.Parameter) { - return true - } - - return false -} - -// SetParameter gets a reference to the given string and assigns it to the Parameter field. -func (o *ErrorObjectSource) SetParameter(v string) { - o.Parameter = &v -} - -// GetPointer returns the Pointer field value if set, zero value otherwise. -func (o *ErrorObjectSource) GetPointer() string { - if o == nil || IsNil(o.Pointer) { - var ret string - return ret - } - return *o.Pointer -} - -// GetPointerOk returns a tuple with the Pointer field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ErrorObjectSource) GetPointerOk() (*string, bool) { - if o == nil || IsNil(o.Pointer) { - return nil, false - } - return o.Pointer, true -} - -// HasPointer returns a boolean if a field has been set. -func (o *ErrorObjectSource) HasPointer() bool { - if o != nil && !IsNil(o.Pointer) { - return true - } - - return false -} - -// SetPointer gets a reference to the given string and assigns it to the Pointer field. -func (o *ErrorObjectSource) SetPointer(v string) { - o.Pointer = &v -} - -func (o ErrorObjectSource) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ErrorObjectSource) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Parameter) { - toSerialize["parameter"] = o.Parameter - } - if !IsNil(o.Pointer) { - toSerialize["pointer"] = o.Pointer - } - return toSerialize, nil -} - -type NullableErrorObjectSource struct { - value *ErrorObjectSource - isSet bool -} - -func (v NullableErrorObjectSource) Get() *ErrorObjectSource { - return v.value -} - -func (v *NullableErrorObjectSource) Set(val *ErrorObjectSource) { - v.value = val - v.isSet = true -} - -func (v NullableErrorObjectSource) IsSet() bool { - return v.isSet -} - -func (v *NullableErrorObjectSource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableErrorObjectSource(val *ErrorObjectSource) *NullableErrorObjectSource { - return &NullableErrorObjectSource{value: val, isSet: true} -} - -func (v NullableErrorObjectSource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableErrorObjectSource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_error_response.go b/expense-manager/openapi/model_error_response.go deleted file mode 100644 index 1fd2afd..0000000 --- a/expense-manager/openapi/model_error_response.go +++ /dev/null @@ -1,157 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the ErrorResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ErrorResponse{} - -// ErrorResponse Generic error response that returns one or more errors. -type ErrorResponse struct { - // The list of errors returned in this response. - Errors []ErrorObject `json:"errors"` -} - -type _ErrorResponse ErrorResponse - -// NewErrorResponse instantiates a new ErrorResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewErrorResponse(errors []ErrorObject) *ErrorResponse { - this := ErrorResponse{} - this.Errors = errors - return &this -} - -// NewErrorResponseWithDefaults instantiates a new ErrorResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewErrorResponseWithDefaults() *ErrorResponse { - this := ErrorResponse{} - return &this -} - -// GetErrors returns the Errors field value -func (o *ErrorResponse) GetErrors() []ErrorObject { - if o == nil { - var ret []ErrorObject - return ret - } - - return o.Errors -} - -// GetErrorsOk returns a tuple with the Errors field value -// and a boolean to check if the value has been set. -func (o *ErrorResponse) GetErrorsOk() ([]ErrorObject, bool) { - if o == nil { - return nil, false - } - return o.Errors, true -} - -// SetErrors sets field value -func (o *ErrorResponse) SetErrors(v []ErrorObject) { - o.Errors = v -} - -func (o ErrorResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ErrorResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["errors"] = o.Errors - return toSerialize, nil -} - -func (o *ErrorResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "errors", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varErrorResponse := _ErrorResponse{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varErrorResponse) - - if err != nil { - return err - } - - *o = ErrorResponse(varErrorResponse) - - return err -} - -type NullableErrorResponse struct { - value *ErrorResponse - isSet bool -} - -func (v NullableErrorResponse) Get() *ErrorResponse { - return v.value -} - -func (v *NullableErrorResponse) Set(val *ErrorResponse) { - v.value = val - v.isSet = true -} - -func (v NullableErrorResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableErrorResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableErrorResponse(val *ErrorResponse) *NullableErrorResponse { - return &NullableErrorResponse{value: val, isSet: true} -} - -func (v NullableErrorResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableErrorResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_get_account_response.go b/expense-manager/openapi/model_get_account_response.go deleted file mode 100644 index 747cf3d..0000000 --- a/expense-manager/openapi/model_get_account_response.go +++ /dev/null @@ -1,157 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the GetAccountResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetAccountResponse{} - -// GetAccountResponse Successful response to get a single account. -type GetAccountResponse struct { - // The account returned in this response. - Data AccountResource `json:"data"` -} - -type _GetAccountResponse GetAccountResponse - -// NewGetAccountResponse instantiates a new GetAccountResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetAccountResponse(data AccountResource) *GetAccountResponse { - this := GetAccountResponse{} - this.Data = data - return &this -} - -// NewGetAccountResponseWithDefaults instantiates a new GetAccountResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetAccountResponseWithDefaults() *GetAccountResponse { - this := GetAccountResponse{} - return &this -} - -// GetData returns the Data field value -func (o *GetAccountResponse) GetData() AccountResource { - if o == nil { - var ret AccountResource - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *GetAccountResponse) GetDataOk() (*AccountResource, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *GetAccountResponse) SetData(v AccountResource) { - o.Data = v -} - -func (o GetAccountResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetAccountResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - return toSerialize, nil -} - -func (o *GetAccountResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varGetAccountResponse := _GetAccountResponse{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varGetAccountResponse) - - if err != nil { - return err - } - - *o = GetAccountResponse(varGetAccountResponse) - - return err -} - -type NullableGetAccountResponse struct { - value *GetAccountResponse - isSet bool -} - -func (v NullableGetAccountResponse) Get() *GetAccountResponse { - return v.value -} - -func (v *NullableGetAccountResponse) Set(val *GetAccountResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetAccountResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetAccountResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetAccountResponse(val *GetAccountResponse) *NullableGetAccountResponse { - return &NullableGetAccountResponse{value: val, isSet: true} -} - -func (v NullableGetAccountResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetAccountResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_get_category_response.go b/expense-manager/openapi/model_get_category_response.go deleted file mode 100644 index e51de98..0000000 --- a/expense-manager/openapi/model_get_category_response.go +++ /dev/null @@ -1,157 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the GetCategoryResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetCategoryResponse{} - -// GetCategoryResponse Successful response to get a single category and its ancestry. -type GetCategoryResponse struct { - // The category returned in this response. - Data CategoryResource `json:"data"` -} - -type _GetCategoryResponse GetCategoryResponse - -// NewGetCategoryResponse instantiates a new GetCategoryResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetCategoryResponse(data CategoryResource) *GetCategoryResponse { - this := GetCategoryResponse{} - this.Data = data - return &this -} - -// NewGetCategoryResponseWithDefaults instantiates a new GetCategoryResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetCategoryResponseWithDefaults() *GetCategoryResponse { - this := GetCategoryResponse{} - return &this -} - -// GetData returns the Data field value -func (o *GetCategoryResponse) GetData() CategoryResource { - if o == nil { - var ret CategoryResource - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *GetCategoryResponse) GetDataOk() (*CategoryResource, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *GetCategoryResponse) SetData(v CategoryResource) { - o.Data = v -} - -func (o GetCategoryResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetCategoryResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - return toSerialize, nil -} - -func (o *GetCategoryResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varGetCategoryResponse := _GetCategoryResponse{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varGetCategoryResponse) - - if err != nil { - return err - } - - *o = GetCategoryResponse(varGetCategoryResponse) - - return err -} - -type NullableGetCategoryResponse struct { - value *GetCategoryResponse - isSet bool -} - -func (v NullableGetCategoryResponse) Get() *GetCategoryResponse { - return v.value -} - -func (v *NullableGetCategoryResponse) Set(val *GetCategoryResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetCategoryResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetCategoryResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetCategoryResponse(val *GetCategoryResponse) *NullableGetCategoryResponse { - return &NullableGetCategoryResponse{value: val, isSet: true} -} - -func (v NullableGetCategoryResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetCategoryResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_get_transaction_response.go b/expense-manager/openapi/model_get_transaction_response.go deleted file mode 100644 index 5203a01..0000000 --- a/expense-manager/openapi/model_get_transaction_response.go +++ /dev/null @@ -1,157 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the GetTransactionResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetTransactionResponse{} - -// GetTransactionResponse Successful response to get a single transaction. -type GetTransactionResponse struct { - // The transaction returned in this response. - Data TransactionResource `json:"data"` -} - -type _GetTransactionResponse GetTransactionResponse - -// NewGetTransactionResponse instantiates a new GetTransactionResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetTransactionResponse(data TransactionResource) *GetTransactionResponse { - this := GetTransactionResponse{} - this.Data = data - return &this -} - -// NewGetTransactionResponseWithDefaults instantiates a new GetTransactionResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetTransactionResponseWithDefaults() *GetTransactionResponse { - this := GetTransactionResponse{} - return &this -} - -// GetData returns the Data field value -func (o *GetTransactionResponse) GetData() TransactionResource { - if o == nil { - var ret TransactionResource - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *GetTransactionResponse) GetDataOk() (*TransactionResource, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *GetTransactionResponse) SetData(v TransactionResource) { - o.Data = v -} - -func (o GetTransactionResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetTransactionResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - return toSerialize, nil -} - -func (o *GetTransactionResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varGetTransactionResponse := _GetTransactionResponse{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varGetTransactionResponse) - - if err != nil { - return err - } - - *o = GetTransactionResponse(varGetTransactionResponse) - - return err -} - -type NullableGetTransactionResponse struct { - value *GetTransactionResponse - isSet bool -} - -func (v NullableGetTransactionResponse) Get() *GetTransactionResponse { - return v.value -} - -func (v *NullableGetTransactionResponse) Set(val *GetTransactionResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetTransactionResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetTransactionResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetTransactionResponse(val *GetTransactionResponse) *NullableGetTransactionResponse { - return &NullableGetTransactionResponse{value: val, isSet: true} -} - -func (v NullableGetTransactionResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetTransactionResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_get_webhook_response.go b/expense-manager/openapi/model_get_webhook_response.go deleted file mode 100644 index 70a326e..0000000 --- a/expense-manager/openapi/model_get_webhook_response.go +++ /dev/null @@ -1,157 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the GetWebhookResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetWebhookResponse{} - -// GetWebhookResponse Successful response to get a single webhook. -type GetWebhookResponse struct { - // The webhook returned in this response. - Data WebhookResource `json:"data"` -} - -type _GetWebhookResponse GetWebhookResponse - -// NewGetWebhookResponse instantiates a new GetWebhookResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewGetWebhookResponse(data WebhookResource) *GetWebhookResponse { - this := GetWebhookResponse{} - this.Data = data - return &this -} - -// NewGetWebhookResponseWithDefaults instantiates a new GetWebhookResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewGetWebhookResponseWithDefaults() *GetWebhookResponse { - this := GetWebhookResponse{} - return &this -} - -// GetData returns the Data field value -func (o *GetWebhookResponse) GetData() WebhookResource { - if o == nil { - var ret WebhookResource - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *GetWebhookResponse) GetDataOk() (*WebhookResource, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *GetWebhookResponse) SetData(v WebhookResource) { - o.Data = v -} - -func (o GetWebhookResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o GetWebhookResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - return toSerialize, nil -} - -func (o *GetWebhookResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varGetWebhookResponse := _GetWebhookResponse{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varGetWebhookResponse) - - if err != nil { - return err - } - - *o = GetWebhookResponse(varGetWebhookResponse) - - return err -} - -type NullableGetWebhookResponse struct { - value *GetWebhookResponse - isSet bool -} - -func (v NullableGetWebhookResponse) Get() *GetWebhookResponse { - return v.value -} - -func (v *NullableGetWebhookResponse) Set(val *GetWebhookResponse) { - v.value = val - v.isSet = true -} - -func (v NullableGetWebhookResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableGetWebhookResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableGetWebhookResponse(val *GetWebhookResponse) *NullableGetWebhookResponse { - return &NullableGetWebhookResponse{value: val, isSet: true} -} - -func (v NullableGetWebhookResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableGetWebhookResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_hold_info_object.go b/expense-manager/openapi/model_hold_info_object.go deleted file mode 100644 index cf1cbbb..0000000 --- a/expense-manager/openapi/model_hold_info_object.go +++ /dev/null @@ -1,187 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the HoldInfoObject type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HoldInfoObject{} - -// HoldInfoObject Provides information about the amount at which a transaction was in the `HELD` status. -type HoldInfoObject struct { - // The amount of this transaction while in the `HELD` status, in Australian dollars. - Amount MoneyObject `json:"amount"` - ForeignAmount NullableHoldInfoObjectForeignAmount `json:"foreignAmount"` -} - -type _HoldInfoObject HoldInfoObject - -// NewHoldInfoObject instantiates a new HoldInfoObject object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHoldInfoObject(amount MoneyObject, foreignAmount NullableHoldInfoObjectForeignAmount) *HoldInfoObject { - this := HoldInfoObject{} - this.Amount = amount - this.ForeignAmount = foreignAmount - return &this -} - -// NewHoldInfoObjectWithDefaults instantiates a new HoldInfoObject object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHoldInfoObjectWithDefaults() *HoldInfoObject { - this := HoldInfoObject{} - return &this -} - -// GetAmount returns the Amount field value -func (o *HoldInfoObject) GetAmount() MoneyObject { - if o == nil { - var ret MoneyObject - return ret - } - - return o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value -// and a boolean to check if the value has been set. -func (o *HoldInfoObject) GetAmountOk() (*MoneyObject, bool) { - if o == nil { - return nil, false - } - return &o.Amount, true -} - -// SetAmount sets field value -func (o *HoldInfoObject) SetAmount(v MoneyObject) { - o.Amount = v -} - -// GetForeignAmount returns the ForeignAmount field value -// If the value is explicit nil, the zero value for HoldInfoObjectForeignAmount will be returned -func (o *HoldInfoObject) GetForeignAmount() HoldInfoObjectForeignAmount { - if o == nil || o.ForeignAmount.Get() == nil { - var ret HoldInfoObjectForeignAmount - return ret - } - - return *o.ForeignAmount.Get() -} - -// GetForeignAmountOk returns a tuple with the ForeignAmount field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *HoldInfoObject) GetForeignAmountOk() (*HoldInfoObjectForeignAmount, bool) { - if o == nil { - return nil, false - } - return o.ForeignAmount.Get(), o.ForeignAmount.IsSet() -} - -// SetForeignAmount sets field value -func (o *HoldInfoObject) SetForeignAmount(v HoldInfoObjectForeignAmount) { - o.ForeignAmount.Set(&v) -} - -func (o HoldInfoObject) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HoldInfoObject) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["amount"] = o.Amount - toSerialize["foreignAmount"] = o.ForeignAmount.Get() - return toSerialize, nil -} - -func (o *HoldInfoObject) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "amount", - "foreignAmount", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varHoldInfoObject := _HoldInfoObject{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varHoldInfoObject) - - if err != nil { - return err - } - - *o = HoldInfoObject(varHoldInfoObject) - - return err -} - -type NullableHoldInfoObject struct { - value *HoldInfoObject - isSet bool -} - -func (v NullableHoldInfoObject) Get() *HoldInfoObject { - return v.value -} - -func (v *NullableHoldInfoObject) Set(val *HoldInfoObject) { - v.value = val - v.isSet = true -} - -func (v NullableHoldInfoObject) IsSet() bool { - return v.isSet -} - -func (v *NullableHoldInfoObject) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHoldInfoObject(val *HoldInfoObject) *NullableHoldInfoObject { - return &NullableHoldInfoObject{value: val, isSet: true} -} - -func (v NullableHoldInfoObject) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHoldInfoObject) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_hold_info_object_foreign_amount.go b/expense-manager/openapi/model_hold_info_object_foreign_amount.go deleted file mode 100644 index a62bcf0..0000000 --- a/expense-manager/openapi/model_hold_info_object_foreign_amount.go +++ /dev/null @@ -1,215 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the HoldInfoObjectForeignAmount type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &HoldInfoObjectForeignAmount{} - -// HoldInfoObjectForeignAmount The foreign currency amount of this transaction while in the `HELD` status. This field will be `null` for domestic transactions. The amount was converted to the AUD amount reflected in the `amount` field. -type HoldInfoObjectForeignAmount struct { - // The ISO 4217 currency code. - CurrencyCode string `json:"currencyCode"` - // The amount of money, formatted as a string in the relevant currency. For example, for an Australian dollar value of $10.56, this field will be `\"10.56\"`. The currency symbol is not included in the string. - Value string `json:"value"` - // The amount of money in the smallest denomination for the currency, as a 64-bit integer. For example, for an Australian dollar value of $10.56, this field will be `1056`. - ValueInBaseUnits int32 `json:"valueInBaseUnits"` -} - -type _HoldInfoObjectForeignAmount HoldInfoObjectForeignAmount - -// NewHoldInfoObjectForeignAmount instantiates a new HoldInfoObjectForeignAmount object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewHoldInfoObjectForeignAmount(currencyCode string, value string, valueInBaseUnits int32) *HoldInfoObjectForeignAmount { - this := HoldInfoObjectForeignAmount{} - this.CurrencyCode = currencyCode - this.Value = value - this.ValueInBaseUnits = valueInBaseUnits - return &this -} - -// NewHoldInfoObjectForeignAmountWithDefaults instantiates a new HoldInfoObjectForeignAmount object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewHoldInfoObjectForeignAmountWithDefaults() *HoldInfoObjectForeignAmount { - this := HoldInfoObjectForeignAmount{} - return &this -} - -// GetCurrencyCode returns the CurrencyCode field value -func (o *HoldInfoObjectForeignAmount) GetCurrencyCode() string { - if o == nil { - var ret string - return ret - } - - return o.CurrencyCode -} - -// GetCurrencyCodeOk returns a tuple with the CurrencyCode field value -// and a boolean to check if the value has been set. -func (o *HoldInfoObjectForeignAmount) GetCurrencyCodeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CurrencyCode, true -} - -// SetCurrencyCode sets field value -func (o *HoldInfoObjectForeignAmount) SetCurrencyCode(v string) { - o.CurrencyCode = v -} - -// GetValue returns the Value field value -func (o *HoldInfoObjectForeignAmount) GetValue() string { - if o == nil { - var ret string - return ret - } - - return o.Value -} - -// GetValueOk returns a tuple with the Value field value -// and a boolean to check if the value has been set. -func (o *HoldInfoObjectForeignAmount) GetValueOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Value, true -} - -// SetValue sets field value -func (o *HoldInfoObjectForeignAmount) SetValue(v string) { - o.Value = v -} - -// GetValueInBaseUnits returns the ValueInBaseUnits field value -func (o *HoldInfoObjectForeignAmount) GetValueInBaseUnits() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.ValueInBaseUnits -} - -// GetValueInBaseUnitsOk returns a tuple with the ValueInBaseUnits field value -// and a boolean to check if the value has been set. -func (o *HoldInfoObjectForeignAmount) GetValueInBaseUnitsOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.ValueInBaseUnits, true -} - -// SetValueInBaseUnits sets field value -func (o *HoldInfoObjectForeignAmount) SetValueInBaseUnits(v int32) { - o.ValueInBaseUnits = v -} - -func (o HoldInfoObjectForeignAmount) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o HoldInfoObjectForeignAmount) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["currencyCode"] = o.CurrencyCode - toSerialize["value"] = o.Value - toSerialize["valueInBaseUnits"] = o.ValueInBaseUnits - return toSerialize, nil -} - -func (o *HoldInfoObjectForeignAmount) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "currencyCode", - "value", - "valueInBaseUnits", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varHoldInfoObjectForeignAmount := _HoldInfoObjectForeignAmount{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varHoldInfoObjectForeignAmount) - - if err != nil { - return err - } - - *o = HoldInfoObjectForeignAmount(varHoldInfoObjectForeignAmount) - - return err -} - -type NullableHoldInfoObjectForeignAmount struct { - value *HoldInfoObjectForeignAmount - isSet bool -} - -func (v NullableHoldInfoObjectForeignAmount) Get() *HoldInfoObjectForeignAmount { - return v.value -} - -func (v *NullableHoldInfoObjectForeignAmount) Set(val *HoldInfoObjectForeignAmount) { - v.value = val - v.isSet = true -} - -func (v NullableHoldInfoObjectForeignAmount) IsSet() bool { - return v.isSet -} - -func (v *NullableHoldInfoObjectForeignAmount) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableHoldInfoObjectForeignAmount(val *HoldInfoObjectForeignAmount) *NullableHoldInfoObjectForeignAmount { - return &NullableHoldInfoObjectForeignAmount{value: val, isSet: true} -} - -func (v NullableHoldInfoObjectForeignAmount) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableHoldInfoObjectForeignAmount) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_list_accounts_response.go b/expense-manager/openapi/model_list_accounts_response.go deleted file mode 100644 index 8b214c4..0000000 --- a/expense-manager/openapi/model_list_accounts_response.go +++ /dev/null @@ -1,185 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the ListAccountsResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListAccountsResponse{} - -// ListAccountsResponse Successful response to get all accounts. This returns a paginated list of accounts, which can be scrolled by following the `prev` and `next` links if present. -type ListAccountsResponse struct { - // The list of accounts returned in this response. - Data []AccountResource `json:"data"` - Links ListAccountsResponseLinks `json:"links"` -} - -type _ListAccountsResponse ListAccountsResponse - -// NewListAccountsResponse instantiates a new ListAccountsResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewListAccountsResponse(data []AccountResource, links ListAccountsResponseLinks) *ListAccountsResponse { - this := ListAccountsResponse{} - this.Data = data - this.Links = links - return &this -} - -// NewListAccountsResponseWithDefaults instantiates a new ListAccountsResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewListAccountsResponseWithDefaults() *ListAccountsResponse { - this := ListAccountsResponse{} - return &this -} - -// GetData returns the Data field value -func (o *ListAccountsResponse) GetData() []AccountResource { - if o == nil { - var ret []AccountResource - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *ListAccountsResponse) GetDataOk() ([]AccountResource, bool) { - if o == nil { - return nil, false - } - return o.Data, true -} - -// SetData sets field value -func (o *ListAccountsResponse) SetData(v []AccountResource) { - o.Data = v -} - -// GetLinks returns the Links field value -func (o *ListAccountsResponse) GetLinks() ListAccountsResponseLinks { - if o == nil { - var ret ListAccountsResponseLinks - return ret - } - - return o.Links -} - -// GetLinksOk returns a tuple with the Links field value -// and a boolean to check if the value has been set. -func (o *ListAccountsResponse) GetLinksOk() (*ListAccountsResponseLinks, bool) { - if o == nil { - return nil, false - } - return &o.Links, true -} - -// SetLinks sets field value -func (o *ListAccountsResponse) SetLinks(v ListAccountsResponseLinks) { - o.Links = v -} - -func (o ListAccountsResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ListAccountsResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - toSerialize["links"] = o.Links - return toSerialize, nil -} - -func (o *ListAccountsResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - "links", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varListAccountsResponse := _ListAccountsResponse{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varListAccountsResponse) - - if err != nil { - return err - } - - *o = ListAccountsResponse(varListAccountsResponse) - - return err -} - -type NullableListAccountsResponse struct { - value *ListAccountsResponse - isSet bool -} - -func (v NullableListAccountsResponse) Get() *ListAccountsResponse { - return v.value -} - -func (v *NullableListAccountsResponse) Set(val *ListAccountsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListAccountsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListAccountsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListAccountsResponse(val *ListAccountsResponse) *NullableListAccountsResponse { - return &NullableListAccountsResponse{value: val, isSet: true} -} - -func (v NullableListAccountsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableListAccountsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_list_accounts_response_links.go b/expense-manager/openapi/model_list_accounts_response_links.go deleted file mode 100644 index 424c552..0000000 --- a/expense-manager/openapi/model_list_accounts_response_links.go +++ /dev/null @@ -1,190 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the ListAccountsResponseLinks type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListAccountsResponseLinks{} - -// ListAccountsResponseLinks struct for ListAccountsResponseLinks -type ListAccountsResponseLinks struct { - // The link to the previous page in the results. If this value is `null` there is no previous page. - Prev NullableString `json:"prev"` - // The link to the next page in the results. If this value is `null` there is no next page. - Next NullableString `json:"next"` -} - -type _ListAccountsResponseLinks ListAccountsResponseLinks - -// NewListAccountsResponseLinks instantiates a new ListAccountsResponseLinks object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewListAccountsResponseLinks(prev NullableString, next NullableString) *ListAccountsResponseLinks { - this := ListAccountsResponseLinks{} - this.Prev = prev - this.Next = next - return &this -} - -// NewListAccountsResponseLinksWithDefaults instantiates a new ListAccountsResponseLinks object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewListAccountsResponseLinksWithDefaults() *ListAccountsResponseLinks { - this := ListAccountsResponseLinks{} - return &this -} - -// GetPrev returns the Prev field value -// If the value is explicit nil, the zero value for string will be returned -func (o *ListAccountsResponseLinks) GetPrev() string { - if o == nil || o.Prev.Get() == nil { - var ret string - return ret - } - - return *o.Prev.Get() -} - -// GetPrevOk returns a tuple with the Prev field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ListAccountsResponseLinks) GetPrevOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Prev.Get(), o.Prev.IsSet() -} - -// SetPrev sets field value -func (o *ListAccountsResponseLinks) SetPrev(v string) { - o.Prev.Set(&v) -} - -// GetNext returns the Next field value -// If the value is explicit nil, the zero value for string will be returned -func (o *ListAccountsResponseLinks) GetNext() string { - if o == nil || o.Next.Get() == nil { - var ret string - return ret - } - - return *o.Next.Get() -} - -// GetNextOk returns a tuple with the Next field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ListAccountsResponseLinks) GetNextOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Next.Get(), o.Next.IsSet() -} - -// SetNext sets field value -func (o *ListAccountsResponseLinks) SetNext(v string) { - o.Next.Set(&v) -} - -func (o ListAccountsResponseLinks) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ListAccountsResponseLinks) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["prev"] = o.Prev.Get() - toSerialize["next"] = o.Next.Get() - return toSerialize, nil -} - -func (o *ListAccountsResponseLinks) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "prev", - "next", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varListAccountsResponseLinks := _ListAccountsResponseLinks{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varListAccountsResponseLinks) - - if err != nil { - return err - } - - *o = ListAccountsResponseLinks(varListAccountsResponseLinks) - - return err -} - -type NullableListAccountsResponseLinks struct { - value *ListAccountsResponseLinks - isSet bool -} - -func (v NullableListAccountsResponseLinks) Get() *ListAccountsResponseLinks { - return v.value -} - -func (v *NullableListAccountsResponseLinks) Set(val *ListAccountsResponseLinks) { - v.value = val - v.isSet = true -} - -func (v NullableListAccountsResponseLinks) IsSet() bool { - return v.isSet -} - -func (v *NullableListAccountsResponseLinks) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListAccountsResponseLinks(val *ListAccountsResponseLinks) *NullableListAccountsResponseLinks { - return &NullableListAccountsResponseLinks{value: val, isSet: true} -} - -func (v NullableListAccountsResponseLinks) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableListAccountsResponseLinks) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_list_categories_response.go b/expense-manager/openapi/model_list_categories_response.go deleted file mode 100644 index 7289974..0000000 --- a/expense-manager/openapi/model_list_categories_response.go +++ /dev/null @@ -1,157 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the ListCategoriesResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListCategoriesResponse{} - -// ListCategoriesResponse Successful response to get all categories and their ancestry. The returned list is not paginated. -type ListCategoriesResponse struct { - // The list of categories returned in this response. - Data []CategoryResource `json:"data"` -} - -type _ListCategoriesResponse ListCategoriesResponse - -// NewListCategoriesResponse instantiates a new ListCategoriesResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewListCategoriesResponse(data []CategoryResource) *ListCategoriesResponse { - this := ListCategoriesResponse{} - this.Data = data - return &this -} - -// NewListCategoriesResponseWithDefaults instantiates a new ListCategoriesResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewListCategoriesResponseWithDefaults() *ListCategoriesResponse { - this := ListCategoriesResponse{} - return &this -} - -// GetData returns the Data field value -func (o *ListCategoriesResponse) GetData() []CategoryResource { - if o == nil { - var ret []CategoryResource - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *ListCategoriesResponse) GetDataOk() ([]CategoryResource, bool) { - if o == nil { - return nil, false - } - return o.Data, true -} - -// SetData sets field value -func (o *ListCategoriesResponse) SetData(v []CategoryResource) { - o.Data = v -} - -func (o ListCategoriesResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ListCategoriesResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - return toSerialize, nil -} - -func (o *ListCategoriesResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varListCategoriesResponse := _ListCategoriesResponse{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varListCategoriesResponse) - - if err != nil { - return err - } - - *o = ListCategoriesResponse(varListCategoriesResponse) - - return err -} - -type NullableListCategoriesResponse struct { - value *ListCategoriesResponse - isSet bool -} - -func (v NullableListCategoriesResponse) Get() *ListCategoriesResponse { - return v.value -} - -func (v *NullableListCategoriesResponse) Set(val *ListCategoriesResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListCategoriesResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListCategoriesResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListCategoriesResponse(val *ListCategoriesResponse) *NullableListCategoriesResponse { - return &NullableListCategoriesResponse{value: val, isSet: true} -} - -func (v NullableListCategoriesResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableListCategoriesResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_list_tags_response.go b/expense-manager/openapi/model_list_tags_response.go deleted file mode 100644 index f934b49..0000000 --- a/expense-manager/openapi/model_list_tags_response.go +++ /dev/null @@ -1,185 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the ListTagsResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListTagsResponse{} - -// ListTagsResponse Successful response to get all tags. This returns a paginated list of tags, which can be scrolled by following the `prev` and `next` links if present. -type ListTagsResponse struct { - // The list of tags returned in this response. - Data []TagResource `json:"data"` - Links ListAccountsResponseLinks `json:"links"` -} - -type _ListTagsResponse ListTagsResponse - -// NewListTagsResponse instantiates a new ListTagsResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewListTagsResponse(data []TagResource, links ListAccountsResponseLinks) *ListTagsResponse { - this := ListTagsResponse{} - this.Data = data - this.Links = links - return &this -} - -// NewListTagsResponseWithDefaults instantiates a new ListTagsResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewListTagsResponseWithDefaults() *ListTagsResponse { - this := ListTagsResponse{} - return &this -} - -// GetData returns the Data field value -func (o *ListTagsResponse) GetData() []TagResource { - if o == nil { - var ret []TagResource - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *ListTagsResponse) GetDataOk() ([]TagResource, bool) { - if o == nil { - return nil, false - } - return o.Data, true -} - -// SetData sets field value -func (o *ListTagsResponse) SetData(v []TagResource) { - o.Data = v -} - -// GetLinks returns the Links field value -func (o *ListTagsResponse) GetLinks() ListAccountsResponseLinks { - if o == nil { - var ret ListAccountsResponseLinks - return ret - } - - return o.Links -} - -// GetLinksOk returns a tuple with the Links field value -// and a boolean to check if the value has been set. -func (o *ListTagsResponse) GetLinksOk() (*ListAccountsResponseLinks, bool) { - if o == nil { - return nil, false - } - return &o.Links, true -} - -// SetLinks sets field value -func (o *ListTagsResponse) SetLinks(v ListAccountsResponseLinks) { - o.Links = v -} - -func (o ListTagsResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ListTagsResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - toSerialize["links"] = o.Links - return toSerialize, nil -} - -func (o *ListTagsResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - "links", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varListTagsResponse := _ListTagsResponse{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varListTagsResponse) - - if err != nil { - return err - } - - *o = ListTagsResponse(varListTagsResponse) - - return err -} - -type NullableListTagsResponse struct { - value *ListTagsResponse - isSet bool -} - -func (v NullableListTagsResponse) Get() *ListTagsResponse { - return v.value -} - -func (v *NullableListTagsResponse) Set(val *ListTagsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListTagsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListTagsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListTagsResponse(val *ListTagsResponse) *NullableListTagsResponse { - return &NullableListTagsResponse{value: val, isSet: true} -} - -func (v NullableListTagsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableListTagsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_list_transactions_response.go b/expense-manager/openapi/model_list_transactions_response.go deleted file mode 100644 index fd6925b..0000000 --- a/expense-manager/openapi/model_list_transactions_response.go +++ /dev/null @@ -1,185 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the ListTransactionsResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListTransactionsResponse{} - -// ListTransactionsResponse Successful response to get all transactions. This returns a paginated list of transactions, which can be scrolled by following the `prev` and `next` links if present. -type ListTransactionsResponse struct { - // The list of transactions returned in this response. - Data []TransactionResource `json:"data"` - Links ListAccountsResponseLinks `json:"links"` -} - -type _ListTransactionsResponse ListTransactionsResponse - -// NewListTransactionsResponse instantiates a new ListTransactionsResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewListTransactionsResponse(data []TransactionResource, links ListAccountsResponseLinks) *ListTransactionsResponse { - this := ListTransactionsResponse{} - this.Data = data - this.Links = links - return &this -} - -// NewListTransactionsResponseWithDefaults instantiates a new ListTransactionsResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewListTransactionsResponseWithDefaults() *ListTransactionsResponse { - this := ListTransactionsResponse{} - return &this -} - -// GetData returns the Data field value -func (o *ListTransactionsResponse) GetData() []TransactionResource { - if o == nil { - var ret []TransactionResource - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *ListTransactionsResponse) GetDataOk() ([]TransactionResource, bool) { - if o == nil { - return nil, false - } - return o.Data, true -} - -// SetData sets field value -func (o *ListTransactionsResponse) SetData(v []TransactionResource) { - o.Data = v -} - -// GetLinks returns the Links field value -func (o *ListTransactionsResponse) GetLinks() ListAccountsResponseLinks { - if o == nil { - var ret ListAccountsResponseLinks - return ret - } - - return o.Links -} - -// GetLinksOk returns a tuple with the Links field value -// and a boolean to check if the value has been set. -func (o *ListTransactionsResponse) GetLinksOk() (*ListAccountsResponseLinks, bool) { - if o == nil { - return nil, false - } - return &o.Links, true -} - -// SetLinks sets field value -func (o *ListTransactionsResponse) SetLinks(v ListAccountsResponseLinks) { - o.Links = v -} - -func (o ListTransactionsResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ListTransactionsResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - toSerialize["links"] = o.Links - return toSerialize, nil -} - -func (o *ListTransactionsResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - "links", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varListTransactionsResponse := _ListTransactionsResponse{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varListTransactionsResponse) - - if err != nil { - return err - } - - *o = ListTransactionsResponse(varListTransactionsResponse) - - return err -} - -type NullableListTransactionsResponse struct { - value *ListTransactionsResponse - isSet bool -} - -func (v NullableListTransactionsResponse) Get() *ListTransactionsResponse { - return v.value -} - -func (v *NullableListTransactionsResponse) Set(val *ListTransactionsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListTransactionsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListTransactionsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListTransactionsResponse(val *ListTransactionsResponse) *NullableListTransactionsResponse { - return &NullableListTransactionsResponse{value: val, isSet: true} -} - -func (v NullableListTransactionsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableListTransactionsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_list_webhook_delivery_logs_response.go b/expense-manager/openapi/model_list_webhook_delivery_logs_response.go deleted file mode 100644 index 35d9601..0000000 --- a/expense-manager/openapi/model_list_webhook_delivery_logs_response.go +++ /dev/null @@ -1,185 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the ListWebhookDeliveryLogsResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListWebhookDeliveryLogsResponse{} - -// ListWebhookDeliveryLogsResponse Successful response to get all delivery logs for a webhook. This returns a paginated list of delivery logs, which can be scrolled by following the `next` and `prev` links if present. -type ListWebhookDeliveryLogsResponse struct { - // The list of delivery logs returned in this response. - Data []WebhookDeliveryLogResource `json:"data"` - Links ListAccountsResponseLinks `json:"links"` -} - -type _ListWebhookDeliveryLogsResponse ListWebhookDeliveryLogsResponse - -// NewListWebhookDeliveryLogsResponse instantiates a new ListWebhookDeliveryLogsResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewListWebhookDeliveryLogsResponse(data []WebhookDeliveryLogResource, links ListAccountsResponseLinks) *ListWebhookDeliveryLogsResponse { - this := ListWebhookDeliveryLogsResponse{} - this.Data = data - this.Links = links - return &this -} - -// NewListWebhookDeliveryLogsResponseWithDefaults instantiates a new ListWebhookDeliveryLogsResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewListWebhookDeliveryLogsResponseWithDefaults() *ListWebhookDeliveryLogsResponse { - this := ListWebhookDeliveryLogsResponse{} - return &this -} - -// GetData returns the Data field value -func (o *ListWebhookDeliveryLogsResponse) GetData() []WebhookDeliveryLogResource { - if o == nil { - var ret []WebhookDeliveryLogResource - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *ListWebhookDeliveryLogsResponse) GetDataOk() ([]WebhookDeliveryLogResource, bool) { - if o == nil { - return nil, false - } - return o.Data, true -} - -// SetData sets field value -func (o *ListWebhookDeliveryLogsResponse) SetData(v []WebhookDeliveryLogResource) { - o.Data = v -} - -// GetLinks returns the Links field value -func (o *ListWebhookDeliveryLogsResponse) GetLinks() ListAccountsResponseLinks { - if o == nil { - var ret ListAccountsResponseLinks - return ret - } - - return o.Links -} - -// GetLinksOk returns a tuple with the Links field value -// and a boolean to check if the value has been set. -func (o *ListWebhookDeliveryLogsResponse) GetLinksOk() (*ListAccountsResponseLinks, bool) { - if o == nil { - return nil, false - } - return &o.Links, true -} - -// SetLinks sets field value -func (o *ListWebhookDeliveryLogsResponse) SetLinks(v ListAccountsResponseLinks) { - o.Links = v -} - -func (o ListWebhookDeliveryLogsResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ListWebhookDeliveryLogsResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - toSerialize["links"] = o.Links - return toSerialize, nil -} - -func (o *ListWebhookDeliveryLogsResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - "links", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varListWebhookDeliveryLogsResponse := _ListWebhookDeliveryLogsResponse{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varListWebhookDeliveryLogsResponse) - - if err != nil { - return err - } - - *o = ListWebhookDeliveryLogsResponse(varListWebhookDeliveryLogsResponse) - - return err -} - -type NullableListWebhookDeliveryLogsResponse struct { - value *ListWebhookDeliveryLogsResponse - isSet bool -} - -func (v NullableListWebhookDeliveryLogsResponse) Get() *ListWebhookDeliveryLogsResponse { - return v.value -} - -func (v *NullableListWebhookDeliveryLogsResponse) Set(val *ListWebhookDeliveryLogsResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListWebhookDeliveryLogsResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListWebhookDeliveryLogsResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListWebhookDeliveryLogsResponse(val *ListWebhookDeliveryLogsResponse) *NullableListWebhookDeliveryLogsResponse { - return &NullableListWebhookDeliveryLogsResponse{value: val, isSet: true} -} - -func (v NullableListWebhookDeliveryLogsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableListWebhookDeliveryLogsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_list_webhooks_response.go b/expense-manager/openapi/model_list_webhooks_response.go deleted file mode 100644 index 645d771..0000000 --- a/expense-manager/openapi/model_list_webhooks_response.go +++ /dev/null @@ -1,185 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the ListWebhooksResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListWebhooksResponse{} - -// ListWebhooksResponse Successful response to get all webhooks. This returns a paginated list of webhooks, which can be scrolled by following the `prev` and `next` links if present. -type ListWebhooksResponse struct { - // The list of webhooks returned in this response. - Data []WebhookResource `json:"data"` - Links ListAccountsResponseLinks `json:"links"` -} - -type _ListWebhooksResponse ListWebhooksResponse - -// NewListWebhooksResponse instantiates a new ListWebhooksResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewListWebhooksResponse(data []WebhookResource, links ListAccountsResponseLinks) *ListWebhooksResponse { - this := ListWebhooksResponse{} - this.Data = data - this.Links = links - return &this -} - -// NewListWebhooksResponseWithDefaults instantiates a new ListWebhooksResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewListWebhooksResponseWithDefaults() *ListWebhooksResponse { - this := ListWebhooksResponse{} - return &this -} - -// GetData returns the Data field value -func (o *ListWebhooksResponse) GetData() []WebhookResource { - if o == nil { - var ret []WebhookResource - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *ListWebhooksResponse) GetDataOk() ([]WebhookResource, bool) { - if o == nil { - return nil, false - } - return o.Data, true -} - -// SetData sets field value -func (o *ListWebhooksResponse) SetData(v []WebhookResource) { - o.Data = v -} - -// GetLinks returns the Links field value -func (o *ListWebhooksResponse) GetLinks() ListAccountsResponseLinks { - if o == nil { - var ret ListAccountsResponseLinks - return ret - } - - return o.Links -} - -// GetLinksOk returns a tuple with the Links field value -// and a boolean to check if the value has been set. -func (o *ListWebhooksResponse) GetLinksOk() (*ListAccountsResponseLinks, bool) { - if o == nil { - return nil, false - } - return &o.Links, true -} - -// SetLinks sets field value -func (o *ListWebhooksResponse) SetLinks(v ListAccountsResponseLinks) { - o.Links = v -} - -func (o ListWebhooksResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ListWebhooksResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - toSerialize["links"] = o.Links - return toSerialize, nil -} - -func (o *ListWebhooksResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - "links", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varListWebhooksResponse := _ListWebhooksResponse{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varListWebhooksResponse) - - if err != nil { - return err - } - - *o = ListWebhooksResponse(varListWebhooksResponse) - - return err -} - -type NullableListWebhooksResponse struct { - value *ListWebhooksResponse - isSet bool -} - -func (v NullableListWebhooksResponse) Get() *ListWebhooksResponse { - return v.value -} - -func (v *NullableListWebhooksResponse) Set(val *ListWebhooksResponse) { - v.value = val - v.isSet = true -} - -func (v NullableListWebhooksResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableListWebhooksResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableListWebhooksResponse(val *ListWebhooksResponse) *NullableListWebhooksResponse { - return &NullableListWebhooksResponse{value: val, isSet: true} -} - -func (v NullableListWebhooksResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableListWebhooksResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_money_object.go b/expense-manager/openapi/model_money_object.go deleted file mode 100644 index f0de33d..0000000 --- a/expense-manager/openapi/model_money_object.go +++ /dev/null @@ -1,215 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the MoneyObject type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &MoneyObject{} - -// MoneyObject Provides information about a value of money. -type MoneyObject struct { - // The ISO 4217 currency code. - CurrencyCode string `json:"currencyCode"` - // The amount of money, formatted as a string in the relevant currency. For example, for an Australian dollar value of $10.56, this field will be `\"10.56\"`. The currency symbol is not included in the string. - Value string `json:"value"` - // The amount of money in the smallest denomination for the currency, as a 64-bit integer. For example, for an Australian dollar value of $10.56, this field will be `1056`. - ValueInBaseUnits int32 `json:"valueInBaseUnits"` -} - -type _MoneyObject MoneyObject - -// NewMoneyObject instantiates a new MoneyObject object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewMoneyObject(currencyCode string, value string, valueInBaseUnits int32) *MoneyObject { - this := MoneyObject{} - this.CurrencyCode = currencyCode - this.Value = value - this.ValueInBaseUnits = valueInBaseUnits - return &this -} - -// NewMoneyObjectWithDefaults instantiates a new MoneyObject object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewMoneyObjectWithDefaults() *MoneyObject { - this := MoneyObject{} - return &this -} - -// GetCurrencyCode returns the CurrencyCode field value -func (o *MoneyObject) GetCurrencyCode() string { - if o == nil { - var ret string - return ret - } - - return o.CurrencyCode -} - -// GetCurrencyCodeOk returns a tuple with the CurrencyCode field value -// and a boolean to check if the value has been set. -func (o *MoneyObject) GetCurrencyCodeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CurrencyCode, true -} - -// SetCurrencyCode sets field value -func (o *MoneyObject) SetCurrencyCode(v string) { - o.CurrencyCode = v -} - -// GetValue returns the Value field value -func (o *MoneyObject) GetValue() string { - if o == nil { - var ret string - return ret - } - - return o.Value -} - -// GetValueOk returns a tuple with the Value field value -// and a boolean to check if the value has been set. -func (o *MoneyObject) GetValueOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Value, true -} - -// SetValue sets field value -func (o *MoneyObject) SetValue(v string) { - o.Value = v -} - -// GetValueInBaseUnits returns the ValueInBaseUnits field value -func (o *MoneyObject) GetValueInBaseUnits() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.ValueInBaseUnits -} - -// GetValueInBaseUnitsOk returns a tuple with the ValueInBaseUnits field value -// and a boolean to check if the value has been set. -func (o *MoneyObject) GetValueInBaseUnitsOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.ValueInBaseUnits, true -} - -// SetValueInBaseUnits sets field value -func (o *MoneyObject) SetValueInBaseUnits(v int32) { - o.ValueInBaseUnits = v -} - -func (o MoneyObject) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o MoneyObject) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["currencyCode"] = o.CurrencyCode - toSerialize["value"] = o.Value - toSerialize["valueInBaseUnits"] = o.ValueInBaseUnits - return toSerialize, nil -} - -func (o *MoneyObject) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "currencyCode", - "value", - "valueInBaseUnits", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varMoneyObject := _MoneyObject{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varMoneyObject) - - if err != nil { - return err - } - - *o = MoneyObject(varMoneyObject) - - return err -} - -type NullableMoneyObject struct { - value *MoneyObject - isSet bool -} - -func (v NullableMoneyObject) Get() *MoneyObject { - return v.value -} - -func (v *NullableMoneyObject) Set(val *MoneyObject) { - v.value = val - v.isSet = true -} - -func (v NullableMoneyObject) IsSet() bool { - return v.isSet -} - -func (v *NullableMoneyObject) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableMoneyObject(val *MoneyObject) *NullableMoneyObject { - return &NullableMoneyObject{value: val, isSet: true} -} - -func (v NullableMoneyObject) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableMoneyObject) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_ownership_type_enum.go b/expense-manager/openapi/model_ownership_type_enum.go deleted file mode 100644 index d1e7f0b..0000000 --- a/expense-manager/openapi/model_ownership_type_enum.go +++ /dev/null @@ -1,110 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" - "fmt" -) - -// OwnershipTypeEnum Specifies the structure under which a bank account is owned. Currently returned values are `INDIVIDUAL` and `JOINT`. -type OwnershipTypeEnum string - -// List of OwnershipTypeEnum -const ( - INDIVIDUAL OwnershipTypeEnum = "INDIVIDUAL" - JOINT OwnershipTypeEnum = "JOINT" -) - -// All allowed values of OwnershipTypeEnum enum -var AllowedOwnershipTypeEnumEnumValues = []OwnershipTypeEnum{ - "INDIVIDUAL", - "JOINT", -} - -func (v *OwnershipTypeEnum) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := OwnershipTypeEnum(value) - for _, existing := range AllowedOwnershipTypeEnumEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid OwnershipTypeEnum", value) -} - -// NewOwnershipTypeEnumFromValue returns a pointer to a valid OwnershipTypeEnum -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewOwnershipTypeEnumFromValue(v string) (*OwnershipTypeEnum, error) { - ev := OwnershipTypeEnum(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for OwnershipTypeEnum: valid values are %v", v, AllowedOwnershipTypeEnumEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v OwnershipTypeEnum) IsValid() bool { - for _, existing := range AllowedOwnershipTypeEnumEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to OwnershipTypeEnum value -func (v OwnershipTypeEnum) Ptr() *OwnershipTypeEnum { - return &v -} - -type NullableOwnershipTypeEnum struct { - value *OwnershipTypeEnum - isSet bool -} - -func (v NullableOwnershipTypeEnum) Get() *OwnershipTypeEnum { - return v.value -} - -func (v *NullableOwnershipTypeEnum) Set(val *OwnershipTypeEnum) { - v.value = val - v.isSet = true -} - -func (v NullableOwnershipTypeEnum) IsSet() bool { - return v.isSet -} - -func (v *NullableOwnershipTypeEnum) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableOwnershipTypeEnum(val *OwnershipTypeEnum) *NullableOwnershipTypeEnum { - return &NullableOwnershipTypeEnum{value: val, isSet: true} -} - -func (v NullableOwnershipTypeEnum) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableOwnershipTypeEnum) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_ping_response.go b/expense-manager/openapi/model_ping_response.go deleted file mode 100644 index 6f7f072..0000000 --- a/expense-manager/openapi/model_ping_response.go +++ /dev/null @@ -1,156 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the PingResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PingResponse{} - -// PingResponse Basic ping response to verify authentication. -type PingResponse struct { - Meta PingResponseMeta `json:"meta"` -} - -type _PingResponse PingResponse - -// NewPingResponse instantiates a new PingResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPingResponse(meta PingResponseMeta) *PingResponse { - this := PingResponse{} - this.Meta = meta - return &this -} - -// NewPingResponseWithDefaults instantiates a new PingResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPingResponseWithDefaults() *PingResponse { - this := PingResponse{} - return &this -} - -// GetMeta returns the Meta field value -func (o *PingResponse) GetMeta() PingResponseMeta { - if o == nil { - var ret PingResponseMeta - return ret - } - - return o.Meta -} - -// GetMetaOk returns a tuple with the Meta field value -// and a boolean to check if the value has been set. -func (o *PingResponse) GetMetaOk() (*PingResponseMeta, bool) { - if o == nil { - return nil, false - } - return &o.Meta, true -} - -// SetMeta sets field value -func (o *PingResponse) SetMeta(v PingResponseMeta) { - o.Meta = v -} - -func (o PingResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PingResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["meta"] = o.Meta - return toSerialize, nil -} - -func (o *PingResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "meta", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varPingResponse := _PingResponse{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varPingResponse) - - if err != nil { - return err - } - - *o = PingResponse(varPingResponse) - - return err -} - -type NullablePingResponse struct { - value *PingResponse - isSet bool -} - -func (v NullablePingResponse) Get() *PingResponse { - return v.value -} - -func (v *NullablePingResponse) Set(val *PingResponse) { - v.value = val - v.isSet = true -} - -func (v NullablePingResponse) IsSet() bool { - return v.isSet -} - -func (v *NullablePingResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePingResponse(val *PingResponse) *NullablePingResponse { - return &NullablePingResponse{value: val, isSet: true} -} - -func (v NullablePingResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePingResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_ping_response_meta.go b/expense-manager/openapi/model_ping_response_meta.go deleted file mode 100644 index c2ee6d5..0000000 --- a/expense-manager/openapi/model_ping_response_meta.go +++ /dev/null @@ -1,186 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the PingResponseMeta type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PingResponseMeta{} - -// PingResponseMeta struct for PingResponseMeta -type PingResponseMeta struct { - // The unique identifier of the authenticated customer. - Id string `json:"id"` - // A cute emoji that represents the response status. - StatusEmoji string `json:"statusEmoji"` -} - -type _PingResponseMeta PingResponseMeta - -// NewPingResponseMeta instantiates a new PingResponseMeta object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewPingResponseMeta(id string, statusEmoji string) *PingResponseMeta { - this := PingResponseMeta{} - this.Id = id - this.StatusEmoji = statusEmoji - return &this -} - -// NewPingResponseMetaWithDefaults instantiates a new PingResponseMeta object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewPingResponseMetaWithDefaults() *PingResponseMeta { - this := PingResponseMeta{} - return &this -} - -// GetId returns the Id field value -func (o *PingResponseMeta) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *PingResponseMeta) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *PingResponseMeta) SetId(v string) { - o.Id = v -} - -// GetStatusEmoji returns the StatusEmoji field value -func (o *PingResponseMeta) GetStatusEmoji() string { - if o == nil { - var ret string - return ret - } - - return o.StatusEmoji -} - -// GetStatusEmojiOk returns a tuple with the StatusEmoji field value -// and a boolean to check if the value has been set. -func (o *PingResponseMeta) GetStatusEmojiOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.StatusEmoji, true -} - -// SetStatusEmoji sets field value -func (o *PingResponseMeta) SetStatusEmoji(v string) { - o.StatusEmoji = v -} - -func (o PingResponseMeta) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o PingResponseMeta) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["id"] = o.Id - toSerialize["statusEmoji"] = o.StatusEmoji - return toSerialize, nil -} - -func (o *PingResponseMeta) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "id", - "statusEmoji", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varPingResponseMeta := _PingResponseMeta{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varPingResponseMeta) - - if err != nil { - return err - } - - *o = PingResponseMeta(varPingResponseMeta) - - return err -} - -type NullablePingResponseMeta struct { - value *PingResponseMeta - isSet bool -} - -func (v NullablePingResponseMeta) Get() *PingResponseMeta { - return v.value -} - -func (v *NullablePingResponseMeta) Set(val *PingResponseMeta) { - v.value = val - v.isSet = true -} - -func (v NullablePingResponseMeta) IsSet() bool { - return v.isSet -} - -func (v *NullablePingResponseMeta) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullablePingResponseMeta(val *PingResponseMeta) *NullablePingResponseMeta { - return &NullablePingResponseMeta{value: val, isSet: true} -} - -func (v NullablePingResponseMeta) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullablePingResponseMeta) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_round_up_object.go b/expense-manager/openapi/model_round_up_object.go deleted file mode 100644 index d8d7737..0000000 --- a/expense-manager/openapi/model_round_up_object.go +++ /dev/null @@ -1,187 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the RoundUpObject type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RoundUpObject{} - -// RoundUpObject Provides information about how a Round Up was applied, such as whether or not a boost was included in the Round Up. -type RoundUpObject struct { - // The total amount of this Round Up, including any boosts, represented as a negative value. - Amount MoneyObject `json:"amount"` - BoostPortion NullableRoundUpObjectBoostPortion `json:"boostPortion"` -} - -type _RoundUpObject RoundUpObject - -// NewRoundUpObject instantiates a new RoundUpObject object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewRoundUpObject(amount MoneyObject, boostPortion NullableRoundUpObjectBoostPortion) *RoundUpObject { - this := RoundUpObject{} - this.Amount = amount - this.BoostPortion = boostPortion - return &this -} - -// NewRoundUpObjectWithDefaults instantiates a new RoundUpObject object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewRoundUpObjectWithDefaults() *RoundUpObject { - this := RoundUpObject{} - return &this -} - -// GetAmount returns the Amount field value -func (o *RoundUpObject) GetAmount() MoneyObject { - if o == nil { - var ret MoneyObject - return ret - } - - return o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value -// and a boolean to check if the value has been set. -func (o *RoundUpObject) GetAmountOk() (*MoneyObject, bool) { - if o == nil { - return nil, false - } - return &o.Amount, true -} - -// SetAmount sets field value -func (o *RoundUpObject) SetAmount(v MoneyObject) { - o.Amount = v -} - -// GetBoostPortion returns the BoostPortion field value -// If the value is explicit nil, the zero value for RoundUpObjectBoostPortion will be returned -func (o *RoundUpObject) GetBoostPortion() RoundUpObjectBoostPortion { - if o == nil || o.BoostPortion.Get() == nil { - var ret RoundUpObjectBoostPortion - return ret - } - - return *o.BoostPortion.Get() -} - -// GetBoostPortionOk returns a tuple with the BoostPortion field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RoundUpObject) GetBoostPortionOk() (*RoundUpObjectBoostPortion, bool) { - if o == nil { - return nil, false - } - return o.BoostPortion.Get(), o.BoostPortion.IsSet() -} - -// SetBoostPortion sets field value -func (o *RoundUpObject) SetBoostPortion(v RoundUpObjectBoostPortion) { - o.BoostPortion.Set(&v) -} - -func (o RoundUpObject) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o RoundUpObject) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["amount"] = o.Amount - toSerialize["boostPortion"] = o.BoostPortion.Get() - return toSerialize, nil -} - -func (o *RoundUpObject) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "amount", - "boostPortion", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varRoundUpObject := _RoundUpObject{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varRoundUpObject) - - if err != nil { - return err - } - - *o = RoundUpObject(varRoundUpObject) - - return err -} - -type NullableRoundUpObject struct { - value *RoundUpObject - isSet bool -} - -func (v NullableRoundUpObject) Get() *RoundUpObject { - return v.value -} - -func (v *NullableRoundUpObject) Set(val *RoundUpObject) { - v.value = val - v.isSet = true -} - -func (v NullableRoundUpObject) IsSet() bool { - return v.isSet -} - -func (v *NullableRoundUpObject) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRoundUpObject(val *RoundUpObject) *NullableRoundUpObject { - return &NullableRoundUpObject{value: val, isSet: true} -} - -func (v NullableRoundUpObject) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRoundUpObject) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_round_up_object_boost_portion.go b/expense-manager/openapi/model_round_up_object_boost_portion.go deleted file mode 100644 index 0eab565..0000000 --- a/expense-manager/openapi/model_round_up_object_boost_portion.go +++ /dev/null @@ -1,215 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the RoundUpObjectBoostPortion type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RoundUpObjectBoostPortion{} - -// RoundUpObjectBoostPortion The portion of the Round Up `amount` owing to boosted Round Ups, represented as a negative value. If no boost was added to the Round Up this field will be `null`. -type RoundUpObjectBoostPortion struct { - // The ISO 4217 currency code. - CurrencyCode string `json:"currencyCode"` - // The amount of money, formatted as a string in the relevant currency. For example, for an Australian dollar value of $10.56, this field will be `\"10.56\"`. The currency symbol is not included in the string. - Value string `json:"value"` - // The amount of money in the smallest denomination for the currency, as a 64-bit integer. For example, for an Australian dollar value of $10.56, this field will be `1056`. - ValueInBaseUnits int32 `json:"valueInBaseUnits"` -} - -type _RoundUpObjectBoostPortion RoundUpObjectBoostPortion - -// NewRoundUpObjectBoostPortion instantiates a new RoundUpObjectBoostPortion object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewRoundUpObjectBoostPortion(currencyCode string, value string, valueInBaseUnits int32) *RoundUpObjectBoostPortion { - this := RoundUpObjectBoostPortion{} - this.CurrencyCode = currencyCode - this.Value = value - this.ValueInBaseUnits = valueInBaseUnits - return &this -} - -// NewRoundUpObjectBoostPortionWithDefaults instantiates a new RoundUpObjectBoostPortion object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewRoundUpObjectBoostPortionWithDefaults() *RoundUpObjectBoostPortion { - this := RoundUpObjectBoostPortion{} - return &this -} - -// GetCurrencyCode returns the CurrencyCode field value -func (o *RoundUpObjectBoostPortion) GetCurrencyCode() string { - if o == nil { - var ret string - return ret - } - - return o.CurrencyCode -} - -// GetCurrencyCodeOk returns a tuple with the CurrencyCode field value -// and a boolean to check if the value has been set. -func (o *RoundUpObjectBoostPortion) GetCurrencyCodeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CurrencyCode, true -} - -// SetCurrencyCode sets field value -func (o *RoundUpObjectBoostPortion) SetCurrencyCode(v string) { - o.CurrencyCode = v -} - -// GetValue returns the Value field value -func (o *RoundUpObjectBoostPortion) GetValue() string { - if o == nil { - var ret string - return ret - } - - return o.Value -} - -// GetValueOk returns a tuple with the Value field value -// and a boolean to check if the value has been set. -func (o *RoundUpObjectBoostPortion) GetValueOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Value, true -} - -// SetValue sets field value -func (o *RoundUpObjectBoostPortion) SetValue(v string) { - o.Value = v -} - -// GetValueInBaseUnits returns the ValueInBaseUnits field value -func (o *RoundUpObjectBoostPortion) GetValueInBaseUnits() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.ValueInBaseUnits -} - -// GetValueInBaseUnitsOk returns a tuple with the ValueInBaseUnits field value -// and a boolean to check if the value has been set. -func (o *RoundUpObjectBoostPortion) GetValueInBaseUnitsOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.ValueInBaseUnits, true -} - -// SetValueInBaseUnits sets field value -func (o *RoundUpObjectBoostPortion) SetValueInBaseUnits(v int32) { - o.ValueInBaseUnits = v -} - -func (o RoundUpObjectBoostPortion) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o RoundUpObjectBoostPortion) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["currencyCode"] = o.CurrencyCode - toSerialize["value"] = o.Value - toSerialize["valueInBaseUnits"] = o.ValueInBaseUnits - return toSerialize, nil -} - -func (o *RoundUpObjectBoostPortion) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "currencyCode", - "value", - "valueInBaseUnits", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varRoundUpObjectBoostPortion := _RoundUpObjectBoostPortion{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varRoundUpObjectBoostPortion) - - if err != nil { - return err - } - - *o = RoundUpObjectBoostPortion(varRoundUpObjectBoostPortion) - - return err -} - -type NullableRoundUpObjectBoostPortion struct { - value *RoundUpObjectBoostPortion - isSet bool -} - -func (v NullableRoundUpObjectBoostPortion) Get() *RoundUpObjectBoostPortion { - return v.value -} - -func (v *NullableRoundUpObjectBoostPortion) Set(val *RoundUpObjectBoostPortion) { - v.value = val - v.isSet = true -} - -func (v NullableRoundUpObjectBoostPortion) IsSet() bool { - return v.isSet -} - -func (v *NullableRoundUpObjectBoostPortion) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableRoundUpObjectBoostPortion(val *RoundUpObjectBoostPortion) *NullableRoundUpObjectBoostPortion { - return &NullableRoundUpObjectBoostPortion{value: val, isSet: true} -} - -func (v NullableRoundUpObjectBoostPortion) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableRoundUpObjectBoostPortion) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_tag_input_resource_identifier.go b/expense-manager/openapi/model_tag_input_resource_identifier.go deleted file mode 100644 index c45227e..0000000 --- a/expense-manager/openapi/model_tag_input_resource_identifier.go +++ /dev/null @@ -1,186 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the TagInputResourceIdentifier type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TagInputResourceIdentifier{} - -// TagInputResourceIdentifier Uniquely identifies a single tag in the API. -type TagInputResourceIdentifier struct { - // The type of this resource: `tags` - Type string `json:"type"` - // The label of the tag, which also acts as the tag’s unique identifier. - Id string `json:"id"` -} - -type _TagInputResourceIdentifier TagInputResourceIdentifier - -// NewTagInputResourceIdentifier instantiates a new TagInputResourceIdentifier object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTagInputResourceIdentifier(type_ string, id string) *TagInputResourceIdentifier { - this := TagInputResourceIdentifier{} - this.Type = type_ - this.Id = id - return &this -} - -// NewTagInputResourceIdentifierWithDefaults instantiates a new TagInputResourceIdentifier object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTagInputResourceIdentifierWithDefaults() *TagInputResourceIdentifier { - this := TagInputResourceIdentifier{} - return &this -} - -// GetType returns the Type field value -func (o *TagInputResourceIdentifier) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *TagInputResourceIdentifier) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *TagInputResourceIdentifier) SetType(v string) { - o.Type = v -} - -// GetId returns the Id field value -func (o *TagInputResourceIdentifier) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *TagInputResourceIdentifier) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *TagInputResourceIdentifier) SetId(v string) { - o.Id = v -} - -func (o TagInputResourceIdentifier) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TagInputResourceIdentifier) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["id"] = o.Id - return toSerialize, nil -} - -func (o *TagInputResourceIdentifier) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varTagInputResourceIdentifier := _TagInputResourceIdentifier{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTagInputResourceIdentifier) - - if err != nil { - return err - } - - *o = TagInputResourceIdentifier(varTagInputResourceIdentifier) - - return err -} - -type NullableTagInputResourceIdentifier struct { - value *TagInputResourceIdentifier - isSet bool -} - -func (v NullableTagInputResourceIdentifier) Get() *TagInputResourceIdentifier { - return v.value -} - -func (v *NullableTagInputResourceIdentifier) Set(val *TagInputResourceIdentifier) { - v.value = val - v.isSet = true -} - -func (v NullableTagInputResourceIdentifier) IsSet() bool { - return v.isSet -} - -func (v *NullableTagInputResourceIdentifier) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTagInputResourceIdentifier(val *TagInputResourceIdentifier) *NullableTagInputResourceIdentifier { - return &NullableTagInputResourceIdentifier{value: val, isSet: true} -} - -func (v NullableTagInputResourceIdentifier) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTagInputResourceIdentifier) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_tag_resource.go b/expense-manager/openapi/model_tag_resource.go deleted file mode 100644 index 768a29a..0000000 --- a/expense-manager/openapi/model_tag_resource.go +++ /dev/null @@ -1,214 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the TagResource type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TagResource{} - -// TagResource Provides information about a tag. -type TagResource struct { - // The type of this resource: `tags` - Type string `json:"type"` - // The label of the tag, which also acts as the tag’s unique identifier. - Id string `json:"id"` - Relationships AccountResourceRelationships `json:"relationships"` -} - -type _TagResource TagResource - -// NewTagResource instantiates a new TagResource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTagResource(type_ string, id string, relationships AccountResourceRelationships) *TagResource { - this := TagResource{} - this.Type = type_ - this.Id = id - this.Relationships = relationships - return &this -} - -// NewTagResourceWithDefaults instantiates a new TagResource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTagResourceWithDefaults() *TagResource { - this := TagResource{} - return &this -} - -// GetType returns the Type field value -func (o *TagResource) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *TagResource) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *TagResource) SetType(v string) { - o.Type = v -} - -// GetId returns the Id field value -func (o *TagResource) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *TagResource) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *TagResource) SetId(v string) { - o.Id = v -} - -// GetRelationships returns the Relationships field value -func (o *TagResource) GetRelationships() AccountResourceRelationships { - if o == nil { - var ret AccountResourceRelationships - return ret - } - - return o.Relationships -} - -// GetRelationshipsOk returns a tuple with the Relationships field value -// and a boolean to check if the value has been set. -func (o *TagResource) GetRelationshipsOk() (*AccountResourceRelationships, bool) { - if o == nil { - return nil, false - } - return &o.Relationships, true -} - -// SetRelationships sets field value -func (o *TagResource) SetRelationships(v AccountResourceRelationships) { - o.Relationships = v -} - -func (o TagResource) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TagResource) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["id"] = o.Id - toSerialize["relationships"] = o.Relationships - return toSerialize, nil -} - -func (o *TagResource) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "id", - "relationships", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varTagResource := _TagResource{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTagResource) - - if err != nil { - return err - } - - *o = TagResource(varTagResource) - - return err -} - -type NullableTagResource struct { - value *TagResource - isSet bool -} - -func (v NullableTagResource) Get() *TagResource { - return v.value -} - -func (v *NullableTagResource) Set(val *TagResource) { - v.value = val - v.isSet = true -} - -func (v NullableTagResource) IsSet() bool { - return v.isSet -} - -func (v *NullableTagResource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTagResource(val *TagResource) *NullableTagResource { - return &NullableTagResource{value: val, isSet: true} -} - -func (v NullableTagResource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTagResource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_transaction_resource.go b/expense-manager/openapi/model_transaction_resource.go deleted file mode 100644 index 0eef453..0000000 --- a/expense-manager/openapi/model_transaction_resource.go +++ /dev/null @@ -1,278 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the TransactionResource type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransactionResource{} - -// TransactionResource struct for TransactionResource -type TransactionResource struct { - // The type of this resource: `transactions` - Type string `json:"type"` - // The unique identifier for this transaction. - Id string `json:"id"` - Attributes TransactionResourceAttributes `json:"attributes"` - Relationships TransactionResourceRelationships `json:"relationships"` - Links *AccountResourceLinks `json:"links,omitempty"` -} - -type _TransactionResource TransactionResource - -// NewTransactionResource instantiates a new TransactionResource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransactionResource(type_ string, id string, attributes TransactionResourceAttributes, relationships TransactionResourceRelationships) *TransactionResource { - this := TransactionResource{} - this.Type = type_ - this.Id = id - this.Attributes = attributes - this.Relationships = relationships - return &this -} - -// NewTransactionResourceWithDefaults instantiates a new TransactionResource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransactionResourceWithDefaults() *TransactionResource { - this := TransactionResource{} - return &this -} - -// GetType returns the Type field value -func (o *TransactionResource) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *TransactionResource) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *TransactionResource) SetType(v string) { - o.Type = v -} - -// GetId returns the Id field value -func (o *TransactionResource) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *TransactionResource) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *TransactionResource) SetId(v string) { - o.Id = v -} - -// GetAttributes returns the Attributes field value -func (o *TransactionResource) GetAttributes() TransactionResourceAttributes { - if o == nil { - var ret TransactionResourceAttributes - return ret - } - - return o.Attributes -} - -// GetAttributesOk returns a tuple with the Attributes field value -// and a boolean to check if the value has been set. -func (o *TransactionResource) GetAttributesOk() (*TransactionResourceAttributes, bool) { - if o == nil { - return nil, false - } - return &o.Attributes, true -} - -// SetAttributes sets field value -func (o *TransactionResource) SetAttributes(v TransactionResourceAttributes) { - o.Attributes = v -} - -// GetRelationships returns the Relationships field value -func (o *TransactionResource) GetRelationships() TransactionResourceRelationships { - if o == nil { - var ret TransactionResourceRelationships - return ret - } - - return o.Relationships -} - -// GetRelationshipsOk returns a tuple with the Relationships field value -// and a boolean to check if the value has been set. -func (o *TransactionResource) GetRelationshipsOk() (*TransactionResourceRelationships, bool) { - if o == nil { - return nil, false - } - return &o.Relationships, true -} - -// SetRelationships sets field value -func (o *TransactionResource) SetRelationships(v TransactionResourceRelationships) { - o.Relationships = v -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *TransactionResource) GetLinks() AccountResourceLinks { - if o == nil || IsNil(o.Links) { - var ret AccountResourceLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransactionResource) GetLinksOk() (*AccountResourceLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *TransactionResource) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given AccountResourceLinks and assigns it to the Links field. -func (o *TransactionResource) SetLinks(v AccountResourceLinks) { - o.Links = &v -} - -func (o TransactionResource) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransactionResource) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["id"] = o.Id - toSerialize["attributes"] = o.Attributes - toSerialize["relationships"] = o.Relationships - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - return toSerialize, nil -} - -func (o *TransactionResource) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "id", - "attributes", - "relationships", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varTransactionResource := _TransactionResource{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTransactionResource) - - if err != nil { - return err - } - - *o = TransactionResource(varTransactionResource) - - return err -} - -type NullableTransactionResource struct { - value *TransactionResource - isSet bool -} - -func (v NullableTransactionResource) Get() *TransactionResource { - return v.value -} - -func (v *NullableTransactionResource) Set(val *TransactionResource) { - v.value = val - v.isSet = true -} - -func (v NullableTransactionResource) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactionResource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactionResource(val *TransactionResource) *NullableTransactionResource { - return &NullableTransactionResource{value: val, isSet: true} -} - -func (v NullableTransactionResource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactionResource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_transaction_resource_attributes.go b/expense-manager/openapi/model_transaction_resource_attributes.go deleted file mode 100644 index 357b341..0000000 --- a/expense-manager/openapi/model_transaction_resource_attributes.go +++ /dev/null @@ -1,487 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" - "time" -) - -// checks if the TransactionResourceAttributes type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransactionResourceAttributes{} - -// TransactionResourceAttributes struct for TransactionResourceAttributes -type TransactionResourceAttributes struct { - // The current processing status of this transaction, according to whether or not this transaction has settled or is still held. - Status TransactionStatusEnum `json:"status"` - // The original, unprocessed text of the transaction. This is often not a perfect indicator of the actual merchant, but it is useful for reconciliation purposes in some cases. - RawText NullableString `json:"rawText"` - // A short description for this transaction. Usually the merchant name for purchases. - Description string `json:"description"` - // Attached message for this transaction, such as a payment message, or a transfer note. - Message NullableString `json:"message"` - // Boolean flag set to true on transactions that support the use of categories. - IsCategorizable bool `json:"isCategorizable"` - HoldInfo NullableTransactionResourceAttributesHoldInfo `json:"holdInfo"` - RoundUp NullableTransactionResourceAttributesRoundUp `json:"roundUp"` - Cashback NullableTransactionResourceAttributesCashback `json:"cashback"` - // The amount of this transaction in Australian dollars. For transactions that were once `HELD` but are now `SETTLED`, refer to the `holdInfo` field for the original `amount` the transaction was `HELD` at. - Amount MoneyObject `json:"amount"` - ForeignAmount NullableTransactionResourceAttributesForeignAmount `json:"foreignAmount"` - // The date-time at which this transaction settled. This field will be `null` for transactions that are currently in the `HELD` status. - SettledAt NullableTime `json:"settledAt"` - // The date-time at which this transaction was first encountered. - CreatedAt time.Time `json:"createdAt"` -} - -type _TransactionResourceAttributes TransactionResourceAttributes - -// NewTransactionResourceAttributes instantiates a new TransactionResourceAttributes object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransactionResourceAttributes(status TransactionStatusEnum, rawText NullableString, description string, message NullableString, isCategorizable bool, holdInfo NullableTransactionResourceAttributesHoldInfo, roundUp NullableTransactionResourceAttributesRoundUp, cashback NullableTransactionResourceAttributesCashback, amount MoneyObject, foreignAmount NullableTransactionResourceAttributesForeignAmount, settledAt NullableTime, createdAt time.Time) *TransactionResourceAttributes { - this := TransactionResourceAttributes{} - this.Status = status - this.RawText = rawText - this.Description = description - this.Message = message - this.IsCategorizable = isCategorizable - this.HoldInfo = holdInfo - this.RoundUp = roundUp - this.Cashback = cashback - this.Amount = amount - this.ForeignAmount = foreignAmount - this.SettledAt = settledAt - this.CreatedAt = createdAt - return &this -} - -// NewTransactionResourceAttributesWithDefaults instantiates a new TransactionResourceAttributes object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransactionResourceAttributesWithDefaults() *TransactionResourceAttributes { - this := TransactionResourceAttributes{} - return &this -} - -// GetStatus returns the Status field value -func (o *TransactionResourceAttributes) GetStatus() TransactionStatusEnum { - if o == nil { - var ret TransactionStatusEnum - return ret - } - - return o.Status -} - -// GetStatusOk returns a tuple with the Status field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceAttributes) GetStatusOk() (*TransactionStatusEnum, bool) { - if o == nil { - return nil, false - } - return &o.Status, true -} - -// SetStatus sets field value -func (o *TransactionResourceAttributes) SetStatus(v TransactionStatusEnum) { - o.Status = v -} - -// GetRawText returns the RawText field value -// If the value is explicit nil, the zero value for string will be returned -func (o *TransactionResourceAttributes) GetRawText() string { - if o == nil || o.RawText.Get() == nil { - var ret string - return ret - } - - return *o.RawText.Get() -} - -// GetRawTextOk returns a tuple with the RawText field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TransactionResourceAttributes) GetRawTextOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.RawText.Get(), o.RawText.IsSet() -} - -// SetRawText sets field value -func (o *TransactionResourceAttributes) SetRawText(v string) { - o.RawText.Set(&v) -} - -// GetDescription returns the Description field value -func (o *TransactionResourceAttributes) GetDescription() string { - if o == nil { - var ret string - return ret - } - - return o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceAttributes) GetDescriptionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Description, true -} - -// SetDescription sets field value -func (o *TransactionResourceAttributes) SetDescription(v string) { - o.Description = v -} - -// GetMessage returns the Message field value -// If the value is explicit nil, the zero value for string will be returned -func (o *TransactionResourceAttributes) GetMessage() string { - if o == nil || o.Message.Get() == nil { - var ret string - return ret - } - - return *o.Message.Get() -} - -// GetMessageOk returns a tuple with the Message field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TransactionResourceAttributes) GetMessageOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Message.Get(), o.Message.IsSet() -} - -// SetMessage sets field value -func (o *TransactionResourceAttributes) SetMessage(v string) { - o.Message.Set(&v) -} - -// GetIsCategorizable returns the IsCategorizable field value -func (o *TransactionResourceAttributes) GetIsCategorizable() bool { - if o == nil { - var ret bool - return ret - } - - return o.IsCategorizable -} - -// GetIsCategorizableOk returns a tuple with the IsCategorizable field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceAttributes) GetIsCategorizableOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.IsCategorizable, true -} - -// SetIsCategorizable sets field value -func (o *TransactionResourceAttributes) SetIsCategorizable(v bool) { - o.IsCategorizable = v -} - -// GetHoldInfo returns the HoldInfo field value -// If the value is explicit nil, the zero value for TransactionResourceAttributesHoldInfo will be returned -func (o *TransactionResourceAttributes) GetHoldInfo() TransactionResourceAttributesHoldInfo { - if o == nil || o.HoldInfo.Get() == nil { - var ret TransactionResourceAttributesHoldInfo - return ret - } - - return *o.HoldInfo.Get() -} - -// GetHoldInfoOk returns a tuple with the HoldInfo field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TransactionResourceAttributes) GetHoldInfoOk() (*TransactionResourceAttributesHoldInfo, bool) { - if o == nil { - return nil, false - } - return o.HoldInfo.Get(), o.HoldInfo.IsSet() -} - -// SetHoldInfo sets field value -func (o *TransactionResourceAttributes) SetHoldInfo(v TransactionResourceAttributesHoldInfo) { - o.HoldInfo.Set(&v) -} - -// GetRoundUp returns the RoundUp field value -// If the value is explicit nil, the zero value for TransactionResourceAttributesRoundUp will be returned -func (o *TransactionResourceAttributes) GetRoundUp() TransactionResourceAttributesRoundUp { - if o == nil || o.RoundUp.Get() == nil { - var ret TransactionResourceAttributesRoundUp - return ret - } - - return *o.RoundUp.Get() -} - -// GetRoundUpOk returns a tuple with the RoundUp field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TransactionResourceAttributes) GetRoundUpOk() (*TransactionResourceAttributesRoundUp, bool) { - if o == nil { - return nil, false - } - return o.RoundUp.Get(), o.RoundUp.IsSet() -} - -// SetRoundUp sets field value -func (o *TransactionResourceAttributes) SetRoundUp(v TransactionResourceAttributesRoundUp) { - o.RoundUp.Set(&v) -} - -// GetCashback returns the Cashback field value -// If the value is explicit nil, the zero value for TransactionResourceAttributesCashback will be returned -func (o *TransactionResourceAttributes) GetCashback() TransactionResourceAttributesCashback { - if o == nil || o.Cashback.Get() == nil { - var ret TransactionResourceAttributesCashback - return ret - } - - return *o.Cashback.Get() -} - -// GetCashbackOk returns a tuple with the Cashback field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TransactionResourceAttributes) GetCashbackOk() (*TransactionResourceAttributesCashback, bool) { - if o == nil { - return nil, false - } - return o.Cashback.Get(), o.Cashback.IsSet() -} - -// SetCashback sets field value -func (o *TransactionResourceAttributes) SetCashback(v TransactionResourceAttributesCashback) { - o.Cashback.Set(&v) -} - -// GetAmount returns the Amount field value -func (o *TransactionResourceAttributes) GetAmount() MoneyObject { - if o == nil { - var ret MoneyObject - return ret - } - - return o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceAttributes) GetAmountOk() (*MoneyObject, bool) { - if o == nil { - return nil, false - } - return &o.Amount, true -} - -// SetAmount sets field value -func (o *TransactionResourceAttributes) SetAmount(v MoneyObject) { - o.Amount = v -} - -// GetForeignAmount returns the ForeignAmount field value -// If the value is explicit nil, the zero value for TransactionResourceAttributesForeignAmount will be returned -func (o *TransactionResourceAttributes) GetForeignAmount() TransactionResourceAttributesForeignAmount { - if o == nil || o.ForeignAmount.Get() == nil { - var ret TransactionResourceAttributesForeignAmount - return ret - } - - return *o.ForeignAmount.Get() -} - -// GetForeignAmountOk returns a tuple with the ForeignAmount field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TransactionResourceAttributes) GetForeignAmountOk() (*TransactionResourceAttributesForeignAmount, bool) { - if o == nil { - return nil, false - } - return o.ForeignAmount.Get(), o.ForeignAmount.IsSet() -} - -// SetForeignAmount sets field value -func (o *TransactionResourceAttributes) SetForeignAmount(v TransactionResourceAttributesForeignAmount) { - o.ForeignAmount.Set(&v) -} - -// GetSettledAt returns the SettledAt field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *TransactionResourceAttributes) GetSettledAt() time.Time { - if o == nil || o.SettledAt.Get() == nil { - var ret time.Time - return ret - } - - return *o.SettledAt.Get() -} - -// GetSettledAtOk returns a tuple with the SettledAt field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TransactionResourceAttributes) GetSettledAtOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.SettledAt.Get(), o.SettledAt.IsSet() -} - -// SetSettledAt sets field value -func (o *TransactionResourceAttributes) SetSettledAt(v time.Time) { - o.SettledAt.Set(&v) -} - -// GetCreatedAt returns the CreatedAt field value -func (o *TransactionResourceAttributes) GetCreatedAt() time.Time { - if o == nil { - var ret time.Time - return ret - } - - return o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceAttributes) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return &o.CreatedAt, true -} - -// SetCreatedAt sets field value -func (o *TransactionResourceAttributes) SetCreatedAt(v time.Time) { - o.CreatedAt = v -} - -func (o TransactionResourceAttributes) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransactionResourceAttributes) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["status"] = o.Status - toSerialize["rawText"] = o.RawText.Get() - toSerialize["description"] = o.Description - toSerialize["message"] = o.Message.Get() - toSerialize["isCategorizable"] = o.IsCategorizable - toSerialize["holdInfo"] = o.HoldInfo.Get() - toSerialize["roundUp"] = o.RoundUp.Get() - toSerialize["cashback"] = o.Cashback.Get() - toSerialize["amount"] = o.Amount - toSerialize["foreignAmount"] = o.ForeignAmount.Get() - toSerialize["settledAt"] = o.SettledAt.Get() - toSerialize["createdAt"] = o.CreatedAt - return toSerialize, nil -} - -func (o *TransactionResourceAttributes) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "status", - "rawText", - "description", - "message", - "isCategorizable", - "holdInfo", - "roundUp", - "cashback", - "amount", - "foreignAmount", - "settledAt", - "createdAt", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varTransactionResourceAttributes := _TransactionResourceAttributes{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTransactionResourceAttributes) - - if err != nil { - return err - } - - *o = TransactionResourceAttributes(varTransactionResourceAttributes) - - return err -} - -type NullableTransactionResourceAttributes struct { - value *TransactionResourceAttributes - isSet bool -} - -func (v NullableTransactionResourceAttributes) Get() *TransactionResourceAttributes { - return v.value -} - -func (v *NullableTransactionResourceAttributes) Set(val *TransactionResourceAttributes) { - v.value = val - v.isSet = true -} - -func (v NullableTransactionResourceAttributes) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactionResourceAttributes) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactionResourceAttributes(val *TransactionResourceAttributes) *NullableTransactionResourceAttributes { - return &NullableTransactionResourceAttributes{value: val, isSet: true} -} - -func (v NullableTransactionResourceAttributes) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactionResourceAttributes) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_transaction_resource_attributes_cashback.go b/expense-manager/openapi/model_transaction_resource_attributes_cashback.go deleted file mode 100644 index ae9a9f0..0000000 --- a/expense-manager/openapi/model_transaction_resource_attributes_cashback.go +++ /dev/null @@ -1,186 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the TransactionResourceAttributesCashback type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransactionResourceAttributesCashback{} - -// TransactionResourceAttributesCashback If all or part of this transaction was instantly reimbursed in the form of cashback, details of the reimbursement. -type TransactionResourceAttributesCashback struct { - // A brief description of why this cashback was paid. - Description string `json:"description"` - // The total amount of cashback paid, represented as a positive value. - Amount MoneyObject `json:"amount"` -} - -type _TransactionResourceAttributesCashback TransactionResourceAttributesCashback - -// NewTransactionResourceAttributesCashback instantiates a new TransactionResourceAttributesCashback object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransactionResourceAttributesCashback(description string, amount MoneyObject) *TransactionResourceAttributesCashback { - this := TransactionResourceAttributesCashback{} - this.Description = description - this.Amount = amount - return &this -} - -// NewTransactionResourceAttributesCashbackWithDefaults instantiates a new TransactionResourceAttributesCashback object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransactionResourceAttributesCashbackWithDefaults() *TransactionResourceAttributesCashback { - this := TransactionResourceAttributesCashback{} - return &this -} - -// GetDescription returns the Description field value -func (o *TransactionResourceAttributesCashback) GetDescription() string { - if o == nil { - var ret string - return ret - } - - return o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceAttributesCashback) GetDescriptionOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Description, true -} - -// SetDescription sets field value -func (o *TransactionResourceAttributesCashback) SetDescription(v string) { - o.Description = v -} - -// GetAmount returns the Amount field value -func (o *TransactionResourceAttributesCashback) GetAmount() MoneyObject { - if o == nil { - var ret MoneyObject - return ret - } - - return o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceAttributesCashback) GetAmountOk() (*MoneyObject, bool) { - if o == nil { - return nil, false - } - return &o.Amount, true -} - -// SetAmount sets field value -func (o *TransactionResourceAttributesCashback) SetAmount(v MoneyObject) { - o.Amount = v -} - -func (o TransactionResourceAttributesCashback) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransactionResourceAttributesCashback) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["description"] = o.Description - toSerialize["amount"] = o.Amount - return toSerialize, nil -} - -func (o *TransactionResourceAttributesCashback) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "description", - "amount", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varTransactionResourceAttributesCashback := _TransactionResourceAttributesCashback{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTransactionResourceAttributesCashback) - - if err != nil { - return err - } - - *o = TransactionResourceAttributesCashback(varTransactionResourceAttributesCashback) - - return err -} - -type NullableTransactionResourceAttributesCashback struct { - value *TransactionResourceAttributesCashback - isSet bool -} - -func (v NullableTransactionResourceAttributesCashback) Get() *TransactionResourceAttributesCashback { - return v.value -} - -func (v *NullableTransactionResourceAttributesCashback) Set(val *TransactionResourceAttributesCashback) { - v.value = val - v.isSet = true -} - -func (v NullableTransactionResourceAttributesCashback) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactionResourceAttributesCashback) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactionResourceAttributesCashback(val *TransactionResourceAttributesCashback) *NullableTransactionResourceAttributesCashback { - return &NullableTransactionResourceAttributesCashback{value: val, isSet: true} -} - -func (v NullableTransactionResourceAttributesCashback) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactionResourceAttributesCashback) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_transaction_resource_attributes_foreign_amount.go b/expense-manager/openapi/model_transaction_resource_attributes_foreign_amount.go deleted file mode 100644 index dfdca9f..0000000 --- a/expense-manager/openapi/model_transaction_resource_attributes_foreign_amount.go +++ /dev/null @@ -1,215 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the TransactionResourceAttributesForeignAmount type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransactionResourceAttributesForeignAmount{} - -// TransactionResourceAttributesForeignAmount The foreign currency amount of this transaction. This field will be `null` for domestic transactions. The amount was converted to the AUD amount reflected in the `amount` of this transaction. Refer to the `holdInfo` field for the original `foreignAmount` the transaction was `HELD` at. -type TransactionResourceAttributesForeignAmount struct { - // The ISO 4217 currency code. - CurrencyCode string `json:"currencyCode"` - // The amount of money, formatted as a string in the relevant currency. For example, for an Australian dollar value of $10.56, this field will be `\"10.56\"`. The currency symbol is not included in the string. - Value string `json:"value"` - // The amount of money in the smallest denomination for the currency, as a 64-bit integer. For example, for an Australian dollar value of $10.56, this field will be `1056`. - ValueInBaseUnits int32 `json:"valueInBaseUnits"` -} - -type _TransactionResourceAttributesForeignAmount TransactionResourceAttributesForeignAmount - -// NewTransactionResourceAttributesForeignAmount instantiates a new TransactionResourceAttributesForeignAmount object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransactionResourceAttributesForeignAmount(currencyCode string, value string, valueInBaseUnits int32) *TransactionResourceAttributesForeignAmount { - this := TransactionResourceAttributesForeignAmount{} - this.CurrencyCode = currencyCode - this.Value = value - this.ValueInBaseUnits = valueInBaseUnits - return &this -} - -// NewTransactionResourceAttributesForeignAmountWithDefaults instantiates a new TransactionResourceAttributesForeignAmount object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransactionResourceAttributesForeignAmountWithDefaults() *TransactionResourceAttributesForeignAmount { - this := TransactionResourceAttributesForeignAmount{} - return &this -} - -// GetCurrencyCode returns the CurrencyCode field value -func (o *TransactionResourceAttributesForeignAmount) GetCurrencyCode() string { - if o == nil { - var ret string - return ret - } - - return o.CurrencyCode -} - -// GetCurrencyCodeOk returns a tuple with the CurrencyCode field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceAttributesForeignAmount) GetCurrencyCodeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CurrencyCode, true -} - -// SetCurrencyCode sets field value -func (o *TransactionResourceAttributesForeignAmount) SetCurrencyCode(v string) { - o.CurrencyCode = v -} - -// GetValue returns the Value field value -func (o *TransactionResourceAttributesForeignAmount) GetValue() string { - if o == nil { - var ret string - return ret - } - - return o.Value -} - -// GetValueOk returns a tuple with the Value field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceAttributesForeignAmount) GetValueOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Value, true -} - -// SetValue sets field value -func (o *TransactionResourceAttributesForeignAmount) SetValue(v string) { - o.Value = v -} - -// GetValueInBaseUnits returns the ValueInBaseUnits field value -func (o *TransactionResourceAttributesForeignAmount) GetValueInBaseUnits() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.ValueInBaseUnits -} - -// GetValueInBaseUnitsOk returns a tuple with the ValueInBaseUnits field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceAttributesForeignAmount) GetValueInBaseUnitsOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.ValueInBaseUnits, true -} - -// SetValueInBaseUnits sets field value -func (o *TransactionResourceAttributesForeignAmount) SetValueInBaseUnits(v int32) { - o.ValueInBaseUnits = v -} - -func (o TransactionResourceAttributesForeignAmount) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransactionResourceAttributesForeignAmount) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["currencyCode"] = o.CurrencyCode - toSerialize["value"] = o.Value - toSerialize["valueInBaseUnits"] = o.ValueInBaseUnits - return toSerialize, nil -} - -func (o *TransactionResourceAttributesForeignAmount) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "currencyCode", - "value", - "valueInBaseUnits", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varTransactionResourceAttributesForeignAmount := _TransactionResourceAttributesForeignAmount{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTransactionResourceAttributesForeignAmount) - - if err != nil { - return err - } - - *o = TransactionResourceAttributesForeignAmount(varTransactionResourceAttributesForeignAmount) - - return err -} - -type NullableTransactionResourceAttributesForeignAmount struct { - value *TransactionResourceAttributesForeignAmount - isSet bool -} - -func (v NullableTransactionResourceAttributesForeignAmount) Get() *TransactionResourceAttributesForeignAmount { - return v.value -} - -func (v *NullableTransactionResourceAttributesForeignAmount) Set(val *TransactionResourceAttributesForeignAmount) { - v.value = val - v.isSet = true -} - -func (v NullableTransactionResourceAttributesForeignAmount) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactionResourceAttributesForeignAmount) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactionResourceAttributesForeignAmount(val *TransactionResourceAttributesForeignAmount) *NullableTransactionResourceAttributesForeignAmount { - return &NullableTransactionResourceAttributesForeignAmount{value: val, isSet: true} -} - -func (v NullableTransactionResourceAttributesForeignAmount) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactionResourceAttributesForeignAmount) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_transaction_resource_attributes_hold_info.go b/expense-manager/openapi/model_transaction_resource_attributes_hold_info.go deleted file mode 100644 index 238904e..0000000 --- a/expense-manager/openapi/model_transaction_resource_attributes_hold_info.go +++ /dev/null @@ -1,187 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the TransactionResourceAttributesHoldInfo type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransactionResourceAttributesHoldInfo{} - -// TransactionResourceAttributesHoldInfo If this transaction is currently in the `HELD` status, or was ever in the `HELD` status, the `amount` and `foreignAmount` of the transaction while `HELD`. -type TransactionResourceAttributesHoldInfo struct { - // The amount of this transaction while in the `HELD` status, in Australian dollars. - Amount MoneyObject `json:"amount"` - ForeignAmount NullableHoldInfoObjectForeignAmount `json:"foreignAmount"` -} - -type _TransactionResourceAttributesHoldInfo TransactionResourceAttributesHoldInfo - -// NewTransactionResourceAttributesHoldInfo instantiates a new TransactionResourceAttributesHoldInfo object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransactionResourceAttributesHoldInfo(amount MoneyObject, foreignAmount NullableHoldInfoObjectForeignAmount) *TransactionResourceAttributesHoldInfo { - this := TransactionResourceAttributesHoldInfo{} - this.Amount = amount - this.ForeignAmount = foreignAmount - return &this -} - -// NewTransactionResourceAttributesHoldInfoWithDefaults instantiates a new TransactionResourceAttributesHoldInfo object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransactionResourceAttributesHoldInfoWithDefaults() *TransactionResourceAttributesHoldInfo { - this := TransactionResourceAttributesHoldInfo{} - return &this -} - -// GetAmount returns the Amount field value -func (o *TransactionResourceAttributesHoldInfo) GetAmount() MoneyObject { - if o == nil { - var ret MoneyObject - return ret - } - - return o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceAttributesHoldInfo) GetAmountOk() (*MoneyObject, bool) { - if o == nil { - return nil, false - } - return &o.Amount, true -} - -// SetAmount sets field value -func (o *TransactionResourceAttributesHoldInfo) SetAmount(v MoneyObject) { - o.Amount = v -} - -// GetForeignAmount returns the ForeignAmount field value -// If the value is explicit nil, the zero value for HoldInfoObjectForeignAmount will be returned -func (o *TransactionResourceAttributesHoldInfo) GetForeignAmount() HoldInfoObjectForeignAmount { - if o == nil || o.ForeignAmount.Get() == nil { - var ret HoldInfoObjectForeignAmount - return ret - } - - return *o.ForeignAmount.Get() -} - -// GetForeignAmountOk returns a tuple with the ForeignAmount field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TransactionResourceAttributesHoldInfo) GetForeignAmountOk() (*HoldInfoObjectForeignAmount, bool) { - if o == nil { - return nil, false - } - return o.ForeignAmount.Get(), o.ForeignAmount.IsSet() -} - -// SetForeignAmount sets field value -func (o *TransactionResourceAttributesHoldInfo) SetForeignAmount(v HoldInfoObjectForeignAmount) { - o.ForeignAmount.Set(&v) -} - -func (o TransactionResourceAttributesHoldInfo) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransactionResourceAttributesHoldInfo) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["amount"] = o.Amount - toSerialize["foreignAmount"] = o.ForeignAmount.Get() - return toSerialize, nil -} - -func (o *TransactionResourceAttributesHoldInfo) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "amount", - "foreignAmount", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varTransactionResourceAttributesHoldInfo := _TransactionResourceAttributesHoldInfo{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTransactionResourceAttributesHoldInfo) - - if err != nil { - return err - } - - *o = TransactionResourceAttributesHoldInfo(varTransactionResourceAttributesHoldInfo) - - return err -} - -type NullableTransactionResourceAttributesHoldInfo struct { - value *TransactionResourceAttributesHoldInfo - isSet bool -} - -func (v NullableTransactionResourceAttributesHoldInfo) Get() *TransactionResourceAttributesHoldInfo { - return v.value -} - -func (v *NullableTransactionResourceAttributesHoldInfo) Set(val *TransactionResourceAttributesHoldInfo) { - v.value = val - v.isSet = true -} - -func (v NullableTransactionResourceAttributesHoldInfo) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactionResourceAttributesHoldInfo) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactionResourceAttributesHoldInfo(val *TransactionResourceAttributesHoldInfo) *NullableTransactionResourceAttributesHoldInfo { - return &NullableTransactionResourceAttributesHoldInfo{value: val, isSet: true} -} - -func (v NullableTransactionResourceAttributesHoldInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactionResourceAttributesHoldInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_transaction_resource_attributes_round_up.go b/expense-manager/openapi/model_transaction_resource_attributes_round_up.go deleted file mode 100644 index cf3360f..0000000 --- a/expense-manager/openapi/model_transaction_resource_attributes_round_up.go +++ /dev/null @@ -1,187 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the TransactionResourceAttributesRoundUp type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransactionResourceAttributesRoundUp{} - -// TransactionResourceAttributesRoundUp Details of how this transaction was rounded-up. If no Round Up was applied this field will be `null`. -type TransactionResourceAttributesRoundUp struct { - // The total amount of this Round Up, including any boosts, represented as a negative value. - Amount MoneyObject `json:"amount"` - BoostPortion NullableRoundUpObjectBoostPortion `json:"boostPortion"` -} - -type _TransactionResourceAttributesRoundUp TransactionResourceAttributesRoundUp - -// NewTransactionResourceAttributesRoundUp instantiates a new TransactionResourceAttributesRoundUp object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransactionResourceAttributesRoundUp(amount MoneyObject, boostPortion NullableRoundUpObjectBoostPortion) *TransactionResourceAttributesRoundUp { - this := TransactionResourceAttributesRoundUp{} - this.Amount = amount - this.BoostPortion = boostPortion - return &this -} - -// NewTransactionResourceAttributesRoundUpWithDefaults instantiates a new TransactionResourceAttributesRoundUp object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransactionResourceAttributesRoundUpWithDefaults() *TransactionResourceAttributesRoundUp { - this := TransactionResourceAttributesRoundUp{} - return &this -} - -// GetAmount returns the Amount field value -func (o *TransactionResourceAttributesRoundUp) GetAmount() MoneyObject { - if o == nil { - var ret MoneyObject - return ret - } - - return o.Amount -} - -// GetAmountOk returns a tuple with the Amount field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceAttributesRoundUp) GetAmountOk() (*MoneyObject, bool) { - if o == nil { - return nil, false - } - return &o.Amount, true -} - -// SetAmount sets field value -func (o *TransactionResourceAttributesRoundUp) SetAmount(v MoneyObject) { - o.Amount = v -} - -// GetBoostPortion returns the BoostPortion field value -// If the value is explicit nil, the zero value for RoundUpObjectBoostPortion will be returned -func (o *TransactionResourceAttributesRoundUp) GetBoostPortion() RoundUpObjectBoostPortion { - if o == nil || o.BoostPortion.Get() == nil { - var ret RoundUpObjectBoostPortion - return ret - } - - return *o.BoostPortion.Get() -} - -// GetBoostPortionOk returns a tuple with the BoostPortion field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TransactionResourceAttributesRoundUp) GetBoostPortionOk() (*RoundUpObjectBoostPortion, bool) { - if o == nil { - return nil, false - } - return o.BoostPortion.Get(), o.BoostPortion.IsSet() -} - -// SetBoostPortion sets field value -func (o *TransactionResourceAttributesRoundUp) SetBoostPortion(v RoundUpObjectBoostPortion) { - o.BoostPortion.Set(&v) -} - -func (o TransactionResourceAttributesRoundUp) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransactionResourceAttributesRoundUp) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["amount"] = o.Amount - toSerialize["boostPortion"] = o.BoostPortion.Get() - return toSerialize, nil -} - -func (o *TransactionResourceAttributesRoundUp) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "amount", - "boostPortion", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varTransactionResourceAttributesRoundUp := _TransactionResourceAttributesRoundUp{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTransactionResourceAttributesRoundUp) - - if err != nil { - return err - } - - *o = TransactionResourceAttributesRoundUp(varTransactionResourceAttributesRoundUp) - - return err -} - -type NullableTransactionResourceAttributesRoundUp struct { - value *TransactionResourceAttributesRoundUp - isSet bool -} - -func (v NullableTransactionResourceAttributesRoundUp) Get() *TransactionResourceAttributesRoundUp { - return v.value -} - -func (v *NullableTransactionResourceAttributesRoundUp) Set(val *TransactionResourceAttributesRoundUp) { - v.value = val - v.isSet = true -} - -func (v NullableTransactionResourceAttributesRoundUp) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactionResourceAttributesRoundUp) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactionResourceAttributesRoundUp(val *TransactionResourceAttributesRoundUp) *NullableTransactionResourceAttributesRoundUp { - return &NullableTransactionResourceAttributesRoundUp{value: val, isSet: true} -} - -func (v NullableTransactionResourceAttributesRoundUp) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactionResourceAttributesRoundUp) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_transaction_resource_relationships.go b/expense-manager/openapi/model_transaction_resource_relationships.go deleted file mode 100644 index 5275dd0..0000000 --- a/expense-manager/openapi/model_transaction_resource_relationships.go +++ /dev/null @@ -1,268 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the TransactionResourceRelationships type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransactionResourceRelationships{} - -// TransactionResourceRelationships struct for TransactionResourceRelationships -type TransactionResourceRelationships struct { - Account TransactionResourceRelationshipsAccount `json:"account"` - TransferAccount TransactionResourceRelationshipsTransferAccount `json:"transferAccount"` - Category TransactionResourceRelationshipsCategory `json:"category"` - ParentCategory CategoryResourceRelationshipsParent `json:"parentCategory"` - Tags TransactionResourceRelationshipsTags `json:"tags"` -} - -type _TransactionResourceRelationships TransactionResourceRelationships - -// NewTransactionResourceRelationships instantiates a new TransactionResourceRelationships object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransactionResourceRelationships(account TransactionResourceRelationshipsAccount, transferAccount TransactionResourceRelationshipsTransferAccount, category TransactionResourceRelationshipsCategory, parentCategory CategoryResourceRelationshipsParent, tags TransactionResourceRelationshipsTags) *TransactionResourceRelationships { - this := TransactionResourceRelationships{} - this.Account = account - this.TransferAccount = transferAccount - this.Category = category - this.ParentCategory = parentCategory - this.Tags = tags - return &this -} - -// NewTransactionResourceRelationshipsWithDefaults instantiates a new TransactionResourceRelationships object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransactionResourceRelationshipsWithDefaults() *TransactionResourceRelationships { - this := TransactionResourceRelationships{} - return &this -} - -// GetAccount returns the Account field value -func (o *TransactionResourceRelationships) GetAccount() TransactionResourceRelationshipsAccount { - if o == nil { - var ret TransactionResourceRelationshipsAccount - return ret - } - - return o.Account -} - -// GetAccountOk returns a tuple with the Account field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationships) GetAccountOk() (*TransactionResourceRelationshipsAccount, bool) { - if o == nil { - return nil, false - } - return &o.Account, true -} - -// SetAccount sets field value -func (o *TransactionResourceRelationships) SetAccount(v TransactionResourceRelationshipsAccount) { - o.Account = v -} - -// GetTransferAccount returns the TransferAccount field value -func (o *TransactionResourceRelationships) GetTransferAccount() TransactionResourceRelationshipsTransferAccount { - if o == nil { - var ret TransactionResourceRelationshipsTransferAccount - return ret - } - - return o.TransferAccount -} - -// GetTransferAccountOk returns a tuple with the TransferAccount field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationships) GetTransferAccountOk() (*TransactionResourceRelationshipsTransferAccount, bool) { - if o == nil { - return nil, false - } - return &o.TransferAccount, true -} - -// SetTransferAccount sets field value -func (o *TransactionResourceRelationships) SetTransferAccount(v TransactionResourceRelationshipsTransferAccount) { - o.TransferAccount = v -} - -// GetCategory returns the Category field value -func (o *TransactionResourceRelationships) GetCategory() TransactionResourceRelationshipsCategory { - if o == nil { - var ret TransactionResourceRelationshipsCategory - return ret - } - - return o.Category -} - -// GetCategoryOk returns a tuple with the Category field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationships) GetCategoryOk() (*TransactionResourceRelationshipsCategory, bool) { - if o == nil { - return nil, false - } - return &o.Category, true -} - -// SetCategory sets field value -func (o *TransactionResourceRelationships) SetCategory(v TransactionResourceRelationshipsCategory) { - o.Category = v -} - -// GetParentCategory returns the ParentCategory field value -func (o *TransactionResourceRelationships) GetParentCategory() CategoryResourceRelationshipsParent { - if o == nil { - var ret CategoryResourceRelationshipsParent - return ret - } - - return o.ParentCategory -} - -// GetParentCategoryOk returns a tuple with the ParentCategory field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationships) GetParentCategoryOk() (*CategoryResourceRelationshipsParent, bool) { - if o == nil { - return nil, false - } - return &o.ParentCategory, true -} - -// SetParentCategory sets field value -func (o *TransactionResourceRelationships) SetParentCategory(v CategoryResourceRelationshipsParent) { - o.ParentCategory = v -} - -// GetTags returns the Tags field value -func (o *TransactionResourceRelationships) GetTags() TransactionResourceRelationshipsTags { - if o == nil { - var ret TransactionResourceRelationshipsTags - return ret - } - - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationships) GetTagsOk() (*TransactionResourceRelationshipsTags, bool) { - if o == nil { - return nil, false - } - return &o.Tags, true -} - -// SetTags sets field value -func (o *TransactionResourceRelationships) SetTags(v TransactionResourceRelationshipsTags) { - o.Tags = v -} - -func (o TransactionResourceRelationships) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransactionResourceRelationships) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["account"] = o.Account - toSerialize["transferAccount"] = o.TransferAccount - toSerialize["category"] = o.Category - toSerialize["parentCategory"] = o.ParentCategory - toSerialize["tags"] = o.Tags - return toSerialize, nil -} - -func (o *TransactionResourceRelationships) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "account", - "transferAccount", - "category", - "parentCategory", - "tags", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varTransactionResourceRelationships := _TransactionResourceRelationships{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTransactionResourceRelationships) - - if err != nil { - return err - } - - *o = TransactionResourceRelationships(varTransactionResourceRelationships) - - return err -} - -type NullableTransactionResourceRelationships struct { - value *TransactionResourceRelationships - isSet bool -} - -func (v NullableTransactionResourceRelationships) Get() *TransactionResourceRelationships { - return v.value -} - -func (v *NullableTransactionResourceRelationships) Set(val *TransactionResourceRelationships) { - v.value = val - v.isSet = true -} - -func (v NullableTransactionResourceRelationships) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactionResourceRelationships) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactionResourceRelationships(val *TransactionResourceRelationships) *NullableTransactionResourceRelationships { - return &NullableTransactionResourceRelationships{value: val, isSet: true} -} - -func (v NullableTransactionResourceRelationships) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactionResourceRelationships) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_transaction_resource_relationships_account.go b/expense-manager/openapi/model_transaction_resource_relationships_account.go deleted file mode 100644 index bd3bc6d..0000000 --- a/expense-manager/openapi/model_transaction_resource_relationships_account.go +++ /dev/null @@ -1,192 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the TransactionResourceRelationshipsAccount type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransactionResourceRelationshipsAccount{} - -// TransactionResourceRelationshipsAccount struct for TransactionResourceRelationshipsAccount -type TransactionResourceRelationshipsAccount struct { - Data TransactionResourceRelationshipsAccountData `json:"data"` - Links *AccountResourceRelationshipsTransactionsLinks `json:"links,omitempty"` -} - -type _TransactionResourceRelationshipsAccount TransactionResourceRelationshipsAccount - -// NewTransactionResourceRelationshipsAccount instantiates a new TransactionResourceRelationshipsAccount object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransactionResourceRelationshipsAccount(data TransactionResourceRelationshipsAccountData) *TransactionResourceRelationshipsAccount { - this := TransactionResourceRelationshipsAccount{} - this.Data = data - return &this -} - -// NewTransactionResourceRelationshipsAccountWithDefaults instantiates a new TransactionResourceRelationshipsAccount object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransactionResourceRelationshipsAccountWithDefaults() *TransactionResourceRelationshipsAccount { - this := TransactionResourceRelationshipsAccount{} - return &this -} - -// GetData returns the Data field value -func (o *TransactionResourceRelationshipsAccount) GetData() TransactionResourceRelationshipsAccountData { - if o == nil { - var ret TransactionResourceRelationshipsAccountData - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationshipsAccount) GetDataOk() (*TransactionResourceRelationshipsAccountData, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *TransactionResourceRelationshipsAccount) SetData(v TransactionResourceRelationshipsAccountData) { - o.Data = v -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *TransactionResourceRelationshipsAccount) GetLinks() AccountResourceRelationshipsTransactionsLinks { - if o == nil || IsNil(o.Links) { - var ret AccountResourceRelationshipsTransactionsLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationshipsAccount) GetLinksOk() (*AccountResourceRelationshipsTransactionsLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *TransactionResourceRelationshipsAccount) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given AccountResourceRelationshipsTransactionsLinks and assigns it to the Links field. -func (o *TransactionResourceRelationshipsAccount) SetLinks(v AccountResourceRelationshipsTransactionsLinks) { - o.Links = &v -} - -func (o TransactionResourceRelationshipsAccount) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransactionResourceRelationshipsAccount) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - return toSerialize, nil -} - -func (o *TransactionResourceRelationshipsAccount) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varTransactionResourceRelationshipsAccount := _TransactionResourceRelationshipsAccount{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTransactionResourceRelationshipsAccount) - - if err != nil { - return err - } - - *o = TransactionResourceRelationshipsAccount(varTransactionResourceRelationshipsAccount) - - return err -} - -type NullableTransactionResourceRelationshipsAccount struct { - value *TransactionResourceRelationshipsAccount - isSet bool -} - -func (v NullableTransactionResourceRelationshipsAccount) Get() *TransactionResourceRelationshipsAccount { - return v.value -} - -func (v *NullableTransactionResourceRelationshipsAccount) Set(val *TransactionResourceRelationshipsAccount) { - v.value = val - v.isSet = true -} - -func (v NullableTransactionResourceRelationshipsAccount) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactionResourceRelationshipsAccount) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactionResourceRelationshipsAccount(val *TransactionResourceRelationshipsAccount) *NullableTransactionResourceRelationshipsAccount { - return &NullableTransactionResourceRelationshipsAccount{value: val, isSet: true} -} - -func (v NullableTransactionResourceRelationshipsAccount) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactionResourceRelationshipsAccount) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_transaction_resource_relationships_account_data.go b/expense-manager/openapi/model_transaction_resource_relationships_account_data.go deleted file mode 100644 index ffed849..0000000 --- a/expense-manager/openapi/model_transaction_resource_relationships_account_data.go +++ /dev/null @@ -1,186 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the TransactionResourceRelationshipsAccountData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransactionResourceRelationshipsAccountData{} - -// TransactionResourceRelationshipsAccountData struct for TransactionResourceRelationshipsAccountData -type TransactionResourceRelationshipsAccountData struct { - // The type of this resource: `accounts` - Type string `json:"type"` - // The unique identifier of the resource within its type. - Id string `json:"id"` -} - -type _TransactionResourceRelationshipsAccountData TransactionResourceRelationshipsAccountData - -// NewTransactionResourceRelationshipsAccountData instantiates a new TransactionResourceRelationshipsAccountData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransactionResourceRelationshipsAccountData(type_ string, id string) *TransactionResourceRelationshipsAccountData { - this := TransactionResourceRelationshipsAccountData{} - this.Type = type_ - this.Id = id - return &this -} - -// NewTransactionResourceRelationshipsAccountDataWithDefaults instantiates a new TransactionResourceRelationshipsAccountData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransactionResourceRelationshipsAccountDataWithDefaults() *TransactionResourceRelationshipsAccountData { - this := TransactionResourceRelationshipsAccountData{} - return &this -} - -// GetType returns the Type field value -func (o *TransactionResourceRelationshipsAccountData) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationshipsAccountData) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *TransactionResourceRelationshipsAccountData) SetType(v string) { - o.Type = v -} - -// GetId returns the Id field value -func (o *TransactionResourceRelationshipsAccountData) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationshipsAccountData) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *TransactionResourceRelationshipsAccountData) SetId(v string) { - o.Id = v -} - -func (o TransactionResourceRelationshipsAccountData) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransactionResourceRelationshipsAccountData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["id"] = o.Id - return toSerialize, nil -} - -func (o *TransactionResourceRelationshipsAccountData) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varTransactionResourceRelationshipsAccountData := _TransactionResourceRelationshipsAccountData{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTransactionResourceRelationshipsAccountData) - - if err != nil { - return err - } - - *o = TransactionResourceRelationshipsAccountData(varTransactionResourceRelationshipsAccountData) - - return err -} - -type NullableTransactionResourceRelationshipsAccountData struct { - value *TransactionResourceRelationshipsAccountData - isSet bool -} - -func (v NullableTransactionResourceRelationshipsAccountData) Get() *TransactionResourceRelationshipsAccountData { - return v.value -} - -func (v *NullableTransactionResourceRelationshipsAccountData) Set(val *TransactionResourceRelationshipsAccountData) { - v.value = val - v.isSet = true -} - -func (v NullableTransactionResourceRelationshipsAccountData) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactionResourceRelationshipsAccountData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactionResourceRelationshipsAccountData(val *TransactionResourceRelationshipsAccountData) *NullableTransactionResourceRelationshipsAccountData { - return &NullableTransactionResourceRelationshipsAccountData{value: val, isSet: true} -} - -func (v NullableTransactionResourceRelationshipsAccountData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactionResourceRelationshipsAccountData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_transaction_resource_relationships_category.go b/expense-manager/openapi/model_transaction_resource_relationships_category.go deleted file mode 100644 index b00bed6..0000000 --- a/expense-manager/openapi/model_transaction_resource_relationships_category.go +++ /dev/null @@ -1,194 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the TransactionResourceRelationshipsCategory type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransactionResourceRelationshipsCategory{} - -// TransactionResourceRelationshipsCategory struct for TransactionResourceRelationshipsCategory -type TransactionResourceRelationshipsCategory struct { - Data NullableCategoryResourceRelationshipsParentData `json:"data"` - Links *TransactionResourceRelationshipsCategoryLinks `json:"links,omitempty"` -} - -type _TransactionResourceRelationshipsCategory TransactionResourceRelationshipsCategory - -// NewTransactionResourceRelationshipsCategory instantiates a new TransactionResourceRelationshipsCategory object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransactionResourceRelationshipsCategory(data NullableCategoryResourceRelationshipsParentData) *TransactionResourceRelationshipsCategory { - this := TransactionResourceRelationshipsCategory{} - this.Data = data - return &this -} - -// NewTransactionResourceRelationshipsCategoryWithDefaults instantiates a new TransactionResourceRelationshipsCategory object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransactionResourceRelationshipsCategoryWithDefaults() *TransactionResourceRelationshipsCategory { - this := TransactionResourceRelationshipsCategory{} - return &this -} - -// GetData returns the Data field value -// If the value is explicit nil, the zero value for CategoryResourceRelationshipsParentData will be returned -func (o *TransactionResourceRelationshipsCategory) GetData() CategoryResourceRelationshipsParentData { - if o == nil || o.Data.Get() == nil { - var ret CategoryResourceRelationshipsParentData - return ret - } - - return *o.Data.Get() -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TransactionResourceRelationshipsCategory) GetDataOk() (*CategoryResourceRelationshipsParentData, bool) { - if o == nil { - return nil, false - } - return o.Data.Get(), o.Data.IsSet() -} - -// SetData sets field value -func (o *TransactionResourceRelationshipsCategory) SetData(v CategoryResourceRelationshipsParentData) { - o.Data.Set(&v) -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *TransactionResourceRelationshipsCategory) GetLinks() TransactionResourceRelationshipsCategoryLinks { - if o == nil || IsNil(o.Links) { - var ret TransactionResourceRelationshipsCategoryLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationshipsCategory) GetLinksOk() (*TransactionResourceRelationshipsCategoryLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *TransactionResourceRelationshipsCategory) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given TransactionResourceRelationshipsCategoryLinks and assigns it to the Links field. -func (o *TransactionResourceRelationshipsCategory) SetLinks(v TransactionResourceRelationshipsCategoryLinks) { - o.Links = &v -} - -func (o TransactionResourceRelationshipsCategory) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransactionResourceRelationshipsCategory) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data.Get() - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - return toSerialize, nil -} - -func (o *TransactionResourceRelationshipsCategory) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varTransactionResourceRelationshipsCategory := _TransactionResourceRelationshipsCategory{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTransactionResourceRelationshipsCategory) - - if err != nil { - return err - } - - *o = TransactionResourceRelationshipsCategory(varTransactionResourceRelationshipsCategory) - - return err -} - -type NullableTransactionResourceRelationshipsCategory struct { - value *TransactionResourceRelationshipsCategory - isSet bool -} - -func (v NullableTransactionResourceRelationshipsCategory) Get() *TransactionResourceRelationshipsCategory { - return v.value -} - -func (v *NullableTransactionResourceRelationshipsCategory) Set(val *TransactionResourceRelationshipsCategory) { - v.value = val - v.isSet = true -} - -func (v NullableTransactionResourceRelationshipsCategory) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactionResourceRelationshipsCategory) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactionResourceRelationshipsCategory(val *TransactionResourceRelationshipsCategory) *NullableTransactionResourceRelationshipsCategory { - return &NullableTransactionResourceRelationshipsCategory{value: val, isSet: true} -} - -func (v NullableTransactionResourceRelationshipsCategory) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactionResourceRelationshipsCategory) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_transaction_resource_relationships_category_links.go b/expense-manager/openapi/model_transaction_resource_relationships_category_links.go deleted file mode 100644 index 6b27fe4..0000000 --- a/expense-manager/openapi/model_transaction_resource_relationships_category_links.go +++ /dev/null @@ -1,194 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the TransactionResourceRelationshipsCategoryLinks type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransactionResourceRelationshipsCategoryLinks{} - -// TransactionResourceRelationshipsCategoryLinks struct for TransactionResourceRelationshipsCategoryLinks -type TransactionResourceRelationshipsCategoryLinks struct { - // The link to retrieve or modify linkage between this resources and the related resource(s) in this relationship. - Self string `json:"self"` - // The link to retrieve the related resource(s) in this relationship. - Related *string `json:"related,omitempty"` -} - -type _TransactionResourceRelationshipsCategoryLinks TransactionResourceRelationshipsCategoryLinks - -// NewTransactionResourceRelationshipsCategoryLinks instantiates a new TransactionResourceRelationshipsCategoryLinks object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransactionResourceRelationshipsCategoryLinks(self string) *TransactionResourceRelationshipsCategoryLinks { - this := TransactionResourceRelationshipsCategoryLinks{} - this.Self = self - return &this -} - -// NewTransactionResourceRelationshipsCategoryLinksWithDefaults instantiates a new TransactionResourceRelationshipsCategoryLinks object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransactionResourceRelationshipsCategoryLinksWithDefaults() *TransactionResourceRelationshipsCategoryLinks { - this := TransactionResourceRelationshipsCategoryLinks{} - return &this -} - -// GetSelf returns the Self field value -func (o *TransactionResourceRelationshipsCategoryLinks) GetSelf() string { - if o == nil { - var ret string - return ret - } - - return o.Self -} - -// GetSelfOk returns a tuple with the Self field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationshipsCategoryLinks) GetSelfOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Self, true -} - -// SetSelf sets field value -func (o *TransactionResourceRelationshipsCategoryLinks) SetSelf(v string) { - o.Self = v -} - -// GetRelated returns the Related field value if set, zero value otherwise. -func (o *TransactionResourceRelationshipsCategoryLinks) GetRelated() string { - if o == nil || IsNil(o.Related) { - var ret string - return ret - } - return *o.Related -} - -// GetRelatedOk returns a tuple with the Related field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationshipsCategoryLinks) GetRelatedOk() (*string, bool) { - if o == nil || IsNil(o.Related) { - return nil, false - } - return o.Related, true -} - -// HasRelated returns a boolean if a field has been set. -func (o *TransactionResourceRelationshipsCategoryLinks) HasRelated() bool { - if o != nil && !IsNil(o.Related) { - return true - } - - return false -} - -// SetRelated gets a reference to the given string and assigns it to the Related field. -func (o *TransactionResourceRelationshipsCategoryLinks) SetRelated(v string) { - o.Related = &v -} - -func (o TransactionResourceRelationshipsCategoryLinks) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransactionResourceRelationshipsCategoryLinks) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["self"] = o.Self - if !IsNil(o.Related) { - toSerialize["related"] = o.Related - } - return toSerialize, nil -} - -func (o *TransactionResourceRelationshipsCategoryLinks) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "self", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varTransactionResourceRelationshipsCategoryLinks := _TransactionResourceRelationshipsCategoryLinks{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTransactionResourceRelationshipsCategoryLinks) - - if err != nil { - return err - } - - *o = TransactionResourceRelationshipsCategoryLinks(varTransactionResourceRelationshipsCategoryLinks) - - return err -} - -type NullableTransactionResourceRelationshipsCategoryLinks struct { - value *TransactionResourceRelationshipsCategoryLinks - isSet bool -} - -func (v NullableTransactionResourceRelationshipsCategoryLinks) Get() *TransactionResourceRelationshipsCategoryLinks { - return v.value -} - -func (v *NullableTransactionResourceRelationshipsCategoryLinks) Set(val *TransactionResourceRelationshipsCategoryLinks) { - v.value = val - v.isSet = true -} - -func (v NullableTransactionResourceRelationshipsCategoryLinks) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactionResourceRelationshipsCategoryLinks) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactionResourceRelationshipsCategoryLinks(val *TransactionResourceRelationshipsCategoryLinks) *NullableTransactionResourceRelationshipsCategoryLinks { - return &NullableTransactionResourceRelationshipsCategoryLinks{value: val, isSet: true} -} - -func (v NullableTransactionResourceRelationshipsCategoryLinks) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactionResourceRelationshipsCategoryLinks) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_transaction_resource_relationships_tags.go b/expense-manager/openapi/model_transaction_resource_relationships_tags.go deleted file mode 100644 index e660ede..0000000 --- a/expense-manager/openapi/model_transaction_resource_relationships_tags.go +++ /dev/null @@ -1,192 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the TransactionResourceRelationshipsTags type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransactionResourceRelationshipsTags{} - -// TransactionResourceRelationshipsTags struct for TransactionResourceRelationshipsTags -type TransactionResourceRelationshipsTags struct { - Data []TransactionResourceRelationshipsTagsDataInner `json:"data"` - Links *TransactionResourceRelationshipsTagsLinks `json:"links,omitempty"` -} - -type _TransactionResourceRelationshipsTags TransactionResourceRelationshipsTags - -// NewTransactionResourceRelationshipsTags instantiates a new TransactionResourceRelationshipsTags object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransactionResourceRelationshipsTags(data []TransactionResourceRelationshipsTagsDataInner) *TransactionResourceRelationshipsTags { - this := TransactionResourceRelationshipsTags{} - this.Data = data - return &this -} - -// NewTransactionResourceRelationshipsTagsWithDefaults instantiates a new TransactionResourceRelationshipsTags object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransactionResourceRelationshipsTagsWithDefaults() *TransactionResourceRelationshipsTags { - this := TransactionResourceRelationshipsTags{} - return &this -} - -// GetData returns the Data field value -func (o *TransactionResourceRelationshipsTags) GetData() []TransactionResourceRelationshipsTagsDataInner { - if o == nil { - var ret []TransactionResourceRelationshipsTagsDataInner - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationshipsTags) GetDataOk() ([]TransactionResourceRelationshipsTagsDataInner, bool) { - if o == nil { - return nil, false - } - return o.Data, true -} - -// SetData sets field value -func (o *TransactionResourceRelationshipsTags) SetData(v []TransactionResourceRelationshipsTagsDataInner) { - o.Data = v -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *TransactionResourceRelationshipsTags) GetLinks() TransactionResourceRelationshipsTagsLinks { - if o == nil || IsNil(o.Links) { - var ret TransactionResourceRelationshipsTagsLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationshipsTags) GetLinksOk() (*TransactionResourceRelationshipsTagsLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *TransactionResourceRelationshipsTags) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given TransactionResourceRelationshipsTagsLinks and assigns it to the Links field. -func (o *TransactionResourceRelationshipsTags) SetLinks(v TransactionResourceRelationshipsTagsLinks) { - o.Links = &v -} - -func (o TransactionResourceRelationshipsTags) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransactionResourceRelationshipsTags) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - return toSerialize, nil -} - -func (o *TransactionResourceRelationshipsTags) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varTransactionResourceRelationshipsTags := _TransactionResourceRelationshipsTags{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTransactionResourceRelationshipsTags) - - if err != nil { - return err - } - - *o = TransactionResourceRelationshipsTags(varTransactionResourceRelationshipsTags) - - return err -} - -type NullableTransactionResourceRelationshipsTags struct { - value *TransactionResourceRelationshipsTags - isSet bool -} - -func (v NullableTransactionResourceRelationshipsTags) Get() *TransactionResourceRelationshipsTags { - return v.value -} - -func (v *NullableTransactionResourceRelationshipsTags) Set(val *TransactionResourceRelationshipsTags) { - v.value = val - v.isSet = true -} - -func (v NullableTransactionResourceRelationshipsTags) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactionResourceRelationshipsTags) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactionResourceRelationshipsTags(val *TransactionResourceRelationshipsTags) *NullableTransactionResourceRelationshipsTags { - return &NullableTransactionResourceRelationshipsTags{value: val, isSet: true} -} - -func (v NullableTransactionResourceRelationshipsTags) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactionResourceRelationshipsTags) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_transaction_resource_relationships_tags_data_inner.go b/expense-manager/openapi/model_transaction_resource_relationships_tags_data_inner.go deleted file mode 100644 index eec1b73..0000000 --- a/expense-manager/openapi/model_transaction_resource_relationships_tags_data_inner.go +++ /dev/null @@ -1,186 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the TransactionResourceRelationshipsTagsDataInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransactionResourceRelationshipsTagsDataInner{} - -// TransactionResourceRelationshipsTagsDataInner struct for TransactionResourceRelationshipsTagsDataInner -type TransactionResourceRelationshipsTagsDataInner struct { - // The type of this resource: `tags` - Type string `json:"type"` - // The label of the tag, which also acts as the tag’s unique identifier. - Id string `json:"id"` -} - -type _TransactionResourceRelationshipsTagsDataInner TransactionResourceRelationshipsTagsDataInner - -// NewTransactionResourceRelationshipsTagsDataInner instantiates a new TransactionResourceRelationshipsTagsDataInner object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransactionResourceRelationshipsTagsDataInner(type_ string, id string) *TransactionResourceRelationshipsTagsDataInner { - this := TransactionResourceRelationshipsTagsDataInner{} - this.Type = type_ - this.Id = id - return &this -} - -// NewTransactionResourceRelationshipsTagsDataInnerWithDefaults instantiates a new TransactionResourceRelationshipsTagsDataInner object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransactionResourceRelationshipsTagsDataInnerWithDefaults() *TransactionResourceRelationshipsTagsDataInner { - this := TransactionResourceRelationshipsTagsDataInner{} - return &this -} - -// GetType returns the Type field value -func (o *TransactionResourceRelationshipsTagsDataInner) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationshipsTagsDataInner) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *TransactionResourceRelationshipsTagsDataInner) SetType(v string) { - o.Type = v -} - -// GetId returns the Id field value -func (o *TransactionResourceRelationshipsTagsDataInner) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationshipsTagsDataInner) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *TransactionResourceRelationshipsTagsDataInner) SetId(v string) { - o.Id = v -} - -func (o TransactionResourceRelationshipsTagsDataInner) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransactionResourceRelationshipsTagsDataInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["id"] = o.Id - return toSerialize, nil -} - -func (o *TransactionResourceRelationshipsTagsDataInner) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varTransactionResourceRelationshipsTagsDataInner := _TransactionResourceRelationshipsTagsDataInner{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTransactionResourceRelationshipsTagsDataInner) - - if err != nil { - return err - } - - *o = TransactionResourceRelationshipsTagsDataInner(varTransactionResourceRelationshipsTagsDataInner) - - return err -} - -type NullableTransactionResourceRelationshipsTagsDataInner struct { - value *TransactionResourceRelationshipsTagsDataInner - isSet bool -} - -func (v NullableTransactionResourceRelationshipsTagsDataInner) Get() *TransactionResourceRelationshipsTagsDataInner { - return v.value -} - -func (v *NullableTransactionResourceRelationshipsTagsDataInner) Set(val *TransactionResourceRelationshipsTagsDataInner) { - v.value = val - v.isSet = true -} - -func (v NullableTransactionResourceRelationshipsTagsDataInner) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactionResourceRelationshipsTagsDataInner) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactionResourceRelationshipsTagsDataInner(val *TransactionResourceRelationshipsTagsDataInner) *NullableTransactionResourceRelationshipsTagsDataInner { - return &NullableTransactionResourceRelationshipsTagsDataInner{value: val, isSet: true} -} - -func (v NullableTransactionResourceRelationshipsTagsDataInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactionResourceRelationshipsTagsDataInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_transaction_resource_relationships_tags_links.go b/expense-manager/openapi/model_transaction_resource_relationships_tags_links.go deleted file mode 100644 index 9b2e40f..0000000 --- a/expense-manager/openapi/model_transaction_resource_relationships_tags_links.go +++ /dev/null @@ -1,157 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the TransactionResourceRelationshipsTagsLinks type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransactionResourceRelationshipsTagsLinks{} - -// TransactionResourceRelationshipsTagsLinks struct for TransactionResourceRelationshipsTagsLinks -type TransactionResourceRelationshipsTagsLinks struct { - // The link to retrieve or modify linkage between this resources and the related resource(s) in this relationship. - Self string `json:"self"` -} - -type _TransactionResourceRelationshipsTagsLinks TransactionResourceRelationshipsTagsLinks - -// NewTransactionResourceRelationshipsTagsLinks instantiates a new TransactionResourceRelationshipsTagsLinks object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransactionResourceRelationshipsTagsLinks(self string) *TransactionResourceRelationshipsTagsLinks { - this := TransactionResourceRelationshipsTagsLinks{} - this.Self = self - return &this -} - -// NewTransactionResourceRelationshipsTagsLinksWithDefaults instantiates a new TransactionResourceRelationshipsTagsLinks object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransactionResourceRelationshipsTagsLinksWithDefaults() *TransactionResourceRelationshipsTagsLinks { - this := TransactionResourceRelationshipsTagsLinks{} - return &this -} - -// GetSelf returns the Self field value -func (o *TransactionResourceRelationshipsTagsLinks) GetSelf() string { - if o == nil { - var ret string - return ret - } - - return o.Self -} - -// GetSelfOk returns a tuple with the Self field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationshipsTagsLinks) GetSelfOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Self, true -} - -// SetSelf sets field value -func (o *TransactionResourceRelationshipsTagsLinks) SetSelf(v string) { - o.Self = v -} - -func (o TransactionResourceRelationshipsTagsLinks) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransactionResourceRelationshipsTagsLinks) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["self"] = o.Self - return toSerialize, nil -} - -func (o *TransactionResourceRelationshipsTagsLinks) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "self", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varTransactionResourceRelationshipsTagsLinks := _TransactionResourceRelationshipsTagsLinks{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTransactionResourceRelationshipsTagsLinks) - - if err != nil { - return err - } - - *o = TransactionResourceRelationshipsTagsLinks(varTransactionResourceRelationshipsTagsLinks) - - return err -} - -type NullableTransactionResourceRelationshipsTagsLinks struct { - value *TransactionResourceRelationshipsTagsLinks - isSet bool -} - -func (v NullableTransactionResourceRelationshipsTagsLinks) Get() *TransactionResourceRelationshipsTagsLinks { - return v.value -} - -func (v *NullableTransactionResourceRelationshipsTagsLinks) Set(val *TransactionResourceRelationshipsTagsLinks) { - v.value = val - v.isSet = true -} - -func (v NullableTransactionResourceRelationshipsTagsLinks) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactionResourceRelationshipsTagsLinks) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactionResourceRelationshipsTagsLinks(val *TransactionResourceRelationshipsTagsLinks) *NullableTransactionResourceRelationshipsTagsLinks { - return &NullableTransactionResourceRelationshipsTagsLinks{value: val, isSet: true} -} - -func (v NullableTransactionResourceRelationshipsTagsLinks) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactionResourceRelationshipsTagsLinks) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_transaction_resource_relationships_transfer_account.go b/expense-manager/openapi/model_transaction_resource_relationships_transfer_account.go deleted file mode 100644 index b1217fb..0000000 --- a/expense-manager/openapi/model_transaction_resource_relationships_transfer_account.go +++ /dev/null @@ -1,194 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the TransactionResourceRelationshipsTransferAccount type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransactionResourceRelationshipsTransferAccount{} - -// TransactionResourceRelationshipsTransferAccount If this transaction is a transfer between accounts, this relationship will contain the account the transaction went to/came from. The `amount` field can be used to determine the direction of the transfer. -type TransactionResourceRelationshipsTransferAccount struct { - Data NullableTransactionResourceRelationshipsTransferAccountData `json:"data"` - Links *AccountResourceRelationshipsTransactionsLinks `json:"links,omitempty"` -} - -type _TransactionResourceRelationshipsTransferAccount TransactionResourceRelationshipsTransferAccount - -// NewTransactionResourceRelationshipsTransferAccount instantiates a new TransactionResourceRelationshipsTransferAccount object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransactionResourceRelationshipsTransferAccount(data NullableTransactionResourceRelationshipsTransferAccountData) *TransactionResourceRelationshipsTransferAccount { - this := TransactionResourceRelationshipsTransferAccount{} - this.Data = data - return &this -} - -// NewTransactionResourceRelationshipsTransferAccountWithDefaults instantiates a new TransactionResourceRelationshipsTransferAccount object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransactionResourceRelationshipsTransferAccountWithDefaults() *TransactionResourceRelationshipsTransferAccount { - this := TransactionResourceRelationshipsTransferAccount{} - return &this -} - -// GetData returns the Data field value -// If the value is explicit nil, the zero value for TransactionResourceRelationshipsTransferAccountData will be returned -func (o *TransactionResourceRelationshipsTransferAccount) GetData() TransactionResourceRelationshipsTransferAccountData { - if o == nil || o.Data.Get() == nil { - var ret TransactionResourceRelationshipsTransferAccountData - return ret - } - - return *o.Data.Get() -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TransactionResourceRelationshipsTransferAccount) GetDataOk() (*TransactionResourceRelationshipsTransferAccountData, bool) { - if o == nil { - return nil, false - } - return o.Data.Get(), o.Data.IsSet() -} - -// SetData sets field value -func (o *TransactionResourceRelationshipsTransferAccount) SetData(v TransactionResourceRelationshipsTransferAccountData) { - o.Data.Set(&v) -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *TransactionResourceRelationshipsTransferAccount) GetLinks() AccountResourceRelationshipsTransactionsLinks { - if o == nil || IsNil(o.Links) { - var ret AccountResourceRelationshipsTransactionsLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationshipsTransferAccount) GetLinksOk() (*AccountResourceRelationshipsTransactionsLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *TransactionResourceRelationshipsTransferAccount) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given AccountResourceRelationshipsTransactionsLinks and assigns it to the Links field. -func (o *TransactionResourceRelationshipsTransferAccount) SetLinks(v AccountResourceRelationshipsTransactionsLinks) { - o.Links = &v -} - -func (o TransactionResourceRelationshipsTransferAccount) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransactionResourceRelationshipsTransferAccount) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data.Get() - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - return toSerialize, nil -} - -func (o *TransactionResourceRelationshipsTransferAccount) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varTransactionResourceRelationshipsTransferAccount := _TransactionResourceRelationshipsTransferAccount{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTransactionResourceRelationshipsTransferAccount) - - if err != nil { - return err - } - - *o = TransactionResourceRelationshipsTransferAccount(varTransactionResourceRelationshipsTransferAccount) - - return err -} - -type NullableTransactionResourceRelationshipsTransferAccount struct { - value *TransactionResourceRelationshipsTransferAccount - isSet bool -} - -func (v NullableTransactionResourceRelationshipsTransferAccount) Get() *TransactionResourceRelationshipsTransferAccount { - return v.value -} - -func (v *NullableTransactionResourceRelationshipsTransferAccount) Set(val *TransactionResourceRelationshipsTransferAccount) { - v.value = val - v.isSet = true -} - -func (v NullableTransactionResourceRelationshipsTransferAccount) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactionResourceRelationshipsTransferAccount) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactionResourceRelationshipsTransferAccount(val *TransactionResourceRelationshipsTransferAccount) *NullableTransactionResourceRelationshipsTransferAccount { - return &NullableTransactionResourceRelationshipsTransferAccount{value: val, isSet: true} -} - -func (v NullableTransactionResourceRelationshipsTransferAccount) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactionResourceRelationshipsTransferAccount) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_transaction_resource_relationships_transfer_account_data.go b/expense-manager/openapi/model_transaction_resource_relationships_transfer_account_data.go deleted file mode 100644 index 28879be..0000000 --- a/expense-manager/openapi/model_transaction_resource_relationships_transfer_account_data.go +++ /dev/null @@ -1,186 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the TransactionResourceRelationshipsTransferAccountData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &TransactionResourceRelationshipsTransferAccountData{} - -// TransactionResourceRelationshipsTransferAccountData struct for TransactionResourceRelationshipsTransferAccountData -type TransactionResourceRelationshipsTransferAccountData struct { - // The type of this resource: `accounts` - Type string `json:"type"` - // The unique identifier of the resource within its type. - Id string `json:"id"` -} - -type _TransactionResourceRelationshipsTransferAccountData TransactionResourceRelationshipsTransferAccountData - -// NewTransactionResourceRelationshipsTransferAccountData instantiates a new TransactionResourceRelationshipsTransferAccountData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewTransactionResourceRelationshipsTransferAccountData(type_ string, id string) *TransactionResourceRelationshipsTransferAccountData { - this := TransactionResourceRelationshipsTransferAccountData{} - this.Type = type_ - this.Id = id - return &this -} - -// NewTransactionResourceRelationshipsTransferAccountDataWithDefaults instantiates a new TransactionResourceRelationshipsTransferAccountData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewTransactionResourceRelationshipsTransferAccountDataWithDefaults() *TransactionResourceRelationshipsTransferAccountData { - this := TransactionResourceRelationshipsTransferAccountData{} - return &this -} - -// GetType returns the Type field value -func (o *TransactionResourceRelationshipsTransferAccountData) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationshipsTransferAccountData) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *TransactionResourceRelationshipsTransferAccountData) SetType(v string) { - o.Type = v -} - -// GetId returns the Id field value -func (o *TransactionResourceRelationshipsTransferAccountData) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *TransactionResourceRelationshipsTransferAccountData) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *TransactionResourceRelationshipsTransferAccountData) SetId(v string) { - o.Id = v -} - -func (o TransactionResourceRelationshipsTransferAccountData) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o TransactionResourceRelationshipsTransferAccountData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["id"] = o.Id - return toSerialize, nil -} - -func (o *TransactionResourceRelationshipsTransferAccountData) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varTransactionResourceRelationshipsTransferAccountData := _TransactionResourceRelationshipsTransferAccountData{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varTransactionResourceRelationshipsTransferAccountData) - - if err != nil { - return err - } - - *o = TransactionResourceRelationshipsTransferAccountData(varTransactionResourceRelationshipsTransferAccountData) - - return err -} - -type NullableTransactionResourceRelationshipsTransferAccountData struct { - value *TransactionResourceRelationshipsTransferAccountData - isSet bool -} - -func (v NullableTransactionResourceRelationshipsTransferAccountData) Get() *TransactionResourceRelationshipsTransferAccountData { - return v.value -} - -func (v *NullableTransactionResourceRelationshipsTransferAccountData) Set(val *TransactionResourceRelationshipsTransferAccountData) { - v.value = val - v.isSet = true -} - -func (v NullableTransactionResourceRelationshipsTransferAccountData) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactionResourceRelationshipsTransferAccountData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactionResourceRelationshipsTransferAccountData(val *TransactionResourceRelationshipsTransferAccountData) *NullableTransactionResourceRelationshipsTransferAccountData { - return &NullableTransactionResourceRelationshipsTransferAccountData{value: val, isSet: true} -} - -func (v NullableTransactionResourceRelationshipsTransferAccountData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactionResourceRelationshipsTransferAccountData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_transaction_status_enum.go b/expense-manager/openapi/model_transaction_status_enum.go deleted file mode 100644 index c10782b..0000000 --- a/expense-manager/openapi/model_transaction_status_enum.go +++ /dev/null @@ -1,110 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" - "fmt" -) - -// TransactionStatusEnum Specifies which stage of processing a transaction is currently at. Currently returned values are `HELD` and `SETTLED`. When a transaction is held, its account’s `availableBalance` is affected. When a transaction is settled, its account’s `currentBalance` is affected. -type TransactionStatusEnum string - -// List of TransactionStatusEnum -const ( - HELD TransactionStatusEnum = "HELD" - SETTLED TransactionStatusEnum = "SETTLED" -) - -// All allowed values of TransactionStatusEnum enum -var AllowedTransactionStatusEnumEnumValues = []TransactionStatusEnum{ - "HELD", - "SETTLED", -} - -func (v *TransactionStatusEnum) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := TransactionStatusEnum(value) - for _, existing := range AllowedTransactionStatusEnumEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid TransactionStatusEnum", value) -} - -// NewTransactionStatusEnumFromValue returns a pointer to a valid TransactionStatusEnum -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewTransactionStatusEnumFromValue(v string) (*TransactionStatusEnum, error) { - ev := TransactionStatusEnum(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for TransactionStatusEnum: valid values are %v", v, AllowedTransactionStatusEnumEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v TransactionStatusEnum) IsValid() bool { - for _, existing := range AllowedTransactionStatusEnumEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to TransactionStatusEnum value -func (v TransactionStatusEnum) Ptr() *TransactionStatusEnum { - return &v -} - -type NullableTransactionStatusEnum struct { - value *TransactionStatusEnum - isSet bool -} - -func (v NullableTransactionStatusEnum) Get() *TransactionStatusEnum { - return v.value -} - -func (v *NullableTransactionStatusEnum) Set(val *TransactionStatusEnum) { - v.value = val - v.isSet = true -} - -func (v NullableTransactionStatusEnum) IsSet() bool { - return v.isSet -} - -func (v *NullableTransactionStatusEnum) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTransactionStatusEnum(val *TransactionStatusEnum) *NullableTransactionStatusEnum { - return &NullableTransactionStatusEnum{value: val, isSet: true} -} - -func (v NullableTransactionStatusEnum) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTransactionStatusEnum) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_update_transaction_category_request.go b/expense-manager/openapi/model_update_transaction_category_request.go deleted file mode 100644 index 59fdb4d..0000000 --- a/expense-manager/openapi/model_update_transaction_category_request.go +++ /dev/null @@ -1,158 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the UpdateTransactionCategoryRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &UpdateTransactionCategoryRequest{} - -// UpdateTransactionCategoryRequest Request to update the category associated with a transaction. -type UpdateTransactionCategoryRequest struct { - Data NullableUpdateTransactionCategoryRequestData `json:"data"` -} - -type _UpdateTransactionCategoryRequest UpdateTransactionCategoryRequest - -// NewUpdateTransactionCategoryRequest instantiates a new UpdateTransactionCategoryRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewUpdateTransactionCategoryRequest(data NullableUpdateTransactionCategoryRequestData) *UpdateTransactionCategoryRequest { - this := UpdateTransactionCategoryRequest{} - this.Data = data - return &this -} - -// NewUpdateTransactionCategoryRequestWithDefaults instantiates a new UpdateTransactionCategoryRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewUpdateTransactionCategoryRequestWithDefaults() *UpdateTransactionCategoryRequest { - this := UpdateTransactionCategoryRequest{} - return &this -} - -// GetData returns the Data field value -// If the value is explicit nil, the zero value for UpdateTransactionCategoryRequestData will be returned -func (o *UpdateTransactionCategoryRequest) GetData() UpdateTransactionCategoryRequestData { - if o == nil || o.Data.Get() == nil { - var ret UpdateTransactionCategoryRequestData - return ret - } - - return *o.Data.Get() -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *UpdateTransactionCategoryRequest) GetDataOk() (*UpdateTransactionCategoryRequestData, bool) { - if o == nil { - return nil, false - } - return o.Data.Get(), o.Data.IsSet() -} - -// SetData sets field value -func (o *UpdateTransactionCategoryRequest) SetData(v UpdateTransactionCategoryRequestData) { - o.Data.Set(&v) -} - -func (o UpdateTransactionCategoryRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o UpdateTransactionCategoryRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data.Get() - return toSerialize, nil -} - -func (o *UpdateTransactionCategoryRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varUpdateTransactionCategoryRequest := _UpdateTransactionCategoryRequest{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varUpdateTransactionCategoryRequest) - - if err != nil { - return err - } - - *o = UpdateTransactionCategoryRequest(varUpdateTransactionCategoryRequest) - - return err -} - -type NullableUpdateTransactionCategoryRequest struct { - value *UpdateTransactionCategoryRequest - isSet bool -} - -func (v NullableUpdateTransactionCategoryRequest) Get() *UpdateTransactionCategoryRequest { - return v.value -} - -func (v *NullableUpdateTransactionCategoryRequest) Set(val *UpdateTransactionCategoryRequest) { - v.value = val - v.isSet = true -} - -func (v NullableUpdateTransactionCategoryRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableUpdateTransactionCategoryRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableUpdateTransactionCategoryRequest(val *UpdateTransactionCategoryRequest) *NullableUpdateTransactionCategoryRequest { - return &NullableUpdateTransactionCategoryRequest{value: val, isSet: true} -} - -func (v NullableUpdateTransactionCategoryRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableUpdateTransactionCategoryRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_update_transaction_category_request_data.go b/expense-manager/openapi/model_update_transaction_category_request_data.go deleted file mode 100644 index f6a0ed0..0000000 --- a/expense-manager/openapi/model_update_transaction_category_request_data.go +++ /dev/null @@ -1,186 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the UpdateTransactionCategoryRequestData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &UpdateTransactionCategoryRequestData{} - -// UpdateTransactionCategoryRequestData The category to set on the transaction. Set this entire key to `null` de-categorize a transaction. -type UpdateTransactionCategoryRequestData struct { - // The type of this resource: `categories` - Type string `json:"type"` - // The unique identifier of the category, as returned by the `/categories` endpoint. - Id string `json:"id"` -} - -type _UpdateTransactionCategoryRequestData UpdateTransactionCategoryRequestData - -// NewUpdateTransactionCategoryRequestData instantiates a new UpdateTransactionCategoryRequestData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewUpdateTransactionCategoryRequestData(type_ string, id string) *UpdateTransactionCategoryRequestData { - this := UpdateTransactionCategoryRequestData{} - this.Type = type_ - this.Id = id - return &this -} - -// NewUpdateTransactionCategoryRequestDataWithDefaults instantiates a new UpdateTransactionCategoryRequestData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewUpdateTransactionCategoryRequestDataWithDefaults() *UpdateTransactionCategoryRequestData { - this := UpdateTransactionCategoryRequestData{} - return &this -} - -// GetType returns the Type field value -func (o *UpdateTransactionCategoryRequestData) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *UpdateTransactionCategoryRequestData) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *UpdateTransactionCategoryRequestData) SetType(v string) { - o.Type = v -} - -// GetId returns the Id field value -func (o *UpdateTransactionCategoryRequestData) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *UpdateTransactionCategoryRequestData) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *UpdateTransactionCategoryRequestData) SetId(v string) { - o.Id = v -} - -func (o UpdateTransactionCategoryRequestData) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o UpdateTransactionCategoryRequestData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["id"] = o.Id - return toSerialize, nil -} - -func (o *UpdateTransactionCategoryRequestData) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varUpdateTransactionCategoryRequestData := _UpdateTransactionCategoryRequestData{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varUpdateTransactionCategoryRequestData) - - if err != nil { - return err - } - - *o = UpdateTransactionCategoryRequestData(varUpdateTransactionCategoryRequestData) - - return err -} - -type NullableUpdateTransactionCategoryRequestData struct { - value *UpdateTransactionCategoryRequestData - isSet bool -} - -func (v NullableUpdateTransactionCategoryRequestData) Get() *UpdateTransactionCategoryRequestData { - return v.value -} - -func (v *NullableUpdateTransactionCategoryRequestData) Set(val *UpdateTransactionCategoryRequestData) { - v.value = val - v.isSet = true -} - -func (v NullableUpdateTransactionCategoryRequestData) IsSet() bool { - return v.isSet -} - -func (v *NullableUpdateTransactionCategoryRequestData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableUpdateTransactionCategoryRequestData(val *UpdateTransactionCategoryRequestData) *NullableUpdateTransactionCategoryRequestData { - return &NullableUpdateTransactionCategoryRequestData{value: val, isSet: true} -} - -func (v NullableUpdateTransactionCategoryRequestData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableUpdateTransactionCategoryRequestData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_update_transaction_tags_request.go b/expense-manager/openapi/model_update_transaction_tags_request.go deleted file mode 100644 index 10ecc41..0000000 --- a/expense-manager/openapi/model_update_transaction_tags_request.go +++ /dev/null @@ -1,157 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the UpdateTransactionTagsRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &UpdateTransactionTagsRequest{} - -// UpdateTransactionTagsRequest Request to add or remove tags associated with a transaction. -type UpdateTransactionTagsRequest struct { - // The tags to add to or remove from the transaction. - Data []TagInputResourceIdentifier `json:"data"` -} - -type _UpdateTransactionTagsRequest UpdateTransactionTagsRequest - -// NewUpdateTransactionTagsRequest instantiates a new UpdateTransactionTagsRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewUpdateTransactionTagsRequest(data []TagInputResourceIdentifier) *UpdateTransactionTagsRequest { - this := UpdateTransactionTagsRequest{} - this.Data = data - return &this -} - -// NewUpdateTransactionTagsRequestWithDefaults instantiates a new UpdateTransactionTagsRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewUpdateTransactionTagsRequestWithDefaults() *UpdateTransactionTagsRequest { - this := UpdateTransactionTagsRequest{} - return &this -} - -// GetData returns the Data field value -func (o *UpdateTransactionTagsRequest) GetData() []TagInputResourceIdentifier { - if o == nil { - var ret []TagInputResourceIdentifier - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *UpdateTransactionTagsRequest) GetDataOk() ([]TagInputResourceIdentifier, bool) { - if o == nil { - return nil, false - } - return o.Data, true -} - -// SetData sets field value -func (o *UpdateTransactionTagsRequest) SetData(v []TagInputResourceIdentifier) { - o.Data = v -} - -func (o UpdateTransactionTagsRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o UpdateTransactionTagsRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - return toSerialize, nil -} - -func (o *UpdateTransactionTagsRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varUpdateTransactionTagsRequest := _UpdateTransactionTagsRequest{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varUpdateTransactionTagsRequest) - - if err != nil { - return err - } - - *o = UpdateTransactionTagsRequest(varUpdateTransactionTagsRequest) - - return err -} - -type NullableUpdateTransactionTagsRequest struct { - value *UpdateTransactionTagsRequest - isSet bool -} - -func (v NullableUpdateTransactionTagsRequest) Get() *UpdateTransactionTagsRequest { - return v.value -} - -func (v *NullableUpdateTransactionTagsRequest) Set(val *UpdateTransactionTagsRequest) { - v.value = val - v.isSet = true -} - -func (v NullableUpdateTransactionTagsRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableUpdateTransactionTagsRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableUpdateTransactionTagsRequest(val *UpdateTransactionTagsRequest) *NullableUpdateTransactionTagsRequest { - return &NullableUpdateTransactionTagsRequest{value: val, isSet: true} -} - -func (v NullableUpdateTransactionTagsRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableUpdateTransactionTagsRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_delivery_log_resource.go b/expense-manager/openapi/model_webhook_delivery_log_resource.go deleted file mode 100644 index d34db2d..0000000 --- a/expense-manager/openapi/model_webhook_delivery_log_resource.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the WebhookDeliveryLogResource type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookDeliveryLogResource{} - -// WebhookDeliveryLogResource Provides historical webhook event delivery information for analysis and debugging purposes. -type WebhookDeliveryLogResource struct { - // The type of this resource: `webhook-delivery-logs` - Type string `json:"type"` - // The unique identifier for this log entry. - Id string `json:"id"` - Attributes WebhookDeliveryLogResourceAttributes `json:"attributes"` - Relationships WebhookDeliveryLogResourceRelationships `json:"relationships"` -} - -type _WebhookDeliveryLogResource WebhookDeliveryLogResource - -// NewWebhookDeliveryLogResource instantiates a new WebhookDeliveryLogResource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookDeliveryLogResource(type_ string, id string, attributes WebhookDeliveryLogResourceAttributes, relationships WebhookDeliveryLogResourceRelationships) *WebhookDeliveryLogResource { - this := WebhookDeliveryLogResource{} - this.Type = type_ - this.Id = id - this.Attributes = attributes - this.Relationships = relationships - return &this -} - -// NewWebhookDeliveryLogResourceWithDefaults instantiates a new WebhookDeliveryLogResource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookDeliveryLogResourceWithDefaults() *WebhookDeliveryLogResource { - this := WebhookDeliveryLogResource{} - return &this -} - -// GetType returns the Type field value -func (o *WebhookDeliveryLogResource) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *WebhookDeliveryLogResource) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *WebhookDeliveryLogResource) SetType(v string) { - o.Type = v -} - -// GetId returns the Id field value -func (o *WebhookDeliveryLogResource) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *WebhookDeliveryLogResource) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *WebhookDeliveryLogResource) SetId(v string) { - o.Id = v -} - -// GetAttributes returns the Attributes field value -func (o *WebhookDeliveryLogResource) GetAttributes() WebhookDeliveryLogResourceAttributes { - if o == nil { - var ret WebhookDeliveryLogResourceAttributes - return ret - } - - return o.Attributes -} - -// GetAttributesOk returns a tuple with the Attributes field value -// and a boolean to check if the value has been set. -func (o *WebhookDeliveryLogResource) GetAttributesOk() (*WebhookDeliveryLogResourceAttributes, bool) { - if o == nil { - return nil, false - } - return &o.Attributes, true -} - -// SetAttributes sets field value -func (o *WebhookDeliveryLogResource) SetAttributes(v WebhookDeliveryLogResourceAttributes) { - o.Attributes = v -} - -// GetRelationships returns the Relationships field value -func (o *WebhookDeliveryLogResource) GetRelationships() WebhookDeliveryLogResourceRelationships { - if o == nil { - var ret WebhookDeliveryLogResourceRelationships - return ret - } - - return o.Relationships -} - -// GetRelationshipsOk returns a tuple with the Relationships field value -// and a boolean to check if the value has been set. -func (o *WebhookDeliveryLogResource) GetRelationshipsOk() (*WebhookDeliveryLogResourceRelationships, bool) { - if o == nil { - return nil, false - } - return &o.Relationships, true -} - -// SetRelationships sets field value -func (o *WebhookDeliveryLogResource) SetRelationships(v WebhookDeliveryLogResourceRelationships) { - o.Relationships = v -} - -func (o WebhookDeliveryLogResource) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookDeliveryLogResource) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["id"] = o.Id - toSerialize["attributes"] = o.Attributes - toSerialize["relationships"] = o.Relationships - return toSerialize, nil -} - -func (o *WebhookDeliveryLogResource) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "id", - "attributes", - "relationships", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookDeliveryLogResource := _WebhookDeliveryLogResource{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookDeliveryLogResource) - - if err != nil { - return err - } - - *o = WebhookDeliveryLogResource(varWebhookDeliveryLogResource) - - return err -} - -type NullableWebhookDeliveryLogResource struct { - value *WebhookDeliveryLogResource - isSet bool -} - -func (v NullableWebhookDeliveryLogResource) Get() *WebhookDeliveryLogResource { - return v.value -} - -func (v *NullableWebhookDeliveryLogResource) Set(val *WebhookDeliveryLogResource) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookDeliveryLogResource) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookDeliveryLogResource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookDeliveryLogResource(val *WebhookDeliveryLogResource) *NullableWebhookDeliveryLogResource { - return &NullableWebhookDeliveryLogResource{value: val, isSet: true} -} - -func (v NullableWebhookDeliveryLogResource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookDeliveryLogResource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_delivery_log_resource_attributes.go b/expense-manager/openapi/model_webhook_delivery_log_resource_attributes.go deleted file mode 100644 index 7190a81..0000000 --- a/expense-manager/openapi/model_webhook_delivery_log_resource_attributes.go +++ /dev/null @@ -1,245 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" - "time" -) - -// checks if the WebhookDeliveryLogResourceAttributes type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookDeliveryLogResourceAttributes{} - -// WebhookDeliveryLogResourceAttributes struct for WebhookDeliveryLogResourceAttributes -type WebhookDeliveryLogResourceAttributes struct { - Request WebhookDeliveryLogResourceAttributesRequest `json:"request"` - Response NullableWebhookDeliveryLogResourceAttributesResponse `json:"response"` - // The success or failure status of this delivery attempt. - DeliveryStatus WebhookDeliveryStatusEnum `json:"deliveryStatus"` - // The date-time at which this log entry was created. - CreatedAt time.Time `json:"createdAt"` -} - -type _WebhookDeliveryLogResourceAttributes WebhookDeliveryLogResourceAttributes - -// NewWebhookDeliveryLogResourceAttributes instantiates a new WebhookDeliveryLogResourceAttributes object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookDeliveryLogResourceAttributes(request WebhookDeliveryLogResourceAttributesRequest, response NullableWebhookDeliveryLogResourceAttributesResponse, deliveryStatus WebhookDeliveryStatusEnum, createdAt time.Time) *WebhookDeliveryLogResourceAttributes { - this := WebhookDeliveryLogResourceAttributes{} - this.Request = request - this.Response = response - this.DeliveryStatus = deliveryStatus - this.CreatedAt = createdAt - return &this -} - -// NewWebhookDeliveryLogResourceAttributesWithDefaults instantiates a new WebhookDeliveryLogResourceAttributes object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookDeliveryLogResourceAttributesWithDefaults() *WebhookDeliveryLogResourceAttributes { - this := WebhookDeliveryLogResourceAttributes{} - return &this -} - -// GetRequest returns the Request field value -func (o *WebhookDeliveryLogResourceAttributes) GetRequest() WebhookDeliveryLogResourceAttributesRequest { - if o == nil { - var ret WebhookDeliveryLogResourceAttributesRequest - return ret - } - - return o.Request -} - -// GetRequestOk returns a tuple with the Request field value -// and a boolean to check if the value has been set. -func (o *WebhookDeliveryLogResourceAttributes) GetRequestOk() (*WebhookDeliveryLogResourceAttributesRequest, bool) { - if o == nil { - return nil, false - } - return &o.Request, true -} - -// SetRequest sets field value -func (o *WebhookDeliveryLogResourceAttributes) SetRequest(v WebhookDeliveryLogResourceAttributesRequest) { - o.Request = v -} - -// GetResponse returns the Response field value -// If the value is explicit nil, the zero value for WebhookDeliveryLogResourceAttributesResponse will be returned -func (o *WebhookDeliveryLogResourceAttributes) GetResponse() WebhookDeliveryLogResourceAttributesResponse { - if o == nil || o.Response.Get() == nil { - var ret WebhookDeliveryLogResourceAttributesResponse - return ret - } - - return *o.Response.Get() -} - -// GetResponseOk returns a tuple with the Response field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WebhookDeliveryLogResourceAttributes) GetResponseOk() (*WebhookDeliveryLogResourceAttributesResponse, bool) { - if o == nil { - return nil, false - } - return o.Response.Get(), o.Response.IsSet() -} - -// SetResponse sets field value -func (o *WebhookDeliveryLogResourceAttributes) SetResponse(v WebhookDeliveryLogResourceAttributesResponse) { - o.Response.Set(&v) -} - -// GetDeliveryStatus returns the DeliveryStatus field value -func (o *WebhookDeliveryLogResourceAttributes) GetDeliveryStatus() WebhookDeliveryStatusEnum { - if o == nil { - var ret WebhookDeliveryStatusEnum - return ret - } - - return o.DeliveryStatus -} - -// GetDeliveryStatusOk returns a tuple with the DeliveryStatus field value -// and a boolean to check if the value has been set. -func (o *WebhookDeliveryLogResourceAttributes) GetDeliveryStatusOk() (*WebhookDeliveryStatusEnum, bool) { - if o == nil { - return nil, false - } - return &o.DeliveryStatus, true -} - -// SetDeliveryStatus sets field value -func (o *WebhookDeliveryLogResourceAttributes) SetDeliveryStatus(v WebhookDeliveryStatusEnum) { - o.DeliveryStatus = v -} - -// GetCreatedAt returns the CreatedAt field value -func (o *WebhookDeliveryLogResourceAttributes) GetCreatedAt() time.Time { - if o == nil { - var ret time.Time - return ret - } - - return o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value -// and a boolean to check if the value has been set. -func (o *WebhookDeliveryLogResourceAttributes) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return &o.CreatedAt, true -} - -// SetCreatedAt sets field value -func (o *WebhookDeliveryLogResourceAttributes) SetCreatedAt(v time.Time) { - o.CreatedAt = v -} - -func (o WebhookDeliveryLogResourceAttributes) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookDeliveryLogResourceAttributes) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["request"] = o.Request - toSerialize["response"] = o.Response.Get() - toSerialize["deliveryStatus"] = o.DeliveryStatus - toSerialize["createdAt"] = o.CreatedAt - return toSerialize, nil -} - -func (o *WebhookDeliveryLogResourceAttributes) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "request", - "response", - "deliveryStatus", - "createdAt", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookDeliveryLogResourceAttributes := _WebhookDeliveryLogResourceAttributes{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookDeliveryLogResourceAttributes) - - if err != nil { - return err - } - - *o = WebhookDeliveryLogResourceAttributes(varWebhookDeliveryLogResourceAttributes) - - return err -} - -type NullableWebhookDeliveryLogResourceAttributes struct { - value *WebhookDeliveryLogResourceAttributes - isSet bool -} - -func (v NullableWebhookDeliveryLogResourceAttributes) Get() *WebhookDeliveryLogResourceAttributes { - return v.value -} - -func (v *NullableWebhookDeliveryLogResourceAttributes) Set(val *WebhookDeliveryLogResourceAttributes) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookDeliveryLogResourceAttributes) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookDeliveryLogResourceAttributes) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookDeliveryLogResourceAttributes(val *WebhookDeliveryLogResourceAttributes) *NullableWebhookDeliveryLogResourceAttributes { - return &NullableWebhookDeliveryLogResourceAttributes{value: val, isSet: true} -} - -func (v NullableWebhookDeliveryLogResourceAttributes) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookDeliveryLogResourceAttributes) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_delivery_log_resource_attributes_request.go b/expense-manager/openapi/model_webhook_delivery_log_resource_attributes_request.go deleted file mode 100644 index 6d60827..0000000 --- a/expense-manager/openapi/model_webhook_delivery_log_resource_attributes_request.go +++ /dev/null @@ -1,157 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the WebhookDeliveryLogResourceAttributesRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookDeliveryLogResourceAttributesRequest{} - -// WebhookDeliveryLogResourceAttributesRequest Information about the request that was sent to the webhook URL. -type WebhookDeliveryLogResourceAttributesRequest struct { - // The payload that was sent in the request body. - Body string `json:"body"` -} - -type _WebhookDeliveryLogResourceAttributesRequest WebhookDeliveryLogResourceAttributesRequest - -// NewWebhookDeliveryLogResourceAttributesRequest instantiates a new WebhookDeliveryLogResourceAttributesRequest object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookDeliveryLogResourceAttributesRequest(body string) *WebhookDeliveryLogResourceAttributesRequest { - this := WebhookDeliveryLogResourceAttributesRequest{} - this.Body = body - return &this -} - -// NewWebhookDeliveryLogResourceAttributesRequestWithDefaults instantiates a new WebhookDeliveryLogResourceAttributesRequest object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookDeliveryLogResourceAttributesRequestWithDefaults() *WebhookDeliveryLogResourceAttributesRequest { - this := WebhookDeliveryLogResourceAttributesRequest{} - return &this -} - -// GetBody returns the Body field value -func (o *WebhookDeliveryLogResourceAttributesRequest) GetBody() string { - if o == nil { - var ret string - return ret - } - - return o.Body -} - -// GetBodyOk returns a tuple with the Body field value -// and a boolean to check if the value has been set. -func (o *WebhookDeliveryLogResourceAttributesRequest) GetBodyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Body, true -} - -// SetBody sets field value -func (o *WebhookDeliveryLogResourceAttributesRequest) SetBody(v string) { - o.Body = v -} - -func (o WebhookDeliveryLogResourceAttributesRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookDeliveryLogResourceAttributesRequest) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["body"] = o.Body - return toSerialize, nil -} - -func (o *WebhookDeliveryLogResourceAttributesRequest) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "body", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookDeliveryLogResourceAttributesRequest := _WebhookDeliveryLogResourceAttributesRequest{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookDeliveryLogResourceAttributesRequest) - - if err != nil { - return err - } - - *o = WebhookDeliveryLogResourceAttributesRequest(varWebhookDeliveryLogResourceAttributesRequest) - - return err -} - -type NullableWebhookDeliveryLogResourceAttributesRequest struct { - value *WebhookDeliveryLogResourceAttributesRequest - isSet bool -} - -func (v NullableWebhookDeliveryLogResourceAttributesRequest) Get() *WebhookDeliveryLogResourceAttributesRequest { - return v.value -} - -func (v *NullableWebhookDeliveryLogResourceAttributesRequest) Set(val *WebhookDeliveryLogResourceAttributesRequest) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookDeliveryLogResourceAttributesRequest) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookDeliveryLogResourceAttributesRequest) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookDeliveryLogResourceAttributesRequest(val *WebhookDeliveryLogResourceAttributesRequest) *NullableWebhookDeliveryLogResourceAttributesRequest { - return &NullableWebhookDeliveryLogResourceAttributesRequest{value: val, isSet: true} -} - -func (v NullableWebhookDeliveryLogResourceAttributesRequest) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookDeliveryLogResourceAttributesRequest) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_delivery_log_resource_attributes_response.go b/expense-manager/openapi/model_webhook_delivery_log_resource_attributes_response.go deleted file mode 100644 index a499214..0000000 --- a/expense-manager/openapi/model_webhook_delivery_log_resource_attributes_response.go +++ /dev/null @@ -1,186 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the WebhookDeliveryLogResourceAttributesResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookDeliveryLogResourceAttributesResponse{} - -// WebhookDeliveryLogResourceAttributesResponse Information about the response that was received from the webhook URL. -type WebhookDeliveryLogResourceAttributesResponse struct { - // The HTTP status code received in the response. - StatusCode int32 `json:"statusCode"` - // The payload that was received in the response body. - Body string `json:"body"` -} - -type _WebhookDeliveryLogResourceAttributesResponse WebhookDeliveryLogResourceAttributesResponse - -// NewWebhookDeliveryLogResourceAttributesResponse instantiates a new WebhookDeliveryLogResourceAttributesResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookDeliveryLogResourceAttributesResponse(statusCode int32, body string) *WebhookDeliveryLogResourceAttributesResponse { - this := WebhookDeliveryLogResourceAttributesResponse{} - this.StatusCode = statusCode - this.Body = body - return &this -} - -// NewWebhookDeliveryLogResourceAttributesResponseWithDefaults instantiates a new WebhookDeliveryLogResourceAttributesResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookDeliveryLogResourceAttributesResponseWithDefaults() *WebhookDeliveryLogResourceAttributesResponse { - this := WebhookDeliveryLogResourceAttributesResponse{} - return &this -} - -// GetStatusCode returns the StatusCode field value -func (o *WebhookDeliveryLogResourceAttributesResponse) GetStatusCode() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.StatusCode -} - -// GetStatusCodeOk returns a tuple with the StatusCode field value -// and a boolean to check if the value has been set. -func (o *WebhookDeliveryLogResourceAttributesResponse) GetStatusCodeOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.StatusCode, true -} - -// SetStatusCode sets field value -func (o *WebhookDeliveryLogResourceAttributesResponse) SetStatusCode(v int32) { - o.StatusCode = v -} - -// GetBody returns the Body field value -func (o *WebhookDeliveryLogResourceAttributesResponse) GetBody() string { - if o == nil { - var ret string - return ret - } - - return o.Body -} - -// GetBodyOk returns a tuple with the Body field value -// and a boolean to check if the value has been set. -func (o *WebhookDeliveryLogResourceAttributesResponse) GetBodyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Body, true -} - -// SetBody sets field value -func (o *WebhookDeliveryLogResourceAttributesResponse) SetBody(v string) { - o.Body = v -} - -func (o WebhookDeliveryLogResourceAttributesResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookDeliveryLogResourceAttributesResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["statusCode"] = o.StatusCode - toSerialize["body"] = o.Body - return toSerialize, nil -} - -func (o *WebhookDeliveryLogResourceAttributesResponse) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "statusCode", - "body", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookDeliveryLogResourceAttributesResponse := _WebhookDeliveryLogResourceAttributesResponse{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookDeliveryLogResourceAttributesResponse) - - if err != nil { - return err - } - - *o = WebhookDeliveryLogResourceAttributesResponse(varWebhookDeliveryLogResourceAttributesResponse) - - return err -} - -type NullableWebhookDeliveryLogResourceAttributesResponse struct { - value *WebhookDeliveryLogResourceAttributesResponse - isSet bool -} - -func (v NullableWebhookDeliveryLogResourceAttributesResponse) Get() *WebhookDeliveryLogResourceAttributesResponse { - return v.value -} - -func (v *NullableWebhookDeliveryLogResourceAttributesResponse) Set(val *WebhookDeliveryLogResourceAttributesResponse) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookDeliveryLogResourceAttributesResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookDeliveryLogResourceAttributesResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookDeliveryLogResourceAttributesResponse(val *WebhookDeliveryLogResourceAttributesResponse) *NullableWebhookDeliveryLogResourceAttributesResponse { - return &NullableWebhookDeliveryLogResourceAttributesResponse{value: val, isSet: true} -} - -func (v NullableWebhookDeliveryLogResourceAttributesResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookDeliveryLogResourceAttributesResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_delivery_log_resource_relationships.go b/expense-manager/openapi/model_webhook_delivery_log_resource_relationships.go deleted file mode 100644 index d13dd1d..0000000 --- a/expense-manager/openapi/model_webhook_delivery_log_resource_relationships.go +++ /dev/null @@ -1,156 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the WebhookDeliveryLogResourceRelationships type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookDeliveryLogResourceRelationships{} - -// WebhookDeliveryLogResourceRelationships struct for WebhookDeliveryLogResourceRelationships -type WebhookDeliveryLogResourceRelationships struct { - WebhookEvent WebhookDeliveryLogResourceRelationshipsWebhookEvent `json:"webhookEvent"` -} - -type _WebhookDeliveryLogResourceRelationships WebhookDeliveryLogResourceRelationships - -// NewWebhookDeliveryLogResourceRelationships instantiates a new WebhookDeliveryLogResourceRelationships object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookDeliveryLogResourceRelationships(webhookEvent WebhookDeliveryLogResourceRelationshipsWebhookEvent) *WebhookDeliveryLogResourceRelationships { - this := WebhookDeliveryLogResourceRelationships{} - this.WebhookEvent = webhookEvent - return &this -} - -// NewWebhookDeliveryLogResourceRelationshipsWithDefaults instantiates a new WebhookDeliveryLogResourceRelationships object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookDeliveryLogResourceRelationshipsWithDefaults() *WebhookDeliveryLogResourceRelationships { - this := WebhookDeliveryLogResourceRelationships{} - return &this -} - -// GetWebhookEvent returns the WebhookEvent field value -func (o *WebhookDeliveryLogResourceRelationships) GetWebhookEvent() WebhookDeliveryLogResourceRelationshipsWebhookEvent { - if o == nil { - var ret WebhookDeliveryLogResourceRelationshipsWebhookEvent - return ret - } - - return o.WebhookEvent -} - -// GetWebhookEventOk returns a tuple with the WebhookEvent field value -// and a boolean to check if the value has been set. -func (o *WebhookDeliveryLogResourceRelationships) GetWebhookEventOk() (*WebhookDeliveryLogResourceRelationshipsWebhookEvent, bool) { - if o == nil { - return nil, false - } - return &o.WebhookEvent, true -} - -// SetWebhookEvent sets field value -func (o *WebhookDeliveryLogResourceRelationships) SetWebhookEvent(v WebhookDeliveryLogResourceRelationshipsWebhookEvent) { - o.WebhookEvent = v -} - -func (o WebhookDeliveryLogResourceRelationships) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookDeliveryLogResourceRelationships) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["webhookEvent"] = o.WebhookEvent - return toSerialize, nil -} - -func (o *WebhookDeliveryLogResourceRelationships) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "webhookEvent", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookDeliveryLogResourceRelationships := _WebhookDeliveryLogResourceRelationships{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookDeliveryLogResourceRelationships) - - if err != nil { - return err - } - - *o = WebhookDeliveryLogResourceRelationships(varWebhookDeliveryLogResourceRelationships) - - return err -} - -type NullableWebhookDeliveryLogResourceRelationships struct { - value *WebhookDeliveryLogResourceRelationships - isSet bool -} - -func (v NullableWebhookDeliveryLogResourceRelationships) Get() *WebhookDeliveryLogResourceRelationships { - return v.value -} - -func (v *NullableWebhookDeliveryLogResourceRelationships) Set(val *WebhookDeliveryLogResourceRelationships) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookDeliveryLogResourceRelationships) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookDeliveryLogResourceRelationships) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookDeliveryLogResourceRelationships(val *WebhookDeliveryLogResourceRelationships) *NullableWebhookDeliveryLogResourceRelationships { - return &NullableWebhookDeliveryLogResourceRelationships{value: val, isSet: true} -} - -func (v NullableWebhookDeliveryLogResourceRelationships) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookDeliveryLogResourceRelationships) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_delivery_log_resource_relationships_webhook_event.go b/expense-manager/openapi/model_webhook_delivery_log_resource_relationships_webhook_event.go deleted file mode 100644 index 74c145e..0000000 --- a/expense-manager/openapi/model_webhook_delivery_log_resource_relationships_webhook_event.go +++ /dev/null @@ -1,156 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the WebhookDeliveryLogResourceRelationshipsWebhookEvent type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookDeliveryLogResourceRelationshipsWebhookEvent{} - -// WebhookDeliveryLogResourceRelationshipsWebhookEvent struct for WebhookDeliveryLogResourceRelationshipsWebhookEvent -type WebhookDeliveryLogResourceRelationshipsWebhookEvent struct { - Data WebhookDeliveryLogResourceRelationshipsWebhookEventData `json:"data"` -} - -type _WebhookDeliveryLogResourceRelationshipsWebhookEvent WebhookDeliveryLogResourceRelationshipsWebhookEvent - -// NewWebhookDeliveryLogResourceRelationshipsWebhookEvent instantiates a new WebhookDeliveryLogResourceRelationshipsWebhookEvent object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookDeliveryLogResourceRelationshipsWebhookEvent(data WebhookDeliveryLogResourceRelationshipsWebhookEventData) *WebhookDeliveryLogResourceRelationshipsWebhookEvent { - this := WebhookDeliveryLogResourceRelationshipsWebhookEvent{} - this.Data = data - return &this -} - -// NewWebhookDeliveryLogResourceRelationshipsWebhookEventWithDefaults instantiates a new WebhookDeliveryLogResourceRelationshipsWebhookEvent object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookDeliveryLogResourceRelationshipsWebhookEventWithDefaults() *WebhookDeliveryLogResourceRelationshipsWebhookEvent { - this := WebhookDeliveryLogResourceRelationshipsWebhookEvent{} - return &this -} - -// GetData returns the Data field value -func (o *WebhookDeliveryLogResourceRelationshipsWebhookEvent) GetData() WebhookDeliveryLogResourceRelationshipsWebhookEventData { - if o == nil { - var ret WebhookDeliveryLogResourceRelationshipsWebhookEventData - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *WebhookDeliveryLogResourceRelationshipsWebhookEvent) GetDataOk() (*WebhookDeliveryLogResourceRelationshipsWebhookEventData, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *WebhookDeliveryLogResourceRelationshipsWebhookEvent) SetData(v WebhookDeliveryLogResourceRelationshipsWebhookEventData) { - o.Data = v -} - -func (o WebhookDeliveryLogResourceRelationshipsWebhookEvent) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookDeliveryLogResourceRelationshipsWebhookEvent) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - return toSerialize, nil -} - -func (o *WebhookDeliveryLogResourceRelationshipsWebhookEvent) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookDeliveryLogResourceRelationshipsWebhookEvent := _WebhookDeliveryLogResourceRelationshipsWebhookEvent{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookDeliveryLogResourceRelationshipsWebhookEvent) - - if err != nil { - return err - } - - *o = WebhookDeliveryLogResourceRelationshipsWebhookEvent(varWebhookDeliveryLogResourceRelationshipsWebhookEvent) - - return err -} - -type NullableWebhookDeliveryLogResourceRelationshipsWebhookEvent struct { - value *WebhookDeliveryLogResourceRelationshipsWebhookEvent - isSet bool -} - -func (v NullableWebhookDeliveryLogResourceRelationshipsWebhookEvent) Get() *WebhookDeliveryLogResourceRelationshipsWebhookEvent { - return v.value -} - -func (v *NullableWebhookDeliveryLogResourceRelationshipsWebhookEvent) Set(val *WebhookDeliveryLogResourceRelationshipsWebhookEvent) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookDeliveryLogResourceRelationshipsWebhookEvent) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookDeliveryLogResourceRelationshipsWebhookEvent) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookDeliveryLogResourceRelationshipsWebhookEvent(val *WebhookDeliveryLogResourceRelationshipsWebhookEvent) *NullableWebhookDeliveryLogResourceRelationshipsWebhookEvent { - return &NullableWebhookDeliveryLogResourceRelationshipsWebhookEvent{value: val, isSet: true} -} - -func (v NullableWebhookDeliveryLogResourceRelationshipsWebhookEvent) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookDeliveryLogResourceRelationshipsWebhookEvent) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_delivery_log_resource_relationships_webhook_event_data.go b/expense-manager/openapi/model_webhook_delivery_log_resource_relationships_webhook_event_data.go deleted file mode 100644 index 380978b..0000000 --- a/expense-manager/openapi/model_webhook_delivery_log_resource_relationships_webhook_event_data.go +++ /dev/null @@ -1,186 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the WebhookDeliveryLogResourceRelationshipsWebhookEventData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookDeliveryLogResourceRelationshipsWebhookEventData{} - -// WebhookDeliveryLogResourceRelationshipsWebhookEventData struct for WebhookDeliveryLogResourceRelationshipsWebhookEventData -type WebhookDeliveryLogResourceRelationshipsWebhookEventData struct { - // The type of this resource: `webhook-events` - Type string `json:"type"` - // The unique identifier of the resource within its type. - Id string `json:"id"` -} - -type _WebhookDeliveryLogResourceRelationshipsWebhookEventData WebhookDeliveryLogResourceRelationshipsWebhookEventData - -// NewWebhookDeliveryLogResourceRelationshipsWebhookEventData instantiates a new WebhookDeliveryLogResourceRelationshipsWebhookEventData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookDeliveryLogResourceRelationshipsWebhookEventData(type_ string, id string) *WebhookDeliveryLogResourceRelationshipsWebhookEventData { - this := WebhookDeliveryLogResourceRelationshipsWebhookEventData{} - this.Type = type_ - this.Id = id - return &this -} - -// NewWebhookDeliveryLogResourceRelationshipsWebhookEventDataWithDefaults instantiates a new WebhookDeliveryLogResourceRelationshipsWebhookEventData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookDeliveryLogResourceRelationshipsWebhookEventDataWithDefaults() *WebhookDeliveryLogResourceRelationshipsWebhookEventData { - this := WebhookDeliveryLogResourceRelationshipsWebhookEventData{} - return &this -} - -// GetType returns the Type field value -func (o *WebhookDeliveryLogResourceRelationshipsWebhookEventData) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *WebhookDeliveryLogResourceRelationshipsWebhookEventData) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *WebhookDeliveryLogResourceRelationshipsWebhookEventData) SetType(v string) { - o.Type = v -} - -// GetId returns the Id field value -func (o *WebhookDeliveryLogResourceRelationshipsWebhookEventData) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *WebhookDeliveryLogResourceRelationshipsWebhookEventData) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *WebhookDeliveryLogResourceRelationshipsWebhookEventData) SetId(v string) { - o.Id = v -} - -func (o WebhookDeliveryLogResourceRelationshipsWebhookEventData) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookDeliveryLogResourceRelationshipsWebhookEventData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["id"] = o.Id - return toSerialize, nil -} - -func (o *WebhookDeliveryLogResourceRelationshipsWebhookEventData) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookDeliveryLogResourceRelationshipsWebhookEventData := _WebhookDeliveryLogResourceRelationshipsWebhookEventData{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookDeliveryLogResourceRelationshipsWebhookEventData) - - if err != nil { - return err - } - - *o = WebhookDeliveryLogResourceRelationshipsWebhookEventData(varWebhookDeliveryLogResourceRelationshipsWebhookEventData) - - return err -} - -type NullableWebhookDeliveryLogResourceRelationshipsWebhookEventData struct { - value *WebhookDeliveryLogResourceRelationshipsWebhookEventData - isSet bool -} - -func (v NullableWebhookDeliveryLogResourceRelationshipsWebhookEventData) Get() *WebhookDeliveryLogResourceRelationshipsWebhookEventData { - return v.value -} - -func (v *NullableWebhookDeliveryLogResourceRelationshipsWebhookEventData) Set(val *WebhookDeliveryLogResourceRelationshipsWebhookEventData) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookDeliveryLogResourceRelationshipsWebhookEventData) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookDeliveryLogResourceRelationshipsWebhookEventData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookDeliveryLogResourceRelationshipsWebhookEventData(val *WebhookDeliveryLogResourceRelationshipsWebhookEventData) *NullableWebhookDeliveryLogResourceRelationshipsWebhookEventData { - return &NullableWebhookDeliveryLogResourceRelationshipsWebhookEventData{value: val, isSet: true} -} - -func (v NullableWebhookDeliveryLogResourceRelationshipsWebhookEventData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookDeliveryLogResourceRelationshipsWebhookEventData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_delivery_status_enum.go b/expense-manager/openapi/model_webhook_delivery_status_enum.go deleted file mode 100644 index 3f8ba1c..0000000 --- a/expense-manager/openapi/model_webhook_delivery_status_enum.go +++ /dev/null @@ -1,112 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" - "fmt" -) - -// WebhookDeliveryStatusEnum Specifies the nature of the success or failure of a webhook delivery attempt to the subscribed webhook URL. The currently returned values are described below: - **`DELIVERED`**: The event was delivered to the webhook URL successfully and a `200` response was received. - **`UNDELIVERABLE`**: The webhook URL was not reachable, or timed out. - **`BAD_RESPONSE_CODE`**: The event was delivered to the webhook URL but a non-`200` response was received. -type WebhookDeliveryStatusEnum string - -// List of WebhookDeliveryStatusEnum -const ( - DELIVERED WebhookDeliveryStatusEnum = "DELIVERED" - UNDELIVERABLE WebhookDeliveryStatusEnum = "UNDELIVERABLE" - BAD_RESPONSE_CODE WebhookDeliveryStatusEnum = "BAD_RESPONSE_CODE" -) - -// All allowed values of WebhookDeliveryStatusEnum enum -var AllowedWebhookDeliveryStatusEnumEnumValues = []WebhookDeliveryStatusEnum{ - "DELIVERED", - "UNDELIVERABLE", - "BAD_RESPONSE_CODE", -} - -func (v *WebhookDeliveryStatusEnum) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := WebhookDeliveryStatusEnum(value) - for _, existing := range AllowedWebhookDeliveryStatusEnumEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid WebhookDeliveryStatusEnum", value) -} - -// NewWebhookDeliveryStatusEnumFromValue returns a pointer to a valid WebhookDeliveryStatusEnum -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewWebhookDeliveryStatusEnumFromValue(v string) (*WebhookDeliveryStatusEnum, error) { - ev := WebhookDeliveryStatusEnum(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for WebhookDeliveryStatusEnum: valid values are %v", v, AllowedWebhookDeliveryStatusEnumEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v WebhookDeliveryStatusEnum) IsValid() bool { - for _, existing := range AllowedWebhookDeliveryStatusEnumEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to WebhookDeliveryStatusEnum value -func (v WebhookDeliveryStatusEnum) Ptr() *WebhookDeliveryStatusEnum { - return &v -} - -type NullableWebhookDeliveryStatusEnum struct { - value *WebhookDeliveryStatusEnum - isSet bool -} - -func (v NullableWebhookDeliveryStatusEnum) Get() *WebhookDeliveryStatusEnum { - return v.value -} - -func (v *NullableWebhookDeliveryStatusEnum) Set(val *WebhookDeliveryStatusEnum) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookDeliveryStatusEnum) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookDeliveryStatusEnum) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookDeliveryStatusEnum(val *WebhookDeliveryStatusEnum) *NullableWebhookDeliveryStatusEnum { - return &NullableWebhookDeliveryStatusEnum{value: val, isSet: true} -} - -func (v NullableWebhookDeliveryStatusEnum) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookDeliveryStatusEnum) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_event_callback.go b/expense-manager/openapi/model_webhook_event_callback.go deleted file mode 100644 index 40cc091..0000000 --- a/expense-manager/openapi/model_webhook_event_callback.go +++ /dev/null @@ -1,157 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the WebhookEventCallback type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookEventCallback{} - -// WebhookEventCallback Asynchronous callback request used for webhook event delivery. -type WebhookEventCallback struct { - // The webhook event data sent to the subscribed webhook. - Data WebhookEventResource `json:"data"` -} - -type _WebhookEventCallback WebhookEventCallback - -// NewWebhookEventCallback instantiates a new WebhookEventCallback object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookEventCallback(data WebhookEventResource) *WebhookEventCallback { - this := WebhookEventCallback{} - this.Data = data - return &this -} - -// NewWebhookEventCallbackWithDefaults instantiates a new WebhookEventCallback object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookEventCallbackWithDefaults() *WebhookEventCallback { - this := WebhookEventCallback{} - return &this -} - -// GetData returns the Data field value -func (o *WebhookEventCallback) GetData() WebhookEventResource { - if o == nil { - var ret WebhookEventResource - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *WebhookEventCallback) GetDataOk() (*WebhookEventResource, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *WebhookEventCallback) SetData(v WebhookEventResource) { - o.Data = v -} - -func (o WebhookEventCallback) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookEventCallback) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - return toSerialize, nil -} - -func (o *WebhookEventCallback) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookEventCallback := _WebhookEventCallback{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookEventCallback) - - if err != nil { - return err - } - - *o = WebhookEventCallback(varWebhookEventCallback) - - return err -} - -type NullableWebhookEventCallback struct { - value *WebhookEventCallback - isSet bool -} - -func (v NullableWebhookEventCallback) Get() *WebhookEventCallback { - return v.value -} - -func (v *NullableWebhookEventCallback) Set(val *WebhookEventCallback) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookEventCallback) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookEventCallback) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookEventCallback(val *WebhookEventCallback) *NullableWebhookEventCallback { - return &NullableWebhookEventCallback{value: val, isSet: true} -} - -func (v NullableWebhookEventCallback) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookEventCallback) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_event_resource.go b/expense-manager/openapi/model_webhook_event_resource.go deleted file mode 100644 index 8cc760f..0000000 --- a/expense-manager/openapi/model_webhook_event_resource.go +++ /dev/null @@ -1,242 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the WebhookEventResource type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookEventResource{} - -// WebhookEventResource Provides the event data used in asynchronous webhook event callbacks to subscribed endpoints. Webhooks events have defined `eventType`s and may optionally relate to other resources within the Up API. -type WebhookEventResource struct { - // The type of this resource: `webhook-events` - Type string `json:"type"` - // The unique identifier for this event. This will remain constant across delivery retries. - Id string `json:"id"` - Attributes WebhookEventResourceAttributes `json:"attributes"` - Relationships WebhookEventResourceRelationships `json:"relationships"` -} - -type _WebhookEventResource WebhookEventResource - -// NewWebhookEventResource instantiates a new WebhookEventResource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookEventResource(type_ string, id string, attributes WebhookEventResourceAttributes, relationships WebhookEventResourceRelationships) *WebhookEventResource { - this := WebhookEventResource{} - this.Type = type_ - this.Id = id - this.Attributes = attributes - this.Relationships = relationships - return &this -} - -// NewWebhookEventResourceWithDefaults instantiates a new WebhookEventResource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookEventResourceWithDefaults() *WebhookEventResource { - this := WebhookEventResource{} - return &this -} - -// GetType returns the Type field value -func (o *WebhookEventResource) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *WebhookEventResource) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *WebhookEventResource) SetType(v string) { - o.Type = v -} - -// GetId returns the Id field value -func (o *WebhookEventResource) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *WebhookEventResource) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *WebhookEventResource) SetId(v string) { - o.Id = v -} - -// GetAttributes returns the Attributes field value -func (o *WebhookEventResource) GetAttributes() WebhookEventResourceAttributes { - if o == nil { - var ret WebhookEventResourceAttributes - return ret - } - - return o.Attributes -} - -// GetAttributesOk returns a tuple with the Attributes field value -// and a boolean to check if the value has been set. -func (o *WebhookEventResource) GetAttributesOk() (*WebhookEventResourceAttributes, bool) { - if o == nil { - return nil, false - } - return &o.Attributes, true -} - -// SetAttributes sets field value -func (o *WebhookEventResource) SetAttributes(v WebhookEventResourceAttributes) { - o.Attributes = v -} - -// GetRelationships returns the Relationships field value -func (o *WebhookEventResource) GetRelationships() WebhookEventResourceRelationships { - if o == nil { - var ret WebhookEventResourceRelationships - return ret - } - - return o.Relationships -} - -// GetRelationshipsOk returns a tuple with the Relationships field value -// and a boolean to check if the value has been set. -func (o *WebhookEventResource) GetRelationshipsOk() (*WebhookEventResourceRelationships, bool) { - if o == nil { - return nil, false - } - return &o.Relationships, true -} - -// SetRelationships sets field value -func (o *WebhookEventResource) SetRelationships(v WebhookEventResourceRelationships) { - o.Relationships = v -} - -func (o WebhookEventResource) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookEventResource) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["id"] = o.Id - toSerialize["attributes"] = o.Attributes - toSerialize["relationships"] = o.Relationships - return toSerialize, nil -} - -func (o *WebhookEventResource) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "id", - "attributes", - "relationships", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookEventResource := _WebhookEventResource{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookEventResource) - - if err != nil { - return err - } - - *o = WebhookEventResource(varWebhookEventResource) - - return err -} - -type NullableWebhookEventResource struct { - value *WebhookEventResource - isSet bool -} - -func (v NullableWebhookEventResource) Get() *WebhookEventResource { - return v.value -} - -func (v *NullableWebhookEventResource) Set(val *WebhookEventResource) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookEventResource) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookEventResource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookEventResource(val *WebhookEventResource) *NullableWebhookEventResource { - return &NullableWebhookEventResource{value: val, isSet: true} -} - -func (v NullableWebhookEventResource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookEventResource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_event_resource_attributes.go b/expense-manager/openapi/model_webhook_event_resource_attributes.go deleted file mode 100644 index 74757c9..0000000 --- a/expense-manager/openapi/model_webhook_event_resource_attributes.go +++ /dev/null @@ -1,187 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" - "time" -) - -// checks if the WebhookEventResourceAttributes type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookEventResourceAttributes{} - -// WebhookEventResourceAttributes struct for WebhookEventResourceAttributes -type WebhookEventResourceAttributes struct { - // The type of this event. This can be used to determine what action to take in response to the event. - EventType WebhookEventTypeEnum `json:"eventType"` - // The date-time at which this event was generated. - CreatedAt time.Time `json:"createdAt"` -} - -type _WebhookEventResourceAttributes WebhookEventResourceAttributes - -// NewWebhookEventResourceAttributes instantiates a new WebhookEventResourceAttributes object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookEventResourceAttributes(eventType WebhookEventTypeEnum, createdAt time.Time) *WebhookEventResourceAttributes { - this := WebhookEventResourceAttributes{} - this.EventType = eventType - this.CreatedAt = createdAt - return &this -} - -// NewWebhookEventResourceAttributesWithDefaults instantiates a new WebhookEventResourceAttributes object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookEventResourceAttributesWithDefaults() *WebhookEventResourceAttributes { - this := WebhookEventResourceAttributes{} - return &this -} - -// GetEventType returns the EventType field value -func (o *WebhookEventResourceAttributes) GetEventType() WebhookEventTypeEnum { - if o == nil { - var ret WebhookEventTypeEnum - return ret - } - - return o.EventType -} - -// GetEventTypeOk returns a tuple with the EventType field value -// and a boolean to check if the value has been set. -func (o *WebhookEventResourceAttributes) GetEventTypeOk() (*WebhookEventTypeEnum, bool) { - if o == nil { - return nil, false - } - return &o.EventType, true -} - -// SetEventType sets field value -func (o *WebhookEventResourceAttributes) SetEventType(v WebhookEventTypeEnum) { - o.EventType = v -} - -// GetCreatedAt returns the CreatedAt field value -func (o *WebhookEventResourceAttributes) GetCreatedAt() time.Time { - if o == nil { - var ret time.Time - return ret - } - - return o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value -// and a boolean to check if the value has been set. -func (o *WebhookEventResourceAttributes) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return &o.CreatedAt, true -} - -// SetCreatedAt sets field value -func (o *WebhookEventResourceAttributes) SetCreatedAt(v time.Time) { - o.CreatedAt = v -} - -func (o WebhookEventResourceAttributes) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookEventResourceAttributes) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["eventType"] = o.EventType - toSerialize["createdAt"] = o.CreatedAt - return toSerialize, nil -} - -func (o *WebhookEventResourceAttributes) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "eventType", - "createdAt", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookEventResourceAttributes := _WebhookEventResourceAttributes{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookEventResourceAttributes) - - if err != nil { - return err - } - - *o = WebhookEventResourceAttributes(varWebhookEventResourceAttributes) - - return err -} - -type NullableWebhookEventResourceAttributes struct { - value *WebhookEventResourceAttributes - isSet bool -} - -func (v NullableWebhookEventResourceAttributes) Get() *WebhookEventResourceAttributes { - return v.value -} - -func (v *NullableWebhookEventResourceAttributes) Set(val *WebhookEventResourceAttributes) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookEventResourceAttributes) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookEventResourceAttributes) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookEventResourceAttributes(val *WebhookEventResourceAttributes) *NullableWebhookEventResourceAttributes { - return &NullableWebhookEventResourceAttributes{value: val, isSet: true} -} - -func (v NullableWebhookEventResourceAttributes) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookEventResourceAttributes) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_event_resource_relationships.go b/expense-manager/openapi/model_webhook_event_resource_relationships.go deleted file mode 100644 index 8b9b10c..0000000 --- a/expense-manager/openapi/model_webhook_event_resource_relationships.go +++ /dev/null @@ -1,192 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the WebhookEventResourceRelationships type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookEventResourceRelationships{} - -// WebhookEventResourceRelationships struct for WebhookEventResourceRelationships -type WebhookEventResourceRelationships struct { - Webhook WebhookEventResourceRelationshipsWebhook `json:"webhook"` - Transaction *WebhookEventResourceRelationshipsTransaction `json:"transaction,omitempty"` -} - -type _WebhookEventResourceRelationships WebhookEventResourceRelationships - -// NewWebhookEventResourceRelationships instantiates a new WebhookEventResourceRelationships object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookEventResourceRelationships(webhook WebhookEventResourceRelationshipsWebhook) *WebhookEventResourceRelationships { - this := WebhookEventResourceRelationships{} - this.Webhook = webhook - return &this -} - -// NewWebhookEventResourceRelationshipsWithDefaults instantiates a new WebhookEventResourceRelationships object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookEventResourceRelationshipsWithDefaults() *WebhookEventResourceRelationships { - this := WebhookEventResourceRelationships{} - return &this -} - -// GetWebhook returns the Webhook field value -func (o *WebhookEventResourceRelationships) GetWebhook() WebhookEventResourceRelationshipsWebhook { - if o == nil { - var ret WebhookEventResourceRelationshipsWebhook - return ret - } - - return o.Webhook -} - -// GetWebhookOk returns a tuple with the Webhook field value -// and a boolean to check if the value has been set. -func (o *WebhookEventResourceRelationships) GetWebhookOk() (*WebhookEventResourceRelationshipsWebhook, bool) { - if o == nil { - return nil, false - } - return &o.Webhook, true -} - -// SetWebhook sets field value -func (o *WebhookEventResourceRelationships) SetWebhook(v WebhookEventResourceRelationshipsWebhook) { - o.Webhook = v -} - -// GetTransaction returns the Transaction field value if set, zero value otherwise. -func (o *WebhookEventResourceRelationships) GetTransaction() WebhookEventResourceRelationshipsTransaction { - if o == nil || IsNil(o.Transaction) { - var ret WebhookEventResourceRelationshipsTransaction - return ret - } - return *o.Transaction -} - -// GetTransactionOk returns a tuple with the Transaction field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WebhookEventResourceRelationships) GetTransactionOk() (*WebhookEventResourceRelationshipsTransaction, bool) { - if o == nil || IsNil(o.Transaction) { - return nil, false - } - return o.Transaction, true -} - -// HasTransaction returns a boolean if a field has been set. -func (o *WebhookEventResourceRelationships) HasTransaction() bool { - if o != nil && !IsNil(o.Transaction) { - return true - } - - return false -} - -// SetTransaction gets a reference to the given WebhookEventResourceRelationshipsTransaction and assigns it to the Transaction field. -func (o *WebhookEventResourceRelationships) SetTransaction(v WebhookEventResourceRelationshipsTransaction) { - o.Transaction = &v -} - -func (o WebhookEventResourceRelationships) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookEventResourceRelationships) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["webhook"] = o.Webhook - if !IsNil(o.Transaction) { - toSerialize["transaction"] = o.Transaction - } - return toSerialize, nil -} - -func (o *WebhookEventResourceRelationships) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "webhook", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookEventResourceRelationships := _WebhookEventResourceRelationships{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookEventResourceRelationships) - - if err != nil { - return err - } - - *o = WebhookEventResourceRelationships(varWebhookEventResourceRelationships) - - return err -} - -type NullableWebhookEventResourceRelationships struct { - value *WebhookEventResourceRelationships - isSet bool -} - -func (v NullableWebhookEventResourceRelationships) Get() *WebhookEventResourceRelationships { - return v.value -} - -func (v *NullableWebhookEventResourceRelationships) Set(val *WebhookEventResourceRelationships) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookEventResourceRelationships) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookEventResourceRelationships) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookEventResourceRelationships(val *WebhookEventResourceRelationships) *NullableWebhookEventResourceRelationships { - return &NullableWebhookEventResourceRelationships{value: val, isSet: true} -} - -func (v NullableWebhookEventResourceRelationships) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookEventResourceRelationships) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_event_resource_relationships_transaction.go b/expense-manager/openapi/model_webhook_event_resource_relationships_transaction.go deleted file mode 100644 index 380bfe3..0000000 --- a/expense-manager/openapi/model_webhook_event_resource_relationships_transaction.go +++ /dev/null @@ -1,192 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the WebhookEventResourceRelationshipsTransaction type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookEventResourceRelationshipsTransaction{} - -// WebhookEventResourceRelationshipsTransaction struct for WebhookEventResourceRelationshipsTransaction -type WebhookEventResourceRelationshipsTransaction struct { - Data WebhookEventResourceRelationshipsTransactionData `json:"data"` - Links *AccountResourceRelationshipsTransactionsLinks `json:"links,omitempty"` -} - -type _WebhookEventResourceRelationshipsTransaction WebhookEventResourceRelationshipsTransaction - -// NewWebhookEventResourceRelationshipsTransaction instantiates a new WebhookEventResourceRelationshipsTransaction object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookEventResourceRelationshipsTransaction(data WebhookEventResourceRelationshipsTransactionData) *WebhookEventResourceRelationshipsTransaction { - this := WebhookEventResourceRelationshipsTransaction{} - this.Data = data - return &this -} - -// NewWebhookEventResourceRelationshipsTransactionWithDefaults instantiates a new WebhookEventResourceRelationshipsTransaction object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookEventResourceRelationshipsTransactionWithDefaults() *WebhookEventResourceRelationshipsTransaction { - this := WebhookEventResourceRelationshipsTransaction{} - return &this -} - -// GetData returns the Data field value -func (o *WebhookEventResourceRelationshipsTransaction) GetData() WebhookEventResourceRelationshipsTransactionData { - if o == nil { - var ret WebhookEventResourceRelationshipsTransactionData - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *WebhookEventResourceRelationshipsTransaction) GetDataOk() (*WebhookEventResourceRelationshipsTransactionData, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *WebhookEventResourceRelationshipsTransaction) SetData(v WebhookEventResourceRelationshipsTransactionData) { - o.Data = v -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *WebhookEventResourceRelationshipsTransaction) GetLinks() AccountResourceRelationshipsTransactionsLinks { - if o == nil || IsNil(o.Links) { - var ret AccountResourceRelationshipsTransactionsLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WebhookEventResourceRelationshipsTransaction) GetLinksOk() (*AccountResourceRelationshipsTransactionsLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *WebhookEventResourceRelationshipsTransaction) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given AccountResourceRelationshipsTransactionsLinks and assigns it to the Links field. -func (o *WebhookEventResourceRelationshipsTransaction) SetLinks(v AccountResourceRelationshipsTransactionsLinks) { - o.Links = &v -} - -func (o WebhookEventResourceRelationshipsTransaction) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookEventResourceRelationshipsTransaction) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - return toSerialize, nil -} - -func (o *WebhookEventResourceRelationshipsTransaction) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookEventResourceRelationshipsTransaction := _WebhookEventResourceRelationshipsTransaction{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookEventResourceRelationshipsTransaction) - - if err != nil { - return err - } - - *o = WebhookEventResourceRelationshipsTransaction(varWebhookEventResourceRelationshipsTransaction) - - return err -} - -type NullableWebhookEventResourceRelationshipsTransaction struct { - value *WebhookEventResourceRelationshipsTransaction - isSet bool -} - -func (v NullableWebhookEventResourceRelationshipsTransaction) Get() *WebhookEventResourceRelationshipsTransaction { - return v.value -} - -func (v *NullableWebhookEventResourceRelationshipsTransaction) Set(val *WebhookEventResourceRelationshipsTransaction) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookEventResourceRelationshipsTransaction) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookEventResourceRelationshipsTransaction) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookEventResourceRelationshipsTransaction(val *WebhookEventResourceRelationshipsTransaction) *NullableWebhookEventResourceRelationshipsTransaction { - return &NullableWebhookEventResourceRelationshipsTransaction{value: val, isSet: true} -} - -func (v NullableWebhookEventResourceRelationshipsTransaction) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookEventResourceRelationshipsTransaction) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_event_resource_relationships_transaction_data.go b/expense-manager/openapi/model_webhook_event_resource_relationships_transaction_data.go deleted file mode 100644 index eaf3640..0000000 --- a/expense-manager/openapi/model_webhook_event_resource_relationships_transaction_data.go +++ /dev/null @@ -1,186 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the WebhookEventResourceRelationshipsTransactionData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookEventResourceRelationshipsTransactionData{} - -// WebhookEventResourceRelationshipsTransactionData struct for WebhookEventResourceRelationshipsTransactionData -type WebhookEventResourceRelationshipsTransactionData struct { - // The type of this resource: `transactions` - Type string `json:"type"` - // The unique identifier of the resource within its type. - Id string `json:"id"` -} - -type _WebhookEventResourceRelationshipsTransactionData WebhookEventResourceRelationshipsTransactionData - -// NewWebhookEventResourceRelationshipsTransactionData instantiates a new WebhookEventResourceRelationshipsTransactionData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookEventResourceRelationshipsTransactionData(type_ string, id string) *WebhookEventResourceRelationshipsTransactionData { - this := WebhookEventResourceRelationshipsTransactionData{} - this.Type = type_ - this.Id = id - return &this -} - -// NewWebhookEventResourceRelationshipsTransactionDataWithDefaults instantiates a new WebhookEventResourceRelationshipsTransactionData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookEventResourceRelationshipsTransactionDataWithDefaults() *WebhookEventResourceRelationshipsTransactionData { - this := WebhookEventResourceRelationshipsTransactionData{} - return &this -} - -// GetType returns the Type field value -func (o *WebhookEventResourceRelationshipsTransactionData) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *WebhookEventResourceRelationshipsTransactionData) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *WebhookEventResourceRelationshipsTransactionData) SetType(v string) { - o.Type = v -} - -// GetId returns the Id field value -func (o *WebhookEventResourceRelationshipsTransactionData) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *WebhookEventResourceRelationshipsTransactionData) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *WebhookEventResourceRelationshipsTransactionData) SetId(v string) { - o.Id = v -} - -func (o WebhookEventResourceRelationshipsTransactionData) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookEventResourceRelationshipsTransactionData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["id"] = o.Id - return toSerialize, nil -} - -func (o *WebhookEventResourceRelationshipsTransactionData) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookEventResourceRelationshipsTransactionData := _WebhookEventResourceRelationshipsTransactionData{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookEventResourceRelationshipsTransactionData) - - if err != nil { - return err - } - - *o = WebhookEventResourceRelationshipsTransactionData(varWebhookEventResourceRelationshipsTransactionData) - - return err -} - -type NullableWebhookEventResourceRelationshipsTransactionData struct { - value *WebhookEventResourceRelationshipsTransactionData - isSet bool -} - -func (v NullableWebhookEventResourceRelationshipsTransactionData) Get() *WebhookEventResourceRelationshipsTransactionData { - return v.value -} - -func (v *NullableWebhookEventResourceRelationshipsTransactionData) Set(val *WebhookEventResourceRelationshipsTransactionData) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookEventResourceRelationshipsTransactionData) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookEventResourceRelationshipsTransactionData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookEventResourceRelationshipsTransactionData(val *WebhookEventResourceRelationshipsTransactionData) *NullableWebhookEventResourceRelationshipsTransactionData { - return &NullableWebhookEventResourceRelationshipsTransactionData{value: val, isSet: true} -} - -func (v NullableWebhookEventResourceRelationshipsTransactionData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookEventResourceRelationshipsTransactionData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_event_resource_relationships_webhook.go b/expense-manager/openapi/model_webhook_event_resource_relationships_webhook.go deleted file mode 100644 index 7f7fb1e..0000000 --- a/expense-manager/openapi/model_webhook_event_resource_relationships_webhook.go +++ /dev/null @@ -1,192 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the WebhookEventResourceRelationshipsWebhook type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookEventResourceRelationshipsWebhook{} - -// WebhookEventResourceRelationshipsWebhook struct for WebhookEventResourceRelationshipsWebhook -type WebhookEventResourceRelationshipsWebhook struct { - Data WebhookEventResourceRelationshipsWebhookData `json:"data"` - Links *AccountResourceRelationshipsTransactionsLinks `json:"links,omitempty"` -} - -type _WebhookEventResourceRelationshipsWebhook WebhookEventResourceRelationshipsWebhook - -// NewWebhookEventResourceRelationshipsWebhook instantiates a new WebhookEventResourceRelationshipsWebhook object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookEventResourceRelationshipsWebhook(data WebhookEventResourceRelationshipsWebhookData) *WebhookEventResourceRelationshipsWebhook { - this := WebhookEventResourceRelationshipsWebhook{} - this.Data = data - return &this -} - -// NewWebhookEventResourceRelationshipsWebhookWithDefaults instantiates a new WebhookEventResourceRelationshipsWebhook object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookEventResourceRelationshipsWebhookWithDefaults() *WebhookEventResourceRelationshipsWebhook { - this := WebhookEventResourceRelationshipsWebhook{} - return &this -} - -// GetData returns the Data field value -func (o *WebhookEventResourceRelationshipsWebhook) GetData() WebhookEventResourceRelationshipsWebhookData { - if o == nil { - var ret WebhookEventResourceRelationshipsWebhookData - return ret - } - - return o.Data -} - -// GetDataOk returns a tuple with the Data field value -// and a boolean to check if the value has been set. -func (o *WebhookEventResourceRelationshipsWebhook) GetDataOk() (*WebhookEventResourceRelationshipsWebhookData, bool) { - if o == nil { - return nil, false - } - return &o.Data, true -} - -// SetData sets field value -func (o *WebhookEventResourceRelationshipsWebhook) SetData(v WebhookEventResourceRelationshipsWebhookData) { - o.Data = v -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *WebhookEventResourceRelationshipsWebhook) GetLinks() AccountResourceRelationshipsTransactionsLinks { - if o == nil || IsNil(o.Links) { - var ret AccountResourceRelationshipsTransactionsLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WebhookEventResourceRelationshipsWebhook) GetLinksOk() (*AccountResourceRelationshipsTransactionsLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *WebhookEventResourceRelationshipsWebhook) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given AccountResourceRelationshipsTransactionsLinks and assigns it to the Links field. -func (o *WebhookEventResourceRelationshipsWebhook) SetLinks(v AccountResourceRelationshipsTransactionsLinks) { - o.Links = &v -} - -func (o WebhookEventResourceRelationshipsWebhook) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookEventResourceRelationshipsWebhook) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["data"] = o.Data - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - return toSerialize, nil -} - -func (o *WebhookEventResourceRelationshipsWebhook) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "data", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookEventResourceRelationshipsWebhook := _WebhookEventResourceRelationshipsWebhook{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookEventResourceRelationshipsWebhook) - - if err != nil { - return err - } - - *o = WebhookEventResourceRelationshipsWebhook(varWebhookEventResourceRelationshipsWebhook) - - return err -} - -type NullableWebhookEventResourceRelationshipsWebhook struct { - value *WebhookEventResourceRelationshipsWebhook - isSet bool -} - -func (v NullableWebhookEventResourceRelationshipsWebhook) Get() *WebhookEventResourceRelationshipsWebhook { - return v.value -} - -func (v *NullableWebhookEventResourceRelationshipsWebhook) Set(val *WebhookEventResourceRelationshipsWebhook) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookEventResourceRelationshipsWebhook) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookEventResourceRelationshipsWebhook) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookEventResourceRelationshipsWebhook(val *WebhookEventResourceRelationshipsWebhook) *NullableWebhookEventResourceRelationshipsWebhook { - return &NullableWebhookEventResourceRelationshipsWebhook{value: val, isSet: true} -} - -func (v NullableWebhookEventResourceRelationshipsWebhook) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookEventResourceRelationshipsWebhook) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_event_resource_relationships_webhook_data.go b/expense-manager/openapi/model_webhook_event_resource_relationships_webhook_data.go deleted file mode 100644 index e95c739..0000000 --- a/expense-manager/openapi/model_webhook_event_resource_relationships_webhook_data.go +++ /dev/null @@ -1,186 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the WebhookEventResourceRelationshipsWebhookData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookEventResourceRelationshipsWebhookData{} - -// WebhookEventResourceRelationshipsWebhookData struct for WebhookEventResourceRelationshipsWebhookData -type WebhookEventResourceRelationshipsWebhookData struct { - // The type of this resource: `webhooks` - Type string `json:"type"` - // The unique identifier of the resource within its type. - Id string `json:"id"` -} - -type _WebhookEventResourceRelationshipsWebhookData WebhookEventResourceRelationshipsWebhookData - -// NewWebhookEventResourceRelationshipsWebhookData instantiates a new WebhookEventResourceRelationshipsWebhookData object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookEventResourceRelationshipsWebhookData(type_ string, id string) *WebhookEventResourceRelationshipsWebhookData { - this := WebhookEventResourceRelationshipsWebhookData{} - this.Type = type_ - this.Id = id - return &this -} - -// NewWebhookEventResourceRelationshipsWebhookDataWithDefaults instantiates a new WebhookEventResourceRelationshipsWebhookData object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookEventResourceRelationshipsWebhookDataWithDefaults() *WebhookEventResourceRelationshipsWebhookData { - this := WebhookEventResourceRelationshipsWebhookData{} - return &this -} - -// GetType returns the Type field value -func (o *WebhookEventResourceRelationshipsWebhookData) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *WebhookEventResourceRelationshipsWebhookData) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *WebhookEventResourceRelationshipsWebhookData) SetType(v string) { - o.Type = v -} - -// GetId returns the Id field value -func (o *WebhookEventResourceRelationshipsWebhookData) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *WebhookEventResourceRelationshipsWebhookData) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *WebhookEventResourceRelationshipsWebhookData) SetId(v string) { - o.Id = v -} - -func (o WebhookEventResourceRelationshipsWebhookData) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookEventResourceRelationshipsWebhookData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["id"] = o.Id - return toSerialize, nil -} - -func (o *WebhookEventResourceRelationshipsWebhookData) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "id", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookEventResourceRelationshipsWebhookData := _WebhookEventResourceRelationshipsWebhookData{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookEventResourceRelationshipsWebhookData) - - if err != nil { - return err - } - - *o = WebhookEventResourceRelationshipsWebhookData(varWebhookEventResourceRelationshipsWebhookData) - - return err -} - -type NullableWebhookEventResourceRelationshipsWebhookData struct { - value *WebhookEventResourceRelationshipsWebhookData - isSet bool -} - -func (v NullableWebhookEventResourceRelationshipsWebhookData) Get() *WebhookEventResourceRelationshipsWebhookData { - return v.value -} - -func (v *NullableWebhookEventResourceRelationshipsWebhookData) Set(val *WebhookEventResourceRelationshipsWebhookData) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookEventResourceRelationshipsWebhookData) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookEventResourceRelationshipsWebhookData) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookEventResourceRelationshipsWebhookData(val *WebhookEventResourceRelationshipsWebhookData) *NullableWebhookEventResourceRelationshipsWebhookData { - return &NullableWebhookEventResourceRelationshipsWebhookData{value: val, isSet: true} -} - -func (v NullableWebhookEventResourceRelationshipsWebhookData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookEventResourceRelationshipsWebhookData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_event_type_enum.go b/expense-manager/openapi/model_webhook_event_type_enum.go deleted file mode 100644 index 024453e..0000000 --- a/expense-manager/openapi/model_webhook_event_type_enum.go +++ /dev/null @@ -1,114 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" - "fmt" -) - -// WebhookEventTypeEnum Specifies the type of a webhook event. This can be used to determine what action to take in response to the event, such as which relationships to expect. -type WebhookEventTypeEnum string - -// List of WebhookEventTypeEnum -const ( - TRANSACTION_CREATED WebhookEventTypeEnum = "TRANSACTION_CREATED" - TRANSACTION_SETTLED WebhookEventTypeEnum = "TRANSACTION_SETTLED" - TRANSACTION_DELETED WebhookEventTypeEnum = "TRANSACTION_DELETED" - PING WebhookEventTypeEnum = "PING" -) - -// All allowed values of WebhookEventTypeEnum enum -var AllowedWebhookEventTypeEnumEnumValues = []WebhookEventTypeEnum{ - "TRANSACTION_CREATED", - "TRANSACTION_SETTLED", - "TRANSACTION_DELETED", - "PING", -} - -func (v *WebhookEventTypeEnum) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := WebhookEventTypeEnum(value) - for _, existing := range AllowedWebhookEventTypeEnumEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid WebhookEventTypeEnum", value) -} - -// NewWebhookEventTypeEnumFromValue returns a pointer to a valid WebhookEventTypeEnum -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewWebhookEventTypeEnumFromValue(v string) (*WebhookEventTypeEnum, error) { - ev := WebhookEventTypeEnum(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for WebhookEventTypeEnum: valid values are %v", v, AllowedWebhookEventTypeEnumEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v WebhookEventTypeEnum) IsValid() bool { - for _, existing := range AllowedWebhookEventTypeEnumEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to WebhookEventTypeEnum value -func (v WebhookEventTypeEnum) Ptr() *WebhookEventTypeEnum { - return &v -} - -type NullableWebhookEventTypeEnum struct { - value *WebhookEventTypeEnum - isSet bool -} - -func (v NullableWebhookEventTypeEnum) Get() *WebhookEventTypeEnum { - return v.value -} - -func (v *NullableWebhookEventTypeEnum) Set(val *WebhookEventTypeEnum) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookEventTypeEnum) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookEventTypeEnum) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookEventTypeEnum(val *WebhookEventTypeEnum) *NullableWebhookEventTypeEnum { - return &NullableWebhookEventTypeEnum{value: val, isSet: true} -} - -func (v NullableWebhookEventTypeEnum) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookEventTypeEnum) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_input_resource.go b/expense-manager/openapi/model_webhook_input_resource.go deleted file mode 100644 index b79e774..0000000 --- a/expense-manager/openapi/model_webhook_input_resource.go +++ /dev/null @@ -1,156 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the WebhookInputResource type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookInputResource{} - -// WebhookInputResource Represents a webhook specified as request input. -type WebhookInputResource struct { - Attributes WebhookInputResourceAttributes `json:"attributes"` -} - -type _WebhookInputResource WebhookInputResource - -// NewWebhookInputResource instantiates a new WebhookInputResource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookInputResource(attributes WebhookInputResourceAttributes) *WebhookInputResource { - this := WebhookInputResource{} - this.Attributes = attributes - return &this -} - -// NewWebhookInputResourceWithDefaults instantiates a new WebhookInputResource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookInputResourceWithDefaults() *WebhookInputResource { - this := WebhookInputResource{} - return &this -} - -// GetAttributes returns the Attributes field value -func (o *WebhookInputResource) GetAttributes() WebhookInputResourceAttributes { - if o == nil { - var ret WebhookInputResourceAttributes - return ret - } - - return o.Attributes -} - -// GetAttributesOk returns a tuple with the Attributes field value -// and a boolean to check if the value has been set. -func (o *WebhookInputResource) GetAttributesOk() (*WebhookInputResourceAttributes, bool) { - if o == nil { - return nil, false - } - return &o.Attributes, true -} - -// SetAttributes sets field value -func (o *WebhookInputResource) SetAttributes(v WebhookInputResourceAttributes) { - o.Attributes = v -} - -func (o WebhookInputResource) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookInputResource) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["attributes"] = o.Attributes - return toSerialize, nil -} - -func (o *WebhookInputResource) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "attributes", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookInputResource := _WebhookInputResource{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookInputResource) - - if err != nil { - return err - } - - *o = WebhookInputResource(varWebhookInputResource) - - return err -} - -type NullableWebhookInputResource struct { - value *WebhookInputResource - isSet bool -} - -func (v NullableWebhookInputResource) Get() *WebhookInputResource { - return v.value -} - -func (v *NullableWebhookInputResource) Set(val *WebhookInputResource) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookInputResource) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookInputResource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookInputResource(val *WebhookInputResource) *NullableWebhookInputResource { - return &NullableWebhookInputResource{value: val, isSet: true} -} - -func (v NullableWebhookInputResource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookInputResource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_input_resource_attributes.go b/expense-manager/openapi/model_webhook_input_resource_attributes.go deleted file mode 100644 index e7b8273..0000000 --- a/expense-manager/openapi/model_webhook_input_resource_attributes.go +++ /dev/null @@ -1,205 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the WebhookInputResourceAttributes type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookInputResourceAttributes{} - -// WebhookInputResourceAttributes struct for WebhookInputResourceAttributes -type WebhookInputResourceAttributes struct { - // The URL that this webhook should post events to. This must be a valid HTTP or HTTPS URL that does not exceed 300 characters in length. - Url string `json:"url"` - // An optional description for this webhook, up to 64 characters in length. - Description NullableString `json:"description,omitempty"` -} - -type _WebhookInputResourceAttributes WebhookInputResourceAttributes - -// NewWebhookInputResourceAttributes instantiates a new WebhookInputResourceAttributes object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookInputResourceAttributes(url string) *WebhookInputResourceAttributes { - this := WebhookInputResourceAttributes{} - this.Url = url - return &this -} - -// NewWebhookInputResourceAttributesWithDefaults instantiates a new WebhookInputResourceAttributes object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookInputResourceAttributesWithDefaults() *WebhookInputResourceAttributes { - this := WebhookInputResourceAttributes{} - return &this -} - -// GetUrl returns the Url field value -func (o *WebhookInputResourceAttributes) GetUrl() string { - if o == nil { - var ret string - return ret - } - - return o.Url -} - -// GetUrlOk returns a tuple with the Url field value -// and a boolean to check if the value has been set. -func (o *WebhookInputResourceAttributes) GetUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Url, true -} - -// SetUrl sets field value -func (o *WebhookInputResourceAttributes) SetUrl(v string) { - o.Url = v -} - -// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WebhookInputResourceAttributes) GetDescription() string { - if o == nil || IsNil(o.Description.Get()) { - var ret string - return ret - } - return *o.Description.Get() -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WebhookInputResourceAttributes) GetDescriptionOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Description.Get(), o.Description.IsSet() -} - -// HasDescription returns a boolean if a field has been set. -func (o *WebhookInputResourceAttributes) HasDescription() bool { - if o != nil && o.Description.IsSet() { - return true - } - - return false -} - -// SetDescription gets a reference to the given NullableString and assigns it to the Description field. -func (o *WebhookInputResourceAttributes) SetDescription(v string) { - o.Description.Set(&v) -} - -// SetDescriptionNil sets the value for Description to be an explicit nil -func (o *WebhookInputResourceAttributes) SetDescriptionNil() { - o.Description.Set(nil) -} - -// UnsetDescription ensures that no value is present for Description, not even an explicit nil -func (o *WebhookInputResourceAttributes) UnsetDescription() { - o.Description.Unset() -} - -func (o WebhookInputResourceAttributes) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookInputResourceAttributes) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["url"] = o.Url - if o.Description.IsSet() { - toSerialize["description"] = o.Description.Get() - } - return toSerialize, nil -} - -func (o *WebhookInputResourceAttributes) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "url", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookInputResourceAttributes := _WebhookInputResourceAttributes{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookInputResourceAttributes) - - if err != nil { - return err - } - - *o = WebhookInputResourceAttributes(varWebhookInputResourceAttributes) - - return err -} - -type NullableWebhookInputResourceAttributes struct { - value *WebhookInputResourceAttributes - isSet bool -} - -func (v NullableWebhookInputResourceAttributes) Get() *WebhookInputResourceAttributes { - return v.value -} - -func (v *NullableWebhookInputResourceAttributes) Set(val *WebhookInputResourceAttributes) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookInputResourceAttributes) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookInputResourceAttributes) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookInputResourceAttributes(val *WebhookInputResourceAttributes) *NullableWebhookInputResourceAttributes { - return &NullableWebhookInputResourceAttributes{value: val, isSet: true} -} - -func (v NullableWebhookInputResourceAttributes) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookInputResourceAttributes) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_resource.go b/expense-manager/openapi/model_webhook_resource.go deleted file mode 100644 index 2dd369f..0000000 --- a/expense-manager/openapi/model_webhook_resource.go +++ /dev/null @@ -1,278 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the WebhookResource type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookResource{} - -// WebhookResource Provides information about a webhook. -type WebhookResource struct { - // The type of this resource: `webhooks` - Type string `json:"type"` - // The unique identifier for this webhook. - Id string `json:"id"` - Attributes WebhookResourceAttributes `json:"attributes"` - Relationships WebhookResourceRelationships `json:"relationships"` - Links *AccountResourceLinks `json:"links,omitempty"` -} - -type _WebhookResource WebhookResource - -// NewWebhookResource instantiates a new WebhookResource object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookResource(type_ string, id string, attributes WebhookResourceAttributes, relationships WebhookResourceRelationships) *WebhookResource { - this := WebhookResource{} - this.Type = type_ - this.Id = id - this.Attributes = attributes - this.Relationships = relationships - return &this -} - -// NewWebhookResourceWithDefaults instantiates a new WebhookResource object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookResourceWithDefaults() *WebhookResource { - this := WebhookResource{} - return &this -} - -// GetType returns the Type field value -func (o *WebhookResource) GetType() string { - if o == nil { - var ret string - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *WebhookResource) GetTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *WebhookResource) SetType(v string) { - o.Type = v -} - -// GetId returns the Id field value -func (o *WebhookResource) GetId() string { - if o == nil { - var ret string - return ret - } - - return o.Id -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -func (o *WebhookResource) GetIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Id, true -} - -// SetId sets field value -func (o *WebhookResource) SetId(v string) { - o.Id = v -} - -// GetAttributes returns the Attributes field value -func (o *WebhookResource) GetAttributes() WebhookResourceAttributes { - if o == nil { - var ret WebhookResourceAttributes - return ret - } - - return o.Attributes -} - -// GetAttributesOk returns a tuple with the Attributes field value -// and a boolean to check if the value has been set. -func (o *WebhookResource) GetAttributesOk() (*WebhookResourceAttributes, bool) { - if o == nil { - return nil, false - } - return &o.Attributes, true -} - -// SetAttributes sets field value -func (o *WebhookResource) SetAttributes(v WebhookResourceAttributes) { - o.Attributes = v -} - -// GetRelationships returns the Relationships field value -func (o *WebhookResource) GetRelationships() WebhookResourceRelationships { - if o == nil { - var ret WebhookResourceRelationships - return ret - } - - return o.Relationships -} - -// GetRelationshipsOk returns a tuple with the Relationships field value -// and a boolean to check if the value has been set. -func (o *WebhookResource) GetRelationshipsOk() (*WebhookResourceRelationships, bool) { - if o == nil { - return nil, false - } - return &o.Relationships, true -} - -// SetRelationships sets field value -func (o *WebhookResource) SetRelationships(v WebhookResourceRelationships) { - o.Relationships = v -} - -// GetLinks returns the Links field value if set, zero value otherwise. -func (o *WebhookResource) GetLinks() AccountResourceLinks { - if o == nil || IsNil(o.Links) { - var ret AccountResourceLinks - return ret - } - return *o.Links -} - -// GetLinksOk returns a tuple with the Links field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WebhookResource) GetLinksOk() (*AccountResourceLinks, bool) { - if o == nil || IsNil(o.Links) { - return nil, false - } - return o.Links, true -} - -// HasLinks returns a boolean if a field has been set. -func (o *WebhookResource) HasLinks() bool { - if o != nil && !IsNil(o.Links) { - return true - } - - return false -} - -// SetLinks gets a reference to the given AccountResourceLinks and assigns it to the Links field. -func (o *WebhookResource) SetLinks(v AccountResourceLinks) { - o.Links = &v -} - -func (o WebhookResource) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookResource) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["type"] = o.Type - toSerialize["id"] = o.Id - toSerialize["attributes"] = o.Attributes - toSerialize["relationships"] = o.Relationships - if !IsNil(o.Links) { - toSerialize["links"] = o.Links - } - return toSerialize, nil -} - -func (o *WebhookResource) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "type", - "id", - "attributes", - "relationships", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookResource := _WebhookResource{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookResource) - - if err != nil { - return err - } - - *o = WebhookResource(varWebhookResource) - - return err -} - -type NullableWebhookResource struct { - value *WebhookResource - isSet bool -} - -func (v NullableWebhookResource) Get() *WebhookResource { - return v.value -} - -func (v *NullableWebhookResource) Set(val *WebhookResource) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookResource) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookResource) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookResource(val *WebhookResource) *NullableWebhookResource { - return &NullableWebhookResource{value: val, isSet: true} -} - -func (v NullableWebhookResource) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookResource) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_resource_attributes.go b/expense-manager/openapi/model_webhook_resource_attributes.go deleted file mode 100644 index d6f8e1b..0000000 --- a/expense-manager/openapi/model_webhook_resource_attributes.go +++ /dev/null @@ -1,255 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" - "time" -) - -// checks if the WebhookResourceAttributes type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookResourceAttributes{} - -// WebhookResourceAttributes struct for WebhookResourceAttributes -type WebhookResourceAttributes struct { - // The URL that this webhook is configured to `POST` events to. - Url string `json:"url"` - // An optional description that was provided at the time the webhook was created. - Description NullableString `json:"description"` - // A shared secret key used to sign all webhook events sent to the configured webhook URL. This field is returned only once, upon the initial creation of the webhook. If lost, create a new webhook and delete this webhook. The webhook URL receives a request with a `X-Up-Authenticity-Signature` header, which is the SHA-256 HMAC of the entire raw request body signed using this `secretKey`. It is advised to compute and check this signature to verify the authenticity of requests sent to the webhook URL. See [Handling webhook events](#callback_post_webhookURL) for full details. - SecretKey *string `json:"secretKey,omitempty"` - // The date-time at which this webhook was created. - CreatedAt time.Time `json:"createdAt"` -} - -type _WebhookResourceAttributes WebhookResourceAttributes - -// NewWebhookResourceAttributes instantiates a new WebhookResourceAttributes object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookResourceAttributes(url string, description NullableString, createdAt time.Time) *WebhookResourceAttributes { - this := WebhookResourceAttributes{} - this.Url = url - this.Description = description - this.CreatedAt = createdAt - return &this -} - -// NewWebhookResourceAttributesWithDefaults instantiates a new WebhookResourceAttributes object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookResourceAttributesWithDefaults() *WebhookResourceAttributes { - this := WebhookResourceAttributes{} - return &this -} - -// GetUrl returns the Url field value -func (o *WebhookResourceAttributes) GetUrl() string { - if o == nil { - var ret string - return ret - } - - return o.Url -} - -// GetUrlOk returns a tuple with the Url field value -// and a boolean to check if the value has been set. -func (o *WebhookResourceAttributes) GetUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Url, true -} - -// SetUrl sets field value -func (o *WebhookResourceAttributes) SetUrl(v string) { - o.Url = v -} - -// GetDescription returns the Description field value -// If the value is explicit nil, the zero value for string will be returned -func (o *WebhookResourceAttributes) GetDescription() string { - if o == nil || o.Description.Get() == nil { - var ret string - return ret - } - - return *o.Description.Get() -} - -// GetDescriptionOk returns a tuple with the Description field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WebhookResourceAttributes) GetDescriptionOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Description.Get(), o.Description.IsSet() -} - -// SetDescription sets field value -func (o *WebhookResourceAttributes) SetDescription(v string) { - o.Description.Set(&v) -} - -// GetSecretKey returns the SecretKey field value if set, zero value otherwise. -func (o *WebhookResourceAttributes) GetSecretKey() string { - if o == nil || IsNil(o.SecretKey) { - var ret string - return ret - } - return *o.SecretKey -} - -// GetSecretKeyOk returns a tuple with the SecretKey field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WebhookResourceAttributes) GetSecretKeyOk() (*string, bool) { - if o == nil || IsNil(o.SecretKey) { - return nil, false - } - return o.SecretKey, true -} - -// HasSecretKey returns a boolean if a field has been set. -func (o *WebhookResourceAttributes) HasSecretKey() bool { - if o != nil && !IsNil(o.SecretKey) { - return true - } - - return false -} - -// SetSecretKey gets a reference to the given string and assigns it to the SecretKey field. -func (o *WebhookResourceAttributes) SetSecretKey(v string) { - o.SecretKey = &v -} - -// GetCreatedAt returns the CreatedAt field value -func (o *WebhookResourceAttributes) GetCreatedAt() time.Time { - if o == nil { - var ret time.Time - return ret - } - - return o.CreatedAt -} - -// GetCreatedAtOk returns a tuple with the CreatedAt field value -// and a boolean to check if the value has been set. -func (o *WebhookResourceAttributes) GetCreatedAtOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return &o.CreatedAt, true -} - -// SetCreatedAt sets field value -func (o *WebhookResourceAttributes) SetCreatedAt(v time.Time) { - o.CreatedAt = v -} - -func (o WebhookResourceAttributes) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookResourceAttributes) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["url"] = o.Url - toSerialize["description"] = o.Description.Get() - if !IsNil(o.SecretKey) { - toSerialize["secretKey"] = o.SecretKey - } - toSerialize["createdAt"] = o.CreatedAt - return toSerialize, nil -} - -func (o *WebhookResourceAttributes) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "url", - "description", - "createdAt", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookResourceAttributes := _WebhookResourceAttributes{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookResourceAttributes) - - if err != nil { - return err - } - - *o = WebhookResourceAttributes(varWebhookResourceAttributes) - - return err -} - -type NullableWebhookResourceAttributes struct { - value *WebhookResourceAttributes - isSet bool -} - -func (v NullableWebhookResourceAttributes) Get() *WebhookResourceAttributes { - return v.value -} - -func (v *NullableWebhookResourceAttributes) Set(val *WebhookResourceAttributes) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookResourceAttributes) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookResourceAttributes) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookResourceAttributes(val *WebhookResourceAttributes) *NullableWebhookResourceAttributes { - return &NullableWebhookResourceAttributes{value: val, isSet: true} -} - -func (v NullableWebhookResourceAttributes) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookResourceAttributes) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/model_webhook_resource_relationships.go b/expense-manager/openapi/model_webhook_resource_relationships.go deleted file mode 100644 index 004f4c2..0000000 --- a/expense-manager/openapi/model_webhook_resource_relationships.go +++ /dev/null @@ -1,156 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "bytes" - "encoding/json" - "fmt" -) - -// checks if the WebhookResourceRelationships type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &WebhookResourceRelationships{} - -// WebhookResourceRelationships struct for WebhookResourceRelationships -type WebhookResourceRelationships struct { - Logs AccountResourceRelationshipsTransactions `json:"logs"` -} - -type _WebhookResourceRelationships WebhookResourceRelationships - -// NewWebhookResourceRelationships instantiates a new WebhookResourceRelationships object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewWebhookResourceRelationships(logs AccountResourceRelationshipsTransactions) *WebhookResourceRelationships { - this := WebhookResourceRelationships{} - this.Logs = logs - return &this -} - -// NewWebhookResourceRelationshipsWithDefaults instantiates a new WebhookResourceRelationships object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewWebhookResourceRelationshipsWithDefaults() *WebhookResourceRelationships { - this := WebhookResourceRelationships{} - return &this -} - -// GetLogs returns the Logs field value -func (o *WebhookResourceRelationships) GetLogs() AccountResourceRelationshipsTransactions { - if o == nil { - var ret AccountResourceRelationshipsTransactions - return ret - } - - return o.Logs -} - -// GetLogsOk returns a tuple with the Logs field value -// and a boolean to check if the value has been set. -func (o *WebhookResourceRelationships) GetLogsOk() (*AccountResourceRelationshipsTransactions, bool) { - if o == nil { - return nil, false - } - return &o.Logs, true -} - -// SetLogs sets field value -func (o *WebhookResourceRelationships) SetLogs(v AccountResourceRelationshipsTransactions) { - o.Logs = v -} - -func (o WebhookResourceRelationships) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o WebhookResourceRelationships) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["logs"] = o.Logs - return toSerialize, nil -} - -func (o *WebhookResourceRelationships) UnmarshalJSON(data []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "logs", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(data, &allProperties) - - if err != nil { - return err - } - - for _, requiredProperty := range requiredProperties { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varWebhookResourceRelationships := _WebhookResourceRelationships{} - - decoder := json.NewDecoder(bytes.NewReader(data)) - decoder.DisallowUnknownFields() - err = decoder.Decode(&varWebhookResourceRelationships) - - if err != nil { - return err - } - - *o = WebhookResourceRelationships(varWebhookResourceRelationships) - - return err -} - -type NullableWebhookResourceRelationships struct { - value *WebhookResourceRelationships - isSet bool -} - -func (v NullableWebhookResourceRelationships) Get() *WebhookResourceRelationships { - return v.value -} - -func (v *NullableWebhookResourceRelationships) Set(val *WebhookResourceRelationships) { - v.value = val - v.isSet = true -} - -func (v NullableWebhookResourceRelationships) IsSet() bool { - return v.isSet -} - -func (v *NullableWebhookResourceRelationships) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableWebhookResourceRelationships(val *WebhookResourceRelationships) *NullableWebhookResourceRelationships { - return &NullableWebhookResourceRelationships{value: val, isSet: true} -} - -func (v NullableWebhookResourceRelationships) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableWebhookResourceRelationships) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/expense-manager/openapi/response.go b/expense-manager/openapi/response.go deleted file mode 100644 index 9e6eb5f..0000000 --- a/expense-manager/openapi/response.go +++ /dev/null @@ -1,47 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "net/http" -) - -// APIResponse stores the API response returned by the server. -type APIResponse struct { - *http.Response `json:"-"` - Message string `json:"message,omitempty"` - // Operation is the name of the OpenAPI operation. - Operation string `json:"operation,omitempty"` - // RequestURL is the request URL. This value is always available, even if the - // embedded *http.Response is nil. - RequestURL string `json:"url,omitempty"` - // Method is the HTTP method used for the request. This value is always - // available, even if the embedded *http.Response is nil. - Method string `json:"method,omitempty"` - // Payload holds the contents of the response body (which may be nil or empty). - // This is provided here as the raw response.Body() reader will have already - // been drained. - Payload []byte `json:"-"` -} - -// NewAPIResponse returns a new APIResponse object. -func NewAPIResponse(r *http.Response) *APIResponse { - - response := &APIResponse{Response: r} - return response -} - -// NewAPIResponseWithError returns a new APIResponse object with the provided error message. -func NewAPIResponseWithError(errorMessage string) *APIResponse { - - response := &APIResponse{Message: errorMessage} - return response -} diff --git a/expense-manager/openapi/test/api_accounts_test.go b/expense-manager/openapi/test/api_accounts_test.go deleted file mode 100644 index f1d9a3a..0000000 --- a/expense-manager/openapi/test/api_accounts_test.go +++ /dev/null @@ -1,52 +0,0 @@ -/* -Up API - -Testing AccountsAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "context" - "testing" - - openapiclient - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_openapi_AccountsAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test AccountsAPIService AccountsGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.AccountsAPI.AccountsGet(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test AccountsAPIService AccountsIdGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.AccountsAPI.AccountsIdGet(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/expense-manager/openapi/test/api_categories_test.go b/expense-manager/openapi/test/api_categories_test.go deleted file mode 100644 index be5a464..0000000 --- a/expense-manager/openapi/test/api_categories_test.go +++ /dev/null @@ -1,65 +0,0 @@ -/* -Up API - -Testing CategoriesAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "context" - "testing" - - openapiclient "github.com/ESteanes/expense-manager" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_openapi_CategoriesAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test CategoriesAPIService CategoriesGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.CategoriesAPI.CategoriesGet(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CategoriesAPIService CategoriesIdGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.CategoriesAPI.CategoriesIdGet(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test CategoriesAPIService TransactionsTransactionIdRelationshipsCategoryPatch", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var transactionId string - - httpRes, err := apiClient.CategoriesAPI.TransactionsTransactionIdRelationshipsCategoryPatch(context.Background(), transactionId).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/expense-manager/openapi/test/api_tags_test.go b/expense-manager/openapi/test/api_tags_test.go deleted file mode 100644 index d95a1fc..0000000 --- a/expense-manager/openapi/test/api_tags_test.go +++ /dev/null @@ -1,64 +0,0 @@ -/* -Up API - -Testing TagsAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "context" - "testing" - - openapiclient "github.com/ESteanes/expense-manager" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_openapi_TagsAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test TagsAPIService TagsGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TagsAPI.TagsGet(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TagsAPIService TransactionsTransactionIdRelationshipsTagsDelete", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var transactionId string - - httpRes, err := apiClient.TagsAPI.TransactionsTransactionIdRelationshipsTagsDelete(context.Background(), transactionId).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TagsAPIService TransactionsTransactionIdRelationshipsTagsPost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var transactionId string - - httpRes, err := apiClient.TagsAPI.TransactionsTransactionIdRelationshipsTagsPost(context.Background(), transactionId).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/expense-manager/openapi/test/api_transactions_test.go b/expense-manager/openapi/test/api_transactions_test.go deleted file mode 100644 index 8e0f0ce..0000000 --- a/expense-manager/openapi/test/api_transactions_test.go +++ /dev/null @@ -1,66 +0,0 @@ -/* -Up API - -Testing TransactionsAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "context" - "testing" - - openapiclient "github.com/ESteanes/expense-manager" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_openapi_TransactionsAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test TransactionsAPIService AccountsAccountIdTransactionsGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var accountId string - - resp, httpRes, err := apiClient.TransactionsAPI.AccountsAccountIdTransactionsGet(context.Background(), accountId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TransactionsAPIService TransactionsGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.TransactionsAPI.TransactionsGet(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test TransactionsAPIService TransactionsIdGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.TransactionsAPI.TransactionsIdGet(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/expense-manager/openapi/test/api_utility_endpoints_test.go b/expense-manager/openapi/test/api_utility_endpoints_test.go deleted file mode 100644 index cab0bb0..0000000 --- a/expense-manager/openapi/test/api_utility_endpoints_test.go +++ /dev/null @@ -1,38 +0,0 @@ -/* -Up API - -Testing UtilityEndpointsAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "context" - "testing" - - openapiclient "github.com/ESteanes/expense-manager" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_openapi_UtilityEndpointsAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test UtilityEndpointsAPIService UtilPingGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.UtilityEndpointsAPI.UtilPingGet(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/expense-manager/openapi/test/api_webhooks_test.go b/expense-manager/openapi/test/api_webhooks_test.go deleted file mode 100644 index 7089524..0000000 --- a/expense-manager/openapi/test/api_webhooks_test.go +++ /dev/null @@ -1,105 +0,0 @@ -/* -Up API - -Testing WebhooksAPIService - -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); - -package openapi - -import ( - "context" - "testing" - - openapiclient "github.com/ESteanes/expense-manager" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/require" -) - -func Test_openapi_WebhooksAPIService(t *testing.T) { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - - t.Run("Test WebhooksAPIService WebhooksGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.WebhooksAPI.WebhooksGet(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WebhooksAPIService WebhooksIdDelete", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - httpRes, err := apiClient.WebhooksAPI.WebhooksIdDelete(context.Background(), id).Execute() - - require.Nil(t, err) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WebhooksAPIService WebhooksIdGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var id string - - resp, httpRes, err := apiClient.WebhooksAPI.WebhooksIdGet(context.Background(), id).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WebhooksAPIService WebhooksPost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.WebhooksAPI.WebhooksPost(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WebhooksAPIService WebhooksWebhookIdLogsGet", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var webhookId string - - resp, httpRes, err := apiClient.WebhooksAPI.WebhooksWebhookIdLogsGet(context.Background(), webhookId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - - t.Run("Test WebhooksAPIService WebhooksWebhookIdPingPost", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var webhookId string - - resp, httpRes, err := apiClient.WebhooksAPI.WebhooksWebhookIdPingPost(context.Background(), webhookId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - -} diff --git a/expense-manager/openapi/utils.go b/expense-manager/openapi/utils.go deleted file mode 100644 index 9c6157d..0000000 --- a/expense-manager/openapi/utils.go +++ /dev/null @@ -1,347 +0,0 @@ -/* -Up API - -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. - -API version: v1 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package openapi - -import ( - "encoding/json" - "reflect" - "time" -) - -// PtrBool is a helper routine that returns a pointer to given boolean value. -func PtrBool(v bool) *bool { return &v } - -// PtrInt is a helper routine that returns a pointer to given integer value. -func PtrInt(v int) *int { return &v } - -// PtrInt32 is a helper routine that returns a pointer to given integer value. -func PtrInt32(v int32) *int32 { return &v } - -// PtrInt64 is a helper routine that returns a pointer to given integer value. -func PtrInt64(v int64) *int64 { return &v } - -// PtrFloat32 is a helper routine that returns a pointer to given float value. -func PtrFloat32(v float32) *float32 { return &v } - -// PtrFloat64 is a helper routine that returns a pointer to given float value. -func PtrFloat64(v float64) *float64 { return &v } - -// PtrString is a helper routine that returns a pointer to given string value. -func PtrString(v string) *string { return &v } - -// PtrTime is helper routine that returns a pointer to given Time value. -func PtrTime(v time.Time) *time.Time { return &v } - -type NullableBool struct { - value *bool - isSet bool -} - -func (v NullableBool) Get() *bool { - return v.value -} - -func (v *NullableBool) Set(val *bool) { - v.value = val - v.isSet = true -} - -func (v NullableBool) IsSet() bool { - return v.isSet -} - -func (v *NullableBool) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableBool(val *bool) *NullableBool { - return &NullableBool{value: val, isSet: true} -} - -func (v NullableBool) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableBool) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt struct { - value *int - isSet bool -} - -func (v NullableInt) Get() *int { - return v.value -} - -func (v *NullableInt) Set(val *int) { - v.value = val - v.isSet = true -} - -func (v NullableInt) IsSet() bool { - return v.isSet -} - -func (v *NullableInt) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt(val *int) *NullableInt { - return &NullableInt{value: val, isSet: true} -} - -func (v NullableInt) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt32 struct { - value *int32 - isSet bool -} - -func (v NullableInt32) Get() *int32 { - return v.value -} - -func (v *NullableInt32) Set(val *int32) { - v.value = val - v.isSet = true -} - -func (v NullableInt32) IsSet() bool { - return v.isSet -} - -func (v *NullableInt32) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt32(val *int32) *NullableInt32 { - return &NullableInt32{value: val, isSet: true} -} - -func (v NullableInt32) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt32) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableInt64 struct { - value *int64 - isSet bool -} - -func (v NullableInt64) Get() *int64 { - return v.value -} - -func (v *NullableInt64) Set(val *int64) { - v.value = val - v.isSet = true -} - -func (v NullableInt64) IsSet() bool { - return v.isSet -} - -func (v *NullableInt64) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInt64(val *int64) *NullableInt64 { - return &NullableInt64{value: val, isSet: true} -} - -func (v NullableInt64) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInt64) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableFloat32 struct { - value *float32 - isSet bool -} - -func (v NullableFloat32) Get() *float32 { - return v.value -} - -func (v *NullableFloat32) Set(val *float32) { - v.value = val - v.isSet = true -} - -func (v NullableFloat32) IsSet() bool { - return v.isSet -} - -func (v *NullableFloat32) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFloat32(val *float32) *NullableFloat32 { - return &NullableFloat32{value: val, isSet: true} -} - -func (v NullableFloat32) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFloat32) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableFloat64 struct { - value *float64 - isSet bool -} - -func (v NullableFloat64) Get() *float64 { - return v.value -} - -func (v *NullableFloat64) Set(val *float64) { - v.value = val - v.isSet = true -} - -func (v NullableFloat64) IsSet() bool { - return v.isSet -} - -func (v *NullableFloat64) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFloat64(val *float64) *NullableFloat64 { - return &NullableFloat64{value: val, isSet: true} -} - -func (v NullableFloat64) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFloat64) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableString struct { - value *string - isSet bool -} - -func (v NullableString) Get() *string { - return v.value -} - -func (v *NullableString) Set(val *string) { - v.value = val - v.isSet = true -} - -func (v NullableString) IsSet() bool { - return v.isSet -} - -func (v *NullableString) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableString(val *string) *NullableString { - return &NullableString{value: val, isSet: true} -} - -func (v NullableString) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableString) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -type NullableTime struct { - value *time.Time - isSet bool -} - -func (v NullableTime) Get() *time.Time { - return v.value -} - -func (v *NullableTime) Set(val *time.Time) { - v.value = val - v.isSet = true -} - -func (v NullableTime) IsSet() bool { - return v.isSet -} - -func (v *NullableTime) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableTime(val *time.Time) *NullableTime { - return &NullableTime{value: val, isSet: true} -} - -func (v NullableTime) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableTime) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// IsNil checks if an input is nil -func IsNil(i interface{}) bool { - if i == nil { - return true - } - switch reflect.TypeOf(i).Kind() { - case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: - return reflect.ValueOf(i).IsNil() - case reflect.Array: - return reflect.ValueOf(i).IsZero() - } - return false -} - -type MappedNullable interface { - ToMap() (map[string]interface{}, error) -}