dnsimple 11.0.0 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +10 -5
- data/.github/workflows/release.yml +44 -13
- data/.github/workflows/sync-test-fixtures.yml +1 -1
- data/.rubocop.yml +4 -1
- data/.rubocop_dnsimple.yml +14 -42
- data/.rubocop_todo.yml +4 -9
- data/CHANGELOG.md +287 -181
- data/CONTRIBUTING.md +6 -40
- data/Gemfile +1 -1
- data/LICENSE.txt +1 -1
- data/README.md +49 -40
- data/RELEASING.md +67 -0
- data/dnsimple.gemspec +1 -1
- data/lib/dnsimple/client/accounts.rb +1 -3
- data/lib/dnsimple/client/billing.rb +2 -4
- data/lib/dnsimple/client/certificates.rb +0 -2
- data/lib/dnsimple/client/clients.rb +2 -40
- data/lib/dnsimple/client/contacts.rb +17 -19
- data/lib/dnsimple/client/dns_analytics.rb +2 -4
- data/lib/dnsimple/client/domains.rb +13 -15
- data/lib/dnsimple/client/domains_delegation_signer_records.rb +18 -20
- data/lib/dnsimple/client/domains_dnssec.rb +9 -11
- data/lib/dnsimple/client/domains_email_forwards.rb +18 -20
- data/lib/dnsimple/client/domains_pushes.rb +13 -15
- data/lib/dnsimple/client/identity.rb +4 -9
- data/lib/dnsimple/client/oauth.rb +1 -3
- data/lib/dnsimple/client/registrar.rb +45 -47
- data/lib/dnsimple/client/registrar_auto_renewal.rb +6 -8
- data/lib/dnsimple/client/registrar_delegation.rb +14 -16
- data/lib/dnsimple/client/registrar_registrant_changes.rb +14 -16
- data/lib/dnsimple/client/registrar_transfer_lock.rb +9 -11
- data/lib/dnsimple/client/registrar_whois_privacy.rb +6 -48
- data/lib/dnsimple/client/services.rb +4 -6
- data/lib/dnsimple/client/services_domains.rb +12 -14
- data/lib/dnsimple/client/templates.rb +17 -19
- data/lib/dnsimple/client/templates_domains.rb +4 -6
- data/lib/dnsimple/client/templates_records.rb +18 -20
- data/lib/dnsimple/client/tlds.rb +6 -8
- data/lib/dnsimple/client/vanity_name_servers.rb +0 -2
- data/lib/dnsimple/client/webhooks.rb +11 -13
- data/lib/dnsimple/client/zones.rb +16 -18
- data/lib/dnsimple/client/zones_distributions.rb +4 -6
- data/lib/dnsimple/client/zones_records.rb +57 -26
- data/lib/dnsimple/client.rb +22 -24
- data/lib/dnsimple/default.rb +0 -4
- data/lib/dnsimple/error.rb +0 -6
- data/lib/dnsimple/extra.rb +4 -6
- data/lib/dnsimple/options.rb +1 -7
- data/lib/dnsimple/response.rb +4 -13
- data/lib/dnsimple/struct/account.rb +0 -2
- data/lib/dnsimple/struct/certificate.rb +0 -2
- data/lib/dnsimple/struct/certificate_bundle.rb +0 -2
- data/lib/dnsimple/struct/certificate_purchase.rb +0 -2
- data/lib/dnsimple/struct/certificate_renewal.rb +0 -2
- data/lib/dnsimple/struct/charge.rb +4 -8
- data/lib/dnsimple/struct/collaborator.rb +0 -2
- data/lib/dnsimple/struct/contact.rb +0 -2
- data/lib/dnsimple/struct/delegation_signer_record.rb +0 -2
- data/lib/dnsimple/struct/dns_analytics.rb +0 -2
- data/lib/dnsimple/struct/dnssec.rb +0 -2
- data/lib/dnsimple/struct/domain.rb +0 -2
- data/lib/dnsimple/struct/domain_check.rb +0 -2
- data/lib/dnsimple/struct/domain_premium_price.rb +0 -2
- data/lib/dnsimple/struct/domain_price.rb +0 -2
- data/lib/dnsimple/struct/domain_push.rb +0 -2
- data/lib/dnsimple/struct/domain_registration.rb +0 -2
- data/lib/dnsimple/struct/domain_renewal.rb +0 -2
- data/lib/dnsimple/struct/domain_restore.rb +0 -2
- data/lib/dnsimple/struct/domain_transfer.rb +0 -2
- data/lib/dnsimple/struct/email_forward.rb +0 -2
- data/lib/dnsimple/struct/extended_attribute.rb +0 -4
- data/lib/dnsimple/struct/oauth_token.rb +0 -2
- data/lib/dnsimple/struct/registrant_change.rb +0 -2
- data/lib/dnsimple/struct/registrant_change_check.rb +0 -2
- data/lib/dnsimple/struct/service.rb +0 -4
- data/lib/dnsimple/struct/template.rb +0 -2
- data/lib/dnsimple/struct/template_record.rb +0 -2
- data/lib/dnsimple/struct/tld.rb +0 -2
- data/lib/dnsimple/struct/transfer_lock.rb +0 -2
- data/lib/dnsimple/struct/user.rb +0 -2
- data/lib/dnsimple/struct/vanity_name_server.rb +0 -2
- data/lib/dnsimple/struct/webhook.rb +0 -2
- data/lib/dnsimple/struct/whoami.rb +2 -4
- data/lib/dnsimple/struct/whois_privacy.rb +0 -2
- data/lib/dnsimple/struct/zone.rb +0 -2
- data/lib/dnsimple/struct/zone_distribution.rb +0 -2
- data/lib/dnsimple/struct/zone_file.rb +0 -2
- data/lib/dnsimple/struct/zone_record.rb +0 -2
- data/lib/dnsimple/struct/zone_record_id.rb +10 -0
- data/lib/dnsimple/struct/zone_records_batch_change.rb +16 -0
- data/lib/dnsimple/struct.rb +2 -3
- data/lib/dnsimple/version.rb +1 -3
- data/lib/dnsimple.rb +1 -3
- data/spec/dnsimple/client/client_service_spec.rb +12 -10
- data/spec/dnsimple/client/domains_delegation_signer_records_spec.rb +2 -2
- data/spec/dnsimple/client/oauth_spec.rb +6 -6
- data/spec/dnsimple/client/registrar_whois_privacy_spec.rb +0 -82
- data/spec/dnsimple/client/zones_records_spec.rb +95 -0
- data/spec/fixtures.http/acceptPush/success.http +15 -15
- data/spec/fixtures.http/accounts/success-account.http +20 -20
- data/spec/fixtures.http/accounts/success-user.http +21 -21
- data/spec/fixtures.http/activateZoneService/success.http +16 -16
- data/spec/fixtures.http/appliedServices/success.http +19 -19
- data/spec/fixtures.http/applyService/success.http +15 -15
- data/spec/fixtures.http/applyTemplate/success.http +13 -13
- data/spec/fixtures.http/authorizeDomainTransferOut/success.http +13 -13
- data/spec/fixtures.http/badgateway.http +5 -5
- data/spec/fixtures.http/batchChangeZoneRecords/error_400_create_validation_failed.http +16 -0
- data/spec/fixtures.http/batchChangeZoneRecords/error_400_delete_validation_failed.http +15 -0
- data/spec/fixtures.http/batchChangeZoneRecords/error_400_update_validation_failed.http +15 -0
- data/spec/fixtures.http/batchChangeZoneRecords/success.http +16 -0
- data/spec/fixtures.http/cancelDomainTransfer/success.http +17 -17
- data/spec/fixtures.http/changeDomainDelegation/success.http +15 -15
- data/spec/fixtures.http/changeDomainDelegationFromVanity/success.http +15 -15
- data/spec/fixtures.http/changeDomainDelegationToVanity/success.http +17 -17
- data/spec/fixtures.http/checkDomain/success.http +15 -15
- data/spec/fixtures.http/checkRegistrantChange/error-contactnotfound.http +3 -3
- data/spec/fixtures.http/checkRegistrantChange/error-domainnotfound.http +3 -3
- data/spec/fixtures.http/checkRegistrantChange/success.http +15 -15
- data/spec/fixtures.http/checkZoneDistribution/error.http +17 -17
- data/spec/fixtures.http/checkZoneDistribution/failure.http +17 -17
- data/spec/fixtures.http/checkZoneDistribution/success.http +17 -17
- data/spec/fixtures.http/checkZoneRecordDistribution/error.http +17 -17
- data/spec/fixtures.http/checkZoneRecordDistribution/failure.http +17 -17
- data/spec/fixtures.http/checkZoneRecordDistribution/success.http +17 -17
- data/spec/fixtures.http/createContact/created.http +16 -16
- data/spec/fixtures.http/createContact/error-validation-errors.http +15 -15
- data/spec/fixtures.http/createDelegationSignerRecord/created.http +17 -17
- data/spec/fixtures.http/createDelegationSignerRecord/validation-error.http +15 -15
- data/spec/fixtures.http/createDomain/created.http +19 -19
- data/spec/fixtures.http/createEmailForward/created.http +21 -21
- data/spec/fixtures.http/createPrimaryServer/created.http +20 -20
- data/spec/fixtures.http/createRegistrantChange/success.http +14 -14
- data/spec/fixtures.http/createSecondaryZone/created.http +20 -20
- data/spec/fixtures.http/createTemplate/created.http +15 -15
- data/spec/fixtures.http/createTemplateRecord/created.http +16 -16
- data/spec/fixtures.http/createWebhook/created.http +13 -13
- data/spec/fixtures.http/createZoneRecord/created-apex.http +13 -13
- data/spec/fixtures.http/createZoneRecord/created.http +13 -13
- data/spec/fixtures.http/deactivateZoneService/success.http +16 -16
- data/spec/fixtures.http/deleteContact/error-contact-in-use.http +15 -15
- data/spec/fixtures.http/deleteContact/success.http +13 -13
- data/spec/fixtures.http/deleteDelegationSignerRecord/success.http +15 -15
- data/spec/fixtures.http/deleteDomain/success.http +11 -11
- data/spec/fixtures.http/deleteEmailForward/success.http +18 -18
- data/spec/fixtures.http/deleteRegistrantChange/success.http +13 -13
- data/spec/fixtures.http/deleteRegistrantChange/success_async.http +3 -3
- data/spec/fixtures.http/deleteTemplate/success.http +13 -13
- data/spec/fixtures.http/deleteTemplateRecord/success.http +13 -13
- data/spec/fixtures.http/deleteWebhook/success.http +13 -13
- data/spec/fixtures.http/deleteZoneRecord/success.http +11 -11
- data/spec/fixtures.http/disableDnssec/not-enabled.http +15 -15
- data/spec/fixtures.http/disableDnssec/success.http +15 -15
- data/spec/fixtures.http/disableDomainAutoRenewal/success.http +13 -13
- data/spec/fixtures.http/disableDomainTransferLock/success.http +17 -17
- data/spec/fixtures.http/disableVanityNameServers/success.http +15 -15
- data/spec/fixtures.http/disableWhoisPrivacy/success.http +16 -16
- data/spec/fixtures.http/dnsAnalytics/success.http +17 -17
- data/spec/fixtures.http/downloadCertificate/success.http +19 -19
- data/spec/fixtures.http/enableDnssec/success.http +17 -17
- data/spec/fixtures.http/enableDomainAutoRenewal/success.http +13 -13
- data/spec/fixtures.http/enableDomainTransferLock/success.http +17 -17
- data/spec/fixtures.http/enableVanityNameServers/success.http +17 -17
- data/spec/fixtures.http/enableWhoisPrivacy/created.http +16 -16
- data/spec/fixtures.http/enableWhoisPrivacy/success.http +16 -16
- data/spec/fixtures.http/getCertificate/success.http +19 -19
- data/spec/fixtures.http/getCertificatePrivateKey/success.http +20 -20
- data/spec/fixtures.http/getContact/success.http +16 -16
- data/spec/fixtures.http/getDelegationSignerRecord/success.http +17 -17
- data/spec/fixtures.http/getDnssec/success.http +17 -17
- data/spec/fixtures.http/getDomain/success.http +19 -19
- data/spec/fixtures.http/getDomainDelegation/success-empty.http +15 -15
- data/spec/fixtures.http/getDomainDelegation/success.http +15 -15
- data/spec/fixtures.http/getDomainPrices/failure.http +18 -18
- data/spec/fixtures.http/getDomainPrices/success.http +21 -21
- data/spec/fixtures.http/getDomainRegistration/success.http +20 -20
- data/spec/fixtures.http/getDomainRenewal/success.http +20 -20
- data/spec/fixtures.http/getDomainRestore/success.http +22 -19
- data/spec/fixtures.http/getDomainTransfer/success.http +19 -19
- data/spec/fixtures.http/getDomainTransferLock/success.http +17 -17
- data/spec/fixtures.http/getEmailForward/success.http +21 -21
- data/spec/fixtures.http/getPrimaryServer/success.http +20 -20
- data/spec/fixtures.http/getRegistrantChange/success.http +15 -15
- data/spec/fixtures.http/getService/success.http +16 -16
- data/spec/fixtures.http/getTemplate/success.http +15 -15
- data/spec/fixtures.http/getTemplateRecord/success.http +16 -16
- data/spec/fixtures.http/getTld/success.http +20 -20
- data/spec/fixtures.http/getTldExtendedAttributes/success-attributes.http +15 -15
- data/spec/fixtures.http/getTldExtendedAttributes/success-noattributes.http +15 -15
- data/spec/fixtures.http/getTldExtendedAttributes/success.http +15 -15
- data/spec/fixtures.http/getWebhook/success.http +13 -13
- data/spec/fixtures.http/getZone/success.http +16 -16
- data/spec/fixtures.http/getZoneFile/success.http +17 -17
- data/spec/fixtures.http/getZoneRecord/success.http +17 -17
- data/spec/fixtures.http/initiatePush/success.http +17 -17
- data/spec/fixtures.http/issueLetsencryptCertificate/success.http +17 -17
- data/spec/fixtures.http/issueRenewalLetsencryptCertificate/success.http +17 -17
- data/spec/fixtures.http/linkPrimaryServer/success.http +20 -20
- data/spec/fixtures.http/listAccounts/success-account.http +20 -20
- data/spec/fixtures.http/listAccounts/success-user.http +20 -20
- data/spec/fixtures.http/listCertificates/success.http +19 -19
- data/spec/fixtures.http/listCharges/fail-400-bad-filter.http +9 -9
- data/spec/fixtures.http/listCharges/fail-403.http +9 -9
- data/spec/fixtures.http/listCharges/success.http +9 -9
- data/spec/fixtures.http/listContacts/success.http +16 -16
- data/spec/fixtures.http/listDelegationSignerRecords/success.http +17 -17
- data/spec/fixtures.http/listDomains/success.http +19 -19
- data/spec/fixtures.http/listEmailForwards/success.http +13 -13
- data/spec/fixtures.http/listPrimaryServers/success.http +20 -20
- data/spec/fixtures.http/listPushes/success.http +17 -17
- data/spec/fixtures.http/listRegistrantChanges/success.http +15 -15
- data/spec/fixtures.http/listServices/success.http +17 -17
- data/spec/fixtures.http/listTemplateRecords/success.http +16 -16
- data/spec/fixtures.http/listTemplates/success.http +15 -15
- data/spec/fixtures.http/listTlds/success.http +20 -20
- data/spec/fixtures.http/listWebhooks/success.http +13 -13
- data/spec/fixtures.http/listZoneRecords/success.http +17 -17
- data/spec/fixtures.http/listZones/success.http +16 -16
- data/spec/fixtures.http/method-not-allowed.http +8 -8
- data/spec/fixtures.http/notfound-certificate.http +12 -12
- data/spec/fixtures.http/notfound-contact.http +10 -10
- data/spec/fixtures.http/notfound-delegationSignerRecord.http +11 -0
- data/spec/fixtures.http/notfound-domain.http +8 -8
- data/spec/fixtures.http/notfound-domainpush.http +8 -8
- data/spec/fixtures.http/notfound-emailforward.http +8 -8
- data/spec/fixtures.http/notfound-record.http +10 -10
- data/spec/fixtures.http/notfound-template.http +10 -10
- data/spec/fixtures.http/notfound-webhook.http +8 -8
- data/spec/fixtures.http/notfound-whoisprivacy.http +10 -10
- data/spec/fixtures.http/notfound-zone.http +10 -10
- data/spec/fixtures.http/oauthAccessToken/error-invalid-request.http +12 -12
- data/spec/fixtures.http/oauthAccessToken/success.http +16 -16
- data/spec/fixtures.http/pages-1of3.http +12 -12
- data/spec/fixtures.http/pages-2of3.http +12 -12
- data/spec/fixtures.http/pages-3of3.http +12 -12
- data/spec/fixtures.http/purchaseLetsencryptCertificate/success.http +19 -19
- data/spec/fixtures.http/purchaseRenewalLetsencryptCertificate/success.http +19 -19
- data/spec/fixtures.http/registerDomain/error-extended-attributes.http +15 -15
- data/spec/fixtures.http/registerDomain/success.http +20 -20
- data/spec/fixtures.http/rejectPush/success.http +15 -15
- data/spec/fixtures.http/renewDomain/error-tooearly.http +14 -14
- data/spec/fixtures.http/renewDomain/success.http +20 -20
- data/spec/fixtures.http/response.http +12 -12
- data/spec/fixtures.http/restoreDomain/success.http +22 -19
- data/spec/fixtures.http/success-with-malformed-json.http +4 -4
- data/spec/fixtures.http/transferDomain/error-indnsimple.http +13 -13
- data/spec/fixtures.http/transferDomain/error-missing-authcode.http +13 -13
- data/spec/fixtures.http/transferDomain/success.http +20 -20
- data/spec/fixtures.http/unapplyService/success.http +15 -15
- data/spec/fixtures.http/unlinkPrimaryServer/success.http +20 -20
- data/spec/fixtures.http/updateContact/success.http +16 -16
- data/spec/fixtures.http/updateTemplate/success.http +15 -15
- data/spec/fixtures.http/updateZoneNsRecords/success.http +16 -16
- data/spec/fixtures.http/updateZoneRecord/success.http +17 -17
- data/spec/fixtures.http/validation-error.http +15 -15
- data/spec/fixtures.http/whoami/success-account.http +15 -15
- data/spec/fixtures.http/whoami/success-user.http +15 -15
- data/spec/fixtures.http/whoami/success.http +15 -15
- data/spec/support/helpers.rb +0 -2
- metadata +14 -14
- data/lib/dnsimple/struct/whois_privacy_renewal.rb +0 -30
- data/spec/fixtures.http/checkDomainPremiumPrice/error_400_not_a_premium_domain.http +0 -18
- data/spec/fixtures.http/checkDomainPremiumPrice/error_400_tld_not_supported.http +0 -18
- data/spec/fixtures.http/checkDomainPremiumPrice/success.http +0 -20
- data/spec/fixtures.http/getDomainPremiumPrice/failure.http +0 -15
- data/spec/fixtures.http/getDomainPremiumPrice/success.http +0 -20
- data/spec/fixtures.http/getWhoisPrivacy/success.http +0 -16
- data/spec/fixtures.http/notfound-delegationsignerrecord.http +0 -11
- data/spec/fixtures.http/renewWhoisPrivacy/success.http +0 -20
- data/spec/fixtures.http/renewWhoisPrivacy/whois-privacy-duplicated-order.http +0 -18
- data/spec/fixtures.http/renewWhoisPrivacy/whois-privacy-not-found.http +0 -18
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class Certificate < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The certificate ID in DNSimple.
|
|
8
7
|
attr_accessor :id
|
|
9
8
|
|
|
@@ -42,7 +41,6 @@ module Dnsimple
|
|
|
42
41
|
|
|
43
42
|
# @return [String] The timestamp when the certificate will expire.
|
|
44
43
|
attr_accessor :expires_at
|
|
45
|
-
|
|
46
44
|
end
|
|
47
45
|
end
|
|
48
46
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class CertificateBundle < Base
|
|
6
|
-
|
|
7
6
|
# @return [String] The certificate private key
|
|
8
7
|
attr_accessor :private_key
|
|
9
8
|
|
|
@@ -21,7 +20,6 @@ module Dnsimple
|
|
|
21
20
|
attr_accessor :chain
|
|
22
21
|
|
|
23
22
|
alias intermediate_certificates chain
|
|
24
|
-
|
|
25
23
|
end
|
|
26
24
|
end
|
|
27
25
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class CertificatePurchase < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The certificate purchase ID in DNSimple.
|
|
8
7
|
attr_accessor :id
|
|
9
8
|
|
|
@@ -21,7 +20,6 @@ module Dnsimple
|
|
|
21
20
|
|
|
22
21
|
# @return [String] When the certificate renewal was last updated in DNSimple.
|
|
23
22
|
attr_accessor :updated_at
|
|
24
|
-
|
|
25
23
|
end
|
|
26
24
|
end
|
|
27
25
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class CertificateRenewal < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The certificate renewal ID in DNSimple.
|
|
8
7
|
attr_accessor :id
|
|
9
8
|
|
|
@@ -24,7 +23,6 @@ module Dnsimple
|
|
|
24
23
|
|
|
25
24
|
# @return [String] When the certificate renewal was last updated in DNSimple.
|
|
26
25
|
attr_accessor :updated_at
|
|
27
|
-
|
|
28
26
|
end
|
|
29
27
|
end
|
|
30
28
|
end
|
|
@@ -5,9 +5,7 @@ require "bigdecimal"
|
|
|
5
5
|
module Dnsimple
|
|
6
6
|
module Struct
|
|
7
7
|
class Charge < Base
|
|
8
|
-
|
|
9
8
|
class ChargeItem < Base
|
|
10
|
-
|
|
11
9
|
# @return [String] The description of the charge item.
|
|
12
10
|
attr_accessor :description
|
|
13
11
|
|
|
@@ -25,12 +23,11 @@ module Dnsimple
|
|
|
25
23
|
|
|
26
24
|
# Converts amount to a Float and sets it.
|
|
27
25
|
#
|
|
28
|
-
# @param [String]
|
|
26
|
+
# @param amount [String]
|
|
29
27
|
# @return [void]
|
|
30
28
|
def amount=(amount)
|
|
31
29
|
@amount = BigDecimal(amount)
|
|
32
30
|
end
|
|
33
|
-
|
|
34
31
|
end
|
|
35
32
|
|
|
36
33
|
# @return [String] The reference number of the invoice.
|
|
@@ -58,7 +55,7 @@ module Dnsimple
|
|
|
58
55
|
|
|
59
56
|
# Converts items to an Array<Struct::Charge::ChargeItem> and sets it.
|
|
60
57
|
#
|
|
61
|
-
# @param [Array<Hash>]
|
|
58
|
+
# @param charge_items [Array<Hash>]
|
|
62
59
|
# @return [void]
|
|
63
60
|
def items=(charge_items)
|
|
64
61
|
@items = charge_items.map do |charge_item|
|
|
@@ -68,7 +65,7 @@ module Dnsimple
|
|
|
68
65
|
|
|
69
66
|
# Converts balance_amount to a Float and sets it.
|
|
70
67
|
#
|
|
71
|
-
# @param [String]
|
|
68
|
+
# @param balance_amount [String]
|
|
72
69
|
# @return [void]
|
|
73
70
|
def balance_amount=(balance_amount)
|
|
74
71
|
@balance_amount = BigDecimal(balance_amount)
|
|
@@ -76,12 +73,11 @@ module Dnsimple
|
|
|
76
73
|
|
|
77
74
|
# Converts total_amount to a Float and sets it.
|
|
78
75
|
#
|
|
79
|
-
# @param [String]
|
|
76
|
+
# @param total_amount [String]
|
|
80
77
|
# @return [void]
|
|
81
78
|
def total_amount=(total_amount)
|
|
82
79
|
@total_amount = BigDecimal(total_amount)
|
|
83
80
|
end
|
|
84
|
-
|
|
85
81
|
end
|
|
86
82
|
end
|
|
87
83
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class Collaborator < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The collaborator ID in DNSimple.
|
|
8
7
|
attr_accessor :id
|
|
9
8
|
|
|
@@ -30,7 +29,6 @@ module Dnsimple
|
|
|
30
29
|
|
|
31
30
|
# @return [String,NilClass] When the collaborator has accepted the invitation.
|
|
32
31
|
attr_accessor :accepted_at
|
|
33
|
-
|
|
34
32
|
end
|
|
35
33
|
end
|
|
36
34
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class Contact < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The contact ID in DNSimple.
|
|
8
7
|
attr_accessor :id
|
|
9
8
|
|
|
@@ -57,7 +56,6 @@ module Dnsimple
|
|
|
57
56
|
|
|
58
57
|
# @return [String] When the contact was last updated in DNSimple.
|
|
59
58
|
attr_accessor :updated_at
|
|
60
|
-
|
|
61
59
|
end
|
|
62
60
|
end
|
|
63
61
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class DelegationSignerRecord < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The ID of the delegation signer record in DNSimple.
|
|
8
7
|
attr_accessor :id
|
|
9
8
|
|
|
@@ -30,7 +29,6 @@ module Dnsimple
|
|
|
30
29
|
|
|
31
30
|
# @return [String] When the delegation signing record was last updated in DNSimple.
|
|
32
31
|
attr_accessor :updated_at
|
|
33
|
-
|
|
34
32
|
end
|
|
35
33
|
end
|
|
36
34
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class DnsAnalytics < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The recorded volume
|
|
8
7
|
attr_accessor :volume
|
|
9
8
|
|
|
@@ -12,7 +11,6 @@ module Dnsimple
|
|
|
12
11
|
|
|
13
12
|
# @return [String] The zone name
|
|
14
13
|
attr_accessor :zone_name
|
|
15
|
-
|
|
16
14
|
end
|
|
17
15
|
end
|
|
18
16
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class Domain < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The domain ID in DNSimple.
|
|
8
7
|
attr_accessor :id
|
|
9
8
|
|
|
@@ -36,7 +35,6 @@ module Dnsimple
|
|
|
36
35
|
|
|
37
36
|
# @return [String] When the domain was last updated in DNSimple.
|
|
38
37
|
attr_accessor :updated_at
|
|
39
|
-
|
|
40
38
|
end
|
|
41
39
|
end
|
|
42
40
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class DomainCheck < Base
|
|
6
|
-
|
|
7
6
|
# @return [String] The domain name that was checked.
|
|
8
7
|
attr_accessor :domain
|
|
9
8
|
|
|
@@ -12,7 +11,6 @@ module Dnsimple
|
|
|
12
11
|
|
|
13
12
|
# @return [Boolean] Whether the domain name is premium.
|
|
14
13
|
attr_accessor :premium
|
|
15
|
-
|
|
16
14
|
end
|
|
17
15
|
end
|
|
18
16
|
end
|
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class DomainPremiumPrice < Base
|
|
6
|
-
|
|
7
6
|
# @return [String] The domain premium price
|
|
8
7
|
attr_accessor :premium_price
|
|
9
8
|
|
|
10
9
|
# @return [String] The action: registration/transfer/renewal
|
|
11
10
|
attr_accessor :action
|
|
12
|
-
|
|
13
11
|
end
|
|
14
12
|
end
|
|
15
13
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class DomainPrice < Base
|
|
6
|
-
|
|
7
6
|
# @return [String] The domain name
|
|
8
7
|
attr_accessor :domain
|
|
9
8
|
|
|
@@ -18,7 +17,6 @@ module Dnsimple
|
|
|
18
17
|
|
|
19
18
|
# @return [Float] The price for transfer
|
|
20
19
|
attr_accessor :transfer_price
|
|
21
|
-
|
|
22
20
|
end
|
|
23
21
|
end
|
|
24
22
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class DomainPush < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The domain push ID in DNSimple.
|
|
8
7
|
attr_accessor :id
|
|
9
8
|
|
|
@@ -24,7 +23,6 @@ module Dnsimple
|
|
|
24
23
|
|
|
25
24
|
# @return [String] When the domain push was accepted in DNSimple.
|
|
26
25
|
attr_accessor :accepted_at
|
|
27
|
-
|
|
28
26
|
end
|
|
29
27
|
end
|
|
30
28
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class DomainRegistration < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The domain registration ID in DNSimple.
|
|
8
7
|
attr_accessor :id
|
|
9
8
|
|
|
@@ -30,7 +29,6 @@ module Dnsimple
|
|
|
30
29
|
|
|
31
30
|
# @return [String] When the domain renewal was last updated in DNSimple.
|
|
32
31
|
attr_accessor :updated_at
|
|
33
|
-
|
|
34
32
|
end
|
|
35
33
|
end
|
|
36
34
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class DomainRenewal < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The domain renewal ID in DNSimple.
|
|
8
7
|
attr_accessor :id
|
|
9
8
|
|
|
@@ -21,7 +20,6 @@ module Dnsimple
|
|
|
21
20
|
|
|
22
21
|
# @return [String] When the domain renewal was last updated in DNSimple.
|
|
23
22
|
attr_accessor :updated_at
|
|
24
|
-
|
|
25
23
|
end
|
|
26
24
|
end
|
|
27
25
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class DomainRestore < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The domain restore ID in DNSimple.
|
|
8
7
|
attr_accessor :id
|
|
9
8
|
|
|
@@ -18,7 +17,6 @@ module Dnsimple
|
|
|
18
17
|
|
|
19
18
|
# @return [String] When the domain restore was last updated in DNSimple.
|
|
20
19
|
attr_accessor :updated_at
|
|
21
|
-
|
|
22
20
|
end
|
|
23
21
|
end
|
|
24
22
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class DomainTransfer < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The domain registration ID in DNSimple.
|
|
8
7
|
attr_accessor :id
|
|
9
8
|
|
|
@@ -30,7 +29,6 @@ module Dnsimple
|
|
|
30
29
|
|
|
31
30
|
# @return [String] When the domain renewal was last updated in DNSimple.
|
|
32
31
|
attr_accessor :updated_at
|
|
33
|
-
|
|
34
32
|
end
|
|
35
33
|
end
|
|
36
34
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class EmailForward < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The email forward ID in DNSimple.
|
|
8
7
|
attr_accessor :id
|
|
9
8
|
|
|
@@ -24,7 +23,6 @@ module Dnsimple
|
|
|
24
23
|
|
|
25
24
|
# @return [String] When the email forward was last updated in DNSimple.
|
|
26
25
|
attr_accessor :updated_at
|
|
27
|
-
|
|
28
26
|
end
|
|
29
27
|
end
|
|
30
28
|
end
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class ExtendedAttribute < Base
|
|
6
|
-
|
|
7
6
|
class Option < Base
|
|
8
|
-
|
|
9
7
|
# The option name
|
|
10
8
|
attr_accessor :title
|
|
11
9
|
|
|
@@ -14,7 +12,6 @@ module Dnsimple
|
|
|
14
12
|
|
|
15
13
|
# A long description of the option
|
|
16
14
|
attr_accessor :description
|
|
17
|
-
|
|
18
15
|
end
|
|
19
16
|
|
|
20
17
|
# The extended attribute name
|
|
@@ -39,7 +36,6 @@ module Dnsimple
|
|
|
39
36
|
ExtendedAttribute::Option.new(opt)
|
|
40
37
|
end
|
|
41
38
|
end
|
|
42
|
-
|
|
43
39
|
end
|
|
44
40
|
end
|
|
45
41
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class OauthToken < Base
|
|
6
|
-
|
|
7
6
|
# @return [String] The token you can use to authenticate.
|
|
8
7
|
attr_accessor :access_token
|
|
9
8
|
|
|
@@ -15,7 +14,6 @@ module Dnsimple
|
|
|
15
14
|
|
|
16
15
|
# @return [Integer] The account ID in DNSimple this token belongs to.
|
|
17
16
|
attr_accessor :account_id
|
|
18
|
-
|
|
19
17
|
end
|
|
20
18
|
end
|
|
21
19
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class RegistrantChange < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The registrant change ID in DNSimple.
|
|
8
7
|
attr_accessor :id
|
|
9
8
|
|
|
@@ -33,7 +32,6 @@ module Dnsimple
|
|
|
33
32
|
|
|
34
33
|
# @return [String] When the registrant change was last updated in DNSimple.
|
|
35
34
|
attr_accessor :updated_at
|
|
36
|
-
|
|
37
35
|
end
|
|
38
36
|
end
|
|
39
37
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class RegistrantChangeCheck < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The associated contact ID.
|
|
8
7
|
attr_accessor :contact_id
|
|
9
8
|
|
|
@@ -15,7 +14,6 @@ module Dnsimple
|
|
|
15
14
|
|
|
16
15
|
# # @return [Boolean] True if the registrant change is a registry owner change.
|
|
17
16
|
attr_accessor :registry_owner_change
|
|
18
|
-
|
|
19
17
|
end
|
|
20
18
|
end
|
|
21
19
|
end
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class Service < Base
|
|
6
|
-
|
|
7
6
|
class Setting < Base
|
|
8
|
-
|
|
9
7
|
# @return [String] The setting name.
|
|
10
8
|
attr_accessor :name
|
|
11
9
|
|
|
@@ -23,7 +21,6 @@ module Dnsimple
|
|
|
23
21
|
|
|
24
22
|
# @return [Boolean] Whether the setting requires a password.
|
|
25
23
|
attr_accessor :password
|
|
26
|
-
|
|
27
24
|
end
|
|
28
25
|
|
|
29
26
|
# @return [Integer] The service ID in DNSimple.
|
|
@@ -60,7 +57,6 @@ module Dnsimple
|
|
|
60
57
|
Setting.new(setting)
|
|
61
58
|
end
|
|
62
59
|
end
|
|
63
|
-
|
|
64
60
|
end
|
|
65
61
|
end
|
|
66
62
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class Template < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The template ID in DNSimple.
|
|
8
7
|
attr_accessor :id
|
|
9
8
|
|
|
@@ -18,7 +17,6 @@ module Dnsimple
|
|
|
18
17
|
|
|
19
18
|
# @return [String] The template description.
|
|
20
19
|
attr_accessor :description
|
|
21
|
-
|
|
22
20
|
end
|
|
23
21
|
end
|
|
24
22
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class TemplateRecord < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The template record ID in DNSimple.
|
|
8
7
|
attr_accessor :id
|
|
9
8
|
|
|
@@ -30,7 +29,6 @@ module Dnsimple
|
|
|
30
29
|
|
|
31
30
|
# @return [String] When the template record was last updated in DNSimple.
|
|
32
31
|
attr_accessor :updated_at
|
|
33
|
-
|
|
34
32
|
end
|
|
35
33
|
end
|
|
36
34
|
end
|
data/lib/dnsimple/struct/tld.rb
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class Tld < Base
|
|
6
|
-
|
|
7
6
|
# @return [String] The TLD in DNSimple.
|
|
8
7
|
attr_accessor :tld
|
|
9
8
|
|
|
@@ -33,7 +32,6 @@ module Dnsimple
|
|
|
33
32
|
|
|
34
33
|
# @return [String, nil] Type of data interface required for DNSSEC for this TLD.
|
|
35
34
|
attr_accessor :dnssec_interface_type
|
|
36
|
-
|
|
37
35
|
end
|
|
38
36
|
end
|
|
39
37
|
end
|
data/lib/dnsimple/struct/user.rb
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class VanityNameServer < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The vanity name server ID in DNSimple.
|
|
8
7
|
attr_accessor :id
|
|
9
8
|
|
|
@@ -21,7 +20,6 @@ module Dnsimple
|
|
|
21
20
|
|
|
22
21
|
# @return [String] When the vanity name server was last updated in DNSimple.
|
|
23
22
|
attr_accessor :updated_at
|
|
24
|
-
|
|
25
23
|
end
|
|
26
24
|
end
|
|
27
25
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class Whoami < Base
|
|
6
|
-
|
|
7
6
|
# @return [Account] The account, if present.
|
|
8
7
|
attr_reader :account
|
|
9
8
|
|
|
@@ -13,7 +12,7 @@ module Dnsimple
|
|
|
13
12
|
|
|
14
13
|
# Converts account to a Struct::Account and sets it.
|
|
15
14
|
#
|
|
16
|
-
# @param [Hash, nil]
|
|
15
|
+
# @param account [Hash, nil]
|
|
17
16
|
# @return [void]
|
|
18
17
|
def account=(account)
|
|
19
18
|
@account = account ? Struct::Account.new(account) : account
|
|
@@ -21,12 +20,11 @@ module Dnsimple
|
|
|
21
20
|
|
|
22
21
|
# Converts user to a Struct::User and sets it.
|
|
23
22
|
#
|
|
24
|
-
# @param [Hash, nil]
|
|
23
|
+
# @param user [Hash, nil]
|
|
25
24
|
# @return [void]
|
|
26
25
|
def user=(user)
|
|
27
26
|
@user = user ? Struct::User.new(user) : user
|
|
28
27
|
end
|
|
29
|
-
|
|
30
28
|
end
|
|
31
29
|
end
|
|
32
30
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class WhoisPrivacy < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The associated domain ID.
|
|
8
7
|
attr_accessor :domain_id
|
|
9
8
|
|
|
@@ -18,7 +17,6 @@ module Dnsimple
|
|
|
18
17
|
|
|
19
18
|
# @return [String] When the whois privacy was last updated in DNSimple.
|
|
20
19
|
attr_accessor :updated_at
|
|
21
|
-
|
|
22
20
|
end
|
|
23
21
|
end
|
|
24
22
|
end
|
data/lib/dnsimple/struct/zone.rb
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class Zone < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The zone ID in DNSimple.
|
|
8
7
|
attr_accessor :id
|
|
9
8
|
|
|
@@ -30,7 +29,6 @@ module Dnsimple
|
|
|
30
29
|
|
|
31
30
|
# @return [String] When the zone was last updated in DNSimple.
|
|
32
31
|
attr_accessor :updated_at
|
|
33
|
-
|
|
34
32
|
end
|
|
35
33
|
end
|
|
36
34
|
end
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
module Dnsimple
|
|
4
4
|
module Struct
|
|
5
5
|
class ZoneRecord < Base
|
|
6
|
-
|
|
7
6
|
# @return [Integer] The record ID in DNSimple.
|
|
8
7
|
attr_accessor :id
|
|
9
8
|
|
|
@@ -39,7 +38,6 @@ module Dnsimple
|
|
|
39
38
|
|
|
40
39
|
# @return [String] When the record was last updated in DNSimple.
|
|
41
40
|
attr_accessor :updated_at
|
|
42
|
-
|
|
43
41
|
end
|
|
44
42
|
end
|
|
45
43
|
end
|