From bbe539780e0dbd9f914201faffa863013e2d7213 Mon Sep 17 00:00:00 2001 From: Brooke E Kline Jr Date: Thu, 27 Jun 2019 11:57:29 -0400 Subject: [PATCH] Udates for routes Updates for routes --- client/.openapi-generator/VERSION | 2 +- client/README.md | 3 +- client/api/openapi.yaml | 72 ++----- client/api_fed_wire_message_file.go | 111 +++++++++++ client/api_wire_files.go | 185 +----------------- client/client.go | 3 + client/docs/FEDWireMessageFileApi.md | 54 +++++ client/docs/WireFilesApi.md | 90 --------- client/go.mod | 6 + client/go.sum | 11 ++ client/model_account_credited_drawdown.go | 2 +- client/model_account_debited_drawdown.go | 2 +- client/model_adjustment.go | 6 +- client/model_advice.go | 2 +- client/model_amount.go | 2 +- client/model_business_function_code.go | 2 +- client/model_charges.go | 10 +- client/model_create_file.go | 2 +- client/model_error_wire.go | 2 +- client/model_exchange_rate.go | 2 +- client/model_fed_wire_message.go | 120 ++++++------ .../model_fi_payment_method_to_beneficiary.go | 2 +- client/model_file.go | 2 +- client/model_financial_institution.go | 4 +- ...model_input_message_accountability_data.go | 2 +- client/model_instructed_amount.go | 2 +- client/model_local_instrument.go | 2 +- client/model_message_disposition.go | 8 +- client/model_originator_option_f.go | 10 +- ...odel_output_message_accountability_data.go | 4 +- client/model_payment_notification.go | 2 +- client/model_personal.go | 4 +- client/model_primary_remittance_document.go | 2 +- client/model_receipt_time_stamp.go | 4 +- client/model_related_remittance.go | 6 +- client/model_remittance_amount.go | 2 +- client/model_remittance_beneficiary.go | 6 +- client/model_remittance_data.go | 2 +- client/model_remittance_originator.go | 6 +- client/model_secondary_remittance_document.go | 2 +- client/model_sender_supplied.go | 6 +- client/model_type_sub_type.go | 4 +- client/model_unstructured_addenda.go | 2 +- cmd/server/files.go | 2 - cmd/server/files_test.go | 4 +- openapi.yaml | 65 ++---- 46 files changed, 343 insertions(+), 501 deletions(-) create mode 100644 client/api_fed_wire_message_file.go create mode 100644 client/docs/FEDWireMessageFileApi.md create mode 100644 client/go.mod create mode 100644 client/go.sum diff --git a/client/.openapi-generator/VERSION b/client/.openapi-generator/VERSION index 4bac418e..d96260ba 100644 --- a/client/.openapi-generator/VERSION +++ b/client/.openapi-generator/VERSION @@ -1 +1 @@ -4.0.2 \ No newline at end of file +4.0.2-SNAPSHOT \ No newline at end of file diff --git a/client/README.md b/client/README.md index 76e0a4b2..e09b7061 100644 --- a/client/README.md +++ b/client/README.md @@ -33,10 +33,9 @@ All URIs are relative to *http://localhost:8087* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*FEDWireMessageFileApi* | [**AddFEDWireMessageToFile**](docs/FEDWireMessageFileApi.md#addfedwiremessagetofile) | **Post** /files/{file_id}/FEDWireMessage | Add FEDWireMessage to File *WireFilesApi* | [**CreateWireFile**](docs/WireFilesApi.md#createwirefile) | **Post** /files/create | Create a new File object -*WireFilesApi* | [**DeleteFEDWireMessageFromFile**](docs/WireFilesApi.md#deletefedwiremessagefromfile) | **Delete** /files/{file_id}/FEDWireMessage/{FEDWireMessage_id} | Delete a FEDWireMessage from a File *WireFilesApi* | [**DeleteWireFileByID**](docs/WireFilesApi.md#deletewirefilebyid) | **Delete** /files/{file_id} | Permanently deletes a File and associated FEDWireMessage. It cannot be undone. -*WireFilesApi* | [**GetFEDWireMessageFromFile**](docs/WireFilesApi.md#getfedwiremessagefromfile) | **Get** /files/{file_id}/FEDWireMessage/{FEDWireMessage_id} | Get a specific FEDWireMessage on a FIle *WireFilesApi* | [**GetWireFileByID**](docs/WireFilesApi.md#getwirefilebyid) | **Get** /files/{file_id} | Retrieves the details of an existing File. You need only supply the unique File identifier that was returned upon creation. *WireFilesApi* | [**GetWireFileContents**](docs/WireFilesApi.md#getwirefilecontents) | **Get** /files/{file_id}/contents | Assembles the existing file witha FEDWireMessage, Returns plaintext file. *WireFilesApi* | [**GetWireFiles**](docs/WireFilesApi.md#getwirefiles) | **Get** /files | Gets a list of Files diff --git a/client/api/openapi.yaml b/client/api/openapi.yaml index 77651d56..04622933 100644 --- a/client/api/openapi.yaml +++ b/client/api/openapi.yaml @@ -339,9 +339,9 @@ paths: that was returned upon creation. tags: - Wire Files - /files/{file_id}/FEDWireMessage/{FEDWireMessage_id}: - delete: - operationId: deleteFEDWireMessageFromFile + /files/{file_id}/FEDWireMessage: + post: + operationId: addFEDWireMessageToFile parameters: - description: Optional Request ID allows application developer to trace requests through the systems logs @@ -353,44 +353,13 @@ paths: schema: type: string style: simple - - description: File ID - explode: false - in: path - name: file_id - required: true - schema: - example: 3f2d23ee214 - type: string - style: simple - - description: FEDWireMessage ID - explode: false - in: path - name: FEDWireMessage_id - required: true - schema: - example: "45758063" - type: string - style: simple - responses: - 200: - description: FEDWireMessage deleted - 404: - description: FEDWireMessage or File not found - security: - - bearerAuth: [] - - cookieAuth: [] - summary: Delete a FEDWireMessage from a File - tags: - - Wire Files - get: - operationId: getFEDWireMessageFromFile - parameters: - - description: Optional Request ID allows application developer to trace requests - through the systems logs - example: rs4f9915 + - description: Idempotent key in the header which expires after 24 hours. These + strings should contain enough entropy for to not collide with each other + in your requests. + example: a4f88150 explode: false in: header - name: X-Request-Id + name: X-Idempotency-Key required: false schema: type: string @@ -404,30 +373,21 @@ paths: example: 3f2d23ee214 type: string style: simple - - description: FEDWireMessage ID - explode: false - in: path - name: FEDWireMessage_id + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/FEDWireMessage' required: true - schema: - example: "45758063" - type: string - style: simple responses: 200: - content: - application/json: - schema: - $ref: '#/components/schemas/FEDWireMessage' - description: FEDWireMessage object - 404: - description: FEDWireMessage or File not found + description: FEDWireMessage added to File security: - bearerAuth: [] - cookieAuth: [] - summary: Get a specific FEDWireMessage on a FIle + summary: Add FEDWireMessage to File tags: - - Wire Files + - FEDWireMessage File components: schemas: CreateFile: diff --git a/client/api_fed_wire_message_file.go b/client/api_fed_wire_message_file.go new file mode 100644 index 00000000..3b28a80b --- /dev/null +++ b/client/api_fed_wire_message_file.go @@ -0,0 +1,111 @@ +/* + * WIRE API + * + * Moov WIRE () implements an HTTP API for creating, parsing and validating WIRE files. + * + * API version: v1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "context" + "io/ioutil" + "net/http" + "net/url" + "fmt" + "strings" + "github.com/antihax/optional" +) + +// Linger please +var ( + _ context.Context +) + +type FEDWireMessageFileApiService service + +/* +FEDWireMessageFileApiService Add FEDWireMessage to File + * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param fileId File ID + * @param fedWireMessage + * @param optional nil or *AddFEDWireMessageToFileOpts - Optional Parameters: + * @param "XRequestId" (optional.String) - Optional Request ID allows application developer to trace requests through the systems logs + * @param "XIdempotencyKey" (optional.String) - Idempotent key in the header which expires after 24 hours. These strings should contain enough entropy for to not collide with each other in your requests. +*/ + +type AddFEDWireMessageToFileOpts struct { + XRequestId optional.String + XIdempotencyKey optional.String +} + +func (a *FEDWireMessageFileApiService) AddFEDWireMessageToFile(ctx context.Context, fileId string, fedWireMessage FedWireMessage, localVarOptionals *AddFEDWireMessageToFileOpts) (*http.Response, error) { + var ( + localVarHttpMethod = http.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/files/{file_id}/FEDWireMessage" + localVarPath = strings.Replace(localVarPath, "{"+"file_id"+"}", fmt.Sprintf("%v", fileId), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + if localVarOptionals != nil && localVarOptionals.XRequestId.IsSet() { + localVarHeaderParams["X-Request-Id"] = parameterToString(localVarOptionals.XRequestId.Value(), "") + } + if localVarOptionals != nil && localVarOptionals.XIdempotencyKey.IsSet() { + localVarHeaderParams["X-Idempotency-Key"] = parameterToString(localVarOptionals.XIdempotencyKey.Value(), "") + } + // body params + localVarPostBody = &fedWireMessage + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarHttpResponse, err + } + + localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + return localVarHttpResponse, newErr + } + + return localVarHttpResponse, nil +} diff --git a/client/api_wire_files.go b/client/api_wire_files.go index 112d212b..51c31044 100644 --- a/client/api_wire_files.go +++ b/client/api_wire_files.go @@ -11,12 +11,12 @@ package openapi import ( "context" - "fmt" - "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" + "fmt" "strings" + "github.com/antihax/optional" ) // Linger please @@ -37,7 +37,7 @@ WireFilesApiService Create a new File object */ type CreateWireFileOpts struct { - XRequestId optional.String + XRequestId optional.String XIdempotencyKey optional.String } @@ -139,84 +139,6 @@ func (a *WireFilesApiService) CreateWireFile(ctx context.Context, createFile Cre return localVarReturnValue, localVarHttpResponse, nil } -/* -WireFilesApiService Delete a FEDWireMessage from a File - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param fileId File ID - * @param fEDWireMessageId FEDWireMessage ID - * @param optional nil or *DeleteFEDWireMessageFromFileOpts - Optional Parameters: - * @param "XRequestId" (optional.String) - Optional Request ID allows application developer to trace requests through the systems logs -*/ - -type DeleteFEDWireMessageFromFileOpts struct { - XRequestId optional.String -} - -func (a *WireFilesApiService) DeleteFEDWireMessageFromFile(ctx context.Context, fileId string, fEDWireMessageId string, localVarOptionals *DeleteFEDWireMessageFromFileOpts) (*http.Response, error) { - var ( - localVarHttpMethod = http.MethodDelete - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/files/{file_id}/FEDWireMessage/{FEDWireMessage_id}" - localVarPath = strings.Replace(localVarPath, "{"+"file_id"+"}", fmt.Sprintf("%v", fileId), -1) - localVarPath = strings.Replace(localVarPath, "{"+"FEDWireMessage_id"+"}", fmt.Sprintf("%v", fEDWireMessageId), -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 - } - if localVarOptionals != nil && localVarOptionals.XRequestId.IsSet() { - localVarHeaderParams["X-Request-Id"] = parameterToString(localVarOptionals.XRequestId.Value(), "") - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - return localVarHttpResponse, newErr - } - - return localVarHttpResponse, nil -} - /* WireFilesApiService Permanently deletes a File and associated FEDWireMessage. It cannot be undone. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -293,105 +215,6 @@ func (a *WireFilesApiService) DeleteWireFileByID(ctx context.Context, fileId str return localVarHttpResponse, nil } -/* -WireFilesApiService Get a specific FEDWireMessage on a FIle - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param fileId File ID - * @param fEDWireMessageId FEDWireMessage ID - * @param optional nil or *GetFEDWireMessageFromFileOpts - Optional Parameters: - * @param "XRequestId" (optional.String) - Optional Request ID allows application developer to trace requests through the systems logs -@return FedWireMessage -*/ - -type GetFEDWireMessageFromFileOpts struct { - XRequestId optional.String -} - -func (a *WireFilesApiService) GetFEDWireMessageFromFile(ctx context.Context, fileId string, fEDWireMessageId string, localVarOptionals *GetFEDWireMessageFromFileOpts) (FedWireMessage, *http.Response, error) { - var ( - localVarHttpMethod = http.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue FedWireMessage - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/files/{file_id}/FEDWireMessage/{FEDWireMessage_id}" - localVarPath = strings.Replace(localVarPath, "{"+"file_id"+"}", fmt.Sprintf("%v", fileId), -1) - localVarPath = strings.Replace(localVarPath, "{"+"FEDWireMessage_id"+"}", fmt.Sprintf("%v", fEDWireMessageId), -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 - } - if localVarOptionals != nil && localVarOptionals.XRequestId.IsSet() { - localVarHeaderParams["X-Request-Id"] = parameterToString(localVarOptionals.XRequestId.Value(), "") - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - if localVarHttpResponse.StatusCode == 200 { - var v FedWireMessage - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - 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 -} - /* WireFilesApiService Retrieves the details of an existing File. You need only supply the unique File identifier that was returned upon creation. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @@ -757,7 +580,7 @@ WireFilesApiService Updates the specified FEDWire Message by setting the values */ type UpdateWireFileByIDOpts struct { - XRequestId optional.String + XRequestId optional.String XIdempotencyKey optional.String } diff --git a/client/client.go b/client/client.go index e532031b..e3502e67 100644 --- a/client/client.go +++ b/client/client.go @@ -45,6 +45,8 @@ type APIClient struct { // API Services + FEDWireMessageFileApi *FEDWireMessageFileApiService + WireFilesApi *WireFilesApiService } @@ -64,6 +66,7 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.common.client = c // API Services + c.FEDWireMessageFileApi = (*FEDWireMessageFileApiService)(&c.common) c.WireFilesApi = (*WireFilesApiService)(&c.common) return c diff --git a/client/docs/FEDWireMessageFileApi.md b/client/docs/FEDWireMessageFileApi.md new file mode 100644 index 00000000..a61da951 --- /dev/null +++ b/client/docs/FEDWireMessageFileApi.md @@ -0,0 +1,54 @@ +# \FEDWireMessageFileApi + +All URIs are relative to *http://localhost:8087* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AddFEDWireMessageToFile**](FEDWireMessageFileApi.md#AddFEDWireMessageToFile) | **Post** /files/{file_id}/FEDWireMessage | Add FEDWireMessage to File + + + +## AddFEDWireMessageToFile + +> AddFEDWireMessageToFile(ctx, fileId, fedWireMessage, optional) +Add FEDWireMessage to File + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**fileId** | **string**| File ID | +**fedWireMessage** | [**FedWireMessage**](FedWireMessage.md)| | + **optional** | ***AddFEDWireMessageToFileOpts** | optional parameters | nil if no parameters + +### Optional Parameters + +Optional parameters are passed through a pointer to a AddFEDWireMessageToFileOpts struct + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **xRequestId** | **optional.String**| Optional Request ID allows application developer to trace requests through the systems logs | + **xIdempotencyKey** | **optional.String**| Idempotent key in the header which expires after 24 hours. These strings should contain enough entropy for to not collide with each other in your requests. | + +### Return type + + (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/client/docs/WireFilesApi.md b/client/docs/WireFilesApi.md index 354d21fd..d8aa8583 100644 --- a/client/docs/WireFilesApi.md +++ b/client/docs/WireFilesApi.md @@ -5,9 +5,7 @@ All URIs are relative to *http://localhost:8087* Method | HTTP request | Description ------------- | ------------- | ------------- [**CreateWireFile**](WireFilesApi.md#CreateWireFile) | **Post** /files/create | Create a new File object -[**DeleteFEDWireMessageFromFile**](WireFilesApi.md#DeleteFEDWireMessageFromFile) | **Delete** /files/{file_id}/FEDWireMessage/{FEDWireMessage_id} | Delete a FEDWireMessage from a File [**DeleteWireFileByID**](WireFilesApi.md#DeleteWireFileByID) | **Delete** /files/{file_id} | Permanently deletes a File and associated FEDWireMessage. It cannot be undone. -[**GetFEDWireMessageFromFile**](WireFilesApi.md#GetFEDWireMessageFromFile) | **Get** /files/{file_id}/FEDWireMessage/{FEDWireMessage_id} | Get a specific FEDWireMessage on a FIle [**GetWireFileByID**](WireFilesApi.md#GetWireFileByID) | **Get** /files/{file_id} | Retrieves the details of an existing File. You need only supply the unique File identifier that was returned upon creation. [**GetWireFileContents**](WireFilesApi.md#GetWireFileContents) | **Get** /files/{file_id}/contents | Assembles the existing file witha FEDWireMessage, Returns plaintext file. [**GetWireFiles**](WireFilesApi.md#GetWireFiles) | **Get** /files | Gets a list of Files @@ -60,50 +58,6 @@ No authorization required [[Back to README]](../README.md) -## DeleteFEDWireMessageFromFile - -> DeleteFEDWireMessageFromFile(ctx, fileId, fEDWireMessageId, optional) -Delete a FEDWireMessage from a File - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fileId** | **string**| File ID | -**fEDWireMessageId** | **string**| FEDWireMessage ID | - **optional** | ***DeleteFEDWireMessageFromFileOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a DeleteFEDWireMessageFromFileOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - **xRequestId** | **optional.String**| Optional Request ID allows application developer to trace requests through the systems logs | - -### Return type - - (empty response body) - -### Authorization - -No authorization required - -### 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) - - ## DeleteWireFileByID > DeleteWireFileByID(ctx, fileId, optional) @@ -146,50 +100,6 @@ No authorization required [[Back to README]](../README.md) -## GetFEDWireMessageFromFile - -> FedWireMessage GetFEDWireMessageFromFile(ctx, fileId, fEDWireMessageId, optional) -Get a specific FEDWireMessage on a FIle - -### Required Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**fileId** | **string**| File ID | -**fEDWireMessageId** | **string**| FEDWireMessage ID | - **optional** | ***GetFEDWireMessageFromFileOpts** | optional parameters | nil if no parameters - -### Optional Parameters - -Optional parameters are passed through a pointer to a GetFEDWireMessageFromFileOpts struct - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - - **xRequestId** | **optional.String**| Optional Request ID allows application developer to trace requests through the systems logs | - -### Return type - -[**FedWireMessage**](FEDWireMessage.md) - -### Authorization - -No authorization required - -### 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) - - ## GetWireFileByID > File GetWireFileByID(ctx, fileId, optional) diff --git a/client/go.mod b/client/go.mod new file mode 100644 index 00000000..57c3f489 --- /dev/null +++ b/client/go.mod @@ -0,0 +1,6 @@ +module github.com/GIT_USER_ID/GIT_REPO_ID + +require ( + github.com/antihax/optional v0.0.0-20180406194304-ca021399b1a6 + golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a +) diff --git a/client/go.sum b/client/go.sum new file mode 100644 index 00000000..e3c16fef --- /dev/null +++ b/client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/antihax/optional v0.0.0-20180406194304-ca021399b1a6/go.mod h1:V8iCPQYkqmusNa815XgQio277wI47sdRh1dUOLdyC6Q= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a h1:tImsplftrFpALCYumobsd0K86vlAs/eXGFms2txfJfA= +golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/client/model_account_credited_drawdown.go b/client/model_account_credited_drawdown.go index a339c5d8..83e8edba 100644 --- a/client/model_account_credited_drawdown.go +++ b/client/model_account_credited_drawdown.go @@ -11,6 +11,6 @@ package openapi // AccountCreditedDrawdown is the account which is credited in a drawdown type AccountCreditedDrawdown struct { - // DrawdownCreditAccountNumber 9 character ABA + // DrawdownCreditAccountNumber 9 character ABA DrawdownCreditAccountNumber string `json:"drawdownCreditAccountNumber,omitempty"` } diff --git a/client/model_account_debited_drawdown.go b/client/model_account_debited_drawdown.go index 01a60cb4..ed1d8f95 100644 --- a/client/model_account_debited_drawdown.go +++ b/client/model_account_debited_drawdown.go @@ -11,7 +11,7 @@ package openapi // AccountDebitedDrawdown is the account which is debited in a drawdown type AccountDebitedDrawdown struct { - // Identification Code * `D` - Debit + // Identification Code * `D` - Debit IdentificationCode string `json:"identificationCode"` // Identifier Identifier string `json:"identifier"` diff --git a/client/model_adjustment.go b/client/model_adjustment.go index 667a0f34..165a0ac6 100644 --- a/client/model_adjustment.go +++ b/client/model_adjustment.go @@ -11,13 +11,13 @@ package openapi // Adjustment type Adjustment struct { - // Adjustment Reason Code * `01` - Pricing Error * `03` - Extension Error * `04` - Item Not Accepted (Damaged) * `05` - Item Not Accepted (Quality) * `06` - Quantity Contested 07 Incorrect Product * `11` - Returns (Damaged) * `12` - Returns (Quality) * `59` - Item Not Received * `75` - Total Order Not Received * `81` - Credit as Agreed * `CM` - Covered by Credit Memo + // Adjustment Reason Code * `01` - Pricing Error * `03` - Extension Error * `04` - Item Not Accepted (Damaged) * `05` - Item Not Accepted (Quality) * `06` - Quantity Contested 07 Incorrect Product * `11` - Returns (Damaged) * `12` - Returns (Quality) * `59` - Item Not Received * `75` - Total Order Not Received * `81` - Credit as Agreed * `CM` - Covered by Credit Memo AdjustmentReasonCode string `json:"adjustmentReasonCode,omitempty"` - // CreditDebitIndicator * `CRDT` - Credit * `DBIT` - Debit + // CreditDebitIndicator * `CRDT` - Credit * `DBIT` - Debit CreditDebitIndicator string `json:"creditDebitIndicator,omitempty"` // CurrencyCode CurrencyCode string `json:"currencyCode,omitempty"` - // Amount Must contain at least one numeric character and only one decimal period marker (e.g., $1,234.56 should be entered as 1234.56). Can have up to 5 numeric characters following the decimal period marker (e.g., 1234.56789). Amount must be greater than zero (i.e., at least .01). + // Amount Must contain at least one numeric character and only one decimal period marker (e.g., $1,234.56 should be entered as 1234.56). Can have up to 5 numeric characters following the decimal period marker (e.g., 1234.56789). Amount must be greater than zero (i.e., at least .01). Amount string `json:"amount,omitempty"` // AdditionalInfo AdditionalInfo string `json:"additionalInfo,omitempty"` diff --git a/client/model_advice.go b/client/model_advice.go index c56f0852..7ac9420b 100644 --- a/client/model_advice.go +++ b/client/model_advice.go @@ -11,7 +11,7 @@ package openapi // Advice type Advice struct { - // Advice Code * `HLD - Hold * `LTR` - Letter * `PHN` - Phone * `TLX` - Telex * `WRE` - Wire + // Advice Code * `HLD - Hold * `LTR` - Letter * `PHN` - Phone * `TLX` - Telex * `WRE` - Wire AdviceCode string `json:"adviceCode,omitempty"` // LineOne LineOne string `json:"lineOne,omitempty"` diff --git a/client/model_amount.go b/client/model_amount.go index 7b2d700a..0906626c 100644 --- a/client/model_amount.go +++ b/client/model_amount.go @@ -11,6 +11,6 @@ package openapi // Amount is an amount up to a penny less than $10 billion type Amount struct { - // Amount 12 numeric, right-justified with leading zeros, an implied decimal point and no commas; e.g., $12,345.67 becomes 000001234567 Can be all zeros for subtype 90 + // Amount 12 numeric, right-justified with leading zeros, an implied decimal point and no commas; e.g., $12,345.67 becomes 000001234567 Can be all zeros for subtype 90 Amount string `json:"amount"` } diff --git a/client/model_business_function_code.go b/client/model_business_function_code.go index 5b10ea08..39c60927 100644 --- a/client/model_business_function_code.go +++ b/client/model_business_function_code.go @@ -11,7 +11,7 @@ package openapi // BusinessFunctionCode is the business function code type BusinessFunctionCode struct { - // BusinessFunctionCode * `BTR` - Bank Transfer (Beneficiary is a bank) * `DRC` - Customer or Corporate Drawdown Request * `CKS` - Check Same Day Settlement * `DRW` - Drawdown Payment * `CTP` - Customer Transfer Plus * `FFR` - Fed Funds Returned * `CTR` - Customer Transfer (Beneficiary is a not a bank) * `FFS` - Fed Funds Sold * `DEP` - Deposit to Sender’s Account * `SVC` - Service Message * `DRB` - Bank-to-Bank Drawdown Request + // BusinessFunctionCode * `BTR` - Bank Transfer (Beneficiary is a bank) * `DRC` - Customer or Corporate Drawdown Request * `CKS` - Check Same Day Settlement * `DRW` - Drawdown Payment * `CTP` - Customer Transfer Plus * `FFR` - Fed Funds Returned * `CTR` - Customer Transfer (Beneficiary is a not a bank) * `FFS` - Fed Funds Sold * `DEP` - Deposit to Sender’s Account * `SVC` - Service Message * `DRB` - Bank-to-Bank Drawdown Request BusinessFunctionCode string `json:"businessFunctionCode"` // TransactionTypeCode If {3600} is CTR, an optional Transaction Type Code element is permitted; however, the Transaction Type Code 'COV' is not permitted. TransactionTypeCode string `json:"transactionTypeCode,omitempty"` diff --git a/client/model_charges.go b/client/model_charges.go index 0740ed46..0af3b359 100644 --- a/client/model_charges.go +++ b/client/model_charges.go @@ -10,14 +10,14 @@ package openapi type Charges struct { - // Charge Details * `B` - Beneficiary * `S` - Shared + // Charge Details * `B` - Beneficiary * `S` - Shared ChargeDetails string `json:"chargeDetails,omitempty"` - // SendersChargesOne The first three characters must contain an alpha currency code (e.g., USD). The remaining characters for the amount must begin with at least one numeric character (0-9) and only one decimal comma marker. $1,234.56 should be entered as USD1234,56 and $0.99 should be entered as USD0,99. + // SendersChargesOne The first three characters must contain an alpha currency code (e.g., USD). The remaining characters for the amount must begin with at least one numeric character (0-9) and only one decimal comma marker. $1,234.56 should be entered as USD1234,56 and $0.99 should be entered as USD0,99. SendersChargesOne string `json:"sendersChargesOne,omitempty"` - // SendersChargesTwo The first three characters must contain an alpha currency code (e.g., USD). The remaining characters for the amount must begin with at least one numeric character (0-9) and only one decimal comma marker. $1,234.56 should be entered as USD1234,56 and $0.99 should be entered as USD0,99. + // SendersChargesTwo The first three characters must contain an alpha currency code (e.g., USD). The remaining characters for the amount must begin with at least one numeric character (0-9) and only one decimal comma marker. $1,234.56 should be entered as USD1234,56 and $0.99 should be entered as USD0,99. SendersChargesTwo string `json:"sendersChargesTwo,omitempty"` - // SendersChargesThree The first three characters must contain an alpha currency code (e.g., USD). The remaining characters for the amount must begin with at least one numeric character (0-9) and only one decimal comma marker. $1,234.56 should be entered as USD1234,56 and $0.99 should be entered as USD0,99. + // SendersChargesThree The first three characters must contain an alpha currency code (e.g., USD). The remaining characters for the amount must begin with at least one numeric character (0-9) and only one decimal comma marker. $1,234.56 should be entered as USD1234,56 and $0.99 should be entered as USD0,99. SendersChargesThree string `json:"sendersChargesThree,omitempty"` - // SendersChargesFour The first three characters must contain an alpha currency code (e.g., USD). The remaining characters for the amount must begin with at least one numeric character (0-9) and only one decimal comma marker. $1,234.56 should be entered as USD1234,56 and $0.99 should be entered as USD0,99. + // SendersChargesFour The first three characters must contain an alpha currency code (e.g., USD). The remaining characters for the amount must begin with at least one numeric character (0-9) and only one decimal comma marker. $1,234.56 should be entered as USD1234,56 and $0.99 should be entered as USD0,99. SendersChargesFour string `json:"sendersChargesFour,omitempty"` } diff --git a/client/model_create_file.go b/client/model_create_file.go index 15b9474b..ffb78c34 100644 --- a/client/model_create_file.go +++ b/client/model_create_file.go @@ -11,6 +11,6 @@ package openapi type CreateFile struct { // File ID - Id string `json:"id,omitempty"` + Id string `json:"id,omitempty"` FedWireMessage []FedWireMessage `json:"fedWireMessage,omitempty"` } diff --git a/client/model_error_wire.go b/client/model_error_wire.go index a3bc026d..a4882581 100644 --- a/client/model_error_wire.go +++ b/client/model_error_wire.go @@ -11,7 +11,7 @@ package openapi // ErrorWire type ErrorWire struct { - // ErrorCategory * `E` - Data Error * `F` - Insufficient Balance * `H` - Accountability Error * `I` - In Process or Intercepted * `W` - Cutoff Hour Error * `X` - Duplicate IMAD + // ErrorCategory * `E` - Data Error * `F` - Insufficient Balance * `H` - Accountability Error * `I` - In Process or Intercepted * `W` - Cutoff Hour Error * `X` - Duplicate IMAD ErrorCategory string `json:"errorCategory,omitempty"` // ErrorCode ErrorCode string `json:"errorCode,omitempty"` diff --git a/client/model_exchange_rate.go b/client/model_exchange_rate.go index d0c51f34..6f7dd29b 100644 --- a/client/model_exchange_rate.go +++ b/client/model_exchange_rate.go @@ -11,6 +11,6 @@ package openapi // ExchangeRate is the exchange rate type ExchangeRate struct { - // ExchangeRate is the exchange rate Must contain at least one numeric character and only one decimal comma marker (e.g., an exchange rate of 1.2345 should be entered as 1,2345). + // ExchangeRate is the exchange rate Must contain at least one numeric character and only one decimal comma marker (e.g., an exchange rate of 1.2345 should be entered as 1,2345). ExchangeRate string `json:"exchangeRate,omitempty"` } diff --git a/client/model_fed_wire_message.go b/client/model_fed_wire_message.go index caeaddf5..b3fd7d48 100644 --- a/client/model_fed_wire_message.go +++ b/client/model_fed_wire_message.go @@ -11,65 +11,65 @@ package openapi type FedWireMessage struct { // FEDWireMessage ID - Id string `json:"id,omitempty"` - MessageDisposition MessageDisposition `json:"messageDisposition,omitempty"` - ReceiptTimeStamp ReceiptTimeStamp `json:"receiptTimeStamp,omitempty"` + Id string `json:"id,omitempty"` + MessageDisposition MessageDisposition `json:"messageDisposition,omitempty"` + ReceiptTimeStamp ReceiptTimeStamp `json:"receiptTimeStamp,omitempty"` OutputMessageAccountabilityData OutputMessageAccountabilityData `json:"outputMessageAccountabilityData,omitempty"` - ErrorWire ErrorWire `json:"errorWire,omitempty"` - SenderSupplied SenderSupplied `json:"senderSupplied"` - TypeSubType TypeSubType `json:"typeSubType"` - InputMessageAccountabilityData InputMessageAccountabilityData `json:"inputMessageAccountabilityData"` - Amount Amount `json:"amount"` - SenderDepositoryInstitution SenderDepositoryInstitution `json:"senderDepositoryInstitution"` - ReceiverDepositoryInstitution ReceiverDepositoryInstitution `json:"receiverDepositoryInstitution"` - BusinessFunctionCode BusinessFunctionCode `json:"businessFunctionCode"` - SenderReference SenderReference `json:"senderReference,omitempty"` - PreviousMessageIdentifier PreviousMessageIdentifier `json:"previousMessageIdentifier,omitempty"` - LocalInstrument LocalInstrument `json:"localInstrument,omitempty"` - PaymentNotification PaymentNotification `json:"paymentNotification,omitempty"` - Charges Charges `json:"charges,omitempty"` - InstructedAmount InstructedAmount `json:"instructedAmount,omitempty"` - ExchangeRate ExchangeRate `json:"exchangeRate,omitempty"` - BeneficiaryIntermediaryFI FinancialInstitution `json:"beneficiaryIntermediaryFI,omitempty"` - BeneficiaryFI FinancialInstitution `json:"beneficiaryFI,omitempty"` - Beneficiary Personal `json:"beneficiary,omitempty"` - BeneficiaryReference BeneficiaryReference `json:"beneficiaryReference,omitempty"` - AccountDebitedDrawdown AccountDebitedDrawdown `json:"accountDebitedDrawdown,omitempty"` - Originator Personal `json:"originator,omitempty"` - OriginatorOptionF OriginatorOptionF `json:"originatorOptionF,omitempty"` - OriginatorFI FinancialInstitution `json:"originatorFI,omitempty"` - InstructingFI FinancialInstitution `json:"instructingFI,omitempty"` - AccountCreditedDrawdown AccountCreditedDrawdown `json:"accountCreditedDrawdown,omitempty"` - OriginatorToBeneficiary OriginatorToBeneficiary `json:"originatorToBeneficiary,omitempty"` - FiReceiverFI FiToFi `json:"fiReceiverFI,omitempty"` - FiDrawdownDebitAccountAdvice Advice `json:"fiDrawdownDebitAccountAdvice,omitempty"` - FiIntermediaryFI FiToFi `json:"fiIntermediaryFI,omitempty"` - FiIntermediaryFIAdvice Advice `json:"fiIntermediaryFIAdvice,omitempty"` - FiBeneficiaryFI FiToFi `json:"fiBeneficiaryFI,omitempty"` - FiBeneficiaryFIAdvice Advice `json:"fiBeneficiaryFIAdvice,omitempty"` - FiBeneficiary FiToFi `json:"fiBeneficiary,omitempty"` - FiBeneficiaryAdvice Advice `json:"fiBeneficiaryAdvice,omitempty"` - FiPaymentMethodToBeneficiary FiPaymentMethodToBeneficiary `json:"fiPaymentMethodToBeneficiary,omitempty"` - FiAdditionalFIToFI AdditionalFiToFi `json:"fiAdditionalFIToFI,omitempty"` - CurrencyInstructedAmount CurrencyInstructedAmount `json:"currencyInstructedAmount,omitempty"` - OrderingCustomer CoverPayment `json:"orderingCustomer,omitempty"` - OrderingInstitution CoverPayment `json:"orderingInstitution,omitempty"` - IntermediaryInstitution CoverPayment `json:"intermediaryInstitution,omitempty"` - InstitutionAccount CoverPayment `json:"institutionAccount,omitempty"` - BeneficiaryCustomer CoverPayment `json:"beneficiaryCustomer,omitempty"` - Remittance CoverPayment `json:"remittance,omitempty"` - SenderToReceiver CoverPayment `json:"senderToReceiver,omitempty"` - UnstructuredAddenda UnstructuredAddenda `json:"unstructuredAddenda,omitempty"` - RelatedRemittance RelatedRemittance `json:"relatedRemittance,omitempty"` - RemittanceOriginator RemittanceOriginator `json:"remittanceOriginator,omitempty"` - RemittanceBeneficiary RemittanceBeneficiary `json:"remittanceBeneficiary,omitempty"` - PrimaryRemittanceDocument PrimaryRemittanceDocument `json:"primaryRemittanceDocument,omitempty"` - ActualAmountPaid RemittanceAmount `json:"actualAmountPaid,omitempty"` - GrossAmountRemittanceDocument RemittanceAmount `json:"grossAmountRemittanceDocument,omitempty"` - AmountNegotiatedDiscount RemittanceAmount `json:"amountNegotiatedDiscount,omitempty"` - Adjustment Adjustment `json:"adjustment,omitempty"` - DateRemittanceDocument DateRemittanceDocument `json:"dateRemittanceDocument,omitempty"` - SecondaryRemittanceDocument SecondaryRemittanceDocument `json:"secondaryRemittanceDocument,omitempty"` - RemittanceFreeText RemittanceFreeText `json:"remittanceFreeText,omitempty"` - ServiceMessage ServiceMessage `json:"serviceMessage,omitempty"` + ErrorWire ErrorWire `json:"errorWire,omitempty"` + SenderSupplied SenderSupplied `json:"senderSupplied"` + TypeSubType TypeSubType `json:"typeSubType"` + InputMessageAccountabilityData InputMessageAccountabilityData `json:"inputMessageAccountabilityData"` + Amount Amount `json:"amount"` + SenderDepositoryInstitution SenderDepositoryInstitution `json:"senderDepositoryInstitution"` + ReceiverDepositoryInstitution ReceiverDepositoryInstitution `json:"receiverDepositoryInstitution"` + BusinessFunctionCode BusinessFunctionCode `json:"businessFunctionCode"` + SenderReference SenderReference `json:"senderReference,omitempty"` + PreviousMessageIdentifier PreviousMessageIdentifier `json:"previousMessageIdentifier,omitempty"` + LocalInstrument LocalInstrument `json:"localInstrument,omitempty"` + PaymentNotification PaymentNotification `json:"paymentNotification,omitempty"` + Charges Charges `json:"charges,omitempty"` + InstructedAmount InstructedAmount `json:"instructedAmount,omitempty"` + ExchangeRate ExchangeRate `json:"exchangeRate,omitempty"` + BeneficiaryIntermediaryFI FinancialInstitution `json:"beneficiaryIntermediaryFI,omitempty"` + BeneficiaryFI FinancialInstitution `json:"beneficiaryFI,omitempty"` + Beneficiary Personal `json:"beneficiary,omitempty"` + BeneficiaryReference BeneficiaryReference `json:"beneficiaryReference,omitempty"` + AccountDebitedDrawdown AccountDebitedDrawdown `json:"accountDebitedDrawdown,omitempty"` + Originator Personal `json:"originator,omitempty"` + OriginatorOptionF OriginatorOptionF `json:"originatorOptionF,omitempty"` + OriginatorFI FinancialInstitution `json:"originatorFI,omitempty"` + InstructingFI FinancialInstitution `json:"instructingFI,omitempty"` + AccountCreditedDrawdown AccountCreditedDrawdown `json:"accountCreditedDrawdown,omitempty"` + OriginatorToBeneficiary OriginatorToBeneficiary `json:"originatorToBeneficiary,omitempty"` + FiReceiverFI FiToFi `json:"fiReceiverFI,omitempty"` + FiDrawdownDebitAccountAdvice Advice `json:"fiDrawdownDebitAccountAdvice,omitempty"` + FiIntermediaryFI FiToFi `json:"fiIntermediaryFI,omitempty"` + FiIntermediaryFIAdvice Advice `json:"fiIntermediaryFIAdvice,omitempty"` + FiBeneficiaryFI FiToFi `json:"fiBeneficiaryFI,omitempty"` + FiBeneficiaryFIAdvice Advice `json:"fiBeneficiaryFIAdvice,omitempty"` + FiBeneficiary FiToFi `json:"fiBeneficiary,omitempty"` + FiBeneficiaryAdvice Advice `json:"fiBeneficiaryAdvice,omitempty"` + FiPaymentMethodToBeneficiary FiPaymentMethodToBeneficiary `json:"fiPaymentMethodToBeneficiary,omitempty"` + FiAdditionalFIToFI AdditionalFiToFi `json:"fiAdditionalFIToFI,omitempty"` + CurrencyInstructedAmount CurrencyInstructedAmount `json:"currencyInstructedAmount,omitempty"` + OrderingCustomer CoverPayment `json:"orderingCustomer,omitempty"` + OrderingInstitution CoverPayment `json:"orderingInstitution,omitempty"` + IntermediaryInstitution CoverPayment `json:"intermediaryInstitution,omitempty"` + InstitutionAccount CoverPayment `json:"institutionAccount,omitempty"` + BeneficiaryCustomer CoverPayment `json:"beneficiaryCustomer,omitempty"` + Remittance CoverPayment `json:"remittance,omitempty"` + SenderToReceiver CoverPayment `json:"senderToReceiver,omitempty"` + UnstructuredAddenda UnstructuredAddenda `json:"unstructuredAddenda,omitempty"` + RelatedRemittance RelatedRemittance `json:"relatedRemittance,omitempty"` + RemittanceOriginator RemittanceOriginator `json:"remittanceOriginator,omitempty"` + RemittanceBeneficiary RemittanceBeneficiary `json:"remittanceBeneficiary,omitempty"` + PrimaryRemittanceDocument PrimaryRemittanceDocument `json:"primaryRemittanceDocument,omitempty"` + ActualAmountPaid RemittanceAmount `json:"actualAmountPaid,omitempty"` + GrossAmountRemittanceDocument RemittanceAmount `json:"grossAmountRemittanceDocument,omitempty"` + AmountNegotiatedDiscount RemittanceAmount `json:"amountNegotiatedDiscount,omitempty"` + Adjustment Adjustment `json:"adjustment,omitempty"` + DateRemittanceDocument DateRemittanceDocument `json:"dateRemittanceDocument,omitempty"` + SecondaryRemittanceDocument SecondaryRemittanceDocument `json:"secondaryRemittanceDocument,omitempty"` + RemittanceFreeText RemittanceFreeText `json:"remittanceFreeText,omitempty"` + ServiceMessage ServiceMessage `json:"serviceMessage,omitempty"` } diff --git a/client/model_fi_payment_method_to_beneficiary.go b/client/model_fi_payment_method_to_beneficiary.go index 5070c2d4..51d9647d 100644 --- a/client/model_fi_payment_method_to_beneficiary.go +++ b/client/model_fi_payment_method_to_beneficiary.go @@ -11,6 +11,6 @@ package openapi type FiPaymentMethodToBeneficiary struct { // PaymentMethod - PaymentMethod string `json:"paymentMethod,omitempty"` + PaymentMethod string `json:"paymentMethod,omitempty"` AdditionalInformation string `json:"AdditionalInformation,omitempty"` } diff --git a/client/model_file.go b/client/model_file.go index 689c6e55..c7e03cdf 100644 --- a/client/model_file.go +++ b/client/model_file.go @@ -11,6 +11,6 @@ package openapi type File struct { // File ID - Id string `json:"id,omitempty"` + Id string `json:"id,omitempty"` FedWireMessage []FedWireMessage `json:"fedWireMessage"` } diff --git a/client/model_financial_institution.go b/client/model_financial_institution.go index 7eb29092..13c8cbc7 100644 --- a/client/model_financial_institution.go +++ b/client/model_financial_institution.go @@ -11,11 +11,11 @@ package openapi // FinancialInstitution is financial institution demographic information type FinancialInstitution struct { - // Identification Code: * `B` - SWIFT Bank Identifier Code (BIC) * `C` - CHIPS Participant * `D` - Demand Deposit Account (DDA) Number * `F` - Fed Routing Number * `T` - SWIFT BIC or Bank Entity Identifier (BEI) and Account Number * `U` - CHIPS Identifier + // Identification Code: * `B` - SWIFT Bank Identifier Code (BIC) * `C` - CHIPS Participant * `D` - Demand Deposit Account (DDA) Number * `F` - Fed Routing Number * `T` - SWIFT BIC or Bank Entity Identifier (BEI) and Account Number * `U` - CHIPS Identifier IdentificationCode string `json:"identificationCode"` // Identifier Identifier string `json:"identifier"` // Name - Name string `json:"name"` + Name string `json:"name"` Address Address `json:"address"` } diff --git a/client/model_input_message_accountability_data.go b/client/model_input_message_accountability_data.go index dc7da51e..04cd460a 100644 --- a/client/model_input_message_accountability_data.go +++ b/client/model_input_message_accountability_data.go @@ -11,7 +11,7 @@ package openapi // InputMessageAccountabilityData (IMAD) type InputMessageAccountabilityData struct { - // InputCycleDate CCYYMMDD + // InputCycleDate CCYYMMDD InputCycleDate string `json:"inputCycleDate"` // InputSource InputSource string `json:"inputSource"` diff --git a/client/model_instructed_amount.go b/client/model_instructed_amount.go index 594206e8..38d61ab3 100644 --- a/client/model_instructed_amount.go +++ b/client/model_instructed_amount.go @@ -13,6 +13,6 @@ package openapi type InstructedAmount struct { // CurrencyCode CurrencyCode string `json:"currencyCode,omitempty"` - // Amount Must begin with at least one numeric character (0-9) and contain only one decimal comma marker (e.g., $1,234.56 should be entered as 1234,56 and $0.99 should be entered as + // Amount Must begin with at least one numeric character (0-9) and contain only one decimal comma marker (e.g., $1,234.56 should be entered as 1234,56 and $0.99 should be entered as Amount string `json:"amount,omitempty"` } diff --git a/client/model_local_instrument.go b/client/model_local_instrument.go index 12df8310..9458c300 100644 --- a/client/model_local_instrument.go +++ b/client/model_local_instrument.go @@ -11,7 +11,7 @@ package openapi // LocalInstrument is the local instrument type LocalInstrument struct { - // LocalInstrument * `ANSI` - ANSI X12 format * `COVS` - Sequence B Cover Payment Structured * `GXML` - General XML format * `IXML` - ISO 20022 XML formaT * `NARR` - Narrative Text * `PROP` - Proprietary Local Instrument Code * `RMTS` - Remittance Information Structured * `RRMT` - Related Remittance Information * `S820` - STP 820 format * `SWIF` - SWIFT field 70 (Remittance Information) * `UEDI` - UN/EDIFACT format + // LocalInstrument * `ANSI` - ANSI X12 format * `COVS` - Sequence B Cover Payment Structured * `GXML` - General XML format * `IXML` - ISO 20022 XML formaT * `NARR` - Narrative Text * `PROP` - Proprietary Local Instrument Code * `RMTS` - Remittance Information Structured * `RRMT` - Related Remittance Information * `S820` - STP 820 format * `SWIF` - SWIFT field 70 (Remittance Information) * `UEDI` - UN/EDIFACT format LocalInstrumentCode string `json:"localInstrumentCode,omitempty"` // ProprietaryCode ProprietaryCode string `json:"proprietaryCode,omitempty"` diff --git a/client/model_message_disposition.go b/client/model_message_disposition.go index a30fb9ad..5943d040 100644 --- a/client/model_message_disposition.go +++ b/client/model_message_disposition.go @@ -10,12 +10,12 @@ package openapi type MessageDisposition struct { - // formatVersion identifies the format version 30 + // formatVersion identifies the format version 30 FormatVersion string `json:"formatVersion,omitempty"` - // testProductionCode identifies if test or production. * `T` - Test * `P` - Production + // testProductionCode identifies if test or production. * `T` - Test * `P` - Production TestProductionCode string `json:"testProductionCode,omitempty"` - // MessageDuplicationCode * ` ` - Original Message * `R` - Retrieval of an original message * `P` - Resend + // MessageDuplicationCode * ` ` - Original Message * `R` - Retrieval of an original message * `P` - Resend MessageDuplicationCode string `json:"messageDuplicationCode,omitempty"` - // MessageStatusIndicator Outgoing Messages * `0` - In process or Intercepted * `2` - Successful with Accounting (Value) * `3` - Rejected due to Error Condition * `7` - Successful without Accounting (Non-Value) Incoming Messages * `N` - Successful with Accounting (Value) * `S` - Successful without Accounting (Non-Value) + // MessageStatusIndicator Outgoing Messages * `0` - In process or Intercepted * `2` - Successful with Accounting (Value) * `3` - Rejected due to Error Condition * `7` - Successful without Accounting (Non-Value) Incoming Messages * `N` - Successful with Accounting (Value) * `S` - Successful without Accounting (Non-Value) MessageStatusIndicator string `json:"messageStatusIndicator,omitempty"` } diff --git a/client/model_originator_option_f.go b/client/model_originator_option_f.go index 94888ff9..ee2089fa 100644 --- a/client/model_originator_option_f.go +++ b/client/model_originator_option_f.go @@ -11,14 +11,14 @@ package openapi // OptionF is originator option F type OriginatorOptionF struct { - // PartyIdentifier Must be one of the following two formats: 1. /Account Number (slash followed by at least one valid non-space character: e.g., /123456) 2. Unique Identifier/ (4 character code followed by a slash and at least one valid non-space character: e.g., SOSE/123-456-789) ARNU: Alien Registration Number CCPT: Passport Number CUST: Customer Identification Number DRLC/ Driver’s License Number EMPL/ Employer Number NIDN: National Identify Number SOSE/ Social Security Number TXID: Tax Identification Number + // PartyIdentifier Must be one of the following two formats: 1. /Account Number (slash followed by at least one valid non-space character: e.g., /123456) 2. Unique Identifier/ (4 character code followed by a slash and at least one valid non-space character: e.g., SOSE/123-456-789) ARNU: Alien Registration Number CCPT: Passport Number CUST: Customer Identification Number DRLC/ Driver’s License Number EMPL/ Employer Number NIDN: National Identify Number SOSE/ Social Security Number TXID: Tax Identification Number PartyIdentifier string `json:"partyIdentifier,omitempty"` - // Name Format: Must begin with Line Code 1 followed by a slash and at least one valid non-space character: e.g., 1/SMITH JOHN. + // Name Format: Must begin with Line Code 1 followed by a slash and at least one valid non-space character: e.g., 1/SMITH JOHN. Name string `json:"name,omitempty"` - // LineOne Format: Must begin with one of the following Line Codes followed by a slash and at least one valid non-space character. 1 Name 2 Address 3 Country and Town 4 Date of Birth 5 Place of Birth 6 Customer Identification Number 7 National Identity Number 8 Additional Information For example: 2/123 MAIN STREET 3/US/NEW YORK, NY 10000 7/111-22-3456 + // LineOne Format: Must begin with one of the following Line Codes followed by a slash and at least one valid non-space character. 1 Name 2 Address 3 Country and Town 4 Date of Birth 5 Place of Birth 6 Customer Identification Number 7 National Identity Number 8 Additional Information For example: 2/123 MAIN STREET 3/US/NEW YORK, NY 10000 7/111-22-3456 LineOne string `json:"lineOne,omitempty"` - // LineTwo Format: Must begin with one of the following Line Codes followed by a slash and at least one valid non-space character. 1 Name 2 Address 3 Country and Town 4 Date of Birth 5 Place of Birth 6 Customer Identification Number 7 National Identity Number 8 Additional Information For example: 2/123 MAIN STREET 3/US/NEW YORK, NY 10000 7/111-22-3456 + // LineTwo Format: Must begin with one of the following Line Codes followed by a slash and at least one valid non-space character. 1 Name 2 Address 3 Country and Town 4 Date of Birth 5 Place of Birth 6 Customer Identification Number 7 National Identity Number 8 Additional Information For example: 2/123 MAIN STREET 3/US/NEW YORK, NY 10000 7/111-22-3456 LineTwo string `json:"lineTwo,omitempty"` - // LineThree Format: Must begin with one of the following Line Codes followed by a slash and at least one valid non-space character. 1 Name 2 Address 3 Country and Town 4 Date of Birth 5 Place of Birth 6 Customer Identification Number 7 National Identity Number 8 Additional Information For example: 2/123 MAIN STREET 3/US/NEW YORK, NY 10000 7/111-22-3456 + // LineThree Format: Must begin with one of the following Line Codes followed by a slash and at least one valid non-space character. 1 Name 2 Address 3 Country and Town 4 Date of Birth 5 Place of Birth 6 Customer Identification Number 7 National Identity Number 8 Additional Information For example: 2/123 MAIN STREET 3/US/NEW YORK, NY 10000 7/111-22-3456 LineThree string `json:"lineThree,omitempty"` } diff --git a/client/model_output_message_accountability_data.go b/client/model_output_message_accountability_data.go index acac8da6..4fec847e 100644 --- a/client/model_output_message_accountability_data.go +++ b/client/model_output_message_accountability_data.go @@ -16,9 +16,9 @@ type OutputMessageAccountabilityData struct { OutputDestinationID string `json:"outputDestinationID,omitempty"` // OutputSequenceNumber OutputSequenceNumber string `json:"outputSequenceNumber,omitempty"` - // Output Date MMDD, based on the calendar date + // Output Date MMDD, based on the calendar date OutputDate string `json:"outputDate,omitempty"` - // Output Time HHMM, based on a 24-hour clock, Eastern Time + // Output Time HHMM, based on a 24-hour clock, Eastern Time OutputTime string `json:"outputTime,omitempty"` // OutputFRBApplicationIdentification OutputFRBApplicationIdentification string `json:"outputFRBApplicationIdentification,omitempty"` diff --git a/client/model_payment_notification.go b/client/model_payment_notification.go index 15b18e1a..701e8723 100644 --- a/client/model_payment_notification.go +++ b/client/model_payment_notification.go @@ -11,7 +11,7 @@ package openapi // PaymentNotification is the payment notification type PaymentNotification struct { - // Payment Notification Indicator * `0 - 6` - Reserved for market practice conventions. * `7 - 9` - Reserved for bilateral agreements between Fedwire senders and receivers. + // Payment Notification Indicator * `0 - 6` - Reserved for market practice conventions. * `7 - 9` - Reserved for bilateral agreements between Fedwire senders and receivers. PaymentNotificationIndicator string `json:"paymentNotificationIndicator,omitempty"` // ContactNotificationElectronicAddress ContactNotificationElectronicAddress string `json:"contactNotificationElectronicAddress,omitempty"` diff --git a/client/model_personal.go b/client/model_personal.go index 1a54a332..b8d230ac 100644 --- a/client/model_personal.go +++ b/client/model_personal.go @@ -11,11 +11,11 @@ package openapi // Personal is personal demographic information type Personal struct { - // Identification Code: * `1` - Passport Number * `2` - Tax Identification Number * `3` - Driver’s License Number * `4` - Alien Registration Number * `5` - Corporate Identification * `9` - Other Identification + // Identification Code: * `1` - Passport Number * `2` - Tax Identification Number * `3` - Driver’s License Number * `4` - Alien Registration Number * `5` - Corporate Identification * `9` - Other Identification IdentificationCode string `json:"identificationCode"` // Identifier Identifier string `json:"identifier"` // Name - Name string `json:"name"` + Name string `json:"name"` Address Address `json:"address"` } diff --git a/client/model_primary_remittance_document.go b/client/model_primary_remittance_document.go index 8bbe3f31..c6776723 100644 --- a/client/model_primary_remittance_document.go +++ b/client/model_primary_remittance_document.go @@ -10,7 +10,7 @@ package openapi type PrimaryRemittanceDocument struct { - // Document Type Code * `AROI` - Accounts Receivable Open Item * `BOLD` - Bill of Lading Shipping Notice * `CINV` - Commercial Invoice * `CMCN` - Commercial Contract * `CNFA` - Credit Note Related to Financial Adjustment * `CREN` - Credit Note * `DEBN` - Debit Note * `DISP` - Dispatch Advice * `DNFA` - Debit Note Related to Financial Adjustment HIRI Hire Invoice * `MSIN` - Metered Service Invoice * `PROP` - Proprietary Document Type * `PUOR` - Purchase Order * `SBIN` - Self Billed Invoice * `SOAC` - Statement of Account * `TSUT` - Trade Services Utility Transaction VCHR Voucher + // Document Type Code * `AROI` - Accounts Receivable Open Item * `BOLD` - Bill of Lading Shipping Notice * `CINV` - Commercial Invoice * `CMCN` - Commercial Contract * `CNFA` - Credit Note Related to Financial Adjustment * `CREN` - Credit Note * `DEBN` - Debit Note * `DISP` - Dispatch Advice * `DNFA` - Debit Note Related to Financial Adjustment HIRI Hire Invoice * `MSIN` - Metered Service Invoice * `PROP` - Proprietary Document Type * `PUOR` - Purchase Order * `SBIN` - Self Billed Invoice * `SOAC` - Statement of Account * `TSUT` - Trade Services Utility Transaction VCHR Voucher DocumentTypeCode string `json:"documentTypeCode,omitempty"` // ProprietaryDocumentTypeCode ProprietaryDocumentTypeCode string `json:"proprietaryDocumentTypeCode,omitempty"` diff --git a/client/model_receipt_time_stamp.go b/client/model_receipt_time_stamp.go index b9d8a219..af75bc49 100644 --- a/client/model_receipt_time_stamp.go +++ b/client/model_receipt_time_stamp.go @@ -10,9 +10,9 @@ package openapi type ReceiptTimeStamp struct { - // ReceiptDate MMDD, based on the calendar date + // ReceiptDate MMDD, based on the calendar date ReceiptDate string `json:"receiptDate,omitempty"` - // ReceiptTime HHMM, based on a 24-hour clock, Eastern Time + // ReceiptTime HHMM, based on a 24-hour clock, Eastern Time ReceiptTime string `json:"receiptTime,omitempty"` // ApplicationIdentification ReceiptApplicationIdentification string `json:"receiptApplicationIdentification,omitempty"` diff --git a/client/model_related_remittance.go b/client/model_related_remittance.go index 40dd6035..b29e10b2 100644 --- a/client/model_related_remittance.go +++ b/client/model_related_remittance.go @@ -13,9 +13,9 @@ package openapi type RelatedRemittance struct { // RemittanceIdentification RemittanceIdentification string `json:"remittanceIdentification,omitempty"` - // RemittanceLocationMethod * `EDIC` - Electronic Data Interchange * `EMAL` - Email * `FAXI` - Fax * `POST` - Postal services * `SMS` - Short Message Service (text) * `URI` - Uniform Resource Identifier + // RemittanceLocationMethod * `EDIC` - Electronic Data Interchange * `EMAL` - Email * `FAXI` - Fax * `POST` - Postal services * `SMS` - Short Message Service (text) * `URI` - Uniform Resource Identifier RemittanceLocationMethod string `json:"remittanceLocationMethod,omitempty"` // RemittanceLocationElectronicAddress (E-mail or URL address) - RemittanceLocationElectronicAddress string `json:"remittanceLocationElectronicAddress,omitempty"` - RemittanceData RemittanceData `json:"remittanceData,omitempty"` + RemittanceLocationElectronicAddress string `json:"remittanceLocationElectronicAddress,omitempty"` + RemittanceData RemittanceData `json:"remittanceData,omitempty"` } diff --git a/client/model_remittance_amount.go b/client/model_remittance_amount.go index be7e5854..33f57de9 100644 --- a/client/model_remittance_amount.go +++ b/client/model_remittance_amount.go @@ -13,6 +13,6 @@ package openapi type RemittanceAmount struct { // CurrencyCode CurrencyCode string `json:"currencyCode,omitempty"` - // Amount Must contain at least one numeric character and only one decimal period marker (e.g., $1,234.56 should be entered as 1234.56). Can have up to 5 numeric characters following the decimal period marker (e.g., 1234.56789). Amount must be greater than zero (i.e., at least .01). + // Amount Must contain at least one numeric character and only one decimal period marker (e.g., $1,234.56 should be entered as 1234.56). Can have up to 5 numeric characters following the decimal period marker (e.g., 1234.56789). Amount must be greater than zero (i.e., at least .01). Amount string `json:"amount,omitempty"` } diff --git a/client/model_remittance_beneficiary.go b/client/model_remittance_beneficiary.go index 711d4601..07eaa49a 100644 --- a/client/model_remittance_beneficiary.go +++ b/client/model_remittance_beneficiary.go @@ -10,15 +10,15 @@ package openapi type RemittanceBeneficiary struct { - // IdentificationType * `OI` - Organization ID * `PI` - Private ID + // IdentificationType * `OI` - Organization ID * `PI` - Private ID IdentificationType string `json:"identificationType,omitempty"` - // IdentificationCode Organization Identification Codes * `BANK` - Bank Party Identification * `CUST` - Customer Number * `DUNS` - Data Universal Number System (Dun & Bradstreet) * `EMPL` - Employer Identification Number * `GS1G` - Global Location Number * `PROP` - Proprietary Identification Number * `SWBB` - SWIFT BIC or BEI * `TXID` - Tax Identification Number Private Identification Codes * `ARNU` - Alien Registration Number * `CCPT` - Passport Number * `CUST` - Customer Number * `DPOB` - Date & Place of Birth * `DRLC` - Driver’s License Number * `EMPL` - Employee Identification Number * `NIDN` - National Identity Number * `PROP` - Proprietary Identification Number * `SOSE` - Social Security Number * `TXID` - Tax Identification Number + // IdentificationCode Organization Identification Codes * `BANK` - Bank Party Identification * `CUST` - Customer Number * `DUNS` - Data Universal Number System (Dun & Bradstreet) * `EMPL` - Employer Identification Number * `GS1G` - Global Location Number * `PROP` - Proprietary Identification Number * `SWBB` - SWIFT BIC or BEI * `TXID` - Tax Identification Number Private Identification Codes * `ARNU` - Alien Registration Number * `CCPT` - Passport Number * `CUST` - Customer Number * `DPOB` - Date & Place of Birth * `DRLC` - Driver’s License Number * `EMPL` - Employee Identification Number * `NIDN` - National Identity Number * `PROP` - Proprietary Identification Number * `SOSE` - Social Security Number * `TXID` - Tax Identification Number IdentificationCode string `json:"identificationCode,omitempty"` // IdentificationNumber IdentificationNumber string `json:"identificationNumber,omitempty"` // IdentificationNumberIssuer IdentificationNumberIssuer string `json:"identificationNumberIssuer,omitempty"` // DateBirthPlace - DateBirthPlace string `json:"dateBirthPlace,omitempty"` + DateBirthPlace string `json:"dateBirthPlace,omitempty"` RemittanceData RemittanceData `json:"remittanceData,omitempty"` } diff --git a/client/model_remittance_data.go b/client/model_remittance_data.go index 1e4cac90..ee35102a 100644 --- a/client/model_remittance_data.go +++ b/client/model_remittance_data.go @@ -12,7 +12,7 @@ package openapi type RemittanceData struct { // Name Name string `json:"name,omitempty"` - // AddressType * `ADDR` - Complete Postal Address * `BIZZ` - Business Address * `DLVY` - Delivery Address * `HOME` - Home Address * `MLTO` - Mail Address * `PBOX` - Post Office Box + // AddressType * `ADDR` - Complete Postal Address * `BIZZ` - Business Address * `DLVY` - Delivery Address * `HOME` - Home Address * `MLTO` - Mail Address * `PBOX` - Post Office Box AddressType string `json:"addressType,omitempty"` // Department Department string `json:"department,omitempty"` diff --git a/client/model_remittance_originator.go b/client/model_remittance_originator.go index 2ea555fb..ea768e80 100644 --- a/client/model_remittance_originator.go +++ b/client/model_remittance_originator.go @@ -11,16 +11,16 @@ package openapi // RemittanceOriginator type RemittanceOriginator struct { - // Identification Type * `OI` - Organization ID * `PI` - Private ID + // Identification Type * `OI` - Organization ID * `PI` - Private ID IdentificationType string `json:"identificationType,omitempty"` - // IdentificationCode Organization Identification Codes * `BANK` - Bank Party Identification * `CUST` - Customer Number * `DUNS` - Data Universal Number System (Dun & Bradstreet) * `EMPL` - Employer Identification Number * `GS1G` - Global Location Number * `PROP` - Proprietary Identification Number * `SWBB` - SWIFT BIC or BEI * `TXID` - Tax Identification Number Private Identification Codes * `ARNU` - Alien Registration Number * `CCPT` - Passport Number * `CUST` - Customer Number * `DPOB` - Date & Place of Birth * `DRLC` - Driver’s License Number * `EMPL` - Employee Identification Number * `NIDN` - National Identity Number * `PROP` - Proprietary Identification Number * `SOSE` - Social Security Number * `TXID` - Tax Identification Number + // IdentificationCode Organization Identification Codes * `BANK` - Bank Party Identification * `CUST` - Customer Number * `DUNS` - Data Universal Number System (Dun & Bradstreet) * `EMPL` - Employer Identification Number * `GS1G` - Global Location Number * `PROP` - Proprietary Identification Number * `SWBB` - SWIFT BIC or BEI * `TXID` - Tax Identification Number Private Identification Codes * `ARNU` - Alien Registration Number * `CCPT` - Passport Number * `CUST` - Customer Number * `DPOB` - Date & Place of Birth * `DRLC` - Driver’s License Number * `EMPL` - Employee Identification Number * `NIDN` - National Identity Number * `PROP` - Proprietary Identification Number * `SOSE` - Social Security Number * `TXID` - Tax Identification Number IdentificationCode string `json:"identificationCode,omitempty"` // IdentificationNumber IdentificationNumber string `json:"identificationNumber,omitempty"` // IdentificationNumberIssuer IdentificationNumberIssuer string `json:"identificationNumberIssuer,omitempty"` // DateBirthPlace - DateBirthPlace string `json:"dateBirthPlace,omitempty"` + DateBirthPlace string `json:"dateBirthPlace,omitempty"` RemittanceData RemittanceData `json:"remittanceData,omitempty"` // CountryOfResidence CountryOfResidence string `json:"countryOfResidence,omitempty"` diff --git a/client/model_secondary_remittance_document.go b/client/model_secondary_remittance_document.go index 465394db..1c0311e5 100644 --- a/client/model_secondary_remittance_document.go +++ b/client/model_secondary_remittance_document.go @@ -11,7 +11,7 @@ package openapi // SecondaryRemittanceDocument type SecondaryRemittanceDocument struct { - // Document Type Code * `AROI` - Accounts Receivable Open Item * `DISP` - Dispatch Advice * `FXDR` - Foreign Exchange Deal Reference * `PROP` - Proprietary Document Type PUOR Purchase Order * `RADM` - Remittance Advice Message * `RPIN` - Related Payment Instruction * `SCOR1` - Structured Communication Reference VCHR Voucher + // Document Type Code * `AROI` - Accounts Receivable Open Item * `DISP` - Dispatch Advice * `FXDR` - Foreign Exchange Deal Reference * `PROP` - Proprietary Document Type PUOR Purchase Order * `RADM` - Remittance Advice Message * `RPIN` - Related Payment Instruction * `SCOR1` - Structured Communication Reference VCHR Voucher DocumentTypeCode string `json:"documentTypeCode,omitempty"` // proprietaryDocumentTypeCode ProprietaryDocumentTypeCode string `json:"proprietaryDocumentTypeCode,omitempty"` diff --git a/client/model_sender_supplied.go b/client/model_sender_supplied.go index 5dbe4d2c..2466fcf7 100644 --- a/client/model_sender_supplied.go +++ b/client/model_sender_supplied.go @@ -11,12 +11,12 @@ package openapi // SenderSupplied type SenderSupplied struct { - // FormatVersion 30 + // FormatVersion 30 FormatVersion string `json:"formatVersion"` // UserRequestCorrelation UserRequestCorrelation string `json:"userRequestCorrelation"` - // Identifies if test or production. * `T` - Test * `P` - Production + // Identifies if test or production. * `T` - Test * `P` - Production TestProductionCode string `json:"testProductionCode"` - // MessageDuplicationCode * ` ` - Original Message * `R` - Retrieval of an original message * `P` - Resend + // MessageDuplicationCode * ` ` - Original Message * `R` - Retrieval of an original message * `P` - Resend MessageDuplicationCode string `json:"messageDuplicationCode"` } diff --git a/client/model_type_sub_type.go b/client/model_type_sub_type.go index 24d40afa..0ab6a6b6 100644 --- a/client/model_type_sub_type.go +++ b/client/model_type_sub_type.go @@ -11,8 +11,8 @@ package openapi // TypeSubtype is the type and sub type codes type TypeSubType struct { - // TypeCode: * `10` - Funds Transfer - A funds transfer in which the sender and/or receiver may be a bank or a third party (i.e., customer of a bank). * `15` - Foreign Transfer - A funds transfer to or from a foreign central bank or government or international organization with an account at the Federal Reserve Bank of New York. * `16` - Settlement Transfer - A funds transfer between Fedwire Funds Service participants. + // TypeCode: * `10` - Funds Transfer - A funds transfer in which the sender and/or receiver may be a bank or a third party (i.e., customer of a bank). * `15` - Foreign Transfer - A funds transfer to or from a foreign central bank or government or international organization with an account at the Federal Reserve Bank of New York. * `16` - Settlement Transfer - A funds transfer between Fedwire Funds Service participants. TypeCode string `json:"typeCode"` - // SubTypeCode: * `00` - Basic Funds Transfer - A basic value funds transfer. * `01` - Request for Reversal - A non-value request for reversal of a funds transfer originated on the current business day. * `02` - Reversal of Transfer - A value reversal of a funds transfer received on the current business day. May be used in response to a subtype code ‘01’ Request for Reversal. * `07` - Request for Reversal of a Prior Day Transfer - A non-value request for a reversal of a funds transfer originated on a prior business day. * `08` - Reversal of a Prior Day Transfer - A value reversal of a funds transfer received on a prior business day. May be used in response to a subtype code ‘07’ Request for Reversal of a Prior Day Transfer. * `31` - Request for Credit (Drawdown) - A non-value request for the receiver to send a funds transfer to a designated party. * `32` - Funds Transfer Honoring a Request for Credit (Drawdown) - A value funds transfer honoring a subtype 31 request for credit. * `33` -Refusal to Honor a Request for Credit (Drawdown) - A non-value message indicating refusal to honor a subtype 31 request for credit. * `90` - Service Message - A non-value message used to communicate questions and information that is not covered by a specific subtype. + // SubTypeCode: * `00` - Basic Funds Transfer - A basic value funds transfer. * `01` - Request for Reversal - A non-value request for reversal of a funds transfer originated on the current business day. * `02` - Reversal of Transfer - A value reversal of a funds transfer received on the current business day. May be used in response to a subtype code ‘01’ Request for Reversal. * `07` - Request for Reversal of a Prior Day Transfer - A non-value request for a reversal of a funds transfer originated on a prior business day. * `08` - Reversal of a Prior Day Transfer - A value reversal of a funds transfer received on a prior business day. May be used in response to a subtype code ‘07’ Request for Reversal of a Prior Day Transfer. * `31` - Request for Credit (Drawdown) - A non-value request for the receiver to send a funds transfer to a designated party. * `32` - Funds Transfer Honoring a Request for Credit (Drawdown) - A value funds transfer honoring a subtype 31 request for credit. * `33` -Refusal to Honor a Request for Credit (Drawdown) - A non-value message indicating refusal to honor a subtype 31 request for credit. * `90` - Service Message - A non-value message used to communicate questions and information that is not covered by a specific subtype. SubTypeCode string `json:"subTypeCode"` } diff --git a/client/model_unstructured_addenda.go b/client/model_unstructured_addenda.go index df2b4c32..b9115c5f 100644 --- a/client/model_unstructured_addenda.go +++ b/client/model_unstructured_addenda.go @@ -10,7 +10,7 @@ package openapi type UnstructuredAddenda struct { - // AddendaLength Addenda Length must be numeric, padded with leading zeros if less than four characters and must equal length of content in Addenda Information (e.g., if content of Addenda Information is 987 characters, Addenda Length must be 0987). + // AddendaLength Addenda Length must be numeric, padded with leading zeros if less than four characters and must equal length of content in Addenda Information (e.g., if content of Addenda Information is 987 characters, Addenda Length must be 0987). AddendaLength string `json:"addendaLength,omitempty"` // Addenda Addenda string `json:"addenda,omitempty"` diff --git a/cmd/server/files.go b/cmd/server/files.go index 46fd2aa0..2754e802 100644 --- a/cmd/server/files.go +++ b/cmd/server/files.go @@ -42,9 +42,7 @@ func addFileRoutes(logger log.Logger, r *mux.Router, repo WireFileRepository) { r.Methods("DELETE").Path("/files/{fileId}").HandlerFunc(deleteFile(logger, repo)) r.Methods("GET").Path("/files/{fileId}/contents").HandlerFunc(getFileContents(logger, repo)) r.Methods("GET").Path("/files/{fileId}/validate").HandlerFunc(validateFile(logger, repo)) - r.Methods("POST").Path("/files/{fileId}/FEDWireMessage").HandlerFunc(addFEDWireMessageToFile(logger, repo)) - //r.Methods("DELETE").Path("/files/{fileId}/cashLetters/{cashLetterId}").HandlerFunc(removeCashLetterFromFile(logger, repo))*/ } func getFileId(w http.ResponseWriter, r *http.Request) string { diff --git a/cmd/server/files_test.go b/cmd/server/files_test.go index a72ccf78..b9d35c65 100644 --- a/cmd/server/files_test.go +++ b/cmd/server/files_test.go @@ -273,7 +273,7 @@ func TestFiles__validateFile(t *testing.T) { } } -/*func TestFiles__addFEDWireMessageToFile(t *testing.T) { +func TestFiles__addFEDWireMessageToFile(t *testing.T) { f, err := readFile("fedWireMessage-NoMessage.txt") if err != nil { t.Fatal(err) @@ -319,7 +319,7 @@ func TestFiles__validateFile(t *testing.T) { if w.Code != http.StatusBadRequest { t.Errorf("bogus HTTP status: %d: %v", w.Code, w.Body.String()) } -}*/ +} /*func TestFiles__removeFEDWireMessageFromFile(t *testing.T) { f, err := readFile("fedWireMessage-CustomerTransfer.txt") diff --git a/openapi.yaml b/openapi.yaml index 83c5def5..4087568f 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -276,11 +276,11 @@ paths: $ref: '#/components/schemas/File' '400': description: Validation failed. Check response for errors - /files/{file_id}/FEDWireMessage/{FEDWireMessage_id}: - get: - tags: ['Wire Files'] - summary: Get a specific FEDWireMessage on a File - operationId: getFEDWireMessageFromFile + /files/{file_id}/FEDWireMessage: + post: + tags: ['FEDWireMessage File'] + summary: Add FEDWireMessage to File + operationId: addFEDWireMessageToFile security: - bearerAuth: [] - cookieAuth: [] @@ -291,41 +291,11 @@ paths: example: rs4f9915 schema: type: string - - name: file_id - in: path - description: File ID - required: true - schema: - type: string - example: 3f2d23ee214 - - name: FEDWireMessage_id - in: path - description: FEDWireMessage ID - required: true - schema: - type: string - example: 45758063 - responses: - '200': - description: FEDWireMessage object - content: - application/json: - schema: - $ref: '#/components/schemas/FEDWireMessage' - '404': - description: FEDWireMessage or File not found - delete: - tags: ['Wire Files'] - summary: Delete a FEDWireMessage from a File - operationId: deleteFEDWireMessageFromFile - security: - - bearerAuth: [] - - cookieAuth: [] - parameters: - - name: X-Request-Id + - name: X-Idempotency-Key in: header - description: Optional Request ID allows application developer to trace requests through the systems logs - example: rs4f9915 + description: Idempotent key in the header which expires after 24 hours. These strings should contain enough entropy for to not collide with each other in your requests. + example: a4f88150 + required: false schema: type: string - name: file_id @@ -335,18 +305,15 @@ paths: schema: type: string example: 3f2d23ee214 - - name: FEDWireMessage_id - in: path - description: FEDWireMessage ID - required: true - schema: - type: string - example: 45758063 + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/FEDWireMessage' responses: '200': - description: FEDWireMessage deleted - '404': - description: FEDWireMessage or File not found + description: FEDWireMessage added to File components: schemas: