Module: AvaTax::Client::DomainControlVerification

Defined in:
lib/avatax/client/domaincontrolverification.rb

Instance Method Summary collapse

Instance Method Details

#create_dcv(model) ⇒ Object

Create Domain control verification

Swagger Name: AvaTaxClient

Parameters:

  • model (Object)

Returns:

  • (Object)


12
13
# File 'lib/avatax/client/domaincontrolverification.rb', line 12

def create_dcv(model)        path = "/api/v2/domain-control-verifications"
post(path, model, {}, AvaTax::VERSION)      end

#filter_dcv(options = {}) ⇒ DcvViewModel[]

Get domain control verifications by logged in user/domain name.

Swagger Name: AvaTaxClient

Parameters:

  • filter (String)

    A filter statement to identify specific records to retrieve. For more information on filtering, see Filtering in REST.
    Not filterable: Id, Context, Token, Status, EmailId

Returns:

  • (DcvViewModel[])


21
22
# File 'lib/avatax/client/domaincontrolverification.rb', line 21

def filter_dcv(options={})        path = "/api/v2/domain-control-verifications"
get(path, options, AvaTax::VERSION)      end

#get_dcv_by_id(domainControlVerificationId) ⇒ Object

Get domain control verification by domainControlVerificationId

Swagger Name: AvaTaxClient

Parameters:

  • domainControlVerificationId (String)

Returns:

  • (Object)


30
31
# File 'lib/avatax/client/domaincontrolverification.rb', line 30

def get_dcv_by_id(domainControlVerificationId)        path = "/api/v2/domain-control-verifications/#{domainControlVerificationId}"
get(path, {}, AvaTax::VERSION)      end