From 4a17fcf0fcd5f4b34394f8d6495d5b082cc4eec5 Mon Sep 17 00:00:00 2001 From: devexperience Date: Tue, 17 Sep 2024 18:04:24 +0000 Subject: [PATCH] Generated version 0.38.0 This commit was automatically created by a GitHub Action to generate version 0.38.0 of this library. --- .openapi-generator/FILES | 26 + api_microdeposits.go | 555 ++++++ api_transactions.go | 142 ++ client.go | 6 + configuration.go | 2 +- docs/MicrodepositRequest.md | 197 ++ docs/MicrodepositRequestBody.md | 56 + docs/MicrodepositResponse.md | 394 ++++ docs/MicrodepositResponseBody.md | 56 + docs/MicrodepositVerifyRequest.md | 82 + docs/MicrodepositVerifyRequestBody.md | 56 + docs/MicrodepositsAPI.md | 371 ++++ docs/MicrodepositsResponseBody.md | 82 + docs/TransactionCreateRequest.md | 322 ++++ docs/TransactionCreateRequestBody.md | 56 + docs/TransactionCreateResponseBody.md | 1584 ++++++++++++++++ docs/TransactionsAPI.md | 84 + model_microdeposit_request.go | 315 ++++ model_microdeposit_request_body.go | 126 ++ model_microdeposit_response.go | 594 ++++++ model_microdeposit_response_body.go | 126 ++ model_microdeposit_verify_request.go | 162 ++ model_microdeposit_verify_request_body.go | 126 ++ model_microdeposits_response_body.go | 162 ++ model_transaction_create_request.go | 489 +++++ model_transaction_create_request_body.go | 126 ++ model_transaction_create_response_body.go | 2084 +++++++++++++++++++++ openapi/config.yml | 2 +- test/api_microdeposits_test.go | 96 + test/api_transactions_test.go | 40 + 30 files changed, 8517 insertions(+), 2 deletions(-) create mode 100644 api_microdeposits.go create mode 100644 api_transactions.go create mode 100644 docs/MicrodepositRequest.md create mode 100644 docs/MicrodepositRequestBody.md create mode 100644 docs/MicrodepositResponse.md create mode 100644 docs/MicrodepositResponseBody.md create mode 100644 docs/MicrodepositVerifyRequest.md create mode 100644 docs/MicrodepositVerifyRequestBody.md create mode 100644 docs/MicrodepositsAPI.md create mode 100644 docs/MicrodepositsResponseBody.md create mode 100644 docs/TransactionCreateRequest.md create mode 100644 docs/TransactionCreateRequestBody.md create mode 100644 docs/TransactionCreateResponseBody.md create mode 100644 docs/TransactionsAPI.md create mode 100644 model_microdeposit_request.go create mode 100644 model_microdeposit_request_body.go create mode 100644 model_microdeposit_response.go create mode 100644 model_microdeposit_response_body.go create mode 100644 model_microdeposit_verify_request.go create mode 100644 model_microdeposit_verify_request_body.go create mode 100644 model_microdeposits_response_body.go create mode 100644 model_transaction_create_request.go create mode 100644 model_transaction_create_request_body.go create mode 100644 model_transaction_create_response_body.go create mode 100644 test/api_microdeposits_test.go create mode 100644 test/api_transactions_test.go diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 91bb993..286c077 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -4,8 +4,10 @@ README.md api_budgets.go api_goals.go api_insights.go +api_microdeposits.go api_mx_platform.go api_spending_plan.go +api_transactions.go client.go configuration.go docs/AccountCreateRequest.md @@ -99,6 +101,14 @@ docs/MerchantLocationResponseBody.md docs/MerchantResponse.md docs/MerchantResponseBody.md docs/MerchantsResponseBody.md +docs/MicrodepositRequest.md +docs/MicrodepositRequestBody.md +docs/MicrodepositResponse.md +docs/MicrodepositResponseBody.md +docs/MicrodepositVerifyRequest.md +docs/MicrodepositVerifyRequestBody.md +docs/MicrodepositsAPI.md +docs/MicrodepositsResponseBody.md docs/MonthlyCashFlowProfileRequest.md docs/MonthlyCashFlowProfileRequestBody.md docs/MonthlyCashFlowResponse.md @@ -154,6 +164,9 @@ docs/TagsResponseBody.md docs/TaxDocumentResponse.md docs/TaxDocumentResponseBody.md docs/TaxDocumentsResponseBody.md +docs/TransactionCreateRequest.md +docs/TransactionCreateRequestBody.md +docs/TransactionCreateResponseBody.md docs/TransactionResponse.md docs/TransactionResponseBody.md docs/TransactionRuleCreateRequest.md @@ -165,6 +178,7 @@ docs/TransactionRuleUpdateRequestBody.md docs/TransactionRulesResponseBody.md docs/TransactionUpdateRequest.md docs/TransactionUpdateRequestBody.md +docs/TransactionsAPI.md docs/TransactionsResponseBody.md docs/UpdateGoalRequest.md docs/UpdateGoalRequestBody.md @@ -269,6 +283,13 @@ model_merchant_location_response_body.go model_merchant_response.go model_merchant_response_body.go model_merchants_response_body.go +model_microdeposit_request.go +model_microdeposit_request_body.go +model_microdeposit_response.go +model_microdeposit_response_body.go +model_microdeposit_verify_request.go +model_microdeposit_verify_request_body.go +model_microdeposits_response_body.go model_monthly_cash_flow_profile_request.go model_monthly_cash_flow_profile_request_body.go model_monthly_cash_flow_response.go @@ -322,6 +343,9 @@ model_tags_response_body.go model_tax_document_response.go model_tax_document_response_body.go model_tax_documents_response_body.go +model_transaction_create_request.go +model_transaction_create_request_body.go +model_transaction_create_response_body.go model_transaction_response.go model_transaction_response_body.go model_transaction_rule_create_request.go @@ -351,6 +375,8 @@ response.go test/api_budgets_test.go test/api_goals_test.go test/api_insights_test.go +test/api_microdeposits_test.go test/api_mx_platform_test.go test/api_spending_plan_test.go +test/api_transactions_test.go utils.go diff --git a/api_microdeposits.go b/api_microdeposits.go new file mode 100644 index 0000000..e997faf --- /dev/null +++ b/api_microdeposits.go @@ -0,0 +1,555 @@ +/* +MX Platform API + +The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions. + +API version: 0.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package mxplatformgo + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// MicrodepositsAPIService MicrodepositsAPI service +type MicrodepositsAPIService service + +type ApiMicroDepositsMicrodepositGuidVerifyPutRequest struct { + ctx context.Context + ApiService *MicrodepositsAPIService + microdepositGuid string + microdepositVerifyRequestBody *MicrodepositVerifyRequestBody +} + +func (r ApiMicroDepositsMicrodepositGuidVerifyPutRequest) MicrodepositVerifyRequestBody(microdepositVerifyRequestBody MicrodepositVerifyRequestBody) ApiMicroDepositsMicrodepositGuidVerifyPutRequest { + r.microdepositVerifyRequestBody = µdepositVerifyRequestBody + return r +} + +func (r ApiMicroDepositsMicrodepositGuidVerifyPutRequest) Execute() (*MicrodepositResponseBody, *http.Response, error) { + return r.ApiService.MicroDepositsMicrodepositGuidVerifyPutExecute(r) +} + +/* +MicroDepositsMicrodepositGuidVerifyPut Verify a Microdeposit + +Use this endpoint to verify the amounts deposited into the account during a microdeposit verification. The verification has not successfully completed until the `status` is `VERIFIED`. Poll the `/users/{user_guid}/micro_deposits/{micro_deposit_guid}` (read microdeposit) endpoint until you see this status or an error state. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param microdepositGuid The unique identifier for the microdeposit. Defined by MX. + @return ApiMicroDepositsMicrodepositGuidVerifyPutRequest +*/ +func (a *MicrodepositsAPIService) MicroDepositsMicrodepositGuidVerifyPut(ctx context.Context, microdepositGuid string) ApiMicroDepositsMicrodepositGuidVerifyPutRequest { + return ApiMicroDepositsMicrodepositGuidVerifyPutRequest{ + ApiService: a, + ctx: ctx, + microdepositGuid: microdepositGuid, + } +} + +// Execute executes the request +// @return MicrodepositResponseBody +func (a *MicrodepositsAPIService) MicroDepositsMicrodepositGuidVerifyPutExecute(r ApiMicroDepositsMicrodepositGuidVerifyPutRequest) (*MicrodepositResponseBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MicrodepositResponseBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MicrodepositsAPIService.MicroDepositsMicrodepositGuidVerifyPut") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/micro_deposits/{microdeposit_guid}/verify" + localVarPath = strings.Replace(localVarPath, "{"+"microdeposit_guid"+"}", url.PathEscape(parameterValueToString(r.microdepositGuid, "microdepositGuid")), -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{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.microdepositVerifyRequestBody + 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 ApiUsersUserGuidMicroDepositsGetRequest struct { + ctx context.Context + ApiService *MicrodepositsAPIService + userGuid string +} + +func (r ApiUsersUserGuidMicroDepositsGetRequest) Execute() (*MicrodepositsResponseBody, *http.Response, error) { + return r.ApiService.UsersUserGuidMicroDepositsGetExecute(r) +} + +/* +UsersUserGuidMicroDepositsGet List all microdeposits for a user + +Use this endpoint to read the attributes of a specific microdeposit according to its unique GUID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGuid The unique identifier for the user. Defined by MX. + @return ApiUsersUserGuidMicroDepositsGetRequest +*/ +func (a *MicrodepositsAPIService) UsersUserGuidMicroDepositsGet(ctx context.Context, userGuid string) ApiUsersUserGuidMicroDepositsGetRequest { + return ApiUsersUserGuidMicroDepositsGetRequest{ + ApiService: a, + ctx: ctx, + userGuid: userGuid, + } +} + +// Execute executes the request +// @return MicrodepositsResponseBody +func (a *MicrodepositsAPIService) UsersUserGuidMicroDepositsGetExecute(r ApiUsersUserGuidMicroDepositsGetRequest) (*MicrodepositsResponseBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MicrodepositsResponseBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MicrodepositsAPIService.UsersUserGuidMicroDepositsGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/users/{user_guid}/micro_deposits" + localVarPath = strings.Replace(localVarPath, "{"+"user_guid"+"}", url.PathEscape(parameterValueToString(r.userGuid, "userGuid")), -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 ApiUsersUserGuidMicroDepositsMicroDepositGuidDeleteRequest struct { + ctx context.Context + ApiService *MicrodepositsAPIService + microDepositGuid string + userGuid string +} + +func (r ApiUsersUserGuidMicroDepositsMicroDepositGuidDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.UsersUserGuidMicroDepositsMicroDepositGuidDeleteExecute(r) +} + +/* +UsersUserGuidMicroDepositsMicroDepositGuidDelete Delete a microdeposit + +Use this endpoint to delete the specified microdeposit. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param microDepositGuid The unique identifier for the microdeposit. Defined by MX. + @param userGuid The unique id for a `user`. + @return ApiUsersUserGuidMicroDepositsMicroDepositGuidDeleteRequest +*/ +func (a *MicrodepositsAPIService) UsersUserGuidMicroDepositsMicroDepositGuidDelete(ctx context.Context, microDepositGuid string, userGuid string) ApiUsersUserGuidMicroDepositsMicroDepositGuidDeleteRequest { + return ApiUsersUserGuidMicroDepositsMicroDepositGuidDeleteRequest{ + ApiService: a, + ctx: ctx, + microDepositGuid: microDepositGuid, + userGuid: userGuid, + } +} + +// Execute executes the request +func (a *MicrodepositsAPIService) UsersUserGuidMicroDepositsMicroDepositGuidDeleteExecute(r ApiUsersUserGuidMicroDepositsMicroDepositGuidDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MicrodepositsAPIService.UsersUserGuidMicroDepositsMicroDepositGuidDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/users/{user_guid}/micro_deposits/{micro_deposit_guid}" + localVarPath = strings.Replace(localVarPath, "{"+"micro_deposit_guid"+"}", url.PathEscape(parameterValueToString(r.microDepositGuid, "microDepositGuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user_guid"+"}", url.PathEscape(parameterValueToString(r.userGuid, "userGuid")), -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 ApiUsersUserGuidMicroDepositsMicroDepositGuidGetRequest struct { + ctx context.Context + ApiService *MicrodepositsAPIService + userGuid string + microDepositGuid string +} + +func (r ApiUsersUserGuidMicroDepositsMicroDepositGuidGetRequest) Execute() (*MicrodepositResponseBody, *http.Response, error) { + return r.ApiService.UsersUserGuidMicroDepositsMicroDepositGuidGetExecute(r) +} + +/* +UsersUserGuidMicroDepositsMicroDepositGuidGet Read a microdeposit for a user + +Use this endpoint to read the attributes of a specific microdeposit according to its unique GUID.

Webhooks for microdeposit status changes are triggered when a status changes. The actual status of the microdeposit guid updates every minute. You may force a status update by calling the read microdeposit endpoint. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGuid The unique identifier for the user. Defined by MX. + @param microDepositGuid The unique identifier for the microdeposit. Defined by MX. + @return ApiUsersUserGuidMicroDepositsMicroDepositGuidGetRequest +*/ +func (a *MicrodepositsAPIService) UsersUserGuidMicroDepositsMicroDepositGuidGet(ctx context.Context, userGuid string, microDepositGuid string) ApiUsersUserGuidMicroDepositsMicroDepositGuidGetRequest { + return ApiUsersUserGuidMicroDepositsMicroDepositGuidGetRequest{ + ApiService: a, + ctx: ctx, + userGuid: userGuid, + microDepositGuid: microDepositGuid, + } +} + +// Execute executes the request +// @return MicrodepositResponseBody +func (a *MicrodepositsAPIService) UsersUserGuidMicroDepositsMicroDepositGuidGetExecute(r ApiUsersUserGuidMicroDepositsMicroDepositGuidGetRequest) (*MicrodepositResponseBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MicrodepositResponseBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MicrodepositsAPIService.UsersUserGuidMicroDepositsMicroDepositGuidGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/users/{user_guid}/micro_deposits/{micro_deposit_guid}" + localVarPath = strings.Replace(localVarPath, "{"+"user_guid"+"}", url.PathEscape(parameterValueToString(r.userGuid, "userGuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"micro_deposit_guid"+"}", url.PathEscape(parameterValueToString(r.microDepositGuid, "microDepositGuid")), -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 ApiUsersUserGuidMicroDepositsPostRequest struct { + ctx context.Context + ApiService *MicrodepositsAPIService + userGuid string + microdepositRequestBody *MicrodepositRequestBody +} + +func (r ApiUsersUserGuidMicroDepositsPostRequest) MicrodepositRequestBody(microdepositRequestBody MicrodepositRequestBody) ApiUsersUserGuidMicroDepositsPostRequest { + r.microdepositRequestBody = µdepositRequestBody + return r +} + +func (r ApiUsersUserGuidMicroDepositsPostRequest) Execute() (*MicrodepositResponseBody, *http.Response, error) { + return r.ApiService.UsersUserGuidMicroDepositsPostExecute(r) +} + +/* +UsersUserGuidMicroDepositsPost Create a microdeposit + +Use this endpoint to create a microdeposit. The response will include the new microdeposit record with a status of INITIATED. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGuid The unique identifier for the user. Defined by MX. + @return ApiUsersUserGuidMicroDepositsPostRequest +*/ +func (a *MicrodepositsAPIService) UsersUserGuidMicroDepositsPost(ctx context.Context, userGuid string) ApiUsersUserGuidMicroDepositsPostRequest { + return ApiUsersUserGuidMicroDepositsPostRequest{ + ApiService: a, + ctx: ctx, + userGuid: userGuid, + } +} + +// Execute executes the request +// @return MicrodepositResponseBody +func (a *MicrodepositsAPIService) UsersUserGuidMicroDepositsPostExecute(r ApiUsersUserGuidMicroDepositsPostRequest) (*MicrodepositResponseBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MicrodepositResponseBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MicrodepositsAPIService.UsersUserGuidMicroDepositsPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/users/{user_guid}/micro_deposits" + localVarPath = strings.Replace(localVarPath, "{"+"user_guid"+"}", url.PathEscape(parameterValueToString(r.userGuid, "userGuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.microdepositRequestBody == nil { + return localVarReturnValue, nil, reportError("microdepositRequestBody is required and must be specified") + } + + // 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.microdepositRequestBody + 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/api_transactions.go b/api_transactions.go new file mode 100644 index 0000000..d84dbc5 --- /dev/null +++ b/api_transactions.go @@ -0,0 +1,142 @@ +/* +MX Platform API + +The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions. + +API version: 0.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package mxplatformgo + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// TransactionsAPIService TransactionsAPI service +type TransactionsAPIService service + +type ApiUsersUserGuidAccountsAccountGuidTransactionsPostRequest struct { + ctx context.Context + ApiService *TransactionsAPIService + userGuid string + accountGuid string + transactionCreateRequestBody *TransactionCreateRequestBody +} + +func (r ApiUsersUserGuidAccountsAccountGuidTransactionsPostRequest) TransactionCreateRequestBody(transactionCreateRequestBody TransactionCreateRequestBody) ApiUsersUserGuidAccountsAccountGuidTransactionsPostRequest { + r.transactionCreateRequestBody = &transactionCreateRequestBody + return r +} + +func (r ApiUsersUserGuidAccountsAccountGuidTransactionsPostRequest) Execute() (*TransactionCreateResponseBody, *http.Response, error) { + return r.ApiService.UsersUserGuidAccountsAccountGuidTransactionsPostExecute(r) +} + +/* +UsersUserGuidAccountsAccountGuidTransactionsPost Create manual transaction + +This endpoint can only be used to create manual transactions that are under a manual account. This endpoint accepts the optional MX-Skip-Webhook header and skip_webhook parameter. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userGuid The unique identifier for the user. + @param accountGuid The unique identifier for the account. + @return ApiUsersUserGuidAccountsAccountGuidTransactionsPostRequest +*/ +func (a *TransactionsAPIService) UsersUserGuidAccountsAccountGuidTransactionsPost(ctx context.Context, userGuid string, accountGuid string) ApiUsersUserGuidAccountsAccountGuidTransactionsPostRequest { + return ApiUsersUserGuidAccountsAccountGuidTransactionsPostRequest{ + ApiService: a, + ctx: ctx, + userGuid: userGuid, + accountGuid: accountGuid, + } +} + +// Execute executes the request +// @return TransactionCreateResponseBody +func (a *TransactionsAPIService) UsersUserGuidAccountsAccountGuidTransactionsPostExecute(r ApiUsersUserGuidAccountsAccountGuidTransactionsPostRequest) (*TransactionCreateResponseBody, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TransactionCreateResponseBody + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TransactionsAPIService.UsersUserGuidAccountsAccountGuidTransactionsPost") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/users/{user_guid}/accounts/{account_guid}/transactions" + localVarPath = strings.Replace(localVarPath, "{"+"user_guid"+"}", url.PathEscape(parameterValueToString(r.userGuid, "userGuid")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"account_guid"+"}", url.PathEscape(parameterValueToString(r.accountGuid, "accountGuid")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.transactionCreateRequestBody == nil { + return localVarReturnValue, nil, reportError("transactionCreateRequestBody is required and must be specified") + } + + // 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/vnd.mx.api.v1+json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.transactionCreateRequestBody + 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/client.go b/client.go index 99d49e8..8c6a588 100644 --- a/client.go +++ b/client.go @@ -57,9 +57,13 @@ type APIClient struct { InsightsAPI *InsightsAPIService + MicrodepositsAPI *MicrodepositsAPIService + MxPlatformAPI *MxPlatformAPIService SpendingPlanAPI *SpendingPlanAPIService + + TransactionsAPI *TransactionsAPIService } type service struct { @@ -96,8 +100,10 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.BudgetsAPI = (*BudgetsAPIService)(&c.common) c.GoalsAPI = (*GoalsAPIService)(&c.common) c.InsightsAPI = (*InsightsAPIService)(&c.common) + c.MicrodepositsAPI = (*MicrodepositsAPIService)(&c.common) c.MxPlatformAPI = (*MxPlatformAPIService)(&c.common) c.SpendingPlanAPI = (*SpendingPlanAPIService)(&c.common) + c.TransactionsAPI = (*TransactionsAPIService)(&c.common) return c } diff --git a/configuration.go b/configuration.go index dcce9d3..e3fd840 100644 --- a/configuration.go +++ b/configuration.go @@ -89,7 +89,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/0.37.0/go", + UserAgent: "OpenAPI-Generator/0.38.0/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/MicrodepositRequest.md b/docs/MicrodepositRequest.md new file mode 100644 index 0000000..1d68aed --- /dev/null +++ b/docs/MicrodepositRequest.md @@ -0,0 +1,197 @@ +# MicrodepositRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountNumber** | **string** | | +**AccountType** | **string** | | +**RoutingNumber** | **string** | | +**AccountName** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**FirstName** | Pointer to **string** | | [optional] +**LastName** | Pointer to **string** | | [optional] + +## Methods + +### NewMicrodepositRequest + +`func NewMicrodepositRequest(accountNumber string, accountType string, routingNumber string, ) *MicrodepositRequest` + +NewMicrodepositRequest instantiates a new MicrodepositRequest 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 + +### NewMicrodepositRequestWithDefaults + +`func NewMicrodepositRequestWithDefaults() *MicrodepositRequest` + +NewMicrodepositRequestWithDefaults instantiates a new MicrodepositRequest 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 + +### GetAccountNumber + +`func (o *MicrodepositRequest) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *MicrodepositRequest) GetAccountNumberOk() (*string, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *MicrodepositRequest) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + + +### GetAccountType + +`func (o *MicrodepositRequest) GetAccountType() string` + +GetAccountType returns the AccountType field if non-nil, zero value otherwise. + +### GetAccountTypeOk + +`func (o *MicrodepositRequest) GetAccountTypeOk() (*string, 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 *MicrodepositRequest) SetAccountType(v string)` + +SetAccountType sets AccountType field to given value. + + +### GetRoutingNumber + +`func (o *MicrodepositRequest) GetRoutingNumber() string` + +GetRoutingNumber returns the RoutingNumber field if non-nil, zero value otherwise. + +### GetRoutingNumberOk + +`func (o *MicrodepositRequest) GetRoutingNumberOk() (*string, bool)` + +GetRoutingNumberOk returns a tuple with the RoutingNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoutingNumber + +`func (o *MicrodepositRequest) SetRoutingNumber(v string)` + +SetRoutingNumber sets RoutingNumber field to given value. + + +### GetAccountName + +`func (o *MicrodepositRequest) GetAccountName() string` + +GetAccountName returns the AccountName field if non-nil, zero value otherwise. + +### GetAccountNameOk + +`func (o *MicrodepositRequest) GetAccountNameOk() (*string, bool)` + +GetAccountNameOk returns a tuple with the AccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountName + +`func (o *MicrodepositRequest) SetAccountName(v string)` + +SetAccountName sets AccountName field to given value. + +### HasAccountName + +`func (o *MicrodepositRequest) HasAccountName() bool` + +HasAccountName returns a boolean if a field has been set. + +### GetEmail + +`func (o *MicrodepositRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *MicrodepositRequest) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *MicrodepositRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *MicrodepositRequest) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetFirstName + +`func (o *MicrodepositRequest) GetFirstName() string` + +GetFirstName returns the FirstName field if non-nil, zero value otherwise. + +### GetFirstNameOk + +`func (o *MicrodepositRequest) GetFirstNameOk() (*string, bool)` + +GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstName + +`func (o *MicrodepositRequest) SetFirstName(v string)` + +SetFirstName sets FirstName field to given value. + +### HasFirstName + +`func (o *MicrodepositRequest) HasFirstName() bool` + +HasFirstName returns a boolean if a field has been set. + +### GetLastName + +`func (o *MicrodepositRequest) GetLastName() string` + +GetLastName returns the LastName field if non-nil, zero value otherwise. + +### GetLastNameOk + +`func (o *MicrodepositRequest) GetLastNameOk() (*string, bool)` + +GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastName + +`func (o *MicrodepositRequest) SetLastName(v string)` + +SetLastName sets LastName field to given value. + +### HasLastName + +`func (o *MicrodepositRequest) HasLastName() bool` + +HasLastName 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/docs/MicrodepositRequestBody.md b/docs/MicrodepositRequestBody.md new file mode 100644 index 0000000..12df3da --- /dev/null +++ b/docs/MicrodepositRequestBody.md @@ -0,0 +1,56 @@ +# MicrodepositRequestBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MicroDeposit** | Pointer to [**MicrodepositRequest**](MicrodepositRequest.md) | | [optional] + +## Methods + +### NewMicrodepositRequestBody + +`func NewMicrodepositRequestBody() *MicrodepositRequestBody` + +NewMicrodepositRequestBody instantiates a new MicrodepositRequestBody 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 + +### NewMicrodepositRequestBodyWithDefaults + +`func NewMicrodepositRequestBodyWithDefaults() *MicrodepositRequestBody` + +NewMicrodepositRequestBodyWithDefaults instantiates a new MicrodepositRequestBody 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 + +### GetMicroDeposit + +`func (o *MicrodepositRequestBody) GetMicroDeposit() MicrodepositRequest` + +GetMicroDeposit returns the MicroDeposit field if non-nil, zero value otherwise. + +### GetMicroDepositOk + +`func (o *MicrodepositRequestBody) GetMicroDepositOk() (*MicrodepositRequest, bool)` + +GetMicroDepositOk returns a tuple with the MicroDeposit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMicroDeposit + +`func (o *MicrodepositRequestBody) SetMicroDeposit(v MicrodepositRequest)` + +SetMicroDeposit sets MicroDeposit field to given value. + +### HasMicroDeposit + +`func (o *MicrodepositRequestBody) HasMicroDeposit() bool` + +HasMicroDeposit 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/docs/MicrodepositResponse.md b/docs/MicrodepositResponse.md new file mode 100644 index 0000000..4c45e74 --- /dev/null +++ b/docs/MicrodepositResponse.md @@ -0,0 +1,394 @@ +# MicrodepositResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountName** | Pointer to **string** | | [optional] +**AccountNumber** | Pointer to **string** | | [optional] +**AccountType** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**FirstName** | Pointer to **string** | | [optional] +**LastName** | Pointer to **string** | | [optional] +**RoutingNumber** | Pointer to **string** | | [optional] +**ErrorMessage** | Pointer to **string** | | [optional] +**Guid** | Pointer to **string** | | [optional] +**InstitutionCode** | Pointer to **string** | | [optional] +**InstitutionName** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **string** | | [optional] +**VerifiedAt** | Pointer to **string** | | [optional] + +## Methods + +### NewMicrodepositResponse + +`func NewMicrodepositResponse() *MicrodepositResponse` + +NewMicrodepositResponse instantiates a new MicrodepositResponse 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 + +### NewMicrodepositResponseWithDefaults + +`func NewMicrodepositResponseWithDefaults() *MicrodepositResponse` + +NewMicrodepositResponseWithDefaults instantiates a new MicrodepositResponse 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 + +### GetAccountName + +`func (o *MicrodepositResponse) GetAccountName() string` + +GetAccountName returns the AccountName field if non-nil, zero value otherwise. + +### GetAccountNameOk + +`func (o *MicrodepositResponse) GetAccountNameOk() (*string, bool)` + +GetAccountNameOk returns a tuple with the AccountName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountName + +`func (o *MicrodepositResponse) SetAccountName(v string)` + +SetAccountName sets AccountName field to given value. + +### HasAccountName + +`func (o *MicrodepositResponse) HasAccountName() bool` + +HasAccountName returns a boolean if a field has been set. + +### GetAccountNumber + +`func (o *MicrodepositResponse) GetAccountNumber() string` + +GetAccountNumber returns the AccountNumber field if non-nil, zero value otherwise. + +### GetAccountNumberOk + +`func (o *MicrodepositResponse) GetAccountNumberOk() (*string, bool)` + +GetAccountNumberOk returns a tuple with the AccountNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountNumber + +`func (o *MicrodepositResponse) SetAccountNumber(v string)` + +SetAccountNumber sets AccountNumber field to given value. + +### HasAccountNumber + +`func (o *MicrodepositResponse) HasAccountNumber() bool` + +HasAccountNumber returns a boolean if a field has been set. + +### GetAccountType + +`func (o *MicrodepositResponse) GetAccountType() string` + +GetAccountType returns the AccountType field if non-nil, zero value otherwise. + +### GetAccountTypeOk + +`func (o *MicrodepositResponse) GetAccountTypeOk() (*string, 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 *MicrodepositResponse) SetAccountType(v string)` + +SetAccountType sets AccountType field to given value. + +### HasAccountType + +`func (o *MicrodepositResponse) HasAccountType() bool` + +HasAccountType returns a boolean if a field has been set. + +### GetEmail + +`func (o *MicrodepositResponse) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *MicrodepositResponse) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *MicrodepositResponse) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *MicrodepositResponse) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetFirstName + +`func (o *MicrodepositResponse) GetFirstName() string` + +GetFirstName returns the FirstName field if non-nil, zero value otherwise. + +### GetFirstNameOk + +`func (o *MicrodepositResponse) GetFirstNameOk() (*string, bool)` + +GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstName + +`func (o *MicrodepositResponse) SetFirstName(v string)` + +SetFirstName sets FirstName field to given value. + +### HasFirstName + +`func (o *MicrodepositResponse) HasFirstName() bool` + +HasFirstName returns a boolean if a field has been set. + +### GetLastName + +`func (o *MicrodepositResponse) GetLastName() string` + +GetLastName returns the LastName field if non-nil, zero value otherwise. + +### GetLastNameOk + +`func (o *MicrodepositResponse) GetLastNameOk() (*string, bool)` + +GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastName + +`func (o *MicrodepositResponse) SetLastName(v string)` + +SetLastName sets LastName field to given value. + +### HasLastName + +`func (o *MicrodepositResponse) HasLastName() bool` + +HasLastName returns a boolean if a field has been set. + +### GetRoutingNumber + +`func (o *MicrodepositResponse) GetRoutingNumber() string` + +GetRoutingNumber returns the RoutingNumber field if non-nil, zero value otherwise. + +### GetRoutingNumberOk + +`func (o *MicrodepositResponse) GetRoutingNumberOk() (*string, bool)` + +GetRoutingNumberOk returns a tuple with the RoutingNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoutingNumber + +`func (o *MicrodepositResponse) SetRoutingNumber(v string)` + +SetRoutingNumber sets RoutingNumber field to given value. + +### HasRoutingNumber + +`func (o *MicrodepositResponse) HasRoutingNumber() bool` + +HasRoutingNumber returns a boolean if a field has been set. + +### GetErrorMessage + +`func (o *MicrodepositResponse) GetErrorMessage() string` + +GetErrorMessage returns the ErrorMessage field if non-nil, zero value otherwise. + +### GetErrorMessageOk + +`func (o *MicrodepositResponse) GetErrorMessageOk() (*string, bool)` + +GetErrorMessageOk returns a tuple with the ErrorMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorMessage + +`func (o *MicrodepositResponse) SetErrorMessage(v string)` + +SetErrorMessage sets ErrorMessage field to given value. + +### HasErrorMessage + +`func (o *MicrodepositResponse) HasErrorMessage() bool` + +HasErrorMessage returns a boolean if a field has been set. + +### GetGuid + +`func (o *MicrodepositResponse) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *MicrodepositResponse) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *MicrodepositResponse) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *MicrodepositResponse) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### GetInstitutionCode + +`func (o *MicrodepositResponse) GetInstitutionCode() string` + +GetInstitutionCode returns the InstitutionCode field if non-nil, zero value otherwise. + +### GetInstitutionCodeOk + +`func (o *MicrodepositResponse) GetInstitutionCodeOk() (*string, bool)` + +GetInstitutionCodeOk returns a tuple with the InstitutionCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstitutionCode + +`func (o *MicrodepositResponse) SetInstitutionCode(v string)` + +SetInstitutionCode sets InstitutionCode field to given value. + +### HasInstitutionCode + +`func (o *MicrodepositResponse) HasInstitutionCode() bool` + +HasInstitutionCode returns a boolean if a field has been set. + +### GetInstitutionName + +`func (o *MicrodepositResponse) GetInstitutionName() string` + +GetInstitutionName returns the InstitutionName field if non-nil, zero value otherwise. + +### GetInstitutionNameOk + +`func (o *MicrodepositResponse) GetInstitutionNameOk() (*string, bool)` + +GetInstitutionNameOk returns a tuple with the InstitutionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstitutionName + +`func (o *MicrodepositResponse) SetInstitutionName(v string)` + +SetInstitutionName sets InstitutionName field to given value. + +### HasInstitutionName + +`func (o *MicrodepositResponse) HasInstitutionName() bool` + +HasInstitutionName returns a boolean if a field has been set. + +### GetStatus + +`func (o *MicrodepositResponse) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *MicrodepositResponse) 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 *MicrodepositResponse) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *MicrodepositResponse) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *MicrodepositResponse) GetUpdatedAt() string` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *MicrodepositResponse) GetUpdatedAtOk() (*string, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *MicrodepositResponse) SetUpdatedAt(v string)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *MicrodepositResponse) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetVerifiedAt + +`func (o *MicrodepositResponse) GetVerifiedAt() string` + +GetVerifiedAt returns the VerifiedAt field if non-nil, zero value otherwise. + +### GetVerifiedAtOk + +`func (o *MicrodepositResponse) GetVerifiedAtOk() (*string, bool)` + +GetVerifiedAtOk returns a tuple with the VerifiedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVerifiedAt + +`func (o *MicrodepositResponse) SetVerifiedAt(v string)` + +SetVerifiedAt sets VerifiedAt field to given value. + +### HasVerifiedAt + +`func (o *MicrodepositResponse) HasVerifiedAt() bool` + +HasVerifiedAt 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/docs/MicrodepositResponseBody.md b/docs/MicrodepositResponseBody.md new file mode 100644 index 0000000..fe728fe --- /dev/null +++ b/docs/MicrodepositResponseBody.md @@ -0,0 +1,56 @@ +# MicrodepositResponseBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MicroDeposit** | Pointer to [**MicrodepositResponse**](MicrodepositResponse.md) | | [optional] + +## Methods + +### NewMicrodepositResponseBody + +`func NewMicrodepositResponseBody() *MicrodepositResponseBody` + +NewMicrodepositResponseBody instantiates a new MicrodepositResponseBody 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 + +### NewMicrodepositResponseBodyWithDefaults + +`func NewMicrodepositResponseBodyWithDefaults() *MicrodepositResponseBody` + +NewMicrodepositResponseBodyWithDefaults instantiates a new MicrodepositResponseBody 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 + +### GetMicroDeposit + +`func (o *MicrodepositResponseBody) GetMicroDeposit() MicrodepositResponse` + +GetMicroDeposit returns the MicroDeposit field if non-nil, zero value otherwise. + +### GetMicroDepositOk + +`func (o *MicrodepositResponseBody) GetMicroDepositOk() (*MicrodepositResponse, bool)` + +GetMicroDepositOk returns a tuple with the MicroDeposit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMicroDeposit + +`func (o *MicrodepositResponseBody) SetMicroDeposit(v MicrodepositResponse)` + +SetMicroDeposit sets MicroDeposit field to given value. + +### HasMicroDeposit + +`func (o *MicrodepositResponseBody) HasMicroDeposit() bool` + +HasMicroDeposit 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/docs/MicrodepositVerifyRequest.md b/docs/MicrodepositVerifyRequest.md new file mode 100644 index 0000000..3f94b6f --- /dev/null +++ b/docs/MicrodepositVerifyRequest.md @@ -0,0 +1,82 @@ +# MicrodepositVerifyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DepositAmount1** | Pointer to **int32** | | [optional] +**DepositAmount2** | Pointer to **int32** | | [optional] + +## Methods + +### NewMicrodepositVerifyRequest + +`func NewMicrodepositVerifyRequest() *MicrodepositVerifyRequest` + +NewMicrodepositVerifyRequest instantiates a new MicrodepositVerifyRequest 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 + +### NewMicrodepositVerifyRequestWithDefaults + +`func NewMicrodepositVerifyRequestWithDefaults() *MicrodepositVerifyRequest` + +NewMicrodepositVerifyRequestWithDefaults instantiates a new MicrodepositVerifyRequest 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 + +### GetDepositAmount1 + +`func (o *MicrodepositVerifyRequest) GetDepositAmount1() int32` + +GetDepositAmount1 returns the DepositAmount1 field if non-nil, zero value otherwise. + +### GetDepositAmount1Ok + +`func (o *MicrodepositVerifyRequest) GetDepositAmount1Ok() (*int32, bool)` + +GetDepositAmount1Ok returns a tuple with the DepositAmount1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepositAmount1 + +`func (o *MicrodepositVerifyRequest) SetDepositAmount1(v int32)` + +SetDepositAmount1 sets DepositAmount1 field to given value. + +### HasDepositAmount1 + +`func (o *MicrodepositVerifyRequest) HasDepositAmount1() bool` + +HasDepositAmount1 returns a boolean if a field has been set. + +### GetDepositAmount2 + +`func (o *MicrodepositVerifyRequest) GetDepositAmount2() int32` + +GetDepositAmount2 returns the DepositAmount2 field if non-nil, zero value otherwise. + +### GetDepositAmount2Ok + +`func (o *MicrodepositVerifyRequest) GetDepositAmount2Ok() (*int32, bool)` + +GetDepositAmount2Ok returns a tuple with the DepositAmount2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepositAmount2 + +`func (o *MicrodepositVerifyRequest) SetDepositAmount2(v int32)` + +SetDepositAmount2 sets DepositAmount2 field to given value. + +### HasDepositAmount2 + +`func (o *MicrodepositVerifyRequest) HasDepositAmount2() bool` + +HasDepositAmount2 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/docs/MicrodepositVerifyRequestBody.md b/docs/MicrodepositVerifyRequestBody.md new file mode 100644 index 0000000..69d74cd --- /dev/null +++ b/docs/MicrodepositVerifyRequestBody.md @@ -0,0 +1,56 @@ +# MicrodepositVerifyRequestBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MicroDeposit** | Pointer to [**MicrodepositVerifyRequest**](MicrodepositVerifyRequest.md) | | [optional] + +## Methods + +### NewMicrodepositVerifyRequestBody + +`func NewMicrodepositVerifyRequestBody() *MicrodepositVerifyRequestBody` + +NewMicrodepositVerifyRequestBody instantiates a new MicrodepositVerifyRequestBody 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 + +### NewMicrodepositVerifyRequestBodyWithDefaults + +`func NewMicrodepositVerifyRequestBodyWithDefaults() *MicrodepositVerifyRequestBody` + +NewMicrodepositVerifyRequestBodyWithDefaults instantiates a new MicrodepositVerifyRequestBody 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 + +### GetMicroDeposit + +`func (o *MicrodepositVerifyRequestBody) GetMicroDeposit() MicrodepositVerifyRequest` + +GetMicroDeposit returns the MicroDeposit field if non-nil, zero value otherwise. + +### GetMicroDepositOk + +`func (o *MicrodepositVerifyRequestBody) GetMicroDepositOk() (*MicrodepositVerifyRequest, bool)` + +GetMicroDepositOk returns a tuple with the MicroDeposit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMicroDeposit + +`func (o *MicrodepositVerifyRequestBody) SetMicroDeposit(v MicrodepositVerifyRequest)` + +SetMicroDeposit sets MicroDeposit field to given value. + +### HasMicroDeposit + +`func (o *MicrodepositVerifyRequestBody) HasMicroDeposit() bool` + +HasMicroDeposit 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/docs/MicrodepositsAPI.md b/docs/MicrodepositsAPI.md new file mode 100644 index 0000000..663802e --- /dev/null +++ b/docs/MicrodepositsAPI.md @@ -0,0 +1,371 @@ +# \MicrodepositsAPI + +All URIs are relative to *https://api.mx.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**MicroDepositsMicrodepositGuidVerifyPut**](MicrodepositsAPI.md#MicroDepositsMicrodepositGuidVerifyPut) | **Put** /micro_deposits/{microdeposit_guid}/verify | Verify a Microdeposit +[**UsersUserGuidMicroDepositsGet**](MicrodepositsAPI.md#UsersUserGuidMicroDepositsGet) | **Get** /users/{user_guid}/micro_deposits | List all microdeposits for a user +[**UsersUserGuidMicroDepositsMicroDepositGuidDelete**](MicrodepositsAPI.md#UsersUserGuidMicroDepositsMicroDepositGuidDelete) | **Delete** /users/{user_guid}/micro_deposits/{micro_deposit_guid} | Delete a microdeposit +[**UsersUserGuidMicroDepositsMicroDepositGuidGet**](MicrodepositsAPI.md#UsersUserGuidMicroDepositsMicroDepositGuidGet) | **Get** /users/{user_guid}/micro_deposits/{micro_deposit_guid} | Read a microdeposit for a user +[**UsersUserGuidMicroDepositsPost**](MicrodepositsAPI.md#UsersUserGuidMicroDepositsPost) | **Post** /users/{user_guid}/micro_deposits | Create a microdeposit + + + +## MicroDepositsMicrodepositGuidVerifyPut + +> MicrodepositResponseBody MicroDepositsMicrodepositGuidVerifyPut(ctx, microdepositGuid).MicrodepositVerifyRequestBody(microdepositVerifyRequestBody).Execute() + +Verify a Microdeposit + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/mxenabled/mx-platform-go" +) + +func main() { + microdepositGuid := "microdepositGuid_example" // string | The unique identifier for the microdeposit. Defined by MX. + microdepositVerifyRequestBody := *openapiclient.NewMicrodepositVerifyRequestBody() // MicrodepositVerifyRequestBody | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MicrodepositsAPI.MicroDepositsMicrodepositGuidVerifyPut(context.Background(), microdepositGuid).MicrodepositVerifyRequestBody(microdepositVerifyRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MicrodepositsAPI.MicroDepositsMicrodepositGuidVerifyPut``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `MicroDepositsMicrodepositGuidVerifyPut`: MicrodepositResponseBody + fmt.Fprintf(os.Stdout, "Response from `MicrodepositsAPI.MicroDepositsMicrodepositGuidVerifyPut`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**microdepositGuid** | **string** | The unique identifier for the microdeposit. Defined by MX. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiMicroDepositsMicrodepositGuidVerifyPutRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **microdepositVerifyRequestBody** | [**MicrodepositVerifyRequestBody**](MicrodepositVerifyRequestBody.md) | | + +### Return type + +[**MicrodepositResponseBody**](MicrodepositResponseBody.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### 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) + + +## UsersUserGuidMicroDepositsGet + +> MicrodepositsResponseBody UsersUserGuidMicroDepositsGet(ctx, userGuid).Execute() + +List all microdeposits for a user + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/mxenabled/mx-platform-go" +) + +func main() { + userGuid := "userGuid_example" // string | The unique identifier for the user. Defined by MX. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MicrodepositsAPI.UsersUserGuidMicroDepositsGet(context.Background(), userGuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MicrodepositsAPI.UsersUserGuidMicroDepositsGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UsersUserGuidMicroDepositsGet`: MicrodepositsResponseBody + fmt.Fprintf(os.Stdout, "Response from `MicrodepositsAPI.UsersUserGuidMicroDepositsGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**userGuid** | **string** | The unique identifier for the user. Defined by MX. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUsersUserGuidMicroDepositsGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**MicrodepositsResponseBody**](MicrodepositsResponseBody.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### 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) + + +## UsersUserGuidMicroDepositsMicroDepositGuidDelete + +> UsersUserGuidMicroDepositsMicroDepositGuidDelete(ctx, microDepositGuid, userGuid).Execute() + +Delete a microdeposit + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/mxenabled/mx-platform-go" +) + +func main() { + microDepositGuid := "MIC-09ba578e-8448-4f7f-89e1-b62ff2517edb" // string | The unique identifier for the microdeposit. Defined by MX. + userGuid := "USR-fa7537f3-48aa-a683-a02a-b18940482f54" // string | The unique id for a `user`. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.MicrodepositsAPI.UsersUserGuidMicroDepositsMicroDepositGuidDelete(context.Background(), microDepositGuid, userGuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MicrodepositsAPI.UsersUserGuidMicroDepositsMicroDepositGuidDelete``: %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. +**microDepositGuid** | **string** | The unique identifier for the microdeposit. Defined by MX. | +**userGuid** | **string** | The unique id for a `user`. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUsersUserGuidMicroDepositsMicroDepositGuidDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### 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) + + +## UsersUserGuidMicroDepositsMicroDepositGuidGet + +> MicrodepositResponseBody UsersUserGuidMicroDepositsMicroDepositGuidGet(ctx, userGuid, microDepositGuid).Execute() + +Read a microdeposit for a user + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/mxenabled/mx-platform-go" +) + +func main() { + userGuid := "userGuid_example" // string | The unique identifier for the user. Defined by MX. + microDepositGuid := "microDepositGuid_example" // string | The unique identifier for the microdeposit. Defined by MX. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MicrodepositsAPI.UsersUserGuidMicroDepositsMicroDepositGuidGet(context.Background(), userGuid, microDepositGuid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MicrodepositsAPI.UsersUserGuidMicroDepositsMicroDepositGuidGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UsersUserGuidMicroDepositsMicroDepositGuidGet`: MicrodepositResponseBody + fmt.Fprintf(os.Stdout, "Response from `MicrodepositsAPI.UsersUserGuidMicroDepositsMicroDepositGuidGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**userGuid** | **string** | The unique identifier for the user. Defined by MX. | +**microDepositGuid** | **string** | The unique identifier for the microdeposit. Defined by MX. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUsersUserGuidMicroDepositsMicroDepositGuidGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**MicrodepositResponseBody**](MicrodepositResponseBody.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### 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) + + +## UsersUserGuidMicroDepositsPost + +> MicrodepositResponseBody UsersUserGuidMicroDepositsPost(ctx, userGuid).MicrodepositRequestBody(microdepositRequestBody).Execute() + +Create a microdeposit + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/mxenabled/mx-platform-go" +) + +func main() { + userGuid := "userGuid_example" // string | The unique identifier for the user. Defined by MX. + microdepositRequestBody := *openapiclient.NewMicrodepositRequestBody() // MicrodepositRequestBody | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MicrodepositsAPI.UsersUserGuidMicroDepositsPost(context.Background(), userGuid).MicrodepositRequestBody(microdepositRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MicrodepositsAPI.UsersUserGuidMicroDepositsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UsersUserGuidMicroDepositsPost`: MicrodepositResponseBody + fmt.Fprintf(os.Stdout, "Response from `MicrodepositsAPI.UsersUserGuidMicroDepositsPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**userGuid** | **string** | The unique identifier for the user. Defined by MX. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUsersUserGuidMicroDepositsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **microdepositRequestBody** | [**MicrodepositRequestBody**](MicrodepositRequestBody.md) | | + +### Return type + +[**MicrodepositResponseBody**](MicrodepositResponseBody.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### 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) + diff --git a/docs/MicrodepositsResponseBody.md b/docs/MicrodepositsResponseBody.md new file mode 100644 index 0000000..2626209 --- /dev/null +++ b/docs/MicrodepositsResponseBody.md @@ -0,0 +1,82 @@ +# MicrodepositsResponseBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MicroDeposits** | Pointer to [**[]MicrodepositResponse**](MicrodepositResponse.md) | | [optional] +**Pagination** | Pointer to [**PaginationResponse**](PaginationResponse.md) | | [optional] + +## Methods + +### NewMicrodepositsResponseBody + +`func NewMicrodepositsResponseBody() *MicrodepositsResponseBody` + +NewMicrodepositsResponseBody instantiates a new MicrodepositsResponseBody 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 + +### NewMicrodepositsResponseBodyWithDefaults + +`func NewMicrodepositsResponseBodyWithDefaults() *MicrodepositsResponseBody` + +NewMicrodepositsResponseBodyWithDefaults instantiates a new MicrodepositsResponseBody 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 + +### GetMicroDeposits + +`func (o *MicrodepositsResponseBody) GetMicroDeposits() []MicrodepositResponse` + +GetMicroDeposits returns the MicroDeposits field if non-nil, zero value otherwise. + +### GetMicroDepositsOk + +`func (o *MicrodepositsResponseBody) GetMicroDepositsOk() (*[]MicrodepositResponse, bool)` + +GetMicroDepositsOk returns a tuple with the MicroDeposits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMicroDeposits + +`func (o *MicrodepositsResponseBody) SetMicroDeposits(v []MicrodepositResponse)` + +SetMicroDeposits sets MicroDeposits field to given value. + +### HasMicroDeposits + +`func (o *MicrodepositsResponseBody) HasMicroDeposits() bool` + +HasMicroDeposits returns a boolean if a field has been set. + +### GetPagination + +`func (o *MicrodepositsResponseBody) GetPagination() PaginationResponse` + +GetPagination returns the Pagination field if non-nil, zero value otherwise. + +### GetPaginationOk + +`func (o *MicrodepositsResponseBody) GetPaginationOk() (*PaginationResponse, bool)` + +GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagination + +`func (o *MicrodepositsResponseBody) SetPagination(v PaginationResponse)` + +SetPagination sets Pagination field to given value. + +### HasPagination + +`func (o *MicrodepositsResponseBody) HasPagination() bool` + +HasPagination 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/docs/TransactionCreateRequest.md b/docs/TransactionCreateRequest.md new file mode 100644 index 0000000..454626b --- /dev/null +++ b/docs/TransactionCreateRequest.md @@ -0,0 +1,322 @@ +# TransactionCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Amount** | **float32** | | +**Date** | **string** | | +**Description** | **string** | | +**Type** | **string** | The type of transaction, which must be CREDIT or DEBIT. See Transaction Fields for more information. | +**CategoryGuid** | Pointer to **string** | Unique identifier of the category. | [optional] +**CurrencyCode** | Pointer to **string** | | [optional] +**HasBeenViewed** | Pointer to **bool** | | [optional] +**IsHidden** | Pointer to **bool** | | [optional] +**IsInternational** | Pointer to **bool** | | [optional] +**Memo** | Pointer to **string** | | [optional] +**Metadata** | Pointer to **string** | | [optional] +**SkipWebhook** | Pointer to **bool** | When set to true, this parameter will prevent a webhook from being triggered by the request. | [optional] + +## Methods + +### NewTransactionCreateRequest + +`func NewTransactionCreateRequest(amount float32, date string, description string, type_ string, ) *TransactionCreateRequest` + +NewTransactionCreateRequest instantiates a new TransactionCreateRequest 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 + +### NewTransactionCreateRequestWithDefaults + +`func NewTransactionCreateRequestWithDefaults() *TransactionCreateRequest` + +NewTransactionCreateRequestWithDefaults instantiates a new TransactionCreateRequest 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 *TransactionCreateRequest) GetAmount() float32` + +GetAmount returns the Amount field if non-nil, zero value otherwise. + +### GetAmountOk + +`func (o *TransactionCreateRequest) GetAmountOk() (*float32, 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 *TransactionCreateRequest) SetAmount(v float32)` + +SetAmount sets Amount field to given value. + + +### GetDate + +`func (o *TransactionCreateRequest) GetDate() string` + +GetDate returns the Date field if non-nil, zero value otherwise. + +### GetDateOk + +`func (o *TransactionCreateRequest) GetDateOk() (*string, bool)` + +GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDate + +`func (o *TransactionCreateRequest) SetDate(v string)` + +SetDate sets Date field to given value. + + +### GetDescription + +`func (o *TransactionCreateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *TransactionCreateRequest) 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 *TransactionCreateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetType + +`func (o *TransactionCreateRequest) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *TransactionCreateRequest) 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 *TransactionCreateRequest) SetType(v string)` + +SetType sets Type field to given value. + + +### GetCategoryGuid + +`func (o *TransactionCreateRequest) GetCategoryGuid() string` + +GetCategoryGuid returns the CategoryGuid field if non-nil, zero value otherwise. + +### GetCategoryGuidOk + +`func (o *TransactionCreateRequest) GetCategoryGuidOk() (*string, bool)` + +GetCategoryGuidOk returns a tuple with the CategoryGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategoryGuid + +`func (o *TransactionCreateRequest) SetCategoryGuid(v string)` + +SetCategoryGuid sets CategoryGuid field to given value. + +### HasCategoryGuid + +`func (o *TransactionCreateRequest) HasCategoryGuid() bool` + +HasCategoryGuid returns a boolean if a field has been set. + +### GetCurrencyCode + +`func (o *TransactionCreateRequest) GetCurrencyCode() string` + +GetCurrencyCode returns the CurrencyCode field if non-nil, zero value otherwise. + +### GetCurrencyCodeOk + +`func (o *TransactionCreateRequest) 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 *TransactionCreateRequest) SetCurrencyCode(v string)` + +SetCurrencyCode sets CurrencyCode field to given value. + +### HasCurrencyCode + +`func (o *TransactionCreateRequest) HasCurrencyCode() bool` + +HasCurrencyCode returns a boolean if a field has been set. + +### GetHasBeenViewed + +`func (o *TransactionCreateRequest) GetHasBeenViewed() bool` + +GetHasBeenViewed returns the HasBeenViewed field if non-nil, zero value otherwise. + +### GetHasBeenViewedOk + +`func (o *TransactionCreateRequest) GetHasBeenViewedOk() (*bool, bool)` + +GetHasBeenViewedOk returns a tuple with the HasBeenViewed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasBeenViewed + +`func (o *TransactionCreateRequest) SetHasBeenViewed(v bool)` + +SetHasBeenViewed sets HasBeenViewed field to given value. + +### HasHasBeenViewed + +`func (o *TransactionCreateRequest) HasHasBeenViewed() bool` + +HasHasBeenViewed returns a boolean if a field has been set. + +### GetIsHidden + +`func (o *TransactionCreateRequest) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *TransactionCreateRequest) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *TransactionCreateRequest) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *TransactionCreateRequest) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + +### GetIsInternational + +`func (o *TransactionCreateRequest) GetIsInternational() bool` + +GetIsInternational returns the IsInternational field if non-nil, zero value otherwise. + +### GetIsInternationalOk + +`func (o *TransactionCreateRequest) GetIsInternationalOk() (*bool, bool)` + +GetIsInternationalOk returns a tuple with the IsInternational field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsInternational + +`func (o *TransactionCreateRequest) SetIsInternational(v bool)` + +SetIsInternational sets IsInternational field to given value. + +### HasIsInternational + +`func (o *TransactionCreateRequest) HasIsInternational() bool` + +HasIsInternational returns a boolean if a field has been set. + +### GetMemo + +`func (o *TransactionCreateRequest) GetMemo() string` + +GetMemo returns the Memo field if non-nil, zero value otherwise. + +### GetMemoOk + +`func (o *TransactionCreateRequest) GetMemoOk() (*string, bool)` + +GetMemoOk returns a tuple with the Memo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemo + +`func (o *TransactionCreateRequest) SetMemo(v string)` + +SetMemo sets Memo field to given value. + +### HasMemo + +`func (o *TransactionCreateRequest) HasMemo() bool` + +HasMemo returns a boolean if a field has been set. + +### GetMetadata + +`func (o *TransactionCreateRequest) GetMetadata() string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *TransactionCreateRequest) GetMetadataOk() (*string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *TransactionCreateRequest) SetMetadata(v string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *TransactionCreateRequest) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetSkipWebhook + +`func (o *TransactionCreateRequest) GetSkipWebhook() bool` + +GetSkipWebhook returns the SkipWebhook field if non-nil, zero value otherwise. + +### GetSkipWebhookOk + +`func (o *TransactionCreateRequest) GetSkipWebhookOk() (*bool, bool)` + +GetSkipWebhookOk returns a tuple with the SkipWebhook field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkipWebhook + +`func (o *TransactionCreateRequest) SetSkipWebhook(v bool)` + +SetSkipWebhook sets SkipWebhook field to given value. + +### HasSkipWebhook + +`func (o *TransactionCreateRequest) HasSkipWebhook() bool` + +HasSkipWebhook 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/docs/TransactionCreateRequestBody.md b/docs/TransactionCreateRequestBody.md new file mode 100644 index 0000000..6318a37 --- /dev/null +++ b/docs/TransactionCreateRequestBody.md @@ -0,0 +1,56 @@ +# TransactionCreateRequestBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Transaction** | Pointer to [**TransactionCreateRequest**](TransactionCreateRequest.md) | | [optional] + +## Methods + +### NewTransactionCreateRequestBody + +`func NewTransactionCreateRequestBody() *TransactionCreateRequestBody` + +NewTransactionCreateRequestBody instantiates a new TransactionCreateRequestBody 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 + +### NewTransactionCreateRequestBodyWithDefaults + +`func NewTransactionCreateRequestBodyWithDefaults() *TransactionCreateRequestBody` + +NewTransactionCreateRequestBodyWithDefaults instantiates a new TransactionCreateRequestBody 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 + +### GetTransaction + +`func (o *TransactionCreateRequestBody) GetTransaction() TransactionCreateRequest` + +GetTransaction returns the Transaction field if non-nil, zero value otherwise. + +### GetTransactionOk + +`func (o *TransactionCreateRequestBody) GetTransactionOk() (*TransactionCreateRequest, 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 *TransactionCreateRequestBody) SetTransaction(v TransactionCreateRequest)` + +SetTransaction sets Transaction field to given value. + +### HasTransaction + +`func (o *TransactionCreateRequestBody) 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/docs/TransactionCreateResponseBody.md b/docs/TransactionCreateResponseBody.md new file mode 100644 index 0000000..53ce17e --- /dev/null +++ b/docs/TransactionCreateResponseBody.md @@ -0,0 +1,1584 @@ +# TransactionCreateResponseBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountGuid** | Pointer to **NullableString** | | [optional] +**AccountId** | Pointer to **NullableString** | | [optional] +**Amount** | Pointer to **float32** | | [optional] +**Category** | Pointer to **NullableString** | | [optional] +**CategoryGuid** | Pointer to **NullableString** | | [optional] +**CheckNumberString** | Pointer to **NullableString** | | [optional] +**CreatedAt** | Pointer to **NullableString** | | [optional] +**CurrencyCode** | Pointer to **NullableString** | | [optional] +**Date** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **NullableString** | | [optional] +**ExtendedTransactionType** | Pointer to **NullableString** | | [optional] +**Guid** | Pointer to **NullableString** | | [optional] +**Id** | Pointer to **NullableString** | | [optional] +**IsBillPay** | Pointer to **NullableBool** | | [optional] +**IsDirectDeposit** | Pointer to **NullableBool** | | [optional] +**IsExpense** | Pointer to **NullableBool** | | [optional] +**IsFee** | Pointer to **NullableBool** | | [optional] +**IsIncome** | Pointer to **NullableBool** | | [optional] +**IsInternational** | Pointer to **NullableBool** | | [optional] +**IsManual** | Pointer to **NullableBool** | | [optional] +**IsOverdraftFee** | Pointer to **NullableBool** | | [optional] +**IsPayrollAdvance** | Pointer to **NullableBool** | | [optional] +**IsRecurring** | Pointer to **NullableBool** | | [optional] +**IsSubscription** | Pointer to **NullableBool** | | [optional] +**Latitude** | Pointer to **NullableFloat32** | | [optional] +**LocalizedDescription** | Pointer to **NullableString** | | [optional] +**LocalizedMemo** | Pointer to **NullableString** | | [optional] +**Longitude** | Pointer to **NullableFloat32** | | [optional] +**MemberGuid** | Pointer to **NullableString** | | [optional] +**MemberIsManagedByUser** | Pointer to **NullableBool** | | [optional] +**Memo** | Pointer to **NullableString** | | [optional] +**MerchantCategoryCode** | Pointer to **NullableInt32** | | [optional] +**MerchantGuid** | Pointer to **NullableString** | | [optional] +**MerchantLocationGuid** | Pointer to **NullableString** | | [optional] +**Metadata** | Pointer to **NullableString** | | [optional] +**OriginalDescription** | Pointer to **NullableString** | | [optional] +**PostedAt** | Pointer to **NullableString** | | [optional] +**Status** | Pointer to **NullableString** | | [optional] +**TopLevelCategory** | Pointer to **NullableString** | | [optional] +**TransactedAt** | Pointer to **NullableString** | | [optional] +**Type** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **string** | | [optional] +**UserGuid** | Pointer to **NullableString** | | [optional] +**UserId** | Pointer to **NullableString** | | [optional] + +## Methods + +### NewTransactionCreateResponseBody + +`func NewTransactionCreateResponseBody() *TransactionCreateResponseBody` + +NewTransactionCreateResponseBody instantiates a new TransactionCreateResponseBody 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 + +### NewTransactionCreateResponseBodyWithDefaults + +`func NewTransactionCreateResponseBodyWithDefaults() *TransactionCreateResponseBody` + +NewTransactionCreateResponseBodyWithDefaults instantiates a new TransactionCreateResponseBody 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 + +### GetAccountGuid + +`func (o *TransactionCreateResponseBody) GetAccountGuid() string` + +GetAccountGuid returns the AccountGuid field if non-nil, zero value otherwise. + +### GetAccountGuidOk + +`func (o *TransactionCreateResponseBody) GetAccountGuidOk() (*string, bool)` + +GetAccountGuidOk returns a tuple with the AccountGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountGuid + +`func (o *TransactionCreateResponseBody) SetAccountGuid(v string)` + +SetAccountGuid sets AccountGuid field to given value. + +### HasAccountGuid + +`func (o *TransactionCreateResponseBody) HasAccountGuid() bool` + +HasAccountGuid returns a boolean if a field has been set. + +### SetAccountGuidNil + +`func (o *TransactionCreateResponseBody) SetAccountGuidNil(b bool)` + + SetAccountGuidNil sets the value for AccountGuid to be an explicit nil + +### UnsetAccountGuid +`func (o *TransactionCreateResponseBody) UnsetAccountGuid()` + +UnsetAccountGuid ensures that no value is present for AccountGuid, not even an explicit nil +### GetAccountId + +`func (o *TransactionCreateResponseBody) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *TransactionCreateResponseBody) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *TransactionCreateResponseBody) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + +### HasAccountId + +`func (o *TransactionCreateResponseBody) HasAccountId() bool` + +HasAccountId returns a boolean if a field has been set. + +### SetAccountIdNil + +`func (o *TransactionCreateResponseBody) SetAccountIdNil(b bool)` + + SetAccountIdNil sets the value for AccountId to be an explicit nil + +### UnsetAccountId +`func (o *TransactionCreateResponseBody) UnsetAccountId()` + +UnsetAccountId ensures that no value is present for AccountId, not even an explicit nil +### GetAmount + +`func (o *TransactionCreateResponseBody) GetAmount() float32` + +GetAmount returns the Amount field if non-nil, zero value otherwise. + +### GetAmountOk + +`func (o *TransactionCreateResponseBody) GetAmountOk() (*float32, 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 *TransactionCreateResponseBody) SetAmount(v float32)` + +SetAmount sets Amount field to given value. + +### HasAmount + +`func (o *TransactionCreateResponseBody) HasAmount() bool` + +HasAmount returns a boolean if a field has been set. + +### GetCategory + +`func (o *TransactionCreateResponseBody) GetCategory() string` + +GetCategory returns the Category field if non-nil, zero value otherwise. + +### GetCategoryOk + +`func (o *TransactionCreateResponseBody) GetCategoryOk() (*string, 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 *TransactionCreateResponseBody) SetCategory(v string)` + +SetCategory sets Category field to given value. + +### HasCategory + +`func (o *TransactionCreateResponseBody) HasCategory() bool` + +HasCategory returns a boolean if a field has been set. + +### SetCategoryNil + +`func (o *TransactionCreateResponseBody) SetCategoryNil(b bool)` + + SetCategoryNil sets the value for Category to be an explicit nil + +### UnsetCategory +`func (o *TransactionCreateResponseBody) UnsetCategory()` + +UnsetCategory ensures that no value is present for Category, not even an explicit nil +### GetCategoryGuid + +`func (o *TransactionCreateResponseBody) GetCategoryGuid() string` + +GetCategoryGuid returns the CategoryGuid field if non-nil, zero value otherwise. + +### GetCategoryGuidOk + +`func (o *TransactionCreateResponseBody) GetCategoryGuidOk() (*string, bool)` + +GetCategoryGuidOk returns a tuple with the CategoryGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategoryGuid + +`func (o *TransactionCreateResponseBody) SetCategoryGuid(v string)` + +SetCategoryGuid sets CategoryGuid field to given value. + +### HasCategoryGuid + +`func (o *TransactionCreateResponseBody) HasCategoryGuid() bool` + +HasCategoryGuid returns a boolean if a field has been set. + +### SetCategoryGuidNil + +`func (o *TransactionCreateResponseBody) SetCategoryGuidNil(b bool)` + + SetCategoryGuidNil sets the value for CategoryGuid to be an explicit nil + +### UnsetCategoryGuid +`func (o *TransactionCreateResponseBody) UnsetCategoryGuid()` + +UnsetCategoryGuid ensures that no value is present for CategoryGuid, not even an explicit nil +### GetCheckNumberString + +`func (o *TransactionCreateResponseBody) GetCheckNumberString() string` + +GetCheckNumberString returns the CheckNumberString field if non-nil, zero value otherwise. + +### GetCheckNumberStringOk + +`func (o *TransactionCreateResponseBody) GetCheckNumberStringOk() (*string, bool)` + +GetCheckNumberStringOk returns a tuple with the CheckNumberString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCheckNumberString + +`func (o *TransactionCreateResponseBody) SetCheckNumberString(v string)` + +SetCheckNumberString sets CheckNumberString field to given value. + +### HasCheckNumberString + +`func (o *TransactionCreateResponseBody) HasCheckNumberString() bool` + +HasCheckNumberString returns a boolean if a field has been set. + +### SetCheckNumberStringNil + +`func (o *TransactionCreateResponseBody) SetCheckNumberStringNil(b bool)` + + SetCheckNumberStringNil sets the value for CheckNumberString to be an explicit nil + +### UnsetCheckNumberString +`func (o *TransactionCreateResponseBody) UnsetCheckNumberString()` + +UnsetCheckNumberString ensures that no value is present for CheckNumberString, not even an explicit nil +### GetCreatedAt + +`func (o *TransactionCreateResponseBody) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *TransactionCreateResponseBody) GetCreatedAtOk() (*string, 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 *TransactionCreateResponseBody) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *TransactionCreateResponseBody) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### SetCreatedAtNil + +`func (o *TransactionCreateResponseBody) SetCreatedAtNil(b bool)` + + SetCreatedAtNil sets the value for CreatedAt to be an explicit nil + +### UnsetCreatedAt +`func (o *TransactionCreateResponseBody) UnsetCreatedAt()` + +UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil +### GetCurrencyCode + +`func (o *TransactionCreateResponseBody) GetCurrencyCode() string` + +GetCurrencyCode returns the CurrencyCode field if non-nil, zero value otherwise. + +### GetCurrencyCodeOk + +`func (o *TransactionCreateResponseBody) 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 *TransactionCreateResponseBody) SetCurrencyCode(v string)` + +SetCurrencyCode sets CurrencyCode field to given value. + +### HasCurrencyCode + +`func (o *TransactionCreateResponseBody) HasCurrencyCode() bool` + +HasCurrencyCode returns a boolean if a field has been set. + +### SetCurrencyCodeNil + +`func (o *TransactionCreateResponseBody) SetCurrencyCodeNil(b bool)` + + SetCurrencyCodeNil sets the value for CurrencyCode to be an explicit nil + +### UnsetCurrencyCode +`func (o *TransactionCreateResponseBody) UnsetCurrencyCode()` + +UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +### GetDate + +`func (o *TransactionCreateResponseBody) GetDate() string` + +GetDate returns the Date field if non-nil, zero value otherwise. + +### GetDateOk + +`func (o *TransactionCreateResponseBody) GetDateOk() (*string, bool)` + +GetDateOk returns a tuple with the Date field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDate + +`func (o *TransactionCreateResponseBody) SetDate(v string)` + +SetDate sets Date field to given value. + +### HasDate + +`func (o *TransactionCreateResponseBody) HasDate() bool` + +HasDate returns a boolean if a field has been set. + +### SetDateNil + +`func (o *TransactionCreateResponseBody) SetDateNil(b bool)` + + SetDateNil sets the value for Date to be an explicit nil + +### UnsetDate +`func (o *TransactionCreateResponseBody) UnsetDate()` + +UnsetDate ensures that no value is present for Date, not even an explicit nil +### GetDescription + +`func (o *TransactionCreateResponseBody) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *TransactionCreateResponseBody) 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 *TransactionCreateResponseBody) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *TransactionCreateResponseBody) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *TransactionCreateResponseBody) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *TransactionCreateResponseBody) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetExtendedTransactionType + +`func (o *TransactionCreateResponseBody) GetExtendedTransactionType() string` + +GetExtendedTransactionType returns the ExtendedTransactionType field if non-nil, zero value otherwise. + +### GetExtendedTransactionTypeOk + +`func (o *TransactionCreateResponseBody) GetExtendedTransactionTypeOk() (*string, bool)` + +GetExtendedTransactionTypeOk returns a tuple with the ExtendedTransactionType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtendedTransactionType + +`func (o *TransactionCreateResponseBody) SetExtendedTransactionType(v string)` + +SetExtendedTransactionType sets ExtendedTransactionType field to given value. + +### HasExtendedTransactionType + +`func (o *TransactionCreateResponseBody) HasExtendedTransactionType() bool` + +HasExtendedTransactionType returns a boolean if a field has been set. + +### SetExtendedTransactionTypeNil + +`func (o *TransactionCreateResponseBody) SetExtendedTransactionTypeNil(b bool)` + + SetExtendedTransactionTypeNil sets the value for ExtendedTransactionType to be an explicit nil + +### UnsetExtendedTransactionType +`func (o *TransactionCreateResponseBody) UnsetExtendedTransactionType()` + +UnsetExtendedTransactionType ensures that no value is present for ExtendedTransactionType, not even an explicit nil +### GetGuid + +`func (o *TransactionCreateResponseBody) GetGuid() string` + +GetGuid returns the Guid field if non-nil, zero value otherwise. + +### GetGuidOk + +`func (o *TransactionCreateResponseBody) GetGuidOk() (*string, bool)` + +GetGuidOk returns a tuple with the Guid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGuid + +`func (o *TransactionCreateResponseBody) SetGuid(v string)` + +SetGuid sets Guid field to given value. + +### HasGuid + +`func (o *TransactionCreateResponseBody) HasGuid() bool` + +HasGuid returns a boolean if a field has been set. + +### SetGuidNil + +`func (o *TransactionCreateResponseBody) SetGuidNil(b bool)` + + SetGuidNil sets the value for Guid to be an explicit nil + +### UnsetGuid +`func (o *TransactionCreateResponseBody) UnsetGuid()` + +UnsetGuid ensures that no value is present for Guid, not even an explicit nil +### GetId + +`func (o *TransactionCreateResponseBody) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *TransactionCreateResponseBody) 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 *TransactionCreateResponseBody) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *TransactionCreateResponseBody) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *TransactionCreateResponseBody) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *TransactionCreateResponseBody) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetIsBillPay + +`func (o *TransactionCreateResponseBody) GetIsBillPay() bool` + +GetIsBillPay returns the IsBillPay field if non-nil, zero value otherwise. + +### GetIsBillPayOk + +`func (o *TransactionCreateResponseBody) GetIsBillPayOk() (*bool, bool)` + +GetIsBillPayOk returns a tuple with the IsBillPay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsBillPay + +`func (o *TransactionCreateResponseBody) SetIsBillPay(v bool)` + +SetIsBillPay sets IsBillPay field to given value. + +### HasIsBillPay + +`func (o *TransactionCreateResponseBody) HasIsBillPay() bool` + +HasIsBillPay returns a boolean if a field has been set. + +### SetIsBillPayNil + +`func (o *TransactionCreateResponseBody) SetIsBillPayNil(b bool)` + + SetIsBillPayNil sets the value for IsBillPay to be an explicit nil + +### UnsetIsBillPay +`func (o *TransactionCreateResponseBody) UnsetIsBillPay()` + +UnsetIsBillPay ensures that no value is present for IsBillPay, not even an explicit nil +### GetIsDirectDeposit + +`func (o *TransactionCreateResponseBody) GetIsDirectDeposit() bool` + +GetIsDirectDeposit returns the IsDirectDeposit field if non-nil, zero value otherwise. + +### GetIsDirectDepositOk + +`func (o *TransactionCreateResponseBody) GetIsDirectDepositOk() (*bool, bool)` + +GetIsDirectDepositOk returns a tuple with the IsDirectDeposit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDirectDeposit + +`func (o *TransactionCreateResponseBody) SetIsDirectDeposit(v bool)` + +SetIsDirectDeposit sets IsDirectDeposit field to given value. + +### HasIsDirectDeposit + +`func (o *TransactionCreateResponseBody) HasIsDirectDeposit() bool` + +HasIsDirectDeposit returns a boolean if a field has been set. + +### SetIsDirectDepositNil + +`func (o *TransactionCreateResponseBody) SetIsDirectDepositNil(b bool)` + + SetIsDirectDepositNil sets the value for IsDirectDeposit to be an explicit nil + +### UnsetIsDirectDeposit +`func (o *TransactionCreateResponseBody) UnsetIsDirectDeposit()` + +UnsetIsDirectDeposit ensures that no value is present for IsDirectDeposit, not even an explicit nil +### GetIsExpense + +`func (o *TransactionCreateResponseBody) GetIsExpense() bool` + +GetIsExpense returns the IsExpense field if non-nil, zero value otherwise. + +### GetIsExpenseOk + +`func (o *TransactionCreateResponseBody) GetIsExpenseOk() (*bool, bool)` + +GetIsExpenseOk returns a tuple with the IsExpense field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsExpense + +`func (o *TransactionCreateResponseBody) SetIsExpense(v bool)` + +SetIsExpense sets IsExpense field to given value. + +### HasIsExpense + +`func (o *TransactionCreateResponseBody) HasIsExpense() bool` + +HasIsExpense returns a boolean if a field has been set. + +### SetIsExpenseNil + +`func (o *TransactionCreateResponseBody) SetIsExpenseNil(b bool)` + + SetIsExpenseNil sets the value for IsExpense to be an explicit nil + +### UnsetIsExpense +`func (o *TransactionCreateResponseBody) UnsetIsExpense()` + +UnsetIsExpense ensures that no value is present for IsExpense, not even an explicit nil +### GetIsFee + +`func (o *TransactionCreateResponseBody) GetIsFee() bool` + +GetIsFee returns the IsFee field if non-nil, zero value otherwise. + +### GetIsFeeOk + +`func (o *TransactionCreateResponseBody) GetIsFeeOk() (*bool, bool)` + +GetIsFeeOk returns a tuple with the IsFee field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsFee + +`func (o *TransactionCreateResponseBody) SetIsFee(v bool)` + +SetIsFee sets IsFee field to given value. + +### HasIsFee + +`func (o *TransactionCreateResponseBody) HasIsFee() bool` + +HasIsFee returns a boolean if a field has been set. + +### SetIsFeeNil + +`func (o *TransactionCreateResponseBody) SetIsFeeNil(b bool)` + + SetIsFeeNil sets the value for IsFee to be an explicit nil + +### UnsetIsFee +`func (o *TransactionCreateResponseBody) UnsetIsFee()` + +UnsetIsFee ensures that no value is present for IsFee, not even an explicit nil +### GetIsIncome + +`func (o *TransactionCreateResponseBody) GetIsIncome() bool` + +GetIsIncome returns the IsIncome field if non-nil, zero value otherwise. + +### GetIsIncomeOk + +`func (o *TransactionCreateResponseBody) GetIsIncomeOk() (*bool, bool)` + +GetIsIncomeOk returns a tuple with the IsIncome field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsIncome + +`func (o *TransactionCreateResponseBody) SetIsIncome(v bool)` + +SetIsIncome sets IsIncome field to given value. + +### HasIsIncome + +`func (o *TransactionCreateResponseBody) HasIsIncome() bool` + +HasIsIncome returns a boolean if a field has been set. + +### SetIsIncomeNil + +`func (o *TransactionCreateResponseBody) SetIsIncomeNil(b bool)` + + SetIsIncomeNil sets the value for IsIncome to be an explicit nil + +### UnsetIsIncome +`func (o *TransactionCreateResponseBody) UnsetIsIncome()` + +UnsetIsIncome ensures that no value is present for IsIncome, not even an explicit nil +### GetIsInternational + +`func (o *TransactionCreateResponseBody) GetIsInternational() bool` + +GetIsInternational returns the IsInternational field if non-nil, zero value otherwise. + +### GetIsInternationalOk + +`func (o *TransactionCreateResponseBody) GetIsInternationalOk() (*bool, bool)` + +GetIsInternationalOk returns a tuple with the IsInternational field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsInternational + +`func (o *TransactionCreateResponseBody) SetIsInternational(v bool)` + +SetIsInternational sets IsInternational field to given value. + +### HasIsInternational + +`func (o *TransactionCreateResponseBody) HasIsInternational() bool` + +HasIsInternational returns a boolean if a field has been set. + +### SetIsInternationalNil + +`func (o *TransactionCreateResponseBody) SetIsInternationalNil(b bool)` + + SetIsInternationalNil sets the value for IsInternational to be an explicit nil + +### UnsetIsInternational +`func (o *TransactionCreateResponseBody) UnsetIsInternational()` + +UnsetIsInternational ensures that no value is present for IsInternational, not even an explicit nil +### GetIsManual + +`func (o *TransactionCreateResponseBody) GetIsManual() bool` + +GetIsManual returns the IsManual field if non-nil, zero value otherwise. + +### GetIsManualOk + +`func (o *TransactionCreateResponseBody) GetIsManualOk() (*bool, bool)` + +GetIsManualOk returns a tuple with the IsManual field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsManual + +`func (o *TransactionCreateResponseBody) SetIsManual(v bool)` + +SetIsManual sets IsManual field to given value. + +### HasIsManual + +`func (o *TransactionCreateResponseBody) HasIsManual() bool` + +HasIsManual returns a boolean if a field has been set. + +### SetIsManualNil + +`func (o *TransactionCreateResponseBody) SetIsManualNil(b bool)` + + SetIsManualNil sets the value for IsManual to be an explicit nil + +### UnsetIsManual +`func (o *TransactionCreateResponseBody) UnsetIsManual()` + +UnsetIsManual ensures that no value is present for IsManual, not even an explicit nil +### GetIsOverdraftFee + +`func (o *TransactionCreateResponseBody) GetIsOverdraftFee() bool` + +GetIsOverdraftFee returns the IsOverdraftFee field if non-nil, zero value otherwise. + +### GetIsOverdraftFeeOk + +`func (o *TransactionCreateResponseBody) GetIsOverdraftFeeOk() (*bool, bool)` + +GetIsOverdraftFeeOk returns a tuple with the IsOverdraftFee field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsOverdraftFee + +`func (o *TransactionCreateResponseBody) SetIsOverdraftFee(v bool)` + +SetIsOverdraftFee sets IsOverdraftFee field to given value. + +### HasIsOverdraftFee + +`func (o *TransactionCreateResponseBody) HasIsOverdraftFee() bool` + +HasIsOverdraftFee returns a boolean if a field has been set. + +### SetIsOverdraftFeeNil + +`func (o *TransactionCreateResponseBody) SetIsOverdraftFeeNil(b bool)` + + SetIsOverdraftFeeNil sets the value for IsOverdraftFee to be an explicit nil + +### UnsetIsOverdraftFee +`func (o *TransactionCreateResponseBody) UnsetIsOverdraftFee()` + +UnsetIsOverdraftFee ensures that no value is present for IsOverdraftFee, not even an explicit nil +### GetIsPayrollAdvance + +`func (o *TransactionCreateResponseBody) GetIsPayrollAdvance() bool` + +GetIsPayrollAdvance returns the IsPayrollAdvance field if non-nil, zero value otherwise. + +### GetIsPayrollAdvanceOk + +`func (o *TransactionCreateResponseBody) GetIsPayrollAdvanceOk() (*bool, bool)` + +GetIsPayrollAdvanceOk returns a tuple with the IsPayrollAdvance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPayrollAdvance + +`func (o *TransactionCreateResponseBody) SetIsPayrollAdvance(v bool)` + +SetIsPayrollAdvance sets IsPayrollAdvance field to given value. + +### HasIsPayrollAdvance + +`func (o *TransactionCreateResponseBody) HasIsPayrollAdvance() bool` + +HasIsPayrollAdvance returns a boolean if a field has been set. + +### SetIsPayrollAdvanceNil + +`func (o *TransactionCreateResponseBody) SetIsPayrollAdvanceNil(b bool)` + + SetIsPayrollAdvanceNil sets the value for IsPayrollAdvance to be an explicit nil + +### UnsetIsPayrollAdvance +`func (o *TransactionCreateResponseBody) UnsetIsPayrollAdvance()` + +UnsetIsPayrollAdvance ensures that no value is present for IsPayrollAdvance, not even an explicit nil +### GetIsRecurring + +`func (o *TransactionCreateResponseBody) GetIsRecurring() bool` + +GetIsRecurring returns the IsRecurring field if non-nil, zero value otherwise. + +### GetIsRecurringOk + +`func (o *TransactionCreateResponseBody) GetIsRecurringOk() (*bool, bool)` + +GetIsRecurringOk returns a tuple with the IsRecurring field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsRecurring + +`func (o *TransactionCreateResponseBody) SetIsRecurring(v bool)` + +SetIsRecurring sets IsRecurring field to given value. + +### HasIsRecurring + +`func (o *TransactionCreateResponseBody) HasIsRecurring() bool` + +HasIsRecurring returns a boolean if a field has been set. + +### SetIsRecurringNil + +`func (o *TransactionCreateResponseBody) SetIsRecurringNil(b bool)` + + SetIsRecurringNil sets the value for IsRecurring to be an explicit nil + +### UnsetIsRecurring +`func (o *TransactionCreateResponseBody) UnsetIsRecurring()` + +UnsetIsRecurring ensures that no value is present for IsRecurring, not even an explicit nil +### GetIsSubscription + +`func (o *TransactionCreateResponseBody) GetIsSubscription() bool` + +GetIsSubscription returns the IsSubscription field if non-nil, zero value otherwise. + +### GetIsSubscriptionOk + +`func (o *TransactionCreateResponseBody) GetIsSubscriptionOk() (*bool, bool)` + +GetIsSubscriptionOk returns a tuple with the IsSubscription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSubscription + +`func (o *TransactionCreateResponseBody) SetIsSubscription(v bool)` + +SetIsSubscription sets IsSubscription field to given value. + +### HasIsSubscription + +`func (o *TransactionCreateResponseBody) HasIsSubscription() bool` + +HasIsSubscription returns a boolean if a field has been set. + +### SetIsSubscriptionNil + +`func (o *TransactionCreateResponseBody) SetIsSubscriptionNil(b bool)` + + SetIsSubscriptionNil sets the value for IsSubscription to be an explicit nil + +### UnsetIsSubscription +`func (o *TransactionCreateResponseBody) UnsetIsSubscription()` + +UnsetIsSubscription ensures that no value is present for IsSubscription, not even an explicit nil +### GetLatitude + +`func (o *TransactionCreateResponseBody) GetLatitude() float32` + +GetLatitude returns the Latitude field if non-nil, zero value otherwise. + +### GetLatitudeOk + +`func (o *TransactionCreateResponseBody) GetLatitudeOk() (*float32, bool)` + +GetLatitudeOk returns a tuple with the Latitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatitude + +`func (o *TransactionCreateResponseBody) SetLatitude(v float32)` + +SetLatitude sets Latitude field to given value. + +### HasLatitude + +`func (o *TransactionCreateResponseBody) HasLatitude() bool` + +HasLatitude returns a boolean if a field has been set. + +### SetLatitudeNil + +`func (o *TransactionCreateResponseBody) SetLatitudeNil(b bool)` + + SetLatitudeNil sets the value for Latitude to be an explicit nil + +### UnsetLatitude +`func (o *TransactionCreateResponseBody) UnsetLatitude()` + +UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +### GetLocalizedDescription + +`func (o *TransactionCreateResponseBody) GetLocalizedDescription() string` + +GetLocalizedDescription returns the LocalizedDescription field if non-nil, zero value otherwise. + +### GetLocalizedDescriptionOk + +`func (o *TransactionCreateResponseBody) GetLocalizedDescriptionOk() (*string, bool)` + +GetLocalizedDescriptionOk returns a tuple with the LocalizedDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalizedDescription + +`func (o *TransactionCreateResponseBody) SetLocalizedDescription(v string)` + +SetLocalizedDescription sets LocalizedDescription field to given value. + +### HasLocalizedDescription + +`func (o *TransactionCreateResponseBody) HasLocalizedDescription() bool` + +HasLocalizedDescription returns a boolean if a field has been set. + +### SetLocalizedDescriptionNil + +`func (o *TransactionCreateResponseBody) SetLocalizedDescriptionNil(b bool)` + + SetLocalizedDescriptionNil sets the value for LocalizedDescription to be an explicit nil + +### UnsetLocalizedDescription +`func (o *TransactionCreateResponseBody) UnsetLocalizedDescription()` + +UnsetLocalizedDescription ensures that no value is present for LocalizedDescription, not even an explicit nil +### GetLocalizedMemo + +`func (o *TransactionCreateResponseBody) GetLocalizedMemo() string` + +GetLocalizedMemo returns the LocalizedMemo field if non-nil, zero value otherwise. + +### GetLocalizedMemoOk + +`func (o *TransactionCreateResponseBody) GetLocalizedMemoOk() (*string, bool)` + +GetLocalizedMemoOk returns a tuple with the LocalizedMemo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalizedMemo + +`func (o *TransactionCreateResponseBody) SetLocalizedMemo(v string)` + +SetLocalizedMemo sets LocalizedMemo field to given value. + +### HasLocalizedMemo + +`func (o *TransactionCreateResponseBody) HasLocalizedMemo() bool` + +HasLocalizedMemo returns a boolean if a field has been set. + +### SetLocalizedMemoNil + +`func (o *TransactionCreateResponseBody) SetLocalizedMemoNil(b bool)` + + SetLocalizedMemoNil sets the value for LocalizedMemo to be an explicit nil + +### UnsetLocalizedMemo +`func (o *TransactionCreateResponseBody) UnsetLocalizedMemo()` + +UnsetLocalizedMemo ensures that no value is present for LocalizedMemo, not even an explicit nil +### GetLongitude + +`func (o *TransactionCreateResponseBody) GetLongitude() float32` + +GetLongitude returns the Longitude field if non-nil, zero value otherwise. + +### GetLongitudeOk + +`func (o *TransactionCreateResponseBody) GetLongitudeOk() (*float32, bool)` + +GetLongitudeOk returns a tuple with the Longitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLongitude + +`func (o *TransactionCreateResponseBody) SetLongitude(v float32)` + +SetLongitude sets Longitude field to given value. + +### HasLongitude + +`func (o *TransactionCreateResponseBody) HasLongitude() bool` + +HasLongitude returns a boolean if a field has been set. + +### SetLongitudeNil + +`func (o *TransactionCreateResponseBody) SetLongitudeNil(b bool)` + + SetLongitudeNil sets the value for Longitude to be an explicit nil + +### UnsetLongitude +`func (o *TransactionCreateResponseBody) UnsetLongitude()` + +UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +### GetMemberGuid + +`func (o *TransactionCreateResponseBody) GetMemberGuid() string` + +GetMemberGuid returns the MemberGuid field if non-nil, zero value otherwise. + +### GetMemberGuidOk + +`func (o *TransactionCreateResponseBody) GetMemberGuidOk() (*string, bool)` + +GetMemberGuidOk returns a tuple with the MemberGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemberGuid + +`func (o *TransactionCreateResponseBody) SetMemberGuid(v string)` + +SetMemberGuid sets MemberGuid field to given value. + +### HasMemberGuid + +`func (o *TransactionCreateResponseBody) HasMemberGuid() bool` + +HasMemberGuid returns a boolean if a field has been set. + +### SetMemberGuidNil + +`func (o *TransactionCreateResponseBody) SetMemberGuidNil(b bool)` + + SetMemberGuidNil sets the value for MemberGuid to be an explicit nil + +### UnsetMemberGuid +`func (o *TransactionCreateResponseBody) UnsetMemberGuid()` + +UnsetMemberGuid ensures that no value is present for MemberGuid, not even an explicit nil +### GetMemberIsManagedByUser + +`func (o *TransactionCreateResponseBody) GetMemberIsManagedByUser() bool` + +GetMemberIsManagedByUser returns the MemberIsManagedByUser field if non-nil, zero value otherwise. + +### GetMemberIsManagedByUserOk + +`func (o *TransactionCreateResponseBody) GetMemberIsManagedByUserOk() (*bool, bool)` + +GetMemberIsManagedByUserOk returns a tuple with the MemberIsManagedByUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemberIsManagedByUser + +`func (o *TransactionCreateResponseBody) SetMemberIsManagedByUser(v bool)` + +SetMemberIsManagedByUser sets MemberIsManagedByUser field to given value. + +### HasMemberIsManagedByUser + +`func (o *TransactionCreateResponseBody) HasMemberIsManagedByUser() bool` + +HasMemberIsManagedByUser returns a boolean if a field has been set. + +### SetMemberIsManagedByUserNil + +`func (o *TransactionCreateResponseBody) SetMemberIsManagedByUserNil(b bool)` + + SetMemberIsManagedByUserNil sets the value for MemberIsManagedByUser to be an explicit nil + +### UnsetMemberIsManagedByUser +`func (o *TransactionCreateResponseBody) UnsetMemberIsManagedByUser()` + +UnsetMemberIsManagedByUser ensures that no value is present for MemberIsManagedByUser, not even an explicit nil +### GetMemo + +`func (o *TransactionCreateResponseBody) GetMemo() string` + +GetMemo returns the Memo field if non-nil, zero value otherwise. + +### GetMemoOk + +`func (o *TransactionCreateResponseBody) GetMemoOk() (*string, bool)` + +GetMemoOk returns a tuple with the Memo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemo + +`func (o *TransactionCreateResponseBody) SetMemo(v string)` + +SetMemo sets Memo field to given value. + +### HasMemo + +`func (o *TransactionCreateResponseBody) HasMemo() bool` + +HasMemo returns a boolean if a field has been set. + +### SetMemoNil + +`func (o *TransactionCreateResponseBody) SetMemoNil(b bool)` + + SetMemoNil sets the value for Memo to be an explicit nil + +### UnsetMemo +`func (o *TransactionCreateResponseBody) UnsetMemo()` + +UnsetMemo ensures that no value is present for Memo, not even an explicit nil +### GetMerchantCategoryCode + +`func (o *TransactionCreateResponseBody) GetMerchantCategoryCode() int32` + +GetMerchantCategoryCode returns the MerchantCategoryCode field if non-nil, zero value otherwise. + +### GetMerchantCategoryCodeOk + +`func (o *TransactionCreateResponseBody) GetMerchantCategoryCodeOk() (*int32, bool)` + +GetMerchantCategoryCodeOk returns a tuple with the MerchantCategoryCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMerchantCategoryCode + +`func (o *TransactionCreateResponseBody) SetMerchantCategoryCode(v int32)` + +SetMerchantCategoryCode sets MerchantCategoryCode field to given value. + +### HasMerchantCategoryCode + +`func (o *TransactionCreateResponseBody) HasMerchantCategoryCode() bool` + +HasMerchantCategoryCode returns a boolean if a field has been set. + +### SetMerchantCategoryCodeNil + +`func (o *TransactionCreateResponseBody) SetMerchantCategoryCodeNil(b bool)` + + SetMerchantCategoryCodeNil sets the value for MerchantCategoryCode to be an explicit nil + +### UnsetMerchantCategoryCode +`func (o *TransactionCreateResponseBody) UnsetMerchantCategoryCode()` + +UnsetMerchantCategoryCode ensures that no value is present for MerchantCategoryCode, not even an explicit nil +### GetMerchantGuid + +`func (o *TransactionCreateResponseBody) GetMerchantGuid() string` + +GetMerchantGuid returns the MerchantGuid field if non-nil, zero value otherwise. + +### GetMerchantGuidOk + +`func (o *TransactionCreateResponseBody) GetMerchantGuidOk() (*string, bool)` + +GetMerchantGuidOk returns a tuple with the MerchantGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMerchantGuid + +`func (o *TransactionCreateResponseBody) SetMerchantGuid(v string)` + +SetMerchantGuid sets MerchantGuid field to given value. + +### HasMerchantGuid + +`func (o *TransactionCreateResponseBody) HasMerchantGuid() bool` + +HasMerchantGuid returns a boolean if a field has been set. + +### SetMerchantGuidNil + +`func (o *TransactionCreateResponseBody) SetMerchantGuidNil(b bool)` + + SetMerchantGuidNil sets the value for MerchantGuid to be an explicit nil + +### UnsetMerchantGuid +`func (o *TransactionCreateResponseBody) UnsetMerchantGuid()` + +UnsetMerchantGuid ensures that no value is present for MerchantGuid, not even an explicit nil +### GetMerchantLocationGuid + +`func (o *TransactionCreateResponseBody) GetMerchantLocationGuid() string` + +GetMerchantLocationGuid returns the MerchantLocationGuid field if non-nil, zero value otherwise. + +### GetMerchantLocationGuidOk + +`func (o *TransactionCreateResponseBody) GetMerchantLocationGuidOk() (*string, bool)` + +GetMerchantLocationGuidOk returns a tuple with the MerchantLocationGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMerchantLocationGuid + +`func (o *TransactionCreateResponseBody) SetMerchantLocationGuid(v string)` + +SetMerchantLocationGuid sets MerchantLocationGuid field to given value. + +### HasMerchantLocationGuid + +`func (o *TransactionCreateResponseBody) HasMerchantLocationGuid() bool` + +HasMerchantLocationGuid returns a boolean if a field has been set. + +### SetMerchantLocationGuidNil + +`func (o *TransactionCreateResponseBody) SetMerchantLocationGuidNil(b bool)` + + SetMerchantLocationGuidNil sets the value for MerchantLocationGuid to be an explicit nil + +### UnsetMerchantLocationGuid +`func (o *TransactionCreateResponseBody) UnsetMerchantLocationGuid()` + +UnsetMerchantLocationGuid ensures that no value is present for MerchantLocationGuid, not even an explicit nil +### GetMetadata + +`func (o *TransactionCreateResponseBody) GetMetadata() string` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *TransactionCreateResponseBody) GetMetadataOk() (*string, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *TransactionCreateResponseBody) SetMetadata(v string)` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *TransactionCreateResponseBody) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### SetMetadataNil + +`func (o *TransactionCreateResponseBody) SetMetadataNil(b bool)` + + SetMetadataNil sets the value for Metadata to be an explicit nil + +### UnsetMetadata +`func (o *TransactionCreateResponseBody) UnsetMetadata()` + +UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil +### GetOriginalDescription + +`func (o *TransactionCreateResponseBody) GetOriginalDescription() string` + +GetOriginalDescription returns the OriginalDescription field if non-nil, zero value otherwise. + +### GetOriginalDescriptionOk + +`func (o *TransactionCreateResponseBody) GetOriginalDescriptionOk() (*string, bool)` + +GetOriginalDescriptionOk returns a tuple with the OriginalDescription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginalDescription + +`func (o *TransactionCreateResponseBody) SetOriginalDescription(v string)` + +SetOriginalDescription sets OriginalDescription field to given value. + +### HasOriginalDescription + +`func (o *TransactionCreateResponseBody) HasOriginalDescription() bool` + +HasOriginalDescription returns a boolean if a field has been set. + +### SetOriginalDescriptionNil + +`func (o *TransactionCreateResponseBody) SetOriginalDescriptionNil(b bool)` + + SetOriginalDescriptionNil sets the value for OriginalDescription to be an explicit nil + +### UnsetOriginalDescription +`func (o *TransactionCreateResponseBody) UnsetOriginalDescription()` + +UnsetOriginalDescription ensures that no value is present for OriginalDescription, not even an explicit nil +### GetPostedAt + +`func (o *TransactionCreateResponseBody) GetPostedAt() string` + +GetPostedAt returns the PostedAt field if non-nil, zero value otherwise. + +### GetPostedAtOk + +`func (o *TransactionCreateResponseBody) GetPostedAtOk() (*string, bool)` + +GetPostedAtOk returns a tuple with the PostedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPostedAt + +`func (o *TransactionCreateResponseBody) SetPostedAt(v string)` + +SetPostedAt sets PostedAt field to given value. + +### HasPostedAt + +`func (o *TransactionCreateResponseBody) HasPostedAt() bool` + +HasPostedAt returns a boolean if a field has been set. + +### SetPostedAtNil + +`func (o *TransactionCreateResponseBody) SetPostedAtNil(b bool)` + + SetPostedAtNil sets the value for PostedAt to be an explicit nil + +### UnsetPostedAt +`func (o *TransactionCreateResponseBody) UnsetPostedAt()` + +UnsetPostedAt ensures that no value is present for PostedAt, not even an explicit nil +### GetStatus + +`func (o *TransactionCreateResponseBody) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *TransactionCreateResponseBody) 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 *TransactionCreateResponseBody) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *TransactionCreateResponseBody) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### SetStatusNil + +`func (o *TransactionCreateResponseBody) SetStatusNil(b bool)` + + SetStatusNil sets the value for Status to be an explicit nil + +### UnsetStatus +`func (o *TransactionCreateResponseBody) UnsetStatus()` + +UnsetStatus ensures that no value is present for Status, not even an explicit nil +### GetTopLevelCategory + +`func (o *TransactionCreateResponseBody) GetTopLevelCategory() string` + +GetTopLevelCategory returns the TopLevelCategory field if non-nil, zero value otherwise. + +### GetTopLevelCategoryOk + +`func (o *TransactionCreateResponseBody) GetTopLevelCategoryOk() (*string, bool)` + +GetTopLevelCategoryOk returns a tuple with the TopLevelCategory field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTopLevelCategory + +`func (o *TransactionCreateResponseBody) SetTopLevelCategory(v string)` + +SetTopLevelCategory sets TopLevelCategory field to given value. + +### HasTopLevelCategory + +`func (o *TransactionCreateResponseBody) HasTopLevelCategory() bool` + +HasTopLevelCategory returns a boolean if a field has been set. + +### SetTopLevelCategoryNil + +`func (o *TransactionCreateResponseBody) SetTopLevelCategoryNil(b bool)` + + SetTopLevelCategoryNil sets the value for TopLevelCategory to be an explicit nil + +### UnsetTopLevelCategory +`func (o *TransactionCreateResponseBody) UnsetTopLevelCategory()` + +UnsetTopLevelCategory ensures that no value is present for TopLevelCategory, not even an explicit nil +### GetTransactedAt + +`func (o *TransactionCreateResponseBody) GetTransactedAt() string` + +GetTransactedAt returns the TransactedAt field if non-nil, zero value otherwise. + +### GetTransactedAtOk + +`func (o *TransactionCreateResponseBody) GetTransactedAtOk() (*string, bool)` + +GetTransactedAtOk returns a tuple with the TransactedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransactedAt + +`func (o *TransactionCreateResponseBody) SetTransactedAt(v string)` + +SetTransactedAt sets TransactedAt field to given value. + +### HasTransactedAt + +`func (o *TransactionCreateResponseBody) HasTransactedAt() bool` + +HasTransactedAt returns a boolean if a field has been set. + +### SetTransactedAtNil + +`func (o *TransactionCreateResponseBody) SetTransactedAtNil(b bool)` + + SetTransactedAtNil sets the value for TransactedAt to be an explicit nil + +### UnsetTransactedAt +`func (o *TransactionCreateResponseBody) UnsetTransactedAt()` + +UnsetTransactedAt ensures that no value is present for TransactedAt, not even an explicit nil +### GetType + +`func (o *TransactionCreateResponseBody) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *TransactionCreateResponseBody) 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 *TransactionCreateResponseBody) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *TransactionCreateResponseBody) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *TransactionCreateResponseBody) GetUpdatedAt() string` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *TransactionCreateResponseBody) GetUpdatedAtOk() (*string, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *TransactionCreateResponseBody) SetUpdatedAt(v string)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *TransactionCreateResponseBody) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetUserGuid + +`func (o *TransactionCreateResponseBody) GetUserGuid() string` + +GetUserGuid returns the UserGuid field if non-nil, zero value otherwise. + +### GetUserGuidOk + +`func (o *TransactionCreateResponseBody) GetUserGuidOk() (*string, bool)` + +GetUserGuidOk returns a tuple with the UserGuid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserGuid + +`func (o *TransactionCreateResponseBody) SetUserGuid(v string)` + +SetUserGuid sets UserGuid field to given value. + +### HasUserGuid + +`func (o *TransactionCreateResponseBody) HasUserGuid() bool` + +HasUserGuid returns a boolean if a field has been set. + +### SetUserGuidNil + +`func (o *TransactionCreateResponseBody) SetUserGuidNil(b bool)` + + SetUserGuidNil sets the value for UserGuid to be an explicit nil + +### UnsetUserGuid +`func (o *TransactionCreateResponseBody) UnsetUserGuid()` + +UnsetUserGuid ensures that no value is present for UserGuid, not even an explicit nil +### GetUserId + +`func (o *TransactionCreateResponseBody) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *TransactionCreateResponseBody) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *TransactionCreateResponseBody) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *TransactionCreateResponseBody) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### SetUserIdNil + +`func (o *TransactionCreateResponseBody) SetUserIdNil(b bool)` + + SetUserIdNil sets the value for UserId to be an explicit nil + +### UnsetUserId +`func (o *TransactionCreateResponseBody) UnsetUserId()` + +UnsetUserId ensures that no value is present for UserId, 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/docs/TransactionsAPI.md b/docs/TransactionsAPI.md new file mode 100644 index 0000000..84b611f --- /dev/null +++ b/docs/TransactionsAPI.md @@ -0,0 +1,84 @@ +# \TransactionsAPI + +All URIs are relative to *https://api.mx.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**UsersUserGuidAccountsAccountGuidTransactionsPost**](TransactionsAPI.md#UsersUserGuidAccountsAccountGuidTransactionsPost) | **Post** /users/{user_guid}/accounts/{account_guid}/transactions | Create manual transaction + + + +## UsersUserGuidAccountsAccountGuidTransactionsPost + +> TransactionCreateResponseBody UsersUserGuidAccountsAccountGuidTransactionsPost(ctx, userGuid, accountGuid).TransactionCreateRequestBody(transactionCreateRequestBody).Execute() + +Create manual transaction + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/mxenabled/mx-platform-go" +) + +func main() { + userGuid := "userGuid_example" // string | The unique identifier for the user. + accountGuid := "accountGuid_example" // string | The unique identifier for the account. + transactionCreateRequestBody := *openapiclient.NewTransactionCreateRequestBody() // TransactionCreateRequestBody | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TransactionsAPI.UsersUserGuidAccountsAccountGuidTransactionsPost(context.Background(), userGuid, accountGuid).TransactionCreateRequestBody(transactionCreateRequestBody).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TransactionsAPI.UsersUserGuidAccountsAccountGuidTransactionsPost``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UsersUserGuidAccountsAccountGuidTransactionsPost`: TransactionCreateResponseBody + fmt.Fprintf(os.Stdout, "Response from `TransactionsAPI.UsersUserGuidAccountsAccountGuidTransactionsPost`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**userGuid** | **string** | The unique identifier for the user. | +**accountGuid** | **string** | The unique identifier for the account. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUsersUserGuidAccountsAccountGuidTransactionsPostRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **transactionCreateRequestBody** | [**TransactionCreateRequestBody**](TransactionCreateRequestBody.md) | | + +### Return type + +[**TransactionCreateResponseBody**](TransactionCreateResponseBody.md) + +### Authorization + +[basicAuth](../README.md#basicAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/vnd.mx.api.v1+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/model_microdeposit_request.go b/model_microdeposit_request.go new file mode 100644 index 0000000..1828901 --- /dev/null +++ b/model_microdeposit_request.go @@ -0,0 +1,315 @@ +/* +MX Platform API + +The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions. + +API version: 0.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package mxplatformgo + +import ( + "encoding/json" +) + +// checks if the MicrodepositRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MicrodepositRequest{} + +// MicrodepositRequest struct for MicrodepositRequest +type MicrodepositRequest struct { + AccountNumber string `json:"account_number"` + AccountType string `json:"account_type"` + RoutingNumber string `json:"routing_number"` + AccountName *string `json:"account_name,omitempty"` + Email *string `json:"email,omitempty"` + FirstName *string `json:"first_name,omitempty"` + LastName *string `json:"last_name,omitempty"` +} + +// NewMicrodepositRequest instantiates a new MicrodepositRequest 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 NewMicrodepositRequest(accountNumber string, accountType string, routingNumber string) *MicrodepositRequest { + this := MicrodepositRequest{} + this.AccountNumber = accountNumber + this.AccountType = accountType + this.RoutingNumber = routingNumber + return &this +} + +// NewMicrodepositRequestWithDefaults instantiates a new MicrodepositRequest 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 NewMicrodepositRequestWithDefaults() *MicrodepositRequest { + this := MicrodepositRequest{} + return &this +} + +// GetAccountNumber returns the AccountNumber field value +func (o *MicrodepositRequest) GetAccountNumber() string { + if o == nil { + var ret string + return ret + } + + return o.AccountNumber +} + +// GetAccountNumberOk returns a tuple with the AccountNumber field value +// and a boolean to check if the value has been set. +func (o *MicrodepositRequest) GetAccountNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountNumber, true +} + +// SetAccountNumber sets field value +func (o *MicrodepositRequest) SetAccountNumber(v string) { + o.AccountNumber = v +} + +// GetAccountType returns the AccountType field value +func (o *MicrodepositRequest) GetAccountType() string { + if o == nil { + var ret string + 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 *MicrodepositRequest) GetAccountTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountType, true +} + +// SetAccountType sets field value +func (o *MicrodepositRequest) SetAccountType(v string) { + o.AccountType = v +} + +// GetRoutingNumber returns the RoutingNumber field value +func (o *MicrodepositRequest) GetRoutingNumber() string { + if o == nil { + var ret string + return ret + } + + return o.RoutingNumber +} + +// GetRoutingNumberOk returns a tuple with the RoutingNumber field value +// and a boolean to check if the value has been set. +func (o *MicrodepositRequest) GetRoutingNumberOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoutingNumber, true +} + +// SetRoutingNumber sets field value +func (o *MicrodepositRequest) SetRoutingNumber(v string) { + o.RoutingNumber = v +} + +// GetAccountName returns the AccountName field value if set, zero value otherwise. +func (o *MicrodepositRequest) GetAccountName() string { + if o == nil || IsNil(o.AccountName) { + var ret string + return ret + } + return *o.AccountName +} + +// GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositRequest) GetAccountNameOk() (*string, bool) { + if o == nil || IsNil(o.AccountName) { + return nil, false + } + return o.AccountName, true +} + +// HasAccountName returns a boolean if a field has been set. +func (o *MicrodepositRequest) HasAccountName() bool { + if o != nil && !IsNil(o.AccountName) { + return true + } + + return false +} + +// SetAccountName gets a reference to the given string and assigns it to the AccountName field. +func (o *MicrodepositRequest) SetAccountName(v string) { + o.AccountName = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *MicrodepositRequest) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositRequest) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *MicrodepositRequest) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *MicrodepositRequest) SetEmail(v string) { + o.Email = &v +} + +// GetFirstName returns the FirstName field value if set, zero value otherwise. +func (o *MicrodepositRequest) GetFirstName() string { + if o == nil || IsNil(o.FirstName) { + var ret string + return ret + } + return *o.FirstName +} + +// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositRequest) GetFirstNameOk() (*string, bool) { + if o == nil || IsNil(o.FirstName) { + return nil, false + } + return o.FirstName, true +} + +// HasFirstName returns a boolean if a field has been set. +func (o *MicrodepositRequest) HasFirstName() bool { + if o != nil && !IsNil(o.FirstName) { + return true + } + + return false +} + +// SetFirstName gets a reference to the given string and assigns it to the FirstName field. +func (o *MicrodepositRequest) SetFirstName(v string) { + o.FirstName = &v +} + +// GetLastName returns the LastName field value if set, zero value otherwise. +func (o *MicrodepositRequest) GetLastName() string { + if o == nil || IsNil(o.LastName) { + var ret string + return ret + } + return *o.LastName +} + +// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositRequest) GetLastNameOk() (*string, bool) { + if o == nil || IsNil(o.LastName) { + return nil, false + } + return o.LastName, true +} + +// HasLastName returns a boolean if a field has been set. +func (o *MicrodepositRequest) HasLastName() bool { + if o != nil && !IsNil(o.LastName) { + return true + } + + return false +} + +// SetLastName gets a reference to the given string and assigns it to the LastName field. +func (o *MicrodepositRequest) SetLastName(v string) { + o.LastName = &v +} + +func (o MicrodepositRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MicrodepositRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["account_number"] = o.AccountNumber + toSerialize["account_type"] = o.AccountType + toSerialize["routing_number"] = o.RoutingNumber + if !IsNil(o.AccountName) { + toSerialize["account_name"] = o.AccountName + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.FirstName) { + toSerialize["first_name"] = o.FirstName + } + if !IsNil(o.LastName) { + toSerialize["last_name"] = o.LastName + } + return toSerialize, nil +} + +type NullableMicrodepositRequest struct { + value *MicrodepositRequest + isSet bool +} + +func (v NullableMicrodepositRequest) Get() *MicrodepositRequest { + return v.value +} + +func (v *NullableMicrodepositRequest) Set(val *MicrodepositRequest) { + v.value = val + v.isSet = true +} + +func (v NullableMicrodepositRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableMicrodepositRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMicrodepositRequest(val *MicrodepositRequest) *NullableMicrodepositRequest { + return &NullableMicrodepositRequest{value: val, isSet: true} +} + +func (v NullableMicrodepositRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMicrodepositRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_microdeposit_request_body.go b/model_microdeposit_request_body.go new file mode 100644 index 0000000..4bc09bb --- /dev/null +++ b/model_microdeposit_request_body.go @@ -0,0 +1,126 @@ +/* +MX Platform API + +The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions. + +API version: 0.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package mxplatformgo + +import ( + "encoding/json" +) + +// checks if the MicrodepositRequestBody type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MicrodepositRequestBody{} + +// MicrodepositRequestBody struct for MicrodepositRequestBody +type MicrodepositRequestBody struct { + MicroDeposit *MicrodepositRequest `json:"micro_deposit,omitempty"` +} + +// NewMicrodepositRequestBody instantiates a new MicrodepositRequestBody 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 NewMicrodepositRequestBody() *MicrodepositRequestBody { + this := MicrodepositRequestBody{} + return &this +} + +// NewMicrodepositRequestBodyWithDefaults instantiates a new MicrodepositRequestBody 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 NewMicrodepositRequestBodyWithDefaults() *MicrodepositRequestBody { + this := MicrodepositRequestBody{} + return &this +} + +// GetMicroDeposit returns the MicroDeposit field value if set, zero value otherwise. +func (o *MicrodepositRequestBody) GetMicroDeposit() MicrodepositRequest { + if o == nil || IsNil(o.MicroDeposit) { + var ret MicrodepositRequest + return ret + } + return *o.MicroDeposit +} + +// GetMicroDepositOk returns a tuple with the MicroDeposit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositRequestBody) GetMicroDepositOk() (*MicrodepositRequest, bool) { + if o == nil || IsNil(o.MicroDeposit) { + return nil, false + } + return o.MicroDeposit, true +} + +// HasMicroDeposit returns a boolean if a field has been set. +func (o *MicrodepositRequestBody) HasMicroDeposit() bool { + if o != nil && !IsNil(o.MicroDeposit) { + return true + } + + return false +} + +// SetMicroDeposit gets a reference to the given MicrodepositRequest and assigns it to the MicroDeposit field. +func (o *MicrodepositRequestBody) SetMicroDeposit(v MicrodepositRequest) { + o.MicroDeposit = &v +} + +func (o MicrodepositRequestBody) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MicrodepositRequestBody) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.MicroDeposit) { + toSerialize["micro_deposit"] = o.MicroDeposit + } + return toSerialize, nil +} + +type NullableMicrodepositRequestBody struct { + value *MicrodepositRequestBody + isSet bool +} + +func (v NullableMicrodepositRequestBody) Get() *MicrodepositRequestBody { + return v.value +} + +func (v *NullableMicrodepositRequestBody) Set(val *MicrodepositRequestBody) { + v.value = val + v.isSet = true +} + +func (v NullableMicrodepositRequestBody) IsSet() bool { + return v.isSet +} + +func (v *NullableMicrodepositRequestBody) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMicrodepositRequestBody(val *MicrodepositRequestBody) *NullableMicrodepositRequestBody { + return &NullableMicrodepositRequestBody{value: val, isSet: true} +} + +func (v NullableMicrodepositRequestBody) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMicrodepositRequestBody) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_microdeposit_response.go b/model_microdeposit_response.go new file mode 100644 index 0000000..6308175 --- /dev/null +++ b/model_microdeposit_response.go @@ -0,0 +1,594 @@ +/* +MX Platform API + +The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions. + +API version: 0.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package mxplatformgo + +import ( + "encoding/json" +) + +// checks if the MicrodepositResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MicrodepositResponse{} + +// MicrodepositResponse struct for MicrodepositResponse +type MicrodepositResponse struct { + AccountName *string `json:"account_name,omitempty"` + AccountNumber *string `json:"account_number,omitempty"` + AccountType *string `json:"account_type,omitempty"` + Email *string `json:"email,omitempty"` + FirstName *string `json:"first_name,omitempty"` + LastName *string `json:"last_name,omitempty"` + RoutingNumber *string `json:"routing_number,omitempty"` + ErrorMessage *string `json:"error_message,omitempty"` + Guid *string `json:"guid,omitempty"` + InstitutionCode *string `json:"institution_code,omitempty"` + InstitutionName *string `json:"institution_name,omitempty"` + Status *string `json:"status,omitempty"` + UpdatedAt *string `json:"updated_at,omitempty"` + VerifiedAt *string `json:"verified_at,omitempty"` +} + +// NewMicrodepositResponse instantiates a new MicrodepositResponse 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 NewMicrodepositResponse() *MicrodepositResponse { + this := MicrodepositResponse{} + return &this +} + +// NewMicrodepositResponseWithDefaults instantiates a new MicrodepositResponse 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 NewMicrodepositResponseWithDefaults() *MicrodepositResponse { + this := MicrodepositResponse{} + return &this +} + +// GetAccountName returns the AccountName field value if set, zero value otherwise. +func (o *MicrodepositResponse) GetAccountName() string { + if o == nil || IsNil(o.AccountName) { + var ret string + return ret + } + return *o.AccountName +} + +// GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositResponse) GetAccountNameOk() (*string, bool) { + if o == nil || IsNil(o.AccountName) { + return nil, false + } + return o.AccountName, true +} + +// HasAccountName returns a boolean if a field has been set. +func (o *MicrodepositResponse) HasAccountName() bool { + if o != nil && !IsNil(o.AccountName) { + return true + } + + return false +} + +// SetAccountName gets a reference to the given string and assigns it to the AccountName field. +func (o *MicrodepositResponse) SetAccountName(v string) { + o.AccountName = &v +} + +// GetAccountNumber returns the AccountNumber field value if set, zero value otherwise. +func (o *MicrodepositResponse) GetAccountNumber() string { + if o == nil || IsNil(o.AccountNumber) { + var ret string + return ret + } + return *o.AccountNumber +} + +// GetAccountNumberOk returns a tuple with the AccountNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositResponse) GetAccountNumberOk() (*string, bool) { + if o == nil || IsNil(o.AccountNumber) { + return nil, false + } + return o.AccountNumber, true +} + +// HasAccountNumber returns a boolean if a field has been set. +func (o *MicrodepositResponse) HasAccountNumber() bool { + if o != nil && !IsNil(o.AccountNumber) { + return true + } + + return false +} + +// SetAccountNumber gets a reference to the given string and assigns it to the AccountNumber field. +func (o *MicrodepositResponse) SetAccountNumber(v string) { + o.AccountNumber = &v +} + +// GetAccountType returns the AccountType field value if set, zero value otherwise. +func (o *MicrodepositResponse) GetAccountType() string { + if o == nil || IsNil(o.AccountType) { + var ret string + return ret + } + return *o.AccountType +} + +// GetAccountTypeOk returns a tuple with the AccountType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositResponse) GetAccountTypeOk() (*string, bool) { + if o == nil || IsNil(o.AccountType) { + return nil, false + } + return o.AccountType, true +} + +// HasAccountType returns a boolean if a field has been set. +func (o *MicrodepositResponse) HasAccountType() bool { + if o != nil && !IsNil(o.AccountType) { + return true + } + + return false +} + +// SetAccountType gets a reference to the given string and assigns it to the AccountType field. +func (o *MicrodepositResponse) SetAccountType(v string) { + o.AccountType = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *MicrodepositResponse) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositResponse) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *MicrodepositResponse) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *MicrodepositResponse) SetEmail(v string) { + o.Email = &v +} + +// GetFirstName returns the FirstName field value if set, zero value otherwise. +func (o *MicrodepositResponse) GetFirstName() string { + if o == nil || IsNil(o.FirstName) { + var ret string + return ret + } + return *o.FirstName +} + +// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositResponse) GetFirstNameOk() (*string, bool) { + if o == nil || IsNil(o.FirstName) { + return nil, false + } + return o.FirstName, true +} + +// HasFirstName returns a boolean if a field has been set. +func (o *MicrodepositResponse) HasFirstName() bool { + if o != nil && !IsNil(o.FirstName) { + return true + } + + return false +} + +// SetFirstName gets a reference to the given string and assigns it to the FirstName field. +func (o *MicrodepositResponse) SetFirstName(v string) { + o.FirstName = &v +} + +// GetLastName returns the LastName field value if set, zero value otherwise. +func (o *MicrodepositResponse) GetLastName() string { + if o == nil || IsNil(o.LastName) { + var ret string + return ret + } + return *o.LastName +} + +// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositResponse) GetLastNameOk() (*string, bool) { + if o == nil || IsNil(o.LastName) { + return nil, false + } + return o.LastName, true +} + +// HasLastName returns a boolean if a field has been set. +func (o *MicrodepositResponse) HasLastName() bool { + if o != nil && !IsNil(o.LastName) { + return true + } + + return false +} + +// SetLastName gets a reference to the given string and assigns it to the LastName field. +func (o *MicrodepositResponse) SetLastName(v string) { + o.LastName = &v +} + +// GetRoutingNumber returns the RoutingNumber field value if set, zero value otherwise. +func (o *MicrodepositResponse) GetRoutingNumber() string { + if o == nil || IsNil(o.RoutingNumber) { + var ret string + return ret + } + return *o.RoutingNumber +} + +// GetRoutingNumberOk returns a tuple with the RoutingNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositResponse) GetRoutingNumberOk() (*string, bool) { + if o == nil || IsNil(o.RoutingNumber) { + return nil, false + } + return o.RoutingNumber, true +} + +// HasRoutingNumber returns a boolean if a field has been set. +func (o *MicrodepositResponse) HasRoutingNumber() bool { + if o != nil && !IsNil(o.RoutingNumber) { + return true + } + + return false +} + +// SetRoutingNumber gets a reference to the given string and assigns it to the RoutingNumber field. +func (o *MicrodepositResponse) SetRoutingNumber(v string) { + o.RoutingNumber = &v +} + +// GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise. +func (o *MicrodepositResponse) GetErrorMessage() string { + if o == nil || IsNil(o.ErrorMessage) { + var ret string + return ret + } + return *o.ErrorMessage +} + +// GetErrorMessageOk returns a tuple with the ErrorMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositResponse) GetErrorMessageOk() (*string, bool) { + if o == nil || IsNil(o.ErrorMessage) { + return nil, false + } + return o.ErrorMessage, true +} + +// HasErrorMessage returns a boolean if a field has been set. +func (o *MicrodepositResponse) HasErrorMessage() bool { + if o != nil && !IsNil(o.ErrorMessage) { + return true + } + + return false +} + +// SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field. +func (o *MicrodepositResponse) SetErrorMessage(v string) { + o.ErrorMessage = &v +} + +// GetGuid returns the Guid field value if set, zero value otherwise. +func (o *MicrodepositResponse) GetGuid() string { + if o == nil || IsNil(o.Guid) { + var ret string + return ret + } + return *o.Guid +} + +// GetGuidOk returns a tuple with the Guid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositResponse) GetGuidOk() (*string, bool) { + if o == nil || IsNil(o.Guid) { + return nil, false + } + return o.Guid, true +} + +// HasGuid returns a boolean if a field has been set. +func (o *MicrodepositResponse) HasGuid() bool { + if o != nil && !IsNil(o.Guid) { + return true + } + + return false +} + +// SetGuid gets a reference to the given string and assigns it to the Guid field. +func (o *MicrodepositResponse) SetGuid(v string) { + o.Guid = &v +} + +// GetInstitutionCode returns the InstitutionCode field value if set, zero value otherwise. +func (o *MicrodepositResponse) GetInstitutionCode() string { + if o == nil || IsNil(o.InstitutionCode) { + var ret string + return ret + } + return *o.InstitutionCode +} + +// GetInstitutionCodeOk returns a tuple with the InstitutionCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositResponse) GetInstitutionCodeOk() (*string, bool) { + if o == nil || IsNil(o.InstitutionCode) { + return nil, false + } + return o.InstitutionCode, true +} + +// HasInstitutionCode returns a boolean if a field has been set. +func (o *MicrodepositResponse) HasInstitutionCode() bool { + if o != nil && !IsNil(o.InstitutionCode) { + return true + } + + return false +} + +// SetInstitutionCode gets a reference to the given string and assigns it to the InstitutionCode field. +func (o *MicrodepositResponse) SetInstitutionCode(v string) { + o.InstitutionCode = &v +} + +// GetInstitutionName returns the InstitutionName field value if set, zero value otherwise. +func (o *MicrodepositResponse) GetInstitutionName() string { + if o == nil || IsNil(o.InstitutionName) { + var ret string + return ret + } + return *o.InstitutionName +} + +// GetInstitutionNameOk returns a tuple with the InstitutionName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositResponse) GetInstitutionNameOk() (*string, bool) { + if o == nil || IsNil(o.InstitutionName) { + return nil, false + } + return o.InstitutionName, true +} + +// HasInstitutionName returns a boolean if a field has been set. +func (o *MicrodepositResponse) HasInstitutionName() bool { + if o != nil && !IsNil(o.InstitutionName) { + return true + } + + return false +} + +// SetInstitutionName gets a reference to the given string and assigns it to the InstitutionName field. +func (o *MicrodepositResponse) SetInstitutionName(v string) { + o.InstitutionName = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *MicrodepositResponse) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositResponse) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *MicrodepositResponse) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *MicrodepositResponse) SetStatus(v string) { + o.Status = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *MicrodepositResponse) GetUpdatedAt() string { + if o == nil || IsNil(o.UpdatedAt) { + var ret string + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositResponse) GetUpdatedAtOk() (*string, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *MicrodepositResponse) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field. +func (o *MicrodepositResponse) SetUpdatedAt(v string) { + o.UpdatedAt = &v +} + +// GetVerifiedAt returns the VerifiedAt field value if set, zero value otherwise. +func (o *MicrodepositResponse) GetVerifiedAt() string { + if o == nil || IsNil(o.VerifiedAt) { + var ret string + return ret + } + return *o.VerifiedAt +} + +// GetVerifiedAtOk returns a tuple with the VerifiedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositResponse) GetVerifiedAtOk() (*string, bool) { + if o == nil || IsNil(o.VerifiedAt) { + return nil, false + } + return o.VerifiedAt, true +} + +// HasVerifiedAt returns a boolean if a field has been set. +func (o *MicrodepositResponse) HasVerifiedAt() bool { + if o != nil && !IsNil(o.VerifiedAt) { + return true + } + + return false +} + +// SetVerifiedAt gets a reference to the given string and assigns it to the VerifiedAt field. +func (o *MicrodepositResponse) SetVerifiedAt(v string) { + o.VerifiedAt = &v +} + +func (o MicrodepositResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MicrodepositResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountName) { + toSerialize["account_name"] = o.AccountName + } + if !IsNil(o.AccountNumber) { + toSerialize["account_number"] = o.AccountNumber + } + if !IsNil(o.AccountType) { + toSerialize["account_type"] = o.AccountType + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.FirstName) { + toSerialize["first_name"] = o.FirstName + } + if !IsNil(o.LastName) { + toSerialize["last_name"] = o.LastName + } + if !IsNil(o.RoutingNumber) { + toSerialize["routing_number"] = o.RoutingNumber + } + if !IsNil(o.ErrorMessage) { + toSerialize["error_message"] = o.ErrorMessage + } + if !IsNil(o.Guid) { + toSerialize["guid"] = o.Guid + } + if !IsNil(o.InstitutionCode) { + toSerialize["institution_code"] = o.InstitutionCode + } + if !IsNil(o.InstitutionName) { + toSerialize["institution_name"] = o.InstitutionName + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + if !IsNil(o.VerifiedAt) { + toSerialize["verified_at"] = o.VerifiedAt + } + return toSerialize, nil +} + +type NullableMicrodepositResponse struct { + value *MicrodepositResponse + isSet bool +} + +func (v NullableMicrodepositResponse) Get() *MicrodepositResponse { + return v.value +} + +func (v *NullableMicrodepositResponse) Set(val *MicrodepositResponse) { + v.value = val + v.isSet = true +} + +func (v NullableMicrodepositResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableMicrodepositResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMicrodepositResponse(val *MicrodepositResponse) *NullableMicrodepositResponse { + return &NullableMicrodepositResponse{value: val, isSet: true} +} + +func (v NullableMicrodepositResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMicrodepositResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_microdeposit_response_body.go b/model_microdeposit_response_body.go new file mode 100644 index 0000000..8b2f4ea --- /dev/null +++ b/model_microdeposit_response_body.go @@ -0,0 +1,126 @@ +/* +MX Platform API + +The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions. + +API version: 0.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package mxplatformgo + +import ( + "encoding/json" +) + +// checks if the MicrodepositResponseBody type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MicrodepositResponseBody{} + +// MicrodepositResponseBody struct for MicrodepositResponseBody +type MicrodepositResponseBody struct { + MicroDeposit *MicrodepositResponse `json:"micro_deposit,omitempty"` +} + +// NewMicrodepositResponseBody instantiates a new MicrodepositResponseBody 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 NewMicrodepositResponseBody() *MicrodepositResponseBody { + this := MicrodepositResponseBody{} + return &this +} + +// NewMicrodepositResponseBodyWithDefaults instantiates a new MicrodepositResponseBody 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 NewMicrodepositResponseBodyWithDefaults() *MicrodepositResponseBody { + this := MicrodepositResponseBody{} + return &this +} + +// GetMicroDeposit returns the MicroDeposit field value if set, zero value otherwise. +func (o *MicrodepositResponseBody) GetMicroDeposit() MicrodepositResponse { + if o == nil || IsNil(o.MicroDeposit) { + var ret MicrodepositResponse + return ret + } + return *o.MicroDeposit +} + +// GetMicroDepositOk returns a tuple with the MicroDeposit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositResponseBody) GetMicroDepositOk() (*MicrodepositResponse, bool) { + if o == nil || IsNil(o.MicroDeposit) { + return nil, false + } + return o.MicroDeposit, true +} + +// HasMicroDeposit returns a boolean if a field has been set. +func (o *MicrodepositResponseBody) HasMicroDeposit() bool { + if o != nil && !IsNil(o.MicroDeposit) { + return true + } + + return false +} + +// SetMicroDeposit gets a reference to the given MicrodepositResponse and assigns it to the MicroDeposit field. +func (o *MicrodepositResponseBody) SetMicroDeposit(v MicrodepositResponse) { + o.MicroDeposit = &v +} + +func (o MicrodepositResponseBody) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MicrodepositResponseBody) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.MicroDeposit) { + toSerialize["micro_deposit"] = o.MicroDeposit + } + return toSerialize, nil +} + +type NullableMicrodepositResponseBody struct { + value *MicrodepositResponseBody + isSet bool +} + +func (v NullableMicrodepositResponseBody) Get() *MicrodepositResponseBody { + return v.value +} + +func (v *NullableMicrodepositResponseBody) Set(val *MicrodepositResponseBody) { + v.value = val + v.isSet = true +} + +func (v NullableMicrodepositResponseBody) IsSet() bool { + return v.isSet +} + +func (v *NullableMicrodepositResponseBody) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMicrodepositResponseBody(val *MicrodepositResponseBody) *NullableMicrodepositResponseBody { + return &NullableMicrodepositResponseBody{value: val, isSet: true} +} + +func (v NullableMicrodepositResponseBody) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMicrodepositResponseBody) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_microdeposit_verify_request.go b/model_microdeposit_verify_request.go new file mode 100644 index 0000000..848c82d --- /dev/null +++ b/model_microdeposit_verify_request.go @@ -0,0 +1,162 @@ +/* +MX Platform API + +The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions. + +API version: 0.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package mxplatformgo + +import ( + "encoding/json" +) + +// checks if the MicrodepositVerifyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MicrodepositVerifyRequest{} + +// MicrodepositVerifyRequest struct for MicrodepositVerifyRequest +type MicrodepositVerifyRequest struct { + DepositAmount1 *int32 `json:"deposit_amount_1,omitempty"` + DepositAmount2 *int32 `json:"deposit_amount_2,omitempty"` +} + +// NewMicrodepositVerifyRequest instantiates a new MicrodepositVerifyRequest 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 NewMicrodepositVerifyRequest() *MicrodepositVerifyRequest { + this := MicrodepositVerifyRequest{} + return &this +} + +// NewMicrodepositVerifyRequestWithDefaults instantiates a new MicrodepositVerifyRequest 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 NewMicrodepositVerifyRequestWithDefaults() *MicrodepositVerifyRequest { + this := MicrodepositVerifyRequest{} + return &this +} + +// GetDepositAmount1 returns the DepositAmount1 field value if set, zero value otherwise. +func (o *MicrodepositVerifyRequest) GetDepositAmount1() int32 { + if o == nil || IsNil(o.DepositAmount1) { + var ret int32 + return ret + } + return *o.DepositAmount1 +} + +// GetDepositAmount1Ok returns a tuple with the DepositAmount1 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositVerifyRequest) GetDepositAmount1Ok() (*int32, bool) { + if o == nil || IsNil(o.DepositAmount1) { + return nil, false + } + return o.DepositAmount1, true +} + +// HasDepositAmount1 returns a boolean if a field has been set. +func (o *MicrodepositVerifyRequest) HasDepositAmount1() bool { + if o != nil && !IsNil(o.DepositAmount1) { + return true + } + + return false +} + +// SetDepositAmount1 gets a reference to the given int32 and assigns it to the DepositAmount1 field. +func (o *MicrodepositVerifyRequest) SetDepositAmount1(v int32) { + o.DepositAmount1 = &v +} + +// GetDepositAmount2 returns the DepositAmount2 field value if set, zero value otherwise. +func (o *MicrodepositVerifyRequest) GetDepositAmount2() int32 { + if o == nil || IsNil(o.DepositAmount2) { + var ret int32 + return ret + } + return *o.DepositAmount2 +} + +// GetDepositAmount2Ok returns a tuple with the DepositAmount2 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositVerifyRequest) GetDepositAmount2Ok() (*int32, bool) { + if o == nil || IsNil(o.DepositAmount2) { + return nil, false + } + return o.DepositAmount2, true +} + +// HasDepositAmount2 returns a boolean if a field has been set. +func (o *MicrodepositVerifyRequest) HasDepositAmount2() bool { + if o != nil && !IsNil(o.DepositAmount2) { + return true + } + + return false +} + +// SetDepositAmount2 gets a reference to the given int32 and assigns it to the DepositAmount2 field. +func (o *MicrodepositVerifyRequest) SetDepositAmount2(v int32) { + o.DepositAmount2 = &v +} + +func (o MicrodepositVerifyRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MicrodepositVerifyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DepositAmount1) { + toSerialize["deposit_amount_1"] = o.DepositAmount1 + } + if !IsNil(o.DepositAmount2) { + toSerialize["deposit_amount_2"] = o.DepositAmount2 + } + return toSerialize, nil +} + +type NullableMicrodepositVerifyRequest struct { + value *MicrodepositVerifyRequest + isSet bool +} + +func (v NullableMicrodepositVerifyRequest) Get() *MicrodepositVerifyRequest { + return v.value +} + +func (v *NullableMicrodepositVerifyRequest) Set(val *MicrodepositVerifyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableMicrodepositVerifyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableMicrodepositVerifyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMicrodepositVerifyRequest(val *MicrodepositVerifyRequest) *NullableMicrodepositVerifyRequest { + return &NullableMicrodepositVerifyRequest{value: val, isSet: true} +} + +func (v NullableMicrodepositVerifyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMicrodepositVerifyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_microdeposit_verify_request_body.go b/model_microdeposit_verify_request_body.go new file mode 100644 index 0000000..b27e579 --- /dev/null +++ b/model_microdeposit_verify_request_body.go @@ -0,0 +1,126 @@ +/* +MX Platform API + +The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions. + +API version: 0.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package mxplatformgo + +import ( + "encoding/json" +) + +// checks if the MicrodepositVerifyRequestBody type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MicrodepositVerifyRequestBody{} + +// MicrodepositVerifyRequestBody struct for MicrodepositVerifyRequestBody +type MicrodepositVerifyRequestBody struct { + MicroDeposit *MicrodepositVerifyRequest `json:"micro_deposit,omitempty"` +} + +// NewMicrodepositVerifyRequestBody instantiates a new MicrodepositVerifyRequestBody 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 NewMicrodepositVerifyRequestBody() *MicrodepositVerifyRequestBody { + this := MicrodepositVerifyRequestBody{} + return &this +} + +// NewMicrodepositVerifyRequestBodyWithDefaults instantiates a new MicrodepositVerifyRequestBody 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 NewMicrodepositVerifyRequestBodyWithDefaults() *MicrodepositVerifyRequestBody { + this := MicrodepositVerifyRequestBody{} + return &this +} + +// GetMicroDeposit returns the MicroDeposit field value if set, zero value otherwise. +func (o *MicrodepositVerifyRequestBody) GetMicroDeposit() MicrodepositVerifyRequest { + if o == nil || IsNil(o.MicroDeposit) { + var ret MicrodepositVerifyRequest + return ret + } + return *o.MicroDeposit +} + +// GetMicroDepositOk returns a tuple with the MicroDeposit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositVerifyRequestBody) GetMicroDepositOk() (*MicrodepositVerifyRequest, bool) { + if o == nil || IsNil(o.MicroDeposit) { + return nil, false + } + return o.MicroDeposit, true +} + +// HasMicroDeposit returns a boolean if a field has been set. +func (o *MicrodepositVerifyRequestBody) HasMicroDeposit() bool { + if o != nil && !IsNil(o.MicroDeposit) { + return true + } + + return false +} + +// SetMicroDeposit gets a reference to the given MicrodepositVerifyRequest and assigns it to the MicroDeposit field. +func (o *MicrodepositVerifyRequestBody) SetMicroDeposit(v MicrodepositVerifyRequest) { + o.MicroDeposit = &v +} + +func (o MicrodepositVerifyRequestBody) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MicrodepositVerifyRequestBody) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.MicroDeposit) { + toSerialize["micro_deposit"] = o.MicroDeposit + } + return toSerialize, nil +} + +type NullableMicrodepositVerifyRequestBody struct { + value *MicrodepositVerifyRequestBody + isSet bool +} + +func (v NullableMicrodepositVerifyRequestBody) Get() *MicrodepositVerifyRequestBody { + return v.value +} + +func (v *NullableMicrodepositVerifyRequestBody) Set(val *MicrodepositVerifyRequestBody) { + v.value = val + v.isSet = true +} + +func (v NullableMicrodepositVerifyRequestBody) IsSet() bool { + return v.isSet +} + +func (v *NullableMicrodepositVerifyRequestBody) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMicrodepositVerifyRequestBody(val *MicrodepositVerifyRequestBody) *NullableMicrodepositVerifyRequestBody { + return &NullableMicrodepositVerifyRequestBody{value: val, isSet: true} +} + +func (v NullableMicrodepositVerifyRequestBody) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMicrodepositVerifyRequestBody) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_microdeposits_response_body.go b/model_microdeposits_response_body.go new file mode 100644 index 0000000..0d7ef43 --- /dev/null +++ b/model_microdeposits_response_body.go @@ -0,0 +1,162 @@ +/* +MX Platform API + +The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions. + +API version: 0.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package mxplatformgo + +import ( + "encoding/json" +) + +// checks if the MicrodepositsResponseBody type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MicrodepositsResponseBody{} + +// MicrodepositsResponseBody struct for MicrodepositsResponseBody +type MicrodepositsResponseBody struct { + MicroDeposits []MicrodepositResponse `json:"micro_deposits,omitempty"` + Pagination *PaginationResponse `json:"pagination,omitempty"` +} + +// NewMicrodepositsResponseBody instantiates a new MicrodepositsResponseBody 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 NewMicrodepositsResponseBody() *MicrodepositsResponseBody { + this := MicrodepositsResponseBody{} + return &this +} + +// NewMicrodepositsResponseBodyWithDefaults instantiates a new MicrodepositsResponseBody 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 NewMicrodepositsResponseBodyWithDefaults() *MicrodepositsResponseBody { + this := MicrodepositsResponseBody{} + return &this +} + +// GetMicroDeposits returns the MicroDeposits field value if set, zero value otherwise. +func (o *MicrodepositsResponseBody) GetMicroDeposits() []MicrodepositResponse { + if o == nil || IsNil(o.MicroDeposits) { + var ret []MicrodepositResponse + return ret + } + return o.MicroDeposits +} + +// GetMicroDepositsOk returns a tuple with the MicroDeposits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositsResponseBody) GetMicroDepositsOk() ([]MicrodepositResponse, bool) { + if o == nil || IsNil(o.MicroDeposits) { + return nil, false + } + return o.MicroDeposits, true +} + +// HasMicroDeposits returns a boolean if a field has been set. +func (o *MicrodepositsResponseBody) HasMicroDeposits() bool { + if o != nil && !IsNil(o.MicroDeposits) { + return true + } + + return false +} + +// SetMicroDeposits gets a reference to the given []MicrodepositResponse and assigns it to the MicroDeposits field. +func (o *MicrodepositsResponseBody) SetMicroDeposits(v []MicrodepositResponse) { + o.MicroDeposits = v +} + +// GetPagination returns the Pagination field value if set, zero value otherwise. +func (o *MicrodepositsResponseBody) GetPagination() PaginationResponse { + if o == nil || IsNil(o.Pagination) { + var ret PaginationResponse + return ret + } + return *o.Pagination +} + +// GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MicrodepositsResponseBody) GetPaginationOk() (*PaginationResponse, bool) { + if o == nil || IsNil(o.Pagination) { + return nil, false + } + return o.Pagination, true +} + +// HasPagination returns a boolean if a field has been set. +func (o *MicrodepositsResponseBody) HasPagination() bool { + if o != nil && !IsNil(o.Pagination) { + return true + } + + return false +} + +// SetPagination gets a reference to the given PaginationResponse and assigns it to the Pagination field. +func (o *MicrodepositsResponseBody) SetPagination(v PaginationResponse) { + o.Pagination = &v +} + +func (o MicrodepositsResponseBody) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MicrodepositsResponseBody) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.MicroDeposits) { + toSerialize["micro_deposits"] = o.MicroDeposits + } + if !IsNil(o.Pagination) { + toSerialize["pagination"] = o.Pagination + } + return toSerialize, nil +} + +type NullableMicrodepositsResponseBody struct { + value *MicrodepositsResponseBody + isSet bool +} + +func (v NullableMicrodepositsResponseBody) Get() *MicrodepositsResponseBody { + return v.value +} + +func (v *NullableMicrodepositsResponseBody) Set(val *MicrodepositsResponseBody) { + v.value = val + v.isSet = true +} + +func (v NullableMicrodepositsResponseBody) IsSet() bool { + return v.isSet +} + +func (v *NullableMicrodepositsResponseBody) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMicrodepositsResponseBody(val *MicrodepositsResponseBody) *NullableMicrodepositsResponseBody { + return &NullableMicrodepositsResponseBody{value: val, isSet: true} +} + +func (v NullableMicrodepositsResponseBody) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMicrodepositsResponseBody) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_transaction_create_request.go b/model_transaction_create_request.go new file mode 100644 index 0000000..5bd4c4b --- /dev/null +++ b/model_transaction_create_request.go @@ -0,0 +1,489 @@ +/* +MX Platform API + +The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions. + +API version: 0.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package mxplatformgo + +import ( + "encoding/json" +) + +// checks if the TransactionCreateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TransactionCreateRequest{} + +// TransactionCreateRequest struct for TransactionCreateRequest +type TransactionCreateRequest struct { + Amount float32 `json:"amount"` + Date string `json:"date"` + Description string `json:"description"` + // The type of transaction, which must be CREDIT or DEBIT. See Transaction Fields for more information. + Type string `json:"type"` + // Unique identifier of the category. + CategoryGuid *string `json:"category_guid,omitempty"` + CurrencyCode *string `json:"currency_code,omitempty"` + HasBeenViewed *bool `json:"has_been_viewed,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + IsInternational *bool `json:"is_international,omitempty"` + Memo *string `json:"memo,omitempty"` + Metadata *string `json:"metadata,omitempty"` + // When set to true, this parameter will prevent a webhook from being triggered by the request. + SkipWebhook *bool `json:"skip_webhook,omitempty"` +} + +// NewTransactionCreateRequest instantiates a new TransactionCreateRequest 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 NewTransactionCreateRequest(amount float32, date string, description string, type_ string) *TransactionCreateRequest { + this := TransactionCreateRequest{} + this.Amount = amount + this.Date = date + this.Description = description + this.Type = type_ + return &this +} + +// NewTransactionCreateRequestWithDefaults instantiates a new TransactionCreateRequest 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 NewTransactionCreateRequestWithDefaults() *TransactionCreateRequest { + this := TransactionCreateRequest{} + return &this +} + +// GetAmount returns the Amount field value +func (o *TransactionCreateRequest) GetAmount() float32 { + if o == nil { + var ret float32 + 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 *TransactionCreateRequest) GetAmountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Amount, true +} + +// SetAmount sets field value +func (o *TransactionCreateRequest) SetAmount(v float32) { + o.Amount = v +} + +// GetDate returns the Date field value +func (o *TransactionCreateRequest) GetDate() string { + if o == nil { + var ret string + return ret + } + + return o.Date +} + +// GetDateOk returns a tuple with the Date field value +// and a boolean to check if the value has been set. +func (o *TransactionCreateRequest) GetDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Date, true +} + +// SetDate sets field value +func (o *TransactionCreateRequest) SetDate(v string) { + o.Date = v +} + +// GetDescription returns the Description field value +func (o *TransactionCreateRequest) 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 *TransactionCreateRequest) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *TransactionCreateRequest) SetDescription(v string) { + o.Description = v +} + +// GetType returns the Type field value +func (o *TransactionCreateRequest) 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 *TransactionCreateRequest) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *TransactionCreateRequest) SetType(v string) { + o.Type = v +} + +// GetCategoryGuid returns the CategoryGuid field value if set, zero value otherwise. +func (o *TransactionCreateRequest) GetCategoryGuid() string { + if o == nil || IsNil(o.CategoryGuid) { + var ret string + return ret + } + return *o.CategoryGuid +} + +// GetCategoryGuidOk returns a tuple with the CategoryGuid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactionCreateRequest) GetCategoryGuidOk() (*string, bool) { + if o == nil || IsNil(o.CategoryGuid) { + return nil, false + } + return o.CategoryGuid, true +} + +// HasCategoryGuid returns a boolean if a field has been set. +func (o *TransactionCreateRequest) HasCategoryGuid() bool { + if o != nil && !IsNil(o.CategoryGuid) { + return true + } + + return false +} + +// SetCategoryGuid gets a reference to the given string and assigns it to the CategoryGuid field. +func (o *TransactionCreateRequest) SetCategoryGuid(v string) { + o.CategoryGuid = &v +} + +// GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise. +func (o *TransactionCreateRequest) GetCurrencyCode() string { + if o == nil || IsNil(o.CurrencyCode) { + var ret string + return ret + } + return *o.CurrencyCode +} + +// GetCurrencyCodeOk returns a tuple with the CurrencyCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactionCreateRequest) GetCurrencyCodeOk() (*string, bool) { + if o == nil || IsNil(o.CurrencyCode) { + return nil, false + } + return o.CurrencyCode, true +} + +// HasCurrencyCode returns a boolean if a field has been set. +func (o *TransactionCreateRequest) HasCurrencyCode() bool { + if o != nil && !IsNil(o.CurrencyCode) { + return true + } + + return false +} + +// SetCurrencyCode gets a reference to the given string and assigns it to the CurrencyCode field. +func (o *TransactionCreateRequest) SetCurrencyCode(v string) { + o.CurrencyCode = &v +} + +// GetHasBeenViewed returns the HasBeenViewed field value if set, zero value otherwise. +func (o *TransactionCreateRequest) GetHasBeenViewed() bool { + if o == nil || IsNil(o.HasBeenViewed) { + var ret bool + return ret + } + return *o.HasBeenViewed +} + +// GetHasBeenViewedOk returns a tuple with the HasBeenViewed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactionCreateRequest) GetHasBeenViewedOk() (*bool, bool) { + if o == nil || IsNil(o.HasBeenViewed) { + return nil, false + } + return o.HasBeenViewed, true +} + +// HasHasBeenViewed returns a boolean if a field has been set. +func (o *TransactionCreateRequest) HasHasBeenViewed() bool { + if o != nil && !IsNil(o.HasBeenViewed) { + return true + } + + return false +} + +// SetHasBeenViewed gets a reference to the given bool and assigns it to the HasBeenViewed field. +func (o *TransactionCreateRequest) SetHasBeenViewed(v bool) { + o.HasBeenViewed = &v +} + +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *TransactionCreateRequest) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactionCreateRequest) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *TransactionCreateRequest) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *TransactionCreateRequest) SetIsHidden(v bool) { + o.IsHidden = &v +} + +// GetIsInternational returns the IsInternational field value if set, zero value otherwise. +func (o *TransactionCreateRequest) GetIsInternational() bool { + if o == nil || IsNil(o.IsInternational) { + var ret bool + return ret + } + return *o.IsInternational +} + +// GetIsInternationalOk returns a tuple with the IsInternational field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactionCreateRequest) GetIsInternationalOk() (*bool, bool) { + if o == nil || IsNil(o.IsInternational) { + return nil, false + } + return o.IsInternational, true +} + +// HasIsInternational returns a boolean if a field has been set. +func (o *TransactionCreateRequest) HasIsInternational() bool { + if o != nil && !IsNil(o.IsInternational) { + return true + } + + return false +} + +// SetIsInternational gets a reference to the given bool and assigns it to the IsInternational field. +func (o *TransactionCreateRequest) SetIsInternational(v bool) { + o.IsInternational = &v +} + +// GetMemo returns the Memo field value if set, zero value otherwise. +func (o *TransactionCreateRequest) GetMemo() string { + if o == nil || IsNil(o.Memo) { + var ret string + return ret + } + return *o.Memo +} + +// GetMemoOk returns a tuple with the Memo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactionCreateRequest) GetMemoOk() (*string, bool) { + if o == nil || IsNil(o.Memo) { + return nil, false + } + return o.Memo, true +} + +// HasMemo returns a boolean if a field has been set. +func (o *TransactionCreateRequest) HasMemo() bool { + if o != nil && !IsNil(o.Memo) { + return true + } + + return false +} + +// SetMemo gets a reference to the given string and assigns it to the Memo field. +func (o *TransactionCreateRequest) SetMemo(v string) { + o.Memo = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *TransactionCreateRequest) GetMetadata() string { + if o == nil || IsNil(o.Metadata) { + var ret string + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactionCreateRequest) GetMetadataOk() (*string, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *TransactionCreateRequest) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given string and assigns it to the Metadata field. +func (o *TransactionCreateRequest) SetMetadata(v string) { + o.Metadata = &v +} + +// GetSkipWebhook returns the SkipWebhook field value if set, zero value otherwise. +func (o *TransactionCreateRequest) GetSkipWebhook() bool { + if o == nil || IsNil(o.SkipWebhook) { + var ret bool + return ret + } + return *o.SkipWebhook +} + +// GetSkipWebhookOk returns a tuple with the SkipWebhook field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactionCreateRequest) GetSkipWebhookOk() (*bool, bool) { + if o == nil || IsNil(o.SkipWebhook) { + return nil, false + } + return o.SkipWebhook, true +} + +// HasSkipWebhook returns a boolean if a field has been set. +func (o *TransactionCreateRequest) HasSkipWebhook() bool { + if o != nil && !IsNil(o.SkipWebhook) { + return true + } + + return false +} + +// SetSkipWebhook gets a reference to the given bool and assigns it to the SkipWebhook field. +func (o *TransactionCreateRequest) SetSkipWebhook(v bool) { + o.SkipWebhook = &v +} + +func (o TransactionCreateRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransactionCreateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["amount"] = o.Amount + toSerialize["date"] = o.Date + toSerialize["description"] = o.Description + toSerialize["type"] = o.Type + if !IsNil(o.CategoryGuid) { + toSerialize["category_guid"] = o.CategoryGuid + } + if !IsNil(o.CurrencyCode) { + toSerialize["currency_code"] = o.CurrencyCode + } + if !IsNil(o.HasBeenViewed) { + toSerialize["has_been_viewed"] = o.HasBeenViewed + } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } + if !IsNil(o.IsInternational) { + toSerialize["is_international"] = o.IsInternational + } + if !IsNil(o.Memo) { + toSerialize["memo"] = o.Memo + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.SkipWebhook) { + toSerialize["skip_webhook"] = o.SkipWebhook + } + return toSerialize, nil +} + +type NullableTransactionCreateRequest struct { + value *TransactionCreateRequest + isSet bool +} + +func (v NullableTransactionCreateRequest) Get() *TransactionCreateRequest { + return v.value +} + +func (v *NullableTransactionCreateRequest) Set(val *TransactionCreateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableTransactionCreateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableTransactionCreateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransactionCreateRequest(val *TransactionCreateRequest) *NullableTransactionCreateRequest { + return &NullableTransactionCreateRequest{value: val, isSet: true} +} + +func (v NullableTransactionCreateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransactionCreateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_transaction_create_request_body.go b/model_transaction_create_request_body.go new file mode 100644 index 0000000..5cc24df --- /dev/null +++ b/model_transaction_create_request_body.go @@ -0,0 +1,126 @@ +/* +MX Platform API + +The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions. + +API version: 0.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package mxplatformgo + +import ( + "encoding/json" +) + +// checks if the TransactionCreateRequestBody type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TransactionCreateRequestBody{} + +// TransactionCreateRequestBody struct for TransactionCreateRequestBody +type TransactionCreateRequestBody struct { + Transaction *TransactionCreateRequest `json:"transaction,omitempty"` +} + +// NewTransactionCreateRequestBody instantiates a new TransactionCreateRequestBody 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 NewTransactionCreateRequestBody() *TransactionCreateRequestBody { + this := TransactionCreateRequestBody{} + return &this +} + +// NewTransactionCreateRequestBodyWithDefaults instantiates a new TransactionCreateRequestBody 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 NewTransactionCreateRequestBodyWithDefaults() *TransactionCreateRequestBody { + this := TransactionCreateRequestBody{} + return &this +} + +// GetTransaction returns the Transaction field value if set, zero value otherwise. +func (o *TransactionCreateRequestBody) GetTransaction() TransactionCreateRequest { + if o == nil || IsNil(o.Transaction) { + var ret TransactionCreateRequest + 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 *TransactionCreateRequestBody) GetTransactionOk() (*TransactionCreateRequest, 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 *TransactionCreateRequestBody) HasTransaction() bool { + if o != nil && !IsNil(o.Transaction) { + return true + } + + return false +} + +// SetTransaction gets a reference to the given TransactionCreateRequest and assigns it to the Transaction field. +func (o *TransactionCreateRequestBody) SetTransaction(v TransactionCreateRequest) { + o.Transaction = &v +} + +func (o TransactionCreateRequestBody) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransactionCreateRequestBody) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Transaction) { + toSerialize["transaction"] = o.Transaction + } + return toSerialize, nil +} + +type NullableTransactionCreateRequestBody struct { + value *TransactionCreateRequestBody + isSet bool +} + +func (v NullableTransactionCreateRequestBody) Get() *TransactionCreateRequestBody { + return v.value +} + +func (v *NullableTransactionCreateRequestBody) Set(val *TransactionCreateRequestBody) { + v.value = val + v.isSet = true +} + +func (v NullableTransactionCreateRequestBody) IsSet() bool { + return v.isSet +} + +func (v *NullableTransactionCreateRequestBody) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransactionCreateRequestBody(val *TransactionCreateRequestBody) *NullableTransactionCreateRequestBody { + return &NullableTransactionCreateRequestBody{value: val, isSet: true} +} + +func (v NullableTransactionCreateRequestBody) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransactionCreateRequestBody) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_transaction_create_response_body.go b/model_transaction_create_response_body.go new file mode 100644 index 0000000..17dd82a --- /dev/null +++ b/model_transaction_create_response_body.go @@ -0,0 +1,2084 @@ +/* +MX Platform API + +The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions. + +API version: 0.1.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package mxplatformgo + +import ( + "encoding/json" +) + +// checks if the TransactionCreateResponseBody type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TransactionCreateResponseBody{} + +// TransactionCreateResponseBody struct for TransactionCreateResponseBody +type TransactionCreateResponseBody struct { + AccountGuid NullableString `json:"account_guid,omitempty"` + AccountId NullableString `json:"account_id,omitempty"` + Amount *float32 `json:"amount,omitempty"` + Category NullableString `json:"category,omitempty"` + CategoryGuid NullableString `json:"category_guid,omitempty"` + CheckNumberString NullableString `json:"check_number_string,omitempty"` + CreatedAt NullableString `json:"created_at,omitempty"` + CurrencyCode NullableString `json:"currency_code,omitempty"` + Date NullableString `json:"date,omitempty"` + Description NullableString `json:"description,omitempty"` + ExtendedTransactionType NullableString `json:"extended_transaction_type,omitempty"` + Guid NullableString `json:"guid,omitempty"` + Id NullableString `json:"id,omitempty"` + IsBillPay NullableBool `json:"is_bill_pay,omitempty"` + IsDirectDeposit NullableBool `json:"is_direct_deposit,omitempty"` + IsExpense NullableBool `json:"is_expense,omitempty"` + IsFee NullableBool `json:"is_fee,omitempty"` + IsIncome NullableBool `json:"is_income,omitempty"` + IsInternational NullableBool `json:"is_international,omitempty"` + IsManual NullableBool `json:"is_manual,omitempty"` + IsOverdraftFee NullableBool `json:"is_overdraft_fee,omitempty"` + IsPayrollAdvance NullableBool `json:"is_payroll_advance,omitempty"` + IsRecurring NullableBool `json:"is_recurring,omitempty"` + IsSubscription NullableBool `json:"is_subscription,omitempty"` + Latitude NullableFloat32 `json:"latitude,omitempty"` + LocalizedDescription NullableString `json:"localized_description,omitempty"` + LocalizedMemo NullableString `json:"localized_memo,omitempty"` + Longitude NullableFloat32 `json:"longitude,omitempty"` + MemberGuid NullableString `json:"member_guid,omitempty"` + MemberIsManagedByUser NullableBool `json:"member_is_managed_by_user,omitempty"` + Memo NullableString `json:"memo,omitempty"` + MerchantCategoryCode NullableInt32 `json:"merchant_category_code,omitempty"` + MerchantGuid NullableString `json:"merchant_guid,omitempty"` + MerchantLocationGuid NullableString `json:"merchant_location_guid,omitempty"` + Metadata NullableString `json:"metadata,omitempty"` + OriginalDescription NullableString `json:"original_description,omitempty"` + PostedAt NullableString `json:"posted_at,omitempty"` + Status NullableString `json:"status,omitempty"` + TopLevelCategory NullableString `json:"top_level_category,omitempty"` + TransactedAt NullableString `json:"transacted_at,omitempty"` + Type *string `json:"type,omitempty"` + UpdatedAt *string `json:"updated_at,omitempty"` + UserGuid NullableString `json:"user_guid,omitempty"` + UserId NullableString `json:"user_id,omitempty"` +} + +// NewTransactionCreateResponseBody instantiates a new TransactionCreateResponseBody 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 NewTransactionCreateResponseBody() *TransactionCreateResponseBody { + this := TransactionCreateResponseBody{} + return &this +} + +// NewTransactionCreateResponseBodyWithDefaults instantiates a new TransactionCreateResponseBody 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 NewTransactionCreateResponseBodyWithDefaults() *TransactionCreateResponseBody { + this := TransactionCreateResponseBody{} + return &this +} + +// GetAccountGuid returns the AccountGuid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetAccountGuid() string { + if o == nil || IsNil(o.AccountGuid.Get()) { + var ret string + return ret + } + return *o.AccountGuid.Get() +} + +// GetAccountGuidOk returns a tuple with the AccountGuid 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 *TransactionCreateResponseBody) GetAccountGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AccountGuid.Get(), o.AccountGuid.IsSet() +} + +// HasAccountGuid returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasAccountGuid() bool { + if o != nil && o.AccountGuid.IsSet() { + return true + } + + return false +} + +// SetAccountGuid gets a reference to the given NullableString and assigns it to the AccountGuid field. +func (o *TransactionCreateResponseBody) SetAccountGuid(v string) { + o.AccountGuid.Set(&v) +} +// SetAccountGuidNil sets the value for AccountGuid to be an explicit nil +func (o *TransactionCreateResponseBody) SetAccountGuidNil() { + o.AccountGuid.Set(nil) +} + +// UnsetAccountGuid ensures that no value is present for AccountGuid, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetAccountGuid() { + o.AccountGuid.Unset() +} + +// GetAccountId returns the AccountId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetAccountId() string { + if o == nil || IsNil(o.AccountId.Get()) { + var ret string + return ret + } + return *o.AccountId.Get() +} + +// GetAccountIdOk returns a tuple with the AccountId 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 *TransactionCreateResponseBody) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AccountId.Get(), o.AccountId.IsSet() +} + +// HasAccountId returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasAccountId() bool { + if o != nil && o.AccountId.IsSet() { + return true + } + + return false +} + +// SetAccountId gets a reference to the given NullableString and assigns it to the AccountId field. +func (o *TransactionCreateResponseBody) SetAccountId(v string) { + o.AccountId.Set(&v) +} +// SetAccountIdNil sets the value for AccountId to be an explicit nil +func (o *TransactionCreateResponseBody) SetAccountIdNil() { + o.AccountId.Set(nil) +} + +// UnsetAccountId ensures that no value is present for AccountId, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetAccountId() { + o.AccountId.Unset() +} + +// GetAmount returns the Amount field value if set, zero value otherwise. +func (o *TransactionCreateResponseBody) GetAmount() float32 { + if o == nil || IsNil(o.Amount) { + var ret float32 + return ret + } + return *o.Amount +} + +// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactionCreateResponseBody) GetAmountOk() (*float32, bool) { + if o == nil || IsNil(o.Amount) { + return nil, false + } + return o.Amount, true +} + +// HasAmount returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasAmount() bool { + if o != nil && !IsNil(o.Amount) { + return true + } + + return false +} + +// SetAmount gets a reference to the given float32 and assigns it to the Amount field. +func (o *TransactionCreateResponseBody) SetAmount(v float32) { + o.Amount = &v +} + +// GetCategory returns the Category field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetCategory() string { + if o == nil || IsNil(o.Category.Get()) { + var ret string + return ret + } + return *o.Category.Get() +} + +// GetCategoryOk returns a tuple with the Category 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 *TransactionCreateResponseBody) GetCategoryOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Category.Get(), o.Category.IsSet() +} + +// HasCategory returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasCategory() bool { + if o != nil && o.Category.IsSet() { + return true + } + + return false +} + +// SetCategory gets a reference to the given NullableString and assigns it to the Category field. +func (o *TransactionCreateResponseBody) SetCategory(v string) { + o.Category.Set(&v) +} +// SetCategoryNil sets the value for Category to be an explicit nil +func (o *TransactionCreateResponseBody) SetCategoryNil() { + o.Category.Set(nil) +} + +// UnsetCategory ensures that no value is present for Category, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetCategory() { + o.Category.Unset() +} + +// GetCategoryGuid returns the CategoryGuid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetCategoryGuid() string { + if o == nil || IsNil(o.CategoryGuid.Get()) { + var ret string + return ret + } + return *o.CategoryGuid.Get() +} + +// GetCategoryGuidOk returns a tuple with the CategoryGuid 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 *TransactionCreateResponseBody) GetCategoryGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CategoryGuid.Get(), o.CategoryGuid.IsSet() +} + +// HasCategoryGuid returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasCategoryGuid() bool { + if o != nil && o.CategoryGuid.IsSet() { + return true + } + + return false +} + +// SetCategoryGuid gets a reference to the given NullableString and assigns it to the CategoryGuid field. +func (o *TransactionCreateResponseBody) SetCategoryGuid(v string) { + o.CategoryGuid.Set(&v) +} +// SetCategoryGuidNil sets the value for CategoryGuid to be an explicit nil +func (o *TransactionCreateResponseBody) SetCategoryGuidNil() { + o.CategoryGuid.Set(nil) +} + +// UnsetCategoryGuid ensures that no value is present for CategoryGuid, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetCategoryGuid() { + o.CategoryGuid.Unset() +} + +// GetCheckNumberString returns the CheckNumberString field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetCheckNumberString() string { + if o == nil || IsNil(o.CheckNumberString.Get()) { + var ret string + return ret + } + return *o.CheckNumberString.Get() +} + +// GetCheckNumberStringOk returns a tuple with the CheckNumberString 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 *TransactionCreateResponseBody) GetCheckNumberStringOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CheckNumberString.Get(), o.CheckNumberString.IsSet() +} + +// HasCheckNumberString returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasCheckNumberString() bool { + if o != nil && o.CheckNumberString.IsSet() { + return true + } + + return false +} + +// SetCheckNumberString gets a reference to the given NullableString and assigns it to the CheckNumberString field. +func (o *TransactionCreateResponseBody) SetCheckNumberString(v string) { + o.CheckNumberString.Set(&v) +} +// SetCheckNumberStringNil sets the value for CheckNumberString to be an explicit nil +func (o *TransactionCreateResponseBody) SetCheckNumberStringNil() { + o.CheckNumberString.Set(nil) +} + +// UnsetCheckNumberString ensures that no value is present for CheckNumberString, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetCheckNumberString() { + o.CheckNumberString.Unset() +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetCreatedAt() string { + if o == nil || IsNil(o.CreatedAt.Get()) { + var ret string + return ret + } + return *o.CreatedAt.Get() +} + +// GetCreatedAtOk returns a tuple with the CreatedAt 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 *TransactionCreateResponseBody) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CreatedAt.Get(), o.CreatedAt.IsSet() +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasCreatedAt() bool { + if o != nil && o.CreatedAt.IsSet() { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given NullableString and assigns it to the CreatedAt field. +func (o *TransactionCreateResponseBody) SetCreatedAt(v string) { + o.CreatedAt.Set(&v) +} +// SetCreatedAtNil sets the value for CreatedAt to be an explicit nil +func (o *TransactionCreateResponseBody) SetCreatedAtNil() { + o.CreatedAt.Set(nil) +} + +// UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetCreatedAt() { + o.CreatedAt.Unset() +} + +// GetCurrencyCode returns the CurrencyCode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetCurrencyCode() string { + if o == nil || IsNil(o.CurrencyCode.Get()) { + var ret string + return ret + } + return *o.CurrencyCode.Get() +} + +// GetCurrencyCodeOk returns a tuple with the CurrencyCode 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 *TransactionCreateResponseBody) GetCurrencyCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CurrencyCode.Get(), o.CurrencyCode.IsSet() +} + +// HasCurrencyCode returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasCurrencyCode() bool { + if o != nil && o.CurrencyCode.IsSet() { + return true + } + + return false +} + +// SetCurrencyCode gets a reference to the given NullableString and assigns it to the CurrencyCode field. +func (o *TransactionCreateResponseBody) SetCurrencyCode(v string) { + o.CurrencyCode.Set(&v) +} +// SetCurrencyCodeNil sets the value for CurrencyCode to be an explicit nil +func (o *TransactionCreateResponseBody) SetCurrencyCodeNil() { + o.CurrencyCode.Set(nil) +} + +// UnsetCurrencyCode ensures that no value is present for CurrencyCode, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetCurrencyCode() { + o.CurrencyCode.Unset() +} + +// GetDate returns the Date field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetDate() string { + if o == nil || IsNil(o.Date.Get()) { + var ret string + return ret + } + return *o.Date.Get() +} + +// GetDateOk returns a tuple with the Date 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 *TransactionCreateResponseBody) GetDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Date.Get(), o.Date.IsSet() +} + +// HasDate returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasDate() bool { + if o != nil && o.Date.IsSet() { + return true + } + + return false +} + +// SetDate gets a reference to the given NullableString and assigns it to the Date field. +func (o *TransactionCreateResponseBody) SetDate(v string) { + o.Date.Set(&v) +} +// SetDateNil sets the value for Date to be an explicit nil +func (o *TransactionCreateResponseBody) SetDateNil() { + o.Date.Set(nil) +} + +// UnsetDate ensures that no value is present for Date, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetDate() { + o.Date.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) 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 *TransactionCreateResponseBody) 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 *TransactionCreateResponseBody) 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 *TransactionCreateResponseBody) SetDescription(v string) { + o.Description.Set(&v) +} +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *TransactionCreateResponseBody) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetDescription() { + o.Description.Unset() +} + +// GetExtendedTransactionType returns the ExtendedTransactionType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetExtendedTransactionType() string { + if o == nil || IsNil(o.ExtendedTransactionType.Get()) { + var ret string + return ret + } + return *o.ExtendedTransactionType.Get() +} + +// GetExtendedTransactionTypeOk returns a tuple with the ExtendedTransactionType 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 *TransactionCreateResponseBody) GetExtendedTransactionTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ExtendedTransactionType.Get(), o.ExtendedTransactionType.IsSet() +} + +// HasExtendedTransactionType returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasExtendedTransactionType() bool { + if o != nil && o.ExtendedTransactionType.IsSet() { + return true + } + + return false +} + +// SetExtendedTransactionType gets a reference to the given NullableString and assigns it to the ExtendedTransactionType field. +func (o *TransactionCreateResponseBody) SetExtendedTransactionType(v string) { + o.ExtendedTransactionType.Set(&v) +} +// SetExtendedTransactionTypeNil sets the value for ExtendedTransactionType to be an explicit nil +func (o *TransactionCreateResponseBody) SetExtendedTransactionTypeNil() { + o.ExtendedTransactionType.Set(nil) +} + +// UnsetExtendedTransactionType ensures that no value is present for ExtendedTransactionType, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetExtendedTransactionType() { + o.ExtendedTransactionType.Unset() +} + +// GetGuid returns the Guid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetGuid() string { + if o == nil || IsNil(o.Guid.Get()) { + var ret string + return ret + } + return *o.Guid.Get() +} + +// GetGuidOk returns a tuple with the Guid 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 *TransactionCreateResponseBody) GetGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Guid.Get(), o.Guid.IsSet() +} + +// HasGuid returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasGuid() bool { + if o != nil && o.Guid.IsSet() { + return true + } + + return false +} + +// SetGuid gets a reference to the given NullableString and assigns it to the Guid field. +func (o *TransactionCreateResponseBody) SetGuid(v string) { + o.Guid.Set(&v) +} +// SetGuidNil sets the value for Guid to be an explicit nil +func (o *TransactionCreateResponseBody) SetGuidNil() { + o.Guid.Set(nil) +} + +// UnsetGuid ensures that no value is present for Guid, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetGuid() { + o.Guid.Unset() +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetId() string { + if o == nil || IsNil(o.Id.Get()) { + var ret string + return ret + } + return *o.Id.Get() +} + +// GetIdOk returns a tuple with the Id 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 *TransactionCreateResponseBody) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Id.Get(), o.Id.IsSet() +} + +// HasId returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasId() bool { + if o != nil && o.Id.IsSet() { + return true + } + + return false +} + +// SetId gets a reference to the given NullableString and assigns it to the Id field. +func (o *TransactionCreateResponseBody) SetId(v string) { + o.Id.Set(&v) +} +// SetIdNil sets the value for Id to be an explicit nil +func (o *TransactionCreateResponseBody) SetIdNil() { + o.Id.Set(nil) +} + +// UnsetId ensures that no value is present for Id, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetId() { + o.Id.Unset() +} + +// GetIsBillPay returns the IsBillPay field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetIsBillPay() bool { + if o == nil || IsNil(o.IsBillPay.Get()) { + var ret bool + return ret + } + return *o.IsBillPay.Get() +} + +// GetIsBillPayOk returns a tuple with the IsBillPay 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 *TransactionCreateResponseBody) GetIsBillPayOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsBillPay.Get(), o.IsBillPay.IsSet() +} + +// HasIsBillPay returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasIsBillPay() bool { + if o != nil && o.IsBillPay.IsSet() { + return true + } + + return false +} + +// SetIsBillPay gets a reference to the given NullableBool and assigns it to the IsBillPay field. +func (o *TransactionCreateResponseBody) SetIsBillPay(v bool) { + o.IsBillPay.Set(&v) +} +// SetIsBillPayNil sets the value for IsBillPay to be an explicit nil +func (o *TransactionCreateResponseBody) SetIsBillPayNil() { + o.IsBillPay.Set(nil) +} + +// UnsetIsBillPay ensures that no value is present for IsBillPay, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetIsBillPay() { + o.IsBillPay.Unset() +} + +// GetIsDirectDeposit returns the IsDirectDeposit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetIsDirectDeposit() bool { + if o == nil || IsNil(o.IsDirectDeposit.Get()) { + var ret bool + return ret + } + return *o.IsDirectDeposit.Get() +} + +// GetIsDirectDepositOk returns a tuple with the IsDirectDeposit 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 *TransactionCreateResponseBody) GetIsDirectDepositOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsDirectDeposit.Get(), o.IsDirectDeposit.IsSet() +} + +// HasIsDirectDeposit returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasIsDirectDeposit() bool { + if o != nil && o.IsDirectDeposit.IsSet() { + return true + } + + return false +} + +// SetIsDirectDeposit gets a reference to the given NullableBool and assigns it to the IsDirectDeposit field. +func (o *TransactionCreateResponseBody) SetIsDirectDeposit(v bool) { + o.IsDirectDeposit.Set(&v) +} +// SetIsDirectDepositNil sets the value for IsDirectDeposit to be an explicit nil +func (o *TransactionCreateResponseBody) SetIsDirectDepositNil() { + o.IsDirectDeposit.Set(nil) +} + +// UnsetIsDirectDeposit ensures that no value is present for IsDirectDeposit, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetIsDirectDeposit() { + o.IsDirectDeposit.Unset() +} + +// GetIsExpense returns the IsExpense field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetIsExpense() bool { + if o == nil || IsNil(o.IsExpense.Get()) { + var ret bool + return ret + } + return *o.IsExpense.Get() +} + +// GetIsExpenseOk returns a tuple with the IsExpense 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 *TransactionCreateResponseBody) GetIsExpenseOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsExpense.Get(), o.IsExpense.IsSet() +} + +// HasIsExpense returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasIsExpense() bool { + if o != nil && o.IsExpense.IsSet() { + return true + } + + return false +} + +// SetIsExpense gets a reference to the given NullableBool and assigns it to the IsExpense field. +func (o *TransactionCreateResponseBody) SetIsExpense(v bool) { + o.IsExpense.Set(&v) +} +// SetIsExpenseNil sets the value for IsExpense to be an explicit nil +func (o *TransactionCreateResponseBody) SetIsExpenseNil() { + o.IsExpense.Set(nil) +} + +// UnsetIsExpense ensures that no value is present for IsExpense, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetIsExpense() { + o.IsExpense.Unset() +} + +// GetIsFee returns the IsFee field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetIsFee() bool { + if o == nil || IsNil(o.IsFee.Get()) { + var ret bool + return ret + } + return *o.IsFee.Get() +} + +// GetIsFeeOk returns a tuple with the IsFee 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 *TransactionCreateResponseBody) GetIsFeeOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsFee.Get(), o.IsFee.IsSet() +} + +// HasIsFee returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasIsFee() bool { + if o != nil && o.IsFee.IsSet() { + return true + } + + return false +} + +// SetIsFee gets a reference to the given NullableBool and assigns it to the IsFee field. +func (o *TransactionCreateResponseBody) SetIsFee(v bool) { + o.IsFee.Set(&v) +} +// SetIsFeeNil sets the value for IsFee to be an explicit nil +func (o *TransactionCreateResponseBody) SetIsFeeNil() { + o.IsFee.Set(nil) +} + +// UnsetIsFee ensures that no value is present for IsFee, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetIsFee() { + o.IsFee.Unset() +} + +// GetIsIncome returns the IsIncome field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetIsIncome() bool { + if o == nil || IsNil(o.IsIncome.Get()) { + var ret bool + return ret + } + return *o.IsIncome.Get() +} + +// GetIsIncomeOk returns a tuple with the IsIncome 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 *TransactionCreateResponseBody) GetIsIncomeOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsIncome.Get(), o.IsIncome.IsSet() +} + +// HasIsIncome returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasIsIncome() bool { + if o != nil && o.IsIncome.IsSet() { + return true + } + + return false +} + +// SetIsIncome gets a reference to the given NullableBool and assigns it to the IsIncome field. +func (o *TransactionCreateResponseBody) SetIsIncome(v bool) { + o.IsIncome.Set(&v) +} +// SetIsIncomeNil sets the value for IsIncome to be an explicit nil +func (o *TransactionCreateResponseBody) SetIsIncomeNil() { + o.IsIncome.Set(nil) +} + +// UnsetIsIncome ensures that no value is present for IsIncome, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetIsIncome() { + o.IsIncome.Unset() +} + +// GetIsInternational returns the IsInternational field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetIsInternational() bool { + if o == nil || IsNil(o.IsInternational.Get()) { + var ret bool + return ret + } + return *o.IsInternational.Get() +} + +// GetIsInternationalOk returns a tuple with the IsInternational 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 *TransactionCreateResponseBody) GetIsInternationalOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsInternational.Get(), o.IsInternational.IsSet() +} + +// HasIsInternational returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasIsInternational() bool { + if o != nil && o.IsInternational.IsSet() { + return true + } + + return false +} + +// SetIsInternational gets a reference to the given NullableBool and assigns it to the IsInternational field. +func (o *TransactionCreateResponseBody) SetIsInternational(v bool) { + o.IsInternational.Set(&v) +} +// SetIsInternationalNil sets the value for IsInternational to be an explicit nil +func (o *TransactionCreateResponseBody) SetIsInternationalNil() { + o.IsInternational.Set(nil) +} + +// UnsetIsInternational ensures that no value is present for IsInternational, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetIsInternational() { + o.IsInternational.Unset() +} + +// GetIsManual returns the IsManual field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetIsManual() bool { + if o == nil || IsNil(o.IsManual.Get()) { + var ret bool + return ret + } + return *o.IsManual.Get() +} + +// GetIsManualOk returns a tuple with the IsManual 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 *TransactionCreateResponseBody) GetIsManualOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsManual.Get(), o.IsManual.IsSet() +} + +// HasIsManual returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasIsManual() bool { + if o != nil && o.IsManual.IsSet() { + return true + } + + return false +} + +// SetIsManual gets a reference to the given NullableBool and assigns it to the IsManual field. +func (o *TransactionCreateResponseBody) SetIsManual(v bool) { + o.IsManual.Set(&v) +} +// SetIsManualNil sets the value for IsManual to be an explicit nil +func (o *TransactionCreateResponseBody) SetIsManualNil() { + o.IsManual.Set(nil) +} + +// UnsetIsManual ensures that no value is present for IsManual, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetIsManual() { + o.IsManual.Unset() +} + +// GetIsOverdraftFee returns the IsOverdraftFee field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetIsOverdraftFee() bool { + if o == nil || IsNil(o.IsOverdraftFee.Get()) { + var ret bool + return ret + } + return *o.IsOverdraftFee.Get() +} + +// GetIsOverdraftFeeOk returns a tuple with the IsOverdraftFee 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 *TransactionCreateResponseBody) GetIsOverdraftFeeOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsOverdraftFee.Get(), o.IsOverdraftFee.IsSet() +} + +// HasIsOverdraftFee returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasIsOverdraftFee() bool { + if o != nil && o.IsOverdraftFee.IsSet() { + return true + } + + return false +} + +// SetIsOverdraftFee gets a reference to the given NullableBool and assigns it to the IsOverdraftFee field. +func (o *TransactionCreateResponseBody) SetIsOverdraftFee(v bool) { + o.IsOverdraftFee.Set(&v) +} +// SetIsOverdraftFeeNil sets the value for IsOverdraftFee to be an explicit nil +func (o *TransactionCreateResponseBody) SetIsOverdraftFeeNil() { + o.IsOverdraftFee.Set(nil) +} + +// UnsetIsOverdraftFee ensures that no value is present for IsOverdraftFee, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetIsOverdraftFee() { + o.IsOverdraftFee.Unset() +} + +// GetIsPayrollAdvance returns the IsPayrollAdvance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetIsPayrollAdvance() bool { + if o == nil || IsNil(o.IsPayrollAdvance.Get()) { + var ret bool + return ret + } + return *o.IsPayrollAdvance.Get() +} + +// GetIsPayrollAdvanceOk returns a tuple with the IsPayrollAdvance 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 *TransactionCreateResponseBody) GetIsPayrollAdvanceOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsPayrollAdvance.Get(), o.IsPayrollAdvance.IsSet() +} + +// HasIsPayrollAdvance returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasIsPayrollAdvance() bool { + if o != nil && o.IsPayrollAdvance.IsSet() { + return true + } + + return false +} + +// SetIsPayrollAdvance gets a reference to the given NullableBool and assigns it to the IsPayrollAdvance field. +func (o *TransactionCreateResponseBody) SetIsPayrollAdvance(v bool) { + o.IsPayrollAdvance.Set(&v) +} +// SetIsPayrollAdvanceNil sets the value for IsPayrollAdvance to be an explicit nil +func (o *TransactionCreateResponseBody) SetIsPayrollAdvanceNil() { + o.IsPayrollAdvance.Set(nil) +} + +// UnsetIsPayrollAdvance ensures that no value is present for IsPayrollAdvance, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetIsPayrollAdvance() { + o.IsPayrollAdvance.Unset() +} + +// GetIsRecurring returns the IsRecurring field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetIsRecurring() bool { + if o == nil || IsNil(o.IsRecurring.Get()) { + var ret bool + return ret + } + return *o.IsRecurring.Get() +} + +// GetIsRecurringOk returns a tuple with the IsRecurring 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 *TransactionCreateResponseBody) GetIsRecurringOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsRecurring.Get(), o.IsRecurring.IsSet() +} + +// HasIsRecurring returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasIsRecurring() bool { + if o != nil && o.IsRecurring.IsSet() { + return true + } + + return false +} + +// SetIsRecurring gets a reference to the given NullableBool and assigns it to the IsRecurring field. +func (o *TransactionCreateResponseBody) SetIsRecurring(v bool) { + o.IsRecurring.Set(&v) +} +// SetIsRecurringNil sets the value for IsRecurring to be an explicit nil +func (o *TransactionCreateResponseBody) SetIsRecurringNil() { + o.IsRecurring.Set(nil) +} + +// UnsetIsRecurring ensures that no value is present for IsRecurring, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetIsRecurring() { + o.IsRecurring.Unset() +} + +// GetIsSubscription returns the IsSubscription field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetIsSubscription() bool { + if o == nil || IsNil(o.IsSubscription.Get()) { + var ret bool + return ret + } + return *o.IsSubscription.Get() +} + +// GetIsSubscriptionOk returns a tuple with the IsSubscription 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 *TransactionCreateResponseBody) GetIsSubscriptionOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.IsSubscription.Get(), o.IsSubscription.IsSet() +} + +// HasIsSubscription returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasIsSubscription() bool { + if o != nil && o.IsSubscription.IsSet() { + return true + } + + return false +} + +// SetIsSubscription gets a reference to the given NullableBool and assigns it to the IsSubscription field. +func (o *TransactionCreateResponseBody) SetIsSubscription(v bool) { + o.IsSubscription.Set(&v) +} +// SetIsSubscriptionNil sets the value for IsSubscription to be an explicit nil +func (o *TransactionCreateResponseBody) SetIsSubscriptionNil() { + o.IsSubscription.Set(nil) +} + +// UnsetIsSubscription ensures that no value is present for IsSubscription, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetIsSubscription() { + o.IsSubscription.Unset() +} + +// GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetLatitude() float32 { + if o == nil || IsNil(o.Latitude.Get()) { + var ret float32 + return ret + } + return *o.Latitude.Get() +} + +// GetLatitudeOk returns a tuple with the Latitude 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 *TransactionCreateResponseBody) GetLatitudeOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.Latitude.Get(), o.Latitude.IsSet() +} + +// HasLatitude returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasLatitude() bool { + if o != nil && o.Latitude.IsSet() { + return true + } + + return false +} + +// SetLatitude gets a reference to the given NullableFloat32 and assigns it to the Latitude field. +func (o *TransactionCreateResponseBody) SetLatitude(v float32) { + o.Latitude.Set(&v) +} +// SetLatitudeNil sets the value for Latitude to be an explicit nil +func (o *TransactionCreateResponseBody) SetLatitudeNil() { + o.Latitude.Set(nil) +} + +// UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetLatitude() { + o.Latitude.Unset() +} + +// GetLocalizedDescription returns the LocalizedDescription field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetLocalizedDescription() string { + if o == nil || IsNil(o.LocalizedDescription.Get()) { + var ret string + return ret + } + return *o.LocalizedDescription.Get() +} + +// GetLocalizedDescriptionOk returns a tuple with the LocalizedDescription 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 *TransactionCreateResponseBody) GetLocalizedDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LocalizedDescription.Get(), o.LocalizedDescription.IsSet() +} + +// HasLocalizedDescription returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasLocalizedDescription() bool { + if o != nil && o.LocalizedDescription.IsSet() { + return true + } + + return false +} + +// SetLocalizedDescription gets a reference to the given NullableString and assigns it to the LocalizedDescription field. +func (o *TransactionCreateResponseBody) SetLocalizedDescription(v string) { + o.LocalizedDescription.Set(&v) +} +// SetLocalizedDescriptionNil sets the value for LocalizedDescription to be an explicit nil +func (o *TransactionCreateResponseBody) SetLocalizedDescriptionNil() { + o.LocalizedDescription.Set(nil) +} + +// UnsetLocalizedDescription ensures that no value is present for LocalizedDescription, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetLocalizedDescription() { + o.LocalizedDescription.Unset() +} + +// GetLocalizedMemo returns the LocalizedMemo field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetLocalizedMemo() string { + if o == nil || IsNil(o.LocalizedMemo.Get()) { + var ret string + return ret + } + return *o.LocalizedMemo.Get() +} + +// GetLocalizedMemoOk returns a tuple with the LocalizedMemo 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 *TransactionCreateResponseBody) GetLocalizedMemoOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LocalizedMemo.Get(), o.LocalizedMemo.IsSet() +} + +// HasLocalizedMemo returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasLocalizedMemo() bool { + if o != nil && o.LocalizedMemo.IsSet() { + return true + } + + return false +} + +// SetLocalizedMemo gets a reference to the given NullableString and assigns it to the LocalizedMemo field. +func (o *TransactionCreateResponseBody) SetLocalizedMemo(v string) { + o.LocalizedMemo.Set(&v) +} +// SetLocalizedMemoNil sets the value for LocalizedMemo to be an explicit nil +func (o *TransactionCreateResponseBody) SetLocalizedMemoNil() { + o.LocalizedMemo.Set(nil) +} + +// UnsetLocalizedMemo ensures that no value is present for LocalizedMemo, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetLocalizedMemo() { + o.LocalizedMemo.Unset() +} + +// GetLongitude returns the Longitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetLongitude() float32 { + if o == nil || IsNil(o.Longitude.Get()) { + var ret float32 + return ret + } + return *o.Longitude.Get() +} + +// GetLongitudeOk returns a tuple with the Longitude 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 *TransactionCreateResponseBody) GetLongitudeOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.Longitude.Get(), o.Longitude.IsSet() +} + +// HasLongitude returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasLongitude() bool { + if o != nil && o.Longitude.IsSet() { + return true + } + + return false +} + +// SetLongitude gets a reference to the given NullableFloat32 and assigns it to the Longitude field. +func (o *TransactionCreateResponseBody) SetLongitude(v float32) { + o.Longitude.Set(&v) +} +// SetLongitudeNil sets the value for Longitude to be an explicit nil +func (o *TransactionCreateResponseBody) SetLongitudeNil() { + o.Longitude.Set(nil) +} + +// UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetLongitude() { + o.Longitude.Unset() +} + +// GetMemberGuid returns the MemberGuid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetMemberGuid() string { + if o == nil || IsNil(o.MemberGuid.Get()) { + var ret string + return ret + } + return *o.MemberGuid.Get() +} + +// GetMemberGuidOk returns a tuple with the MemberGuid 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 *TransactionCreateResponseBody) GetMemberGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.MemberGuid.Get(), o.MemberGuid.IsSet() +} + +// HasMemberGuid returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasMemberGuid() bool { + if o != nil && o.MemberGuid.IsSet() { + return true + } + + return false +} + +// SetMemberGuid gets a reference to the given NullableString and assigns it to the MemberGuid field. +func (o *TransactionCreateResponseBody) SetMemberGuid(v string) { + o.MemberGuid.Set(&v) +} +// SetMemberGuidNil sets the value for MemberGuid to be an explicit nil +func (o *TransactionCreateResponseBody) SetMemberGuidNil() { + o.MemberGuid.Set(nil) +} + +// UnsetMemberGuid ensures that no value is present for MemberGuid, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetMemberGuid() { + o.MemberGuid.Unset() +} + +// GetMemberIsManagedByUser returns the MemberIsManagedByUser field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetMemberIsManagedByUser() bool { + if o == nil || IsNil(o.MemberIsManagedByUser.Get()) { + var ret bool + return ret + } + return *o.MemberIsManagedByUser.Get() +} + +// GetMemberIsManagedByUserOk returns a tuple with the MemberIsManagedByUser 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 *TransactionCreateResponseBody) GetMemberIsManagedByUserOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.MemberIsManagedByUser.Get(), o.MemberIsManagedByUser.IsSet() +} + +// HasMemberIsManagedByUser returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasMemberIsManagedByUser() bool { + if o != nil && o.MemberIsManagedByUser.IsSet() { + return true + } + + return false +} + +// SetMemberIsManagedByUser gets a reference to the given NullableBool and assigns it to the MemberIsManagedByUser field. +func (o *TransactionCreateResponseBody) SetMemberIsManagedByUser(v bool) { + o.MemberIsManagedByUser.Set(&v) +} +// SetMemberIsManagedByUserNil sets the value for MemberIsManagedByUser to be an explicit nil +func (o *TransactionCreateResponseBody) SetMemberIsManagedByUserNil() { + o.MemberIsManagedByUser.Set(nil) +} + +// UnsetMemberIsManagedByUser ensures that no value is present for MemberIsManagedByUser, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetMemberIsManagedByUser() { + o.MemberIsManagedByUser.Unset() +} + +// GetMemo returns the Memo field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetMemo() string { + if o == nil || IsNil(o.Memo.Get()) { + var ret string + return ret + } + return *o.Memo.Get() +} + +// GetMemoOk returns a tuple with the Memo 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 *TransactionCreateResponseBody) GetMemoOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Memo.Get(), o.Memo.IsSet() +} + +// HasMemo returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasMemo() bool { + if o != nil && o.Memo.IsSet() { + return true + } + + return false +} + +// SetMemo gets a reference to the given NullableString and assigns it to the Memo field. +func (o *TransactionCreateResponseBody) SetMemo(v string) { + o.Memo.Set(&v) +} +// SetMemoNil sets the value for Memo to be an explicit nil +func (o *TransactionCreateResponseBody) SetMemoNil() { + o.Memo.Set(nil) +} + +// UnsetMemo ensures that no value is present for Memo, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetMemo() { + o.Memo.Unset() +} + +// GetMerchantCategoryCode returns the MerchantCategoryCode field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetMerchantCategoryCode() int32 { + if o == nil || IsNil(o.MerchantCategoryCode.Get()) { + var ret int32 + return ret + } + return *o.MerchantCategoryCode.Get() +} + +// GetMerchantCategoryCodeOk returns a tuple with the MerchantCategoryCode 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 *TransactionCreateResponseBody) GetMerchantCategoryCodeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MerchantCategoryCode.Get(), o.MerchantCategoryCode.IsSet() +} + +// HasMerchantCategoryCode returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasMerchantCategoryCode() bool { + if o != nil && o.MerchantCategoryCode.IsSet() { + return true + } + + return false +} + +// SetMerchantCategoryCode gets a reference to the given NullableInt32 and assigns it to the MerchantCategoryCode field. +func (o *TransactionCreateResponseBody) SetMerchantCategoryCode(v int32) { + o.MerchantCategoryCode.Set(&v) +} +// SetMerchantCategoryCodeNil sets the value for MerchantCategoryCode to be an explicit nil +func (o *TransactionCreateResponseBody) SetMerchantCategoryCodeNil() { + o.MerchantCategoryCode.Set(nil) +} + +// UnsetMerchantCategoryCode ensures that no value is present for MerchantCategoryCode, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetMerchantCategoryCode() { + o.MerchantCategoryCode.Unset() +} + +// GetMerchantGuid returns the MerchantGuid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetMerchantGuid() string { + if o == nil || IsNil(o.MerchantGuid.Get()) { + var ret string + return ret + } + return *o.MerchantGuid.Get() +} + +// GetMerchantGuidOk returns a tuple with the MerchantGuid 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 *TransactionCreateResponseBody) GetMerchantGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.MerchantGuid.Get(), o.MerchantGuid.IsSet() +} + +// HasMerchantGuid returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasMerchantGuid() bool { + if o != nil && o.MerchantGuid.IsSet() { + return true + } + + return false +} + +// SetMerchantGuid gets a reference to the given NullableString and assigns it to the MerchantGuid field. +func (o *TransactionCreateResponseBody) SetMerchantGuid(v string) { + o.MerchantGuid.Set(&v) +} +// SetMerchantGuidNil sets the value for MerchantGuid to be an explicit nil +func (o *TransactionCreateResponseBody) SetMerchantGuidNil() { + o.MerchantGuid.Set(nil) +} + +// UnsetMerchantGuid ensures that no value is present for MerchantGuid, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetMerchantGuid() { + o.MerchantGuid.Unset() +} + +// GetMerchantLocationGuid returns the MerchantLocationGuid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetMerchantLocationGuid() string { + if o == nil || IsNil(o.MerchantLocationGuid.Get()) { + var ret string + return ret + } + return *o.MerchantLocationGuid.Get() +} + +// GetMerchantLocationGuidOk returns a tuple with the MerchantLocationGuid 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 *TransactionCreateResponseBody) GetMerchantLocationGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.MerchantLocationGuid.Get(), o.MerchantLocationGuid.IsSet() +} + +// HasMerchantLocationGuid returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasMerchantLocationGuid() bool { + if o != nil && o.MerchantLocationGuid.IsSet() { + return true + } + + return false +} + +// SetMerchantLocationGuid gets a reference to the given NullableString and assigns it to the MerchantLocationGuid field. +func (o *TransactionCreateResponseBody) SetMerchantLocationGuid(v string) { + o.MerchantLocationGuid.Set(&v) +} +// SetMerchantLocationGuidNil sets the value for MerchantLocationGuid to be an explicit nil +func (o *TransactionCreateResponseBody) SetMerchantLocationGuidNil() { + o.MerchantLocationGuid.Set(nil) +} + +// UnsetMerchantLocationGuid ensures that no value is present for MerchantLocationGuid, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetMerchantLocationGuid() { + o.MerchantLocationGuid.Unset() +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetMetadata() string { + if o == nil || IsNil(o.Metadata.Get()) { + var ret string + return ret + } + return *o.Metadata.Get() +} + +// GetMetadataOk returns a tuple with the Metadata 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 *TransactionCreateResponseBody) GetMetadataOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Metadata.Get(), o.Metadata.IsSet() +} + +// HasMetadata returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasMetadata() bool { + if o != nil && o.Metadata.IsSet() { + return true + } + + return false +} + +// SetMetadata gets a reference to the given NullableString and assigns it to the Metadata field. +func (o *TransactionCreateResponseBody) SetMetadata(v string) { + o.Metadata.Set(&v) +} +// SetMetadataNil sets the value for Metadata to be an explicit nil +func (o *TransactionCreateResponseBody) SetMetadataNil() { + o.Metadata.Set(nil) +} + +// UnsetMetadata ensures that no value is present for Metadata, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetMetadata() { + o.Metadata.Unset() +} + +// GetOriginalDescription returns the OriginalDescription field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetOriginalDescription() string { + if o == nil || IsNil(o.OriginalDescription.Get()) { + var ret string + return ret + } + return *o.OriginalDescription.Get() +} + +// GetOriginalDescriptionOk returns a tuple with the OriginalDescription 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 *TransactionCreateResponseBody) GetOriginalDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.OriginalDescription.Get(), o.OriginalDescription.IsSet() +} + +// HasOriginalDescription returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasOriginalDescription() bool { + if o != nil && o.OriginalDescription.IsSet() { + return true + } + + return false +} + +// SetOriginalDescription gets a reference to the given NullableString and assigns it to the OriginalDescription field. +func (o *TransactionCreateResponseBody) SetOriginalDescription(v string) { + o.OriginalDescription.Set(&v) +} +// SetOriginalDescriptionNil sets the value for OriginalDescription to be an explicit nil +func (o *TransactionCreateResponseBody) SetOriginalDescriptionNil() { + o.OriginalDescription.Set(nil) +} + +// UnsetOriginalDescription ensures that no value is present for OriginalDescription, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetOriginalDescription() { + o.OriginalDescription.Unset() +} + +// GetPostedAt returns the PostedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetPostedAt() string { + if o == nil || IsNil(o.PostedAt.Get()) { + var ret string + return ret + } + return *o.PostedAt.Get() +} + +// GetPostedAtOk returns a tuple with the PostedAt 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 *TransactionCreateResponseBody) GetPostedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.PostedAt.Get(), o.PostedAt.IsSet() +} + +// HasPostedAt returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasPostedAt() bool { + if o != nil && o.PostedAt.IsSet() { + return true + } + + return false +} + +// SetPostedAt gets a reference to the given NullableString and assigns it to the PostedAt field. +func (o *TransactionCreateResponseBody) SetPostedAt(v string) { + o.PostedAt.Set(&v) +} +// SetPostedAtNil sets the value for PostedAt to be an explicit nil +func (o *TransactionCreateResponseBody) SetPostedAtNil() { + o.PostedAt.Set(nil) +} + +// UnsetPostedAt ensures that no value is present for PostedAt, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetPostedAt() { + o.PostedAt.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetStatus() string { + if o == nil || IsNil(o.Status.Get()) { + var ret string + return ret + } + return *o.Status.Get() +} + +// GetStatusOk returns a tuple with the Status 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 *TransactionCreateResponseBody) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Status.Get(), o.Status.IsSet() +} + +// HasStatus returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasStatus() bool { + if o != nil && o.Status.IsSet() { + return true + } + + return false +} + +// SetStatus gets a reference to the given NullableString and assigns it to the Status field. +func (o *TransactionCreateResponseBody) SetStatus(v string) { + o.Status.Set(&v) +} +// SetStatusNil sets the value for Status to be an explicit nil +func (o *TransactionCreateResponseBody) SetStatusNil() { + o.Status.Set(nil) +} + +// UnsetStatus ensures that no value is present for Status, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetStatus() { + o.Status.Unset() +} + +// GetTopLevelCategory returns the TopLevelCategory field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetTopLevelCategory() string { + if o == nil || IsNil(o.TopLevelCategory.Get()) { + var ret string + return ret + } + return *o.TopLevelCategory.Get() +} + +// GetTopLevelCategoryOk returns a tuple with the TopLevelCategory 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 *TransactionCreateResponseBody) GetTopLevelCategoryOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TopLevelCategory.Get(), o.TopLevelCategory.IsSet() +} + +// HasTopLevelCategory returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasTopLevelCategory() bool { + if o != nil && o.TopLevelCategory.IsSet() { + return true + } + + return false +} + +// SetTopLevelCategory gets a reference to the given NullableString and assigns it to the TopLevelCategory field. +func (o *TransactionCreateResponseBody) SetTopLevelCategory(v string) { + o.TopLevelCategory.Set(&v) +} +// SetTopLevelCategoryNil sets the value for TopLevelCategory to be an explicit nil +func (o *TransactionCreateResponseBody) SetTopLevelCategoryNil() { + o.TopLevelCategory.Set(nil) +} + +// UnsetTopLevelCategory ensures that no value is present for TopLevelCategory, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetTopLevelCategory() { + o.TopLevelCategory.Unset() +} + +// GetTransactedAt returns the TransactedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetTransactedAt() string { + if o == nil || IsNil(o.TransactedAt.Get()) { + var ret string + return ret + } + return *o.TransactedAt.Get() +} + +// GetTransactedAtOk returns a tuple with the TransactedAt 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 *TransactionCreateResponseBody) GetTransactedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TransactedAt.Get(), o.TransactedAt.IsSet() +} + +// HasTransactedAt returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasTransactedAt() bool { + if o != nil && o.TransactedAt.IsSet() { + return true + } + + return false +} + +// SetTransactedAt gets a reference to the given NullableString and assigns it to the TransactedAt field. +func (o *TransactionCreateResponseBody) SetTransactedAt(v string) { + o.TransactedAt.Set(&v) +} +// SetTransactedAtNil sets the value for TransactedAt to be an explicit nil +func (o *TransactionCreateResponseBody) SetTransactedAtNil() { + o.TransactedAt.Set(nil) +} + +// UnsetTransactedAt ensures that no value is present for TransactedAt, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetTransactedAt() { + o.TransactedAt.Unset() +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *TransactionCreateResponseBody) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactionCreateResponseBody) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *TransactionCreateResponseBody) SetType(v string) { + o.Type = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *TransactionCreateResponseBody) GetUpdatedAt() string { + if o == nil || IsNil(o.UpdatedAt) { + var ret string + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TransactionCreateResponseBody) GetUpdatedAtOk() (*string, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field. +func (o *TransactionCreateResponseBody) SetUpdatedAt(v string) { + o.UpdatedAt = &v +} + +// GetUserGuid returns the UserGuid field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetUserGuid() string { + if o == nil || IsNil(o.UserGuid.Get()) { + var ret string + return ret + } + return *o.UserGuid.Get() +} + +// GetUserGuidOk returns a tuple with the UserGuid 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 *TransactionCreateResponseBody) GetUserGuidOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.UserGuid.Get(), o.UserGuid.IsSet() +} + +// HasUserGuid returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasUserGuid() bool { + if o != nil && o.UserGuid.IsSet() { + return true + } + + return false +} + +// SetUserGuid gets a reference to the given NullableString and assigns it to the UserGuid field. +func (o *TransactionCreateResponseBody) SetUserGuid(v string) { + o.UserGuid.Set(&v) +} +// SetUserGuidNil sets the value for UserGuid to be an explicit nil +func (o *TransactionCreateResponseBody) SetUserGuidNil() { + o.UserGuid.Set(nil) +} + +// UnsetUserGuid ensures that no value is present for UserGuid, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetUserGuid() { + o.UserGuid.Unset() +} + +// GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TransactionCreateResponseBody) GetUserId() string { + if o == nil || IsNil(o.UserId.Get()) { + var ret string + return ret + } + return *o.UserId.Get() +} + +// GetUserIdOk returns a tuple with the UserId 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 *TransactionCreateResponseBody) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.UserId.Get(), o.UserId.IsSet() +} + +// HasUserId returns a boolean if a field has been set. +func (o *TransactionCreateResponseBody) HasUserId() bool { + if o != nil && o.UserId.IsSet() { + return true + } + + return false +} + +// SetUserId gets a reference to the given NullableString and assigns it to the UserId field. +func (o *TransactionCreateResponseBody) SetUserId(v string) { + o.UserId.Set(&v) +} +// SetUserIdNil sets the value for UserId to be an explicit nil +func (o *TransactionCreateResponseBody) SetUserIdNil() { + o.UserId.Set(nil) +} + +// UnsetUserId ensures that no value is present for UserId, not even an explicit nil +func (o *TransactionCreateResponseBody) UnsetUserId() { + o.UserId.Unset() +} + +func (o TransactionCreateResponseBody) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TransactionCreateResponseBody) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.AccountGuid.IsSet() { + toSerialize["account_guid"] = o.AccountGuid.Get() + } + if o.AccountId.IsSet() { + toSerialize["account_id"] = o.AccountId.Get() + } + if !IsNil(o.Amount) { + toSerialize["amount"] = o.Amount + } + if o.Category.IsSet() { + toSerialize["category"] = o.Category.Get() + } + if o.CategoryGuid.IsSet() { + toSerialize["category_guid"] = o.CategoryGuid.Get() + } + if o.CheckNumberString.IsSet() { + toSerialize["check_number_string"] = o.CheckNumberString.Get() + } + if o.CreatedAt.IsSet() { + toSerialize["created_at"] = o.CreatedAt.Get() + } + if o.CurrencyCode.IsSet() { + toSerialize["currency_code"] = o.CurrencyCode.Get() + } + if o.Date.IsSet() { + toSerialize["date"] = o.Date.Get() + } + if o.Description.IsSet() { + toSerialize["description"] = o.Description.Get() + } + if o.ExtendedTransactionType.IsSet() { + toSerialize["extended_transaction_type"] = o.ExtendedTransactionType.Get() + } + if o.Guid.IsSet() { + toSerialize["guid"] = o.Guid.Get() + } + if o.Id.IsSet() { + toSerialize["id"] = o.Id.Get() + } + if o.IsBillPay.IsSet() { + toSerialize["is_bill_pay"] = o.IsBillPay.Get() + } + if o.IsDirectDeposit.IsSet() { + toSerialize["is_direct_deposit"] = o.IsDirectDeposit.Get() + } + if o.IsExpense.IsSet() { + toSerialize["is_expense"] = o.IsExpense.Get() + } + if o.IsFee.IsSet() { + toSerialize["is_fee"] = o.IsFee.Get() + } + if o.IsIncome.IsSet() { + toSerialize["is_income"] = o.IsIncome.Get() + } + if o.IsInternational.IsSet() { + toSerialize["is_international"] = o.IsInternational.Get() + } + if o.IsManual.IsSet() { + toSerialize["is_manual"] = o.IsManual.Get() + } + if o.IsOverdraftFee.IsSet() { + toSerialize["is_overdraft_fee"] = o.IsOverdraftFee.Get() + } + if o.IsPayrollAdvance.IsSet() { + toSerialize["is_payroll_advance"] = o.IsPayrollAdvance.Get() + } + if o.IsRecurring.IsSet() { + toSerialize["is_recurring"] = o.IsRecurring.Get() + } + if o.IsSubscription.IsSet() { + toSerialize["is_subscription"] = o.IsSubscription.Get() + } + if o.Latitude.IsSet() { + toSerialize["latitude"] = o.Latitude.Get() + } + if o.LocalizedDescription.IsSet() { + toSerialize["localized_description"] = o.LocalizedDescription.Get() + } + if o.LocalizedMemo.IsSet() { + toSerialize["localized_memo"] = o.LocalizedMemo.Get() + } + if o.Longitude.IsSet() { + toSerialize["longitude"] = o.Longitude.Get() + } + if o.MemberGuid.IsSet() { + toSerialize["member_guid"] = o.MemberGuid.Get() + } + if o.MemberIsManagedByUser.IsSet() { + toSerialize["member_is_managed_by_user"] = o.MemberIsManagedByUser.Get() + } + if o.Memo.IsSet() { + toSerialize["memo"] = o.Memo.Get() + } + if o.MerchantCategoryCode.IsSet() { + toSerialize["merchant_category_code"] = o.MerchantCategoryCode.Get() + } + if o.MerchantGuid.IsSet() { + toSerialize["merchant_guid"] = o.MerchantGuid.Get() + } + if o.MerchantLocationGuid.IsSet() { + toSerialize["merchant_location_guid"] = o.MerchantLocationGuid.Get() + } + if o.Metadata.IsSet() { + toSerialize["metadata"] = o.Metadata.Get() + } + if o.OriginalDescription.IsSet() { + toSerialize["original_description"] = o.OriginalDescription.Get() + } + if o.PostedAt.IsSet() { + toSerialize["posted_at"] = o.PostedAt.Get() + } + if o.Status.IsSet() { + toSerialize["status"] = o.Status.Get() + } + if o.TopLevelCategory.IsSet() { + toSerialize["top_level_category"] = o.TopLevelCategory.Get() + } + if o.TransactedAt.IsSet() { + toSerialize["transacted_at"] = o.TransactedAt.Get() + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + if o.UserGuid.IsSet() { + toSerialize["user_guid"] = o.UserGuid.Get() + } + if o.UserId.IsSet() { + toSerialize["user_id"] = o.UserId.Get() + } + return toSerialize, nil +} + +type NullableTransactionCreateResponseBody struct { + value *TransactionCreateResponseBody + isSet bool +} + +func (v NullableTransactionCreateResponseBody) Get() *TransactionCreateResponseBody { + return v.value +} + +func (v *NullableTransactionCreateResponseBody) Set(val *TransactionCreateResponseBody) { + v.value = val + v.isSet = true +} + +func (v NullableTransactionCreateResponseBody) IsSet() bool { + return v.isSet +} + +func (v *NullableTransactionCreateResponseBody) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTransactionCreateResponseBody(val *TransactionCreateResponseBody) *NullableTransactionCreateResponseBody { + return &NullableTransactionCreateResponseBody{value: val, isSet: true} +} + +func (v NullableTransactionCreateResponseBody) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTransactionCreateResponseBody) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/openapi/config.yml b/openapi/config.yml index f4e825d..4fe1d5c 100644 --- a/openapi/config.yml +++ b/openapi/config.yml @@ -2,4 +2,4 @@ gitRepoId: mx-platform-go gitUserId: mxenabled packageName: mxplatformgo -packageVersion: 0.37.0 +packageVersion: 0.38.0 diff --git a/test/api_microdeposits_test.go b/test/api_microdeposits_test.go new file mode 100644 index 0000000..908537b --- /dev/null +++ b/test/api_microdeposits_test.go @@ -0,0 +1,96 @@ +/* +MX Platform API + +Testing MicrodepositsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package mxplatformgo + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/mxenabled/mx-platform-go" +) + +func Test_mxplatformgo_MicrodepositsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test MicrodepositsAPIService MicroDepositsMicrodepositGuidVerifyPut", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var microdepositGuid string + + resp, httpRes, err := apiClient.MicrodepositsAPI.MicroDepositsMicrodepositGuidVerifyPut(context.Background(), microdepositGuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MicrodepositsAPIService UsersUserGuidMicroDepositsGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var userGuid string + + resp, httpRes, err := apiClient.MicrodepositsAPI.UsersUserGuidMicroDepositsGet(context.Background(), userGuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MicrodepositsAPIService UsersUserGuidMicroDepositsMicroDepositGuidDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var microDepositGuid string + var userGuid string + + httpRes, err := apiClient.MicrodepositsAPI.UsersUserGuidMicroDepositsMicroDepositGuidDelete(context.Background(), microDepositGuid, userGuid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MicrodepositsAPIService UsersUserGuidMicroDepositsMicroDepositGuidGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var userGuid string + var microDepositGuid string + + resp, httpRes, err := apiClient.MicrodepositsAPI.UsersUserGuidMicroDepositsMicroDepositGuidGet(context.Background(), userGuid, microDepositGuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MicrodepositsAPIService UsersUserGuidMicroDepositsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var userGuid string + + resp, httpRes, err := apiClient.MicrodepositsAPI.UsersUserGuidMicroDepositsPost(context.Background(), userGuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_transactions_test.go b/test/api_transactions_test.go new file mode 100644 index 0000000..b330a7d --- /dev/null +++ b/test/api_transactions_test.go @@ -0,0 +1,40 @@ +/* +MX Platform API + +Testing TransactionsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package mxplatformgo + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/mxenabled/mx-platform-go" +) + +func Test_mxplatformgo_TransactionsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test TransactionsAPIService UsersUserGuidAccountsAccountGuidTransactionsPost", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var userGuid string + var accountGuid string + + resp, httpRes, err := apiClient.TransactionsAPI.UsersUserGuidAccountsAccountGuidTransactionsPost(context.Background(), userGuid, accountGuid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +}