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
@@ -39,9 +39,7 @@ module AdvancedBilling
|
|
39
39
|
[]
|
40
40
|
end
|
41
41
|
|
42
|
-
def initialize(target
|
43
|
-
billing = SKIP,
|
44
|
-
additional_properties = {})
|
42
|
+
def initialize(target:, billing: SKIP, additional_properties: {})
|
45
43
|
@target = target
|
46
44
|
@billing = billing unless billing == SKIP
|
47
45
|
|
@@ -63,9 +61,9 @@ module AdvancedBilling
|
|
63
61
|
names.each_value { |k| hash.delete(k) }
|
64
62
|
|
65
63
|
# Create object from extracted values.
|
66
|
-
GroupSettings.new(target,
|
67
|
-
billing,
|
68
|
-
hash)
|
64
|
+
GroupSettings.new(target: target,
|
65
|
+
billing: billing,
|
66
|
+
additional_properties: hash)
|
69
67
|
end
|
70
68
|
|
71
69
|
# Validates an instance of the object from a given value.
|
@@ -40,9 +40,7 @@ module AdvancedBilling
|
|
40
40
|
[]
|
41
41
|
end
|
42
42
|
|
43
|
-
def initialize(type
|
44
|
-
id = SKIP,
|
45
|
-
additional_properties = {})
|
43
|
+
def initialize(type:, id: SKIP, additional_properties: {})
|
46
44
|
@type = type
|
47
45
|
@id = id unless id == SKIP
|
48
46
|
|
@@ -64,9 +62,9 @@ module AdvancedBilling
|
|
64
62
|
names.each_value { |k| hash.delete(k) }
|
65
63
|
|
66
64
|
# Create object from extracted values.
|
67
|
-
GroupTarget.new(type,
|
68
|
-
id,
|
69
|
-
hash)
|
65
|
+
GroupTarget.new(type: type,
|
66
|
+
id: id,
|
67
|
+
additional_properties: hash)
|
70
68
|
end
|
71
69
|
|
72
70
|
# Validates an instance of the object from a given value.
|
@@ -46,10 +46,8 @@ module AdvancedBilling
|
|
46
46
|
[]
|
47
47
|
end
|
48
48
|
|
49
|
-
def initialize(total_usage_quantity
|
50
|
-
|
51
|
-
billing_period_ends_at = SKIP,
|
52
|
-
additional_properties = {})
|
49
|
+
def initialize(total_usage_quantity: SKIP, billing_period_starts_at: SKIP,
|
50
|
+
billing_period_ends_at: SKIP, additional_properties: {})
|
53
51
|
@total_usage_quantity = total_usage_quantity unless total_usage_quantity == SKIP
|
54
52
|
@billing_period_starts_at = billing_period_starts_at unless billing_period_starts_at == SKIP
|
55
53
|
@billing_period_ends_at = billing_period_ends_at unless billing_period_ends_at == SKIP
|
@@ -82,10 +80,10 @@ module AdvancedBilling
|
|
82
80
|
names.each_value { |k| hash.delete(k) }
|
83
81
|
|
84
82
|
# Create object from extracted values.
|
85
|
-
HistoricUsage.new(total_usage_quantity,
|
86
|
-
billing_period_starts_at,
|
87
|
-
billing_period_ends_at,
|
88
|
-
hash)
|
83
|
+
HistoricUsage.new(total_usage_quantity: total_usage_quantity,
|
84
|
+
billing_period_starts_at: billing_period_starts_at,
|
85
|
+
billing_period_ends_at: billing_period_ends_at,
|
86
|
+
additional_properties: hash)
|
89
87
|
end
|
90
88
|
|
91
89
|
def to_custom_billing_period_starts_at
|
@@ -404,59 +404,27 @@ module AdvancedBilling
|
|
404
404
|
]
|
405
405
|
end
|
406
406
|
|
407
|
-
def initialize(id
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
subscription_group_id = SKIP,
|
429
|
-
parent_invoice_number = SKIP,
|
430
|
-
group_primary_subscription_id = SKIP,
|
431
|
-
product_name = SKIP,
|
432
|
-
product_family_name = SKIP,
|
433
|
-
seller = SKIP,
|
434
|
-
customer = SKIP,
|
435
|
-
payer = SKIP,
|
436
|
-
recipient_emails = SKIP,
|
437
|
-
net_terms = SKIP,
|
438
|
-
memo = SKIP,
|
439
|
-
billing_address = SKIP,
|
440
|
-
shipping_address = SKIP,
|
441
|
-
subtotal_amount = SKIP,
|
442
|
-
discount_amount = SKIP,
|
443
|
-
tax_amount = SKIP,
|
444
|
-
total_amount = SKIP,
|
445
|
-
credit_amount = SKIP,
|
446
|
-
refund_amount = SKIP,
|
447
|
-
paid_amount = SKIP,
|
448
|
-
due_amount = SKIP,
|
449
|
-
line_items = SKIP,
|
450
|
-
discounts = SKIP,
|
451
|
-
taxes = SKIP,
|
452
|
-
credits = SKIP,
|
453
|
-
refunds = SKIP,
|
454
|
-
payments = SKIP,
|
455
|
-
custom_fields = SKIP,
|
456
|
-
display_settings = SKIP,
|
457
|
-
public_url = SKIP,
|
458
|
-
previous_balance_data = SKIP,
|
459
|
-
additional_properties = {})
|
407
|
+
def initialize(id: SKIP, uid: SKIP, site_id: SKIP, customer_id: SKIP,
|
408
|
+
subscription_id: SKIP, number: SKIP, sequence_number: SKIP,
|
409
|
+
transaction_time: SKIP, created_at: SKIP, updated_at: SKIP,
|
410
|
+
issue_date: SKIP, due_date: SKIP, paid_date: SKIP,
|
411
|
+
status: SKIP, role: SKIP, parent_invoice_id: SKIP,
|
412
|
+
collection_method: SKIP, payment_instructions: SKIP,
|
413
|
+
currency: SKIP, consolidation_level: SKIP,
|
414
|
+
parent_invoice_uid: SKIP, subscription_group_id: SKIP,
|
415
|
+
parent_invoice_number: SKIP,
|
416
|
+
group_primary_subscription_id: SKIP, product_name: SKIP,
|
417
|
+
product_family_name: SKIP, seller: SKIP, customer: SKIP,
|
418
|
+
payer: SKIP, recipient_emails: SKIP, net_terms: SKIP,
|
419
|
+
memo: SKIP, billing_address: SKIP, shipping_address: SKIP,
|
420
|
+
subtotal_amount: SKIP, discount_amount: SKIP,
|
421
|
+
tax_amount: SKIP, total_amount: SKIP, credit_amount: SKIP,
|
422
|
+
refund_amount: SKIP, paid_amount: SKIP, due_amount: SKIP,
|
423
|
+
line_items: SKIP, discounts: SKIP, taxes: SKIP,
|
424
|
+
credits: SKIP, refunds: SKIP, payments: SKIP,
|
425
|
+
custom_fields: SKIP, display_settings: SKIP,
|
426
|
+
public_url: SKIP, previous_balance_data: SKIP,
|
427
|
+
additional_properties: {})
|
460
428
|
@id = id unless id == SKIP
|
461
429
|
@uid = uid unless uid == SKIP
|
462
430
|
@site_id = site_id unless site_id == SKIP
|
@@ -674,59 +642,59 @@ module AdvancedBilling
|
|
674
642
|
names.each_value { |k| hash.delete(k) }
|
675
643
|
|
676
644
|
# Create object from extracted values.
|
677
|
-
Invoice.new(id,
|
678
|
-
uid,
|
679
|
-
site_id,
|
680
|
-
customer_id,
|
681
|
-
subscription_id,
|
682
|
-
number,
|
683
|
-
sequence_number,
|
684
|
-
transaction_time,
|
685
|
-
created_at,
|
686
|
-
updated_at,
|
687
|
-
issue_date,
|
688
|
-
due_date,
|
689
|
-
paid_date,
|
690
|
-
status,
|
691
|
-
role,
|
692
|
-
parent_invoice_id,
|
693
|
-
collection_method,
|
694
|
-
payment_instructions,
|
695
|
-
currency,
|
696
|
-
consolidation_level,
|
697
|
-
parent_invoice_uid,
|
698
|
-
subscription_group_id,
|
699
|
-
parent_invoice_number,
|
700
|
-
group_primary_subscription_id,
|
701
|
-
product_name,
|
702
|
-
product_family_name,
|
703
|
-
seller,
|
704
|
-
customer,
|
705
|
-
payer,
|
706
|
-
recipient_emails,
|
707
|
-
net_terms,
|
708
|
-
memo,
|
709
|
-
billing_address,
|
710
|
-
shipping_address,
|
711
|
-
subtotal_amount,
|
712
|
-
discount_amount,
|
713
|
-
tax_amount,
|
714
|
-
total_amount,
|
715
|
-
credit_amount,
|
716
|
-
refund_amount,
|
717
|
-
paid_amount,
|
718
|
-
due_amount,
|
719
|
-
line_items,
|
720
|
-
discounts,
|
721
|
-
taxes,
|
722
|
-
credits,
|
723
|
-
refunds,
|
724
|
-
payments,
|
725
|
-
custom_fields,
|
726
|
-
display_settings,
|
727
|
-
public_url,
|
728
|
-
previous_balance_data,
|
729
|
-
hash)
|
645
|
+
Invoice.new(id: id,
|
646
|
+
uid: uid,
|
647
|
+
site_id: site_id,
|
648
|
+
customer_id: customer_id,
|
649
|
+
subscription_id: subscription_id,
|
650
|
+
number: number,
|
651
|
+
sequence_number: sequence_number,
|
652
|
+
transaction_time: transaction_time,
|
653
|
+
created_at: created_at,
|
654
|
+
updated_at: updated_at,
|
655
|
+
issue_date: issue_date,
|
656
|
+
due_date: due_date,
|
657
|
+
paid_date: paid_date,
|
658
|
+
status: status,
|
659
|
+
role: role,
|
660
|
+
parent_invoice_id: parent_invoice_id,
|
661
|
+
collection_method: collection_method,
|
662
|
+
payment_instructions: payment_instructions,
|
663
|
+
currency: currency,
|
664
|
+
consolidation_level: consolidation_level,
|
665
|
+
parent_invoice_uid: parent_invoice_uid,
|
666
|
+
subscription_group_id: subscription_group_id,
|
667
|
+
parent_invoice_number: parent_invoice_number,
|
668
|
+
group_primary_subscription_id: group_primary_subscription_id,
|
669
|
+
product_name: product_name,
|
670
|
+
product_family_name: product_family_name,
|
671
|
+
seller: seller,
|
672
|
+
customer: customer,
|
673
|
+
payer: payer,
|
674
|
+
recipient_emails: recipient_emails,
|
675
|
+
net_terms: net_terms,
|
676
|
+
memo: memo,
|
677
|
+
billing_address: billing_address,
|
678
|
+
shipping_address: shipping_address,
|
679
|
+
subtotal_amount: subtotal_amount,
|
680
|
+
discount_amount: discount_amount,
|
681
|
+
tax_amount: tax_amount,
|
682
|
+
total_amount: total_amount,
|
683
|
+
credit_amount: credit_amount,
|
684
|
+
refund_amount: refund_amount,
|
685
|
+
paid_amount: paid_amount,
|
686
|
+
due_amount: due_amount,
|
687
|
+
line_items: line_items,
|
688
|
+
discounts: discounts,
|
689
|
+
taxes: taxes,
|
690
|
+
credits: credits,
|
691
|
+
refunds: refunds,
|
692
|
+
payments: payments,
|
693
|
+
custom_fields: custom_fields,
|
694
|
+
display_settings: display_settings,
|
695
|
+
public_url: public_url,
|
696
|
+
previous_balance_data: previous_balance_data,
|
697
|
+
additional_properties: hash)
|
730
698
|
end
|
731
699
|
|
732
700
|
def to_custom_transaction_time
|
@@ -69,13 +69,8 @@ module AdvancedBilling
|
|
69
69
|
]
|
70
70
|
end
|
71
71
|
|
72
|
-
def initialize(street
|
73
|
-
|
74
|
-
city = SKIP,
|
75
|
-
state = SKIP,
|
76
|
-
zip = SKIP,
|
77
|
-
country = SKIP,
|
78
|
-
additional_properties = {})
|
72
|
+
def initialize(street: SKIP, line2: SKIP, city: SKIP, state: SKIP,
|
73
|
+
zip: SKIP, country: SKIP, additional_properties: {})
|
79
74
|
@street = street unless street == SKIP
|
80
75
|
@line2 = line2 unless line2 == SKIP
|
81
76
|
@city = city unless city == SKIP
|
@@ -105,13 +100,13 @@ module AdvancedBilling
|
|
105
100
|
names.each_value { |k| hash.delete(k) }
|
106
101
|
|
107
102
|
# Create object from extracted values.
|
108
|
-
InvoiceAddress.new(street,
|
109
|
-
line2,
|
110
|
-
city,
|
111
|
-
state,
|
112
|
-
zip,
|
113
|
-
country,
|
114
|
-
hash)
|
103
|
+
InvoiceAddress.new(street: street,
|
104
|
+
line2: line2,
|
105
|
+
city: city,
|
106
|
+
state: state,
|
107
|
+
zip: zip,
|
108
|
+
country: country,
|
109
|
+
additional_properties: hash)
|
115
110
|
end
|
116
111
|
|
117
112
|
# Validates an instance of the object from a given value.
|
@@ -44,10 +44,8 @@ module AdvancedBilling
|
|
44
44
|
[]
|
45
45
|
end
|
46
46
|
|
47
|
-
def initialize(uid
|
48
|
-
|
49
|
-
outstanding_amount = SKIP,
|
50
|
-
additional_properties = {})
|
47
|
+
def initialize(uid: SKIP, number: SKIP, outstanding_amount: SKIP,
|
48
|
+
additional_properties: {})
|
51
49
|
@uid = uid unless uid == SKIP
|
52
50
|
@number = number unless number == SKIP
|
53
51
|
@outstanding_amount = outstanding_amount unless outstanding_amount == SKIP
|
@@ -72,10 +70,10 @@ module AdvancedBilling
|
|
72
70
|
names.each_value { |k| hash.delete(k) }
|
73
71
|
|
74
72
|
# Create object from extracted values.
|
75
|
-
InvoiceBalanceItem.new(uid,
|
76
|
-
number,
|
77
|
-
outstanding_amount,
|
78
|
-
hash)
|
73
|
+
InvoiceBalanceItem.new(uid: uid,
|
74
|
+
number: number,
|
75
|
+
outstanding_amount: outstanding_amount,
|
76
|
+
additional_properties: hash)
|
79
77
|
end
|
80
78
|
|
81
79
|
# Validates an instance of the object from a given value.
|
@@ -69,14 +69,9 @@ module AdvancedBilling
|
|
69
69
|
[]
|
70
70
|
end
|
71
71
|
|
72
|
-
def initialize(uid
|
73
|
-
|
74
|
-
|
75
|
-
transaction_time = SKIP,
|
76
|
-
memo = SKIP,
|
77
|
-
original_amount = SKIP,
|
78
|
-
applied_amount = SKIP,
|
79
|
-
additional_properties = {})
|
72
|
+
def initialize(uid: SKIP, credit_note_number: SKIP, credit_note_uid: SKIP,
|
73
|
+
transaction_time: SKIP, memo: SKIP, original_amount: SKIP,
|
74
|
+
applied_amount: SKIP, additional_properties: {})
|
80
75
|
@uid = uid unless uid == SKIP
|
81
76
|
@credit_note_number = credit_note_number unless credit_note_number == SKIP
|
82
77
|
@credit_note_uid = credit_note_uid unless credit_note_uid == SKIP
|
@@ -116,14 +111,14 @@ module AdvancedBilling
|
|
116
111
|
names.each_value { |k| hash.delete(k) }
|
117
112
|
|
118
113
|
# Create object from extracted values.
|
119
|
-
InvoiceCredit.new(uid,
|
120
|
-
credit_note_number,
|
121
|
-
credit_note_uid,
|
122
|
-
transaction_time,
|
123
|
-
memo,
|
124
|
-
original_amount,
|
125
|
-
applied_amount,
|
126
|
-
hash)
|
114
|
+
InvoiceCredit.new(uid: uid,
|
115
|
+
credit_note_number: credit_note_number,
|
116
|
+
credit_note_uid: credit_note_uid,
|
117
|
+
transaction_time: transaction_time,
|
118
|
+
memo: memo,
|
119
|
+
original_amount: original_amount,
|
120
|
+
applied_amount: applied_amount,
|
121
|
+
additional_properties: hash)
|
127
122
|
end
|
128
123
|
|
129
124
|
def to_custom_transaction_time
|
@@ -56,12 +56,8 @@ module AdvancedBilling
|
|
56
56
|
[]
|
57
57
|
end
|
58
58
|
|
59
|
-
def initialize(owner_id
|
60
|
-
|
61
|
-
name = SKIP,
|
62
|
-
value = SKIP,
|
63
|
-
metadatum_id = SKIP,
|
64
|
-
additional_properties = {})
|
59
|
+
def initialize(owner_id: SKIP, owner_type: SKIP, name: SKIP, value: SKIP,
|
60
|
+
metadatum_id: SKIP, additional_properties: {})
|
65
61
|
@owner_id = owner_id unless owner_id == SKIP
|
66
62
|
@owner_type = owner_type unless owner_type == SKIP
|
67
63
|
@name = name unless name == SKIP
|
@@ -89,12 +85,12 @@ module AdvancedBilling
|
|
89
85
|
names.each_value { |k| hash.delete(k) }
|
90
86
|
|
91
87
|
# Create object from extracted values.
|
92
|
-
InvoiceCustomField.new(owner_id,
|
93
|
-
owner_type,
|
94
|
-
name,
|
95
|
-
value,
|
96
|
-
metadatum_id,
|
97
|
-
hash)
|
88
|
+
InvoiceCustomField.new(owner_id: owner_id,
|
89
|
+
owner_type: owner_type,
|
90
|
+
name: name,
|
91
|
+
value: value,
|
92
|
+
metadatum_id: metadatum_id,
|
93
|
+
additional_properties: hash)
|
98
94
|
end
|
99
95
|
|
100
96
|
# Validates an instance of the object from a given value.
|
@@ -74,14 +74,9 @@ module AdvancedBilling
|
|
74
74
|
]
|
75
75
|
end
|
76
76
|
|
77
|
-
def initialize(chargify_id
|
78
|
-
|
79
|
-
|
80
|
-
organization = SKIP,
|
81
|
-
email = SKIP,
|
82
|
-
vat_number = SKIP,
|
83
|
-
reference = SKIP,
|
84
|
-
additional_properties = {})
|
77
|
+
def initialize(chargify_id: SKIP, first_name: SKIP, last_name: SKIP,
|
78
|
+
organization: SKIP, email: SKIP, vat_number: SKIP,
|
79
|
+
reference: SKIP, additional_properties: {})
|
85
80
|
@chargify_id = chargify_id unless chargify_id == SKIP
|
86
81
|
@first_name = first_name unless first_name == SKIP
|
87
82
|
@last_name = last_name unless last_name == SKIP
|
@@ -113,14 +108,14 @@ module AdvancedBilling
|
|
113
108
|
names.each_value { |k| hash.delete(k) }
|
114
109
|
|
115
110
|
# Create object from extracted values.
|
116
|
-
InvoiceCustomer.new(chargify_id,
|
117
|
-
first_name,
|
118
|
-
last_name,
|
119
|
-
organization,
|
120
|
-
email,
|
121
|
-
vat_number,
|
122
|
-
reference,
|
123
|
-
hash)
|
111
|
+
InvoiceCustomer.new(chargify_id: chargify_id,
|
112
|
+
first_name: first_name,
|
113
|
+
last_name: last_name,
|
114
|
+
organization: organization,
|
115
|
+
email: email,
|
116
|
+
vat_number: vat_number,
|
117
|
+
reference: reference,
|
118
|
+
additional_properties: hash)
|
124
119
|
end
|
125
120
|
|
126
121
|
# Validates an instance of the object from a given value.
|
@@ -100,19 +100,11 @@ module AdvancedBilling
|
|
100
100
|
]
|
101
101
|
end
|
102
102
|
|
103
|
-
def initialize(uid
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
source_id = SKIP,
|
109
|
-
discount_type = SKIP,
|
110
|
-
percentage = SKIP,
|
111
|
-
eligible_amount = SKIP,
|
112
|
-
discount_amount = SKIP,
|
113
|
-
transaction_id = SKIP,
|
114
|
-
line_item_breakouts = SKIP,
|
115
|
-
additional_properties = {})
|
103
|
+
def initialize(uid: SKIP, title: SKIP, description: SKIP, code: SKIP,
|
104
|
+
source_type: SKIP, source_id: SKIP, discount_type: SKIP,
|
105
|
+
percentage: SKIP, eligible_amount: SKIP,
|
106
|
+
discount_amount: SKIP, transaction_id: SKIP,
|
107
|
+
line_item_breakouts: SKIP, additional_properties: {})
|
116
108
|
@uid = uid unless uid == SKIP
|
117
109
|
@title = title unless title == SKIP
|
118
110
|
@description = description unless description == SKIP
|
@@ -166,19 +158,19 @@ module AdvancedBilling
|
|
166
158
|
names.each_value { |k| hash.delete(k) }
|
167
159
|
|
168
160
|
# Create object from extracted values.
|
169
|
-
InvoiceDiscount.new(uid,
|
170
|
-
title,
|
171
|
-
description,
|
172
|
-
code,
|
173
|
-
source_type,
|
174
|
-
source_id,
|
175
|
-
discount_type,
|
176
|
-
percentage,
|
177
|
-
eligible_amount,
|
178
|
-
discount_amount,
|
179
|
-
transaction_id,
|
180
|
-
line_item_breakouts,
|
181
|
-
hash)
|
161
|
+
InvoiceDiscount.new(uid: uid,
|
162
|
+
title: title,
|
163
|
+
description: description,
|
164
|
+
code: code,
|
165
|
+
source_type: source_type,
|
166
|
+
source_id: source_id,
|
167
|
+
discount_type: discount_type,
|
168
|
+
percentage: percentage,
|
169
|
+
eligible_amount: eligible_amount,
|
170
|
+
discount_amount: discount_amount,
|
171
|
+
transaction_id: transaction_id,
|
172
|
+
line_item_breakouts: line_item_breakouts,
|
173
|
+
additional_properties: hash)
|
182
174
|
end
|
183
175
|
|
184
176
|
# Validates an instance of the object from a given value.
|
@@ -44,10 +44,8 @@ module AdvancedBilling
|
|
44
44
|
[]
|
45
45
|
end
|
46
46
|
|
47
|
-
def initialize(uid
|
48
|
-
|
49
|
-
discount_amount = SKIP,
|
50
|
-
additional_properties = {})
|
47
|
+
def initialize(uid: SKIP, eligible_amount: SKIP, discount_amount: SKIP,
|
48
|
+
additional_properties: {})
|
51
49
|
@uid = uid unless uid == SKIP
|
52
50
|
@eligible_amount = eligible_amount unless eligible_amount == SKIP
|
53
51
|
@discount_amount = discount_amount unless discount_amount == SKIP
|
@@ -73,10 +71,10 @@ module AdvancedBilling
|
|
73
71
|
names.each_value { |k| hash.delete(k) }
|
74
72
|
|
75
73
|
# Create object from extracted values.
|
76
|
-
InvoiceDiscountBreakout.new(uid,
|
77
|
-
eligible_amount,
|
78
|
-
discount_amount,
|
79
|
-
hash)
|
74
|
+
InvoiceDiscountBreakout.new(uid: uid,
|
75
|
+
eligible_amount: eligible_amount,
|
76
|
+
discount_amount: discount_amount,
|
77
|
+
additional_properties: hash)
|
80
78
|
end
|
81
79
|
|
82
80
|
# Validates an instance of the object from a given value.
|
@@ -38,9 +38,8 @@ module AdvancedBilling
|
|
38
38
|
[]
|
39
39
|
end
|
40
40
|
|
41
|
-
def initialize(hide_zero_subtotal_lines
|
42
|
-
include_discounts_on_lines
|
43
|
-
additional_properties = {})
|
41
|
+
def initialize(hide_zero_subtotal_lines: SKIP,
|
42
|
+
include_discounts_on_lines: SKIP, additional_properties: {})
|
44
43
|
@hide_zero_subtotal_lines = hide_zero_subtotal_lines unless hide_zero_subtotal_lines == SKIP
|
45
44
|
unless include_discounts_on_lines == SKIP
|
46
45
|
@include_discounts_on_lines =
|
@@ -67,9 +66,9 @@ module AdvancedBilling
|
|
67
66
|
names.each_value { |k| hash.delete(k) }
|
68
67
|
|
69
68
|
# Create object from extracted values.
|
70
|
-
InvoiceDisplaySettings.new(hide_zero_subtotal_lines,
|
71
|
-
include_discounts_on_lines,
|
72
|
-
hash)
|
69
|
+
InvoiceDisplaySettings.new(hide_zero_subtotal_lines: hide_zero_subtotal_lines,
|
70
|
+
include_discounts_on_lines: include_discounts_on_lines,
|
71
|
+
additional_properties: hash)
|
73
72
|
end
|
74
73
|
|
75
74
|
# Validates an instance of the object from a given value.
|
@@ -102,22 +102,10 @@ module AdvancedBilling
|
|
102
102
|
]
|
103
103
|
end
|
104
104
|
|
105
|
-
def initialize(uid
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
issue_date = nil,
|
110
|
-
paid_date = nil,
|
111
|
-
due_amount = nil,
|
112
|
-
paid_amount = nil,
|
113
|
-
tax_amount = nil,
|
114
|
-
refund_amount = nil,
|
115
|
-
total_amount = nil,
|
116
|
-
status_amount = nil,
|
117
|
-
product_name = nil,
|
118
|
-
consolidation_level = nil,
|
119
|
-
line_items = nil,
|
120
|
-
additional_properties = {})
|
105
|
+
def initialize(uid:, number:, role:, due_date:, issue_date:, paid_date:,
|
106
|
+
due_amount:, paid_amount:, tax_amount:, refund_amount:,
|
107
|
+
total_amount:, status_amount:, product_name:,
|
108
|
+
consolidation_level:, line_items:, additional_properties: {})
|
121
109
|
@uid = uid
|
122
110
|
@number = number
|
123
111
|
@role = role
|
@@ -175,22 +163,22 @@ module AdvancedBilling
|
|
175
163
|
names.each_value { |k| hash.delete(k) }
|
176
164
|
|
177
165
|
# Create object from extracted values.
|
178
|
-
InvoiceIssued.new(uid,
|
179
|
-
number,
|
180
|
-
role,
|
181
|
-
due_date,
|
182
|
-
issue_date,
|
183
|
-
paid_date,
|
184
|
-
due_amount,
|
185
|
-
paid_amount,
|
186
|
-
tax_amount,
|
187
|
-
refund_amount,
|
188
|
-
total_amount,
|
189
|
-
status_amount,
|
190
|
-
product_name,
|
191
|
-
consolidation_level,
|
192
|
-
line_items,
|
193
|
-
hash)
|
166
|
+
InvoiceIssued.new(uid: uid,
|
167
|
+
number: number,
|
168
|
+
role: role,
|
169
|
+
due_date: due_date,
|
170
|
+
issue_date: issue_date,
|
171
|
+
paid_date: paid_date,
|
172
|
+
due_amount: due_amount,
|
173
|
+
paid_amount: paid_amount,
|
174
|
+
tax_amount: tax_amount,
|
175
|
+
refund_amount: refund_amount,
|
176
|
+
total_amount: total_amount,
|
177
|
+
status_amount: status_amount,
|
178
|
+
product_name: product_name,
|
179
|
+
consolidation_level: consolidation_level,
|
180
|
+
line_items: line_items,
|
181
|
+
additional_properties: hash)
|
194
182
|
end
|
195
183
|
|
196
184
|
# Validates an instance of the object from a given value.
|