maxio-advanced-billing-sdk 1.0.0 → 2.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 +59 -297
- data/lib/advanced_billing/client.rb +21 -22
- data/lib/advanced_billing/configuration.rb +17 -18
- data/lib/advanced_billing/controllers/advance_invoice_controller.rb +8 -10
- data/lib/advanced_billing/controllers/api_exports_controller.rb +9 -9
- data/lib/advanced_billing/controllers/base_controller.rb +2 -1
- data/lib/advanced_billing/controllers/billing_portal_controller.rb +4 -4
- data/lib/advanced_billing/controllers/components_controller.rb +22 -22
- data/lib/advanced_billing/controllers/coupons_controller.rb +14 -14
- data/lib/advanced_billing/controllers/custom_fields_controller.rb +9 -9
- data/lib/advanced_billing/controllers/customers_controller.rb +7 -7
- data/lib/advanced_billing/controllers/events_based_billing_segments_controller.rb +6 -6
- data/lib/advanced_billing/controllers/events_controller.rb +3 -3
- data/lib/advanced_billing/controllers/insights_controller.rb +4 -4
- data/lib/advanced_billing/controllers/invoices_controller.rb +24 -20
- data/lib/advanced_billing/controllers/offers_controller.rb +5 -5
- data/lib/advanced_billing/controllers/payment_profiles_controller.rb +12 -12
- data/lib/advanced_billing/controllers/product_families_controller.rb +4 -4
- data/lib/advanced_billing/controllers/product_price_points_controller.rb +11 -11
- data/lib/advanced_billing/controllers/products_controller.rb +6 -6
- data/lib/advanced_billing/controllers/proforma_invoices_controller.rb +44 -25
- data/lib/advanced_billing/controllers/reason_codes_controller.rb +5 -5
- data/lib/advanced_billing/controllers/referral_codes_controller.rb +2 -2
- data/lib/advanced_billing/controllers/sales_commissions_controller.rb +3 -3
- data/lib/advanced_billing/controllers/sites_controller.rb +3 -3
- data/lib/advanced_billing/controllers/subscription_components_controller.rb +37 -31
- data/lib/advanced_billing/controllers/subscription_group_invoice_account_controller.rb +4 -4
- data/lib/advanced_billing/controllers/subscription_group_status_controller.rb +4 -4
- data/lib/advanced_billing/controllers/subscription_groups_controller.rb +23 -16
- data/lib/advanced_billing/controllers/subscription_invoice_account_controller.rb +11 -7
- data/lib/advanced_billing/controllers/subscription_notes_controller.rb +5 -5
- data/lib/advanced_billing/controllers/subscription_products_controller.rb +2 -2
- data/lib/advanced_billing/controllers/subscription_status_controller.rb +10 -10
- data/lib/advanced_billing/controllers/subscriptions_controller.rb +12 -12
- data/lib/advanced_billing/controllers/webhooks_controller.rb +8 -8
- data/lib/advanced_billing/exceptions/subscription_group_create_error_response_exception.rb +34 -0
- data/lib/advanced_billing/http/auth/basic_auth.rb +27 -6
- data/lib/advanced_billing/models/account_balance.rb +44 -3
- data/lib/advanced_billing/models/account_balances.rb +24 -2
- data/lib/advanced_billing/models/ach_agreement.rb +12 -2
- data/lib/advanced_billing/models/activate_subscription_request.rb +12 -2
- data/lib/advanced_billing/models/add_coupons_request.rb +12 -2
- data/lib/advanced_billing/models/add_subscription_to_a_group.rb +12 -2
- data/lib/advanced_billing/models/address_change.rb +12 -2
- data/lib/advanced_billing/models/agreement_acceptance.rb +12 -2
- data/lib/advanced_billing/models/allocate_components.rb +12 -2
- data/lib/advanced_billing/models/allocation.rb +56 -2
- data/lib/advanced_billing/models/allocation_expiration_date.rb +23 -4
- data/lib/advanced_billing/models/allocation_preview.rb +33 -6
- data/lib/advanced_billing/models/allocation_preview_item.rb +12 -2
- data/lib/advanced_billing/models/allocation_preview_line_item.rb +12 -2
- data/lib/advanced_billing/models/allocation_preview_response.rb +12 -2
- data/lib/advanced_billing/models/allocation_response.rb +12 -2
- data/lib/advanced_billing/models/allocation_settings.rb +12 -2
- data/lib/advanced_billing/models/applied_credit_note_data.rb +12 -2
- data/lib/advanced_billing/models/apply_credit_note_event_data.rb +12 -2
- data/lib/advanced_billing/models/apply_debit_note_event_data.rb +12 -2
- data/lib/advanced_billing/models/apply_payment_event_data.rb +12 -2
- data/lib/advanced_billing/models/attribute_error.rb +12 -2
- data/lib/advanced_billing/models/auto_resume.rb +12 -2
- data/lib/advanced_billing/models/bank_account_attributes.rb +12 -2
- data/lib/advanced_billing/models/bank_account_payment_profile.rb +13 -2
- data/lib/advanced_billing/models/bank_account_response.rb +12 -2
- data/lib/advanced_billing/models/bank_account_verification.rb +12 -2
- data/lib/advanced_billing/models/bank_account_verification_request.rb +12 -2
- data/lib/advanced_billing/models/base_refund_error.rb +12 -2
- data/lib/advanced_billing/models/base_string_error.rb +12 -2
- data/lib/advanced_billing/models/batch_job.rb +33 -6
- data/lib/advanced_billing/models/batch_job_response.rb +12 -2
- data/lib/advanced_billing/models/billing_address.rb +12 -2
- data/lib/advanced_billing/models/billing_manifest.rb +33 -6
- data/lib/advanced_billing/models/billing_manifest_item.rb +12 -2
- data/lib/advanced_billing/models/billing_schedule.rb +12 -2
- data/lib/advanced_billing/models/breakouts.rb +12 -2
- data/lib/advanced_billing/models/{bulk_component_s_price_point_assignment.rb → bulk_components_price_point_assignment.rb} +16 -6
- data/lib/advanced_billing/models/bulk_create_product_price_points_request.rb +12 -2
- data/lib/advanced_billing/models/bulk_create_product_price_points_response.rb +12 -2
- data/lib/advanced_billing/models/bulk_create_segments.rb +12 -2
- data/lib/advanced_billing/models/bulk_update_segments.rb +12 -2
- data/lib/advanced_billing/models/bulk_update_segments_item.rb +12 -2
- data/lib/advanced_billing/models/calendar_billing.rb +12 -2
- data/lib/advanced_billing/models/cancel_grouped_subscriptions_request.rb +12 -2
- data/lib/advanced_billing/models/cancellation_options.rb +12 -2
- data/lib/advanced_billing/models/cancellation_request.rb +12 -2
- data/lib/advanced_billing/models/change_invoice_collection_method_event_data.rb +12 -2
- data/lib/advanced_billing/models/chargify_ebb.rb +33 -6
- data/lib/advanced_billing/models/component.rb +22 -4
- data/lib/advanced_billing/models/component_allocation_change.rb +12 -2
- data/lib/advanced_billing/models/component_allocation_error_item.rb +12 -2
- data/lib/advanced_billing/models/component_cost_data.rb +12 -2
- data/lib/advanced_billing/models/component_cost_data_rate_tier.rb +12 -2
- data/lib/advanced_billing/models/component_currency_price.rb +12 -2
- data/lib/advanced_billing/models/component_currency_prices_response.rb +12 -2
- data/lib/advanced_billing/models/component_custom_price.rb +12 -2
- data/lib/advanced_billing/models/component_price.rb +12 -2
- data/lib/advanced_billing/models/component_price_point.rb +12 -2
- data/lib/advanced_billing/models/{component_s_price_point_assignment.rb → component_price_point_assignment.rb} +17 -7
- data/lib/advanced_billing/models/component_price_point_error_item.rb +12 -2
- data/lib/advanced_billing/models/component_price_point_item.rb +12 -2
- data/lib/advanced_billing/models/component_price_point_response.rb +12 -2
- data/lib/advanced_billing/models/component_price_points_response.rb +12 -2
- data/lib/advanced_billing/models/component_response.rb +12 -2
- data/lib/advanced_billing/models/consolidated_invoice.rb +12 -2
- data/lib/advanced_billing/models/count_response.rb +12 -2
- data/lib/advanced_billing/models/coupon.rb +78 -12
- data/lib/advanced_billing/models/coupon_currency.rb +12 -2
- data/lib/advanced_billing/models/coupon_currency_request.rb +12 -2
- data/lib/advanced_billing/models/coupon_currency_response.rb +12 -2
- data/lib/advanced_billing/models/coupon_response.rb +12 -2
- data/lib/advanced_billing/models/coupon_restriction.rb +12 -2
- data/lib/advanced_billing/models/coupon_subcodes.rb +12 -2
- data/lib/advanced_billing/models/coupon_subcodes_response.rb +12 -2
- data/lib/advanced_billing/models/coupon_usage.rb +12 -2
- data/lib/advanced_billing/models/create_allocation.rb +12 -2
- data/lib/advanced_billing/models/create_allocation_request.rb +12 -2
- data/lib/advanced_billing/models/create_component_price_point.rb +12 -2
- data/lib/advanced_billing/models/create_component_price_point_request.rb +12 -2
- data/lib/advanced_billing/models/create_component_price_points_request.rb +12 -2
- data/lib/advanced_billing/models/create_currency_price.rb +12 -2
- data/lib/advanced_billing/models/create_currency_prices_request.rb +12 -2
- data/lib/advanced_billing/models/create_customer.rb +12 -2
- data/lib/advanced_billing/models/create_customer_request.rb +12 -2
- data/lib/advanced_billing/models/create_ebb_component.rb +12 -2
- data/lib/advanced_billing/models/create_invoice.rb +12 -2
- data/lib/advanced_billing/models/create_invoice_address.rb +12 -2
- data/lib/advanced_billing/models/create_invoice_coupon.rb +12 -2
- data/lib/advanced_billing/models/create_invoice_item.rb +12 -2
- data/lib/advanced_billing/models/create_invoice_payment.rb +23 -2
- data/lib/advanced_billing/models/create_invoice_payment_application.rb +12 -2
- data/lib/advanced_billing/models/create_invoice_payment_request.rb +12 -2
- data/lib/advanced_billing/models/create_invoice_request.rb +12 -2
- data/lib/advanced_billing/models/create_metadata.rb +12 -2
- data/lib/advanced_billing/models/create_metadata_request.rb +12 -2
- data/lib/advanced_billing/models/create_metafield.rb +12 -2
- data/lib/advanced_billing/models/create_metafields_request.rb +12 -2
- data/lib/advanced_billing/models/create_metered_component.rb +12 -2
- data/lib/advanced_billing/models/create_multi_invoice_payment.rb +12 -2
- data/lib/advanced_billing/models/create_multi_invoice_payment_request.rb +12 -2
- data/lib/advanced_billing/models/create_offer.rb +12 -2
- data/lib/advanced_billing/models/create_offer_component.rb +12 -2
- data/lib/advanced_billing/models/create_offer_request.rb +12 -2
- data/lib/advanced_billing/models/create_on_off_component.rb +12 -2
- data/lib/advanced_billing/models/create_or_update_coupon.rb +12 -2
- data/lib/advanced_billing/models/{update_endpoint.rb → create_or_update_endpoint.rb} +14 -4
- data/lib/advanced_billing/models/{update_endpoint_request.rb → create_or_update_endpoint_request.rb} +15 -5
- data/lib/advanced_billing/models/create_or_update_flat_amount_coupon.rb +29 -2
- data/lib/advanced_billing/models/create_or_update_percentage_coupon.rb +29 -2
- data/lib/advanced_billing/models/create_or_update_product.rb +86 -4
- data/lib/advanced_billing/models/create_or_update_product_request.rb +12 -2
- data/lib/advanced_billing/models/create_or_update_segment_price.rb +12 -2
- data/lib/advanced_billing/models/create_payment.rb +14 -4
- data/lib/advanced_billing/models/create_payment_profile.rb +12 -2
- data/lib/advanced_billing/models/create_payment_profile_request.rb +12 -2
- data/lib/advanced_billing/models/create_prepaid_component.rb +12 -2
- data/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb +12 -2
- data/lib/advanced_billing/models/create_prepayment.rb +13 -3
- data/lib/advanced_billing/models/create_prepayment_method.rb +44 -0
- data/lib/advanced_billing/models/create_prepayment_request.rb +12 -2
- data/lib/advanced_billing/models/create_prepayment_response.rb +12 -2
- data/lib/advanced_billing/models/create_product_currency_price.rb +12 -2
- data/lib/advanced_billing/models/create_product_currency_prices_request.rb +12 -2
- data/lib/advanced_billing/models/create_product_family.rb +12 -2
- data/lib/advanced_billing/models/create_product_family_request.rb +12 -2
- data/lib/advanced_billing/models/create_product_price_point.rb +16 -6
- data/lib/advanced_billing/models/create_product_price_point_request.rb +12 -2
- data/lib/advanced_billing/models/create_quantity_based_component.rb +12 -2
- data/lib/advanced_billing/models/create_reason_code.rb +12 -2
- data/lib/advanced_billing/models/create_reason_code_request.rb +12 -2
- data/lib/advanced_billing/models/create_segment.rb +12 -2
- data/lib/advanced_billing/models/create_segment_request.rb +12 -2
- data/lib/advanced_billing/models/create_signup_proforma_preview_include.rb +20 -0
- data/lib/advanced_billing/models/create_subscription.rb +22 -4
- data/lib/advanced_billing/models/create_subscription_component.rb +12 -2
- data/lib/advanced_billing/models/create_subscription_group.rb +15 -20
- data/lib/advanced_billing/models/create_subscription_group_request.rb +12 -2
- data/lib/advanced_billing/models/create_subscription_request.rb +12 -2
- data/lib/advanced_billing/models/create_usage.rb +12 -2
- data/lib/advanced_billing/models/create_usage_request.rb +12 -2
- data/lib/advanced_billing/models/created_prepayment.rb +23 -4
- data/lib/advanced_billing/models/credit_account_balance_changed.rb +22 -5
- data/lib/advanced_billing/models/credit_card_attributes.rb +12 -2
- data/lib/advanced_billing/models/credit_card_payment_profile.rb +12 -2
- data/lib/advanced_billing/models/credit_note.rb +12 -2
- data/lib/advanced_billing/models/credit_note1.rb +12 -2
- data/lib/advanced_billing/models/credit_note_application.rb +23 -5
- data/lib/advanced_billing/models/credit_note_line_item.rb +38 -4
- data/lib/advanced_billing/models/credit_scheme_request.rb +12 -2
- data/lib/advanced_billing/models/currency_price.rb +12 -2
- data/lib/advanced_billing/models/currency_prices_response.rb +12 -2
- data/lib/advanced_billing/models/custom_field_value_change.rb +12 -2
- data/lib/advanced_billing/models/customer.rb +63 -15
- data/lib/advanced_billing/models/customer1.rb +13 -2
- data/lib/advanced_billing/models/customer_attributes.rb +12 -2
- data/lib/advanced_billing/models/customer_change.rb +12 -2
- data/lib/advanced_billing/models/customer_changes_preview_response.rb +12 -2
- data/lib/advanced_billing/models/customer_custom_fields_change.rb +12 -2
- data/lib/advanced_billing/models/customer_error.rb +12 -2
- data/lib/advanced_billing/models/customer_payer_change.rb +12 -2
- data/lib/advanced_billing/models/customer_response.rb +12 -2
- data/lib/advanced_billing/models/deduct_service_credit.rb +12 -2
- data/lib/advanced_billing/models/deduct_service_credit_request.rb +12 -2
- data/lib/advanced_billing/models/delayed_cancellation_response.rb +12 -2
- data/lib/advanced_billing/models/delete_subscription_group_response.rb +12 -2
- data/lib/advanced_billing/models/dunner_data.rb +29 -7
- data/lib/advanced_billing/models/dunning_step_data.rb +12 -2
- data/lib/advanced_billing/models/dunning_step_reached.rb +12 -2
- data/lib/advanced_billing/models/ebb_component.rb +12 -2
- data/lib/advanced_billing/models/ebb_event.rb +12 -2
- data/lib/advanced_billing/models/enable_webhooks_request.rb +12 -2
- data/lib/advanced_billing/models/enable_webhooks_response.rb +12 -2
- data/lib/advanced_billing/models/endpoint.rb +12 -2
- data/lib/advanced_billing/models/endpoint_response.rb +12 -2
- data/lib/advanced_billing/models/errors.rb +12 -2
- data/lib/advanced_billing/models/event.rb +23 -5
- data/lib/advanced_billing/models/event_based_billing_segment_error.rb +12 -2
- data/lib/advanced_billing/models/event_response.rb +12 -2
- data/lib/advanced_billing/models/full_subscription_group_response.rb +369 -11
- data/lib/advanced_billing/models/get_one_time_token_payment_profile.rb +12 -2
- data/lib/advanced_billing/models/get_one_time_token_request.rb +12 -2
- data/lib/advanced_billing/models/group_billing.rb +12 -2
- data/lib/advanced_billing/models/group_settings.rb +12 -2
- data/lib/advanced_billing/models/group_target.rb +12 -2
- data/lib/advanced_billing/models/group_type.rb +23 -0
- data/lib/advanced_billing/models/invoice.rb +12 -2
- data/lib/advanced_billing/models/invoice_address.rb +12 -2
- data/lib/advanced_billing/models/invoice_balance_item.rb +12 -2
- data/lib/advanced_billing/models/invoice_credit.rb +12 -2
- data/lib/advanced_billing/models/invoice_custom_field.rb +12 -2
- data/lib/advanced_billing/models/invoice_customer.rb +13 -2
- data/lib/advanced_billing/models/invoice_discount.rb +14 -4
- data/lib/advanced_billing/models/invoice_discount_breakout.rb +12 -2
- data/lib/advanced_billing/models/invoice_discount_source_type.rb +26 -0
- data/lib/advanced_billing/models/invoice_discount_type.rb +26 -0
- data/lib/advanced_billing/models/invoice_display_settings.rb +12 -2
- data/lib/advanced_billing/models/invoice_event.rb +23 -4
- data/lib/advanced_billing/models/invoice_event_data.rb +12 -2
- data/lib/advanced_billing/models/invoice_event_payment.rb +12 -2
- data/lib/advanced_billing/models/invoice_event_payment1.rb +12 -2
- data/lib/advanced_billing/models/invoice_issued.rb +27 -15
- data/lib/advanced_billing/models/invoice_line_item.rb +22 -2
- data/lib/advanced_billing/models/invoice_line_item_component_cost_data.rb +12 -2
- data/lib/advanced_billing/models/invoice_line_item_event_data.rb +12 -2
- data/lib/advanced_billing/models/invoice_line_item_pricing_detail.rb +12 -2
- data/lib/advanced_billing/models/invoice_payer.rb +12 -2
- data/lib/advanced_billing/models/invoice_payer_change.rb +12 -2
- data/lib/advanced_billing/models/invoice_payment.rb +12 -2
- data/lib/advanced_billing/models/invoice_payment_application.rb +12 -2
- data/lib/advanced_billing/models/invoice_payment_method.rb +12 -2
- data/lib/advanced_billing/models/invoice_pre_payment.rb +25 -5
- data/lib/advanced_billing/models/invoice_previous_balance.rb +12 -2
- data/lib/advanced_billing/models/invoice_refund.rb +34 -2
- data/lib/advanced_billing/models/invoice_response.rb +12 -2
- data/lib/advanced_billing/models/invoice_seller.rb +12 -2
- data/lib/advanced_billing/models/invoice_tax.rb +13 -3
- data/lib/advanced_billing/models/invoice_tax_breakout.rb +23 -2
- data/lib/advanced_billing/models/invoice_tax_component_breakout.rb +12 -2
- data/lib/advanced_billing/models/issue_advance_invoice_request.rb +12 -2
- data/lib/advanced_billing/models/issue_invoice_event_data.rb +12 -2
- data/lib/advanced_billing/models/issue_invoice_request.rb +12 -2
- data/lib/advanced_billing/models/issue_service_credit.rb +12 -2
- data/lib/advanced_billing/models/issue_service_credit_request.rb +12 -2
- data/lib/advanced_billing/models/item_price_point_changed.rb +12 -2
- data/lib/advanced_billing/models/item_price_point_data.rb +12 -2
- data/lib/advanced_billing/models/list_components_price_points_response.rb +12 -2
- data/lib/advanced_billing/models/list_credit_notes_response.rb +12 -2
- data/lib/advanced_billing/models/list_invoice_events_response.rb +12 -2
- data/lib/advanced_billing/models/list_invoices_response.rb +12 -2
- data/lib/advanced_billing/models/list_metafields_response.rb +12 -2
- data/lib/advanced_billing/models/list_mrr_response.rb +12 -2
- data/lib/advanced_billing/models/list_mrr_response_result.rb +12 -2
- data/lib/advanced_billing/models/list_offers_response.rb +12 -2
- data/lib/advanced_billing/models/list_product_price_points_response.rb +12 -2
- data/lib/advanced_billing/models/list_proforma_invoices_meta.rb +90 -0
- data/lib/advanced_billing/models/list_proforma_invoices_response.rb +79 -0
- data/lib/advanced_billing/models/list_public_keys_meta.rb +12 -2
- data/lib/advanced_billing/models/list_public_keys_response.rb +12 -2
- data/lib/advanced_billing/models/list_sale_rep_item.rb +12 -2
- data/lib/advanced_billing/models/list_segments_response.rb +12 -2
- data/lib/advanced_billing/models/list_subcription_group_prepayment_item.rb +25 -12
- data/lib/advanced_billing/models/list_subscription_components_response.rb +12 -2
- data/lib/advanced_billing/models/list_subscription_group_prepayment.rb +12 -2
- data/lib/advanced_billing/models/list_subscription_group_prepayment_response.rb +12 -2
- data/lib/advanced_billing/models/list_subscription_groups_item.rb +33 -5
- data/lib/advanced_billing/models/list_subscription_groups_meta.rb +12 -2
- data/lib/advanced_billing/models/list_subscription_groups_response.rb +12 -2
- data/lib/advanced_billing/models/metadata.rb +23 -4
- data/lib/advanced_billing/models/metafield.rb +12 -2
- data/lib/advanced_billing/models/metafield_scope.rb +12 -2
- data/lib/advanced_billing/models/metered_component.rb +12 -2
- data/lib/advanced_billing/models/metered_usage.rb +12 -2
- data/lib/advanced_billing/models/movement.rb +23 -4
- data/lib/advanced_billing/models/movement_line_item.rb +12 -2
- data/lib/advanced_billing/models/mrr.rb +23 -4
- data/lib/advanced_billing/models/mrr_movement.rb +12 -2
- data/lib/advanced_billing/models/mrr_response.rb +12 -2
- data/lib/advanced_billing/models/multi_invoice_payment.rb +12 -2
- data/lib/advanced_billing/models/multi_invoice_payment_response.rb +12 -2
- data/lib/advanced_billing/models/nested_subscription_group.rb +12 -2
- data/lib/advanced_billing/models/net_terms.rb +12 -2
- data/lib/advanced_billing/models/offer.rb +43 -8
- data/lib/advanced_billing/models/offer_discount.rb +12 -2
- data/lib/advanced_billing/models/offer_item.rb +12 -2
- data/lib/advanced_billing/models/offer_response.rb +12 -2
- data/lib/advanced_billing/models/offer_signup_page.rb +12 -2
- data/lib/advanced_billing/models/on_off_component.rb +12 -2
- data/lib/advanced_billing/models/organization_address.rb +12 -2
- data/lib/advanced_billing/models/origin_invoice.rb +12 -2
- data/lib/advanced_billing/models/overage_pricing.rb +12 -2
- data/lib/advanced_billing/models/override_subscription.rb +12 -2
- data/lib/advanced_billing/models/override_subscription_request.rb +12 -2
- data/lib/advanced_billing/models/paginated_metadata.rb +12 -2
- data/lib/advanced_billing/models/{payment.rb → paid_invoice.rb} +23 -13
- data/lib/advanced_billing/models/pause_request.rb +12 -2
- data/lib/advanced_billing/models/payer_attributes.rb +13 -3
- data/lib/advanced_billing/models/payer_error.rb +12 -2
- data/lib/advanced_billing/models/payment_collection_method_changed.rb +12 -2
- data/lib/advanced_billing/models/payment_for_allocation.rb +12 -2
- data/lib/advanced_billing/models/payment_method_apple_pay.rb +12 -2
- data/lib/advanced_billing/models/payment_method_bank_account.rb +12 -2
- data/lib/advanced_billing/models/payment_method_credit_card.rb +12 -2
- data/lib/advanced_billing/models/payment_method_external.rb +12 -2
- data/lib/advanced_billing/models/payment_method_paypal.rb +12 -2
- data/lib/advanced_billing/models/payment_profile_attributes.rb +12 -2
- data/lib/advanced_billing/models/payment_profile_response.rb +12 -2
- data/lib/advanced_billing/models/payment_related_events.rb +12 -2
- data/lib/advanced_billing/models/pending_cancellation_change.rb +22 -5
- data/lib/advanced_billing/models/portal_management_link.rb +53 -12
- data/lib/advanced_billing/models/prepaid_component_price_point.rb +12 -2
- data/lib/advanced_billing/models/prepaid_configuration.rb +12 -2
- data/lib/advanced_billing/models/prepaid_configuration_response.rb +12 -2
- data/lib/advanced_billing/models/prepaid_subscription_balance_changed.rb +12 -2
- data/lib/advanced_billing/models/prepaid_usage.rb +12 -2
- data/lib/advanced_billing/models/prepaid_usage_allocation_detail.rb +12 -2
- data/lib/advanced_billing/models/prepaid_usage_component.rb +12 -2
- data/lib/advanced_billing/models/prepayment.rb +21 -4
- data/lib/advanced_billing/models/prepayment_account_balance_changed.rb +12 -2
- data/lib/advanced_billing/models/prepayment_aggregated_error.rb +12 -2
- data/lib/advanced_billing/models/prepayment_method.rb +3 -6
- data/lib/advanced_billing/models/prepayment_response.rb +12 -2
- data/lib/advanced_billing/models/prepayments_response.rb +12 -2
- data/lib/advanced_billing/models/preview_allocations_request.rb +12 -2
- data/lib/advanced_billing/models/price.rb +12 -2
- data/lib/advanced_billing/models/price_point.rb +12 -2
- data/lib/advanced_billing/models/product.rb +14 -4
- data/lib/advanced_billing/models/product_family.rb +33 -6
- data/lib/advanced_billing/models/product_family_response.rb +12 -2
- data/lib/advanced_billing/models/product_price_point.rb +16 -6
- data/lib/advanced_billing/models/product_price_point_errors.rb +12 -2
- data/lib/advanced_billing/models/product_price_point_response.rb +12 -2
- data/lib/advanced_billing/models/product_response.rb +12 -2
- data/lib/advanced_billing/models/proforma_error.rb +12 -2
- data/lib/advanced_billing/models/proforma_invoice.rb +87 -19
- data/lib/advanced_billing/models/proforma_invoice_credit.rb +12 -2
- data/lib/advanced_billing/models/proforma_invoice_discount.rb +37 -7
- data/lib/advanced_billing/models/proforma_invoice_discount_source_type.rb +23 -0
- data/lib/advanced_billing/models/proforma_invoice_issued.rb +23 -6
- data/lib/advanced_billing/models/proforma_invoice_payment.rb +12 -2
- data/lib/advanced_billing/models/proforma_invoice_role.rb +30 -0
- data/lib/advanced_billing/models/proforma_invoice_status.rb +26 -0
- data/lib/advanced_billing/models/proforma_invoice_tax.rb +15 -5
- data/lib/advanced_billing/models/proforma_invoice_tax_source_type.rb +23 -0
- data/lib/advanced_billing/models/proration.rb +12 -2
- data/lib/advanced_billing/models/public_key.rb +23 -4
- data/lib/advanced_billing/models/public_signup_page.rb +12 -2
- data/lib/advanced_billing/models/quantity_based_component.rb +12 -2
- data/lib/advanced_billing/models/reactivate_subscription_group_request.rb +12 -2
- data/lib/advanced_billing/models/reactivate_subscription_group_response.rb +23 -5
- data/lib/advanced_billing/models/reactivate_subscription_request.rb +12 -2
- data/lib/advanced_billing/models/reactivation_billing.rb +12 -2
- data/lib/advanced_billing/models/reason_code.rb +33 -6
- data/lib/advanced_billing/models/reason_code_response.rb +12 -2
- data/lib/advanced_billing/models/reason_codes_json_response.rb +12 -2
- data/lib/advanced_billing/models/record_payment_request.rb +12 -2
- data/lib/advanced_billing/models/{payment_response.rb → record_payment_response.rb} +33 -9
- data/lib/advanced_billing/models/referral_code.rb +12 -2
- data/lib/advanced_billing/models/referral_validation_response.rb +12 -2
- data/lib/advanced_billing/models/refund.rb +12 -2
- data/lib/advanced_billing/models/refund_consolidated_invoice.rb +12 -2
- data/lib/advanced_billing/models/refund_invoice.rb +12 -2
- data/lib/advanced_billing/models/refund_invoice_event_data.rb +12 -2
- data/lib/advanced_billing/models/refund_invoice_request.rb +12 -2
- data/lib/advanced_billing/models/refund_prepayment.rb +12 -2
- data/lib/advanced_billing/models/refund_prepayment_aggregated_error.rb +12 -2
- data/lib/advanced_billing/models/refund_prepayment_base_refund_error.rb +12 -2
- data/lib/advanced_billing/models/refund_prepayment_request.rb +12 -2
- data/lib/advanced_billing/models/refund_success.rb +12 -2
- data/lib/advanced_billing/models/remove_payment_event_data.rb +12 -2
- data/lib/advanced_billing/models/renewal_preview.rb +23 -5
- data/lib/advanced_billing/models/renewal_preview_component.rb +12 -2
- data/lib/advanced_billing/models/renewal_preview_line_item.rb +12 -2
- data/lib/advanced_billing/models/renewal_preview_request.rb +12 -2
- data/lib/advanced_billing/models/renewal_preview_response.rb +12 -2
- data/lib/advanced_billing/models/replay_webhooks_request.rb +12 -2
- data/lib/advanced_billing/models/replay_webhooks_response.rb +12 -2
- data/lib/advanced_billing/models/resent_invitation.rb +12 -2
- data/lib/advanced_billing/models/resume_options.rb +12 -2
- data/lib/advanced_billing/models/revoked_invitation.rb +12 -2
- data/lib/advanced_billing/models/sale_rep.rb +12 -2
- data/lib/advanced_billing/models/sale_rep_item_mrr.rb +12 -2
- data/lib/advanced_billing/models/sale_rep_settings.rb +12 -2
- data/lib/advanced_billing/models/sale_rep_subscription.rb +12 -2
- data/lib/advanced_billing/models/segment.rb +33 -6
- data/lib/advanced_billing/models/segment_price.rb +12 -2
- data/lib/advanced_billing/models/segment_response.rb +12 -2
- data/lib/advanced_billing/models/seller.rb +12 -2
- data/lib/advanced_billing/models/send_invoice_request.rb +12 -2
- data/lib/advanced_billing/models/service_credit.rb +12 -2
- data/lib/advanced_billing/models/service_credit_response.rb +12 -2
- data/lib/advanced_billing/models/shipping_address.rb +12 -2
- data/lib/advanced_billing/models/signup_proforma_preview.rb +12 -2
- data/lib/advanced_billing/models/signup_proforma_preview_response.rb +12 -2
- data/lib/advanced_billing/models/site.rb +12 -2
- data/lib/advanced_billing/models/site_response.rb +12 -2
- data/lib/advanced_billing/models/site_statistics.rb +16 -6
- data/lib/advanced_billing/models/site_summary.rb +12 -2
- data/lib/advanced_billing/models/subscription.rb +12 -2
- data/lib/advanced_billing/models/subscription_component.rb +22 -4
- data/lib/advanced_billing/models/subscription_component_allocation_error_item.rb +12 -2
- data/lib/advanced_billing/models/subscription_component_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_component_subscription.rb +23 -4
- data/lib/advanced_billing/models/subscription_custom_price.rb +12 -2
- data/lib/advanced_billing/models/subscription_group.rb +38 -10
- data/lib/advanced_billing/models/subscription_group_balances.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_bank_account.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_component_custom_price.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_credit_card.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_customer.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_include.rb +20 -0
- data/lib/advanced_billing/models/subscription_group_item.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_member_error.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_members_array_error.rb +72 -0
- data/lib/advanced_billing/models/subscription_group_payment_profile.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_prepayment.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_prepayment_request.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_prepayment_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_component.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_error.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_failure.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_failure_data.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_item.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_request.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_response.rb +231 -9
- data/lib/advanced_billing/models/subscription_group_signup_success.rb +12 -2
- data/lib/advanced_billing/models/subscription_group_signup_success_data.rb +21 -5
- data/lib/advanced_billing/models/subscription_group_single_error.rb +73 -0
- data/lib/advanced_billing/models/subscription_group_subscription_error.rb +66 -2
- data/lib/advanced_billing/models/subscription_group_update_error.rb +12 -2
- data/lib/advanced_billing/models/subscription_groups_list_include.rb +20 -0
- data/lib/advanced_billing/models/subscription_included_coupon.rb +12 -2
- data/lib/advanced_billing/models/subscription_migration_preview.rb +12 -2
- data/lib/advanced_billing/models/subscription_migration_preview_options.rb +23 -5
- data/lib/advanced_billing/models/subscription_migration_preview_request.rb +12 -2
- data/lib/advanced_billing/models/subscription_migration_preview_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_mrr.rb +12 -2
- data/lib/advanced_billing/models/subscription_mrr_breakout.rb +12 -2
- data/lib/advanced_billing/models/subscription_mrr_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_note.rb +33 -6
- data/lib/advanced_billing/models/subscription_note_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_preview.rb +12 -2
- data/lib/advanced_billing/models/subscription_preview_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_product_change.rb +12 -2
- data/lib/advanced_billing/models/subscription_product_migration.rb +12 -2
- data/lib/advanced_billing/models/subscription_product_migration_request.rb +12 -2
- data/lib/advanced_billing/models/subscription_response.rb +12 -2
- data/lib/advanced_billing/models/subscription_state_change.rb +12 -2
- data/lib/advanced_billing/models/tax_configuration.rb +12 -2
- data/lib/advanced_billing/models/too_many_management_link_requests.rb +12 -2
- data/lib/advanced_billing/models/update_allocation_expiration_date.rb +12 -2
- data/lib/advanced_billing/models/update_component.rb +12 -2
- data/lib/advanced_billing/models/update_component_price_point.rb +12 -2
- data/lib/advanced_billing/models/update_component_price_point_request.rb +12 -2
- data/lib/advanced_billing/models/update_component_request.rb +12 -2
- data/lib/advanced_billing/models/update_coupon_currency.rb +12 -2
- data/lib/advanced_billing/models/update_currency_price.rb +12 -2
- data/lib/advanced_billing/models/update_currency_prices_request.rb +12 -2
- data/lib/advanced_billing/models/update_customer.rb +12 -2
- data/lib/advanced_billing/models/update_customer_request.rb +12 -2
- data/lib/advanced_billing/models/update_metadata.rb +12 -2
- data/lib/advanced_billing/models/update_metadata_request.rb +12 -2
- data/lib/advanced_billing/models/update_metafield.rb +12 -2
- data/lib/advanced_billing/models/update_metafields_request.rb +12 -2
- data/lib/advanced_billing/models/update_payment_profile.rb +12 -2
- data/lib/advanced_billing/models/update_payment_profile_request.rb +12 -2
- data/lib/advanced_billing/models/update_price.rb +12 -2
- data/lib/advanced_billing/models/update_product_price_point.rb +12 -2
- data/lib/advanced_billing/models/update_product_price_point_request.rb +12 -2
- data/lib/advanced_billing/models/update_reason_code.rb +12 -2
- data/lib/advanced_billing/models/update_reason_code_request.rb +12 -2
- data/lib/advanced_billing/models/update_segment.rb +12 -2
- data/lib/advanced_billing/models/update_segment_request.rb +12 -2
- data/lib/advanced_billing/models/update_subscription.rb +23 -5
- data/lib/advanced_billing/models/update_subscription_component.rb +12 -2
- data/lib/advanced_billing/models/update_subscription_group.rb +12 -2
- data/lib/advanced_billing/models/update_subscription_group_request.rb +12 -2
- data/lib/advanced_billing/models/update_subscription_note.rb +12 -2
- data/lib/advanced_billing/models/update_subscription_note_request.rb +12 -2
- data/lib/advanced_billing/models/update_subscription_request.rb +12 -2
- data/lib/advanced_billing/models/upsert_prepaid_configuration.rb +12 -2
- data/lib/advanced_billing/models/upsert_prepaid_configuration_request.rb +12 -2
- data/lib/advanced_billing/models/usage.rb +12 -2
- data/lib/advanced_billing/models/usage_response.rb +12 -2
- data/lib/advanced_billing/models/void_invoice.rb +12 -2
- data/lib/advanced_billing/models/void_invoice_event_data.rb +12 -2
- data/lib/advanced_billing/models/void_invoice_request.rb +12 -2
- data/lib/advanced_billing/models/void_remainder_event_data.rb +12 -2
- data/lib/advanced_billing/models/webhook.rb +53 -10
- data/lib/advanced_billing/models/webhook_response.rb +12 -2
- data/lib/advanced_billing/utilities/union_type_lookup.rb +20 -8
- data/lib/advanced_billing.rb +25 -12
- metadata +24 -11
- data/lib/advanced_billing/models/proforma_invoice_discount_breakout.rb +0 -62
- data/lib/advanced_billing/models/proforma_invoice_preview.rb +0 -484
- data/lib/advanced_billing/models/proforma_invoice_tax_breakout.rb +0 -61
@@ -39,9 +39,15 @@ module AdvancedBilling
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def initialize(current_page = SKIP,
|
42
|
-
total_count = SKIP
|
42
|
+
total_count = SKIP,
|
43
|
+
additional_properties = {})
|
43
44
|
@current_page = current_page unless current_page == SKIP
|
44
45
|
@total_count = total_count unless total_count == SKIP
|
46
|
+
|
47
|
+
# Add additional model properties to the instance.
|
48
|
+
additional_properties.each do |_name, _value|
|
49
|
+
instance_variable_set("@#{_name}", _value)
|
50
|
+
end
|
45
51
|
end
|
46
52
|
|
47
53
|
# Creates an instance of the object from a hash.
|
@@ -52,9 +58,13 @@ module AdvancedBilling
|
|
52
58
|
current_page = hash.key?('current_page') ? hash['current_page'] : SKIP
|
53
59
|
total_count = hash.key?('total_count') ? hash['total_count'] : SKIP
|
54
60
|
|
61
|
+
# Clean out expected properties from Hash.
|
62
|
+
names.each_value { |k| hash.delete(k) }
|
63
|
+
|
55
64
|
# Create object from extracted values.
|
56
65
|
ListSubscriptionGroupsMeta.new(current_page,
|
57
|
-
total_count
|
66
|
+
total_count,
|
67
|
+
hash)
|
58
68
|
end
|
59
69
|
end
|
60
70
|
end
|
@@ -39,9 +39,15 @@ module AdvancedBilling
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def initialize(subscription_groups = SKIP,
|
42
|
-
meta = SKIP
|
42
|
+
meta = SKIP,
|
43
|
+
additional_properties = {})
|
43
44
|
@subscription_groups = subscription_groups unless subscription_groups == SKIP
|
44
45
|
@meta = meta unless meta == SKIP
|
46
|
+
|
47
|
+
# Add additional model properties to the instance.
|
48
|
+
additional_properties.each do |_name, _value|
|
49
|
+
instance_variable_set("@#{_name}", _value)
|
50
|
+
end
|
45
51
|
end
|
46
52
|
|
47
53
|
# Creates an instance of the object from a hash.
|
@@ -61,9 +67,13 @@ module AdvancedBilling
|
|
61
67
|
subscription_groups = SKIP unless hash.key?('subscription_groups')
|
62
68
|
meta = ListSubscriptionGroupsMeta.from_hash(hash['meta']) if hash['meta']
|
63
69
|
|
70
|
+
# Clean out expected properties from Hash.
|
71
|
+
names.each_value { |k| hash.delete(k) }
|
72
|
+
|
64
73
|
# Create object from extracted values.
|
65
74
|
ListSubscriptionGroupsResponse.new(subscription_groups,
|
66
|
-
meta
|
75
|
+
meta,
|
76
|
+
hash)
|
67
77
|
end
|
68
78
|
end
|
69
79
|
end
|
@@ -3,6 +3,7 @@
|
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
+
require 'date'
|
6
7
|
module AdvancedBilling
|
7
8
|
# Metadata Model.
|
8
9
|
class Metadata < BaseModel
|
@@ -26,7 +27,7 @@ module AdvancedBilling
|
|
26
27
|
attr_accessor :name
|
27
28
|
|
28
29
|
# TODO: Write general description for this method
|
29
|
-
# @return [
|
30
|
+
# @return [DateTime]
|
30
31
|
attr_accessor :deleted_at
|
31
32
|
|
32
33
|
# TODO: Write general description for this method
|
@@ -73,13 +74,19 @@ module AdvancedBilling
|
|
73
74
|
resource_id = SKIP,
|
74
75
|
name = SKIP,
|
75
76
|
deleted_at = SKIP,
|
76
|
-
metafield_id = SKIP
|
77
|
+
metafield_id = SKIP,
|
78
|
+
additional_properties = {})
|
77
79
|
@id = id unless id == SKIP
|
78
80
|
@value = value unless value == SKIP
|
79
81
|
@resource_id = resource_id unless resource_id == SKIP
|
80
82
|
@name = name unless name == SKIP
|
81
83
|
@deleted_at = deleted_at unless deleted_at == SKIP
|
82
84
|
@metafield_id = metafield_id unless metafield_id == SKIP
|
85
|
+
|
86
|
+
# Add additional model properties to the instance.
|
87
|
+
additional_properties.each do |_name, _value|
|
88
|
+
instance_variable_set("@#{_name}", _value)
|
89
|
+
end
|
83
90
|
end
|
84
91
|
|
85
92
|
# Creates an instance of the object from a hash.
|
@@ -91,16 +98,28 @@ module AdvancedBilling
|
|
91
98
|
value = hash.key?('value') ? hash['value'] : SKIP
|
92
99
|
resource_id = hash.key?('resource_id') ? hash['resource_id'] : SKIP
|
93
100
|
name = hash.key?('name') ? hash['name'] : SKIP
|
94
|
-
deleted_at = hash.key?('deleted_at')
|
101
|
+
deleted_at = if hash.key?('deleted_at')
|
102
|
+
(DateTimeHelper.from_rfc3339(hash['deleted_at']) if hash['deleted_at'])
|
103
|
+
else
|
104
|
+
SKIP
|
105
|
+
end
|
95
106
|
metafield_id = hash.key?('metafield_id') ? hash['metafield_id'] : SKIP
|
96
107
|
|
108
|
+
# Clean out expected properties from Hash.
|
109
|
+
names.each_value { |k| hash.delete(k) }
|
110
|
+
|
97
111
|
# Create object from extracted values.
|
98
112
|
Metadata.new(id,
|
99
113
|
value,
|
100
114
|
resource_id,
|
101
115
|
name,
|
102
116
|
deleted_at,
|
103
|
-
metafield_id
|
117
|
+
metafield_id,
|
118
|
+
hash)
|
119
|
+
end
|
120
|
+
|
121
|
+
def to_custom_deleted_at
|
122
|
+
DateTimeHelper.to_rfc3339(deleted_at)
|
104
123
|
end
|
105
124
|
end
|
106
125
|
end
|
@@ -79,13 +79,19 @@ module AdvancedBilling
|
|
79
79
|
scope = SKIP,
|
80
80
|
data_count = SKIP,
|
81
81
|
input_type = SKIP,
|
82
|
-
enum = SKIP
|
82
|
+
enum = SKIP,
|
83
|
+
additional_properties = {})
|
83
84
|
@id = id unless id == SKIP
|
84
85
|
@name = name unless name == SKIP
|
85
86
|
@scope = scope unless scope == SKIP
|
86
87
|
@data_count = data_count unless data_count == SKIP
|
87
88
|
@input_type = input_type unless input_type == SKIP
|
88
89
|
@enum = enum unless enum == SKIP
|
90
|
+
|
91
|
+
# Add additional model properties to the instance.
|
92
|
+
additional_properties.each do |_name, _value|
|
93
|
+
instance_variable_set("@#{_name}", _value)
|
94
|
+
end
|
89
95
|
end
|
90
96
|
|
91
97
|
# Creates an instance of the object from a hash.
|
@@ -102,13 +108,17 @@ module AdvancedBilling
|
|
102
108
|
UnionTypeLookUp.get(:MetafieldEnum), hash['enum']
|
103
109
|
) : SKIP
|
104
110
|
|
111
|
+
# Clean out expected properties from Hash.
|
112
|
+
names.each_value { |k| hash.delete(k) }
|
113
|
+
|
105
114
|
# Create object from extracted values.
|
106
115
|
Metafield.new(id,
|
107
116
|
name,
|
108
117
|
scope,
|
109
118
|
data_count,
|
110
119
|
input_type,
|
111
|
-
enum
|
120
|
+
enum,
|
121
|
+
hash)
|
112
122
|
end
|
113
123
|
|
114
124
|
# Validates an instance of the object from a given value.
|
@@ -77,7 +77,8 @@ module AdvancedBilling
|
|
77
77
|
portal = SKIP,
|
78
78
|
public_show = SKIP,
|
79
79
|
public_edit = SKIP,
|
80
|
-
hosted = SKIP
|
80
|
+
hosted = SKIP,
|
81
|
+
additional_properties = {})
|
81
82
|
@csv = csv unless csv == SKIP
|
82
83
|
@invoices = invoices unless invoices == SKIP
|
83
84
|
@statements = statements unless statements == SKIP
|
@@ -85,6 +86,11 @@ module AdvancedBilling
|
|
85
86
|
@public_show = public_show unless public_show == SKIP
|
86
87
|
@public_edit = public_edit unless public_edit == SKIP
|
87
88
|
@hosted = hosted unless hosted == SKIP
|
89
|
+
|
90
|
+
# Add additional model properties to the instance.
|
91
|
+
additional_properties.each do |_name, _value|
|
92
|
+
instance_variable_set("@#{_name}", _value)
|
93
|
+
end
|
88
94
|
end
|
89
95
|
|
90
96
|
# Creates an instance of the object from a hash.
|
@@ -100,6 +106,9 @@ module AdvancedBilling
|
|
100
106
|
public_edit = hash.key?('public_edit') ? hash['public_edit'] : SKIP
|
101
107
|
hosted = hash.key?('hosted') ? hash['hosted'] : SKIP
|
102
108
|
|
109
|
+
# Clean out expected properties from Hash.
|
110
|
+
names.each_value { |k| hash.delete(k) }
|
111
|
+
|
103
112
|
# Create object from extracted values.
|
104
113
|
MetafieldScope.new(csv,
|
105
114
|
invoices,
|
@@ -107,7 +116,8 @@ module AdvancedBilling
|
|
107
116
|
portal,
|
108
117
|
public_show,
|
109
118
|
public_edit,
|
110
|
-
hosted
|
119
|
+
hosted,
|
120
|
+
hash)
|
111
121
|
end
|
112
122
|
end
|
113
123
|
end
|
@@ -191,7 +191,8 @@ module AdvancedBilling
|
|
191
191
|
allow_fractional_quantities = SKIP,
|
192
192
|
public_signup_page_ids = SKIP,
|
193
193
|
interval = SKIP,
|
194
|
-
interval_unit = SKIP
|
194
|
+
interval_unit = SKIP,
|
195
|
+
additional_properties = {})
|
195
196
|
@name = name
|
196
197
|
@unit_name = unit_name
|
197
198
|
@description = description unless description == SKIP
|
@@ -217,6 +218,11 @@ module AdvancedBilling
|
|
217
218
|
@public_signup_page_ids = public_signup_page_ids unless public_signup_page_ids == SKIP
|
218
219
|
@interval = interval unless interval == SKIP
|
219
220
|
@interval_unit = interval_unit unless interval_unit == SKIP
|
221
|
+
|
222
|
+
# Add additional model properties to the instance.
|
223
|
+
additional_properties.each do |_name, _value|
|
224
|
+
instance_variable_set("@#{_name}", _value)
|
225
|
+
end
|
220
226
|
end
|
221
227
|
|
222
228
|
# Creates an instance of the object from a hash.
|
@@ -272,6 +278,9 @@ module AdvancedBilling
|
|
272
278
|
interval = hash.key?('interval') ? hash['interval'] : SKIP
|
273
279
|
interval_unit = hash.key?('interval_unit') ? hash['interval_unit'] : SKIP
|
274
280
|
|
281
|
+
# Clean out expected properties from Hash.
|
282
|
+
names.each_value { |k| hash.delete(k) }
|
283
|
+
|
275
284
|
# Create object from extracted values.
|
276
285
|
MeteredComponent.new(name,
|
277
286
|
unit_name,
|
@@ -291,7 +300,8 @@ module AdvancedBilling
|
|
291
300
|
allow_fractional_quantities,
|
292
301
|
public_signup_page_ids,
|
293
302
|
interval,
|
294
|
-
interval_unit
|
303
|
+
interval_unit,
|
304
|
+
hash)
|
295
305
|
end
|
296
306
|
|
297
307
|
# Validates an instance of the object from a given value.
|
@@ -60,13 +60,19 @@ module AdvancedBilling
|
|
60
60
|
usage_quantity = nil,
|
61
61
|
component_id = nil,
|
62
62
|
component_handle = nil,
|
63
|
-
memo = nil
|
63
|
+
memo = nil,
|
64
|
+
additional_properties = {})
|
64
65
|
@previous_unit_balance = previous_unit_balance
|
65
66
|
@new_unit_balance = new_unit_balance
|
66
67
|
@usage_quantity = usage_quantity
|
67
68
|
@component_id = component_id
|
68
69
|
@component_handle = component_handle
|
69
70
|
@memo = memo
|
71
|
+
|
72
|
+
# Add additional model properties to the instance.
|
73
|
+
additional_properties.each do |_name, _value|
|
74
|
+
instance_variable_set("@#{_name}", _value)
|
75
|
+
end
|
70
76
|
end
|
71
77
|
|
72
78
|
# Creates an instance of the object from a hash.
|
@@ -85,13 +91,17 @@ module AdvancedBilling
|
|
85
91
|
hash.key?('component_handle') ? hash['component_handle'] : nil
|
86
92
|
memo = hash.key?('memo') ? hash['memo'] : nil
|
87
93
|
|
94
|
+
# Clean out expected properties from Hash.
|
95
|
+
names.each_value { |k| hash.delete(k) }
|
96
|
+
|
88
97
|
# Create object from extracted values.
|
89
98
|
MeteredUsage.new(previous_unit_balance,
|
90
99
|
new_unit_balance,
|
91
100
|
usage_quantity,
|
92
101
|
component_id,
|
93
102
|
component_handle,
|
94
|
-
memo
|
103
|
+
memo,
|
104
|
+
hash)
|
95
105
|
end
|
96
106
|
|
97
107
|
# Validates an instance of the object from a given value.
|
@@ -3,6 +3,7 @@
|
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
+
require 'date'
|
6
7
|
module AdvancedBilling
|
7
8
|
# Movement Model.
|
8
9
|
class Movement < BaseModel
|
@@ -10,7 +11,7 @@ module AdvancedBilling
|
|
10
11
|
private_constant :SKIP
|
11
12
|
|
12
13
|
# TODO: Write general description for this method
|
13
|
-
# @return [
|
14
|
+
# @return [DateTime]
|
14
15
|
attr_accessor :timestamp
|
15
16
|
|
16
17
|
# TODO: Write general description for this method
|
@@ -88,7 +89,8 @@ module AdvancedBilling
|
|
88
89
|
breakouts = SKIP,
|
89
90
|
line_items = SKIP,
|
90
91
|
subscription_id = SKIP,
|
91
|
-
subscriber_name = SKIP
|
92
|
+
subscriber_name = SKIP,
|
93
|
+
additional_properties = {})
|
92
94
|
@timestamp = timestamp unless timestamp == SKIP
|
93
95
|
@amount_in_cents = amount_in_cents unless amount_in_cents == SKIP
|
94
96
|
@amount_formatted = amount_formatted unless amount_formatted == SKIP
|
@@ -98,6 +100,11 @@ module AdvancedBilling
|
|
98
100
|
@line_items = line_items unless line_items == SKIP
|
99
101
|
@subscription_id = subscription_id unless subscription_id == SKIP
|
100
102
|
@subscriber_name = subscriber_name unless subscriber_name == SKIP
|
103
|
+
|
104
|
+
# Add additional model properties to the instance.
|
105
|
+
additional_properties.each do |_name, _value|
|
106
|
+
instance_variable_set("@#{_name}", _value)
|
107
|
+
end
|
101
108
|
end
|
102
109
|
|
103
110
|
# Creates an instance of the object from a hash.
|
@@ -105,7 +112,11 @@ module AdvancedBilling
|
|
105
112
|
return nil unless hash
|
106
113
|
|
107
114
|
# Extract variables from the hash.
|
108
|
-
timestamp = hash.key?('timestamp')
|
115
|
+
timestamp = if hash.key?('timestamp')
|
116
|
+
(DateTimeHelper.from_rfc3339(hash['timestamp']) if hash['timestamp'])
|
117
|
+
else
|
118
|
+
SKIP
|
119
|
+
end
|
109
120
|
amount_in_cents =
|
110
121
|
hash.key?('amount_in_cents') ? hash['amount_in_cents'] : SKIP
|
111
122
|
amount_formatted =
|
@@ -128,6 +139,9 @@ module AdvancedBilling
|
|
128
139
|
subscriber_name =
|
129
140
|
hash.key?('subscriber_name') ? hash['subscriber_name'] : SKIP
|
130
141
|
|
142
|
+
# Clean out expected properties from Hash.
|
143
|
+
names.each_value { |k| hash.delete(k) }
|
144
|
+
|
131
145
|
# Create object from extracted values.
|
132
146
|
Movement.new(timestamp,
|
133
147
|
amount_in_cents,
|
@@ -137,7 +151,12 @@ module AdvancedBilling
|
|
137
151
|
breakouts,
|
138
152
|
line_items,
|
139
153
|
subscription_id,
|
140
|
-
subscriber_name
|
154
|
+
subscriber_name,
|
155
|
+
hash)
|
156
|
+
end
|
157
|
+
|
158
|
+
def to_custom_timestamp
|
159
|
+
DateTimeHelper.to_rfc3339(timestamp)
|
141
160
|
end
|
142
161
|
end
|
143
162
|
end
|
@@ -96,7 +96,8 @@ module AdvancedBilling
|
|
96
96
|
mrr_movements = SKIP,
|
97
97
|
quantity = SKIP,
|
98
98
|
prev_quantity = SKIP,
|
99
|
-
recurring = SKIP
|
99
|
+
recurring = SKIP,
|
100
|
+
additional_properties = {})
|
100
101
|
@product_id = product_id unless product_id == SKIP
|
101
102
|
@component_id = component_id unless component_id == SKIP
|
102
103
|
@price_point_id = price_point_id unless price_point_id == SKIP
|
@@ -106,6 +107,11 @@ module AdvancedBilling
|
|
106
107
|
@quantity = quantity unless quantity == SKIP
|
107
108
|
@prev_quantity = prev_quantity unless prev_quantity == SKIP
|
108
109
|
@recurring = recurring unless recurring == SKIP
|
110
|
+
|
111
|
+
# Add additional model properties to the instance.
|
112
|
+
additional_properties.each do |_name, _value|
|
113
|
+
instance_variable_set("@#{_name}", _value)
|
114
|
+
end
|
109
115
|
end
|
110
116
|
|
111
117
|
# Creates an instance of the object from a hash.
|
@@ -133,6 +139,9 @@ module AdvancedBilling
|
|
133
139
|
prev_quantity = hash.key?('prev_quantity') ? hash['prev_quantity'] : SKIP
|
134
140
|
recurring = hash.key?('recurring') ? hash['recurring'] : SKIP
|
135
141
|
|
142
|
+
# Clean out expected properties from Hash.
|
143
|
+
names.each_value { |k| hash.delete(k) }
|
144
|
+
|
136
145
|
# Create object from extracted values.
|
137
146
|
MovementLineItem.new(product_id,
|
138
147
|
component_id,
|
@@ -142,7 +151,8 @@ module AdvancedBilling
|
|
142
151
|
mrr_movements,
|
143
152
|
quantity,
|
144
153
|
prev_quantity,
|
145
|
-
recurring
|
154
|
+
recurring,
|
155
|
+
hash)
|
146
156
|
end
|
147
157
|
end
|
148
158
|
end
|
@@ -3,6 +3,7 @@
|
|
3
3
|
# This file was automatically generated by APIMATIC v2.0
|
4
4
|
# ( https://apimatic.io ).
|
5
5
|
|
6
|
+
require 'date'
|
6
7
|
module AdvancedBilling
|
7
8
|
# MRR Model.
|
8
9
|
class MRR < BaseModel
|
@@ -30,7 +31,7 @@ module AdvancedBilling
|
|
30
31
|
attr_accessor :breakouts
|
31
32
|
|
32
33
|
# ISO8601 timestamp
|
33
|
-
# @return [
|
34
|
+
# @return [DateTime]
|
34
35
|
attr_accessor :at_time
|
35
36
|
|
36
37
|
# A mapping from model property names to API property names.
|
@@ -67,13 +68,19 @@ module AdvancedBilling
|
|
67
68
|
currency = SKIP,
|
68
69
|
currency_symbol = SKIP,
|
69
70
|
breakouts = SKIP,
|
70
|
-
at_time = SKIP
|
71
|
+
at_time = SKIP,
|
72
|
+
additional_properties = {})
|
71
73
|
@amount_in_cents = amount_in_cents unless amount_in_cents == SKIP
|
72
74
|
@amount_formatted = amount_formatted unless amount_formatted == SKIP
|
73
75
|
@currency = currency unless currency == SKIP
|
74
76
|
@currency_symbol = currency_symbol unless currency_symbol == SKIP
|
75
77
|
@breakouts = breakouts unless breakouts == SKIP
|
76
78
|
@at_time = at_time unless at_time == SKIP
|
79
|
+
|
80
|
+
# Add additional model properties to the instance.
|
81
|
+
additional_properties.each do |_name, _value|
|
82
|
+
instance_variable_set("@#{_name}", _value)
|
83
|
+
end
|
77
84
|
end
|
78
85
|
|
79
86
|
# Creates an instance of the object from a hash.
|
@@ -89,7 +96,14 @@ module AdvancedBilling
|
|
89
96
|
currency_symbol =
|
90
97
|
hash.key?('currency_symbol') ? hash['currency_symbol'] : SKIP
|
91
98
|
breakouts = Breakouts.from_hash(hash['breakouts']) if hash['breakouts']
|
92
|
-
at_time = hash.key?('at_time')
|
99
|
+
at_time = if hash.key?('at_time')
|
100
|
+
(DateTimeHelper.from_rfc3339(hash['at_time']) if hash['at_time'])
|
101
|
+
else
|
102
|
+
SKIP
|
103
|
+
end
|
104
|
+
|
105
|
+
# Clean out expected properties from Hash.
|
106
|
+
names.each_value { |k| hash.delete(k) }
|
93
107
|
|
94
108
|
# Create object from extracted values.
|
95
109
|
MRR.new(amount_in_cents,
|
@@ -97,7 +111,12 @@ module AdvancedBilling
|
|
97
111
|
currency,
|
98
112
|
currency_symbol,
|
99
113
|
breakouts,
|
100
|
-
at_time
|
114
|
+
at_time,
|
115
|
+
hash)
|
116
|
+
end
|
117
|
+
|
118
|
+
def to_custom_at_time
|
119
|
+
DateTimeHelper.to_rfc3339(at_time)
|
101
120
|
end
|
102
121
|
end
|
103
122
|
end
|
@@ -53,11 +53,17 @@ module AdvancedBilling
|
|
53
53
|
def initialize(amount = SKIP,
|
54
54
|
category = SKIP,
|
55
55
|
subscriber_delta = SKIP,
|
56
|
-
lead_delta = SKIP
|
56
|
+
lead_delta = SKIP,
|
57
|
+
additional_properties = {})
|
57
58
|
@amount = amount unless amount == SKIP
|
58
59
|
@category = category unless category == SKIP
|
59
60
|
@subscriber_delta = subscriber_delta unless subscriber_delta == SKIP
|
60
61
|
@lead_delta = lead_delta unless lead_delta == SKIP
|
62
|
+
|
63
|
+
# Add additional model properties to the instance.
|
64
|
+
additional_properties.each do |_name, _value|
|
65
|
+
instance_variable_set("@#{_name}", _value)
|
66
|
+
end
|
61
67
|
end
|
62
68
|
|
63
69
|
# Creates an instance of the object from a hash.
|
@@ -71,11 +77,15 @@ module AdvancedBilling
|
|
71
77
|
hash.key?('subscriber_delta') ? hash['subscriber_delta'] : SKIP
|
72
78
|
lead_delta = hash.key?('lead_delta') ? hash['lead_delta'] : SKIP
|
73
79
|
|
80
|
+
# Clean out expected properties from Hash.
|
81
|
+
names.each_value { |k| hash.delete(k) }
|
82
|
+
|
74
83
|
# Create object from extracted values.
|
75
84
|
MRRMovement.new(amount,
|
76
85
|
category,
|
77
86
|
subscriber_delta,
|
78
|
-
lead_delta
|
87
|
+
lead_delta,
|
88
|
+
hash)
|
79
89
|
end
|
80
90
|
end
|
81
91
|
end
|
@@ -30,8 +30,14 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(mrr = nil
|
33
|
+
def initialize(mrr = nil,
|
34
|
+
additional_properties = {})
|
34
35
|
@mrr = mrr
|
36
|
+
|
37
|
+
# Add additional model properties to the instance.
|
38
|
+
additional_properties.each do |_name, _value|
|
39
|
+
instance_variable_set("@#{_name}", _value)
|
40
|
+
end
|
35
41
|
end
|
36
42
|
|
37
43
|
# Creates an instance of the object from a hash.
|
@@ -41,8 +47,12 @@ module AdvancedBilling
|
|
41
47
|
# Extract variables from the hash.
|
42
48
|
mrr = MRR.from_hash(hash['mrr']) if hash['mrr']
|
43
49
|
|
50
|
+
# Clean out expected properties from Hash.
|
51
|
+
names.each_value { |k| hash.delete(k) }
|
52
|
+
|
44
53
|
# Create object from extracted values.
|
45
|
-
MRRResponse.new(mrr
|
54
|
+
MRRResponse.new(mrr,
|
55
|
+
hash)
|
46
56
|
end
|
47
57
|
end
|
48
58
|
end
|
@@ -55,11 +55,17 @@ module AdvancedBilling
|
|
55
55
|
def initialize(transaction_id = SKIP,
|
56
56
|
total_amount = SKIP,
|
57
57
|
currency_code = SKIP,
|
58
|
-
applications = SKIP
|
58
|
+
applications = SKIP,
|
59
|
+
additional_properties = {})
|
59
60
|
@transaction_id = transaction_id unless transaction_id == SKIP
|
60
61
|
@total_amount = total_amount unless total_amount == SKIP
|
61
62
|
@currency_code = currency_code unless currency_code == SKIP
|
62
63
|
@applications = applications unless applications == SKIP
|
64
|
+
|
65
|
+
# Add additional model properties to the instance.
|
66
|
+
additional_properties.each do |_name, _value|
|
67
|
+
instance_variable_set("@#{_name}", _value)
|
68
|
+
end
|
63
69
|
end
|
64
70
|
|
65
71
|
# Creates an instance of the object from a hash.
|
@@ -82,11 +88,15 @@ module AdvancedBilling
|
|
82
88
|
|
83
89
|
applications = SKIP unless hash.key?('applications')
|
84
90
|
|
91
|
+
# Clean out expected properties from Hash.
|
92
|
+
names.each_value { |k| hash.delete(k) }
|
93
|
+
|
85
94
|
# Create object from extracted values.
|
86
95
|
MultiInvoicePayment.new(transaction_id,
|
87
96
|
total_amount,
|
88
97
|
currency_code,
|
89
|
-
applications
|
98
|
+
applications,
|
99
|
+
hash)
|
90
100
|
end
|
91
101
|
end
|
92
102
|
end
|
@@ -30,8 +30,14 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(payment = nil
|
33
|
+
def initialize(payment = nil,
|
34
|
+
additional_properties = {})
|
34
35
|
@payment = payment
|
36
|
+
|
37
|
+
# Add additional model properties to the instance.
|
38
|
+
additional_properties.each do |_name, _value|
|
39
|
+
instance_variable_set("@#{_name}", _value)
|
40
|
+
end
|
35
41
|
end
|
36
42
|
|
37
43
|
# Creates an instance of the object from a hash.
|
@@ -41,8 +47,12 @@ module AdvancedBilling
|
|
41
47
|
# Extract variables from the hash.
|
42
48
|
payment = MultiInvoicePayment.from_hash(hash['payment']) if hash['payment']
|
43
49
|
|
50
|
+
# Clean out expected properties from Hash.
|
51
|
+
names.each_value { |k| hash.delete(k) }
|
52
|
+
|
44
53
|
# Create object from extracted values.
|
45
|
-
MultiInvoicePaymentResponse.new(payment
|
54
|
+
MultiInvoicePaymentResponse.new(payment,
|
55
|
+
hash)
|
46
56
|
end
|
47
57
|
end
|
48
58
|
end
|
@@ -56,11 +56,17 @@ module AdvancedBilling
|
|
56
56
|
def initialize(uid = SKIP,
|
57
57
|
scheme = SKIP,
|
58
58
|
primary_subscription_id = SKIP,
|
59
|
-
primary = SKIP
|
59
|
+
primary = SKIP,
|
60
|
+
additional_properties = {})
|
60
61
|
@uid = uid unless uid == SKIP
|
61
62
|
@scheme = scheme unless scheme == SKIP
|
62
63
|
@primary_subscription_id = primary_subscription_id unless primary_subscription_id == SKIP
|
63
64
|
@primary = primary unless primary == SKIP
|
65
|
+
|
66
|
+
# Add additional model properties to the instance.
|
67
|
+
additional_properties.each do |_name, _value|
|
68
|
+
instance_variable_set("@#{_name}", _value)
|
69
|
+
end
|
64
70
|
end
|
65
71
|
|
66
72
|
# Creates an instance of the object from a hash.
|
@@ -74,11 +80,15 @@ module AdvancedBilling
|
|
74
80
|
hash.key?('primary_subscription_id') ? hash['primary_subscription_id'] : SKIP
|
75
81
|
primary = hash.key?('primary') ? hash['primary'] : SKIP
|
76
82
|
|
83
|
+
# Clean out expected properties from Hash.
|
84
|
+
names.each_value { |k| hash.delete(k) }
|
85
|
+
|
77
86
|
# Create object from extracted values.
|
78
87
|
NestedSubscriptionGroup.new(uid,
|
79
88
|
scheme,
|
80
89
|
primary_subscription_id,
|
81
|
-
primary
|
90
|
+
primary,
|
91
|
+
hash)
|
82
92
|
end
|
83
93
|
|
84
94
|
# Validates an instance of the object from a given value.
|