Skip to content

Unable to retrieve letter when it includes certified tracking events #245

@palu3492

Description

@palu3492
include Lob
config = Configuration.new
config.username = api_key
api_client = ApiClient.new(config)
letter_api = LettersApi.new(api_client)
letter_api.get('ltr_1234567890')

invalid value for "type", must be one of ["normal"]. (ArgumentError)
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."

Reviewing the library code, I'm guessing this issue stems from lib/lob/models/letter.rb:184

:'tracking_events' => :'Array<TrackingEventNormal>',

:'tracking_events' => :'Array<TrackingEventNormal>',

It's set to TrackingEventNormal but I assume I need TrackingEventCertified

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions