class MooMoo::Provisioning
Public Instance Methods
Cancels a Trust Service order
# File lib/moo_moo/services/provisioning.rb, line 6 register_service :cancel_order, :trust_service
Cancels orders with a status of pending or declined.
www.opensrs.com/docs/apidomains/cancel_pending_orders.htm
# File lib/moo_moo/services/provisioning.rb, line 12 register_service :cancel_pending_orders, :order
Changes information associated with a domain, such as contact info. The action request message is different depending on the type of modification being made, and is shown separately for each type.
www.opensrs.com/docs/apidomains/modify_domain.htm
# File lib/moo_moo/services/provisioning.rb, line 20 register_service :modify, :domain
Processes or cancels pending orders; also applicable to any order that is declined. The order is cancelled and a new order is created. Can also be used to process cancelled orders, provided the cancelled order was a new order or a transfer.
www.opensrs.com/docs/apidomains/process_pending.htm
# File lib/moo_moo/services/provisioning.rb, line 28 register_service :process_pending, :domain
Submits a new registration request or transfer order
# File lib/moo_moo/services/provisioning.rb, line 60 register_service :register_trust_service, :trust_service
Renews a domain and allows you to set the auto-renewal flag on a domain.
www.opensrs.com/docs/apidomains/renew_domain.htm
# File lib/moo_moo/services/provisioning.rb, line 34 register_service :renew, :domain
Removes the domain at the registry. Use this command to request a refund for a domain purchase. This call can refund/revoke only one domain at the time.
www.opensrs.com/docs/apidomains/revoke_domain.htm
# File lib/moo_moo/services/provisioning.rb, line 41 register_service :revoke, :domain
Submits a new domain registration or transfer order that obeys the Reseller's 'process immediately' flag setting.
www.opensrs.com/docs/apidomains/sw_register.htm Note: Requirements vary depending on TLD
# File lib/moo_moo/services/provisioning.rb, line 56 register_service :sw_register, :domain
Updates contact information for a domain using modify.
-
:domain
- the domain to update for. E.g.: “domain1.com” -
:attributes
- a contact attributes hash like:{ type: "type", # admin, billing, etc first_name: "first_name", last_name: "last_name" ... other attributes ... }
In case of errors, an errors array like this will be returned:
["Error1", "Error2"]
# File lib/moo_moo/services/provisioning.rb, line 77 def update_contact(domain, contact_attributes) contact_set = { contact_attributes[:type] => contact_attributes } # Removes the type key from contact_attributes contact_set[contact_attributes[:type]].delete(:type) response = api_modify(params_with_domain(domain).merge({ :attributes => { :affect_domains => "0", :data => "contact_info", :contact_set => contact_set } })) if successful? response else attributes["details"][domain]["response_text"].split("\n") end end
Submits a domain-contact information update to the OpenSRS system. Each contact object is submitted as a whole to OpenSRS, and changes are parsed against the existing information.
www.opensrs.com/docs/apidomains/update_contacts.htm
# File lib/moo_moo/services/provisioning.rb, line 48 register_service :update_contacts, :domain
Private Instance Methods
# File lib/moo_moo/services/provisioning.rb, line 102 def params_with_domain(domain) { :domain => domain } end