maxio-advanced-billing-sdk 5.0.0 → 5.1.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/README.md +41 -41
- data/lib/advanced_billing/controllers/advance_invoice_controller.rb +3 -3
- data/lib/advanced_billing/controllers/api_exports_controller.rb +9 -9
- data/lib/advanced_billing/controllers/base_controller.rb +1 -1
- data/lib/advanced_billing/controllers/billing_portal_controller.rb +4 -4
- data/lib/advanced_billing/controllers/component_price_points_controller.rb +11 -11
- data/lib/advanced_billing/controllers/components_controller.rb +12 -12
- data/lib/advanced_billing/controllers/coupons_controller.rb +14 -14
- data/lib/advanced_billing/controllers/custom_fields_controller.rb +9 -9
- data/lib/advanced_billing/controllers/customers_controller.rb +7 -7
- data/lib/advanced_billing/controllers/events_based_billing_segments_controller.rb +6 -6
- data/lib/advanced_billing/controllers/events_controller.rb +3 -3
- data/lib/advanced_billing/controllers/insights_controller.rb +4 -4
- data/lib/advanced_billing/controllers/invoices_controller.rb +17 -17
- data/lib/advanced_billing/controllers/offers_controller.rb +5 -5
- data/lib/advanced_billing/controllers/payment_profiles_controller.rb +12 -12
- data/lib/advanced_billing/controllers/product_families_controller.rb +4 -4
- data/lib/advanced_billing/controllers/product_price_points_controller.rb +11 -11
- data/lib/advanced_billing/controllers/products_controller.rb +6 -6
- data/lib/advanced_billing/controllers/proforma_invoices_controller.rb +9 -9
- data/lib/advanced_billing/controllers/reason_codes_controller.rb +5 -5
- data/lib/advanced_billing/controllers/referral_codes_controller.rb +1 -1
- data/lib/advanced_billing/controllers/sales_commissions_controller.rb +3 -3
- data/lib/advanced_billing/controllers/sites_controller.rb +3 -3
- data/lib/advanced_billing/controllers/subscription_components_controller.rb +17 -17
- data/lib/advanced_billing/controllers/subscription_group_invoice_account_controller.rb +4 -4
- data/lib/advanced_billing/controllers/subscription_group_status_controller.rb +4 -4
- data/lib/advanced_billing/controllers/subscription_groups_controller.rb +9 -9
- data/lib/advanced_billing/controllers/subscription_invoice_account_controller.rb +6 -6
- data/lib/advanced_billing/controllers/subscription_notes_controller.rb +5 -5
- data/lib/advanced_billing/controllers/subscription_products_controller.rb +2 -2
- data/lib/advanced_billing/controllers/subscription_status_controller.rb +10 -10
- data/lib/advanced_billing/controllers/subscriptions_controller.rb +12 -12
- data/lib/advanced_billing/controllers/webhooks_controller.rb +6 -6
- data/lib/advanced_billing/models/cancellation_method.rb +4 -1
- data/lib/advanced_billing/models/list_products_filter.rb +12 -2
- metadata +2 -2
@@ -11,7 +11,7 @@ module AdvancedBilling
|
|
11
11
|
# Subscription's open, payable invoices.
|
12
12
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
13
13
|
# the subscription
|
14
|
-
# @return [AccountBalances] response from the API call
|
14
|
+
# @return [AccountBalances] response from the API call.
|
15
15
|
def read_account_balances(subscription_id)
|
16
16
|
new_api_call_builder
|
17
17
|
.request(new_request_builder(HttpMethodEnum::GET,
|
@@ -39,7 +39,7 @@ module AdvancedBilling
|
|
39
39
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
40
40
|
# the subscription
|
41
41
|
# @param [CreatePrepaymentRequest] body Optional parameter: Example:
|
42
|
-
# @return [CreatePrepaymentResponse] response from the API call
|
42
|
+
# @return [CreatePrepaymentResponse] response from the API call.
|
43
43
|
def create_prepayment(subscription_id,
|
44
44
|
body: nil)
|
45
45
|
new_api_call_builder
|
@@ -80,7 +80,7 @@ module AdvancedBilling
|
|
80
80
|
# Use in query `per_page=200`.
|
81
81
|
# @param [ListPrepaymentsFilter] filter Optional parameter: Filter to use
|
82
82
|
# for List Prepayments operations
|
83
|
-
# @return [PrepaymentsResponse] response from the API call
|
83
|
+
# @return [PrepaymentsResponse] response from the API call.
|
84
84
|
def list_prepayments(options = {})
|
85
85
|
new_api_call_builder
|
86
86
|
.request(new_request_builder(HttpMethodEnum::GET,
|
@@ -110,7 +110,7 @@ module AdvancedBilling
|
|
110
110
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
111
111
|
# the subscription
|
112
112
|
# @param [IssueServiceCreditRequest] body Optional parameter: Example:
|
113
|
-
# @return [ServiceCredit] response from the API call
|
113
|
+
# @return [ServiceCredit] response from the API call.
|
114
114
|
def issue_service_credit(subscription_id,
|
115
115
|
body: nil)
|
116
116
|
new_api_call_builder
|
@@ -141,7 +141,7 @@ module AdvancedBilling
|
|
141
141
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
142
142
|
# the subscription
|
143
143
|
# @param [DeductServiceCreditRequest] body Optional parameter: Example:
|
144
|
-
# @return [void] response from the API call
|
144
|
+
# @return [void] response from the API call.
|
145
145
|
def deduct_service_credit(subscription_id,
|
146
146
|
body: nil)
|
147
147
|
new_api_call_builder
|
@@ -174,7 +174,7 @@ module AdvancedBilling
|
|
174
174
|
# the subscription
|
175
175
|
# @param [Integer] prepayment_id Required parameter: id of prepayment
|
176
176
|
# @param [RefundPrepaymentRequest] body Optional parameter: Example:
|
177
|
-
# @return [PrepaymentResponse] response from the API call
|
177
|
+
# @return [PrepaymentResponse] response from the API call.
|
178
178
|
def refund_prepayment(subscription_id,
|
179
179
|
prepayment_id,
|
180
180
|
body: nil)
|
@@ -19,7 +19,7 @@ module AdvancedBilling
|
|
19
19
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
20
20
|
# the subscription
|
21
21
|
# @param [UpdateSubscriptionNoteRequest] body Optional parameter: Example:
|
22
|
-
# @return [SubscriptionNoteResponse] response from the API call
|
22
|
+
# @return [SubscriptionNoteResponse] response from the API call.
|
23
23
|
def create_subscription_note(subscription_id,
|
24
24
|
body: nil)
|
25
25
|
new_api_call_builder
|
@@ -55,7 +55,7 @@ module AdvancedBilling
|
|
55
55
|
# many records to fetch in each request. Default value is 20. The maximum
|
56
56
|
# allowed values is 200; any per_page value over 200 will be changed to 200.
|
57
57
|
# Use in query `per_page=200`.
|
58
|
-
# @return [Array[SubscriptionNoteResponse]] response from the API call
|
58
|
+
# @return [Array[SubscriptionNoteResponse]] response from the API call.
|
59
59
|
def list_subscription_notes(options = {})
|
60
60
|
new_api_call_builder
|
61
61
|
.request(new_request_builder(HttpMethodEnum::GET,
|
@@ -81,7 +81,7 @@ module AdvancedBilling
|
|
81
81
|
# the subscription
|
82
82
|
# @param [Integer] note_id Required parameter: The Advanced Billing id of
|
83
83
|
# the note
|
84
|
-
# @return [SubscriptionNoteResponse] response from the API call
|
84
|
+
# @return [SubscriptionNoteResponse] response from the API call.
|
85
85
|
def read_subscription_note(subscription_id,
|
86
86
|
note_id)
|
87
87
|
new_api_call_builder
|
@@ -108,7 +108,7 @@ module AdvancedBilling
|
|
108
108
|
# @param [Integer] note_id Required parameter: The Advanced Billing id of
|
109
109
|
# the note
|
110
110
|
# @param [UpdateSubscriptionNoteRequest] body Optional parameter: Example:
|
111
|
-
# @return [SubscriptionNoteResponse] response from the API call
|
111
|
+
# @return [SubscriptionNoteResponse] response from the API call.
|
112
112
|
def update_subscription_note(subscription_id,
|
113
113
|
note_id,
|
114
114
|
body: nil)
|
@@ -138,7 +138,7 @@ module AdvancedBilling
|
|
138
138
|
# the subscription
|
139
139
|
# @param [Integer] note_id Required parameter: The Advanced Billing id of
|
140
140
|
# the note
|
141
|
-
# @return [void] response from the API call
|
141
|
+
# @return [void] response from the API call.
|
142
142
|
def delete_subscription_note(subscription_id,
|
143
143
|
note_id)
|
144
144
|
new_api_call_builder
|
@@ -103,7 +103,7 @@ module AdvancedBilling
|
|
103
103
|
# the subscription
|
104
104
|
# @param [SubscriptionProductMigrationRequest] body Optional parameter:
|
105
105
|
# Example:
|
106
|
-
# @return [SubscriptionResponse] response from the API call
|
106
|
+
# @return [SubscriptionResponse] response from the API call.
|
107
107
|
def migrate_subscription_product(subscription_id,
|
108
108
|
body: nil)
|
109
109
|
new_api_call_builder
|
@@ -140,7 +140,7 @@ module AdvancedBilling
|
|
140
140
|
# the subscription
|
141
141
|
# @param [SubscriptionMigrationPreviewRequest] body Optional parameter:
|
142
142
|
# Example:
|
143
|
-
# @return [SubscriptionMigrationPreviewResponse] response from the API call
|
143
|
+
# @return [SubscriptionMigrationPreviewResponse] response from the API call.
|
144
144
|
def preview_subscription_product_migration(subscription_id,
|
145
145
|
body: nil)
|
146
146
|
new_api_call_builder
|
@@ -14,7 +14,7 @@ module AdvancedBilling
|
|
14
14
|
# The response will be `422 "Unprocessable Entity`.
|
15
15
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
16
16
|
# the subscription
|
17
|
-
# @return [SubscriptionResponse] response from the API call
|
17
|
+
# @return [SubscriptionResponse] response from the API call.
|
18
18
|
def retry_subscription(subscription_id)
|
19
19
|
new_api_call_builder
|
20
20
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
@@ -40,7 +40,7 @@ module AdvancedBilling
|
|
40
40
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
41
41
|
# the subscription
|
42
42
|
# @param [CancellationRequest] body Optional parameter: Example:
|
43
|
-
# @return [SubscriptionResponse] response from the API call
|
43
|
+
# @return [SubscriptionResponse] response from the API call.
|
44
44
|
def cancel_subscription(subscription_id,
|
45
45
|
body: nil)
|
46
46
|
new_api_call_builder
|
@@ -77,7 +77,7 @@ module AdvancedBilling
|
|
77
77
|
# @param [ResumptionCharge] calendar_billing_resumption_charge Optional
|
78
78
|
# parameter: (For calendar billing subscriptions only) The way that the
|
79
79
|
# resumed subscription's charge should be handled
|
80
|
-
# @return [SubscriptionResponse] response from the API call
|
80
|
+
# @return [SubscriptionResponse] response from the API call.
|
81
81
|
def resume_subscription(subscription_id,
|
82
82
|
calendar_billing_resumption_charge: ResumptionCharge::PRORATED)
|
83
83
|
new_api_call_builder
|
@@ -108,7 +108,7 @@ module AdvancedBilling
|
|
108
108
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
109
109
|
# the subscription
|
110
110
|
# @param [PauseRequest] body Optional parameter: Example:
|
111
|
-
# @return [SubscriptionResponse] response from the API call
|
111
|
+
# @return [SubscriptionResponse] response from the API call.
|
112
112
|
def pause_subscription(subscription_id,
|
113
113
|
body: nil)
|
114
114
|
new_api_call_builder
|
@@ -143,7 +143,7 @@ module AdvancedBilling
|
|
143
143
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
144
144
|
# the subscription
|
145
145
|
# @param [PauseRequest] body Optional parameter: Example:
|
146
|
-
# @return [SubscriptionResponse] response from the API call
|
146
|
+
# @return [SubscriptionResponse] response from the API call.
|
147
147
|
def update_automatic_subscription_resumption(subscription_id,
|
148
148
|
body: nil)
|
149
149
|
new_api_call_builder
|
@@ -309,7 +309,7 @@ module AdvancedBilling
|
|
309
309
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
310
310
|
# the subscription
|
311
311
|
# @param [ReactivateSubscriptionRequest] body Optional parameter: Example:
|
312
|
-
# @return [SubscriptionResponse] response from the API call
|
312
|
+
# @return [SubscriptionResponse] response from the API call.
|
313
313
|
def reactivate_subscription(subscription_id,
|
314
314
|
body: nil)
|
315
315
|
new_api_call_builder
|
@@ -343,7 +343,7 @@ module AdvancedBilling
|
|
343
343
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
344
344
|
# the subscription
|
345
345
|
# @param [CancellationRequest] body Optional parameter: Example:
|
346
|
-
# @return [DelayedCancellationResponse] response from the API call
|
346
|
+
# @return [DelayedCancellationResponse] response from the API call.
|
347
347
|
def initiate_delayed_cancellation(subscription_id,
|
348
348
|
body: nil)
|
349
349
|
new_api_call_builder
|
@@ -375,7 +375,7 @@ module AdvancedBilling
|
|
375
375
|
# will be successful.
|
376
376
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
377
377
|
# the subscription
|
378
|
-
# @return [DelayedCancellationResponse] response from the API call
|
378
|
+
# @return [DelayedCancellationResponse] response from the API call.
|
379
379
|
def cancel_delayed_cancellation(subscription_id)
|
380
380
|
new_api_call_builder
|
381
381
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
@@ -399,7 +399,7 @@ module AdvancedBilling
|
|
399
399
|
# active and the active Dunner will be resolved.
|
400
400
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
401
401
|
# the subscription
|
402
|
-
# @return [SubscriptionResponse] response from the API call
|
402
|
+
# @return [SubscriptionResponse] response from the API call.
|
403
403
|
def cancel_dunning(subscription_id)
|
404
404
|
new_api_call_builder
|
405
405
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -451,7 +451,7 @@ module AdvancedBilling
|
|
451
451
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
452
452
|
# the subscription
|
453
453
|
# @param [RenewalPreviewRequest] body Optional parameter: Example:
|
454
|
-
# @return [RenewalPreviewResponse] response from the API call
|
454
|
+
# @return [RenewalPreviewResponse] response from the API call.
|
455
455
|
def preview_renewal(subscription_id,
|
456
456
|
body: nil)
|
457
457
|
new_api_call_builder
|
@@ -795,7 +795,7 @@ module AdvancedBilling
|
|
795
795
|
# }
|
796
796
|
# ```
|
797
797
|
# @param [CreateSubscriptionRequest] body Optional parameter: Example:
|
798
|
-
# @return [SubscriptionResponse] response from the API call
|
798
|
+
# @return [SubscriptionResponse] response from the API call.
|
799
799
|
def create_subscription(body: nil)
|
800
800
|
new_api_call_builder
|
801
801
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -881,7 +881,7 @@ module AdvancedBilling
|
|
881
881
|
# @param [Array[SubscriptionListInclude]] include Optional parameter: Allows
|
882
882
|
# including additional data in the response. Use in query:
|
883
883
|
# `include[]=self_service_page_token`.
|
884
|
-
# @return [Array[SubscriptionResponse]] response from the API call
|
884
|
+
# @return [Array[SubscriptionResponse]] response from the API call.
|
885
885
|
def list_subscriptions(options = {})
|
886
886
|
new_api_call_builder
|
887
887
|
.request(new_request_builder(HttpMethodEnum::GET,
|
@@ -977,7 +977,7 @@ module AdvancedBilling
|
|
977
977
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
978
978
|
# the subscription
|
979
979
|
# @param [UpdateSubscriptionRequest] body Optional parameter: Example:
|
980
|
-
# @return [SubscriptionResponse] response from the API call
|
980
|
+
# @return [SubscriptionResponse] response from the API call.
|
981
981
|
def update_subscription(subscription_id,
|
982
982
|
body: nil)
|
983
983
|
new_api_call_builder
|
@@ -1012,7 +1012,7 @@ module AdvancedBilling
|
|
1012
1012
|
# @param [Array[SubscriptionInclude]] include Optional parameter: Allows
|
1013
1013
|
# including additional data in the response. Use in query:
|
1014
1014
|
# `include[]=coupons&include[]=self_service_page_token`.
|
1015
|
-
# @return [SubscriptionResponse] response from the API call
|
1015
|
+
# @return [SubscriptionResponse] response from the API call.
|
1016
1016
|
def read_subscription(subscription_id,
|
1017
1017
|
include: nil)
|
1018
1018
|
new_api_call_builder
|
@@ -1068,7 +1068,7 @@ module AdvancedBilling
|
|
1068
1068
|
# the subscription
|
1069
1069
|
# @param [OverrideSubscriptionRequest] body Optional parameter: Only these
|
1070
1070
|
# fields are available to be set.
|
1071
|
-
# @return [void] response from the API call
|
1071
|
+
# @return [void] response from the API call.
|
1072
1072
|
def override_subscription(subscription_id,
|
1073
1073
|
body: nil)
|
1074
1074
|
new_api_call_builder
|
@@ -1093,7 +1093,7 @@ module AdvancedBilling
|
|
1093
1093
|
|
1094
1094
|
# Use this endpoint to find a subscription by its reference.
|
1095
1095
|
# @param [String] reference Optional parameter: Subscription reference
|
1096
|
-
# @return [SubscriptionResponse] response from the API call
|
1096
|
+
# @return [SubscriptionResponse] response from the API call.
|
1097
1097
|
def find_subscription(reference: nil)
|
1098
1098
|
new_api_call_builder
|
1099
1099
|
.request(new_request_builder(HttpMethodEnum::GET,
|
@@ -1125,7 +1125,7 @@ module AdvancedBilling
|
|
1125
1125
|
# @param [Array[SubscriptionPurgeType]] cascade Optional parameter: Options
|
1126
1126
|
# are "customer" or "payment_profile". Use in query:
|
1127
1127
|
# `cascade[]=customer&cascade[]=payment_profile`.
|
1128
|
-
# @return [void] response from the API call
|
1128
|
+
# @return [void] response from the API call.
|
1129
1129
|
def purge_subscription(subscription_id,
|
1130
1130
|
ack,
|
1131
1131
|
cascade: nil)
|
@@ -1151,7 +1151,7 @@ module AdvancedBilling
|
|
1151
1151
|
# the subscription
|
1152
1152
|
# @param [UpsertPrepaidConfigurationRequest] body Optional parameter:
|
1153
1153
|
# Example:
|
1154
|
-
# @return [PrepaidConfigurationResponse] response from the API call
|
1154
|
+
# @return [PrepaidConfigurationResponse] response from the API call.
|
1155
1155
|
def update_prepaid_subscription_configuration(subscription_id,
|
1156
1156
|
body: nil)
|
1157
1157
|
new_api_call_builder
|
@@ -1208,7 +1208,7 @@ module AdvancedBilling
|
|
1208
1208
|
# If you'd like to calculate subscriptions that do not include tax, please
|
1209
1209
|
# feel free to leave off the billing information.
|
1210
1210
|
# @param [CreateSubscriptionRequest] body Optional parameter: Example:
|
1211
|
-
# @return [SubscriptionPreviewResponse] response from the API call
|
1211
|
+
# @return [SubscriptionPreviewResponse] response from the API call.
|
1212
1212
|
def preview_subscription(body: nil)
|
1213
1213
|
new_api_call_builder
|
1214
1214
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -1243,7 +1243,7 @@ module AdvancedBilling
|
|
1243
1243
|
# @param [String] code Optional parameter: A code for the coupon that would
|
1244
1244
|
# be applied to a subscription
|
1245
1245
|
# @param [AddCouponsRequest] body Optional parameter: Example:
|
1246
|
-
# @return [SubscriptionResponse] response from the API call
|
1246
|
+
# @return [SubscriptionResponse] response from the API call.
|
1247
1247
|
def apply_coupons_to_subscription(subscription_id,
|
1248
1248
|
code: nil,
|
1249
1249
|
body: nil)
|
@@ -1278,7 +1278,7 @@ module AdvancedBilling
|
|
1278
1278
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
1279
1279
|
# the subscription
|
1280
1280
|
# @param [String] coupon_code Optional parameter: The coupon code
|
1281
|
-
# @return [String] response from the API call
|
1281
|
+
# @return [String] response from the API call.
|
1282
1282
|
def remove_coupon_from_subscription(subscription_id,
|
1283
1283
|
coupon_code: nil)
|
1284
1284
|
new_api_call_builder
|
@@ -1355,7 +1355,7 @@ module AdvancedBilling
|
|
1355
1355
|
# @param [Integer] subscription_id Required parameter: The Chargify id of
|
1356
1356
|
# the subscription
|
1357
1357
|
# @param [ActivateSubscriptionRequest] body Optional parameter: Example:
|
1358
|
-
# @return [SubscriptionResponse] response from the API call
|
1358
|
+
# @return [SubscriptionResponse] response from the API call.
|
1359
1359
|
def activate_subscription(subscription_id,
|
1360
1360
|
body: nil)
|
1361
1361
|
new_api_call_builder
|
@@ -53,7 +53,7 @@ module AdvancedBilling
|
|
53
53
|
# Webhooks are returned.
|
54
54
|
# @param [Integer] subscription Optional parameter: The Advanced Billing id
|
55
55
|
# of a subscription you'd like to filter for
|
56
|
-
# @return [Array[WebhookResponse]] response from the API call
|
56
|
+
# @return [Array[WebhookResponse]] response from the API call.
|
57
57
|
def list_webhooks(options = {})
|
58
58
|
new_api_call_builder
|
59
59
|
.request(new_request_builder(HttpMethodEnum::GET,
|
@@ -77,7 +77,7 @@ module AdvancedBilling
|
|
77
77
|
|
78
78
|
# This method allows you to enable webhooks via API for your site
|
79
79
|
# @param [EnableWebhooksRequest] body Optional parameter: Example:
|
80
|
-
# @return [EnableWebhooksResponse] response from the API call
|
80
|
+
# @return [EnableWebhooksResponse] response from the API call.
|
81
81
|
def enable_webhooks(body: nil)
|
82
82
|
new_api_call_builder
|
83
83
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
@@ -100,7 +100,7 @@ module AdvancedBilling
|
|
100
100
|
# You may submit an array of up to 1000 webhook IDs to replay in the
|
101
101
|
# request.
|
102
102
|
# @param [ReplayWebhooksRequest] body Optional parameter: Example:
|
103
|
-
# @return [ReplayWebhooksResponse] response from the API call
|
103
|
+
# @return [ReplayWebhooksResponse] response from the API call.
|
104
104
|
def replay_webhooks(body: nil)
|
105
105
|
new_api_call_builder
|
106
106
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -124,7 +124,7 @@ module AdvancedBilling
|
|
124
124
|
# keys](https://maxio.zendesk.com/hc/en-us/articles/24266136649869-Webhooks-
|
125
125
|
# Reference#events)
|
126
126
|
# @param [CreateOrUpdateEndpointRequest] body Optional parameter: Example:
|
127
|
-
# @return [EndpointResponse] response from the API call
|
127
|
+
# @return [EndpointResponse] response from the API call.
|
128
128
|
def create_endpoint(body: nil)
|
129
129
|
new_api_call_builder
|
130
130
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -146,7 +146,7 @@ module AdvancedBilling
|
|
146
146
|
end
|
147
147
|
|
148
148
|
# This method returns created endpoints for site.
|
149
|
-
# @return [Array[Endpoint]] response from the API call
|
149
|
+
# @return [Array[Endpoint]] response from the API call.
|
150
150
|
def list_endpoints
|
151
151
|
new_api_call_builder
|
152
152
|
.request(new_request_builder(HttpMethodEnum::GET,
|
@@ -176,7 +176,7 @@ module AdvancedBilling
|
|
176
176
|
# @param [Integer] endpoint_id Required parameter: The Advanced Billing id
|
177
177
|
# for the endpoint that should be updated
|
178
178
|
# @param [CreateOrUpdateEndpointRequest] body Optional parameter: Example:
|
179
|
-
# @return [EndpointResponse] response from the API call
|
179
|
+
# @return [EndpointResponse] response from the API call.
|
180
180
|
def update_endpoint(endpoint_id,
|
181
181
|
body: nil)
|
182
182
|
new_api_call_builder
|
@@ -21,7 +21,10 @@ module AdvancedBilling
|
|
21
21
|
BILLING_PORTAL = 'billing_portal'.freeze,
|
22
22
|
|
23
23
|
# TODO: Write general description for UNKNOWN
|
24
|
-
UNKNOWN = 'unknown'.freeze
|
24
|
+
UNKNOWN = 'unknown'.freeze,
|
25
|
+
|
26
|
+
# TODO: Write general description for IMPORTED
|
27
|
+
IMPORTED = 'imported'.freeze
|
25
28
|
].freeze
|
26
29
|
|
27
30
|
def self.validate(value)
|
@@ -9,6 +9,11 @@ module AdvancedBilling
|
|
9
9
|
SKIP = Object.new
|
10
10
|
private_constant :SKIP
|
11
11
|
|
12
|
+
# Allows fetching products with matching id based on provided values. Use in
|
13
|
+
# query `filter[ids]=1,2,3`.
|
14
|
+
# @return [Array[Integer]]
|
15
|
+
attr_accessor :ids
|
16
|
+
|
12
17
|
# Allows fetching products only if a prepaid product price point is present
|
13
18
|
# or not. To use this filter you also have to include the following param in
|
14
19
|
# the request `include=prepaid_product_price_point`. Use in query
|
@@ -25,6 +30,7 @@ module AdvancedBilling
|
|
25
30
|
# A mapping from model property names to API property names.
|
26
31
|
def self.names
|
27
32
|
@_hash = {} if @_hash.nil?
|
33
|
+
@_hash['ids'] = 'ids'
|
28
34
|
@_hash['prepaid_product_price_point'] = 'prepaid_product_price_point'
|
29
35
|
@_hash['use_site_exchange_rate'] = 'use_site_exchange_rate'
|
30
36
|
@_hash
|
@@ -33,6 +39,7 @@ module AdvancedBilling
|
|
33
39
|
# An array for optional fields
|
34
40
|
def self.optionals
|
35
41
|
%w[
|
42
|
+
ids
|
36
43
|
prepaid_product_price_point
|
37
44
|
use_site_exchange_rate
|
38
45
|
]
|
@@ -43,8 +50,9 @@ module AdvancedBilling
|
|
43
50
|
[]
|
44
51
|
end
|
45
52
|
|
46
|
-
def initialize(prepaid_product_price_point: SKIP,
|
53
|
+
def initialize(ids: SKIP, prepaid_product_price_point: SKIP,
|
47
54
|
use_site_exchange_rate: SKIP, additional_properties: {})
|
55
|
+
@ids = ids unless ids == SKIP
|
48
56
|
unless prepaid_product_price_point == SKIP
|
49
57
|
@prepaid_product_price_point =
|
50
58
|
prepaid_product_price_point
|
@@ -62,6 +70,7 @@ module AdvancedBilling
|
|
62
70
|
return nil unless hash
|
63
71
|
|
64
72
|
# Extract variables from the hash.
|
73
|
+
ids = hash.key?('ids') ? hash['ids'] : SKIP
|
65
74
|
if hash['prepaid_product_price_point']
|
66
75
|
prepaid_product_price_point = PrepaidProductPricePointFilter.from_hash(hash['prepaid_product_price_point'])
|
67
76
|
end
|
@@ -72,7 +81,8 @@ module AdvancedBilling
|
|
72
81
|
names.each_value { |k| hash.delete(k) }
|
73
82
|
|
74
83
|
# Create object from extracted values.
|
75
|
-
ListProductsFilter.new(
|
84
|
+
ListProductsFilter.new(ids: ids,
|
85
|
+
prepaid_product_price_point: prepaid_product_price_point,
|
76
86
|
use_site_exchange_rate: use_site_exchange_rate,
|
77
87
|
additional_properties: hash)
|
78
88
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maxio-advanced-billing-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxio SDK
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apimatic_core_interfaces
|