From f18dc86567fe69b6b5996ceec8010e111b234fd4 Mon Sep 17 00:00:00 2001 From: Adam Shannon Date: Fri, 19 Apr 2019 16:30:31 -0500 Subject: [PATCH] client: regenerate --- client/api_fed.go | 24 ++++++++++++------------ client/client.go | 20 ++++++++++---------- client/model_ach_participant.go | 8 ++++---- client/model_wire_participant.go | 8 ++++---- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/client/api_fed.go b/client/api_fed.go index e83333fd..c2d5ddf7 100644 --- a/client/api_fed.go +++ b/client/api_fed.go @@ -11,11 +11,11 @@ package openapi import ( "context" + "github.com/antihax/optional" "io/ioutil" "net/http" "net/url" "strings" - "github.com/antihax/optional" ) // Linger please @@ -104,13 +104,13 @@ FEDApiService Search FEDACH names and metadata */ type SearchFEDACHOpts struct { - XRequestId optional.String - Name optional.String + XRequestId optional.String + Name optional.String RoutingNumber optional.String - State optional.String - City optional.String - PostalCode optional.String - Limit optional.Int32 + State optional.String + City optional.String + PostalCode optional.String + Limit optional.Int32 } func (a *FEDApiService) SearchFEDACH(ctx context.Context, localVarOptionals *SearchFEDACHOpts) (AchDictionary, *http.Response, error) { @@ -238,12 +238,12 @@ FEDApiService Search FEDWIRE names and metadata */ type SearchFEDWIREOpts struct { - XRequestId optional.String - Name optional.String + XRequestId optional.String + Name optional.String RoutingNumber optional.String - State optional.String - City optional.String - Limit optional.Int32 + State optional.String + City optional.String + Limit optional.Int32 } func (a *FEDApiService) SearchFEDWIRE(ctx context.Context, localVarOptionals *SearchFEDWIREOpts) (WireDictionary, *http.Response, error) { diff --git a/client/client.go b/client/client.go index b2a957ac..5b389f76 100644 --- a/client/client.go +++ b/client/client.go @@ -313,17 +313,17 @@ func (c *APIClient) prepareRequest( } func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { - if strings.Contains(contentType, "application/xml") { - if err = xml.Unmarshal(b, v); err != nil { - return err - } - return nil - } else if strings.Contains(contentType, "application/json") { - if err = json.Unmarshal(b, v); err != nil { - return err - } - return nil + if strings.Contains(contentType, "application/xml") { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } else if strings.Contains(contentType, "application/json") { + if err = json.Unmarshal(b, v); err != nil { + return err } + return nil + } return errors.New("undefined response type") } diff --git a/client/model_ach_participant.go b/client/model_ach_participant.go index 2c3b924d..d3afcf17 100644 --- a/client/model_ach_participant.go +++ b/client/model_ach_participant.go @@ -13,13 +13,13 @@ package openapi type AchParticipant struct { // The institution's routing number RoutingNumber string `json:"routingNumber,omitempty"` - // Main/Head Office or Branch * `O` - Main * `B` - Branch + // Main/Head Office or Branch * `O` - Main * `B` - Branch OfficeCode string `json:"officeCode,omitempty"` // Servicing Fed's main office routing number ServicingFRBNumber string `json:"servicingFRBNumber,omitempty"` - // The code indicating the ABA number to be used to route or send ACH items to the RDFI * `0` - Institution is a Federal Reserve Bank * `1` - Send items to customer routing number * `2` - Send items to customer using new routing number field + // The code indicating the ABA number to be used to route or send ACH items to the RDFI * `0` - Institution is a Federal Reserve Bank * `1` - Send items to customer routing number * `2` - Send items to customer using new routing number field RecordTypeCode string `json:"recordTypeCode,omitempty"` - // Date of last revision * YYYYMMDD * Blank + // Date of last revision * YYYYMMDD * Blank Revised string `json:"revised,omitempty"` // Financial Institution's new routing number resulting from a merger or renumber NewRoutingNumber string `json:"newRoutingNumber,omitempty"` @@ -29,7 +29,7 @@ type AchParticipant struct { AchLocation []AchLocation `json:"achLocation,omitempty"` // The Financial Institution's phone number PhoneNumber string `json:"phoneNumber,omitempty"` - // Code is based on the customers receiver code * `1` - Receives Gov/Comm + // Code is based on the customers receiver code * `1` - Receives Gov/Comm StatusCode string `json:"statusCode,omitempty"` // Code is current view * `1` - Current view ViewCode string `json:"viewCode,omitempty"` diff --git a/client/model_wire_participant.go b/client/model_wire_participant.go index 58a156e6..e51efb30 100644 --- a/client/model_wire_participant.go +++ b/client/model_wire_participant.go @@ -19,12 +19,12 @@ type WireParticipant struct { CustomerName string `json:"customerName,omitempty"` // FEDWIRE Delivery Address WireLocation []WireLocation `json:"wireLocation,omitempty"` - // Designates funds transfer status * `Y` - Eligible * `N` - Ineligible + // Designates funds transfer status * `Y` - Eligible * `N` - Ineligible FundsTransferStatus string `json:"fundsTransferStatus,omitempty"` - // Designates funds settlement only status * `S` - Settlement-Only + // Designates funds settlement only status * `S` - Settlement-Only FundsSettlementOnlyStatus string `json:"fundsSettlementOnlyStatus,omitempty"` - // Designates book entry securities transfer status * `Y` - Eligible * `N` - Ineligible + // Designates book entry securities transfer status * `Y` - Eligible * `N` - Ineligible BookEntrySecuritiesTransferStatus string `json:"bookEntrySecuritiesTransferStatus,omitempty"` - // Date of last revision * YYYYMMDD * Blank + // Date of last revision * YYYYMMDD * Blank Date string `json:"date,omitempty"` }