recurly 3.0.0.beta.3 → 3.0.0.beta.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +5 -5
  2. data/.ruby-version +1 -0
  3. data/.travis.yml +3 -1
  4. data/README.md +9 -2
  5. data/lib/recurly/client.rb +42 -13
  6. data/lib/recurly/client/adapter.rb +9 -18
  7. data/lib/recurly/client/operations.rb +1179 -78
  8. data/lib/recurly/errors/api_errors.rb +4 -0
  9. data/lib/recurly/errors/network_errors.rb +1 -1
  10. data/lib/recurly/pager.rb +5 -1
  11. data/lib/recurly/requests/account_acquisition_cost.rb +18 -0
  12. data/lib/recurly/requests/account_acquisition_updatable.rb +5 -1
  13. data/lib/recurly/requests/account_create.rb +23 -3
  14. data/lib/recurly/requests/account_update.rb +22 -2
  15. data/lib/recurly/requests/add_on_create.rb +7 -3
  16. data/lib/recurly/requests/add_on_pricing.rb +18 -0
  17. data/lib/recurly/requests/add_on_update.rb +7 -3
  18. data/lib/recurly/requests/address.rb +4 -0
  19. data/lib/recurly/requests/billing_info_create.rb +4 -0
  20. data/lib/recurly/requests/coupon_bulk_create.rb +4 -0
  21. data/lib/recurly/requests/coupon_create.rb +13 -9
  22. data/lib/recurly/requests/coupon_pricing.rb +18 -0
  23. data/lib/recurly/requests/coupon_redemption_create.rb +4 -0
  24. data/lib/recurly/requests/coupon_update.rb +4 -0
  25. data/lib/recurly/requests/external_refund.rb +22 -0
  26. data/lib/recurly/requests/invoice_address.rb +54 -0
  27. data/lib/recurly/requests/invoice_create.rb +6 -2
  28. data/lib/recurly/requests/invoice_refund.rb +7 -3
  29. data/lib/recurly/requests/invoice_updatable.rb +34 -0
  30. data/lib/recurly/requests/line_item_create.rb +6 -2
  31. data/lib/recurly/requests/line_item_refund.rb +4 -0
  32. data/lib/recurly/requests/plan_create.rb +11 -7
  33. data/lib/recurly/requests/plan_hosted_pages.rb +26 -0
  34. data/lib/recurly/requests/plan_pricing.rb +22 -0
  35. data/lib/recurly/requests/plan_update.rb +11 -7
  36. data/lib/recurly/requests/shipping_address_create.rb +4 -0
  37. data/lib/recurly/requests/shipping_address_update.rb +5 -1
  38. data/lib/recurly/requests/subscription_add_on_create.rb +8 -0
  39. data/lib/recurly/requests/subscription_change_create.rb +13 -5
  40. data/lib/recurly/requests/subscription_create.rb +11 -7
  41. data/lib/recurly/requests/subscription_pause.rb +4 -0
  42. data/lib/recurly/requests/subscription_update.rb +8 -4
  43. data/lib/recurly/resource.rb +6 -6
  44. data/lib/recurly/resources/account.rb +27 -11
  45. data/lib/recurly/resources/account_acquisition.rb +9 -5
  46. data/lib/recurly/resources/account_acquisition_cost.rb +18 -0
  47. data/lib/recurly/resources/account_balance.rb +7 -3
  48. data/lib/recurly/resources/account_balance_amount.rb +18 -0
  49. data/lib/recurly/resources/account_mini.rb +18 -2
  50. data/lib/recurly/resources/account_note.rb +7 -3
  51. data/lib/recurly/resources/add_on.rb +13 -9
  52. data/lib/recurly/resources/add_on_mini.rb +6 -2
  53. data/lib/recurly/resources/add_on_pricing.rb +18 -0
  54. data/lib/recurly/resources/address.rb +4 -0
  55. data/lib/recurly/resources/billing_info.rb +12 -8
  56. data/lib/recurly/resources/billing_info_payment_method.rb +34 -0
  57. data/lib/recurly/resources/billing_info_updated_by.rb +18 -0
  58. data/lib/recurly/resources/coupon.rb +21 -13
  59. data/lib/recurly/resources/coupon_discount.rb +7 -3
  60. data/lib/recurly/resources/coupon_discount_pricing.rb +18 -0
  61. data/lib/recurly/resources/coupon_discount_trial.rb +18 -0
  62. data/lib/recurly/resources/coupon_mini.rb +8 -4
  63. data/lib/recurly/resources/coupon_redemption.rb +9 -5
  64. data/lib/recurly/resources/coupon_redemption_mini.rb +8 -4
  65. data/lib/recurly/resources/credit_payment.rb +8 -4
  66. data/lib/recurly/resources/custom_field.rb +4 -0
  67. data/lib/recurly/resources/custom_field_definition.rb +11 -7
  68. data/lib/recurly/resources/error.rb +6 -2
  69. data/lib/recurly/resources/error_may_have_transaction.rb +6 -2
  70. data/lib/recurly/resources/fraud_info.rb +22 -0
  71. data/lib/recurly/resources/invoice.rb +17 -13
  72. data/lib/recurly/resources/invoice_address.rb +54 -0
  73. data/lib/recurly/resources/invoice_collection.rb +5 -1
  74. data/lib/recurly/resources/invoice_mini.rb +6 -2
  75. data/lib/recurly/resources/line_item.rb +13 -5
  76. data/lib/recurly/resources/line_item_list.rb +5 -1
  77. data/lib/recurly/resources/plan.rb +16 -12
  78. data/lib/recurly/resources/plan_hosted_pages.rb +26 -0
  79. data/lib/recurly/resources/plan_mini.rb +6 -2
  80. data/lib/recurly/resources/plan_pricing.rb +22 -0
  81. data/lib/recurly/resources/settings.rb +7 -3
  82. data/lib/recurly/resources/shipping_address.rb +8 -4
  83. data/lib/recurly/resources/site.rb +16 -8
  84. data/lib/recurly/resources/subscription.rb +9 -5
  85. data/lib/recurly/resources/subscription_add_on.rb +4 -0
  86. data/lib/recurly/resources/subscription_change.rb +9 -5
  87. data/lib/recurly/resources/tax_info.rb +4 -0
  88. data/lib/recurly/resources/transaction.rb +16 -8
  89. data/lib/recurly/resources/transaction_payment_gateway.rb +26 -0
  90. data/lib/recurly/resources/transaction_payment_method.rb +34 -0
  91. data/lib/recurly/resources/unique_coupon_code.rb +10 -6
  92. data/lib/recurly/resources/user.rb +8 -4
  93. data/lib/recurly/schema/json_deserializer.rb +18 -20
  94. data/lib/recurly/schema/request_caster.rb +1 -1
  95. data/lib/recurly/schema/schema_validator.rb +31 -8
  96. data/lib/recurly/version.rb +1 -1
  97. data/recurly.gemspec +1 -1
  98. data/scripts/check-deps +28 -0
  99. data/scripts/install-deps +44 -0
  100. metadata +37 -7
@@ -18,18 +18,18 @@ module Recurly
18
18
  self.attributes == other_resource.attributes
19
19
  end
20
20
 
21
- protected
22
-
23
- def initialize(attributes = {})
24
- @attributes = attributes.clone
25
- end
26
-
27
21
  def to_s
28
22
  self.inspect
29
23
  end
30
24
 
25
+ protected
26
+
31
27
  def schema
32
28
  self.class.schema
33
29
  end
30
+
31
+ def initialize(attributes = {})
32
+ @attributes = attributes.clone
33
+ end
34
34
  end
35
35
  end
@@ -1,3 +1,7 @@
1
+ # This file is automatically created by Recurly's OpenAPI generation process
2
+ # and thus any edits you make by hand will be lost. If you wish to make a
3
+ # change to this file, please create a Github issue explaining the changes you
4
+ # need and we will usher them to the appropriate places.
1
5
  module Recurly
2
6
  module Resources
3
7
  class Account < Resource
@@ -6,6 +10,10 @@ module Recurly
6
10
  # @return [Address]
7
11
  define_attribute :address, :Address
8
12
 
13
+ # @!attribute bill_to
14
+ # @return [String] An enumerable describing the billing behavior of the account, specifically whether the account is self-paying or will rely on the parent account to pay.
15
+ define_attribute :bill_to, String, { :enum => ["self", "parent"] }
16
+
9
17
  # @!attribute billing_info
10
18
  # @return [BillingInfo]
11
19
  define_attribute :billing_info, :BillingInfo
@@ -16,7 +24,7 @@ module Recurly
16
24
 
17
25
  # @!attribute [r] code
18
26
  # @return [String] The unique identifier of the account. This cannot be changed once the account is created.
19
- define_attribute :code, String, {:read_only => true}
27
+ define_attribute :code, String, { :read_only => true }
20
28
 
21
29
  # @!attribute company
22
30
  # @return [String]
@@ -24,31 +32,35 @@ module Recurly
24
32
 
25
33
  # @!attribute [r] created_at
26
34
  # @return [DateTime] When the account was created.
27
- define_attribute :created_at, DateTime, {:read_only => true}
35
+ define_attribute :created_at, DateTime, { :read_only => true }
28
36
 
29
37
  # @!attribute custom_fields
30
38
  # @return [Array[CustomField]]
31
- define_attribute :custom_fields, Array, {:item_type => :CustomField}
39
+ define_attribute :custom_fields, Array, { :item_type => :CustomField }
32
40
 
33
41
  # @!attribute [r] deleted_at
34
42
  # @return [DateTime] If present, when the account was last marked inactive.
35
- define_attribute :deleted_at, DateTime, {:read_only => true}
43
+ define_attribute :deleted_at, DateTime, { :read_only => true }
36
44
 
37
45
  # @!attribute email
38
46
  # @return [String] The email address used for communicating with this customer. The customer will also use this email address to log into your hosted account management pages. This value does not need to be unique.
39
47
  define_attribute :email, String
40
48
 
49
+ # @!attribute exemption_certificate
50
+ # @return [String] The tax exemption certificate number for the account. If the merchant has an integration for the Vertex tax provider, this optional value will be sent in any tax calculation requests for the account.
51
+ define_attribute :exemption_certificate, String
52
+
41
53
  # @!attribute first_name
42
54
  # @return [String]
43
55
  define_attribute :first_name, String
44
56
 
45
57
  # @!attribute [r] hosted_login_token
46
58
  # @return [String] The unique token for automatically logging the account in to the hosted management pages. You may automatically log the user into their hosted management pages by directing the user to: `https://{subdomain}.recurly.com/account/{hosted_login_token}`.
47
- define_attribute :hosted_login_token, String, {:read_only => true}
59
+ define_attribute :hosted_login_token, String, { :read_only => true }
48
60
 
49
61
  # @!attribute [r] id
50
62
  # @return [String]
51
- define_attribute :id, String, {:read_only => true}
63
+ define_attribute :id, String, { :read_only => true }
52
64
 
53
65
  # @!attribute last_name
54
66
  # @return [String]
@@ -56,19 +68,23 @@ module Recurly
56
68
 
57
69
  # @!attribute [r] object
58
70
  # @return [String] Object type
59
- define_attribute :object, String, {:read_only => true}
71
+ define_attribute :object, String, { :read_only => true }
72
+
73
+ # @!attribute parent_account_id
74
+ # @return [String] The UUID of the parent account associated with this account.
75
+ define_attribute :parent_account_id, String
60
76
 
61
77
  # @!attribute preferred_locale
62
78
  # @return [String] Used to determine the language and locale of emails sent on behalf of the merchant to the customer.
63
- define_attribute :preferred_locale, String, {:enum => ["da-DK", "de-CH", "de-DE", "en-AU", "en-CA", "en-GB", "en-NZ", "en-US", "es-ES", "es-MX", "es-US", "fr-CA", "fr-FR", "hi-IN", "ja-JP", "nl-BE", "nl-NL", "pt-BR", "pt-PT", "ru-RU", "tr-TR", "zh-CN"]}
79
+ define_attribute :preferred_locale, String, { :enum => ["da-DK", "de-CH", "de-DE", "en-AU", "en-CA", "en-GB", "en-NZ", "en-US", "es-ES", "es-MX", "es-US", "fr-CA", "fr-FR", "hi-IN", "ja-JP", "nl-BE", "nl-NL", "pt-BR", "pt-PT", "ru-RU", "tr-TR", "zh-CN"] }
64
80
 
65
81
  # @!attribute shipping_addresses
66
82
  # @return [Array[ShippingAddress]] The shipping addresses on the account.
67
- define_attribute :shipping_addresses, Array, {:item_type => :ShippingAddress}
83
+ define_attribute :shipping_addresses, Array, { :item_type => :ShippingAddress }
68
84
 
69
85
  # @!attribute [r] state
70
86
  # @return [String] Accounts can be either active or inactive.
71
- define_attribute :state, String, {:read_only => true, :enum => ["active", "inactive"]}
87
+ define_attribute :state, String, { :read_only => true, :enum => ["active", "inactive"] }
72
88
 
73
89
  # @!attribute tax_exempt
74
90
  # @return [Boolean] The tax status of the account. `true` exempts tax on the account, `false` applies tax on the account.
@@ -76,7 +92,7 @@ module Recurly
76
92
 
77
93
  # @!attribute [r] updated_at
78
94
  # @return [DateTime] When the account was last changed.
79
- define_attribute :updated_at, DateTime, {:read_only => true}
95
+ define_attribute :updated_at, DateTime, { :read_only => true }
80
96
 
81
97
  # @!attribute username
82
98
  # @return [String] A secondary value for the account.
@@ -1,3 +1,7 @@
1
+ # This file is automatically created by Recurly's OpenAPI generation process
2
+ # and thus any edits you make by hand will be lost. If you wish to make a
3
+ # change to this file, please create a Github issue explaining the changes you
4
+ # need and we will usher them to the appropriate places.
1
5
  module Recurly
2
6
  module Resources
3
7
  class AccountAcquisition < Resource
@@ -12,7 +16,7 @@ module Recurly
12
16
 
13
17
  # @!attribute channel
14
18
  # @return [String] The channel through which the account was acquired.
15
- define_attribute :channel, String, {:enum => ["referral", "social_media", "email", "paid_search", "organic_search", "direct_traffic", "marketing_content", "blog", "events", "outbound_sales", "advertising", "public_relations", "other"]}
19
+ define_attribute :channel, String, { :enum => ["referral", "social_media", "email", "paid_search", "organic_search", "direct_traffic", "marketing_content", "blog", "events", "outbound_sales", "advertising", "public_relations", "other"] }
16
20
 
17
21
  # @!attribute cost
18
22
  # @return [Hash] Account balance
@@ -20,15 +24,15 @@ module Recurly
20
24
 
21
25
  # @!attribute [r] created_at
22
26
  # @return [DateTime] When the account acquisition data was created.
23
- define_attribute :created_at, DateTime, {:read_only => true}
27
+ define_attribute :created_at, DateTime, { :read_only => true }
24
28
 
25
29
  # @!attribute [r] id
26
30
  # @return [String]
27
- define_attribute :id, String, {:read_only => true}
31
+ define_attribute :id, String, { :read_only => true }
28
32
 
29
33
  # @!attribute [r] object
30
34
  # @return [String] Object type
31
- define_attribute :object, String, {:read_only => true}
35
+ define_attribute :object, String, { :read_only => true }
32
36
 
33
37
  # @!attribute subchannel
34
38
  # @return [String] An arbitrary subchannel string representing a distinction/subcategory within a broader channel.
@@ -36,7 +40,7 @@ module Recurly
36
40
 
37
41
  # @!attribute [r] updated_at
38
42
  # @return [DateTime] When the account acquisition data was last changed.
39
- define_attribute :updated_at, DateTime, {:read_only => true}
43
+ define_attribute :updated_at, DateTime, { :read_only => true }
40
44
  end
41
45
  end
42
46
  end
@@ -0,0 +1,18 @@
1
+ # This file is automatically created by Recurly's OpenAPI generation process
2
+ # and thus any edits you make by hand will be lost. If you wish to make a
3
+ # change to this file, please create a Github issue explaining the changes you
4
+ # need and we will usher them to the appropriate places.
5
+ module Recurly
6
+ module Resources
7
+ class AccountAcquisitionCost < Resource
8
+
9
+ # @!attribute amount
10
+ # @return [Float] The amount of the corresponding currency used to acquire the account.
11
+ define_attribute :amount, Float
12
+
13
+ # @!attribute currency
14
+ # @return [String] 3-letter ISO 4217 currency code.
15
+ define_attribute :currency, String
16
+ end
17
+ end
18
+ end
@@ -1,3 +1,7 @@
1
+ # This file is automatically created by Recurly's OpenAPI generation process
2
+ # and thus any edits you make by hand will be lost. If you wish to make a
3
+ # change to this file, please create a Github issue explaining the changes you
4
+ # need and we will usher them to the appropriate places.
1
5
  module Recurly
2
6
  module Resources
3
7
  class AccountBalance < Resource
@@ -7,12 +11,12 @@ module Recurly
7
11
  define_attribute :account, :AccountMini
8
12
 
9
13
  # @!attribute balances
10
- # @return [Hash] Account balance
11
- define_attribute :balances, Hash
14
+ # @return [Array[AccountBalanceAmount]]
15
+ define_attribute :balances, Array, { :item_type => :AccountBalanceAmount }
12
16
 
13
17
  # @!attribute [r] object
14
18
  # @return [String] Object type
15
- define_attribute :object, String, {:read_only => true}
19
+ define_attribute :object, String, { :read_only => true }
16
20
 
17
21
  # @!attribute past_due
18
22
  # @return [Boolean]
@@ -0,0 +1,18 @@
1
+ # This file is automatically created by Recurly's OpenAPI generation process
2
+ # and thus any edits you make by hand will be lost. If you wish to make a
3
+ # change to this file, please create a Github issue explaining the changes you
4
+ # need and we will usher them to the appropriate places.
5
+ module Recurly
6
+ module Resources
7
+ class AccountBalanceAmount < Resource
8
+
9
+ # @!attribute amount
10
+ # @return [Float] Total amount the account is past due.
11
+ define_attribute :amount, Float
12
+
13
+ # @!attribute currency
14
+ # @return [String] 3-letter ISO 4217 currency code.
15
+ define_attribute :currency, String
16
+ end
17
+ end
18
+ end
@@ -1,11 +1,23 @@
1
+ # This file is automatically created by Recurly's OpenAPI generation process
2
+ # and thus any edits you make by hand will be lost. If you wish to make a
3
+ # change to this file, please create a Github issue explaining the changes you
4
+ # need and we will usher them to the appropriate places.
1
5
  module Recurly
2
6
  module Resources
3
7
  class AccountMini < Resource
4
8
 
9
+ # @!attribute bill_to
10
+ # @return [String]
11
+ define_attribute :bill_to, String
12
+
5
13
  # @!attribute code
6
14
  # @return [String] The unique identifier of the account.
7
15
  define_attribute :code, String
8
16
 
17
+ # @!attribute company
18
+ # @return [String]
19
+ define_attribute :company, String
20
+
9
21
  # @!attribute email
10
22
  # @return [String] The email address used for communicating with this customer.
11
23
  define_attribute :email, String
@@ -16,7 +28,7 @@ module Recurly
16
28
 
17
29
  # @!attribute [r] id
18
30
  # @return [String]
19
- define_attribute :id, String, {:read_only => true}
31
+ define_attribute :id, String, { :read_only => true }
20
32
 
21
33
  # @!attribute last_name
22
34
  # @return [String]
@@ -24,7 +36,11 @@ module Recurly
24
36
 
25
37
  # @!attribute [r] object
26
38
  # @return [String] Object type
27
- define_attribute :object, String, {:read_only => true}
39
+ define_attribute :object, String, { :read_only => true }
40
+
41
+ # @!attribute parent_account_id
42
+ # @return [String]
43
+ define_attribute :parent_account_id, String
28
44
  end
29
45
  end
30
46
  end
@@ -1,3 +1,7 @@
1
+ # This file is automatically created by Recurly's OpenAPI generation process
2
+ # and thus any edits you make by hand will be lost. If you wish to make a
3
+ # change to this file, please create a Github issue explaining the changes you
4
+ # need and we will usher them to the appropriate places.
1
5
  module Recurly
2
6
  module Resources
3
7
  class AccountNote < Resource
@@ -8,11 +12,11 @@ module Recurly
8
12
 
9
13
  # @!attribute [r] created_at
10
14
  # @return [DateTime]
11
- define_attribute :created_at, DateTime, {:read_only => true}
15
+ define_attribute :created_at, DateTime, { :read_only => true }
12
16
 
13
17
  # @!attribute [r] id
14
18
  # @return [String]
15
- define_attribute :id, String, {:read_only => true}
19
+ define_attribute :id, String, { :read_only => true }
16
20
 
17
21
  # @!attribute message
18
22
  # @return [String]
@@ -20,7 +24,7 @@ module Recurly
20
24
 
21
25
  # @!attribute [r] object
22
26
  # @return [String] Object type
23
- define_attribute :object, String, {:read_only => true}
27
+ define_attribute :object, String, { :read_only => true }
24
28
 
25
29
  # @!attribute user
26
30
  # @return [User]
@@ -1,3 +1,7 @@
1
+ # This file is automatically created by Recurly's OpenAPI generation process
2
+ # and thus any edits you make by hand will be lost. If you wish to make a
3
+ # change to this file, please create a Github issue explaining the changes you
4
+ # need and we will usher them to the appropriate places.
1
5
  module Recurly
2
6
  module Resources
3
7
  class AddOn < Resource
@@ -12,11 +16,11 @@ module Recurly
12
16
 
13
17
  # @!attribute [r] created_at
14
18
  # @return [DateTime] Created at
15
- define_attribute :created_at, DateTime, {:read_only => true}
19
+ define_attribute :created_at, DateTime, { :read_only => true }
16
20
 
17
21
  # @!attribute currencies
18
- # @return [Array[Hash]] Add-on pricing
19
- define_attribute :currencies, Array, {:item_type => Hash}
22
+ # @return [Array[AddOnPricing]] Add-on pricing
23
+ define_attribute :currencies, Array, { :item_type => :AddOnPricing }
20
24
 
21
25
  # @!attribute default_quantity
22
26
  # @return [Integer] Default quantity for the hosted pages.
@@ -24,7 +28,7 @@ module Recurly
24
28
 
25
29
  # @!attribute [r] deleted_at
26
30
  # @return [DateTime] Deleted at
27
- define_attribute :deleted_at, DateTime, {:read_only => true}
31
+ define_attribute :deleted_at, DateTime, { :read_only => true }
28
32
 
29
33
  # @!attribute display_quantity
30
34
  # @return [Boolean] Determines if the quantity field is displayed on the hosted pages for the add-on.
@@ -32,7 +36,7 @@ module Recurly
32
36
 
33
37
  # @!attribute [r] id
34
38
  # @return [String] Add-on ID
35
- define_attribute :id, String, {:read_only => true}
39
+ define_attribute :id, String, { :read_only => true }
36
40
 
37
41
  # @!attribute name
38
42
  # @return [String] Describes your add-on and will appear in subscribers' invoices.
@@ -40,15 +44,15 @@ module Recurly
40
44
 
41
45
  # @!attribute [r] object
42
46
  # @return [String] Object type
43
- define_attribute :object, String, {:read_only => true}
47
+ define_attribute :object, String, { :read_only => true }
44
48
 
45
49
  # @!attribute [r] plan_id
46
50
  # @return [String] Plan ID
47
- define_attribute :plan_id, String, {:read_only => true}
51
+ define_attribute :plan_id, String, { :read_only => true }
48
52
 
49
53
  # @!attribute [r] state
50
54
  # @return [String] Add-ons can be either active or inactive.
51
- define_attribute :state, String, {:read_only => true, :enum => ["active", "inactive"]}
55
+ define_attribute :state, String, { :read_only => true, :enum => ["active", "inactive"] }
52
56
 
53
57
  # @!attribute tax_code
54
58
  # @return [String] Optional field for EU VAT merchants and Avalara AvaTax Pro merchants. If you are using Recurly's EU VAT feature, you can use values of 'unknown', 'physical', or 'digital'. If you have your own AvaTax account configured, you can use Avalara tax codes to assign custom tax rules.
@@ -56,7 +60,7 @@ module Recurly
56
60
 
57
61
  # @!attribute [r] updated_at
58
62
  # @return [DateTime] Last updated at
59
- define_attribute :updated_at, DateTime, {:read_only => true}
63
+ define_attribute :updated_at, DateTime, { :read_only => true }
60
64
  end
61
65
  end
62
66
  end
@@ -1,3 +1,7 @@
1
+ # This file is automatically created by Recurly's OpenAPI generation process
2
+ # and thus any edits you make by hand will be lost. If you wish to make a
3
+ # change to this file, please create a Github issue explaining the changes you
4
+ # need and we will usher them to the appropriate places.
1
5
  module Recurly
2
6
  module Resources
3
7
  class AddOnMini < Resource
@@ -12,7 +16,7 @@ module Recurly
12
16
 
13
17
  # @!attribute [r] id
14
18
  # @return [String] Add-on ID
15
- define_attribute :id, String, {:read_only => true}
19
+ define_attribute :id, String, { :read_only => true }
16
20
 
17
21
  # @!attribute name
18
22
  # @return [String] Describes your add-on and will appear in subscribers' invoices.
@@ -20,7 +24,7 @@ module Recurly
20
24
 
21
25
  # @!attribute [r] object
22
26
  # @return [String] Object type
23
- define_attribute :object, String, {:read_only => true}
27
+ define_attribute :object, String, { :read_only => true }
24
28
  end
25
29
  end
26
30
  end
@@ -0,0 +1,18 @@
1
+ # This file is automatically created by Recurly's OpenAPI generation process
2
+ # and thus any edits you make by hand will be lost. If you wish to make a
3
+ # change to this file, please create a Github issue explaining the changes you
4
+ # need and we will usher them to the appropriate places.
5
+ module Recurly
6
+ module Resources
7
+ class AddOnPricing < Resource
8
+
9
+ # @!attribute currency
10
+ # @return [String] 3-letter ISO 4217 currency code.
11
+ define_attribute :currency, String
12
+
13
+ # @!attribute unit_amount
14
+ # @return [Float] Unit price
15
+ define_attribute :unit_amount, Float
16
+ end
17
+ end
18
+ end
@@ -1,3 +1,7 @@
1
+ # This file is automatically created by Recurly's OpenAPI generation process
2
+ # and thus any edits you make by hand will be lost. If you wish to make a
3
+ # change to this file, please create a Github issue explaining the changes you
4
+ # need and we will usher them to the appropriate places.
1
5
  module Recurly
2
6
  module Resources
3
7
  class Address < Resource
@@ -1,10 +1,14 @@
1
+ # This file is automatically created by Recurly's OpenAPI generation process
2
+ # and thus any edits you make by hand will be lost. If you wish to make a
3
+ # change to this file, please create a Github issue explaining the changes you
4
+ # need and we will usher them to the appropriate places.
1
5
  module Recurly
2
6
  module Resources
3
7
  class BillingInfo < Resource
4
8
 
5
9
  # @!attribute [r] account_id
6
10
  # @return [String]
7
- define_attribute :account_id, String, {:read_only => true}
11
+ define_attribute :account_id, String, { :read_only => true }
8
12
 
9
13
  # @!attribute address
10
14
  # @return [Address]
@@ -16,7 +20,7 @@ module Recurly
16
20
 
17
21
  # @!attribute [r] created_at
18
22
  # @return [DateTime] When the billing information was created.
19
- define_attribute :created_at, DateTime, {:read_only => true}
23
+ define_attribute :created_at, DateTime, { :read_only => true }
20
24
 
21
25
  # @!attribute first_name
22
26
  # @return [String]
@@ -24,11 +28,11 @@ module Recurly
24
28
 
25
29
  # @!attribute [r] fraud
26
30
  # @return [Hash] Most recent fraud result.
27
- define_attribute :fraud, Hash, {:read_only => true}
31
+ define_attribute :fraud, Hash, { :read_only => true }
28
32
 
29
33
  # @!attribute [r] id
30
34
  # @return [String]
31
- define_attribute :id, String, {:read_only => true}
35
+ define_attribute :id, String, { :read_only => true }
32
36
 
33
37
  # @!attribute last_name
34
38
  # @return [String]
@@ -36,7 +40,7 @@ module Recurly
36
40
 
37
41
  # @!attribute [r] object
38
42
  # @return [String] Object type
39
- define_attribute :object, String, {:read_only => true}
43
+ define_attribute :object, String, { :read_only => true }
40
44
 
41
45
  # @!attribute payment_method
42
46
  # @return [Hash]
@@ -44,15 +48,15 @@ module Recurly
44
48
 
45
49
  # @!attribute [r] updated_at
46
50
  # @return [DateTime] When the billing information was last changed.
47
- define_attribute :updated_at, DateTime, {:read_only => true}
51
+ define_attribute :updated_at, DateTime, { :read_only => true }
48
52
 
49
53
  # @!attribute [r] updated_by
50
54
  # @return [Hash]
51
- define_attribute :updated_by, Hash, {:read_only => true}
55
+ define_attribute :updated_by, Hash, { :read_only => true }
52
56
 
53
57
  # @!attribute [r] valid
54
58
  # @return [Boolean]
55
- define_attribute :valid, :Boolean, {:read_only => true}
59
+ define_attribute :valid, :Boolean, { :read_only => true }
56
60
 
57
61
  # @!attribute vat_number
58
62
  # @return [String] Customer's VAT number (to avoid having the VAT applied). This is only used for automatically collected invoices.