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
@@ -73,15 +73,9 @@ module AdvancedBilling
|
|
73
73
|
]
|
74
74
|
end
|
75
75
|
|
76
|
-
def initialize(day_threshold
|
77
|
-
|
78
|
-
|
79
|
-
send_bcc_email = nil,
|
80
|
-
send_sms = nil,
|
81
|
-
email_body = SKIP,
|
82
|
-
email_subject = SKIP,
|
83
|
-
sms_body = SKIP,
|
84
|
-
additional_properties = {})
|
76
|
+
def initialize(day_threshold:, action:, send_email:, send_bcc_email:,
|
77
|
+
send_sms:, email_body: SKIP, email_subject: SKIP,
|
78
|
+
sms_body: SKIP, additional_properties: {})
|
85
79
|
@day_threshold = day_threshold
|
86
80
|
@action = action
|
87
81
|
@email_body = email_body unless email_body == SKIP
|
@@ -116,15 +110,15 @@ module AdvancedBilling
|
|
116
110
|
names.each_value { |k| hash.delete(k) }
|
117
111
|
|
118
112
|
# Create object from extracted values.
|
119
|
-
DunningStepData.new(day_threshold,
|
120
|
-
action,
|
121
|
-
send_email,
|
122
|
-
send_bcc_email,
|
123
|
-
send_sms,
|
124
|
-
email_body,
|
125
|
-
email_subject,
|
126
|
-
sms_body,
|
127
|
-
hash)
|
113
|
+
DunningStepData.new(day_threshold: day_threshold,
|
114
|
+
action: action,
|
115
|
+
send_email: send_email,
|
116
|
+
send_bcc_email: send_bcc_email,
|
117
|
+
send_sms: send_sms,
|
118
|
+
email_body: email_body,
|
119
|
+
email_subject: email_subject,
|
120
|
+
sms_body: sms_body,
|
121
|
+
additional_properties: hash)
|
128
122
|
end
|
129
123
|
|
130
124
|
# Validates an instance of the object from a given value.
|
@@ -40,10 +40,8 @@ module AdvancedBilling
|
|
40
40
|
[]
|
41
41
|
end
|
42
42
|
|
43
|
-
def initialize(dunner
|
44
|
-
|
45
|
-
next_step = nil,
|
46
|
-
additional_properties = {})
|
43
|
+
def initialize(dunner:, current_step:, next_step:,
|
44
|
+
additional_properties: {})
|
47
45
|
@dunner = dunner
|
48
46
|
@current_step = current_step
|
49
47
|
@next_step = next_step
|
@@ -67,10 +65,10 @@ module AdvancedBilling
|
|
67
65
|
names.each_value { |k| hash.delete(k) }
|
68
66
|
|
69
67
|
# Create object from extracted values.
|
70
|
-
DunningStepReached.new(dunner,
|
71
|
-
current_step,
|
72
|
-
next_step,
|
73
|
-
hash)
|
68
|
+
DunningStepReached.new(dunner: dunner,
|
69
|
+
current_step: current_step,
|
70
|
+
next_step: next_step,
|
71
|
+
additional_properties: hash)
|
74
72
|
end
|
75
73
|
|
76
74
|
# Validates an instance of the object from a given value.
|
@@ -160,24 +160,14 @@ module AdvancedBilling
|
|
160
160
|
]
|
161
161
|
end
|
162
162
|
|
163
|
-
def initialize(name
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
upgrade_charge = SKIP,
|
172
|
-
downgrade_credit = SKIP,
|
173
|
-
price_points = SKIP,
|
174
|
-
unit_price = SKIP,
|
175
|
-
tax_code = SKIP,
|
176
|
-
hide_date_range_on_invoice = SKIP,
|
177
|
-
price_in_cents = SKIP,
|
178
|
-
interval = SKIP,
|
179
|
-
interval_unit = SKIP,
|
180
|
-
additional_properties = {})
|
163
|
+
def initialize(name:, unit_name:, pricing_scheme:,
|
164
|
+
event_based_billing_metric_id:, description: SKIP,
|
165
|
+
handle: SKIP, taxable: SKIP, prices: SKIP,
|
166
|
+
upgrade_charge: SKIP, downgrade_credit: SKIP,
|
167
|
+
price_points: SKIP, unit_price: SKIP, tax_code: SKIP,
|
168
|
+
hide_date_range_on_invoice: SKIP, price_in_cents: SKIP,
|
169
|
+
interval: SKIP, interval_unit: SKIP,
|
170
|
+
additional_properties: {})
|
181
171
|
@name = name
|
182
172
|
@unit_name = unit_name
|
183
173
|
@description = description unless description == SKIP
|
@@ -258,24 +248,24 @@ module AdvancedBilling
|
|
258
248
|
names.each_value { |k| hash.delete(k) }
|
259
249
|
|
260
250
|
# Create object from extracted values.
|
261
|
-
EBBComponent.new(name,
|
262
|
-
unit_name,
|
263
|
-
pricing_scheme,
|
264
|
-
event_based_billing_metric_id,
|
265
|
-
description,
|
266
|
-
handle,
|
267
|
-
taxable,
|
268
|
-
prices,
|
269
|
-
upgrade_charge,
|
270
|
-
downgrade_credit,
|
271
|
-
price_points,
|
272
|
-
unit_price,
|
273
|
-
tax_code,
|
274
|
-
hide_date_range_on_invoice,
|
275
|
-
price_in_cents,
|
276
|
-
interval,
|
277
|
-
interval_unit,
|
278
|
-
hash)
|
251
|
+
EBBComponent.new(name: name,
|
252
|
+
unit_name: unit_name,
|
253
|
+
pricing_scheme: pricing_scheme,
|
254
|
+
event_based_billing_metric_id: event_based_billing_metric_id,
|
255
|
+
description: description,
|
256
|
+
handle: handle,
|
257
|
+
taxable: taxable,
|
258
|
+
prices: prices,
|
259
|
+
upgrade_charge: upgrade_charge,
|
260
|
+
downgrade_credit: downgrade_credit,
|
261
|
+
price_points: price_points,
|
262
|
+
unit_price: unit_price,
|
263
|
+
tax_code: tax_code,
|
264
|
+
hide_date_range_on_invoice: hide_date_range_on_invoice,
|
265
|
+
price_in_cents: price_in_cents,
|
266
|
+
interval: interval,
|
267
|
+
interval_unit: interval_unit,
|
268
|
+
additional_properties: hash)
|
279
269
|
end
|
280
270
|
|
281
271
|
# 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(chargify
|
36
|
-
additional_properties = {})
|
35
|
+
def initialize(chargify: SKIP, additional_properties: {})
|
37
36
|
@chargify = chargify unless chargify == 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
|
-
EBBEvent.new(chargify,
|
57
|
-
hash)
|
55
|
+
EBBEvent.new(chargify: chargify,
|
56
|
+
additional_properties: hash)
|
58
57
|
end
|
59
58
|
end
|
60
59
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(webhooks_enabled
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(webhooks_enabled:, additional_properties: {})
|
35
34
|
@webhooks_enabled = webhooks_enabled
|
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
|
-
EnableWebhooksRequest.new(webhooks_enabled,
|
56
|
-
hash)
|
54
|
+
EnableWebhooksRequest.new(webhooks_enabled: webhooks_enabled,
|
55
|
+
additional_properties: hash)
|
57
56
|
end
|
58
57
|
end
|
59
58
|
end
|
@@ -32,8 +32,7 @@ module AdvancedBilling
|
|
32
32
|
[]
|
33
33
|
end
|
34
34
|
|
35
|
-
def initialize(webhooks_enabled
|
36
|
-
additional_properties = {})
|
35
|
+
def initialize(webhooks_enabled: SKIP, additional_properties: {})
|
37
36
|
@webhooks_enabled = webhooks_enabled unless webhooks_enabled == SKIP
|
38
37
|
|
39
38
|
# Add additional model properties to the instance.
|
@@ -54,8 +53,8 @@ module AdvancedBilling
|
|
54
53
|
names.each_value { |k| hash.delete(k) }
|
55
54
|
|
56
55
|
# Create object from extracted values.
|
57
|
-
EnableWebhooksResponse.new(webhooks_enabled,
|
58
|
-
hash)
|
56
|
+
EnableWebhooksResponse.new(webhooks_enabled: webhooks_enabled,
|
57
|
+
additional_properties: hash)
|
59
58
|
end
|
60
59
|
end
|
61
60
|
end
|
@@ -56,12 +56,8 @@ module AdvancedBilling
|
|
56
56
|
[]
|
57
57
|
end
|
58
58
|
|
59
|
-
def initialize(id
|
60
|
-
|
61
|
-
site_id = SKIP,
|
62
|
-
status = SKIP,
|
63
|
-
webhook_subscriptions = SKIP,
|
64
|
-
additional_properties = {})
|
59
|
+
def initialize(id: SKIP, url: SKIP, site_id: SKIP, status: SKIP,
|
60
|
+
webhook_subscriptions: SKIP, additional_properties: {})
|
65
61
|
@id = id unless id == SKIP
|
66
62
|
@url = url unless url == SKIP
|
67
63
|
@site_id = site_id unless site_id == SKIP
|
@@ -90,12 +86,12 @@ module AdvancedBilling
|
|
90
86
|
names.each_value { |k| hash.delete(k) }
|
91
87
|
|
92
88
|
# Create object from extracted values.
|
93
|
-
Endpoint.new(id,
|
94
|
-
url,
|
95
|
-
site_id,
|
96
|
-
status,
|
97
|
-
webhook_subscriptions,
|
98
|
-
hash)
|
89
|
+
Endpoint.new(id: id,
|
90
|
+
url: url,
|
91
|
+
site_id: site_id,
|
92
|
+
status: status,
|
93
|
+
webhook_subscriptions: webhook_subscriptions,
|
94
|
+
additional_properties: hash)
|
99
95
|
end
|
100
96
|
end
|
101
97
|
end
|
@@ -32,8 +32,7 @@ module AdvancedBilling
|
|
32
32
|
[]
|
33
33
|
end
|
34
34
|
|
35
|
-
def initialize(endpoint
|
36
|
-
additional_properties = {})
|
35
|
+
def initialize(endpoint: SKIP, additional_properties: {})
|
37
36
|
@endpoint = endpoint unless endpoint == 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
|
-
EndpointResponse.new(endpoint,
|
57
|
-
hash)
|
55
|
+
EndpointResponse.new(endpoint: endpoint,
|
56
|
+
additional_properties: hash)
|
58
57
|
end
|
59
58
|
end
|
60
59
|
end
|
@@ -38,9 +38,7 @@ module AdvancedBilling
|
|
38
38
|
[]
|
39
39
|
end
|
40
40
|
|
41
|
-
def initialize(per_page
|
42
|
-
price_point = SKIP,
|
43
|
-
additional_properties = {})
|
41
|
+
def initialize(per_page: SKIP, price_point: SKIP, additional_properties: {})
|
44
42
|
@per_page = per_page unless per_page == SKIP
|
45
43
|
@price_point = price_point unless price_point == SKIP
|
46
44
|
|
@@ -62,9 +60,9 @@ module AdvancedBilling
|
|
62
60
|
names.each_value { |k| hash.delete(k) }
|
63
61
|
|
64
62
|
# Create object from extracted values.
|
65
|
-
Errors.new(per_page,
|
66
|
-
price_point,
|
67
|
-
hash)
|
63
|
+
Errors.new(per_page: per_page,
|
64
|
+
price_point: price_point,
|
65
|
+
additional_properties: hash)
|
68
66
|
end
|
69
67
|
end
|
70
68
|
end
|
@@ -65,14 +65,8 @@ module AdvancedBilling
|
|
65
65
|
]
|
66
66
|
end
|
67
67
|
|
68
|
-
def initialize(id
|
69
|
-
|
70
|
-
message = nil,
|
71
|
-
subscription_id = nil,
|
72
|
-
customer_id = nil,
|
73
|
-
created_at = nil,
|
74
|
-
event_specific_data = nil,
|
75
|
-
additional_properties = {})
|
68
|
+
def initialize(id:, key:, message:, subscription_id:, customer_id:,
|
69
|
+
created_at:, event_specific_data:, additional_properties: {})
|
76
70
|
@id = id
|
77
71
|
@key = key
|
78
72
|
@message = message
|
@@ -109,14 +103,14 @@ module AdvancedBilling
|
|
109
103
|
names.each_value { |k| hash.delete(k) }
|
110
104
|
|
111
105
|
# Create object from extracted values.
|
112
|
-
Event.new(id,
|
113
|
-
key,
|
114
|
-
message,
|
115
|
-
subscription_id,
|
116
|
-
customer_id,
|
117
|
-
created_at,
|
118
|
-
event_specific_data,
|
119
|
-
hash)
|
106
|
+
Event.new(id: id,
|
107
|
+
key: key,
|
108
|
+
message: message,
|
109
|
+
subscription_id: subscription_id,
|
110
|
+
customer_id: customer_id,
|
111
|
+
created_at: created_at,
|
112
|
+
event_specific_data: event_specific_data,
|
113
|
+
additional_properties: hash)
|
120
114
|
end
|
121
115
|
|
122
116
|
def to_custom_created_at
|
@@ -33,8 +33,7 @@ module AdvancedBilling
|
|
33
33
|
[]
|
34
34
|
end
|
35
35
|
|
36
|
-
def initialize(segments
|
37
|
-
additional_properties = {})
|
36
|
+
def initialize(segments:, additional_properties: {})
|
38
37
|
@segments = segments
|
39
38
|
|
40
39
|
# Add additional model properties to the instance.
|
@@ -54,8 +53,8 @@ module AdvancedBilling
|
|
54
53
|
names.each_value { |k| hash.delete(k) }
|
55
54
|
|
56
55
|
# Create object from extracted values.
|
57
|
-
EventBasedBillingSegmentError.new(segments,
|
58
|
-
hash)
|
56
|
+
EventBasedBillingSegmentError.new(segments: segments,
|
57
|
+
additional_properties: hash)
|
59
58
|
end
|
60
59
|
end
|
61
60
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(event
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(event:, additional_properties: {})
|
35
34
|
@event = event
|
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
|
-
EventResponse.new(event,
|
55
|
-
hash)
|
53
|
+
EventResponse.new(event: event,
|
54
|
+
additional_properties: hash)
|
56
55
|
end
|
57
56
|
end
|
58
57
|
end
|
@@ -51,12 +51,9 @@ module AdvancedBilling
|
|
51
51
|
[]
|
52
52
|
end
|
53
53
|
|
54
|
-
def initialize(id
|
55
|
-
|
56
|
-
|
57
|
-
event_type = InvoiceEventType::FAILED_PAYMENT,
|
58
|
-
event_data = nil,
|
59
|
-
additional_properties = {})
|
54
|
+
def initialize(id:, timestamp:, invoice:,
|
55
|
+
event_type: InvoiceEventType::FAILED_PAYMENT, event_data:,
|
56
|
+
additional_properties: {})
|
60
57
|
@id = id
|
61
58
|
@timestamp = timestamp
|
62
59
|
@invoice = invoice
|
@@ -86,12 +83,12 @@ module AdvancedBilling
|
|
86
83
|
names.each_value { |k| hash.delete(k) }
|
87
84
|
|
88
85
|
# Create object from extracted values.
|
89
|
-
FailedPaymentEvent.new(id,
|
90
|
-
timestamp,
|
91
|
-
invoice,
|
92
|
-
event_type,
|
93
|
-
event_data,
|
94
|
-
hash)
|
86
|
+
FailedPaymentEvent.new(id: id,
|
87
|
+
timestamp: timestamp,
|
88
|
+
invoice: invoice,
|
89
|
+
event_type: event_type,
|
90
|
+
event_data: event_data,
|
91
|
+
additional_properties: hash)
|
95
92
|
end
|
96
93
|
|
97
94
|
def to_custom_timestamp
|
@@ -54,12 +54,8 @@ module AdvancedBilling
|
|
54
54
|
]
|
55
55
|
end
|
56
56
|
|
57
|
-
def initialize(amount_in_cents
|
58
|
-
|
59
|
-
payment_method = nil,
|
60
|
-
transaction_id = nil,
|
61
|
-
memo = SKIP,
|
62
|
-
additional_properties = {})
|
57
|
+
def initialize(amount_in_cents:, applied_amount:, payment_method:,
|
58
|
+
transaction_id:, memo: SKIP, additional_properties: {})
|
63
59
|
@amount_in_cents = amount_in_cents
|
64
60
|
@applied_amount = applied_amount
|
65
61
|
@memo = memo unless memo == SKIP
|
@@ -91,12 +87,12 @@ module AdvancedBilling
|
|
91
87
|
names.each_value { |k| hash.delete(k) }
|
92
88
|
|
93
89
|
# Create object from extracted values.
|
94
|
-
FailedPaymentEventData.new(amount_in_cents,
|
95
|
-
applied_amount,
|
96
|
-
payment_method,
|
97
|
-
transaction_id,
|
98
|
-
memo,
|
99
|
-
hash)
|
90
|
+
FailedPaymentEventData.new(amount_in_cents: amount_in_cents,
|
91
|
+
applied_amount: applied_amount,
|
92
|
+
payment_method: payment_method,
|
93
|
+
transaction_id: transaction_id,
|
94
|
+
memo: memo,
|
95
|
+
additional_properties: hash)
|
100
96
|
end
|
101
97
|
|
102
98
|
# Validates an instance of the object from a given value.
|
@@ -440,19 +440,12 @@ module AdvancedBilling
|
|
440
440
|
[]
|
441
441
|
end
|
442
442
|
|
443
|
-
def initialize(uid
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
next_assessment_at = SKIP,
|
450
|
-
state = SKIP,
|
451
|
-
cancel_at_end_of_period = SKIP,
|
452
|
-
current_billing_amount_in_cents = SKIP,
|
453
|
-
customer = SKIP,
|
454
|
-
account_balances = SKIP,
|
455
|
-
additional_properties = {})
|
443
|
+
def initialize(uid: SKIP, scheme: SKIP, customer_id: SKIP,
|
444
|
+
payment_profile_id: SKIP, subscription_ids: SKIP,
|
445
|
+
primary_subscription_id: SKIP, next_assessment_at: SKIP,
|
446
|
+
state: SKIP, cancel_at_end_of_period: SKIP,
|
447
|
+
current_billing_amount_in_cents: SKIP, customer: SKIP,
|
448
|
+
account_balances: SKIP, additional_properties: {})
|
456
449
|
@uid = uid unless uid == SKIP
|
457
450
|
@scheme = scheme unless scheme == SKIP
|
458
451
|
@customer_id = customer_id unless customer_id == SKIP
|
@@ -507,19 +500,19 @@ module AdvancedBilling
|
|
507
500
|
names.each_value { |k| hash.delete(k) }
|
508
501
|
|
509
502
|
# Create object from extracted values.
|
510
|
-
FullSubscriptionGroupResponse.new(uid,
|
511
|
-
scheme,
|
512
|
-
customer_id,
|
513
|
-
payment_profile_id,
|
514
|
-
subscription_ids,
|
515
|
-
primary_subscription_id,
|
516
|
-
next_assessment_at,
|
517
|
-
state,
|
518
|
-
cancel_at_end_of_period,
|
519
|
-
current_billing_amount_in_cents,
|
520
|
-
customer,
|
521
|
-
account_balances,
|
522
|
-
hash)
|
503
|
+
FullSubscriptionGroupResponse.new(uid: uid,
|
504
|
+
scheme: scheme,
|
505
|
+
customer_id: customer_id,
|
506
|
+
payment_profile_id: payment_profile_id,
|
507
|
+
subscription_ids: subscription_ids,
|
508
|
+
primary_subscription_id: primary_subscription_id,
|
509
|
+
next_assessment_at: next_assessment_at,
|
510
|
+
state: state,
|
511
|
+
cancel_at_end_of_period: cancel_at_end_of_period,
|
512
|
+
current_billing_amount_in_cents: current_billing_amount_in_cents,
|
513
|
+
customer: customer,
|
514
|
+
account_balances: account_balances,
|
515
|
+
additional_properties: hash)
|
523
516
|
end
|
524
517
|
|
525
518
|
def to_custom_next_assessment_at
|
@@ -154,28 +154,14 @@ module AdvancedBilling
|
|
154
154
|
]
|
155
155
|
end
|
156
156
|
|
157
|
-
def initialize(first_name
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
billing_address = nil,
|
166
|
-
billing_city = nil,
|
167
|
-
billing_country = nil,
|
168
|
-
billing_state = nil,
|
169
|
-
billing_zip = nil,
|
170
|
-
payment_type = nil,
|
171
|
-
disabled = nil,
|
172
|
-
site_gateway_setting_id = nil,
|
173
|
-
id = SKIP,
|
174
|
-
customer_id = SKIP,
|
175
|
-
billing_address_2 = SKIP,
|
176
|
-
customer_vault_token = SKIP,
|
177
|
-
gateway_handle = SKIP,
|
178
|
-
additional_properties = {})
|
157
|
+
def initialize(first_name:, last_name:, masked_card_number:, card_type:,
|
158
|
+
expiration_month:, expiration_year:, current_vault:,
|
159
|
+
vault_token:, billing_address:, billing_city:,
|
160
|
+
billing_country:, billing_state:, billing_zip:,
|
161
|
+
payment_type:, disabled:, site_gateway_setting_id:, id: SKIP,
|
162
|
+
customer_id: SKIP, billing_address_2: SKIP,
|
163
|
+
customer_vault_token: SKIP, gateway_handle: SKIP,
|
164
|
+
additional_properties: {})
|
179
165
|
@id = id unless id == SKIP
|
180
166
|
@first_name = first_name
|
181
167
|
@last_name = last_name
|
@@ -244,28 +230,28 @@ module AdvancedBilling
|
|
244
230
|
names.each_value { |k| hash.delete(k) }
|
245
231
|
|
246
232
|
# Create object from extracted values.
|
247
|
-
GetOneTimeTokenPaymentProfile.new(first_name,
|
248
|
-
last_name,
|
249
|
-
masked_card_number,
|
250
|
-
card_type,
|
251
|
-
expiration_month,
|
252
|
-
expiration_year,
|
253
|
-
current_vault,
|
254
|
-
vault_token,
|
255
|
-
billing_address,
|
256
|
-
billing_city,
|
257
|
-
billing_country,
|
258
|
-
billing_state,
|
259
|
-
billing_zip,
|
260
|
-
payment_type,
|
261
|
-
disabled,
|
262
|
-
site_gateway_setting_id,
|
263
|
-
id,
|
264
|
-
customer_id,
|
265
|
-
billing_address_2,
|
266
|
-
customer_vault_token,
|
267
|
-
gateway_handle,
|
268
|
-
hash)
|
233
|
+
GetOneTimeTokenPaymentProfile.new(first_name: first_name,
|
234
|
+
last_name: last_name,
|
235
|
+
masked_card_number: masked_card_number,
|
236
|
+
card_type: card_type,
|
237
|
+
expiration_month: expiration_month,
|
238
|
+
expiration_year: expiration_year,
|
239
|
+
current_vault: current_vault,
|
240
|
+
vault_token: vault_token,
|
241
|
+
billing_address: billing_address,
|
242
|
+
billing_city: billing_city,
|
243
|
+
billing_country: billing_country,
|
244
|
+
billing_state: billing_state,
|
245
|
+
billing_zip: billing_zip,
|
246
|
+
payment_type: payment_type,
|
247
|
+
disabled: disabled,
|
248
|
+
site_gateway_setting_id: site_gateway_setting_id,
|
249
|
+
id: id,
|
250
|
+
customer_id: customer_id,
|
251
|
+
billing_address_2: billing_address_2,
|
252
|
+
customer_vault_token: customer_vault_token,
|
253
|
+
gateway_handle: gateway_handle,
|
254
|
+
additional_properties: hash)
|
269
255
|
end
|
270
256
|
end
|
271
257
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(payment_profile
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(payment_profile:, additional_properties: {})
|
35
34
|
@payment_profile = payment_profile
|
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
|
-
GetOneTimeTokenRequest.new(payment_profile,
|
56
|
-
hash)
|
54
|
+
GetOneTimeTokenRequest.new(payment_profile: payment_profile,
|
55
|
+
additional_properties: hash)
|
57
56
|
end
|
58
57
|
end
|
59
58
|
end
|
@@ -51,10 +51,8 @@ module AdvancedBilling
|
|
51
51
|
[]
|
52
52
|
end
|
53
53
|
|
54
|
-
def initialize(accrue
|
55
|
-
|
56
|
-
prorate = false,
|
57
|
-
additional_properties = {})
|
54
|
+
def initialize(accrue: false, align_date: false, prorate: false,
|
55
|
+
additional_properties: {})
|
58
56
|
@accrue = accrue unless accrue == SKIP
|
59
57
|
@align_date = align_date unless align_date == SKIP
|
60
58
|
@prorate = prorate unless prorate == SKIP
|
@@ -78,10 +76,10 @@ module AdvancedBilling
|
|
78
76
|
names.each_value { |k| hash.delete(k) }
|
79
77
|
|
80
78
|
# Create object from extracted values.
|
81
|
-
GroupBilling.new(accrue,
|
82
|
-
align_date,
|
83
|
-
prorate,
|
84
|
-
hash)
|
79
|
+
GroupBilling.new(accrue: accrue,
|
80
|
+
align_date: align_date,
|
81
|
+
prorate: prorate,
|
82
|
+
additional_properties: hash)
|
85
83
|
end
|
86
84
|
|
87
85
|
# Validates an instance of the object from a given value.
|