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
@@ -110,21 +110,13 @@ module AdvancedBilling
|
|
110
110
|
[]
|
111
111
|
end
|
112
112
|
|
113
|
-
def initialize(transaction_type
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
product_name = SKIP,
|
121
|
-
component_id = SKIP,
|
122
|
-
component_handle = SKIP,
|
123
|
-
component_name = SKIP,
|
124
|
-
product_handle = SKIP,
|
125
|
-
period_range_start = SKIP,
|
126
|
-
period_range_end = SKIP,
|
127
|
-
additional_properties = {})
|
113
|
+
def initialize(transaction_type: SKIP, kind: SKIP, amount_in_cents: SKIP,
|
114
|
+
memo: SKIP, discount_amount_in_cents: SKIP,
|
115
|
+
taxable_amount_in_cents: SKIP, product_id: SKIP,
|
116
|
+
product_name: SKIP, component_id: SKIP,
|
117
|
+
component_handle: SKIP, component_name: SKIP,
|
118
|
+
product_handle: SKIP, period_range_start: SKIP,
|
119
|
+
period_range_end: SKIP, additional_properties: {})
|
128
120
|
@transaction_type = transaction_type unless transaction_type == SKIP
|
129
121
|
@kind = kind unless kind == SKIP
|
130
122
|
@amount_in_cents = amount_in_cents unless amount_in_cents == SKIP
|
@@ -179,21 +171,21 @@ module AdvancedBilling
|
|
179
171
|
names.each_value { |k| hash.delete(k) }
|
180
172
|
|
181
173
|
# Create object from extracted values.
|
182
|
-
RenewalPreviewLineItem.new(transaction_type,
|
183
|
-
kind,
|
184
|
-
amount_in_cents,
|
185
|
-
memo,
|
186
|
-
discount_amount_in_cents,
|
187
|
-
taxable_amount_in_cents,
|
188
|
-
product_id,
|
189
|
-
product_name,
|
190
|
-
component_id,
|
191
|
-
component_handle,
|
192
|
-
component_name,
|
193
|
-
product_handle,
|
194
|
-
period_range_start,
|
195
|
-
period_range_end,
|
196
|
-
hash)
|
174
|
+
RenewalPreviewLineItem.new(transaction_type: transaction_type,
|
175
|
+
kind: kind,
|
176
|
+
amount_in_cents: amount_in_cents,
|
177
|
+
memo: memo,
|
178
|
+
discount_amount_in_cents: discount_amount_in_cents,
|
179
|
+
taxable_amount_in_cents: taxable_amount_in_cents,
|
180
|
+
product_id: product_id,
|
181
|
+
product_name: product_name,
|
182
|
+
component_id: component_id,
|
183
|
+
component_handle: component_handle,
|
184
|
+
component_name: component_name,
|
185
|
+
product_handle: product_handle,
|
186
|
+
period_range_start: period_range_start,
|
187
|
+
period_range_end: period_range_end,
|
188
|
+
additional_properties: hash)
|
197
189
|
end
|
198
190
|
end
|
199
191
|
end
|
@@ -35,8 +35,7 @@ module AdvancedBilling
|
|
35
35
|
[]
|
36
36
|
end
|
37
37
|
|
38
|
-
def initialize(components
|
39
|
-
additional_properties = {})
|
38
|
+
def initialize(components: SKIP, additional_properties: {})
|
40
39
|
@components = components unless components == SKIP
|
41
40
|
|
42
41
|
# Add additional model properties to the instance.
|
@@ -65,8 +64,8 @@ module AdvancedBilling
|
|
65
64
|
names.each_value { |k| hash.delete(k) }
|
66
65
|
|
67
66
|
# Create object from extracted values.
|
68
|
-
RenewalPreviewRequest.new(components,
|
69
|
-
hash)
|
67
|
+
RenewalPreviewRequest.new(components: components,
|
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(renewal_preview
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(renewal_preview:, additional_properties: {})
|
35
34
|
@renewal_preview = renewal_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
|
-
RenewalPreviewResponse.new(renewal_preview,
|
56
|
-
hash)
|
54
|
+
RenewalPreviewResponse.new(renewal_preview: renewal_preview,
|
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(ids
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(ids:, additional_properties: {})
|
35
34
|
@ids = ids
|
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
|
-
ReplayWebhooksRequest.new(ids,
|
55
|
-
hash)
|
53
|
+
ReplayWebhooksRequest.new(ids: ids,
|
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(status
|
36
|
-
additional_properties = {})
|
35
|
+
def initialize(status: SKIP, additional_properties: {})
|
37
36
|
@status = status unless status == 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
|
-
ReplayWebhooksResponse.new(status,
|
57
|
-
hash)
|
55
|
+
ReplayWebhooksResponse.new(status: status,
|
56
|
+
additional_properties: hash)
|
58
57
|
end
|
59
58
|
end
|
60
59
|
end
|
@@ -50,11 +50,9 @@ module AdvancedBilling
|
|
50
50
|
[]
|
51
51
|
end
|
52
52
|
|
53
|
-
def initialize(last_sent_at
|
54
|
-
|
55
|
-
|
56
|
-
uninvited_count = SKIP,
|
57
|
-
additional_properties = {})
|
53
|
+
def initialize(last_sent_at: SKIP, last_accepted_at: SKIP,
|
54
|
+
send_invite_link_text: SKIP, uninvited_count: SKIP,
|
55
|
+
additional_properties: {})
|
58
56
|
@last_sent_at = last_sent_at unless last_sent_at == SKIP
|
59
57
|
@last_accepted_at = last_accepted_at unless last_accepted_at == SKIP
|
60
58
|
@send_invite_link_text = send_invite_link_text unless send_invite_link_text == SKIP
|
@@ -83,11 +81,11 @@ module AdvancedBilling
|
|
83
81
|
names.each_value { |k| hash.delete(k) }
|
84
82
|
|
85
83
|
# Create object from extracted values.
|
86
|
-
ResentInvitation.new(last_sent_at,
|
87
|
-
last_accepted_at,
|
88
|
-
send_invite_link_text,
|
89
|
-
uninvited_count,
|
90
|
-
hash)
|
84
|
+
ResentInvitation.new(last_sent_at: last_sent_at,
|
85
|
+
last_accepted_at: last_accepted_at,
|
86
|
+
send_invite_link_text: send_invite_link_text,
|
87
|
+
uninvited_count: uninvited_count,
|
88
|
+
additional_properties: hash)
|
91
89
|
end
|
92
90
|
end
|
93
91
|
end
|
@@ -42,9 +42,8 @@ module AdvancedBilling
|
|
42
42
|
[]
|
43
43
|
end
|
44
44
|
|
45
|
-
def initialize(require_resume
|
46
|
-
|
47
|
-
additional_properties = {})
|
45
|
+
def initialize(require_resume: SKIP, forgive_balance: SKIP,
|
46
|
+
additional_properties: {})
|
48
47
|
@require_resume = require_resume unless require_resume == SKIP
|
49
48
|
@forgive_balance = forgive_balance unless forgive_balance == SKIP
|
50
49
|
|
@@ -68,9 +67,9 @@ module AdvancedBilling
|
|
68
67
|
names.each_value { |k| hash.delete(k) }
|
69
68
|
|
70
69
|
# Create object from extracted values.
|
71
|
-
ResumeOptions.new(require_resume,
|
72
|
-
forgive_balance,
|
73
|
-
hash)
|
70
|
+
ResumeOptions.new(require_resume: require_resume,
|
71
|
+
forgive_balance: forgive_balance,
|
72
|
+
additional_properties: hash)
|
74
73
|
end
|
75
74
|
|
76
75
|
# Validates an instance of the object from a given value.
|
@@ -44,10 +44,8 @@ module AdvancedBilling
|
|
44
44
|
[]
|
45
45
|
end
|
46
46
|
|
47
|
-
def initialize(last_sent_at
|
48
|
-
|
49
|
-
uninvited_count = SKIP,
|
50
|
-
additional_properties = {})
|
47
|
+
def initialize(last_sent_at: SKIP, last_accepted_at: SKIP,
|
48
|
+
uninvited_count: SKIP, additional_properties: {})
|
51
49
|
@last_sent_at = last_sent_at unless last_sent_at == SKIP
|
52
50
|
@last_accepted_at = last_accepted_at unless last_accepted_at == SKIP
|
53
51
|
@uninvited_count = uninvited_count unless uninvited_count == SKIP
|
@@ -73,10 +71,10 @@ module AdvancedBilling
|
|
73
71
|
names.each_value { |k| hash.delete(k) }
|
74
72
|
|
75
73
|
# Create object from extracted values.
|
76
|
-
RevokedInvitation.new(last_sent_at,
|
77
|
-
last_accepted_at,
|
78
|
-
uninvited_count,
|
79
|
-
hash)
|
74
|
+
RevokedInvitation.new(last_sent_at: last_sent_at,
|
75
|
+
last_accepted_at: last_accepted_at,
|
76
|
+
uninvited_count: uninvited_count,
|
77
|
+
additional_properties: hash)
|
80
78
|
end
|
81
79
|
end
|
82
80
|
end
|
@@ -56,12 +56,9 @@ module AdvancedBilling
|
|
56
56
|
[]
|
57
57
|
end
|
58
58
|
|
59
|
-
def initialize(id
|
60
|
-
|
61
|
-
|
62
|
-
test_mode = SKIP,
|
63
|
-
subscriptions = SKIP,
|
64
|
-
additional_properties = {})
|
59
|
+
def initialize(id: SKIP, full_name: SKIP, subscriptions_count: SKIP,
|
60
|
+
test_mode: SKIP, subscriptions: SKIP,
|
61
|
+
additional_properties: {})
|
65
62
|
@id = id unless id == SKIP
|
66
63
|
@full_name = full_name unless full_name == SKIP
|
67
64
|
@subscriptions_count = subscriptions_count unless subscriptions_count == SKIP
|
@@ -99,12 +96,12 @@ module AdvancedBilling
|
|
99
96
|
names.each_value { |k| hash.delete(k) }
|
100
97
|
|
101
98
|
# Create object from extracted values.
|
102
|
-
SaleRep.new(id,
|
103
|
-
full_name,
|
104
|
-
subscriptions_count,
|
105
|
-
test_mode,
|
106
|
-
subscriptions,
|
107
|
-
hash)
|
99
|
+
SaleRep.new(id: id,
|
100
|
+
full_name: full_name,
|
101
|
+
subscriptions_count: subscriptions_count,
|
102
|
+
test_mode: test_mode,
|
103
|
+
subscriptions: subscriptions,
|
104
|
+
additional_properties: hash)
|
108
105
|
end
|
109
106
|
end
|
110
107
|
end
|
@@ -44,10 +44,8 @@ module AdvancedBilling
|
|
44
44
|
[]
|
45
45
|
end
|
46
46
|
|
47
|
-
def initialize(mrr
|
48
|
-
|
49
|
-
recurring = SKIP,
|
50
|
-
additional_properties = {})
|
47
|
+
def initialize(mrr: SKIP, usage: SKIP, recurring: SKIP,
|
48
|
+
additional_properties: {})
|
51
49
|
@mrr = mrr unless mrr == SKIP
|
52
50
|
@usage = usage unless usage == SKIP
|
53
51
|
@recurring = recurring unless recurring == 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
|
-
SaleRepItemMrr.new(mrr,
|
75
|
-
usage,
|
76
|
-
recurring,
|
77
|
-
hash)
|
72
|
+
SaleRepItemMrr.new(mrr: mrr,
|
73
|
+
usage: usage,
|
74
|
+
recurring: recurring,
|
75
|
+
additional_properties: hash)
|
78
76
|
end
|
79
77
|
end
|
80
78
|
end
|
@@ -68,14 +68,9 @@ module AdvancedBilling
|
|
68
68
|
[]
|
69
69
|
end
|
70
70
|
|
71
|
-
def initialize(customer_name
|
72
|
-
|
73
|
-
|
74
|
-
site_name = SKIP,
|
75
|
-
subscription_mrr = SKIP,
|
76
|
-
sales_rep_id = SKIP,
|
77
|
-
sales_rep_name = SKIP,
|
78
|
-
additional_properties = {})
|
71
|
+
def initialize(customer_name: SKIP, subscription_id: SKIP, site_link: SKIP,
|
72
|
+
site_name: SKIP, subscription_mrr: SKIP, sales_rep_id: SKIP,
|
73
|
+
sales_rep_name: SKIP, additional_properties: {})
|
79
74
|
@customer_name = customer_name unless customer_name == SKIP
|
80
75
|
@subscription_id = subscription_id unless subscription_id == SKIP
|
81
76
|
@site_link = site_link unless site_link == SKIP
|
@@ -110,14 +105,14 @@ module AdvancedBilling
|
|
110
105
|
names.each_value { |k| hash.delete(k) }
|
111
106
|
|
112
107
|
# Create object from extracted values.
|
113
|
-
SaleRepSettings.new(customer_name,
|
114
|
-
subscription_id,
|
115
|
-
site_link,
|
116
|
-
site_name,
|
117
|
-
subscription_mrr,
|
118
|
-
sales_rep_id,
|
119
|
-
sales_rep_name,
|
120
|
-
hash)
|
108
|
+
SaleRepSettings.new(customer_name: customer_name,
|
109
|
+
subscription_id: subscription_id,
|
110
|
+
site_link: site_link,
|
111
|
+
site_name: site_name,
|
112
|
+
subscription_mrr: subscription_mrr,
|
113
|
+
sales_rep_id: sales_rep_id,
|
114
|
+
sales_rep_name: sales_rep_name,
|
115
|
+
additional_properties: hash)
|
121
116
|
end
|
122
117
|
end
|
123
118
|
end
|
@@ -88,17 +88,10 @@ module AdvancedBilling
|
|
88
88
|
]
|
89
89
|
end
|
90
90
|
|
91
|
-
def initialize(id
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
created_at = SKIP,
|
96
|
-
mrr = SKIP,
|
97
|
-
usage = SKIP,
|
98
|
-
recurring = SKIP,
|
99
|
-
last_payment = SKIP,
|
100
|
-
churn_date = SKIP,
|
101
|
-
additional_properties = {})
|
91
|
+
def initialize(id: SKIP, site_name: SKIP, subscription_url: SKIP,
|
92
|
+
customer_name: SKIP, created_at: SKIP, mrr: SKIP,
|
93
|
+
usage: SKIP, recurring: SKIP, last_payment: SKIP,
|
94
|
+
churn_date: SKIP, additional_properties: {})
|
102
95
|
@id = id unless id == SKIP
|
103
96
|
@site_name = site_name unless site_name == SKIP
|
104
97
|
@subscription_url = subscription_url unless subscription_url == SKIP
|
@@ -137,17 +130,17 @@ module AdvancedBilling
|
|
137
130
|
names.each_value { |k| hash.delete(k) }
|
138
131
|
|
139
132
|
# Create object from extracted values.
|
140
|
-
SaleRepSubscription.new(id,
|
141
|
-
site_name,
|
142
|
-
subscription_url,
|
143
|
-
customer_name,
|
144
|
-
created_at,
|
145
|
-
mrr,
|
146
|
-
usage,
|
147
|
-
recurring,
|
148
|
-
last_payment,
|
149
|
-
churn_date,
|
150
|
-
hash)
|
133
|
+
SaleRepSubscription.new(id: id,
|
134
|
+
site_name: site_name,
|
135
|
+
subscription_url: subscription_url,
|
136
|
+
customer_name: customer_name,
|
137
|
+
created_at: created_at,
|
138
|
+
mrr: mrr,
|
139
|
+
usage: usage,
|
140
|
+
recurring: recurring,
|
141
|
+
last_payment: last_payment,
|
142
|
+
churn_date: churn_date,
|
143
|
+
additional_properties: hash)
|
151
144
|
end
|
152
145
|
end
|
153
146
|
end
|
@@ -116,19 +116,13 @@ module AdvancedBilling
|
|
116
116
|
[]
|
117
117
|
end
|
118
118
|
|
119
|
-
def initialize(id
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
segment_property_3_value = SKIP,
|
127
|
-
segment_property_4_value = SKIP,
|
128
|
-
created_at = SKIP,
|
129
|
-
updated_at = SKIP,
|
130
|
-
prices = SKIP,
|
131
|
-
additional_properties = {})
|
119
|
+
def initialize(id: SKIP, component_id: SKIP, price_point_id: SKIP,
|
120
|
+
event_based_billing_metric_id: SKIP, pricing_scheme: SKIP,
|
121
|
+
segment_property_1_value: SKIP,
|
122
|
+
segment_property_2_value: SKIP,
|
123
|
+
segment_property_3_value: SKIP,
|
124
|
+
segment_property_4_value: SKIP, created_at: SKIP,
|
125
|
+
updated_at: SKIP, prices: SKIP, additional_properties: {})
|
132
126
|
@id = id unless id == SKIP
|
133
127
|
@component_id = component_id unless component_id == SKIP
|
134
128
|
@price_point_id = price_point_id unless price_point_id == SKIP
|
@@ -201,19 +195,19 @@ module AdvancedBilling
|
|
201
195
|
names.each_value { |k| hash.delete(k) }
|
202
196
|
|
203
197
|
# Create object from extracted values.
|
204
|
-
Segment.new(id,
|
205
|
-
component_id,
|
206
|
-
price_point_id,
|
207
|
-
event_based_billing_metric_id,
|
208
|
-
pricing_scheme,
|
209
|
-
segment_property_1_value,
|
210
|
-
segment_property_2_value,
|
211
|
-
segment_property_3_value,
|
212
|
-
segment_property_4_value,
|
213
|
-
created_at,
|
214
|
-
updated_at,
|
215
|
-
prices,
|
216
|
-
hash)
|
198
|
+
Segment.new(id: id,
|
199
|
+
component_id: component_id,
|
200
|
+
price_point_id: price_point_id,
|
201
|
+
event_based_billing_metric_id: event_based_billing_metric_id,
|
202
|
+
pricing_scheme: pricing_scheme,
|
203
|
+
segment_property_1_value: segment_property_1_value,
|
204
|
+
segment_property_2_value: segment_property_2_value,
|
205
|
+
segment_property_3_value: segment_property_3_value,
|
206
|
+
segment_property_4_value: segment_property_4_value,
|
207
|
+
created_at: created_at,
|
208
|
+
updated_at: updated_at,
|
209
|
+
prices: prices,
|
210
|
+
additional_properties: hash)
|
217
211
|
end
|
218
212
|
|
219
213
|
def to_custom_created_at
|
@@ -76,15 +76,10 @@ module AdvancedBilling
|
|
76
76
|
]
|
77
77
|
end
|
78
78
|
|
79
|
-
def initialize(id
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
unit_price = SKIP,
|
84
|
-
price_point_id = SKIP,
|
85
|
-
formatted_unit_price = SKIP,
|
86
|
-
segment_id = SKIP,
|
87
|
-
additional_properties = {})
|
79
|
+
def initialize(id: SKIP, component_id: SKIP, starting_quantity: SKIP,
|
80
|
+
ending_quantity: SKIP, unit_price: SKIP,
|
81
|
+
price_point_id: SKIP, formatted_unit_price: SKIP,
|
82
|
+
segment_id: SKIP, additional_properties: {})
|
88
83
|
@id = id unless id == SKIP
|
89
84
|
@component_id = component_id unless component_id == SKIP
|
90
85
|
@starting_quantity = starting_quantity unless starting_quantity == SKIP
|
@@ -122,15 +117,15 @@ module AdvancedBilling
|
|
122
117
|
names.each_value { |k| hash.delete(k) }
|
123
118
|
|
124
119
|
# Create object from extracted values.
|
125
|
-
SegmentPrice.new(id,
|
126
|
-
component_id,
|
127
|
-
starting_quantity,
|
128
|
-
ending_quantity,
|
129
|
-
unit_price,
|
130
|
-
price_point_id,
|
131
|
-
formatted_unit_price,
|
132
|
-
segment_id,
|
133
|
-
hash)
|
120
|
+
SegmentPrice.new(id: id,
|
121
|
+
component_id: component_id,
|
122
|
+
starting_quantity: starting_quantity,
|
123
|
+
ending_quantity: ending_quantity,
|
124
|
+
unit_price: unit_price,
|
125
|
+
price_point_id: price_point_id,
|
126
|
+
formatted_unit_price: formatted_unit_price,
|
127
|
+
segment_id: segment_id,
|
128
|
+
additional_properties: hash)
|
134
129
|
end
|
135
130
|
|
136
131
|
# Validates an instance of the object from a given value.
|
@@ -32,8 +32,7 @@ module AdvancedBilling
|
|
32
32
|
[]
|
33
33
|
end
|
34
34
|
|
35
|
-
def initialize(segment
|
36
|
-
additional_properties = {})
|
35
|
+
def initialize(segment: SKIP, additional_properties: {})
|
37
36
|
@segment = segment unless segment == 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
|
-
SegmentResponse.new(segment,
|
57
|
-
hash)
|
55
|
+
SegmentResponse.new(segment: segment,
|
56
|
+
additional_properties: hash)
|
58
57
|
end
|
59
58
|
end
|
60
59
|
end
|
@@ -44,10 +44,8 @@ module AdvancedBilling
|
|
44
44
|
[]
|
45
45
|
end
|
46
46
|
|
47
|
-
def initialize(recipient_emails
|
48
|
-
|
49
|
-
bcc_recipient_emails = SKIP,
|
50
|
-
additional_properties = {})
|
47
|
+
def initialize(recipient_emails: SKIP, cc_recipient_emails: SKIP,
|
48
|
+
bcc_recipient_emails: SKIP, additional_properties: {})
|
51
49
|
@recipient_emails = recipient_emails unless recipient_emails == SKIP
|
52
50
|
@cc_recipient_emails = cc_recipient_emails unless cc_recipient_emails == SKIP
|
53
51
|
@bcc_recipient_emails = bcc_recipient_emails unless bcc_recipient_emails == SKIP
|
@@ -74,10 +72,10 @@ module AdvancedBilling
|
|
74
72
|
names.each_value { |k| hash.delete(k) }
|
75
73
|
|
76
74
|
# Create object from extracted values.
|
77
|
-
SendInvoiceRequest.new(recipient_emails,
|
78
|
-
cc_recipient_emails,
|
79
|
-
bcc_recipient_emails,
|
80
|
-
hash)
|
75
|
+
SendInvoiceRequest.new(recipient_emails: recipient_emails,
|
76
|
+
cc_recipient_emails: cc_recipient_emails,
|
77
|
+
bcc_recipient_emails: bcc_recipient_emails,
|
78
|
+
additional_properties: hash)
|
81
79
|
end
|
82
80
|
end
|
83
81
|
end
|
@@ -56,12 +56,9 @@ module AdvancedBilling
|
|
56
56
|
[]
|
57
57
|
end
|
58
58
|
|
59
|
-
def initialize(id
|
60
|
-
|
61
|
-
|
62
|
-
entry_type = SKIP,
|
63
|
-
memo = SKIP,
|
64
|
-
additional_properties = {})
|
59
|
+
def initialize(id: SKIP, amount_in_cents: SKIP,
|
60
|
+
ending_balance_in_cents: SKIP, entry_type: SKIP, memo: SKIP,
|
61
|
+
additional_properties: {})
|
65
62
|
@id = id unless id == SKIP
|
66
63
|
@amount_in_cents = amount_in_cents unless amount_in_cents == SKIP
|
67
64
|
@ending_balance_in_cents = ending_balance_in_cents unless ending_balance_in_cents == SKIP
|
@@ -91,12 +88,12 @@ module AdvancedBilling
|
|
91
88
|
names.each_value { |k| hash.delete(k) }
|
92
89
|
|
93
90
|
# Create object from extracted values.
|
94
|
-
ServiceCredit.new(id,
|
95
|
-
amount_in_cents,
|
96
|
-
ending_balance_in_cents,
|
97
|
-
entry_type,
|
98
|
-
memo,
|
99
|
-
hash)
|
91
|
+
ServiceCredit.new(id: id,
|
92
|
+
amount_in_cents: amount_in_cents,
|
93
|
+
ending_balance_in_cents: ending_balance_in_cents,
|
94
|
+
entry_type: entry_type,
|
95
|
+
memo: memo,
|
96
|
+
additional_properties: hash)
|
100
97
|
end
|
101
98
|
end
|
102
99
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(service_credit
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(service_credit:, additional_properties: {})
|
35
34
|
@service_credit = service_credit
|
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
|
-
ServiceCreditResponse.new(service_credit,
|
55
|
-
hash)
|
53
|
+
ServiceCreditResponse.new(service_credit: service_credit,
|
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_proforma_invoice
|
42
|
-
|
43
|
-
additional_properties = {})
|
41
|
+
def initialize(current_proforma_invoice: SKIP, next_proforma_invoice: SKIP,
|
42
|
+
additional_properties: {})
|
44
43
|
@current_proforma_invoice = current_proforma_invoice unless current_proforma_invoice == SKIP
|
45
44
|
@next_proforma_invoice = next_proforma_invoice unless next_proforma_invoice == 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
|
-
SignupProformaPreview.new(current_proforma_invoice,
|
68
|
-
next_proforma_invoice,
|
69
|
-
hash)
|
66
|
+
SignupProformaPreview.new(current_proforma_invoice: current_proforma_invoice,
|
67
|
+
next_proforma_invoice: next_proforma_invoice,
|
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(proforma_invoice_preview
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(proforma_invoice_preview:, additional_properties: {})
|
35
34
|
@proforma_invoice_preview = proforma_invoice_preview
|
36
35
|
|
37
36
|
# 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
|
-
SignupProformaPreviewResponse.new(proforma_invoice_preview,
|
57
|
-
hash)
|
55
|
+
SignupProformaPreviewResponse.new(proforma_invoice_preview: proforma_invoice_preview,
|
56
|
+
additional_properties: hash)
|
58
57
|
end
|
59
58
|
end
|
60
59
|
end
|