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
@@ -71,14 +71,9 @@ module AdvancedBilling
|
|
71
71
|
[]
|
72
72
|
end
|
73
73
|
|
74
|
-
def initialize(csv
|
75
|
-
|
76
|
-
|
77
|
-
portal = SKIP,
|
78
|
-
public_show = SKIP,
|
79
|
-
public_edit = SKIP,
|
80
|
-
hosted = SKIP,
|
81
|
-
additional_properties = {})
|
74
|
+
def initialize(csv: SKIP, invoices: SKIP, statements: SKIP, portal: SKIP,
|
75
|
+
public_show: SKIP, public_edit: SKIP, hosted: SKIP,
|
76
|
+
additional_properties: {})
|
82
77
|
@csv = csv unless csv == SKIP
|
83
78
|
@invoices = invoices unless invoices == SKIP
|
84
79
|
@statements = statements unless statements == 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
|
-
MetafieldScope.new(csv,
|
114
|
-
invoices,
|
115
|
-
statements,
|
116
|
-
portal,
|
117
|
-
public_show,
|
118
|
-
public_edit,
|
119
|
-
hosted,
|
120
|
-
hash)
|
108
|
+
MetafieldScope.new(csv: csv,
|
109
|
+
invoices: invoices,
|
110
|
+
statements: statements,
|
111
|
+
portal: portal,
|
112
|
+
public_show: public_show,
|
113
|
+
public_edit: public_edit,
|
114
|
+
hosted: hosted,
|
115
|
+
additional_properties: hash)
|
121
116
|
end
|
122
117
|
|
123
118
|
# Validates an instance of the object from a given value.
|
@@ -173,26 +173,15 @@ module AdvancedBilling
|
|
173
173
|
]
|
174
174
|
end
|
175
175
|
|
176
|
-
def initialize(name
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
price_points = SKIP,
|
186
|
-
unit_price = SKIP,
|
187
|
-
tax_code = SKIP,
|
188
|
-
hide_date_range_on_invoice = SKIP,
|
189
|
-
price_in_cents = SKIP,
|
190
|
-
display_on_hosted_page = SKIP,
|
191
|
-
allow_fractional_quantities = SKIP,
|
192
|
-
public_signup_page_ids = SKIP,
|
193
|
-
interval = SKIP,
|
194
|
-
interval_unit = SKIP,
|
195
|
-
additional_properties = {})
|
176
|
+
def initialize(name:, unit_name:, pricing_scheme:, description: SKIP,
|
177
|
+
handle: SKIP, taxable: SKIP, prices: SKIP,
|
178
|
+
upgrade_charge: SKIP, downgrade_credit: SKIP,
|
179
|
+
price_points: SKIP, unit_price: SKIP, tax_code: SKIP,
|
180
|
+
hide_date_range_on_invoice: SKIP, price_in_cents: SKIP,
|
181
|
+
display_on_hosted_page: SKIP,
|
182
|
+
allow_fractional_quantities: SKIP,
|
183
|
+
public_signup_page_ids: SKIP, interval: SKIP,
|
184
|
+
interval_unit: SKIP, additional_properties: {})
|
196
185
|
@name = name
|
197
186
|
@unit_name = unit_name
|
198
187
|
@description = description unless description == SKIP
|
@@ -282,26 +271,26 @@ module AdvancedBilling
|
|
282
271
|
names.each_value { |k| hash.delete(k) }
|
283
272
|
|
284
273
|
# Create object from extracted values.
|
285
|
-
MeteredComponent.new(name,
|
286
|
-
unit_name,
|
287
|
-
pricing_scheme,
|
288
|
-
description,
|
289
|
-
handle,
|
290
|
-
taxable,
|
291
|
-
prices,
|
292
|
-
upgrade_charge,
|
293
|
-
downgrade_credit,
|
294
|
-
price_points,
|
295
|
-
unit_price,
|
296
|
-
tax_code,
|
297
|
-
hide_date_range_on_invoice,
|
298
|
-
price_in_cents,
|
299
|
-
display_on_hosted_page,
|
300
|
-
allow_fractional_quantities,
|
301
|
-
public_signup_page_ids,
|
302
|
-
interval,
|
303
|
-
interval_unit,
|
304
|
-
hash)
|
274
|
+
MeteredComponent.new(name: name,
|
275
|
+
unit_name: unit_name,
|
276
|
+
pricing_scheme: pricing_scheme,
|
277
|
+
description: description,
|
278
|
+
handle: handle,
|
279
|
+
taxable: taxable,
|
280
|
+
prices: prices,
|
281
|
+
upgrade_charge: upgrade_charge,
|
282
|
+
downgrade_credit: downgrade_credit,
|
283
|
+
price_points: price_points,
|
284
|
+
unit_price: unit_price,
|
285
|
+
tax_code: tax_code,
|
286
|
+
hide_date_range_on_invoice: hide_date_range_on_invoice,
|
287
|
+
price_in_cents: price_in_cents,
|
288
|
+
display_on_hosted_page: display_on_hosted_page,
|
289
|
+
allow_fractional_quantities: allow_fractional_quantities,
|
290
|
+
public_signup_page_ids: public_signup_page_ids,
|
291
|
+
interval: interval,
|
292
|
+
interval_unit: interval_unit,
|
293
|
+
additional_properties: hash)
|
305
294
|
end
|
306
295
|
|
307
296
|
# Validates an instance of the object from a given value.
|
@@ -55,13 +55,9 @@ module AdvancedBilling
|
|
55
55
|
[]
|
56
56
|
end
|
57
57
|
|
58
|
-
def initialize(previous_unit_balance
|
59
|
-
|
60
|
-
|
61
|
-
component_id = nil,
|
62
|
-
component_handle = nil,
|
63
|
-
memo = nil,
|
64
|
-
additional_properties = {})
|
58
|
+
def initialize(previous_unit_balance:, new_unit_balance:, usage_quantity:,
|
59
|
+
component_id:, component_handle:, memo:,
|
60
|
+
additional_properties: {})
|
65
61
|
@previous_unit_balance = previous_unit_balance
|
66
62
|
@new_unit_balance = new_unit_balance
|
67
63
|
@usage_quantity = usage_quantity
|
@@ -95,13 +91,13 @@ module AdvancedBilling
|
|
95
91
|
names.each_value { |k| hash.delete(k) }
|
96
92
|
|
97
93
|
# Create object from extracted values.
|
98
|
-
MeteredUsage.new(previous_unit_balance,
|
99
|
-
new_unit_balance,
|
100
|
-
usage_quantity,
|
101
|
-
component_id,
|
102
|
-
component_handle,
|
103
|
-
memo,
|
104
|
-
hash)
|
94
|
+
MeteredUsage.new(previous_unit_balance: previous_unit_balance,
|
95
|
+
new_unit_balance: new_unit_balance,
|
96
|
+
usage_quantity: usage_quantity,
|
97
|
+
component_id: component_id,
|
98
|
+
component_handle: component_handle,
|
99
|
+
memo: memo,
|
100
|
+
additional_properties: hash)
|
105
101
|
end
|
106
102
|
|
107
103
|
# Validates an instance of the object from a given value.
|
@@ -81,16 +81,10 @@ module AdvancedBilling
|
|
81
81
|
[]
|
82
82
|
end
|
83
83
|
|
84
|
-
def initialize(timestamp
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
category = SKIP,
|
89
|
-
breakouts = SKIP,
|
90
|
-
line_items = SKIP,
|
91
|
-
subscription_id = SKIP,
|
92
|
-
subscriber_name = SKIP,
|
93
|
-
additional_properties = {})
|
84
|
+
def initialize(timestamp: SKIP, amount_in_cents: SKIP,
|
85
|
+
amount_formatted: SKIP, description: SKIP, category: SKIP,
|
86
|
+
breakouts: SKIP, line_items: SKIP, subscription_id: SKIP,
|
87
|
+
subscriber_name: SKIP, additional_properties: {})
|
94
88
|
@timestamp = timestamp unless timestamp == SKIP
|
95
89
|
@amount_in_cents = amount_in_cents unless amount_in_cents == SKIP
|
96
90
|
@amount_formatted = amount_formatted unless amount_formatted == SKIP
|
@@ -143,16 +137,16 @@ module AdvancedBilling
|
|
143
137
|
names.each_value { |k| hash.delete(k) }
|
144
138
|
|
145
139
|
# Create object from extracted values.
|
146
|
-
Movement.new(timestamp,
|
147
|
-
amount_in_cents,
|
148
|
-
amount_formatted,
|
149
|
-
description,
|
150
|
-
category,
|
151
|
-
breakouts,
|
152
|
-
line_items,
|
153
|
-
subscription_id,
|
154
|
-
subscriber_name,
|
155
|
-
hash)
|
140
|
+
Movement.new(timestamp: timestamp,
|
141
|
+
amount_in_cents: amount_in_cents,
|
142
|
+
amount_formatted: amount_formatted,
|
143
|
+
description: description,
|
144
|
+
category: category,
|
145
|
+
breakouts: breakouts,
|
146
|
+
line_items: line_items,
|
147
|
+
subscription_id: subscription_id,
|
148
|
+
subscriber_name: subscriber_name,
|
149
|
+
additional_properties: hash)
|
156
150
|
end
|
157
151
|
|
158
152
|
def to_custom_timestamp
|
@@ -88,16 +88,10 @@ module AdvancedBilling
|
|
88
88
|
[]
|
89
89
|
end
|
90
90
|
|
91
|
-
def initialize(product_id
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
mrr = SKIP,
|
96
|
-
mrr_movements = SKIP,
|
97
|
-
quantity = SKIP,
|
98
|
-
prev_quantity = SKIP,
|
99
|
-
recurring = SKIP,
|
100
|
-
additional_properties = {})
|
91
|
+
def initialize(product_id: SKIP, component_id: SKIP, price_point_id: SKIP,
|
92
|
+
name: SKIP, mrr: SKIP, mrr_movements: SKIP, quantity: SKIP,
|
93
|
+
prev_quantity: SKIP, recurring: SKIP,
|
94
|
+
additional_properties: {})
|
101
95
|
@product_id = product_id unless product_id == SKIP
|
102
96
|
@component_id = component_id unless component_id == SKIP
|
103
97
|
@price_point_id = price_point_id unless price_point_id == SKIP
|
@@ -143,16 +137,16 @@ module AdvancedBilling
|
|
143
137
|
names.each_value { |k| hash.delete(k) }
|
144
138
|
|
145
139
|
# Create object from extracted values.
|
146
|
-
MovementLineItem.new(product_id,
|
147
|
-
component_id,
|
148
|
-
price_point_id,
|
149
|
-
name,
|
150
|
-
mrr,
|
151
|
-
mrr_movements,
|
152
|
-
quantity,
|
153
|
-
prev_quantity,
|
154
|
-
recurring,
|
155
|
-
hash)
|
140
|
+
MovementLineItem.new(product_id: product_id,
|
141
|
+
component_id: component_id,
|
142
|
+
price_point_id: price_point_id,
|
143
|
+
name: name,
|
144
|
+
mrr: mrr,
|
145
|
+
mrr_movements: mrr_movements,
|
146
|
+
quantity: quantity,
|
147
|
+
prev_quantity: prev_quantity,
|
148
|
+
recurring: recurring,
|
149
|
+
additional_properties: hash)
|
156
150
|
end
|
157
151
|
end
|
158
152
|
end
|
@@ -63,13 +63,9 @@ module AdvancedBilling
|
|
63
63
|
[]
|
64
64
|
end
|
65
65
|
|
66
|
-
def initialize(amount_in_cents
|
67
|
-
|
68
|
-
|
69
|
-
currency_symbol = SKIP,
|
70
|
-
breakouts = SKIP,
|
71
|
-
at_time = SKIP,
|
72
|
-
additional_properties = {})
|
66
|
+
def initialize(amount_in_cents: SKIP, amount_formatted: SKIP,
|
67
|
+
currency: SKIP, currency_symbol: SKIP, breakouts: SKIP,
|
68
|
+
at_time: SKIP, additional_properties: {})
|
73
69
|
@amount_in_cents = amount_in_cents unless amount_in_cents == SKIP
|
74
70
|
@amount_formatted = amount_formatted unless amount_formatted == SKIP
|
75
71
|
@currency = currency unless currency == SKIP
|
@@ -106,13 +102,13 @@ module AdvancedBilling
|
|
106
102
|
names.each_value { |k| hash.delete(k) }
|
107
103
|
|
108
104
|
# Create object from extracted values.
|
109
|
-
MRR.new(amount_in_cents,
|
110
|
-
amount_formatted,
|
111
|
-
currency,
|
112
|
-
currency_symbol,
|
113
|
-
breakouts,
|
114
|
-
at_time,
|
115
|
-
hash)
|
105
|
+
MRR.new(amount_in_cents: amount_in_cents,
|
106
|
+
amount_formatted: amount_formatted,
|
107
|
+
currency: currency,
|
108
|
+
currency_symbol: currency_symbol,
|
109
|
+
breakouts: breakouts,
|
110
|
+
at_time: at_time,
|
111
|
+
additional_properties: hash)
|
116
112
|
end
|
117
113
|
|
118
114
|
def to_custom_at_time
|
@@ -50,11 +50,8 @@ module AdvancedBilling
|
|
50
50
|
[]
|
51
51
|
end
|
52
52
|
|
53
|
-
def initialize(amount
|
54
|
-
|
55
|
-
subscriber_delta = SKIP,
|
56
|
-
lead_delta = SKIP,
|
57
|
-
additional_properties = {})
|
53
|
+
def initialize(amount: SKIP, category: SKIP, subscriber_delta: SKIP,
|
54
|
+
lead_delta: SKIP, additional_properties: {})
|
58
55
|
@amount = amount unless amount == SKIP
|
59
56
|
@category = category unless category == SKIP
|
60
57
|
@subscriber_delta = subscriber_delta unless subscriber_delta == SKIP
|
@@ -81,11 +78,11 @@ module AdvancedBilling
|
|
81
78
|
names.each_value { |k| hash.delete(k) }
|
82
79
|
|
83
80
|
# Create object from extracted values.
|
84
|
-
MRRMovement.new(amount,
|
85
|
-
category,
|
86
|
-
subscriber_delta,
|
87
|
-
lead_delta,
|
88
|
-
hash)
|
81
|
+
MRRMovement.new(amount: amount,
|
82
|
+
category: category,
|
83
|
+
subscriber_delta: subscriber_delta,
|
84
|
+
lead_delta: lead_delta,
|
85
|
+
additional_properties: hash)
|
89
86
|
end
|
90
87
|
end
|
91
88
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(mrr
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(mrr:, additional_properties: {})
|
35
34
|
@mrr = mrr
|
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
|
-
MRRResponse.new(mrr,
|
55
|
-
hash)
|
53
|
+
MRRResponse.new(mrr: mrr,
|
54
|
+
additional_properties: hash)
|
56
55
|
end
|
57
56
|
end
|
58
57
|
end
|
@@ -52,11 +52,9 @@ module AdvancedBilling
|
|
52
52
|
[]
|
53
53
|
end
|
54
54
|
|
55
|
-
def initialize(transaction_id
|
56
|
-
|
57
|
-
|
58
|
-
applications = SKIP,
|
59
|
-
additional_properties = {})
|
55
|
+
def initialize(transaction_id: SKIP, total_amount: SKIP,
|
56
|
+
currency_code: SKIP, applications: SKIP,
|
57
|
+
additional_properties: {})
|
60
58
|
@transaction_id = transaction_id unless transaction_id == SKIP
|
61
59
|
@total_amount = total_amount unless total_amount == SKIP
|
62
60
|
@currency_code = currency_code unless currency_code == SKIP
|
@@ -92,11 +90,11 @@ module AdvancedBilling
|
|
92
90
|
names.each_value { |k| hash.delete(k) }
|
93
91
|
|
94
92
|
# Create object from extracted values.
|
95
|
-
MultiInvoicePayment.new(transaction_id,
|
96
|
-
total_amount,
|
97
|
-
currency_code,
|
98
|
-
applications,
|
99
|
-
hash)
|
93
|
+
MultiInvoicePayment.new(transaction_id: transaction_id,
|
94
|
+
total_amount: total_amount,
|
95
|
+
currency_code: currency_code,
|
96
|
+
applications: applications,
|
97
|
+
additional_properties: hash)
|
100
98
|
end
|
101
99
|
end
|
102
100
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(payment
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(payment:, additional_properties: {})
|
35
34
|
@payment = payment
|
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
|
-
MultiInvoicePaymentResponse.new(payment,
|
55
|
-
hash)
|
53
|
+
MultiInvoicePaymentResponse.new(payment: payment,
|
54
|
+
additional_properties: hash)
|
56
55
|
end
|
57
56
|
end
|
58
57
|
end
|
@@ -53,11 +53,8 @@ module AdvancedBilling
|
|
53
53
|
[]
|
54
54
|
end
|
55
55
|
|
56
|
-
def initialize(uid
|
57
|
-
|
58
|
-
primary_subscription_id = SKIP,
|
59
|
-
primary = SKIP,
|
60
|
-
additional_properties = {})
|
56
|
+
def initialize(uid: SKIP, scheme: SKIP, primary_subscription_id: SKIP,
|
57
|
+
primary: SKIP, additional_properties: {})
|
61
58
|
@uid = uid unless uid == SKIP
|
62
59
|
@scheme = scheme unless scheme == SKIP
|
63
60
|
@primary_subscription_id = primary_subscription_id unless primary_subscription_id == SKIP
|
@@ -84,11 +81,11 @@ module AdvancedBilling
|
|
84
81
|
names.each_value { |k| hash.delete(k) }
|
85
82
|
|
86
83
|
# Create object from extracted values.
|
87
|
-
NestedSubscriptionGroup.new(uid,
|
88
|
-
scheme,
|
89
|
-
primary_subscription_id,
|
90
|
-
primary,
|
91
|
-
hash)
|
84
|
+
NestedSubscriptionGroup.new(uid: uid,
|
85
|
+
scheme: scheme,
|
86
|
+
primary_subscription_id: primary_subscription_id,
|
87
|
+
primary: primary,
|
88
|
+
additional_properties: hash)
|
92
89
|
end
|
93
90
|
end
|
94
91
|
end
|
@@ -57,12 +57,10 @@ module AdvancedBilling
|
|
57
57
|
[]
|
58
58
|
end
|
59
59
|
|
60
|
-
def initialize(default_net_terms
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
custom_net_terms_enabled = false,
|
65
|
-
additional_properties = {})
|
60
|
+
def initialize(default_net_terms: 0, automatic_net_terms: 0,
|
61
|
+
remittance_net_terms: 0,
|
62
|
+
net_terms_on_remittance_signups_enabled: false,
|
63
|
+
custom_net_terms_enabled: false, additional_properties: {})
|
66
64
|
@default_net_terms = default_net_terms unless default_net_terms == SKIP
|
67
65
|
@automatic_net_terms = automatic_net_terms unless automatic_net_terms == SKIP
|
68
66
|
@remittance_net_terms = remittance_net_terms unless remittance_net_terms == SKIP
|
@@ -94,12 +92,12 @@ module AdvancedBilling
|
|
94
92
|
names.each_value { |k| hash.delete(k) }
|
95
93
|
|
96
94
|
# Create object from extracted values.
|
97
|
-
NetTerms.new(default_net_terms,
|
98
|
-
automatic_net_terms,
|
99
|
-
remittance_net_terms,
|
100
|
-
net_terms_on_remittance_signups_enabled,
|
101
|
-
custom_net_terms_enabled,
|
102
|
-
hash)
|
95
|
+
NetTerms.new(default_net_terms: default_net_terms,
|
96
|
+
automatic_net_terms: automatic_net_terms,
|
97
|
+
remittance_net_terms: remittance_net_terms,
|
98
|
+
net_terms_on_remittance_signups_enabled: net_terms_on_remittance_signups_enabled,
|
99
|
+
custom_net_terms_enabled: custom_net_terms_enabled,
|
100
|
+
additional_properties: hash)
|
103
101
|
end
|
104
102
|
end
|
105
103
|
end
|
@@ -144,26 +144,14 @@ module AdvancedBilling
|
|
144
144
|
]
|
145
145
|
end
|
146
146
|
|
147
|
-
def initialize(id
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
description = SKIP,
|
156
|
-
created_at = SKIP,
|
157
|
-
updated_at = SKIP,
|
158
|
-
archived_at = SKIP,
|
159
|
-
offer_items = SKIP,
|
160
|
-
offer_discounts = SKIP,
|
161
|
-
product_family_name = SKIP,
|
162
|
-
product_name = SKIP,
|
163
|
-
product_price_point_name = SKIP,
|
164
|
-
product_price_in_cents = SKIP,
|
165
|
-
offer_signup_pages = SKIP,
|
166
|
-
additional_properties = {})
|
147
|
+
def initialize(id: SKIP, site_id: SKIP, product_family_id: SKIP,
|
148
|
+
product_id: SKIP, product_price_point_id: SKIP,
|
149
|
+
product_revisable_number: SKIP, name: SKIP, handle: SKIP,
|
150
|
+
description: SKIP, created_at: SKIP, updated_at: SKIP,
|
151
|
+
archived_at: SKIP, offer_items: SKIP, offer_discounts: SKIP,
|
152
|
+
product_family_name: SKIP, product_name: SKIP,
|
153
|
+
product_price_point_name: SKIP, product_price_in_cents: SKIP,
|
154
|
+
offer_signup_pages: SKIP, additional_properties: {})
|
167
155
|
@id = id unless id == SKIP
|
168
156
|
@site_id = site_id unless site_id == SKIP
|
169
157
|
@product_family_id = product_family_id unless product_family_id == SKIP
|
@@ -264,26 +252,26 @@ module AdvancedBilling
|
|
264
252
|
names.each_value { |k| hash.delete(k) }
|
265
253
|
|
266
254
|
# Create object from extracted values.
|
267
|
-
Offer.new(id,
|
268
|
-
site_id,
|
269
|
-
product_family_id,
|
270
|
-
product_id,
|
271
|
-
product_price_point_id,
|
272
|
-
product_revisable_number,
|
273
|
-
name,
|
274
|
-
handle,
|
275
|
-
description,
|
276
|
-
created_at,
|
277
|
-
updated_at,
|
278
|
-
archived_at,
|
279
|
-
offer_items,
|
280
|
-
offer_discounts,
|
281
|
-
product_family_name,
|
282
|
-
product_name,
|
283
|
-
product_price_point_name,
|
284
|
-
product_price_in_cents,
|
285
|
-
offer_signup_pages,
|
286
|
-
hash)
|
255
|
+
Offer.new(id: id,
|
256
|
+
site_id: site_id,
|
257
|
+
product_family_id: product_family_id,
|
258
|
+
product_id: product_id,
|
259
|
+
product_price_point_id: product_price_point_id,
|
260
|
+
product_revisable_number: product_revisable_number,
|
261
|
+
name: name,
|
262
|
+
handle: handle,
|
263
|
+
description: description,
|
264
|
+
created_at: created_at,
|
265
|
+
updated_at: updated_at,
|
266
|
+
archived_at: archived_at,
|
267
|
+
offer_items: offer_items,
|
268
|
+
offer_discounts: offer_discounts,
|
269
|
+
product_family_name: product_family_name,
|
270
|
+
product_name: product_name,
|
271
|
+
product_price_point_name: product_price_point_name,
|
272
|
+
product_price_in_cents: product_price_in_cents,
|
273
|
+
offer_signup_pages: offer_signup_pages,
|
274
|
+
additional_properties: hash)
|
287
275
|
end
|
288
276
|
|
289
277
|
def to_custom_created_at
|
@@ -44,10 +44,8 @@ module AdvancedBilling
|
|
44
44
|
[]
|
45
45
|
end
|
46
46
|
|
47
|
-
def initialize(coupon_code
|
48
|
-
|
49
|
-
coupon_name = SKIP,
|
50
|
-
additional_properties = {})
|
47
|
+
def initialize(coupon_code: SKIP, coupon_id: SKIP, coupon_name: SKIP,
|
48
|
+
additional_properties: {})
|
51
49
|
@coupon_code = coupon_code unless coupon_code == SKIP
|
52
50
|
@coupon_id = coupon_id unless coupon_id == SKIP
|
53
51
|
@coupon_name = coupon_name unless coupon_name == 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
|
-
OfferDiscount.new(coupon_code,
|
75
|
-
coupon_id,
|
76
|
-
coupon_name,
|
77
|
-
hash)
|
72
|
+
OfferDiscount.new(coupon_code: coupon_code,
|
73
|
+
coupon_id: coupon_id,
|
74
|
+
coupon_name: coupon_name,
|
75
|
+
additional_properties: hash)
|
78
76
|
end
|
79
77
|
end
|
80
78
|
end
|
@@ -91,17 +91,12 @@ module AdvancedBilling
|
|
91
91
|
[]
|
92
92
|
end
|
93
93
|
|
94
|
-
def initialize(component_id
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
price_point_name = SKIP,
|
101
|
-
currency_prices = SKIP,
|
102
|
-
interval = SKIP,
|
103
|
-
interval_unit = SKIP,
|
104
|
-
additional_properties = {})
|
94
|
+
def initialize(component_id: SKIP, price_point_id: SKIP,
|
95
|
+
starting_quantity: SKIP, editable: SKIP,
|
96
|
+
component_unit_price: SKIP, component_name: SKIP,
|
97
|
+
price_point_name: SKIP, currency_prices: SKIP,
|
98
|
+
interval: SKIP, interval_unit: SKIP,
|
99
|
+
additional_properties: {})
|
105
100
|
@component_id = component_id unless component_id == SKIP
|
106
101
|
@price_point_id = price_point_id unless price_point_id == SKIP
|
107
102
|
@starting_quantity = starting_quantity unless starting_quantity == SKIP
|
@@ -153,17 +148,17 @@ module AdvancedBilling
|
|
153
148
|
names.each_value { |k| hash.delete(k) }
|
154
149
|
|
155
150
|
# Create object from extracted values.
|
156
|
-
OfferItem.new(component_id,
|
157
|
-
price_point_id,
|
158
|
-
starting_quantity,
|
159
|
-
editable,
|
160
|
-
component_unit_price,
|
161
|
-
component_name,
|
162
|
-
price_point_name,
|
163
|
-
currency_prices,
|
164
|
-
interval,
|
165
|
-
interval_unit,
|
166
|
-
hash)
|
151
|
+
OfferItem.new(component_id: component_id,
|
152
|
+
price_point_id: price_point_id,
|
153
|
+
starting_quantity: starting_quantity,
|
154
|
+
editable: editable,
|
155
|
+
component_unit_price: component_unit_price,
|
156
|
+
component_name: component_name,
|
157
|
+
price_point_name: price_point_name,
|
158
|
+
currency_prices: currency_prices,
|
159
|
+
interval: interval,
|
160
|
+
interval_unit: interval_unit,
|
161
|
+
additional_properties: hash)
|
167
162
|
end
|
168
163
|
end
|
169
164
|
end
|