maxio-advanced-billing-sdk 0.0.4 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +38 -38
- data/lib/advanced_billing/controllers/base_controller.rb +1 -1
- data/lib/advanced_billing/controllers/components_controller.rb +6 -6
- data/lib/advanced_billing/controllers/coupons_controller.rb +4 -4
- data/lib/advanced_billing/controllers/custom_fields_controller.rb +14 -9
- data/lib/advanced_billing/controllers/events_based_billing_segments_controller.rb +6 -6
- data/lib/advanced_billing/controllers/insights_controller.rb +2 -2
- data/lib/advanced_billing/controllers/invoices_controller.rb +2 -2
- data/lib/advanced_billing/controllers/offers_controller.rb +1 -1
- data/lib/advanced_billing/controllers/payment_profiles_controller.rb +2 -2
- data/lib/advanced_billing/controllers/product_price_points_controller.rb +2 -2
- data/lib/advanced_billing/controllers/subscription_components_controller.rb +11 -11
- data/lib/advanced_billing/controllers/subscription_group_invoice_account_controller.rb +4 -4
- data/lib/advanced_billing/controllers/subscription_group_status_controller.rb +1 -1
- data/lib/advanced_billing/controllers/subscription_groups_controller.rb +3 -3
- data/lib/advanced_billing/controllers/subscription_status_controller.rb +1 -1
- data/lib/advanced_billing/controllers/subscriptions_controller.rb +7 -7
- data/lib/advanced_billing/models/address_change.rb +79 -0
- data/lib/advanced_billing/models/apply_payment_event_data.rb +55 -7
- data/lib/advanced_billing/models/bank_account_attributes.rb +2 -2
- data/lib/advanced_billing/models/bank_account_payment_profile.rb +2 -2
- data/lib/advanced_billing/models/component_price_point.rb +4 -2
- data/lib/advanced_billing/models/create_invoice_payment.rb +3 -3
- data/lib/advanced_billing/models/create_invoice_payment_request.rb +3 -3
- data/lib/advanced_billing/models/create_multi_invoice_payment.rb +3 -3
- data/lib/advanced_billing/models/create_payment_profile.rb +2 -2
- data/lib/advanced_billing/models/create_subscription.rb +10 -3
- data/lib/advanced_billing/models/credit_note.rb +2 -2
- data/lib/advanced_billing/models/credit_note1.rb +2 -2
- data/lib/advanced_billing/models/custom_field_owner.rb +23 -0
- data/lib/advanced_billing/models/customer_change.rb +30 -10
- data/lib/advanced_billing/models/customer_custom_fields_change.rb +33 -14
- data/lib/advanced_billing/models/customer_payer_change.rb +31 -12
- data/lib/advanced_billing/models/invoice_custom_field.rb +29 -19
- data/lib/advanced_billing/models/invoice_event.rb +1 -1
- data/lib/advanced_billing/models/{invoice_event1.rb → invoice_event_data.rb} +81 -43
- data/lib/advanced_billing/models/{payment_method_nested_data.rb → invoice_event_payment.rb} +16 -14
- data/lib/advanced_billing/models/{payment_method_nested_data1.rb → invoice_event_payment1.rb} +16 -14
- data/lib/advanced_billing/models/invoice_event_payment_method.rb +32 -0
- data/lib/advanced_billing/models/invoice_payer_change.rb +80 -0
- data/lib/advanced_billing/models/invoice_payment_method_type.rb +1 -1
- data/lib/advanced_billing/models/invoice_payment_type.rb +1 -1
- data/lib/advanced_billing/models/metadata.rb +4 -0
- data/lib/advanced_billing/models/{payment_method_apple_pay_type.rb → payment_method_apple_pay.rb} +15 -13
- data/lib/advanced_billing/models/{payment_method_bank_account_type.rb → payment_method_bank_account.rb} +11 -11
- data/lib/advanced_billing/models/{payment_method_credit_card_type.rb → payment_method_credit_card.rb} +13 -13
- data/lib/advanced_billing/models/{payment_method_external_type.rb → payment_method_external.rb} +16 -13
- data/lib/advanced_billing/models/{payment_method_paypal_type.rb → payment_method_paypal.rb} +10 -10
- data/lib/advanced_billing/models/proforma_invoice.rb +2 -2
- data/lib/advanced_billing/models/proforma_invoice_preview.rb +2 -2
- data/lib/advanced_billing/models/remove_payment_event_data.rb +4 -4
- data/lib/advanced_billing/models/subscription.rb +2 -2
- data/lib/advanced_billing/models/subscription_group_bank_account.rb +2 -2
- data/lib/advanced_billing/models/update_subscription.rb +5 -4
- data/lib/advanced_billing/utilities/union_type_lookup.rb +403 -358
- data/lib/advanced_billing.rb +514 -513
- metadata +14 -13
- data/lib/advanced_billing/models/customer_billing_address_change.rb +0 -60
- data/lib/advanced_billing/models/customer_shipping_address_change.rb +0 -60
- data/lib/advanced_billing/models/proforma_custom_field.rb +0 -90
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: 0.0
|
4
|
+
version: 1.0.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-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apimatic_core_interfaces
|
@@ -133,6 +133,7 @@ files:
|
|
133
133
|
- lib/advanced_billing/models/activate_subscription_request.rb
|
134
134
|
- lib/advanced_billing/models/add_coupons_request.rb
|
135
135
|
- lib/advanced_billing/models/add_subscription_to_a_group.rb
|
136
|
+
- lib/advanced_billing/models/address_change.rb
|
136
137
|
- lib/advanced_billing/models/agreement_acceptance.rb
|
137
138
|
- lib/advanced_billing/models/allocate_components.rb
|
138
139
|
- lib/advanced_billing/models/allocation.rb
|
@@ -295,18 +296,17 @@ files:
|
|
295
296
|
- lib/advanced_billing/models/currency_price_role.rb
|
296
297
|
- lib/advanced_billing/models/currency_prices_response.rb
|
297
298
|
- lib/advanced_billing/models/current_vault.rb
|
299
|
+
- lib/advanced_billing/models/custom_field_owner.rb
|
298
300
|
- lib/advanced_billing/models/custom_field_value_change.rb
|
299
301
|
- lib/advanced_billing/models/customer.rb
|
300
302
|
- lib/advanced_billing/models/customer1.rb
|
301
303
|
- lib/advanced_billing/models/customer_attributes.rb
|
302
|
-
- lib/advanced_billing/models/customer_billing_address_change.rb
|
303
304
|
- lib/advanced_billing/models/customer_change.rb
|
304
305
|
- lib/advanced_billing/models/customer_changes_preview_response.rb
|
305
306
|
- lib/advanced_billing/models/customer_custom_fields_change.rb
|
306
307
|
- lib/advanced_billing/models/customer_error.rb
|
307
308
|
- lib/advanced_billing/models/customer_payer_change.rb
|
308
309
|
- lib/advanced_billing/models/customer_response.rb
|
309
|
-
- lib/advanced_billing/models/customer_shipping_address_change.rb
|
310
310
|
- lib/advanced_billing/models/deduct_service_credit.rb
|
311
311
|
- lib/advanced_billing/models/deduct_service_credit_request.rb
|
312
312
|
- lib/advanced_billing/models/delayed_cancellation_response.rb
|
@@ -352,7 +352,10 @@ files:
|
|
352
352
|
- lib/advanced_billing/models/invoice_discount_breakout.rb
|
353
353
|
- lib/advanced_billing/models/invoice_display_settings.rb
|
354
354
|
- lib/advanced_billing/models/invoice_event.rb
|
355
|
-
- lib/advanced_billing/models/
|
355
|
+
- lib/advanced_billing/models/invoice_event_data.rb
|
356
|
+
- lib/advanced_billing/models/invoice_event_payment.rb
|
357
|
+
- lib/advanced_billing/models/invoice_event_payment1.rb
|
358
|
+
- lib/advanced_billing/models/invoice_event_payment_method.rb
|
356
359
|
- lib/advanced_billing/models/invoice_event_type.rb
|
357
360
|
- lib/advanced_billing/models/invoice_issued.rb
|
358
361
|
- lib/advanced_billing/models/invoice_line_item.rb
|
@@ -360,6 +363,7 @@ files:
|
|
360
363
|
- lib/advanced_billing/models/invoice_line_item_event_data.rb
|
361
364
|
- lib/advanced_billing/models/invoice_line_item_pricing_detail.rb
|
362
365
|
- lib/advanced_billing/models/invoice_payer.rb
|
366
|
+
- lib/advanced_billing/models/invoice_payer_change.rb
|
363
367
|
- lib/advanced_billing/models/invoice_payment.rb
|
364
368
|
- lib/advanced_billing/models/invoice_payment_application.rb
|
365
369
|
- lib/advanced_billing/models/invoice_payment_method.rb
|
@@ -446,13 +450,11 @@ files:
|
|
446
450
|
- lib/advanced_billing/models/payment.rb
|
447
451
|
- lib/advanced_billing/models/payment_collection_method_changed.rb
|
448
452
|
- lib/advanced_billing/models/payment_for_allocation.rb
|
449
|
-
- lib/advanced_billing/models/
|
450
|
-
- lib/advanced_billing/models/
|
451
|
-
- lib/advanced_billing/models/
|
452
|
-
- lib/advanced_billing/models/
|
453
|
-
- lib/advanced_billing/models/
|
454
|
-
- lib/advanced_billing/models/payment_method_nested_data1.rb
|
455
|
-
- lib/advanced_billing/models/payment_method_paypal_type.rb
|
453
|
+
- lib/advanced_billing/models/payment_method_apple_pay.rb
|
454
|
+
- lib/advanced_billing/models/payment_method_bank_account.rb
|
455
|
+
- lib/advanced_billing/models/payment_method_credit_card.rb
|
456
|
+
- lib/advanced_billing/models/payment_method_external.rb
|
457
|
+
- lib/advanced_billing/models/payment_method_paypal.rb
|
456
458
|
- lib/advanced_billing/models/payment_profile_attributes.rb
|
457
459
|
- lib/advanced_billing/models/payment_profile_response.rb
|
458
460
|
- lib/advanced_billing/models/payment_related_events.rb
|
@@ -485,7 +487,6 @@ files:
|
|
485
487
|
- lib/advanced_billing/models/product_price_point_errors.rb
|
486
488
|
- lib/advanced_billing/models/product_price_point_response.rb
|
487
489
|
- lib/advanced_billing/models/product_response.rb
|
488
|
-
- lib/advanced_billing/models/proforma_custom_field.rb
|
489
490
|
- lib/advanced_billing/models/proforma_error.rb
|
490
491
|
- lib/advanced_billing/models/proforma_invoice.rb
|
491
492
|
- lib/advanced_billing/models/proforma_invoice_credit.rb
|
@@ -1,60 +0,0 @@
|
|
1
|
-
# advanced_billing
|
2
|
-
#
|
3
|
-
# This file was automatically generated by APIMATIC v2.0
|
4
|
-
# ( https://apimatic.io ).
|
5
|
-
|
6
|
-
module AdvancedBilling
|
7
|
-
# CustomerBillingAddressChange Model.
|
8
|
-
class CustomerBillingAddressChange < BaseModel
|
9
|
-
SKIP = Object.new
|
10
|
-
private_constant :SKIP
|
11
|
-
|
12
|
-
# TODO: Write general description for this method
|
13
|
-
# @return [Object]
|
14
|
-
attr_accessor :before
|
15
|
-
|
16
|
-
# TODO: Write general description for this method
|
17
|
-
# @return [Object]
|
18
|
-
attr_accessor :after
|
19
|
-
|
20
|
-
# A mapping from model property names to API property names.
|
21
|
-
def self.names
|
22
|
-
@_hash = {} if @_hash.nil?
|
23
|
-
@_hash['before'] = 'before'
|
24
|
-
@_hash['after'] = 'after'
|
25
|
-
@_hash
|
26
|
-
end
|
27
|
-
|
28
|
-
# An array for optional fields
|
29
|
-
def self.optionals
|
30
|
-
%w[
|
31
|
-
before
|
32
|
-
after
|
33
|
-
]
|
34
|
-
end
|
35
|
-
|
36
|
-
# An array for nullable fields
|
37
|
-
def self.nullables
|
38
|
-
[]
|
39
|
-
end
|
40
|
-
|
41
|
-
def initialize(before = SKIP,
|
42
|
-
after = SKIP)
|
43
|
-
@before = before unless before == SKIP
|
44
|
-
@after = after unless after == SKIP
|
45
|
-
end
|
46
|
-
|
47
|
-
# Creates an instance of the object from a hash.
|
48
|
-
def self.from_hash(hash)
|
49
|
-
return nil unless hash
|
50
|
-
|
51
|
-
# Extract variables from the hash.
|
52
|
-
before = hash.key?('before') ? hash['before'] : SKIP
|
53
|
-
after = hash.key?('after') ? hash['after'] : SKIP
|
54
|
-
|
55
|
-
# Create object from extracted values.
|
56
|
-
CustomerBillingAddressChange.new(before,
|
57
|
-
after)
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
@@ -1,60 +0,0 @@
|
|
1
|
-
# advanced_billing
|
2
|
-
#
|
3
|
-
# This file was automatically generated by APIMATIC v2.0
|
4
|
-
# ( https://apimatic.io ).
|
5
|
-
|
6
|
-
module AdvancedBilling
|
7
|
-
# CustomerShippingAddressChange Model.
|
8
|
-
class CustomerShippingAddressChange < BaseModel
|
9
|
-
SKIP = Object.new
|
10
|
-
private_constant :SKIP
|
11
|
-
|
12
|
-
# TODO: Write general description for this method
|
13
|
-
# @return [Object]
|
14
|
-
attr_accessor :before
|
15
|
-
|
16
|
-
# TODO: Write general description for this method
|
17
|
-
# @return [Object]
|
18
|
-
attr_accessor :after
|
19
|
-
|
20
|
-
# A mapping from model property names to API property names.
|
21
|
-
def self.names
|
22
|
-
@_hash = {} if @_hash.nil?
|
23
|
-
@_hash['before'] = 'before'
|
24
|
-
@_hash['after'] = 'after'
|
25
|
-
@_hash
|
26
|
-
end
|
27
|
-
|
28
|
-
# An array for optional fields
|
29
|
-
def self.optionals
|
30
|
-
%w[
|
31
|
-
before
|
32
|
-
after
|
33
|
-
]
|
34
|
-
end
|
35
|
-
|
36
|
-
# An array for nullable fields
|
37
|
-
def self.nullables
|
38
|
-
[]
|
39
|
-
end
|
40
|
-
|
41
|
-
def initialize(before = SKIP,
|
42
|
-
after = SKIP)
|
43
|
-
@before = before unless before == SKIP
|
44
|
-
@after = after unless after == SKIP
|
45
|
-
end
|
46
|
-
|
47
|
-
# Creates an instance of the object from a hash.
|
48
|
-
def self.from_hash(hash)
|
49
|
-
return nil unless hash
|
50
|
-
|
51
|
-
# Extract variables from the hash.
|
52
|
-
before = hash.key?('before') ? hash['before'] : SKIP
|
53
|
-
after = hash.key?('after') ? hash['after'] : SKIP
|
54
|
-
|
55
|
-
# Create object from extracted values.
|
56
|
-
CustomerShippingAddressChange.new(before,
|
57
|
-
after)
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
@@ -1,90 +0,0 @@
|
|
1
|
-
# advanced_billing
|
2
|
-
#
|
3
|
-
# This file was automatically generated by APIMATIC v2.0
|
4
|
-
# ( https://apimatic.io ).
|
5
|
-
|
6
|
-
module AdvancedBilling
|
7
|
-
# ProformaCustomField Model.
|
8
|
-
class ProformaCustomField < BaseModel
|
9
|
-
SKIP = Object.new
|
10
|
-
private_constant :SKIP
|
11
|
-
|
12
|
-
# TODO: Write general description for this method
|
13
|
-
# @return [Integer]
|
14
|
-
attr_accessor :owner_id
|
15
|
-
|
16
|
-
# TODO: Write general description for this method
|
17
|
-
# @return [String]
|
18
|
-
attr_accessor :owner_type
|
19
|
-
|
20
|
-
# TODO: Write general description for this method
|
21
|
-
# @return [String]
|
22
|
-
attr_accessor :name
|
23
|
-
|
24
|
-
# TODO: Write general description for this method
|
25
|
-
# @return [String]
|
26
|
-
attr_accessor :value
|
27
|
-
|
28
|
-
# TODO: Write general description for this method
|
29
|
-
# @return [Integer]
|
30
|
-
attr_accessor :metadatum_id
|
31
|
-
|
32
|
-
# A mapping from model property names to API property names.
|
33
|
-
def self.names
|
34
|
-
@_hash = {} if @_hash.nil?
|
35
|
-
@_hash['owner_id'] = 'owner_id'
|
36
|
-
@_hash['owner_type'] = 'owner_type'
|
37
|
-
@_hash['name'] = 'name'
|
38
|
-
@_hash['value'] = 'value'
|
39
|
-
@_hash['metadatum_id'] = 'metadatum_id'
|
40
|
-
@_hash
|
41
|
-
end
|
42
|
-
|
43
|
-
# An array for optional fields
|
44
|
-
def self.optionals
|
45
|
-
%w[
|
46
|
-
owner_id
|
47
|
-
owner_type
|
48
|
-
name
|
49
|
-
value
|
50
|
-
metadatum_id
|
51
|
-
]
|
52
|
-
end
|
53
|
-
|
54
|
-
# An array for nullable fields
|
55
|
-
def self.nullables
|
56
|
-
[]
|
57
|
-
end
|
58
|
-
|
59
|
-
def initialize(owner_id = SKIP,
|
60
|
-
owner_type = SKIP,
|
61
|
-
name = SKIP,
|
62
|
-
value = SKIP,
|
63
|
-
metadatum_id = SKIP)
|
64
|
-
@owner_id = owner_id unless owner_id == SKIP
|
65
|
-
@owner_type = owner_type unless owner_type == SKIP
|
66
|
-
@name = name unless name == SKIP
|
67
|
-
@value = value unless value == SKIP
|
68
|
-
@metadatum_id = metadatum_id unless metadatum_id == SKIP
|
69
|
-
end
|
70
|
-
|
71
|
-
# Creates an instance of the object from a hash.
|
72
|
-
def self.from_hash(hash)
|
73
|
-
return nil unless hash
|
74
|
-
|
75
|
-
# Extract variables from the hash.
|
76
|
-
owner_id = hash.key?('owner_id') ? hash['owner_id'] : SKIP
|
77
|
-
owner_type = hash.key?('owner_type') ? hash['owner_type'] : SKIP
|
78
|
-
name = hash.key?('name') ? hash['name'] : SKIP
|
79
|
-
value = hash.key?('value') ? hash['value'] : SKIP
|
80
|
-
metadatum_id = hash.key?('metadatum_id') ? hash['metadatum_id'] : SKIP
|
81
|
-
|
82
|
-
# Create object from extracted values.
|
83
|
-
ProformaCustomField.new(owner_id,
|
84
|
-
owner_type,
|
85
|
-
name,
|
86
|
-
value,
|
87
|
-
metadatum_id)
|
88
|
-
end
|
89
|
-
end
|
90
|
-
end
|