Skip to content

Commit

Permalink
client: regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Apr 19, 2019
1 parent ae9b35a commit f18dc86
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
24 changes: 12 additions & 12 deletions client/api_fed.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down
20 changes: 10 additions & 10 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down
8 changes: 4 additions & 4 deletions client/model_ach_participant.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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"`
Expand Down
8 changes: 4 additions & 4 deletions client/model_wire_participant.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

0 comments on commit f18dc86

Please sign in to comment.