Sha256: 47ac037f3f0c5f48d15fc46b1e02be644f02dcf312219a1d8e9d239140a86f68

Contents?: true

Size: 488 Bytes

Versions: 7

Compression:

Stored size: 488 Bytes

Contents

module Zype
  # Read more at https://docs.zype.com/v1.0/reference#consumers
  #
  # @since 0.15.0
  class Consumers < Zype::BaseModel
    # Initiate consumer forgot password flow.
    # Consumer will receive forgot password email.
    #
    # @param email [String] email of the consumer
    # @return [Hash] the consumer returned from the API
    def forgot_password(email:)
      client.execute(method: :put, path: "/#{path}/forgot_password", params: { email: email })
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
zype-0.20.0 lib/zype/models/consumers.rb
zype-0.19.0 lib/zype/models/consumers.rb
zype-0.18.0 lib/zype/models/consumers.rb
zype-0.17.0 lib/zype/models/consumers.rb
zype-0.16.1 lib/zype/models/consumers.rb
zype-0.16.0 lib/zype/models/consumers.rb
zype-0.15.0 lib/zype/models/consumers.rb