lib/pbshipping/address.rb
#
# ADDRESS VALIDATION
# API: POST /addresses/verify
# API signature: post/addresses/verify
#
# Verify and cleanse any postal address within the United States. 
# This will ensure that packages are rated accurately and the 
# shipments arrive at their final destination on time.
#
# By default, the returned result would overwrite the current state 
# of the object. To avoid overwriting, set the input argument 
# overwrite to False and a copy of the result would be generated and
# returned instead      
#
ADDRESS VALIDATION
API: POST /addresses/verify
API signature: post/addresses/verify

Verify and cleanse any postal address within the United States.
This will ensure that packages are rated accurately and the
shipments arrive at their final destination on time.

By default, the returned result would overwrite the current state
of the object. To avoid overwriting, set the input argument
overwrite to False and a copy of the result would be generated and
returned instead
ADDRESS VALIDATION API : POST / addresses / verify API signature : post / addresses / verify Verify and cleanse any postal address within the United States . This will ensure that packages are rated accurately and the shipments arrive at their final destination on time . By default the returned result would overwrite the current state of the object . To avoid overwriting set the input argument overwrite to False and a copy of the result would be generated and returned instead
def verify(auth_obj, minimalAddressValidation=nil, overwrite=true)
      if minimalAddressValidation == nil
        hdrs = {"minimalAddressValidation" => false}
      else
        hdrs = {"minimalAddressValidation" => minimalAddressValidation}
      end
      api_sig = "post/address/verify"
      api_version = PBShipping::get_api_version(api_sig)
      api_path = "/addresses/verify"
      json_resp = PBShipping::api_request(
        auth_obj, :post, api_version, api_path, hdrs, {}, self)
      if overwrite == true 
        self.update(json_resp)
        self
      else  
        Address.new(json_resp)
      end  
    end
def verify ( auth_obj , minimalAddressValidation = nil , overwrite = true ) if minimalAddressValidation == nil hdrs = { "minimalAddressValidation" => false } else hdrs = { "minimalAddressValidation" => minimalAddressValidation } end api_sig = "post/address/verify" api_version = PBShipping :: get_api_version ( api_sig ) api_path = "/addresses/verify" json_resp = PBShipping :: api_request ( auth_obj , :post , api_version , api_path , hdrs , { } , self ) if overwrite == true self . update ( json_resp ) self else Address . new ( json_resp ) end end
ADDRESS VALIDATION
API: POST /addresses/verify
API signature: post/addresses/verify
ADDRESS VALIDATION API : POST / addresses / verify API signature : post / addresses / verify
auth_obj
<not_specific>
minimalAddressValidation
<not_specific>
overwrite
<not_specific>