maxio-advanced-billing-sdk 7.0.1 → 8.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 (165) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +94 -44
  3. data/bin/console +15 -0
  4. data/lib/advanced_billing/client.rb +11 -0
  5. data/lib/advanced_billing/configuration.rb +73 -0
  6. data/lib/advanced_billing/controllers/advance_invoice_controller.rb +2 -2
  7. data/lib/advanced_billing/controllers/base_controller.rb +1 -1
  8. data/lib/advanced_billing/controllers/billing_portal_controller.rb +2 -2
  9. data/lib/advanced_billing/controllers/component_price_points_controller.rb +2 -2
  10. data/lib/advanced_billing/controllers/components_controller.rb +5 -5
  11. data/lib/advanced_billing/controllers/coupons_controller.rb +5 -11
  12. data/lib/advanced_billing/controllers/custom_fields_controller.rb +102 -128
  13. data/lib/advanced_billing/controllers/customers_controller.rb +4 -4
  14. data/lib/advanced_billing/controllers/invoices_controller.rb +48 -11
  15. data/lib/advanced_billing/controllers/payment_profiles_controller.rb +70 -243
  16. data/lib/advanced_billing/controllers/product_families_controller.rb +7 -8
  17. data/lib/advanced_billing/controllers/product_price_points_controller.rb +15 -17
  18. data/lib/advanced_billing/controllers/products_controller.rb +7 -8
  19. data/lib/advanced_billing/controllers/proforma_invoices_controller.rb +1 -1
  20. data/lib/advanced_billing/controllers/sales_commissions_controller.rb +3 -3
  21. data/lib/advanced_billing/controllers/subscription_components_controller.rb +24 -33
  22. data/lib/advanced_billing/controllers/subscription_group_status_controller.rb +9 -9
  23. data/lib/advanced_billing/controllers/subscription_groups_controller.rb +10 -5
  24. data/lib/advanced_billing/controllers/subscription_invoice_account_controller.rb +1 -1
  25. data/lib/advanced_billing/controllers/subscription_products_controller.rb +6 -7
  26. data/lib/advanced_billing/controllers/subscription_status_controller.rb +6 -7
  27. data/lib/advanced_billing/controllers/subscriptions_controller.rb +86 -808
  28. data/lib/advanced_billing/http/auth/basic_auth.rb +12 -0
  29. data/lib/advanced_billing/http/proxy_settings.rb +9 -0
  30. data/lib/advanced_billing/models/activate_event_based_component.rb +1 -2
  31. data/lib/advanced_billing/models/all_vaults.rb +45 -0
  32. data/lib/advanced_billing/models/allocation_preview_direction.rb +13 -0
  33. data/lib/advanced_billing/models/allocation_preview_line_item_kind.rb +15 -0
  34. data/lib/advanced_billing/models/apple_pay_vault.rb +6 -0
  35. data/lib/advanced_billing/models/auto_invite.rb +19 -0
  36. data/lib/advanced_billing/models/bank_account_holder_type.rb +13 -0
  37. data/lib/advanced_billing/models/bank_account_type.rb +13 -0
  38. data/lib/advanced_billing/models/bank_account_vault.rb +19 -0
  39. data/lib/advanced_billing/models/basic_date_field.rb +13 -0
  40. data/lib/advanced_billing/models/billing_manifest_line_item_kind.rb +17 -0
  41. data/lib/advanced_billing/models/billing_schedule.rb +2 -2
  42. data/lib/advanced_billing/models/calendar_billing.rb +3 -1
  43. data/lib/advanced_billing/models/cancellation_method.rb +17 -0
  44. data/lib/advanced_billing/models/card_type.rb +47 -0
  45. data/lib/advanced_billing/models/chargeback_status.rb +15 -0
  46. data/lib/advanced_billing/models/chargify_ebb.rb +4 -4
  47. data/lib/advanced_billing/models/cleanup_scope.rb +13 -0
  48. data/lib/advanced_billing/models/collection_method.rb +15 -0
  49. data/lib/advanced_billing/models/component.rb +31 -31
  50. data/lib/advanced_billing/models/component_custom_price.rb +61 -3
  51. data/lib/advanced_billing/models/component_kind.rb +16 -0
  52. data/lib/advanced_billing/models/compounding_strategy.rb +13 -0
  53. data/lib/advanced_billing/models/create_allocation.rb +1 -2
  54. data/lib/advanced_billing/models/create_invoice_coupon.rb +16 -7
  55. data/lib/advanced_billing/models/create_invoice_item.rb +5 -5
  56. data/lib/advanced_billing/models/create_invoice_status.rb +13 -0
  57. data/lib/advanced_billing/models/create_metafield.rb +3 -5
  58. data/lib/advanced_billing/models/create_or_update_product.rb +12 -7
  59. data/lib/advanced_billing/models/create_payment_profile.rb +6 -6
  60. data/lib/advanced_billing/models/create_prepayment_method.rb +19 -0
  61. data/lib/advanced_billing/models/create_product_price_point.rb +8 -3
  62. data/lib/advanced_billing/models/create_signup_proforma_preview_include.rb +6 -0
  63. data/lib/advanced_billing/models/create_usage.rb +17 -7
  64. data/lib/advanced_billing/models/credit_card_vault.rb +44 -0
  65. data/lib/advanced_billing/models/credit_note_status.rb +13 -0
  66. data/lib/advanced_billing/models/credit_scheme.rb +14 -0
  67. data/lib/advanced_billing/models/credit_type.rb +14 -0
  68. data/lib/advanced_billing/models/currency_price_role.rb +14 -0
  69. data/lib/advanced_billing/models/custom_field_owner.rb +13 -0
  70. data/lib/advanced_billing/models/debit_note_role.rb +13 -0
  71. data/lib/advanced_billing/models/debit_note_status.rb +15 -0
  72. data/lib/advanced_billing/models/direction.rb +13 -0
  73. data/lib/advanced_billing/models/discount_type.rb +13 -0
  74. data/lib/advanced_billing/models/ebb_component.rb +2 -2
  75. data/lib/advanced_billing/models/event_key.rb +91 -0
  76. data/lib/advanced_billing/models/expiration_interval_unit.rb +14 -0
  77. data/lib/advanced_billing/models/failed_payment_action.rb +14 -0
  78. data/lib/advanced_billing/models/first_charge_type.rb +14 -0
  79. data/lib/advanced_billing/models/group_target_type.rb +16 -0
  80. data/lib/advanced_billing/models/group_type.rb +13 -0
  81. data/lib/advanced_billing/models/include_not_null.rb +6 -0
  82. data/lib/advanced_billing/models/include_null_or_not_null.rb +13 -0
  83. data/lib/advanced_billing/models/include_option.rb +13 -0
  84. data/lib/advanced_billing/models/interval_unit.rb +13 -0
  85. data/lib/advanced_billing/models/invoice_consolidation_level.rb +14 -0
  86. data/lib/advanced_billing/models/invoice_date_field.rb +16 -0
  87. data/lib/advanced_billing/models/invoice_discount_source_type.rb +14 -0
  88. data/lib/advanced_billing/models/invoice_discount_type.rb +14 -0
  89. data/lib/advanced_billing/models/invoice_event_payment_method.rb +16 -0
  90. data/lib/advanced_billing/models/invoice_event_type.rb +26 -0
  91. data/lib/advanced_billing/models/invoice_payment_method_type.rb +17 -0
  92. data/lib/advanced_billing/models/invoice_payment_type.rb +15 -0
  93. data/lib/advanced_billing/models/invoice_role.rb +21 -0
  94. data/lib/advanced_billing/models/invoice_sort_field.rb +19 -0
  95. data/lib/advanced_billing/models/invoice_status.rb +18 -0
  96. data/lib/advanced_billing/models/item_category.rb +16 -0
  97. data/lib/advanced_billing/models/line_item_kind.rb +21 -0
  98. data/lib/advanced_billing/models/line_item_transaction_type.rb +18 -0
  99. data/lib/advanced_billing/models/list_components_price_points_include.rb +6 -0
  100. data/lib/advanced_billing/models/list_coupons_filter.rb +22 -6
  101. data/lib/advanced_billing/models/list_events_date_field.rb +6 -0
  102. data/lib/advanced_billing/models/list_prepayment_date_field.rb +13 -0
  103. data/lib/advanced_billing/models/list_products_include.rb +6 -0
  104. data/lib/advanced_billing/models/list_products_price_points_include.rb +6 -0
  105. data/lib/advanced_billing/models/list_subscription_components_include.rb +13 -0
  106. data/lib/advanced_billing/models/list_subscription_components_sort.rb +13 -0
  107. data/lib/advanced_billing/models/metafield.rb +8 -11
  108. data/lib/advanced_billing/models/metafield_input.rb +18 -5
  109. data/lib/advanced_billing/models/metafield_scope.rb +9 -4
  110. data/lib/advanced_billing/models/metered_component.rb +2 -2
  111. data/lib/advanced_billing/models/nested_subscription_group.rb +10 -0
  112. data/lib/advanced_billing/models/on_off_component.rb +2 -2
  113. data/lib/advanced_billing/models/pay_pal_vault.rb +15 -0
  114. data/lib/advanced_billing/models/payment_profile_attributes.rb +3 -3
  115. data/lib/advanced_billing/models/payment_type.rb +15 -0
  116. data/lib/advanced_billing/models/prepaid_configuration.rb +10 -0
  117. data/lib/advanced_billing/models/prepaid_usage_component.rb +2 -2
  118. data/lib/advanced_billing/models/prepayment_method.rb +18 -0
  119. data/lib/advanced_billing/models/price_point_type.rb +14 -0
  120. data/lib/advanced_billing/models/pricing_scheme.rb +15 -0
  121. data/lib/advanced_billing/models/product.rb +18 -8
  122. data/lib/advanced_billing/models/product_family.rb +10 -0
  123. data/lib/advanced_billing/models/product_price_point.rb +8 -3
  124. data/lib/advanced_billing/models/proforma_invoice_discount_source_type.rb +13 -0
  125. data/lib/advanced_billing/models/proforma_invoice_role.rb +15 -0
  126. data/lib/advanced_billing/models/proforma_invoice_status.rb +14 -0
  127. data/lib/advanced_billing/models/proforma_invoice_tax_source_type.rb +13 -0
  128. data/lib/advanced_billing/models/public_signup_page.rb +10 -0
  129. data/lib/advanced_billing/models/quantity_based_component.rb +2 -2
  130. data/lib/advanced_billing/models/reactivation_charge.rb +14 -0
  131. data/lib/advanced_billing/models/recurring_scheme.rb +14 -0
  132. data/lib/advanced_billing/models/resource_type.rb +13 -0
  133. data/lib/advanced_billing/models/restriction_type.rb +13 -0
  134. data/lib/advanced_billing/models/resume_options.rb +1 -1
  135. data/lib/advanced_billing/models/resumption_charge.rb +14 -0
  136. data/lib/advanced_billing/models/service_credit_type.rb +13 -0
  137. data/lib/advanced_billing/models/snap_day.rb +7 -2
  138. data/lib/advanced_billing/models/sorting_direction.rb +13 -0
  139. data/lib/advanced_billing/models/subscription.rb +16 -3
  140. data/lib/advanced_billing/models/subscription_custom_price.rb +23 -7
  141. data/lib/advanced_billing/models/subscription_date_field.rb +20 -0
  142. data/lib/advanced_billing/models/subscription_group_include.rb +6 -0
  143. data/lib/advanced_billing/models/subscription_group_prepayment_method.rb +17 -0
  144. data/lib/advanced_billing/models/subscription_groups_list_include.rb +6 -0
  145. data/lib/advanced_billing/models/subscription_include.rb +13 -0
  146. data/lib/advanced_billing/models/subscription_included_coupon.rb +10 -0
  147. data/lib/advanced_billing/models/subscription_list_date_field.rb +6 -0
  148. data/lib/advanced_billing/models/subscription_list_include.rb +6 -0
  149. data/lib/advanced_billing/models/subscription_purge_type.rb +13 -0
  150. data/lib/advanced_billing/models/subscription_sort.rb +17 -0
  151. data/lib/advanced_billing/models/subscription_state.rb +26 -0
  152. data/lib/advanced_billing/models/subscription_state_filter.rb +23 -0
  153. data/lib/advanced_billing/models/tax_configuration_kind.rb +15 -0
  154. data/lib/advanced_billing/models/tax_destination_address.rb +15 -0
  155. data/lib/advanced_billing/models/trial_type.rb +41 -0
  156. data/lib/advanced_billing/models/update_component.rb +2 -2
  157. data/lib/advanced_billing/models/update_metafield.rb +4 -6
  158. data/lib/advanced_billing/models/update_payment_profile.rb +3 -3
  159. data/lib/advanced_billing/models/update_subscription.rb +1 -0
  160. data/lib/advanced_billing/models/webhook_order.rb +13 -0
  161. data/lib/advanced_billing/models/webhook_status.rb +15 -0
  162. data/lib/advanced_billing/models/webhook_subscription.rb +46 -0
  163. data/lib/advanced_billing/utilities/union_type_lookup.rb +18 -5
  164. data/lib/advanced_billing.rb +1 -0
  165. metadata +8 -6
@@ -49,5 +49,28 @@ module AdvancedBilling
49
49
 
50
50
  SUBSCRIPTION_STATE_FILTER.include?(value)
51
51
  end
52
+
53
+ def self.from_value(value, default_value = ACTIVE)
54
+ return default_value if value.nil?
55
+
56
+ str = value.to_s.strip
57
+
58
+ case str.downcase
59
+ when 'active' then ACTIVE
60
+ when 'canceled' then CANCELED
61
+ when 'expired' then EXPIRED
62
+ when 'expired_cards' then EXPIRED_CARDS
63
+ when 'on_hold' then ON_HOLD
64
+ when 'past_due' then PAST_DUE
65
+ when 'pending_cancellation' then PENDING_CANCELLATION
66
+ when 'pending_renewal' then PENDING_RENEWAL
67
+ when 'suspended' then SUSPENDED
68
+ when 'trial_ended' then TRIAL_ENDED
69
+ when 'trialing' then TRIALING
70
+ when 'unpaid' then UNPAID
71
+ else
72
+ default_value
73
+ end
74
+ end
52
75
  end
53
76
  end
@@ -25,5 +25,20 @@ module AdvancedBilling
25
25
 
26
26
  TAX_CONFIGURATION_KIND.include?(value)
27
27
  end
28
+
29
+ def self.from_value(value, default_value = CUSTOM)
30
+ return default_value if value.nil?
31
+
32
+ str = value.to_s.strip
33
+
34
+ case str.downcase
35
+ when 'custom' then CUSTOM
36
+ when 'enum_managed_avalara' then ENUM_MANAGED_AVALARA
37
+ when 'enum_linked_avalara' then ENUM_LINKED_AVALARA
38
+ when 'enum_digital_river' then ENUM_DIGITAL_RIVER
39
+ else
40
+ default_value
41
+ end
42
+ end
28
43
  end
29
44
  end
@@ -25,5 +25,20 @@ module AdvancedBilling
25
25
 
26
26
  TAX_DESTINATION_ADDRESS.include?(value)
27
27
  end
28
+
29
+ def self.from_value(value, default_value = SHIPPING_THEN_BILLING)
30
+ return default_value if value.nil?
31
+
32
+ str = value.to_s.strip
33
+
34
+ case str.downcase
35
+ when 'shipping_then_billing' then SHIPPING_THEN_BILLING
36
+ when 'billing_then_shipping' then BILLING_THEN_SHIPPING
37
+ when 'shipping_only' then SHIPPING_ONLY
38
+ when 'billing_only' then BILLING_ONLY
39
+ else
40
+ default_value
41
+ end
42
+ end
28
43
  end
29
44
  end
@@ -0,0 +1,41 @@
1
+ # advanced_billing
2
+ #
3
+ # This file was automatically generated for Maxio by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
+
6
+ module AdvancedBilling
7
+ # Indicates how a trial is handled when the trail period ends and there is no
8
+ # credit card on file. For `no_obligation`, the subscription transitions to a
9
+ # Trial Ended state. Maxio will not send any emails or statements. For
10
+ # `payment_expected`, the subscription transitions to a Past Due state. Maxio
11
+ # will send normal dunning emails and statements according to your other
12
+ # settings.
13
+ class TrialType
14
+ TRIAL_TYPE = [
15
+ # TODO: Write general description for NO_OBLIGATION
16
+ NO_OBLIGATION = 'no_obligation'.freeze,
17
+
18
+ # TODO: Write general description for PAYMENT_EXPECTED
19
+ PAYMENT_EXPECTED = 'payment_expected'.freeze
20
+ ].freeze
21
+
22
+ def self.validate(value)
23
+ return false if value.nil?
24
+
25
+ TRIAL_TYPE.include?(value)
26
+ end
27
+
28
+ def self.from_value(value, default_value = NO_OBLIGATION)
29
+ return default_value if value.nil?
30
+
31
+ str = value.to_s.strip
32
+
33
+ case str.downcase
34
+ when 'no_obligation' then NO_OBLIGATION
35
+ when 'payment_expected' then PAYMENT_EXPECTED
36
+ else
37
+ default_value
38
+ end
39
+ end
40
+ end
41
+ end
@@ -31,8 +31,8 @@ module AdvancedBilling
31
31
  attr_accessor :taxable
32
32
 
33
33
  # A string representing the tax code related to the component type. This is
34
- # especially important when using the Avalara service to tax based on
35
- # locale. This attribute has a max length of 10 characters.
34
+ # especially important when using AvaTax to tax based on locale. This
35
+ # attribute has a max length of 25 characters.
36
36
  # @return [String]
37
37
  attr_accessor :tax_code
38
38
 
@@ -23,15 +23,13 @@ module AdvancedBilling
23
23
  # @return [MetafieldScope]
24
24
  attr_accessor :scope
25
25
 
26
- # Indicates how data should be added to the metafield. For example, a text
27
- # type is just a string, so a given metafield of this type can have any
28
- # value attached. On the other hand, dropdown and radio have a set of
29
- # allowed values that can be input, and appear differently on a Public
30
- # Signup Page. Defaults to 'text'
26
+ # Indicates the type of metafield. A text metafield allows any string value.
27
+ # Dropdown and radio metafields have a set of values that can be selected.
28
+ # Defaults to 'text'.
31
29
  # @return [MetafieldInput]
32
30
  attr_accessor :input_type
33
31
 
34
- # Only applicable when input_type is radio or dropdown
32
+ # Only applicable when input_type is radio or dropdown.
35
33
  # @return [Array[String]]
36
34
  attr_accessor :enum
37
35
 
@@ -68,9 +68,9 @@ module AdvancedBilling
68
68
  # The credit card or bank account billing address country, required in
69
69
  # [ISO_3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
70
70
  # format (i.e. “US”). This value is merely passed through to the payment
71
- # gateway. Some gateways require country codes in a specific format. Please
72
- # check your gateway’s documentation. If creating an ACH subscription, only
73
- # US is supported at this time.
71
+ # gateway. Some gateways require country codes in a specific format. Check
72
+ # your gateway’s documentation. If creating an ACH subscription, only US is
73
+ # supported at this time.
74
74
  # @return [String]
75
75
  attr_accessor :billing_country
76
76
 
@@ -207,6 +207,7 @@ module AdvancedBilling
207
207
  # An array for nullable fields
208
208
  def self.nullables
209
209
  %w[
210
+ snap_day
210
211
  dunning_communication_delay_time_zone
211
212
  ]
212
213
  end
@@ -19,5 +19,18 @@ module AdvancedBilling
19
19
 
20
20
  WEBHOOK_ORDER.include?(value)
21
21
  end
22
+
23
+ def self.from_value(value, default_value = NEWEST_FIRST)
24
+ return default_value if value.nil?
25
+
26
+ str = value.to_s.strip
27
+
28
+ case str.downcase
29
+ when 'newest_first' then NEWEST_FIRST
30
+ when 'oldest_first' then OLDEST_FIRST
31
+ else
32
+ default_value
33
+ end
34
+ end
22
35
  end
23
36
  end
@@ -25,5 +25,20 @@ module AdvancedBilling
25
25
 
26
26
  WEBHOOK_STATUS.include?(value)
27
27
  end
28
+
29
+ def self.from_value(value, default_value = SUCCESSFUL)
30
+ return default_value if value.nil?
31
+
32
+ str = value.to_s.strip
33
+
34
+ case str.downcase
35
+ when 'successful' then SUCCESSFUL
36
+ when 'failed' then FAILED
37
+ when 'pending' then PENDING
38
+ when 'paused' then PAUSED
39
+ else
40
+ default_value
41
+ end
42
+ end
28
43
  end
29
44
  end
@@ -120,5 +120,51 @@ module AdvancedBilling
120
120
 
121
121
  WEBHOOK_SUBSCRIPTION.include?(value)
122
122
  end
123
+
124
+ def self.from_value(value, default_value = BILLING_DATE_CHANGE)
125
+ return default_value if value.nil?
126
+
127
+ str = value.to_s.strip
128
+
129
+ case str.downcase
130
+ when 'billing_date_change' then BILLING_DATE_CHANGE
131
+ when 'component_allocation_change' then COMPONENT_ALLOCATION_CHANGE
132
+ when 'customer_create' then CUSTOMER_CREATE
133
+ when 'customer_update' then CUSTOMER_UPDATE
134
+ when 'dunning_step_reached' then DUNNING_STEP_REACHED
135
+ when 'expiring_card' then EXPIRING_CARD
136
+ when 'expiration_date_change' then EXPIRATION_DATE_CHANGE
137
+ when 'invoice_issued' then INVOICE_ISSUED
138
+ when 'metered_usage' then METERED_USAGE
139
+ when 'payment_failure' then PAYMENT_FAILURE
140
+ when 'payment_success' then PAYMENT_SUCCESS
141
+ when 'direct_debit_payment_pending' then DIRECT_DEBIT_PAYMENT_PENDING
142
+ when 'direct_debit_payment_paid_out' then DIRECT_DEBIT_PAYMENT_PAID_OUT
143
+ when 'direct_debit_payment_rejected' then DIRECT_DEBIT_PAYMENT_REJECTED
144
+ when 'prepaid_subscription_balance_changed' then PREPAID_SUBSCRIPTION_BALANCE_CHANGED
145
+ when 'prepaid_usage' then PREPAID_USAGE
146
+ when 'refund_failure' then REFUND_FAILURE
147
+ when 'refund_success' then REFUND_SUCCESS
148
+ when 'renewal_failure' then RENEWAL_FAILURE
149
+ when 'renewal_success' then RENEWAL_SUCCESS
150
+ when 'signup_failure' then SIGNUP_FAILURE
151
+ when 'signup_success' then SIGNUP_SUCCESS
152
+ when 'statement_closed' then STATEMENT_CLOSED
153
+ when 'statement_settled' then STATEMENT_SETTLED
154
+ when 'subscription_card_update' then SUBSCRIPTION_CARD_UPDATE
155
+ when 'subscription_group_card_update' then SUBSCRIPTION_GROUP_CARD_UPDATE
156
+ when 'subscription_product_change' then SUBSCRIPTION_PRODUCT_CHANGE
157
+ when 'subscription_state_change' then SUBSCRIPTION_STATE_CHANGE
158
+ when 'trial_end_notice' then TRIAL_END_NOTICE
159
+ when 'upcoming_renewal_notice' then UPCOMING_RENEWAL_NOTICE
160
+ when 'upgrade_downgrade_failure' then UPGRADE_DOWNGRADE_FAILURE
161
+ when 'upgrade_downgrade_success' then UPGRADE_DOWNGRADE_SUCCESS
162
+ when 'pending_cancellation_change' then PENDING_CANCELLATION_CHANGE
163
+ when 'subscription_prepayment_account_balance_changed' then SUBSCRIPTION_PREPAYMENT_ACCOUNT_BALANCE_CHANGED
164
+ when 'subscription_service_credit_account_balance_changed' then SUBSCRIPTION_SERVICE_CREDIT_ACCOUNT_BALANCE_CHANGED
165
+ else
166
+ default_value
167
+ end
168
+ end
123
169
  end
124
170
  end
@@ -275,10 +275,11 @@ module AdvancedBilling
275
275
  :CalendarBillingSnapDay => OneOf.new(
276
276
  [
277
277
  LeafType.new(Integer),
278
- LeafType.new(String)
278
+ LeafType.new(SnapDay)
279
279
  ],
280
280
  UnionTypeContext.new(
281
- is_optional: true
281
+ is_optional: true,
282
+ is_nullable: true
282
283
  )
283
284
  ),
284
285
 
@@ -850,6 +851,17 @@ module AdvancedBilling
850
851
  )
851
852
  ),
852
853
 
854
+ :SubscriptionSnapDay => OneOf.new(
855
+ [
856
+ LeafType.new(Integer),
857
+ LeafType.new(SnapDay)
858
+ ],
859
+ UnionTypeContext.new(
860
+ is_optional: true,
861
+ is_nullable: true
862
+ )
863
+ ),
864
+
853
865
  :SubscriptionComponentAllocatedQuantity => OneOf.new(
854
866
  [
855
867
  LeafType.new(Integer),
@@ -1036,11 +1048,12 @@ module AdvancedBilling
1036
1048
 
1037
1049
  :UpdateSubscriptionSnapDay => OneOf.new(
1038
1050
  [
1039
- LeafType.new(SnapDay),
1040
- LeafType.new(Integer)
1051
+ LeafType.new(Integer),
1052
+ LeafType.new(SnapDay)
1041
1053
  ],
1042
1054
  UnionTypeContext.new(
1043
- is_optional: true
1055
+ is_optional: true,
1056
+ is_nullable: true
1044
1057
  )
1045
1058
  ),
1046
1059
 
@@ -623,6 +623,7 @@ require_relative 'advanced_billing/models/subscription_state'
623
623
  require_relative 'advanced_billing/models/subscription_state_filter'
624
624
  require_relative 'advanced_billing/models/tax_configuration_kind'
625
625
  require_relative 'advanced_billing/models/tax_destination_address'
626
+ require_relative 'advanced_billing/models/trial_type'
626
627
  require_relative 'advanced_billing/models/webhook_order'
627
628
  require_relative 'advanced_billing/models/webhook_status'
628
629
  require_relative 'advanced_billing/models/webhook_subscription'
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: 7.0.1
4
+ version: 8.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: 2025-09-11 00:00:00.000000000 Z
11
+ date: 2025-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apimatic_core_interfaces
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.2
19
+ version: 0.2.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.2
26
+ version: 0.2.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: apimatic_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.3.19
33
+ version: 0.3.20
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.3.19
40
+ version: 0.3.20
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: apimatic_faraday_client_adapter
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -63,6 +63,7 @@ extra_rdoc_files: []
63
63
  files:
64
64
  - LICENSE
65
65
  - README.md
66
+ - bin/console
66
67
  - lib/advanced_billing.rb
67
68
  - lib/advanced_billing/api_helper.rb
68
69
  - lib/advanced_billing/client.rb
@@ -661,6 +662,7 @@ files:
661
662
  - lib/advanced_billing/models/tax_configuration_kind.rb
662
663
  - lib/advanced_billing/models/tax_destination_address.rb
663
664
  - lib/advanced_billing/models/too_many_management_link_requests.rb
665
+ - lib/advanced_billing/models/trial_type.rb
664
666
  - lib/advanced_billing/models/update_allocation_expiration_date.rb
665
667
  - lib/advanced_billing/models/update_component.rb
666
668
  - lib/advanced_billing/models/update_component_price_point.rb