maxio-advanced-billing-sdk 3.0.0 → 4.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 +42 -41
- data/lib/advanced_billing/client.rb +7 -1
- data/lib/advanced_billing/configuration.rb +1 -1
- data/lib/advanced_billing/controllers/base_controller.rb +1 -1
- data/lib/advanced_billing/controllers/component_price_points_controller.rb +420 -0
- data/lib/advanced_billing/controllers/components_controller.rb +0 -347
- data/lib/advanced_billing/controllers/product_families_controller.rb +2 -2
- data/lib/advanced_billing/controllers/product_price_points_controller.rb +16 -9
- data/lib/advanced_billing/controllers/products_controller.rb +2 -2
- data/lib/advanced_billing/models/account_balance.rb +6 -8
- data/lib/advanced_billing/models/account_balances.rb +9 -12
- data/lib/advanced_billing/models/ach_agreement.rb +8 -10
- data/lib/advanced_billing/models/activate_subscription_request.rb +3 -4
- data/lib/advanced_billing/models/add_coupons_request.rb +3 -4
- data/lib/advanced_billing/models/add_subscription_to_a_group.rb +3 -4
- data/lib/advanced_billing/models/address_change.rb +4 -6
- data/lib/advanced_billing/models/agreement_acceptance.rb +10 -14
- data/lib/advanced_billing/models/allocate_components.rb +14 -18
- data/lib/advanced_billing/models/allocation.rb +39 -52
- data/lib/advanced_billing/models/allocation_expiration_date.rb +3 -4
- data/lib/advanced_billing/models/allocation_preview.rb +20 -28
- data/lib/advanced_billing/models/allocation_preview_item.rb +28 -38
- data/lib/advanced_billing/models/allocation_preview_line_item.rb +15 -20
- data/lib/advanced_billing/models/allocation_preview_response.rb +3 -4
- data/lib/advanced_billing/models/allocation_response.rb +3 -4
- data/lib/advanced_billing/models/allocation_settings.rb +6 -8
- data/lib/advanced_billing/models/applied_credit_note_data.rb +4 -6
- data/lib/advanced_billing/models/apply_credit_note_event.rb +9 -12
- data/lib/advanced_billing/models/apply_credit_note_event_data.rb +15 -22
- data/lib/advanced_billing/models/apply_debit_note_event.rb +9 -12
- data/lib/advanced_billing/models/apply_debit_note_event_data.rb +10 -14
- data/lib/advanced_billing/models/apply_payment_event.rb +9 -12
- data/lib/advanced_billing/models/apply_payment_event_data.rb +17 -24
- data/lib/advanced_billing/models/attribute_error.rb +3 -4
- data/lib/advanced_billing/models/auto_resume.rb +3 -4
- data/lib/advanced_billing/models/backport_invoice_event.rb +9 -12
- data/lib/advanced_billing/models/bank_account_attributes.rb +19 -26
- data/lib/advanced_billing/models/bank_account_payment_profile.rb +34 -46
- data/lib/advanced_billing/models/bank_account_response.rb +3 -4
- data/lib/advanced_billing/models/bank_account_verification.rb +5 -6
- data/lib/advanced_billing/models/bank_account_verification_request.rb +3 -4
- data/lib/advanced_billing/models/base_refund_error.rb +3 -4
- data/lib/advanced_billing/models/base_string_error.rb +3 -4
- data/lib/advanced_billing/models/batch_job.rb +8 -12
- data/lib/advanced_billing/models/batch_job_response.rb +3 -4
- data/lib/advanced_billing/models/billing_manifest.rb +15 -20
- data/lib/advanced_billing/models/billing_manifest_item.rb +22 -30
- data/lib/advanced_billing/models/billing_schedule.rb +3 -4
- data/lib/advanced_billing/models/breakouts.rb +8 -10
- data/lib/advanced_billing/models/bulk_components_price_point_assignment.rb +3 -4
- data/lib/advanced_billing/models/bulk_create_product_price_points_request.rb +3 -4
- data/lib/advanced_billing/models/bulk_create_product_price_points_response.rb +3 -4
- data/lib/advanced_billing/models/bulk_create_segments.rb +3 -4
- data/lib/advanced_billing/models/bulk_update_segments.rb +3 -4
- data/lib/advanced_billing/models/bulk_update_segments_item.rb +5 -8
- data/lib/advanced_billing/models/calendar_billing.rb +5 -6
- data/lib/advanced_billing/models/cancel_grouped_subscriptions_request.rb +3 -4
- data/lib/advanced_billing/models/cancellation_options.rb +5 -6
- data/lib/advanced_billing/models/cancellation_request.rb +3 -4
- data/lib/advanced_billing/models/change_chargeback_status_event.rb +9 -12
- data/lib/advanced_billing/models/change_chargeback_status_event_data.rb +3 -4
- data/lib/advanced_billing/models/change_invoice_collection_method_event.rb +11 -12
- data/lib/advanced_billing/models/change_invoice_collection_method_event_data.rb +5 -6
- data/lib/advanced_billing/models/change_invoice_status_event.rb +9 -12
- data/lib/advanced_billing/models/change_invoice_status_event_data.rb +9 -12
- data/lib/advanced_billing/models/chargify_ebb.rb +10 -14
- data/lib/advanced_billing/models/component.rb +49 -70
- data/lib/advanced_billing/models/component_allocation_change.rb +11 -16
- data/lib/advanced_billing/models/component_allocation_error_item.rb +7 -10
- data/lib/advanced_billing/models/component_cost_data.rb +11 -16
- data/lib/advanced_billing/models/component_cost_data_rate_tier.rb +9 -12
- data/lib/advanced_billing/models/component_currency_price.rb +10 -14
- data/lib/advanced_billing/models/component_currency_prices_response.rb +3 -4
- data/lib/advanced_billing/models/component_custom_price.rb +7 -10
- data/lib/advanced_billing/models/component_price.rb +13 -18
- data/lib/advanced_billing/models/component_price_point.rb +25 -36
- data/lib/advanced_billing/models/component_price_point_assignment.rb +5 -6
- data/lib/advanced_billing/models/component_price_point_error_item.rb +6 -8
- data/lib/advanced_billing/models/component_price_point_item.rb +10 -14
- data/lib/advanced_billing/models/component_price_point_response.rb +3 -4
- data/lib/advanced_billing/models/component_price_points_response.rb +4 -6
- data/lib/advanced_billing/models/component_response.rb +3 -4
- data/lib/advanced_billing/models/consolidated_invoice.rb +3 -4
- data/lib/advanced_billing/models/count_response.rb +3 -4
- data/lib/advanced_billing/models/coupon.rb +45 -62
- data/lib/advanced_billing/models/coupon_currency.rb +7 -10
- data/lib/advanced_billing/models/coupon_currency_request.rb +3 -4
- data/lib/advanced_billing/models/coupon_currency_response.rb +3 -4
- data/lib/advanced_billing/models/coupon_response.rb +3 -4
- data/lib/advanced_billing/models/coupon_restriction.rb +8 -12
- data/lib/advanced_billing/models/coupon_subcodes.rb +3 -4
- data/lib/advanced_billing/models/coupon_subcodes_response.rb +6 -8
- data/lib/advanced_billing/models/coupon_usage.rb +11 -16
- data/lib/advanced_billing/models/create_allocation.rb +18 -24
- data/lib/advanced_billing/models/create_allocation_request.rb +3 -4
- data/lib/advanced_billing/models/create_component_price_point.rb +13 -18
- data/lib/advanced_billing/models/create_component_price_point_request.rb +3 -4
- data/lib/advanced_billing/models/create_component_price_points_request.rb +3 -4
- data/lib/advanced_billing/models/create_credit_note_event.rb +9 -12
- data/lib/advanced_billing/models/create_currency_price.rb +6 -8
- data/lib/advanced_billing/models/create_currency_prices_request.rb +3 -4
- data/lib/advanced_billing/models/create_customer.rb +25 -38
- data/lib/advanced_billing/models/create_customer_request.rb +3 -4
- data/lib/advanced_billing/models/create_debit_note_event.rb +9 -12
- data/lib/advanced_billing/models/create_ebb_component.rb +3 -4
- data/lib/advanced_billing/models/create_invoice.rb +15 -22
- data/lib/advanced_billing/models/create_invoice_address.rb +13 -20
- data/lib/advanced_billing/models/create_invoice_coupon.rb +10 -14
- data/lib/advanced_billing/models/create_invoice_item.rb +18 -26
- data/lib/advanced_billing/models/create_invoice_payment.rb +8 -12
- data/lib/advanced_billing/models/create_invoice_payment_application.rb +4 -6
- data/lib/advanced_billing/models/create_invoice_payment_request.rb +4 -6
- data/lib/advanced_billing/models/create_invoice_request.rb +3 -4
- data/lib/advanced_billing/models/create_metadata.rb +4 -6
- data/lib/advanced_billing/models/create_metadata_request.rb +3 -4
- data/lib/advanced_billing/models/create_metafield.rb +7 -10
- data/lib/advanced_billing/models/create_metafields_request.rb +3 -4
- data/lib/advanced_billing/models/create_metered_component.rb +3 -4
- data/lib/advanced_billing/models/create_multi_invoice_payment.rb +9 -14
- data/lib/advanced_billing/models/create_multi_invoice_payment_request.rb +3 -4
- data/lib/advanced_billing/models/create_offer.rb +11 -16
- data/lib/advanced_billing/models/create_offer_component.rb +6 -8
- data/lib/advanced_billing/models/create_offer_request.rb +3 -4
- data/lib/advanced_billing/models/create_on_off_component.rb +3 -4
- data/lib/advanced_billing/models/create_or_update_coupon.rb +6 -8
- data/lib/advanced_billing/models/create_or_update_endpoint.rb +4 -6
- data/lib/advanced_billing/models/create_or_update_endpoint_request.rb +3 -4
- data/lib/advanced_billing/models/create_or_update_flat_amount_coupon.rb +22 -28
- data/lib/advanced_billing/models/create_or_update_percentage_coupon.rb +22 -28
- data/lib/advanced_billing/models/create_or_update_product.rb +25 -34
- data/lib/advanced_billing/models/create_or_update_product_request.rb +3 -4
- data/lib/advanced_billing/models/create_or_update_segment_price.rb +6 -8
- data/lib/advanced_billing/models/create_payment.rb +7 -10
- data/lib/advanced_billing/models/create_payment_profile.rb +47 -66
- data/lib/advanced_billing/models/create_payment_profile_request.rb +3 -4
- data/lib/advanced_billing/models/create_prepaid_component.rb +3 -4
- data/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb +16 -22
- data/lib/advanced_billing/models/create_prepayment.rb +8 -12
- data/lib/advanced_billing/models/create_prepayment_request.rb +3 -4
- data/lib/advanced_billing/models/create_prepayment_response.rb +3 -4
- data/lib/advanced_billing/models/create_product_currency_price.rb +5 -8
- data/lib/advanced_billing/models/create_product_currency_prices_request.rb +3 -4
- data/lib/advanced_billing/models/create_product_family.rb +6 -8
- data/lib/advanced_billing/models/create_product_family_request.rb +3 -4
- data/lib/advanced_billing/models/create_product_price_point.rb +22 -30
- data/lib/advanced_billing/models/create_product_price_point_request.rb +3 -4
- data/lib/advanced_billing/models/create_quantity_based_component.rb +3 -4
- data/lib/advanced_billing/models/create_reason_code.rb +6 -8
- data/lib/advanced_billing/models/create_reason_code_request.rb +3 -4
- data/lib/advanced_billing/models/create_segment.rb +12 -14
- data/lib/advanced_billing/models/create_segment_request.rb +3 -4
- data/lib/advanced_billing/models/create_subscription.rb +78 -100
- data/lib/advanced_billing/models/create_subscription_component.rb +12 -16
- data/lib/advanced_billing/models/create_subscription_group.rb +5 -6
- data/lib/advanced_billing/models/create_subscription_group_request.rb +3 -4
- data/lib/advanced_billing/models/create_subscription_request.rb +3 -4
- data/lib/advanced_billing/models/create_usage.rb +7 -10
- data/lib/advanced_billing/models/create_usage_request.rb +3 -4
- data/lib/advanced_billing/models/created_prepayment.rb +12 -16
- data/lib/advanced_billing/models/credit_account_balance_changed.rb +9 -12
- data/lib/advanced_billing/models/credit_card_attributes.rb +6 -8
- data/lib/advanced_billing/models/credit_card_payment_profile.rb +33 -46
- data/lib/advanced_billing/models/credit_note.rb +38 -56
- data/lib/advanced_billing/models/credit_note_application.rb +8 -12
- data/lib/advanced_billing/models/credit_note_line_item.rb +27 -38
- data/lib/advanced_billing/models/credit_scheme_request.rb +3 -4
- data/lib/advanced_billing/models/currency_price.rb +10 -14
- data/lib/advanced_billing/models/currency_prices_response.rb +3 -4
- data/lib/advanced_billing/models/custom_field_value_change.rb +11 -16
- data/lib/advanced_billing/models/customer.rb +39 -56
- data/lib/advanced_billing/models/customer_attributes.rb +25 -38
- data/lib/advanced_billing/models/customer_change.rb +7 -10
- data/lib/advanced_billing/models/customer_changes_preview_response.rb +3 -4
- data/lib/advanced_billing/models/customer_custom_fields_change.rb +4 -6
- data/lib/advanced_billing/models/customer_error.rb +3 -4
- data/lib/advanced_billing/models/customer_payer_change.rb +4 -6
- data/lib/advanced_billing/models/customer_response.rb +3 -4
- data/lib/advanced_billing/models/debit_note.rb +33 -48
- data/lib/advanced_billing/models/deduct_service_credit.rb +4 -6
- data/lib/advanced_billing/models/deduct_service_credit_request.rb +3 -4
- data/lib/advanced_billing/models/delayed_cancellation_response.rb +3 -4
- data/lib/advanced_billing/models/delete_subscription_group_response.rb +4 -6
- data/lib/advanced_billing/models/dunner_data.rb +10 -14
- data/lib/advanced_billing/models/dunning_step_data.rb +12 -18
- data/lib/advanced_billing/models/dunning_step_reached.rb +6 -8
- data/lib/advanced_billing/models/ebb_component.rb +26 -36
- data/lib/advanced_billing/models/ebb_event.rb +3 -4
- data/lib/advanced_billing/models/enable_webhooks_request.rb +3 -4
- data/lib/advanced_billing/models/enable_webhooks_response.rb +3 -4
- data/lib/advanced_billing/models/endpoint.rb +8 -12
- data/lib/advanced_billing/models/endpoint_response.rb +3 -4
- data/lib/advanced_billing/models/errors.rb +4 -6
- data/lib/advanced_billing/models/event.rb +10 -16
- data/lib/advanced_billing/models/event_based_billing_segment_error.rb +3 -4
- data/lib/advanced_billing/models/event_response.rb +3 -4
- data/lib/advanced_billing/models/failed_payment_event.rb +9 -12
- data/lib/advanced_billing/models/failed_payment_event_data.rb +8 -12
- data/lib/advanced_billing/models/full_subscription_group_response.rb +19 -26
- data/lib/advanced_billing/models/get_one_time_token_payment_profile.rb +30 -44
- data/lib/advanced_billing/models/get_one_time_token_request.rb +3 -4
- data/lib/advanced_billing/models/group_billing.rb +6 -8
- data/lib/advanced_billing/models/group_settings.rb +4 -6
- data/lib/advanced_billing/models/group_target.rb +4 -6
- data/lib/advanced_billing/models/historic_usage.rb +6 -8
- data/lib/advanced_billing/models/invoice.rb +74 -106
- data/lib/advanced_billing/models/invoice_address.rb +9 -14
- data/lib/advanced_billing/models/invoice_balance_item.rb +6 -8
- data/lib/advanced_billing/models/invoice_credit.rb +11 -16
- data/lib/advanced_billing/models/invoice_custom_field.rb +8 -12
- data/lib/advanced_billing/models/invoice_customer.rb +11 -16
- data/lib/advanced_billing/models/invoice_discount.rb +18 -26
- data/lib/advanced_billing/models/invoice_discount_breakout.rb +6 -8
- data/lib/advanced_billing/models/invoice_display_settings.rb +5 -6
- data/lib/advanced_billing/models/invoice_issued.rb +20 -32
- data/lib/advanced_billing/models/invoice_line_item.rb +32 -46
- data/lib/advanced_billing/models/invoice_line_item_component_cost_data.rb +3 -4
- data/lib/advanced_billing/models/invoice_line_item_event_data.rb +30 -42
- data/lib/advanced_billing/models/invoice_line_item_pricing_detail.rb +4 -6
- data/lib/advanced_billing/models/invoice_payer.rb +10 -14
- data/lib/advanced_billing/models/invoice_payer_change.rb +7 -10
- data/lib/advanced_billing/models/invoice_payment.rb +16 -22
- data/lib/advanced_billing/models/invoice_payment_application.rb +6 -8
- data/lib/advanced_billing/models/invoice_payment_method.rb +12 -18
- data/lib/advanced_billing/models/invoice_pre_payment.rb +6 -8
- data/lib/advanced_billing/models/invoice_previous_balance.rb +4 -6
- data/lib/advanced_billing/models/invoice_refund.rb +13 -18
- data/lib/advanced_billing/models/invoice_response.rb +3 -4
- data/lib/advanced_billing/models/invoice_seller.rb +7 -10
- data/lib/advanced_billing/models/invoice_tax.rb +17 -24
- data/lib/advanced_billing/models/invoice_tax_breakout.rb +7 -10
- data/lib/advanced_billing/models/invoice_tax_component_breakout.rb +7 -10
- data/lib/advanced_billing/models/issue_advance_invoice_request.rb +3 -4
- data/lib/advanced_billing/models/issue_invoice_event.rb +9 -12
- data/lib/advanced_billing/models/issue_invoice_event_data.rb +8 -12
- data/lib/advanced_billing/models/issue_invoice_request.rb +4 -4
- data/lib/advanced_billing/models/issue_service_credit.rb +4 -6
- data/lib/advanced_billing/models/issue_service_credit_request.rb +3 -4
- data/lib/advanced_billing/models/item_price_point_changed.rb +10 -14
- data/lib/advanced_billing/models/item_price_point_data.rb +6 -8
- data/lib/advanced_billing/models/list_components_filter.rb +5 -6
- data/lib/advanced_billing/models/list_components_price_points_response.rb +3 -4
- data/lib/advanced_billing/models/list_coupons_filter.rb +13 -18
- data/lib/advanced_billing/models/list_credit_notes_response.rb +3 -4
- data/lib/advanced_billing/models/list_invoice_events_response.rb +7 -10
- data/lib/advanced_billing/models/list_invoices_response.rb +3 -4
- data/lib/advanced_billing/models/list_metafields_response.rb +8 -12
- data/lib/advanced_billing/models/list_mrr_filter.rb +3 -4
- data/lib/advanced_billing/models/list_mrr_response.rb +3 -4
- data/lib/advanced_billing/models/list_mrr_response_result.rb +11 -16
- data/lib/advanced_billing/models/list_offers_response.rb +3 -4
- data/lib/advanced_billing/models/list_prepayments_filter.rb +6 -8
- data/lib/advanced_billing/models/list_price_points_filter.rb +12 -18
- data/lib/advanced_billing/models/list_product_price_points_response.rb +3 -4
- data/lib/advanced_billing/models/list_products_filter.rb +5 -6
- data/lib/advanced_billing/models/list_proforma_invoices_meta.rb +7 -10
- data/lib/advanced_billing/models/list_proforma_invoices_response.rb +5 -6
- data/lib/advanced_billing/models/list_public_keys_meta.rb +7 -10
- data/lib/advanced_billing/models/list_public_keys_response.rb +5 -6
- data/lib/advanced_billing/models/list_sale_rep_item.rb +8 -12
- data/lib/advanced_billing/models/list_segments_filter.rb +9 -10
- data/lib/advanced_billing/models/list_segments_response.rb +3 -4
- data/lib/advanced_billing/models/list_subcription_group_prepayment_item.rb +15 -20
- data/lib/advanced_billing/models/list_subscription_components_filter.rb +5 -6
- data/lib/advanced_billing/models/list_subscription_components_for_site_filter.rb +6 -8
- data/lib/advanced_billing/models/list_subscription_components_response.rb +3 -4
- data/lib/advanced_billing/models/list_subscription_group_prepayment.rb +3 -4
- data/lib/advanced_billing/models/list_subscription_group_prepayment_response.rb +3 -4
- data/lib/advanced_billing/models/list_subscription_groups_item.rb +18 -24
- data/lib/advanced_billing/models/list_subscription_groups_meta.rb +5 -6
- data/lib/advanced_billing/models/list_subscription_groups_response.rb +5 -6
- data/lib/advanced_billing/models/metadata.rb +10 -14
- data/lib/advanced_billing/models/metafield.rb +9 -14
- data/lib/advanced_billing/models/metafield_scope.rb +11 -16
- data/lib/advanced_billing/models/metered_component.rb +29 -40
- data/lib/advanced_billing/models/metered_usage.rb +10 -14
- data/lib/advanced_billing/models/movement.rb +14 -20
- data/lib/advanced_billing/models/movement_line_item.rb +14 -20
- data/lib/advanced_billing/models/mrr.rb +10 -14
- data/lib/advanced_billing/models/mrr_movement.rb +7 -10
- data/lib/advanced_billing/models/mrr_response.rb +3 -4
- data/lib/advanced_billing/models/multi_invoice_payment.rb +8 -10
- data/lib/advanced_billing/models/multi_invoice_payment_response.rb +3 -4
- data/lib/advanced_billing/models/nested_subscription_group.rb +7 -10
- data/lib/advanced_billing/models/net_terms.rb +10 -12
- data/lib/advanced_billing/models/offer.rb +28 -40
- data/lib/advanced_billing/models/offer_discount.rb +6 -8
- data/lib/advanced_billing/models/offer_item.rb +17 -22
- data/lib/advanced_billing/models/offer_response.rb +3 -4
- data/lib/advanced_billing/models/offer_signup_page.rb +9 -14
- data/lib/advanced_billing/models/on_off_component.rb +26 -36
- data/lib/advanced_billing/models/organization_address.rb +12 -18
- data/lib/advanced_billing/models/origin_invoice.rb +4 -6
- data/lib/advanced_billing/models/overage_pricing.rb +4 -6
- data/lib/advanced_billing/models/override_subscription.rb +9 -12
- data/lib/advanced_billing/models/override_subscription_request.rb +3 -4
- data/lib/advanced_billing/models/paginated_metadata.rb +8 -12
- data/lib/advanced_billing/models/paid_invoice.rb +7 -10
- data/lib/advanced_billing/models/pause_request.rb +3 -4
- data/lib/advanced_billing/models/payer_attributes.rb +25 -38
- data/lib/advanced_billing/models/payer_error.rb +6 -8
- data/lib/advanced_billing/models/payment_collection_method_changed.rb +4 -6
- data/lib/advanced_billing/models/payment_for_allocation.rb +7 -10
- data/lib/advanced_billing/models/payment_method_apple_pay.rb +3 -4
- data/lib/advanced_billing/models/payment_method_bank_account.rb +6 -8
- data/lib/advanced_billing/models/payment_method_credit_card.rb +9 -12
- data/lib/advanced_billing/models/payment_method_external.rb +6 -10
- data/lib/advanced_billing/models/payment_method_paypal.rb +4 -6
- data/lib/advanced_billing/models/payment_profile_attributes.rb +37 -52
- data/lib/advanced_billing/models/payment_profile_response.rb +3 -4
- data/lib/advanced_billing/models/payment_related_events.rb +5 -6
- data/lib/advanced_billing/models/pending_cancellation_change.rb +4 -6
- data/lib/advanced_billing/models/portal_management_link.rb +10 -14
- data/lib/advanced_billing/models/prepaid_component_price_point.rb +8 -12
- data/lib/advanced_billing/models/prepaid_configuration.rb +10 -12
- data/lib/advanced_billing/models/prepaid_configuration_response.rb +3 -4
- data/lib/advanced_billing/models/prepaid_product_price_point_filter.rb +2 -2
- data/lib/advanced_billing/models/prepaid_subscription_balance_changed.rb +8 -10
- data/lib/advanced_billing/models/prepaid_usage.rb +16 -22
- data/lib/advanced_billing/models/prepaid_usage_allocation_detail.rb +6 -8
- data/lib/advanced_billing/models/prepaid_usage_component.rb +33 -46
- data/lib/advanced_billing/models/prepayment.rb +15 -22
- data/lib/advanced_billing/models/prepayment_account_balance_changed.rb +8 -10
- data/lib/advanced_billing/models/prepayment_response.rb +3 -4
- data/lib/advanced_billing/models/prepayments_response.rb +3 -4
- data/lib/advanced_billing/models/preview_allocations_request.rb +8 -10
- data/lib/advanced_billing/models/price.rb +6 -8
- data/lib/advanced_billing/models/product.rb +56 -76
- data/lib/advanced_billing/models/product_family.rb +11 -16
- data/lib/advanced_billing/models/product_family_response.rb +3 -4
- data/lib/advanced_billing/models/product_price_point.rb +36 -50
- data/lib/advanced_billing/models/product_price_point_errors.rb +10 -14
- data/lib/advanced_billing/models/product_price_point_response.rb +3 -4
- data/lib/advanced_billing/models/product_response.rb +3 -4
- data/lib/advanced_billing/models/proforma_error.rb +3 -4
- data/lib/advanced_billing/models/proforma_invoice.rb +51 -74
- data/lib/advanced_billing/models/proforma_invoice_credit.rb +7 -10
- data/lib/advanced_billing/models/proforma_invoice_discount.rb +13 -18
- data/lib/advanced_billing/models/proforma_invoice_issued.rb +15 -24
- data/lib/advanced_billing/models/proforma_invoice_payment.rb +7 -10
- data/lib/advanced_billing/models/proforma_invoice_tax.rb +11 -16
- data/lib/advanced_billing/models/proration.rb +3 -4
- data/lib/advanced_billing/models/public_key.rb +6 -8
- data/lib/advanced_billing/models/public_signup_page.rb +7 -10
- data/lib/advanced_billing/models/quantity_based_component.rb +30 -42
- data/lib/advanced_billing/models/reactivate_subscription_group_request.rb +5 -6
- data/lib/advanced_billing/models/reactivate_subscription_group_response.rb +15 -20
- data/lib/advanced_billing/models/reactivate_subscription_request.rb +11 -14
- data/lib/advanced_billing/models/reactivation_billing.rb +4 -4
- data/lib/advanced_billing/models/reason_code.rb +11 -16
- data/lib/advanced_billing/models/reason_code_response.rb +3 -4
- data/lib/advanced_billing/models/reason_codes_json_response.rb +3 -4
- data/lib/advanced_billing/models/record_payment_request.rb +3 -4
- data/lib/advanced_billing/models/record_payment_response.rb +5 -6
- data/lib/advanced_billing/models/referral_code.rb +7 -10
- data/lib/advanced_billing/models/referral_validation_response.rb +3 -4
- data/lib/advanced_billing/models/refund_consolidated_invoice.rb +9 -14
- data/lib/advanced_billing/models/refund_invoice.rb +10 -14
- data/lib/advanced_billing/models/refund_invoice_event.rb +9 -12
- data/lib/advanced_billing/models/refund_invoice_event_data.rb +14 -20
- data/lib/advanced_billing/models/refund_invoice_request.rb +3 -4
- data/lib/advanced_billing/models/refund_prepayment.rb +7 -10
- data/lib/advanced_billing/models/refund_prepayment_base_refund_error.rb +3 -4
- data/lib/advanced_billing/models/refund_prepayment_request.rb +3 -4
- data/lib/advanced_billing/models/refund_success.rb +6 -8
- data/lib/advanced_billing/models/remove_payment_event.rb +9 -12
- data/lib/advanced_billing/models/remove_payment_event_data.rb +11 -16
- data/lib/advanced_billing/models/renewal_preview.rb +15 -20
- data/lib/advanced_billing/models/renewal_preview_component.rb +6 -8
- data/lib/advanced_billing/models/renewal_preview_line_item.rb +22 -30
- data/lib/advanced_billing/models/renewal_preview_request.rb +3 -4
- data/lib/advanced_billing/models/renewal_preview_response.rb +3 -4
- data/lib/advanced_billing/models/replay_webhooks_request.rb +3 -4
- data/lib/advanced_billing/models/replay_webhooks_response.rb +3 -4
- data/lib/advanced_billing/models/resent_invitation.rb +8 -10
- data/lib/advanced_billing/models/resume_options.rb +5 -6
- data/lib/advanced_billing/models/revoked_invitation.rb +6 -8
- data/lib/advanced_billing/models/sale_rep.rb +9 -12
- data/lib/advanced_billing/models/sale_rep_item_mrr.rb +6 -8
- data/lib/advanced_billing/models/sale_rep_settings.rb +11 -16
- data/lib/advanced_billing/models/sale_rep_subscription.rb +15 -22
- data/lib/advanced_billing/models/segment.rb +20 -26
- data/lib/advanced_billing/models/segment_price.rb +13 -18
- data/lib/advanced_billing/models/segment_response.rb +3 -4
- data/lib/advanced_billing/models/send_invoice_request.rb +6 -8
- data/lib/advanced_billing/models/service_credit.rb +9 -12
- data/lib/advanced_billing/models/service_credit_response.rb +3 -4
- data/lib/advanced_billing/models/signup_proforma_preview.rb +5 -6
- data/lib/advanced_billing/models/signup_proforma_preview_response.rb +3 -4
- data/lib/advanced_billing/models/site.rb +25 -34
- data/lib/advanced_billing/models/site_response.rb +3 -4
- data/lib/advanced_billing/models/site_statistics.rb +20 -24
- data/lib/advanced_billing/models/site_summary.rb +8 -12
- data/lib/advanced_billing/models/subscription.rb +94 -126
- data/lib/advanced_billing/models/subscription_component.rb +48 -66
- data/lib/advanced_billing/models/subscription_component_allocation_error_item.rb +4 -6
- data/lib/advanced_billing/models/subscription_component_response.rb +3 -4
- data/lib/advanced_billing/models/subscription_component_subscription.rb +4 -6
- data/lib/advanced_billing/models/subscription_custom_price.rb +21 -28
- data/lib/advanced_billing/models/subscription_filter.rb +10 -14
- data/lib/advanced_billing/models/subscription_group.rb +9 -12
- data/lib/advanced_billing/models/subscription_group_balances.rb +8 -10
- data/lib/advanced_billing/models/subscription_group_bank_account.rb +26 -34
- data/lib/advanced_billing/models/subscription_group_component_custom_price.rb +6 -8
- data/lib/advanced_billing/models/subscription_group_credit_card.rb +30 -42
- data/lib/advanced_billing/models/subscription_group_customer.rb +8 -12
- data/lib/advanced_billing/models/subscription_group_item.rb +16 -22
- data/lib/advanced_billing/models/subscription_group_member_error.rb +6 -8
- data/lib/advanced_billing/models/subscription_group_members_array_error.rb +3 -4
- data/lib/advanced_billing/models/subscription_group_payment_profile.rb +7 -10
- data/lib/advanced_billing/models/subscription_group_prepayment.rb +6 -10
- data/lib/advanced_billing/models/subscription_group_prepayment_request.rb +3 -4
- data/lib/advanced_billing/models/subscription_group_prepayment_response.rb +9 -12
- data/lib/advanced_billing/models/subscription_group_response.rb +3 -4
- data/lib/advanced_billing/models/subscription_group_signup.rb +13 -18
- data/lib/advanced_billing/models/subscription_group_signup_component.rb +9 -12
- data/lib/advanced_billing/models/subscription_group_signup_error.rb +10 -14
- data/lib/advanced_billing/models/subscription_group_signup_failure.rb +4 -6
- data/lib/advanced_billing/models/subscription_group_signup_failure_data.rb +14 -18
- data/lib/advanced_billing/models/subscription_group_signup_item.rb +21 -28
- data/lib/advanced_billing/models/subscription_group_signup_request.rb +3 -4
- data/lib/advanced_billing/models/subscription_group_signup_response.rb +18 -24
- data/lib/advanced_billing/models/subscription_group_signup_success.rb +4 -6
- data/lib/advanced_billing/models/subscription_group_signup_success_data.rb +14 -20
- data/lib/advanced_billing/models/subscription_group_single_error.rb +3 -4
- data/lib/advanced_billing/models/subscription_group_subscription_error.rb +14 -18
- data/lib/advanced_billing/models/subscription_group_update_error.rb +3 -4
- data/lib/advanced_billing/models/subscription_included_coupon.rb +11 -16
- data/lib/advanced_billing/models/subscription_migration_preview.rb +8 -10
- data/lib/advanced_billing/models/subscription_migration_preview_options.rb +17 -22
- data/lib/advanced_billing/models/subscription_migration_preview_request.rb +3 -4
- data/lib/advanced_billing/models/subscription_migration_preview_response.rb +3 -4
- data/lib/advanced_billing/models/subscription_mrr.rb +6 -8
- data/lib/advanced_billing/models/subscription_mrr_breakout.rb +5 -6
- data/lib/advanced_billing/models/subscription_mrr_response.rb +3 -4
- data/lib/advanced_billing/models/subscription_note.rb +10 -14
- data/lib/advanced_billing/models/subscription_note_response.rb +3 -4
- data/lib/advanced_billing/models/subscription_preview.rb +5 -6
- data/lib/advanced_billing/models/subscription_preview_response.rb +3 -4
- data/lib/advanced_billing/models/subscription_product_change.rb +5 -6
- data/lib/advanced_billing/models/subscription_product_migration.rb +15 -20
- data/lib/advanced_billing/models/subscription_product_migration_request.rb +3 -4
- data/lib/advanced_billing/models/subscription_response.rb +3 -4
- data/lib/advanced_billing/models/subscription_state_change.rb +5 -6
- data/lib/advanced_billing/models/tax_configuration.rb +7 -8
- data/lib/advanced_billing/models/too_many_management_link_requests.rb +4 -6
- data/lib/advanced_billing/models/update_allocation_expiration_date.rb +3 -4
- data/lib/advanced_billing/models/update_component.rb +14 -20
- data/lib/advanced_billing/models/update_component_price_point.rb +13 -18
- data/lib/advanced_billing/models/update_component_price_point_request.rb +3 -4
- data/lib/advanced_billing/models/update_component_request.rb +3 -4
- data/lib/advanced_billing/models/update_coupon_currency.rb +4 -6
- data/lib/advanced_billing/models/update_currency_price.rb +4 -6
- data/lib/advanced_billing/models/update_currency_prices_request.rb +3 -4
- data/lib/advanced_billing/models/update_customer.rb +26 -40
- data/lib/advanced_billing/models/update_customer_request.rb +3 -4
- data/lib/advanced_billing/models/update_metadata.rb +6 -8
- data/lib/advanced_billing/models/update_metadata_request.rb +3 -4
- data/lib/advanced_billing/models/update_metafield.rb +8 -12
- data/lib/advanced_billing/models/update_metafields_request.rb +3 -4
- data/lib/advanced_billing/models/update_payment_profile.rb +21 -28
- data/lib/advanced_billing/models/update_payment_profile_request.rb +3 -4
- data/lib/advanced_billing/models/update_price.rb +9 -12
- data/lib/advanced_billing/models/update_product_price_point.rb +5 -6
- data/lib/advanced_billing/models/update_product_price_point_request.rb +3 -4
- data/lib/advanced_billing/models/update_reason_code.rb +6 -8
- data/lib/advanced_billing/models/update_reason_code_request.rb +3 -4
- data/lib/advanced_billing/models/update_segment.rb +4 -6
- data/lib/advanced_billing/models/update_segment_request.rb +3 -4
- data/lib/advanced_billing/models/update_subscription.rb +29 -36
- data/lib/advanced_billing/models/update_subscription_component.rb +5 -6
- data/lib/advanced_billing/models/update_subscription_group.rb +3 -4
- data/lib/advanced_billing/models/update_subscription_group_request.rb +3 -4
- data/lib/advanced_billing/models/update_subscription_note.rb +4 -6
- data/lib/advanced_billing/models/update_subscription_note_request.rb +3 -4
- data/lib/advanced_billing/models/update_subscription_request.rb +3 -4
- data/lib/advanced_billing/models/upsert_prepaid_configuration.rb +9 -10
- data/lib/advanced_billing/models/upsert_prepaid_configuration_request.rb +3 -4
- data/lib/advanced_billing/models/usage.rb +14 -20
- data/lib/advanced_billing/models/usage_response.rb +3 -4
- data/lib/advanced_billing/models/void_invoice.rb +3 -4
- data/lib/advanced_billing/models/void_invoice_event.rb +9 -12
- data/lib/advanced_billing/models/void_invoice_event_data.rb +10 -14
- data/lib/advanced_billing/models/void_invoice_request.rb +3 -4
- data/lib/advanced_billing/models/void_remainder_event.rb +9 -12
- data/lib/advanced_billing/models/void_remainder_event_data.rb +7 -10
- data/lib/advanced_billing/models/webhook.rb +18 -26
- data/lib/advanced_billing/models/webhook_response.rb +3 -4
- data/lib/advanced_billing/utilities/union_type_lookup.rb +42 -0
- data/lib/advanced_billing.rb +2 -0
- metadata +3 -2
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(migration
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(migration:, additional_properties: {})
|
35
34
|
@migration = migration
|
36
35
|
|
37
36
|
# Add additional model properties to the instance.
|
@@ -52,8 +51,8 @@ module AdvancedBilling
|
|
52
51
|
names.each_value { |k| hash.delete(k) }
|
53
52
|
|
54
53
|
# Create object from extracted values.
|
55
|
-
SubscriptionMigrationPreviewRequest.new(migration,
|
56
|
-
hash)
|
54
|
+
SubscriptionMigrationPreviewRequest.new(migration: migration,
|
55
|
+
additional_properties: hash)
|
57
56
|
end
|
58
57
|
end
|
59
58
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(migration
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(migration:, additional_properties: {})
|
35
34
|
@migration = migration
|
36
35
|
|
37
36
|
# Add additional model properties to the instance.
|
@@ -51,8 +50,8 @@ module AdvancedBilling
|
|
51
50
|
names.each_value { |k| hash.delete(k) }
|
52
51
|
|
53
52
|
# Create object from extracted values.
|
54
|
-
SubscriptionMigrationPreviewResponse.new(migration,
|
55
|
-
hash)
|
53
|
+
SubscriptionMigrationPreviewResponse.new(migration: migration,
|
54
|
+
additional_properties: hash)
|
56
55
|
end
|
57
56
|
end
|
58
57
|
end
|
@@ -42,10 +42,8 @@ module AdvancedBilling
|
|
42
42
|
[]
|
43
43
|
end
|
44
44
|
|
45
|
-
def initialize(subscription_id
|
46
|
-
|
47
|
-
breakouts = SKIP,
|
48
|
-
additional_properties = {})
|
45
|
+
def initialize(subscription_id:, mrr_amount_in_cents:, breakouts: SKIP,
|
46
|
+
additional_properties: {})
|
49
47
|
@subscription_id = subscription_id
|
50
48
|
@mrr_amount_in_cents = mrr_amount_in_cents
|
51
49
|
@breakouts = breakouts unless breakouts == SKIP
|
@@ -71,10 +69,10 @@ module AdvancedBilling
|
|
71
69
|
names.each_value { |k| hash.delete(k) }
|
72
70
|
|
73
71
|
# Create object from extracted values.
|
74
|
-
SubscriptionMRR.new(subscription_id,
|
75
|
-
mrr_amount_in_cents,
|
76
|
-
breakouts,
|
77
|
-
hash)
|
72
|
+
SubscriptionMRR.new(subscription_id: subscription_id,
|
73
|
+
mrr_amount_in_cents: mrr_amount_in_cents,
|
74
|
+
breakouts: breakouts,
|
75
|
+
additional_properties: hash)
|
78
76
|
end
|
79
77
|
end
|
80
78
|
end
|
@@ -35,9 +35,8 @@ module AdvancedBilling
|
|
35
35
|
[]
|
36
36
|
end
|
37
37
|
|
38
|
-
def initialize(plan_amount_in_cents
|
39
|
-
|
40
|
-
additional_properties = {})
|
38
|
+
def initialize(plan_amount_in_cents:, usage_amount_in_cents:,
|
39
|
+
additional_properties: {})
|
41
40
|
@plan_amount_in_cents = plan_amount_in_cents
|
42
41
|
@usage_amount_in_cents = usage_amount_in_cents
|
43
42
|
|
@@ -61,9 +60,9 @@ module AdvancedBilling
|
|
61
60
|
names.each_value { |k| hash.delete(k) }
|
62
61
|
|
63
62
|
# Create object from extracted values.
|
64
|
-
SubscriptionMRRBreakout.new(plan_amount_in_cents,
|
65
|
-
usage_amount_in_cents,
|
66
|
-
hash)
|
63
|
+
SubscriptionMRRBreakout.new(plan_amount_in_cents: plan_amount_in_cents,
|
64
|
+
usage_amount_in_cents: usage_amount_in_cents,
|
65
|
+
additional_properties: hash)
|
67
66
|
end
|
68
67
|
end
|
69
68
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(subscriptions_mrr
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(subscriptions_mrr:, additional_properties: {})
|
35
34
|
@subscriptions_mrr = subscriptions_mrr
|
36
35
|
|
37
36
|
# Add additional model properties to the instance.
|
@@ -60,8 +59,8 @@ module AdvancedBilling
|
|
60
59
|
names.each_value { |k| hash.delete(k) }
|
61
60
|
|
62
61
|
# Create object from extracted values.
|
63
|
-
SubscriptionMRRResponse.new(subscriptions_mrr,
|
64
|
-
hash)
|
62
|
+
SubscriptionMRRResponse.new(subscriptions_mrr: subscriptions_mrr,
|
63
|
+
additional_properties: hash)
|
65
64
|
end
|
66
65
|
end
|
67
66
|
end
|
@@ -63,13 +63,9 @@ module AdvancedBilling
|
|
63
63
|
[]
|
64
64
|
end
|
65
65
|
|
66
|
-
def initialize(id
|
67
|
-
|
68
|
-
|
69
|
-
created_at = SKIP,
|
70
|
-
updated_at = SKIP,
|
71
|
-
sticky = SKIP,
|
72
|
-
additional_properties = {})
|
66
|
+
def initialize(id: SKIP, body: SKIP, subscription_id: SKIP,
|
67
|
+
created_at: SKIP, updated_at: SKIP, sticky: SKIP,
|
68
|
+
additional_properties: {})
|
73
69
|
@id = id unless id == SKIP
|
74
70
|
@body = body unless body == SKIP
|
75
71
|
@subscription_id = subscription_id unless subscription_id == SKIP
|
@@ -108,13 +104,13 @@ module AdvancedBilling
|
|
108
104
|
names.each_value { |k| hash.delete(k) }
|
109
105
|
|
110
106
|
# Create object from extracted values.
|
111
|
-
SubscriptionNote.new(id,
|
112
|
-
body,
|
113
|
-
subscription_id,
|
114
|
-
created_at,
|
115
|
-
updated_at,
|
116
|
-
sticky,
|
117
|
-
hash)
|
107
|
+
SubscriptionNote.new(id: id,
|
108
|
+
body: body,
|
109
|
+
subscription_id: subscription_id,
|
110
|
+
created_at: created_at,
|
111
|
+
updated_at: updated_at,
|
112
|
+
sticky: sticky,
|
113
|
+
additional_properties: hash)
|
118
114
|
end
|
119
115
|
|
120
116
|
def to_custom_created_at
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(note
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(note:, additional_properties: {})
|
35
34
|
@note = note
|
36
35
|
|
37
36
|
# Add additional model properties to the instance.
|
@@ -51,8 +50,8 @@ module AdvancedBilling
|
|
51
50
|
names.each_value { |k| hash.delete(k) }
|
52
51
|
|
53
52
|
# Create object from extracted values.
|
54
|
-
SubscriptionNoteResponse.new(note,
|
55
|
-
hash)
|
53
|
+
SubscriptionNoteResponse.new(note: note,
|
54
|
+
additional_properties: hash)
|
56
55
|
end
|
57
56
|
end
|
58
57
|
end
|
@@ -38,9 +38,8 @@ module AdvancedBilling
|
|
38
38
|
[]
|
39
39
|
end
|
40
40
|
|
41
|
-
def initialize(current_billing_manifest
|
42
|
-
|
43
|
-
additional_properties = {})
|
41
|
+
def initialize(current_billing_manifest: SKIP, next_billing_manifest: SKIP,
|
42
|
+
additional_properties: {})
|
44
43
|
@current_billing_manifest = current_billing_manifest unless current_billing_manifest == SKIP
|
45
44
|
@next_billing_manifest = next_billing_manifest unless next_billing_manifest == SKIP
|
46
45
|
|
@@ -64,9 +63,9 @@ module AdvancedBilling
|
|
64
63
|
names.each_value { |k| hash.delete(k) }
|
65
64
|
|
66
65
|
# Create object from extracted values.
|
67
|
-
SubscriptionPreview.new(current_billing_manifest,
|
68
|
-
next_billing_manifest,
|
69
|
-
hash)
|
66
|
+
SubscriptionPreview.new(current_billing_manifest: current_billing_manifest,
|
67
|
+
next_billing_manifest: next_billing_manifest,
|
68
|
+
additional_properties: hash)
|
70
69
|
end
|
71
70
|
end
|
72
71
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(subscription_preview
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(subscription_preview:, additional_properties: {})
|
35
34
|
@subscription_preview = subscription_preview
|
36
35
|
|
37
36
|
# Add additional model properties to the instance.
|
@@ -52,8 +51,8 @@ module AdvancedBilling
|
|
52
51
|
names.each_value { |k| hash.delete(k) }
|
53
52
|
|
54
53
|
# Create object from extracted values.
|
55
|
-
SubscriptionPreviewResponse.new(subscription_preview,
|
56
|
-
hash)
|
54
|
+
SubscriptionPreviewResponse.new(subscription_preview: subscription_preview,
|
55
|
+
additional_properties: hash)
|
57
56
|
end
|
58
57
|
end
|
59
58
|
end
|
@@ -35,9 +35,8 @@ module AdvancedBilling
|
|
35
35
|
[]
|
36
36
|
end
|
37
37
|
|
38
|
-
def initialize(previous_product_id
|
39
|
-
|
40
|
-
additional_properties = {})
|
38
|
+
def initialize(previous_product_id:, new_product_id:,
|
39
|
+
additional_properties: {})
|
41
40
|
@previous_product_id = previous_product_id
|
42
41
|
@new_product_id = new_product_id
|
43
42
|
|
@@ -61,9 +60,9 @@ module AdvancedBilling
|
|
61
60
|
names.each_value { |k| hash.delete(k) }
|
62
61
|
|
63
62
|
# Create object from extracted values.
|
64
|
-
SubscriptionProductChange.new(previous_product_id,
|
65
|
-
new_product_id,
|
66
|
-
hash)
|
63
|
+
SubscriptionProductChange.new(previous_product_id: previous_product_id,
|
64
|
+
new_product_id: new_product_id,
|
65
|
+
additional_properties: hash)
|
67
66
|
end
|
68
67
|
|
69
68
|
# Validates an instance of the object from a given value.
|
@@ -96,16 +96,11 @@ module AdvancedBilling
|
|
96
96
|
[]
|
97
97
|
end
|
98
98
|
|
99
|
-
def initialize(product_id
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
preserve_period = false,
|
105
|
-
product_handle = SKIP,
|
106
|
-
product_price_point_handle = SKIP,
|
107
|
-
proration = SKIP,
|
108
|
-
additional_properties = {})
|
99
|
+
def initialize(product_id: SKIP, product_price_point_id: SKIP,
|
100
|
+
include_trial: false, include_initial_charge: false,
|
101
|
+
include_coupons: true, preserve_period: false,
|
102
|
+
product_handle: SKIP, product_price_point_handle: SKIP,
|
103
|
+
proration: SKIP, additional_properties: {})
|
109
104
|
@product_id = product_id unless product_id == SKIP
|
110
105
|
@product_price_point_id = product_price_point_id unless product_price_point_id == SKIP
|
111
106
|
@include_trial = include_trial unless include_trial == SKIP
|
@@ -147,16 +142,16 @@ module AdvancedBilling
|
|
147
142
|
names.each_value { |k| hash.delete(k) }
|
148
143
|
|
149
144
|
# Create object from extracted values.
|
150
|
-
SubscriptionProductMigration.new(product_id,
|
151
|
-
product_price_point_id,
|
152
|
-
include_trial,
|
153
|
-
include_initial_charge,
|
154
|
-
include_coupons,
|
155
|
-
preserve_period,
|
156
|
-
product_handle,
|
157
|
-
product_price_point_handle,
|
158
|
-
proration,
|
159
|
-
hash)
|
145
|
+
SubscriptionProductMigration.new(product_id: product_id,
|
146
|
+
product_price_point_id: product_price_point_id,
|
147
|
+
include_trial: include_trial,
|
148
|
+
include_initial_charge: include_initial_charge,
|
149
|
+
include_coupons: include_coupons,
|
150
|
+
preserve_period: preserve_period,
|
151
|
+
product_handle: product_handle,
|
152
|
+
product_price_point_handle: product_price_point_handle,
|
153
|
+
proration: proration,
|
154
|
+
additional_properties: hash)
|
160
155
|
end
|
161
156
|
end
|
162
157
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(migration
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(migration:, additional_properties: {})
|
35
34
|
@migration = migration
|
36
35
|
|
37
36
|
# Add additional model properties to the instance.
|
@@ -51,8 +50,8 @@ module AdvancedBilling
|
|
51
50
|
names.each_value { |k| hash.delete(k) }
|
52
51
|
|
53
52
|
# Create object from extracted values.
|
54
|
-
SubscriptionProductMigrationRequest.new(migration,
|
55
|
-
hash)
|
53
|
+
SubscriptionProductMigrationRequest.new(migration: migration,
|
54
|
+
additional_properties: hash)
|
56
55
|
end
|
57
56
|
end
|
58
57
|
end
|
@@ -32,8 +32,7 @@ module AdvancedBilling
|
|
32
32
|
[]
|
33
33
|
end
|
34
34
|
|
35
|
-
def initialize(subscription
|
36
|
-
additional_properties = {})
|
35
|
+
def initialize(subscription: SKIP, additional_properties: {})
|
37
36
|
@subscription = subscription unless subscription == SKIP
|
38
37
|
|
39
38
|
# Add additional model properties to the instance.
|
@@ -53,8 +52,8 @@ module AdvancedBilling
|
|
53
52
|
names.each_value { |k| hash.delete(k) }
|
54
53
|
|
55
54
|
# Create object from extracted values.
|
56
|
-
SubscriptionResponse.new(subscription,
|
57
|
-
hash)
|
55
|
+
SubscriptionResponse.new(subscription: subscription,
|
56
|
+
additional_properties: hash)
|
58
57
|
end
|
59
58
|
end
|
60
59
|
end
|
@@ -35,9 +35,8 @@ module AdvancedBilling
|
|
35
35
|
[]
|
36
36
|
end
|
37
37
|
|
38
|
-
def initialize(previous_subscription_state
|
39
|
-
|
40
|
-
additional_properties = {})
|
38
|
+
def initialize(previous_subscription_state:, new_subscription_state:,
|
39
|
+
additional_properties: {})
|
41
40
|
@previous_subscription_state = previous_subscription_state
|
42
41
|
@new_subscription_state = new_subscription_state
|
43
42
|
|
@@ -61,9 +60,9 @@ module AdvancedBilling
|
|
61
60
|
names.each_value { |k| hash.delete(k) }
|
62
61
|
|
63
62
|
# Create object from extracted values.
|
64
|
-
SubscriptionStateChange.new(previous_subscription_state,
|
65
|
-
new_subscription_state,
|
66
|
-
hash)
|
63
|
+
SubscriptionStateChange.new(previous_subscription_state: previous_subscription_state,
|
64
|
+
new_subscription_state: new_subscription_state,
|
65
|
+
additional_properties: hash)
|
67
66
|
end
|
68
67
|
|
69
68
|
# Validates an instance of the object from a given value.
|
@@ -47,10 +47,9 @@ module AdvancedBilling
|
|
47
47
|
[]
|
48
48
|
end
|
49
49
|
|
50
|
-
def initialize(kind
|
51
|
-
destination_address
|
52
|
-
|
53
|
-
additional_properties = {})
|
50
|
+
def initialize(kind: TaxConfigurationKind::CUSTOM,
|
51
|
+
destination_address: SKIP, fully_configured: false,
|
52
|
+
additional_properties: {})
|
54
53
|
@kind = kind unless kind == SKIP
|
55
54
|
@destination_address = destination_address unless destination_address == SKIP
|
56
55
|
@fully_configured = fully_configured unless fully_configured == SKIP
|
@@ -75,10 +74,10 @@ module AdvancedBilling
|
|
75
74
|
names.each_value { |k| hash.delete(k) }
|
76
75
|
|
77
76
|
# Create object from extracted values.
|
78
|
-
TaxConfiguration.new(kind,
|
79
|
-
destination_address,
|
80
|
-
fully_configured,
|
81
|
-
hash)
|
77
|
+
TaxConfiguration.new(kind: kind,
|
78
|
+
destination_address: destination_address,
|
79
|
+
fully_configured: fully_configured,
|
80
|
+
additional_properties: hash)
|
82
81
|
end
|
83
82
|
end
|
84
83
|
end
|
@@ -36,9 +36,7 @@ module AdvancedBilling
|
|
36
36
|
[]
|
37
37
|
end
|
38
38
|
|
39
|
-
def initialize(error
|
40
|
-
new_link_available_at = nil,
|
41
|
-
additional_properties = {})
|
39
|
+
def initialize(error:, new_link_available_at:, additional_properties: {})
|
42
40
|
@error = error
|
43
41
|
@new_link_available_at = new_link_available_at
|
44
42
|
|
@@ -62,9 +60,9 @@ module AdvancedBilling
|
|
62
60
|
names.each_value { |k| hash.delete(k) }
|
63
61
|
|
64
62
|
# Create object from extracted values.
|
65
|
-
TooManyManagementLinkRequests.new(error,
|
66
|
-
new_link_available_at,
|
67
|
-
hash)
|
63
|
+
TooManyManagementLinkRequests.new(error: error,
|
64
|
+
new_link_available_at: new_link_available_at,
|
65
|
+
additional_properties: hash)
|
68
66
|
end
|
69
67
|
|
70
68
|
def to_custom_new_link_available_at
|
@@ -32,8 +32,7 @@ module AdvancedBilling
|
|
32
32
|
[]
|
33
33
|
end
|
34
34
|
|
35
|
-
def initialize(allocation
|
36
|
-
additional_properties = {})
|
35
|
+
def initialize(allocation: SKIP, additional_properties: {})
|
37
36
|
@allocation = allocation unless allocation == SKIP
|
38
37
|
|
39
38
|
# Add additional model properties to the instance.
|
@@ -53,8 +52,8 @@ module AdvancedBilling
|
|
53
52
|
names.each_value { |k| hash.delete(k) }
|
54
53
|
|
55
54
|
# Create object from extracted values.
|
56
|
-
UpdateAllocationExpirationDate.new(allocation,
|
57
|
-
hash)
|
55
|
+
UpdateAllocationExpirationDate.new(allocation: allocation,
|
56
|
+
additional_properties: hash)
|
58
57
|
end
|
59
58
|
end
|
60
59
|
end
|
@@ -93,16 +93,10 @@ module AdvancedBilling
|
|
93
93
|
]
|
94
94
|
end
|
95
95
|
|
96
|
-
def initialize(handle
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
taxable = SKIP,
|
101
|
-
tax_code = SKIP,
|
102
|
-
item_category = SKIP,
|
103
|
-
display_on_hosted_page = SKIP,
|
104
|
-
upgrade_charge = SKIP,
|
105
|
-
additional_properties = {})
|
96
|
+
def initialize(handle: SKIP, name: SKIP, description: SKIP,
|
97
|
+
accounting_code: SKIP, taxable: SKIP, tax_code: SKIP,
|
98
|
+
item_category: SKIP, display_on_hosted_page: SKIP,
|
99
|
+
upgrade_charge: SKIP, additional_properties: {})
|
106
100
|
@handle = handle unless handle == SKIP
|
107
101
|
@name = name unless name == SKIP
|
108
102
|
@description = description unless description == SKIP
|
@@ -141,16 +135,16 @@ module AdvancedBilling
|
|
141
135
|
names.each_value { |k| hash.delete(k) }
|
142
136
|
|
143
137
|
# Create object from extracted values.
|
144
|
-
UpdateComponent.new(handle,
|
145
|
-
name,
|
146
|
-
description,
|
147
|
-
accounting_code,
|
148
|
-
taxable,
|
149
|
-
tax_code,
|
150
|
-
item_category,
|
151
|
-
display_on_hosted_page,
|
152
|
-
upgrade_charge,
|
153
|
-
hash)
|
138
|
+
UpdateComponent.new(handle: handle,
|
139
|
+
name: name,
|
140
|
+
description: description,
|
141
|
+
accounting_code: accounting_code,
|
142
|
+
taxable: taxable,
|
143
|
+
tax_code: tax_code,
|
144
|
+
item_category: item_category,
|
145
|
+
display_on_hosted_page: display_on_hosted_page,
|
146
|
+
upgrade_charge: upgrade_charge,
|
147
|
+
additional_properties: hash)
|
154
148
|
end
|
155
149
|
end
|
156
150
|
end
|
@@ -84,15 +84,10 @@ module AdvancedBilling
|
|
84
84
|
[]
|
85
85
|
end
|
86
86
|
|
87
|
-
def initialize(name
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
tax_included = SKIP,
|
92
|
-
interval = SKIP,
|
93
|
-
interval_unit = SKIP,
|
94
|
-
prices = SKIP,
|
95
|
-
additional_properties = {})
|
87
|
+
def initialize(name: SKIP, handle: SKIP, pricing_scheme: SKIP,
|
88
|
+
use_site_exchange_rate: SKIP, tax_included: SKIP,
|
89
|
+
interval: SKIP, interval_unit: SKIP, prices: SKIP,
|
90
|
+
additional_properties: {})
|
96
91
|
@name = name unless name == SKIP
|
97
92
|
@handle = handle unless handle == SKIP
|
98
93
|
@pricing_scheme = pricing_scheme unless pricing_scheme == SKIP
|
@@ -137,15 +132,15 @@ module AdvancedBilling
|
|
137
132
|
names.each_value { |k| hash.delete(k) }
|
138
133
|
|
139
134
|
# Create object from extracted values.
|
140
|
-
UpdateComponentPricePoint.new(name,
|
141
|
-
handle,
|
142
|
-
pricing_scheme,
|
143
|
-
use_site_exchange_rate,
|
144
|
-
tax_included,
|
145
|
-
interval,
|
146
|
-
interval_unit,
|
147
|
-
prices,
|
148
|
-
hash)
|
135
|
+
UpdateComponentPricePoint.new(name: name,
|
136
|
+
handle: handle,
|
137
|
+
pricing_scheme: pricing_scheme,
|
138
|
+
use_site_exchange_rate: use_site_exchange_rate,
|
139
|
+
tax_included: tax_included,
|
140
|
+
interval: interval,
|
141
|
+
interval_unit: interval_unit,
|
142
|
+
prices: prices,
|
143
|
+
additional_properties: hash)
|
149
144
|
end
|
150
145
|
end
|
151
146
|
end
|
@@ -32,8 +32,7 @@ module AdvancedBilling
|
|
32
32
|
[]
|
33
33
|
end
|
34
34
|
|
35
|
-
def initialize(price_point
|
36
|
-
additional_properties = {})
|
35
|
+
def initialize(price_point: SKIP, additional_properties: {})
|
37
36
|
@price_point = price_point unless price_point == SKIP
|
38
37
|
|
39
38
|
# Add additional model properties to the instance.
|
@@ -54,8 +53,8 @@ module AdvancedBilling
|
|
54
53
|
names.each_value { |k| hash.delete(k) }
|
55
54
|
|
56
55
|
# Create object from extracted values.
|
57
|
-
UpdateComponentPricePointRequest.new(price_point,
|
58
|
-
hash)
|
56
|
+
UpdateComponentPricePointRequest.new(price_point: price_point,
|
57
|
+
additional_properties: hash)
|
59
58
|
end
|
60
59
|
end
|
61
60
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(component
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(component:, additional_properties: {})
|
35
34
|
@component = component
|
36
35
|
|
37
36
|
# Add additional model properties to the instance.
|
@@ -51,8 +50,8 @@ module AdvancedBilling
|
|
51
50
|
names.each_value { |k| hash.delete(k) }
|
52
51
|
|
53
52
|
# Create object from extracted values.
|
54
|
-
UpdateComponentRequest.new(component,
|
55
|
-
hash)
|
53
|
+
UpdateComponentRequest.new(component: component,
|
54
|
+
additional_properties: hash)
|
56
55
|
end
|
57
56
|
end
|
58
57
|
end
|
@@ -35,9 +35,7 @@ module AdvancedBilling
|
|
35
35
|
[]
|
36
36
|
end
|
37
37
|
|
38
|
-
def initialize(currency
|
39
|
-
price = nil,
|
40
|
-
additional_properties = {})
|
38
|
+
def initialize(currency:, price:, additional_properties: {})
|
41
39
|
@currency = currency
|
42
40
|
@price = price
|
43
41
|
|
@@ -59,9 +57,9 @@ module AdvancedBilling
|
|
59
57
|
names.each_value { |k| hash.delete(k) }
|
60
58
|
|
61
59
|
# Create object from extracted values.
|
62
|
-
UpdateCouponCurrency.new(currency,
|
63
|
-
price,
|
64
|
-
hash)
|
60
|
+
UpdateCouponCurrency.new(currency: currency,
|
61
|
+
price: price,
|
62
|
+
additional_properties: hash)
|
65
63
|
end
|
66
64
|
end
|
67
65
|
end
|
@@ -35,9 +35,7 @@ module AdvancedBilling
|
|
35
35
|
[]
|
36
36
|
end
|
37
37
|
|
38
|
-
def initialize(id
|
39
|
-
price = nil,
|
40
|
-
additional_properties = {})
|
38
|
+
def initialize(id:, price:, additional_properties: {})
|
41
39
|
@id = id
|
42
40
|
@price = price
|
43
41
|
|
@@ -59,9 +57,9 @@ module AdvancedBilling
|
|
59
57
|
names.each_value { |k| hash.delete(k) }
|
60
58
|
|
61
59
|
# Create object from extracted values.
|
62
|
-
UpdateCurrencyPrice.new(id,
|
63
|
-
price,
|
64
|
-
hash)
|
60
|
+
UpdateCurrencyPrice.new(id: id,
|
61
|
+
price: price,
|
62
|
+
additional_properties: hash)
|
65
63
|
end
|
66
64
|
end
|
67
65
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(currency_prices
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(currency_prices:, additional_properties: {})
|
35
34
|
@currency_prices = currency_prices
|
36
35
|
|
37
36
|
# Add additional model properties to the instance.
|
@@ -60,8 +59,8 @@ module AdvancedBilling
|
|
60
59
|
names.each_value { |k| hash.delete(k) }
|
61
60
|
|
62
61
|
# Create object from extracted values.
|
63
|
-
UpdateCurrencyPricesRequest.new(currency_prices,
|
64
|
-
hash)
|
62
|
+
UpdateCurrencyPricesRequest.new(currency_prices: currency_prices,
|
63
|
+
additional_properties: hash)
|
65
64
|
end
|
66
65
|
end
|
67
66
|
end
|