maxio-advanced-billing-sdk 4.0.0 → 5.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.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +45 -45
  3. data/lib/advanced_billing/configuration.rb +2 -2
  4. data/lib/advanced_billing/controllers/advance_invoice_controller.rb +24 -24
  5. data/lib/advanced_billing/controllers/api_exports_controller.rb +57 -57
  6. data/lib/advanced_billing/controllers/base_controller.rb +10 -10
  7. data/lib/advanced_billing/controllers/billing_portal_controller.rb +33 -32
  8. data/lib/advanced_billing/controllers/component_price_points_controller.rb +60 -60
  9. data/lib/advanced_billing/controllers/components_controller.rb +110 -107
  10. data/lib/advanced_billing/controllers/coupons_controller.rb +89 -89
  11. data/lib/advanced_billing/controllers/custom_fields_controller.rb +76 -76
  12. data/lib/advanced_billing/controllers/customers_controller.rb +45 -41
  13. data/lib/advanced_billing/controllers/events_based_billing_segments_controller.rb +53 -53
  14. data/lib/advanced_billing/controllers/events_controller.rb +16 -15
  15. data/lib/advanced_billing/controllers/insights_controller.rb +17 -17
  16. data/lib/advanced_billing/controllers/invoices_controller.rb +99 -99
  17. data/lib/advanced_billing/controllers/offers_controller.rb +18 -15
  18. data/lib/advanced_billing/controllers/payment_profiles_controller.rb +107 -104
  19. data/lib/advanced_billing/controllers/product_families_controller.rb +26 -26
  20. data/lib/advanced_billing/controllers/product_price_points_controller.rb +62 -62
  21. data/lib/advanced_billing/controllers/products_controller.rb +37 -37
  22. data/lib/advanced_billing/controllers/proforma_invoices_controller.rb +61 -61
  23. data/lib/advanced_billing/controllers/reason_codes_controller.rb +35 -35
  24. data/lib/advanced_billing/controllers/referral_codes_controller.rb +9 -8
  25. data/lib/advanced_billing/controllers/sales_commissions_controller.rb +13 -13
  26. data/lib/advanced_billing/controllers/sites_controller.rb +11 -10
  27. data/lib/advanced_billing/controllers/subscription_components_controller.rb +170 -161
  28. data/lib/advanced_billing/controllers/subscription_group_invoice_account_controller.rb +23 -23
  29. data/lib/advanced_billing/controllers/subscription_group_status_controller.rb +21 -21
  30. data/lib/advanced_billing/controllers/subscription_groups_controller.rb +54 -54
  31. data/lib/advanced_billing/controllers/subscription_invoice_account_controller.rb +37 -37
  32. data/lib/advanced_billing/controllers/subscription_notes_controller.rb +20 -16
  33. data/lib/advanced_billing/controllers/subscription_products_controller.rb +20 -18
  34. data/lib/advanced_billing/controllers/subscription_status_controller.rb +74 -74
  35. data/lib/advanced_billing/controllers/subscriptions_controller.rb +163 -160
  36. data/lib/advanced_billing/controllers/webhooks_controller.rb +45 -44
  37. data/lib/advanced_billing/exceptions/component_allocation_error_exception.rb +15 -15
  38. data/lib/advanced_billing/exceptions/component_price_point_error_exception.rb +15 -15
  39. data/lib/advanced_billing/exceptions/customer_error_response_exception.rb +15 -15
  40. data/lib/advanced_billing/exceptions/error_array_map_response_exception.rb +15 -15
  41. data/lib/advanced_billing/exceptions/error_list_response_exception.rb +15 -15
  42. data/lib/advanced_billing/exceptions/error_string_map_response_exception.rb +15 -15
  43. data/lib/advanced_billing/exceptions/event_based_billing_list_segments_errors_exception.rb +15 -15
  44. data/lib/advanced_billing/exceptions/event_based_billing_segment_errors_exception.rb +15 -15
  45. data/lib/advanced_billing/exceptions/event_based_billing_segment_exception.rb +15 -15
  46. data/lib/advanced_billing/exceptions/product_price_point_error_response_exception.rb +15 -15
  47. data/lib/advanced_billing/exceptions/proforma_bad_request_error_response_exception.rb +15 -15
  48. data/lib/advanced_billing/exceptions/refund_prepayment_base_errors_response_exception.rb +15 -15
  49. data/lib/advanced_billing/exceptions/single_error_response_exception.rb +15 -15
  50. data/lib/advanced_billing/exceptions/single_string_error_response_exception.rb +15 -15
  51. data/lib/advanced_billing/exceptions/subscription_add_coupon_error_exception.rb +15 -15
  52. data/lib/advanced_billing/exceptions/subscription_component_allocation_error_exception.rb +15 -15
  53. data/lib/advanced_billing/exceptions/subscription_group_create_error_response_exception.rb +15 -15
  54. data/lib/advanced_billing/exceptions/subscription_group_signup_error_response_exception.rb +15 -15
  55. data/lib/advanced_billing/exceptions/subscription_group_update_error_response_exception.rb +15 -15
  56. data/lib/advanced_billing/exceptions/subscription_remove_coupon_errors_exception.rb +15 -15
  57. data/lib/advanced_billing/exceptions/subscriptions_mrr_error_response_exception.rb +15 -15
  58. data/lib/advanced_billing/exceptions/too_many_management_link_requests_error_exception.rb +15 -15
  59. data/lib/advanced_billing/models/activate_event_based_component.rb +84 -0
  60. data/lib/advanced_billing/models/{current_vault.rb → all_vaults.rb} +28 -7
  61. data/lib/advanced_billing/models/allocation.rb +1 -0
  62. data/lib/advanced_billing/models/allocation_preview_item.rb +1 -0
  63. data/lib/advanced_billing/models/apple_pay_payment_profile.rb +232 -0
  64. data/lib/advanced_billing/models/apple_pay_vault.rb +20 -0
  65. data/lib/advanced_billing/models/bank_account_attributes.rb +2 -0
  66. data/lib/advanced_billing/models/bank_account_payment_profile.rb +25 -20
  67. data/lib/advanced_billing/models/bank_account_vault.rb +19 -9
  68. data/lib/advanced_billing/models/change_invoice_status_event_data.rb +6 -6
  69. data/lib/advanced_billing/models/component.rb +1 -0
  70. data/lib/advanced_billing/models/component_custom_price.rb +33 -14
  71. data/lib/advanced_billing/models/component_price_point_item.rb +3 -1
  72. data/lib/advanced_billing/models/create_component_price_point.rb +3 -1
  73. data/lib/advanced_billing/models/create_customer.rb +11 -1
  74. data/lib/advanced_billing/models/create_metafield.rb +2 -1
  75. data/lib/advanced_billing/models/create_or_update_product.rb +7 -4
  76. data/lib/advanced_billing/models/create_payment_profile.rb +1 -1
  77. data/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb +6 -5
  78. data/lib/advanced_billing/models/create_product_price_point.rb +5 -3
  79. data/lib/advanced_billing/models/create_subscription.rb +27 -25
  80. data/lib/advanced_billing/models/credit_card_payment_profile.rb +17 -16
  81. data/lib/advanced_billing/models/credit_card_vault.rb +117 -0
  82. data/lib/advanced_billing/models/credit_note.rb +2 -2
  83. data/lib/advanced_billing/models/customer.rb +11 -1
  84. data/lib/advanced_billing/models/customer_attributes.rb +12 -1
  85. data/lib/advanced_billing/models/ebb_component.rb +1 -0
  86. data/lib/advanced_billing/models/{extended_interval_unit.rb → expiration_interval_unit.rb} +4 -4
  87. data/lib/advanced_billing/models/full_subscription_group_response.rb +65 -50
  88. data/lib/advanced_billing/models/get_one_time_token_payment_profile.rb +1 -1
  89. data/lib/advanced_billing/models/invoice.rb +19 -9
  90. data/lib/advanced_billing/models/invoice_consolidation_level.rb +2 -2
  91. data/lib/advanced_billing/models/invoice_refund.rb +13 -1
  92. data/lib/advanced_billing/models/invoice_status.rb +2 -2
  93. data/lib/advanced_billing/models/invoice_tax.rb +29 -0
  94. data/lib/advanced_billing/models/invoice_tax_component_breakout.rb +101 -1
  95. data/lib/advanced_billing/models/issue_invoice_event_data.rb +6 -6
  96. data/lib/advanced_billing/models/metered_component.rb +4 -3
  97. data/lib/advanced_billing/models/offer_item.rb +3 -1
  98. data/lib/advanced_billing/models/on_off_component.rb +3 -2
  99. data/lib/advanced_billing/models/paid_invoice.rb +2 -2
  100. data/lib/advanced_billing/models/pay_pal_vault.rb +29 -0
  101. data/lib/advanced_billing/models/payment_profile_attributes.rb +5 -5
  102. data/lib/advanced_billing/models/payment_profile_response.rb +3 -3
  103. data/lib/advanced_billing/models/payment_type.rb +4 -1
  104. data/lib/advanced_billing/models/paypal_payment_profile.rb +242 -0
  105. data/lib/advanced_billing/models/prepaid_usage_component.rb +5 -4
  106. data/lib/advanced_billing/models/product.rb +2 -2
  107. data/lib/advanced_billing/models/product_price_point.rb +2 -2
  108. data/lib/advanced_billing/models/proforma_invoice.rb +6 -6
  109. data/lib/advanced_billing/models/quantity_based_component.rb +4 -3
  110. data/lib/advanced_billing/models/refund_invoice_event_data.rb +4 -4
  111. data/lib/advanced_billing/models/resent_invitation.rb +36 -0
  112. data/lib/advanced_billing/models/subscription.rb +13 -10
  113. data/lib/advanced_billing/models/subscription_component.rb +1 -0
  114. data/lib/advanced_billing/models/subscription_component_subscription.rb +26 -20
  115. data/lib/advanced_billing/models/subscription_custom_price.rb +5 -2
  116. data/lib/advanced_billing/models/subscription_group_bank_account.rb +2 -0
  117. data/lib/advanced_billing/models/subscription_group_credit_card.rb +1 -1
  118. data/lib/advanced_billing/models/subscription_group_signup_response.rb +39 -30
  119. data/lib/advanced_billing/models/subscription_state.rb +30 -30
  120. data/lib/advanced_billing/models/tax_configuration.rb +1 -2
  121. data/lib/advanced_billing/models/update_component_price_point.rb +3 -1
  122. data/lib/advanced_billing/models/update_customer.rb +12 -1
  123. data/lib/advanced_billing/models/update_payment_profile.rb +1 -1
  124. data/lib/advanced_billing/utilities/file_wrapper.rb +9 -9
  125. data/lib/advanced_billing/utilities/union_type_lookup.rb +17 -3
  126. data/lib/advanced_billing.rb +10 -4
  127. metadata +16 -10
@@ -9,15 +9,15 @@ module AdvancedBilling
9
9
  # # Reason Codes Intro
10
10
  # ReasonCodes are a way to gain a high level view of why your customers are
11
11
  # cancelling the subcription to your product or service.
12
- # Add a set of churn reason codes to be displayed in-app and/or the Chargify
12
+ # Add a set of churn reason codes to be displayed in-app and/or the Maxio
13
13
  # Billing Portal. As your subscribers decide to cancel their subscription,
14
14
  # learn why they decided to cancel.
15
15
  # ## Reason Code Documentation
16
- # Full documentation on how Reason Codes operate within Chargify can be
17
- # located under the following links.
16
+ # Full documentation on how Reason Codes operate within Advanced Billing can
17
+ # be located under the following links.
18
18
  # [Churn Reason
19
- # Codes](https://chargify.zendesk.com/hc/en-us/articles/4407896775579#churn-
20
- # reason-codes)
19
+ # Codes](https://maxio.zendesk.com/hc/en-us/articles/24286647554701-Churn-Re
20
+ # ason-Codes)
21
21
  # ## Create Reason Code
22
22
  # This method gives a merchant the option to create a reason codes for a
23
23
  # given Site.
@@ -34,12 +34,12 @@ module AdvancedBilling
34
34
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
35
35
  .auth(Single.new('BasicAuth')))
36
36
  .response(new_response_handler
37
- .deserializer(APIHelper.method(:custom_type_deserializer))
38
- .deserialize_into(ReasonCodeResponse.method(:from_hash))
39
- .local_error_template('422',
40
- 'HTTP Response Not OK. Status code: {$statusCode}.'\
41
- ' Response: \'{$response.body}\'.',
42
- ErrorListResponseException))
37
+ .deserializer(APIHelper.method(:custom_type_deserializer))
38
+ .deserialize_into(ReasonCodeResponse.method(:from_hash))
39
+ .local_error_template('422',
40
+ 'HTTP Response Not OK. Status code: {$statusCode}.'\
41
+ ' Response: \'{$response.body}\'.',
42
+ ErrorListResponseException))
43
43
  .execute
44
44
  end
45
45
 
@@ -67,16 +67,16 @@ module AdvancedBilling
67
67
  .header_param(new_parameter('application/json', key: 'accept'))
68
68
  .auth(Single.new('BasicAuth')))
69
69
  .response(new_response_handler
70
- .deserializer(APIHelper.method(:custom_type_deserializer))
71
- .deserialize_into(ReasonCodeResponse.method(:from_hash))
72
- .is_response_array(true))
70
+ .deserializer(APIHelper.method(:custom_type_deserializer))
71
+ .deserialize_into(ReasonCodeResponse.method(:from_hash))
72
+ .is_response_array(true))
73
73
  .execute
74
74
  end
75
75
 
76
76
  # This method gives a merchant the option to retrieve a list of a particular
77
77
  # code for a given Site by providing the unique numerical ID of the code.
78
- # @param [Integer] reason_code_id Required parameter: The Chargify id of the
79
- # reason code
78
+ # @param [Integer] reason_code_id Required parameter: The Advanced Billing
79
+ # id of the reason code
80
80
  # @return [ReasonCodeResponse] response from the API call
81
81
  def read_reason_code(reason_code_id)
82
82
  new_api_call_builder
@@ -89,18 +89,18 @@ module AdvancedBilling
89
89
  .header_param(new_parameter('application/json', key: 'accept'))
90
90
  .auth(Single.new('BasicAuth')))
91
91
  .response(new_response_handler
92
- .deserializer(APIHelper.method(:custom_type_deserializer))
93
- .deserialize_into(ReasonCodeResponse.method(:from_hash))
94
- .local_error_template('404',
95
- 'Not Found:\'{$response.body}\'',
96
- APIException))
92
+ .deserializer(APIHelper.method(:custom_type_deserializer))
93
+ .deserialize_into(ReasonCodeResponse.method(:from_hash))
94
+ .local_error_template('404',
95
+ 'Not Found:\'{$response.body}\'',
96
+ APIException))
97
97
  .execute
98
98
  end
99
99
 
100
100
  # This method gives a merchant the option to update an existing reason code
101
101
  # for a given site.
102
- # @param [Integer] reason_code_id Required parameter: The Chargify id of the
103
- # reason code
102
+ # @param [Integer] reason_code_id Required parameter: The Advanced Billing
103
+ # id of the reason code
104
104
  # @param [UpdateReasonCodeRequest] body Optional parameter: Example:
105
105
  # @return [ReasonCodeResponse] response from the API call
106
106
  def update_reason_code(reason_code_id,
@@ -118,19 +118,19 @@ module AdvancedBilling
118
118
  .body_serializer(proc do |param| param.to_json unless param.nil? end)
119
119
  .auth(Single.new('BasicAuth')))
120
120
  .response(new_response_handler
121
- .deserializer(APIHelper.method(:custom_type_deserializer))
122
- .deserialize_into(ReasonCodeResponse.method(:from_hash))
123
- .local_error_template('404',
124
- 'Not Found:\'{$response.body}\'',
125
- APIException))
121
+ .deserializer(APIHelper.method(:custom_type_deserializer))
122
+ .deserialize_into(ReasonCodeResponse.method(:from_hash))
123
+ .local_error_template('404',
124
+ 'Not Found:\'{$response.body}\'',
125
+ APIException))
126
126
  .execute
127
127
  end
128
128
 
129
129
  # This method gives a merchant the option to delete one reason code from the
130
130
  # Churn Reason Codes. This code will be immediately removed. This action is
131
131
  # not reversable.
132
- # @param [Integer] reason_code_id Required parameter: The Chargify id of the
133
- # reason code
132
+ # @param [Integer] reason_code_id Required parameter: The Advanced Billing
133
+ # id of the reason code
134
134
  # @return [ReasonCodesJsonResponse] response from the API call
135
135
  def delete_reason_code(reason_code_id)
136
136
  new_api_call_builder
@@ -143,11 +143,11 @@ module AdvancedBilling
143
143
  .header_param(new_parameter('application/json', key: 'accept'))
144
144
  .auth(Single.new('BasicAuth')))
145
145
  .response(new_response_handler
146
- .deserializer(APIHelper.method(:custom_type_deserializer))
147
- .deserialize_into(ReasonCodesJsonResponse.method(:from_hash))
148
- .local_error_template('404',
149
- 'Not Found:\'{$response.body}\'',
150
- APIException))
146
+ .deserializer(APIHelper.method(:custom_type_deserializer))
147
+ .deserialize_into(ReasonCodesJsonResponse.method(:from_hash))
148
+ .local_error_template('404',
149
+ 'Not Found:\'{$response.body}\'',
150
+ APIException))
151
151
  .execute
152
152
  end
153
153
  end
@@ -10,9 +10,10 @@ module AdvancedBilling
10
10
  # within your Site. This method is useful for validating referral codes that
11
11
  # are entered by a customer.
12
12
  # ## Referrals Documentation
13
- # Full documentation on how to use the referrals feature in the Chargify UI
14
- # can be located
15
- # [here](https://chargify.zendesk.com/hc/en-us/articles/4407802831643).
13
+ # Full documentation on how to use the referrals feature in the Advanced
14
+ # Billing UI can be located
15
+ # [here](https://maxio.zendesk.com/hc/en-us/sections/24286965611405-Referral
16
+ # s).
16
17
  # ## Server Response
17
18
  # If the referral code is valid the status code will be `200` and the
18
19
  # referral code will be returned. If the referral code is invalid, a `404`
@@ -30,11 +31,11 @@ module AdvancedBilling
30
31
  .header_param(new_parameter('application/json', key: 'accept'))
31
32
  .auth(Single.new('BasicAuth')))
32
33
  .response(new_response_handler
33
- .deserializer(APIHelper.method(:custom_type_deserializer))
34
- .deserialize_into(ReferralValidationResponse.method(:from_hash))
35
- .local_error_template('404',
36
- 'Invalid referral code.',
37
- SingleStringErrorResponseException))
34
+ .deserializer(APIHelper.method(:custom_type_deserializer))
35
+ .deserialize_into(ReferralValidationResponse.method(:from_hash))
36
+ .local_error_template('404',
37
+ 'Invalid referral code.',
38
+ SingleStringErrorResponseException))
38
39
  .execute
39
40
  end
40
41
  end
@@ -20,7 +20,7 @@ module AdvancedBilling
20
20
  # Access to the Sales Commission API endpoints is available to users with
21
21
  # financial access, where the seller has the Advanced Analytics component
22
22
  # enabled. For further information on getting access to Advanced Analytics
23
- # please contact Chargify support.
23
+ # please contact Maxio support.
24
24
  # > Note: The request is at seller level, it means `<<subdomain>>` variable
25
25
  # will be replaced by `app`
26
26
  # @param [String] seller_id Required parameter: The Chargify id of your
@@ -57,9 +57,9 @@ module AdvancedBilling
57
57
  .header_param(new_parameter('application/json', key: 'accept'))
58
58
  .auth(Single.new('BasicAuth')))
59
59
  .response(new_response_handler
60
- .deserializer(APIHelper.method(:custom_type_deserializer))
61
- .deserialize_into(SaleRepSettings.method(:from_hash))
62
- .is_response_array(true))
60
+ .deserializer(APIHelper.method(:custom_type_deserializer))
61
+ .deserialize_into(SaleRepSettings.method(:from_hash))
62
+ .is_response_array(true))
63
63
  .execute
64
64
  end
65
65
 
@@ -77,7 +77,7 @@ module AdvancedBilling
77
77
  # Access to the Sales Commission API endpoints is available to users with
78
78
  # financial access, where the seller has the Advanced Analytics component
79
79
  # enabled. For further information on getting access to Advanced Analytics
80
- # please contact Chargify support.
80
+ # please contact Maxio support.
81
81
  # > Note: The request is at seller level, it means `<<subdomain>>` variable
82
82
  # will be replaced by `app`
83
83
  # @param [String] seller_id Required parameter: The Chargify id of your
@@ -114,9 +114,9 @@ module AdvancedBilling
114
114
  .header_param(new_parameter('application/json', key: 'accept'))
115
115
  .auth(Single.new('BasicAuth')))
116
116
  .response(new_response_handler
117
- .deserializer(APIHelper.method(:custom_type_deserializer))
118
- .deserialize_into(ListSaleRepItem.method(:from_hash))
119
- .is_response_array(true))
117
+ .deserializer(APIHelper.method(:custom_type_deserializer))
118
+ .deserialize_into(ListSaleRepItem.method(:from_hash))
119
+ .is_response_array(true))
120
120
  .execute
121
121
  end
122
122
 
@@ -134,13 +134,13 @@ module AdvancedBilling
134
134
  # Access to the Sales Commission API endpoints is available to users with
135
135
  # financial access, where the seller has the Advanced Analytics component
136
136
  # enabled. For further information on getting access to Advanced Analytics
137
- # please contact Chargify support.
137
+ # please contact Maxio support.
138
138
  # > Note: The request is at seller level, it means `<<subdomain>>` variable
139
139
  # will be replaced by `app`
140
140
  # @param [String] seller_id Required parameter: The Chargify id of your
141
141
  # seller account
142
- # @param [String] sales_rep_id Required parameter: The Chargify id of sales
143
- # rep.
142
+ # @param [String] sales_rep_id Required parameter: The Advanced Billing id
143
+ # of sales rep.
144
144
  # @param [String] authorization Optional parameter: For authorization use
145
145
  # user API key. See details
146
146
  # [here](https://developers.chargify.com/docs/developer-docs/ZG9jOjMyNzk5NTg
@@ -181,8 +181,8 @@ module AdvancedBilling
181
181
  .header_param(new_parameter('application/json', key: 'accept'))
182
182
  .auth(Single.new('BasicAuth')))
183
183
  .response(new_response_handler
184
- .deserializer(APIHelper.method(:custom_type_deserializer))
185
- .deserialize_into(SaleRep.method(:from_hash)))
184
+ .deserializer(APIHelper.method(:custom_type_deserializer))
185
+ .deserialize_into(SaleRep.method(:from_hash)))
186
186
  .execute
187
187
  end
188
188
  end
@@ -7,11 +7,11 @@ module AdvancedBilling
7
7
  # SitesController
8
8
  class SitesController < BaseController
9
9
  # This endpoint allows you to fetch some site data.
10
- # Full documentation on Sites in the Chargify UI can be located
11
- # [here](https://chargify.zendesk.com/hc/en-us/articles/4407870738587).
10
+ # Full documentation on Sites in the Advanced Billing UI can be located
11
+ # [here](https://maxio.zendesk.com/hc/en-us/sections/24250550707085-Sites).
12
12
  # Specifically, the [Clearing Site
13
- # Data](https://maxio-chargify.zendesk.com/hc/en-us/articles/5405428327309)
14
- # section is extremely relevant to this endpoint documentation.
13
+ # Data](https://maxio.zendesk.com/hc/en-us/articles/24250617028365-Clearing-
14
+ # Site-Data) section is extremely relevant to this endpoint documentation.
15
15
  # #### Relationship invoicing enabled
16
16
  # If site has RI enabled then you will see more settings like:
17
17
  # "customer_hierarchy_enabled": true,
@@ -19,7 +19,8 @@ module AdvancedBilling
19
19
  # "whopays_default_payer": "self"
20
20
  # You can read more about these settings here:
21
21
  # [Who Pays & Customer
22
- # Hierarchy](https://chargify.zendesk.com/hc/en-us/articles/4407746683291)
22
+ # Hierarchy](https://maxio.zendesk.com/hc/en-us/articles/24252185211533-Cust
23
+ # omer-Hierarchies-WhoPays)
23
24
  # @return [SiteResponse] response from the API call
24
25
  def read_site
25
26
  new_api_call_builder
@@ -29,8 +30,8 @@ module AdvancedBilling
29
30
  .header_param(new_parameter('application/json', key: 'accept'))
30
31
  .auth(Single.new('BasicAuth')))
31
32
  .response(new_response_handler
32
- .deserializer(APIHelper.method(:custom_type_deserializer))
33
- .deserialize_into(SiteResponse.method(:from_hash)))
33
+ .deserializer(APIHelper.method(:custom_type_deserializer))
34
+ .deserialize_into(SiteResponse.method(:from_hash)))
34
35
  .execute
35
36
  end
36
37
 
@@ -55,7 +56,7 @@ module AdvancedBilling
55
56
  .query_param(new_parameter(cleanup_scope, key: 'cleanup_scope'))
56
57
  .auth(Single.new('BasicAuth')))
57
58
  .response(new_response_handler
58
- .is_response_void(true))
59
+ .is_response_void(true))
59
60
  .execute
60
61
  end
61
62
 
@@ -82,8 +83,8 @@ module AdvancedBilling
82
83
  .header_param(new_parameter('application/json', key: 'accept'))
83
84
  .auth(Single.new('BasicAuth')))
84
85
  .response(new_response_handler
85
- .deserializer(APIHelper.method(:custom_type_deserializer))
86
- .deserialize_into(ListPublicKeysResponse.method(:from_hash)))
86
+ .deserializer(APIHelper.method(:custom_type_deserializer))
87
+ .deserialize_into(ListPublicKeysResponse.method(:from_hash)))
87
88
  .execute
88
89
  end
89
90
  end