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
@@ -124,23 +124,14 @@ module AdvancedBilling
|
|
124
124
|
[]
|
125
125
|
end
|
126
126
|
|
127
|
-
def initialize(id
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
whopays_enabled = SKIP,
|
136
|
-
whopays_default_payer = SKIP,
|
137
|
-
allocation_settings = SKIP,
|
138
|
-
default_payment_collection_method = SKIP,
|
139
|
-
organization_address = SKIP,
|
140
|
-
tax_configuration = SKIP,
|
141
|
-
net_terms = SKIP,
|
142
|
-
test = SKIP,
|
143
|
-
additional_properties = {})
|
127
|
+
def initialize(id: SKIP, name: SKIP, subdomain: SKIP, currency: SKIP,
|
128
|
+
seller_id: SKIP, non_primary_currencies: SKIP,
|
129
|
+
relationship_invoicing_enabled: SKIP,
|
130
|
+
customer_hierarchy_enabled: SKIP, whopays_enabled: SKIP,
|
131
|
+
whopays_default_payer: SKIP, allocation_settings: SKIP,
|
132
|
+
default_payment_collection_method: SKIP,
|
133
|
+
organization_address: SKIP, tax_configuration: SKIP,
|
134
|
+
net_terms: SKIP, test: SKIP, additional_properties: {})
|
144
135
|
@id = id unless id == SKIP
|
145
136
|
@name = name unless name == SKIP
|
146
137
|
@subdomain = subdomain unless subdomain == SKIP
|
@@ -208,23 +199,23 @@ module AdvancedBilling
|
|
208
199
|
names.each_value { |k| hash.delete(k) }
|
209
200
|
|
210
201
|
# Create object from extracted values.
|
211
|
-
Site.new(id,
|
212
|
-
name,
|
213
|
-
subdomain,
|
214
|
-
currency,
|
215
|
-
seller_id,
|
216
|
-
non_primary_currencies,
|
217
|
-
relationship_invoicing_enabled,
|
218
|
-
customer_hierarchy_enabled,
|
219
|
-
whopays_enabled,
|
220
|
-
whopays_default_payer,
|
221
|
-
allocation_settings,
|
222
|
-
default_payment_collection_method,
|
223
|
-
organization_address,
|
224
|
-
tax_configuration,
|
225
|
-
net_terms,
|
226
|
-
test,
|
227
|
-
hash)
|
202
|
+
Site.new(id: id,
|
203
|
+
name: name,
|
204
|
+
subdomain: subdomain,
|
205
|
+
currency: currency,
|
206
|
+
seller_id: seller_id,
|
207
|
+
non_primary_currencies: non_primary_currencies,
|
208
|
+
relationship_invoicing_enabled: relationship_invoicing_enabled,
|
209
|
+
customer_hierarchy_enabled: customer_hierarchy_enabled,
|
210
|
+
whopays_enabled: whopays_enabled,
|
211
|
+
whopays_default_payer: whopays_default_payer,
|
212
|
+
allocation_settings: allocation_settings,
|
213
|
+
default_payment_collection_method: default_payment_collection_method,
|
214
|
+
organization_address: organization_address,
|
215
|
+
tax_configuration: tax_configuration,
|
216
|
+
net_terms: net_terms,
|
217
|
+
test: test,
|
218
|
+
additional_properties: hash)
|
228
219
|
end
|
229
220
|
end
|
230
221
|
end
|
@@ -30,8 +30,7 @@ module AdvancedBilling
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def initialize(site
|
34
|
-
additional_properties = {})
|
33
|
+
def initialize(site:, additional_properties: {})
|
35
34
|
@site = site
|
36
35
|
|
37
36
|
# Add additional model properties to the instance.
|
@@ -51,8 +50,8 @@ module AdvancedBilling
|
|
51
50
|
names.each_value { |k| hash.delete(k) }
|
52
51
|
|
53
52
|
# Create object from extracted values.
|
54
|
-
SiteResponse.new(site,
|
55
|
-
hash)
|
53
|
+
SiteResponse.new(site: site,
|
54
|
+
additional_properties: hash)
|
56
55
|
end
|
57
56
|
end
|
58
57
|
end
|
@@ -92,18 +92,14 @@ module AdvancedBilling
|
|
92
92
|
[]
|
93
93
|
end
|
94
94
|
|
95
|
-
def initialize(total_subscriptions
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
total_past_due_subscriptions = SKIP,
|
104
|
-
total_unpaid_subscriptions = SKIP,
|
105
|
-
total_dunning_subscriptions = SKIP,
|
106
|
-
additional_properties = {})
|
95
|
+
def initialize(total_subscriptions: SKIP, subscriptions_today: SKIP,
|
96
|
+
total_revenue: SKIP, revenue_today: SKIP,
|
97
|
+
revenue_this_month: SKIP, revenue_this_year: SKIP,
|
98
|
+
total_canceled_subscriptions: SKIP,
|
99
|
+
total_active_subscriptions: SKIP,
|
100
|
+
total_past_due_subscriptions: SKIP,
|
101
|
+
total_unpaid_subscriptions: SKIP,
|
102
|
+
total_dunning_subscriptions: SKIP, additional_properties: {})
|
107
103
|
@total_subscriptions = total_subscriptions unless total_subscriptions == SKIP
|
108
104
|
@subscriptions_today = subscriptions_today unless subscriptions_today == SKIP
|
109
105
|
@total_revenue = total_revenue unless total_revenue == SKIP
|
@@ -167,18 +163,18 @@ module AdvancedBilling
|
|
167
163
|
names.each_value { |k| hash.delete(k) }
|
168
164
|
|
169
165
|
# Create object from extracted values.
|
170
|
-
SiteStatistics.new(total_subscriptions,
|
171
|
-
subscriptions_today,
|
172
|
-
total_revenue,
|
173
|
-
revenue_today,
|
174
|
-
revenue_this_month,
|
175
|
-
revenue_this_year,
|
176
|
-
total_canceled_subscriptions,
|
177
|
-
total_active_subscriptions,
|
178
|
-
total_past_due_subscriptions,
|
179
|
-
total_unpaid_subscriptions,
|
180
|
-
total_dunning_subscriptions,
|
181
|
-
hash)
|
166
|
+
SiteStatistics.new(total_subscriptions: total_subscriptions,
|
167
|
+
subscriptions_today: subscriptions_today,
|
168
|
+
total_revenue: total_revenue,
|
169
|
+
revenue_today: revenue_today,
|
170
|
+
revenue_this_month: revenue_this_month,
|
171
|
+
revenue_this_year: revenue_this_year,
|
172
|
+
total_canceled_subscriptions: total_canceled_subscriptions,
|
173
|
+
total_active_subscriptions: total_active_subscriptions,
|
174
|
+
total_past_due_subscriptions: total_past_due_subscriptions,
|
175
|
+
total_unpaid_subscriptions: total_unpaid_subscriptions,
|
176
|
+
total_dunning_subscriptions: total_dunning_subscriptions,
|
177
|
+
additional_properties: hash)
|
182
178
|
end
|
183
179
|
end
|
184
180
|
end
|
@@ -56,12 +56,8 @@ module AdvancedBilling
|
|
56
56
|
[]
|
57
57
|
end
|
58
58
|
|
59
|
-
def initialize(seller_name
|
60
|
-
|
61
|
-
site_id = SKIP,
|
62
|
-
site_currency = SKIP,
|
63
|
-
stats = SKIP,
|
64
|
-
additional_properties = {})
|
59
|
+
def initialize(seller_name: SKIP, site_name: SKIP, site_id: SKIP,
|
60
|
+
site_currency: SKIP, stats: SKIP, additional_properties: {})
|
65
61
|
@seller_name = seller_name unless seller_name == SKIP
|
66
62
|
@site_name = site_name unless site_name == SKIP
|
67
63
|
@site_id = site_id unless site_id == 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
|
-
SiteSummary.new(seller_name,
|
93
|
-
site_name,
|
94
|
-
site_id,
|
95
|
-
site_currency,
|
96
|
-
stats,
|
97
|
-
hash)
|
88
|
+
SiteSummary.new(seller_name: seller_name,
|
89
|
+
site_name: site_name,
|
90
|
+
site_id: site_id,
|
91
|
+
site_currency: site_currency,
|
92
|
+
stats: stats,
|
93
|
+
additional_properties: hash)
|
98
94
|
end
|
99
95
|
end
|
100
96
|
end
|
@@ -569,69 +569,37 @@ module AdvancedBilling
|
|
569
569
|
]
|
570
570
|
end
|
571
571
|
|
572
|
-
def initialize(id
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
payment_type = SKIP,
|
604
|
-
referral_code = SKIP,
|
605
|
-
next_product_id = SKIP,
|
606
|
-
next_product_handle = SKIP,
|
607
|
-
coupon_use_count = SKIP,
|
608
|
-
coupon_uses_allowed = SKIP,
|
609
|
-
reason_code = SKIP,
|
610
|
-
automatically_resume_at = SKIP,
|
611
|
-
coupon_codes = SKIP,
|
612
|
-
offer_id = SKIP,
|
613
|
-
payer_id = SKIP,
|
614
|
-
current_billing_amount_in_cents = SKIP,
|
615
|
-
product_price_point_id = SKIP,
|
616
|
-
product_price_point_type = SKIP,
|
617
|
-
next_product_price_point_id = SKIP,
|
618
|
-
net_terms = SKIP,
|
619
|
-
stored_credential_transaction_id = SKIP,
|
620
|
-
reference = SKIP,
|
621
|
-
on_hold_at = SKIP,
|
622
|
-
prepaid_dunning = SKIP,
|
623
|
-
coupons = SKIP,
|
624
|
-
dunning_communication_delay_enabled = SKIP,
|
625
|
-
dunning_communication_delay_time_zone = SKIP,
|
626
|
-
receives_invoice_emails = SKIP,
|
627
|
-
locale = SKIP,
|
628
|
-
currency = SKIP,
|
629
|
-
scheduled_cancellation_at = SKIP,
|
630
|
-
credit_balance_in_cents = SKIP,
|
631
|
-
prepayment_balance_in_cents = SKIP,
|
632
|
-
prepaid_configuration = SKIP,
|
633
|
-
self_service_page_token = SKIP,
|
634
|
-
additional_properties = {})
|
572
|
+
def initialize(id: SKIP, state: SKIP, balance_in_cents: SKIP,
|
573
|
+
total_revenue_in_cents: SKIP, product_price_in_cents: SKIP,
|
574
|
+
product_version_number: SKIP, current_period_ends_at: SKIP,
|
575
|
+
next_assessment_at: SKIP, trial_started_at: SKIP,
|
576
|
+
trial_ended_at: SKIP, activated_at: SKIP, expires_at: SKIP,
|
577
|
+
created_at: SKIP, updated_at: SKIP,
|
578
|
+
cancellation_message: SKIP, cancellation_method: SKIP,
|
579
|
+
cancel_at_end_of_period: SKIP, canceled_at: SKIP,
|
580
|
+
current_period_started_at: SKIP, previous_state: SKIP,
|
581
|
+
signup_payment_id: SKIP, signup_revenue: SKIP,
|
582
|
+
delayed_cancel_at: SKIP, coupon_code: SKIP, snap_day: SKIP,
|
583
|
+
payment_collection_method: SKIP, customer: SKIP,
|
584
|
+
product: SKIP, credit_card: SKIP, group: SKIP,
|
585
|
+
bank_account: SKIP, payment_type: SKIP, referral_code: SKIP,
|
586
|
+
next_product_id: SKIP, next_product_handle: SKIP,
|
587
|
+
coupon_use_count: SKIP, coupon_uses_allowed: SKIP,
|
588
|
+
reason_code: SKIP, automatically_resume_at: SKIP,
|
589
|
+
coupon_codes: SKIP, offer_id: SKIP, payer_id: SKIP,
|
590
|
+
current_billing_amount_in_cents: SKIP,
|
591
|
+
product_price_point_id: SKIP, product_price_point_type: SKIP,
|
592
|
+
next_product_price_point_id: SKIP, net_terms: SKIP,
|
593
|
+
stored_credential_transaction_id: SKIP, reference: SKIP,
|
594
|
+
on_hold_at: SKIP, prepaid_dunning: SKIP, coupons: SKIP,
|
595
|
+
dunning_communication_delay_enabled: SKIP,
|
596
|
+
dunning_communication_delay_time_zone: SKIP,
|
597
|
+
receives_invoice_emails: SKIP, locale: SKIP, currency: SKIP,
|
598
|
+
scheduled_cancellation_at: SKIP,
|
599
|
+
credit_balance_in_cents: SKIP,
|
600
|
+
prepayment_balance_in_cents: SKIP,
|
601
|
+
prepaid_configuration: SKIP, self_service_page_token: SKIP,
|
602
|
+
additional_properties: {})
|
635
603
|
@id = id unless id == SKIP
|
636
604
|
@state = state unless state == SKIP
|
637
605
|
@balance_in_cents = balance_in_cents unless balance_in_cents == SKIP
|
@@ -894,69 +862,69 @@ module AdvancedBilling
|
|
894
862
|
names.each_value { |k| hash.delete(k) }
|
895
863
|
|
896
864
|
# Create object from extracted values.
|
897
|
-
Subscription.new(id,
|
898
|
-
state,
|
899
|
-
balance_in_cents,
|
900
|
-
total_revenue_in_cents,
|
901
|
-
product_price_in_cents,
|
902
|
-
product_version_number,
|
903
|
-
current_period_ends_at,
|
904
|
-
next_assessment_at,
|
905
|
-
trial_started_at,
|
906
|
-
trial_ended_at,
|
907
|
-
activated_at,
|
908
|
-
expires_at,
|
909
|
-
created_at,
|
910
|
-
updated_at,
|
911
|
-
cancellation_message,
|
912
|
-
cancellation_method,
|
913
|
-
cancel_at_end_of_period,
|
914
|
-
canceled_at,
|
915
|
-
current_period_started_at,
|
916
|
-
previous_state,
|
917
|
-
signup_payment_id,
|
918
|
-
signup_revenue,
|
919
|
-
delayed_cancel_at,
|
920
|
-
coupon_code,
|
921
|
-
snap_day,
|
922
|
-
payment_collection_method,
|
923
|
-
customer,
|
924
|
-
product,
|
925
|
-
credit_card,
|
926
|
-
group,
|
927
|
-
bank_account,
|
928
|
-
payment_type,
|
929
|
-
referral_code,
|
930
|
-
next_product_id,
|
931
|
-
next_product_handle,
|
932
|
-
coupon_use_count,
|
933
|
-
coupon_uses_allowed,
|
934
|
-
reason_code,
|
935
|
-
automatically_resume_at,
|
936
|
-
coupon_codes,
|
937
|
-
offer_id,
|
938
|
-
payer_id,
|
939
|
-
current_billing_amount_in_cents,
|
940
|
-
product_price_point_id,
|
941
|
-
product_price_point_type,
|
942
|
-
next_product_price_point_id,
|
943
|
-
net_terms,
|
944
|
-
stored_credential_transaction_id,
|
945
|
-
reference,
|
946
|
-
on_hold_at,
|
947
|
-
prepaid_dunning,
|
948
|
-
coupons,
|
949
|
-
dunning_communication_delay_enabled,
|
950
|
-
dunning_communication_delay_time_zone,
|
951
|
-
receives_invoice_emails,
|
952
|
-
locale,
|
953
|
-
currency,
|
954
|
-
scheduled_cancellation_at,
|
955
|
-
credit_balance_in_cents,
|
956
|
-
prepayment_balance_in_cents,
|
957
|
-
prepaid_configuration,
|
958
|
-
self_service_page_token,
|
959
|
-
hash)
|
865
|
+
Subscription.new(id: id,
|
866
|
+
state: state,
|
867
|
+
balance_in_cents: balance_in_cents,
|
868
|
+
total_revenue_in_cents: total_revenue_in_cents,
|
869
|
+
product_price_in_cents: product_price_in_cents,
|
870
|
+
product_version_number: product_version_number,
|
871
|
+
current_period_ends_at: current_period_ends_at,
|
872
|
+
next_assessment_at: next_assessment_at,
|
873
|
+
trial_started_at: trial_started_at,
|
874
|
+
trial_ended_at: trial_ended_at,
|
875
|
+
activated_at: activated_at,
|
876
|
+
expires_at: expires_at,
|
877
|
+
created_at: created_at,
|
878
|
+
updated_at: updated_at,
|
879
|
+
cancellation_message: cancellation_message,
|
880
|
+
cancellation_method: cancellation_method,
|
881
|
+
cancel_at_end_of_period: cancel_at_end_of_period,
|
882
|
+
canceled_at: canceled_at,
|
883
|
+
current_period_started_at: current_period_started_at,
|
884
|
+
previous_state: previous_state,
|
885
|
+
signup_payment_id: signup_payment_id,
|
886
|
+
signup_revenue: signup_revenue,
|
887
|
+
delayed_cancel_at: delayed_cancel_at,
|
888
|
+
coupon_code: coupon_code,
|
889
|
+
snap_day: snap_day,
|
890
|
+
payment_collection_method: payment_collection_method,
|
891
|
+
customer: customer,
|
892
|
+
product: product,
|
893
|
+
credit_card: credit_card,
|
894
|
+
group: group,
|
895
|
+
bank_account: bank_account,
|
896
|
+
payment_type: payment_type,
|
897
|
+
referral_code: referral_code,
|
898
|
+
next_product_id: next_product_id,
|
899
|
+
next_product_handle: next_product_handle,
|
900
|
+
coupon_use_count: coupon_use_count,
|
901
|
+
coupon_uses_allowed: coupon_uses_allowed,
|
902
|
+
reason_code: reason_code,
|
903
|
+
automatically_resume_at: automatically_resume_at,
|
904
|
+
coupon_codes: coupon_codes,
|
905
|
+
offer_id: offer_id,
|
906
|
+
payer_id: payer_id,
|
907
|
+
current_billing_amount_in_cents: current_billing_amount_in_cents,
|
908
|
+
product_price_point_id: product_price_point_id,
|
909
|
+
product_price_point_type: product_price_point_type,
|
910
|
+
next_product_price_point_id: next_product_price_point_id,
|
911
|
+
net_terms: net_terms,
|
912
|
+
stored_credential_transaction_id: stored_credential_transaction_id,
|
913
|
+
reference: reference,
|
914
|
+
on_hold_at: on_hold_at,
|
915
|
+
prepaid_dunning: prepaid_dunning,
|
916
|
+
coupons: coupons,
|
917
|
+
dunning_communication_delay_enabled: dunning_communication_delay_enabled,
|
918
|
+
dunning_communication_delay_time_zone: dunning_communication_delay_time_zone,
|
919
|
+
receives_invoice_emails: receives_invoice_emails,
|
920
|
+
locale: locale,
|
921
|
+
currency: currency,
|
922
|
+
scheduled_cancellation_at: scheduled_cancellation_at,
|
923
|
+
credit_balance_in_cents: credit_balance_in_cents,
|
924
|
+
prepayment_balance_in_cents: prepayment_balance_in_cents,
|
925
|
+
prepaid_configuration: prepaid_configuration,
|
926
|
+
self_service_page_token: self_service_page_token,
|
927
|
+
additional_properties: hash)
|
960
928
|
end
|
961
929
|
|
962
930
|
def to_custom_current_period_ends_at
|
@@ -282,39 +282,21 @@ module AdvancedBilling
|
|
282
282
|
]
|
283
283
|
end
|
284
284
|
|
285
|
-
def initialize(id
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
archived_at = SKIP,
|
301
|
-
price_point_id = SKIP,
|
302
|
-
price_point_handle = SKIP,
|
303
|
-
price_point_type = SKIP,
|
304
|
-
price_point_name = SKIP,
|
305
|
-
product_family_id = SKIP,
|
306
|
-
product_family_handle = SKIP,
|
307
|
-
created_at = SKIP,
|
308
|
-
updated_at = SKIP,
|
309
|
-
use_site_exchange_rate = SKIP,
|
310
|
-
description = SKIP,
|
311
|
-
allow_fractional_quantities = SKIP,
|
312
|
-
subscription = SKIP,
|
313
|
-
historic_usages = SKIP,
|
314
|
-
display_on_hosted_page = SKIP,
|
315
|
-
interval = SKIP,
|
316
|
-
interval_unit = SKIP,
|
317
|
-
additional_properties = {})
|
285
|
+
def initialize(id: SKIP, name: SKIP, kind: SKIP, unit_name: SKIP,
|
286
|
+
enabled: SKIP, unit_balance: SKIP, currency: SKIP,
|
287
|
+
allocated_quantity: SKIP, pricing_scheme: SKIP,
|
288
|
+
component_id: SKIP, component_handle: SKIP,
|
289
|
+
subscription_id: SKIP, recurring: SKIP, upgrade_charge: SKIP,
|
290
|
+
downgrade_credit: SKIP, archived_at: SKIP,
|
291
|
+
price_point_id: SKIP, price_point_handle: SKIP,
|
292
|
+
price_point_type: SKIP, price_point_name: SKIP,
|
293
|
+
product_family_id: SKIP, product_family_handle: SKIP,
|
294
|
+
created_at: SKIP, updated_at: SKIP,
|
295
|
+
use_site_exchange_rate: SKIP, description: SKIP,
|
296
|
+
allow_fractional_quantities: SKIP, subscription: SKIP,
|
297
|
+
historic_usages: SKIP, display_on_hosted_page: SKIP,
|
298
|
+
interval: SKIP, interval_unit: SKIP,
|
299
|
+
additional_properties: {})
|
318
300
|
@id = id unless id == SKIP
|
319
301
|
@name = name unless name == SKIP
|
320
302
|
@kind = kind unless kind == SKIP
|
@@ -437,39 +419,39 @@ module AdvancedBilling
|
|
437
419
|
names.each_value { |k| hash.delete(k) }
|
438
420
|
|
439
421
|
# Create object from extracted values.
|
440
|
-
SubscriptionComponent.new(id,
|
441
|
-
name,
|
442
|
-
kind,
|
443
|
-
unit_name,
|
444
|
-
enabled,
|
445
|
-
unit_balance,
|
446
|
-
currency,
|
447
|
-
allocated_quantity,
|
448
|
-
pricing_scheme,
|
449
|
-
component_id,
|
450
|
-
component_handle,
|
451
|
-
subscription_id,
|
452
|
-
recurring,
|
453
|
-
upgrade_charge,
|
454
|
-
downgrade_credit,
|
455
|
-
archived_at,
|
456
|
-
price_point_id,
|
457
|
-
price_point_handle,
|
458
|
-
price_point_type,
|
459
|
-
price_point_name,
|
460
|
-
product_family_id,
|
461
|
-
product_family_handle,
|
462
|
-
created_at,
|
463
|
-
updated_at,
|
464
|
-
use_site_exchange_rate,
|
465
|
-
description,
|
466
|
-
allow_fractional_quantities,
|
467
|
-
subscription,
|
468
|
-
historic_usages,
|
469
|
-
display_on_hosted_page,
|
470
|
-
interval,
|
471
|
-
interval_unit,
|
472
|
-
hash)
|
422
|
+
SubscriptionComponent.new(id: id,
|
423
|
+
name: name,
|
424
|
+
kind: kind,
|
425
|
+
unit_name: unit_name,
|
426
|
+
enabled: enabled,
|
427
|
+
unit_balance: unit_balance,
|
428
|
+
currency: currency,
|
429
|
+
allocated_quantity: allocated_quantity,
|
430
|
+
pricing_scheme: pricing_scheme,
|
431
|
+
component_id: component_id,
|
432
|
+
component_handle: component_handle,
|
433
|
+
subscription_id: subscription_id,
|
434
|
+
recurring: recurring,
|
435
|
+
upgrade_charge: upgrade_charge,
|
436
|
+
downgrade_credit: downgrade_credit,
|
437
|
+
archived_at: archived_at,
|
438
|
+
price_point_id: price_point_id,
|
439
|
+
price_point_handle: price_point_handle,
|
440
|
+
price_point_type: price_point_type,
|
441
|
+
price_point_name: price_point_name,
|
442
|
+
product_family_id: product_family_id,
|
443
|
+
product_family_handle: product_family_handle,
|
444
|
+
created_at: created_at,
|
445
|
+
updated_at: updated_at,
|
446
|
+
use_site_exchange_rate: use_site_exchange_rate,
|
447
|
+
description: description,
|
448
|
+
allow_fractional_quantities: allow_fractional_quantities,
|
449
|
+
subscription: subscription,
|
450
|
+
historic_usages: historic_usages,
|
451
|
+
display_on_hosted_page: display_on_hosted_page,
|
452
|
+
interval: interval,
|
453
|
+
interval_unit: interval_unit,
|
454
|
+
additional_properties: hash)
|
473
455
|
end
|
474
456
|
|
475
457
|
def to_custom_archived_at
|
@@ -38,9 +38,7 @@ module AdvancedBilling
|
|
38
38
|
[]
|
39
39
|
end
|
40
40
|
|
41
|
-
def initialize(kind
|
42
|
-
message = SKIP,
|
43
|
-
additional_properties = {})
|
41
|
+
def initialize(kind: SKIP, message: SKIP, additional_properties: {})
|
44
42
|
@kind = kind unless kind == SKIP
|
45
43
|
@message = message unless message == SKIP
|
46
44
|
|
@@ -62,9 +60,9 @@ module AdvancedBilling
|
|
62
60
|
names.each_value { |k| hash.delete(k) }
|
63
61
|
|
64
62
|
# Create object from extracted values.
|
65
|
-
SubscriptionComponentAllocationErrorItem.new(kind,
|
66
|
-
message,
|
67
|
-
hash)
|
63
|
+
SubscriptionComponentAllocationErrorItem.new(kind: kind,
|
64
|
+
message: message,
|
65
|
+
additional_properties: hash)
|
68
66
|
end
|
69
67
|
end
|
70
68
|
end
|
@@ -32,8 +32,7 @@ module AdvancedBilling
|
|
32
32
|
[]
|
33
33
|
end
|
34
34
|
|
35
|
-
def initialize(component
|
36
|
-
additional_properties = {})
|
35
|
+
def initialize(component: SKIP, additional_properties: {})
|
37
36
|
@component = component unless component == SKIP
|
38
37
|
|
39
38
|
# Add additional model properties to the instance.
|
@@ -53,8 +52,8 @@ module AdvancedBilling
|
|
53
52
|
names.each_value { |k| hash.delete(k) }
|
54
53
|
|
55
54
|
# Create object from extracted values.
|
56
|
-
SubscriptionComponentResponse.new(component,
|
57
|
-
hash)
|
55
|
+
SubscriptionComponentResponse.new(component: component,
|
56
|
+
additional_properties: hash)
|
58
57
|
end
|
59
58
|
end
|
60
59
|
end
|
@@ -176,9 +176,7 @@ module AdvancedBilling
|
|
176
176
|
[]
|
177
177
|
end
|
178
178
|
|
179
|
-
def initialize(state
|
180
|
-
updated_at = SKIP,
|
181
|
-
additional_properties = {})
|
179
|
+
def initialize(state: SKIP, updated_at: SKIP, additional_properties: {})
|
182
180
|
@state = state unless state == SKIP
|
183
181
|
@updated_at = updated_at unless updated_at == SKIP
|
184
182
|
|
@@ -204,9 +202,9 @@ module AdvancedBilling
|
|
204
202
|
names.each_value { |k| hash.delete(k) }
|
205
203
|
|
206
204
|
# Create object from extracted values.
|
207
|
-
SubscriptionComponentSubscription.new(state,
|
208
|
-
updated_at,
|
209
|
-
hash)
|
205
|
+
SubscriptionComponentSubscription.new(state: state,
|
206
|
+
updated_at: updated_at,
|
207
|
+
additional_properties: hash)
|
210
208
|
end
|
211
209
|
|
212
210
|
def to_custom_updated_at
|