subskribe_sandbox 1.0.0 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -7
- data/docs/AccountsApi.md +2 -2
- data/docs/AutomatedInvoiceRule.md +3 -3
- data/docs/BulkInvoiceRunItem.md +2 -2
- data/docs/BulkPaymentUploadData.md +5 -5
- data/docs/ChargeJson.md +2 -2
- data/docs/PaginatedAccountsResponse.md +10 -0
- data/docs/PaginatedSubscriptionsResponse.md +10 -0
- data/docs/RevenueRecognitionApi.md +20 -20
- data/docs/SubscriptionsApi.md +2 -2
- data/docs/TaxJarIntegration.md +2 -2
- data/lib/subskribe_sandbox/api/accounts_api.rb +3 -3
- data/lib/subskribe_sandbox/api/revenue_recognition_api.rb +22 -22
- data/lib/subskribe_sandbox/api/subscriptions_api.rb +3 -3
- data/lib/subskribe_sandbox/models/automated_invoice_rule.rb +31 -31
- data/lib/subskribe_sandbox/models/bulk_invoice_run_item.rb +22 -22
- data/lib/subskribe_sandbox/models/bulk_payment_upload_data.rb +46 -46
- data/lib/subskribe_sandbox/models/charge_json.rb +16 -16
- data/lib/{subskribe_dev/models/payment_json_pagination_response.rb → subskribe_sandbox/models/paginated_accounts_response.rb} +4 -4
- data/lib/{subskribe_dev/models/credit_memo_pagination_response_json.rb → subskribe_sandbox/models/paginated_subscriptions_response.rb} +4 -4
- data/lib/subskribe_sandbox/models/tax_jar_integration.rb +16 -16
- data/lib/subskribe_sandbox/version.rb +1 -1
- data/lib/subskribe_sandbox.rb +2 -1
- data/spec/api/accounting_api_spec.rb +3 -3
- data/spec/api/accounts_api_spec.rb +4 -4
- data/spec/api/approvals_api_spec.rb +3 -3
- data/spec/api/attachments_api_spec.rb +3 -3
- data/spec/api/authentication_api_spec.rb +3 -3
- data/spec/api/billing_api_spec.rb +3 -3
- data/spec/api/credit_memo_api_spec.rb +3 -3
- data/spec/api/custom_field_api_spec.rb +3 -3
- data/spec/api/customization_api_spec.rb +3 -3
- data/spec/api/default_api_spec.rb +3 -3
- data/spec/api/discounts_api_spec.rb +3 -3
- data/spec/api/entities_api_spec.rb +42 -3
- data/spec/api/erp_api_spec.rb +13 -13
- data/spec/api/import_api_spec.rb +3 -3
- data/spec/api/integrations_api_spec.rb +3 -3
- data/spec/api/metrics_reporting_api_spec.rb +3 -3
- data/spec/api/notifications_api_spec.rb +3 -3
- data/spec/api/opportunity_api_spec.rb +3 -3
- data/spec/api/orders_api_spec.rb +3 -3
- data/spec/api/payments_api_spec.rb +3 -3
- data/spec/api/product_catalog_api_spec.rb +16 -3
- data/spec/api/rate_card_api_spec.rb +3 -3
- data/spec/api/refunds_api_spec.rb +3 -3
- data/spec/api/reports_api_spec.rb +3 -3
- data/spec/api/revenue_recognition_api_spec.rb +8 -8
- data/spec/api/sales_room_api_spec.rb +3 -3
- data/spec/api/settings_api_spec.rb +240 -3
- data/spec/api/subscriptions_api_spec.rb +4 -4
- data/spec/api/usage_api_spec.rb +3 -3
- data/spec/api/users_api_spec.rb +3 -3
- data/spec/api_client_spec.rb +31 -31
- data/spec/configuration_spec.rb +6 -6
- data/spec/models/account_address_json_spec.rb +3 -3
- data/spec/models/account_address_spec.rb +3 -3
- data/spec/models/account_contact_json_spec.rb +3 -3
- data/spec/models/account_contact_spec.rb +3 -3
- data/spec/models/account_json_spec.rb +3 -3
- data/spec/models/account_payment_method_json_spec.rb +3 -3
- data/spec/models/account_receivable_contact_json_spec.rb +3 -3
- data/spec/models/accounting_event_paginated_response_spec.rb +3 -3
- data/spec/models/accounting_event_spec.rb +3 -3
- data/spec/models/accounting_period_calculation_spec.rb +3 -3
- data/spec/models/accounting_period_spec.rb +3 -3
- data/spec/models/add_and_apply_payment_application_json_spec.rb +3 -3
- data/spec/models/anrok_integration_input_spec.rb +3 -3
- data/spec/models/approval_matrix_import_data_json_spec.rb +3 -3
- data/spec/models/approval_matrix_import_preview_spec.rb +3 -3
- data/spec/models/approval_role_json_spec.rb +3 -3
- data/spec/models/approval_role_segment_change_spec.rb +3 -3
- data/spec/models/approval_segment_json_spec.rb +3 -3
- data/spec/models/attachment_spec.rb +3 -3
- data/spec/models/attribute_reference_spec.rb +3 -3
- data/spec/models/auth_saml_integration_json_spec.rb +3 -3
- data/spec/models/automated_invoice_rule_request_json_spec.rb +3 -3
- data/spec/models/automated_invoice_rule_spec.rb +15 -15
- data/spec/models/avalara_integration_input_spec.rb +3 -3
- data/spec/models/avalara_integration_spec.rb +3 -3
- data/spec/models/billing_event_entry_spec.rb +3 -3
- data/spec/models/billing_event_input_spec.rb +3 -3
- data/spec/models/bulk_invoice_run_exclusions_spec.rb +3 -3
- data/spec/models/bulk_invoice_run_input_spec.rb +3 -3
- data/spec/models/bulk_invoice_run_item_spec.rb +9 -9
- data/spec/models/bulk_invoice_run_selector_spec.rb +3 -3
- data/spec/models/bulk_invoice_run_spec.rb +3 -3
- data/spec/models/bulk_payment_upload_data_spec.rb +13 -13
- data/spec/models/bulk_payment_upload_result_spec.rb +6 -6
- data/spec/models/byte_buffer_spec.rb +3 -3
- data/spec/models/catalog_relationship_spec.rb +3 -3
- data/spec/models/charge_json_spec.rb +6 -6
- data/spec/models/charge_partial_json_spec.rb +3 -3
- data/spec/models/company_contact_json_spec.rb +3 -3
- data/spec/models/credit_memo_application_json_spec.rb +3 -3
- data/spec/models/credit_memo_balance_json_spec.rb +3 -3
- data/spec/models/credit_memo_json_spec.rb +3 -3
- data/spec/models/credit_memo_line_item_json_spec.rb +3 -3
- data/spec/models/credit_memo_line_item_request_json_spec.rb +3 -3
- data/spec/models/credit_memo_pagination_response_json_spec.rb +3 -3
- data/spec/models/crm_account_import_response_spec.rb +3 -3
- data/spec/models/custom_field_default_spec.rb +3 -3
- data/spec/models/custom_field_definition_create_input_spec.rb +3 -3
- data/spec/models/custom_field_definition_json_spec.rb +3 -3
- data/spec/models/custom_field_definition_update_input_spec.rb +3 -3
- data/spec/models/custom_field_entry_spec.rb +3 -3
- data/spec/models/custom_field_update_input_spec.rb +3 -3
- data/spec/models/custom_field_value_spec.rb +3 -3
- data/spec/models/data_import_spec.rb +3 -3
- data/spec/models/discount_detail_json_spec.rb +3 -3
- data/spec/models/discount_json_spec.rb +3 -3
- data/spec/models/docu_sign_integration_request_json_spec.rb +3 -3
- data/spec/models/docu_sign_integration_response_json_spec.rb +3 -3
- data/spec/models/document_custom_content_spec.rb +3 -3
- data/spec/models/document_section_spec.rb +3 -3
- data/spec/models/document_template_json_spec.rb +3 -3
- data/spec/models/dunning_setting_json_spec.rb +3 -3
- data/spec/models/email_notifiers_list_spec.rb +3 -3
- data/spec/models/entity_json_spec.rb +3 -3
- data/spec/models/entity_ref_spec.rb +3 -3
- data/spec/models/entity_spec.rb +3 -3
- data/spec/models/entry_spec.rb +3 -3
- data/spec/models/external_arr_schedule_json_spec.rb +3 -3
- data/spec/models/flatfile_workbook_response_data_spec.rb +3 -3
- data/spec/models/flatfile_workbook_response_spec.rb +3 -3
- data/spec/models/input_stream_spec.rb +3 -3
- data/spec/models/integration_spec.rb +3 -3
- data/spec/models/invoice_balance_json_spec.rb +3 -3
- data/spec/models/invoice_item_json_spec.rb +3 -3
- data/spec/models/invoice_item_preview_json_spec.rb +3 -3
- data/spec/models/invoice_json_pagination_response_spec.rb +3 -3
- data/spec/models/invoice_json_spec.rb +3 -3
- data/spec/models/invoice_number_prefix_spec.rb +3 -3
- data/spec/models/invoice_preview_json_spec.rb +3 -3
- data/spec/models/ledger_account_mapping_spec.rb +3 -3
- data/spec/models/ledger_account_spec.rb +3 -3
- data/spec/models/metrics_json_spec.rb +3 -3
- data/spec/models/notification_target_and_subscriptions_spec.rb +3 -3
- data/spec/models/number_config_spec.rb +3 -3
- data/spec/models/opportunity_json_spec.rb +3 -3
- data/spec/models/opportunity_pagination_response_spec.rb +3 -3
- data/spec/models/opportunity_rest_json_spec.rb +3 -3
- data/spec/models/opportunity_spec.rb +3 -3
- data/spec/models/order_json_pagination_response_spec.rb +3 -3
- data/spec/models/order_json_spec.rb +3 -3
- data/spec/models/order_line_item_json_spec.rb +9 -3
- data/spec/models/order_line_item_request_json_spec.rb +9 -3
- data/spec/models/order_request_json_spec.rb +3 -3
- data/spec/models/order_terms_spec.rb +3 -3
- data/spec/models/{paginated_response_spec.rb → paginated_accounts_response_spec.rb} +8 -8
- data/spec/models/paginated_subscriptions_response_spec.rb +53 -0
- data/spec/models/payment_balance_json_spec.rb +3 -3
- data/spec/models/payment_configuration_spec.rb +3 -3
- data/spec/models/payment_json_pagination_response_spec.rb +3 -3
- data/spec/models/payment_json_spec.rb +3 -3
- data/spec/models/payment_term_settings_json_spec.rb +3 -3
- data/spec/models/plan_json_pagination_response_spec.rb +3 -3
- data/spec/models/plan_json_spec.rb +3 -3
- data/spec/models/predefined_report_def_chart_json_spec.rb +3 -3
- data/spec/models/predefined_report_def_json_spec.rb +3 -3
- data/spec/models/predefined_report_defs_json_spec.rb +3 -3
- data/spec/models/predefined_report_json_spec.rb +3 -3
- data/spec/models/predefined_report_param_object_spec.rb +3 -3
- data/spec/models/predefined_report_param_spec.rb +3 -3
- data/spec/models/prepaid_stats_spec.rb +3 -3
- data/spec/models/price_tier_json_spec.rb +3 -3
- data/spec/models/product_category_pagination_response_spec.rb +3 -3
- data/spec/models/product_category_spec.rb +3 -3
- data/spec/models/product_input_json_spec.rb +3 -3
- data/spec/models/product_json_pagination_response_spec.rb +3 -3
- data/spec/models/product_json_spec.rb +3 -3
- data/spec/models/purchase_order_spec.rb +3 -3
- data/spec/models/raw_usage_spec.rb +3 -3
- data/spec/models/raw_usages_data_spec.rb +3 -3
- data/spec/models/recognition_event_completion_spec.rb +3 -3
- data/spec/models/recognition_rule_spec.rb +3 -3
- data/spec/models/recurrence_json_spec.rb +3 -3
- data/spec/models/refund_detail_spec.rb +3 -3
- data/spec/models/refund_request_json_spec.rb +3 -3
- data/spec/models/refund_spec.rb +3 -3
- data/spec/models/report_duration_spec.rb +3 -3
- data/spec/models/report_job_response_spec.rb +3 -3
- data/spec/models/salesforce_account_billing_address_spec.rb +3 -3
- data/spec/models/salesforce_account_spec.rb +3 -3
- data/spec/models/salesforce_client_integration_request_json_spec.rb +3 -3
- data/spec/models/settlement_application_spec.rb +3 -3
- data/spec/models/standalone_credit_memo_request_spec.rb +3 -3
- data/spec/models/subscription_charge_alias_spec.rb +3 -3
- data/spec/models/subscription_charge_json_spec.rb +3 -3
- data/spec/models/subscription_json_spec.rb +3 -3
- data/spec/models/subscription_update_json_spec.rb +3 -3
- data/spec/models/tax_jar_integration_input_spec.rb +3 -3
- data/spec/models/tax_jar_integration_spec.rb +7 -7
- data/spec/models/tax_rate_json_spec.rb +3 -3
- data/spec/models/tax_rate_pagination_response_json_spec.rb +3 -3
- data/spec/models/tenant_credit_memo_configuration_json_spec.rb +3 -3
- data/spec/models/tenant_discount_json_spec.rb +3 -3
- data/spec/models/tenant_discount_line_item_json_spec.rb +3 -3
- data/spec/models/tenant_invoice_config_spec.rb +3 -3
- data/spec/models/tenant_json_spec.rb +3 -3
- data/spec/models/tenant_setting_json_spec.rb +3 -3
- data/spec/models/time_series_amount_json_spec.rb +3 -3
- data/spec/models/time_zone_spec.rb +3 -3
- data/spec/models/unit_of_measure_json_spec.rb +3 -3
- data/spec/models/unit_of_measure_pagination_response_json_spec.rb +3 -3
- data/spec/models/update_invoice_request_spec.rb +3 -3
- data/spec/models/usage_aggregate_output_spec.rb +3 -3
- data/spec/models/usage_batch_insert_result_spec.rb +3 -3
- data/spec/models/user_group_json_spec.rb +3 -3
- data/spec/models/user_group_request_json_spec.rb +3 -3
- data/spec/models/user_input_spec.rb +3 -3
- data/spec/models/user_json_spec.rb +3 -3
- data/spec/models/user_pagination_response_json_spec.rb +3 -3
- data/spec/models/void_invoice_request_spec.rb +3 -3
- data/spec/models/void_payment_json_spec.rb +3 -3
- data/spec/spec_helper.rb +1 -1
- data/subskribe_sandbox.gemspec +3 -3
- metadata +193 -388
- data/docs/EntityApi.md +0 -66
- data/docs/PaginatedResponse.md +0 -10
- data/lib/subskribe_dev/api/accounting_api.rb +0 -193
- data/lib/subskribe_dev/api/accounts_api.rb +0 -858
- data/lib/subskribe_dev/api/approvals_api.rb +0 -965
- data/lib/subskribe_dev/api/attachments_api.rb +0 -299
- data/lib/subskribe_dev/api/authentication_api.rb +0 -335
- data/lib/subskribe_dev/api/billing_api.rb +0 -2098
- data/lib/subskribe_dev/api/credit_memo_api.rb +0 -636
- data/lib/subskribe_dev/api/custom_field_api.rb +0 -434
- data/lib/subskribe_dev/api/customization_api.rb +0 -269
- data/lib/subskribe_dev/api/default_api.rb +0 -223
- data/lib/subskribe_dev/api/discounts_api.rb +0 -340
- data/lib/subskribe_dev/api/entities_api.rb +0 -374
- data/lib/subskribe_dev/api/entity_api.rb +0 -79
- data/lib/subskribe_dev/api/erp_api.rb +0 -278
- data/lib/subskribe_dev/api/import_api.rb +0 -568
- data/lib/subskribe_dev/api/integrations_api.rb +0 -1678
- data/lib/subskribe_dev/api/metrics_reporting_api.rb +0 -223
- data/lib/subskribe_dev/api/notifications_api.rb +0 -245
- data/lib/subskribe_dev/api/opportunity_api.rb +0 -177
- data/lib/subskribe_dev/api/orders_api.rb +0 -1381
- data/lib/subskribe_dev/api/payments_api.rb +0 -431
- data/lib/subskribe_dev/api/product_catalog_api.rb +0 -1828
- data/lib/subskribe_dev/api/rate_card_api.rb +0 -68
- data/lib/subskribe_dev/api/refunds_api.rb +0 -189
- data/lib/subskribe_dev/api/reports_api.rb +0 -227
- data/lib/subskribe_dev/api/revenue_recognition_api.rb +0 -484
- data/lib/subskribe_dev/api/sales_room_api.rb +0 -74
- data/lib/subskribe_dev/api/settings_api.rb +0 -1321
- data/lib/subskribe_dev/api/subscriptions_api.rb +0 -576
- data/lib/subskribe_dev/api/usage_api.rb +0 -604
- data/lib/subskribe_dev/api/users_api.rb +0 -728
- data/lib/subskribe_dev/api_client.rb +0 -391
- data/lib/subskribe_dev/api_error.rb +0 -38
- data/lib/subskribe_dev/configuration.rb +0 -209
- data/lib/subskribe_dev/models/account_address.rb +0 -265
- data/lib/subskribe_dev/models/account_address_json.rb +0 -229
- data/lib/subskribe_dev/models/account_contact.rb +0 -530
- data/lib/subskribe_dev/models/account_contact_json.rb +0 -274
- data/lib/subskribe_dev/models/account_json.rb +0 -395
- data/lib/subskribe_dev/models/account_payment_method_json.rb +0 -268
- data/lib/subskribe_dev/models/account_receivable_contact_json.rb +0 -225
- data/lib/subskribe_dev/models/accounting_event.rb +0 -319
- data/lib/subskribe_dev/models/accounting_event_paginated_response.rb +0 -204
- data/lib/subskribe_dev/models/accounting_period.rb +0 -356
- data/lib/subskribe_dev/models/accounting_period_calculation.rb +0 -229
- data/lib/subskribe_dev/models/add_and_apply_payment_application_json.rb +0 -344
- data/lib/subskribe_dev/models/anrok_integration_input.rb +0 -184
- data/lib/subskribe_dev/models/approval_matrix_import_data_json.rb +0 -229
- data/lib/subskribe_dev/models/approval_matrix_import_preview.rb +0 -226
- data/lib/subskribe_dev/models/approval_role_json.rb +0 -220
- data/lib/subskribe_dev/models/approval_role_segment_change.rb +0 -211
- data/lib/subskribe_dev/models/approval_segment_json.rb +0 -220
- data/lib/subskribe_dev/models/attachment.rb +0 -326
- data/lib/subskribe_dev/models/attribute_reference.rb +0 -193
- data/lib/subskribe_dev/models/auth_saml_integration_json.rb +0 -204
- data/lib/subskribe_dev/models/automated_invoice_rule.rb +0 -328
- data/lib/subskribe_dev/models/automated_invoice_rule_request_json.rb +0 -307
- data/lib/subskribe_dev/models/avalara_integration.rb +0 -238
- data/lib/subskribe_dev/models/avalara_integration_input.rb +0 -268
- data/lib/subskribe_dev/models/billing_event_entry.rb +0 -211
- data/lib/subskribe_dev/models/billing_event_input.rb +0 -216
- data/lib/subskribe_dev/models/bulk_invoice_run.rb +0 -350
- data/lib/subskribe_dev/models/bulk_invoice_run_exclusions.rb +0 -197
- data/lib/subskribe_dev/models/bulk_invoice_run_input.rb +0 -263
- data/lib/subskribe_dev/models/bulk_invoice_run_item.rb +0 -364
- data/lib/subskribe_dev/models/bulk_invoice_run_selector.rb +0 -184
- data/lib/subskribe_dev/models/bulk_payment_upload_data.rb +0 -274
- data/lib/subskribe_dev/models/bulk_payment_upload_result.rb +0 -204
- data/lib/subskribe_dev/models/byte_buffer.rb +0 -247
- data/lib/subskribe_dev/models/catalog_relationship.rb +0 -364
- data/lib/subskribe_dev/models/charge_json.rb +0 -631
- data/lib/subskribe_dev/models/charge_partial_json.rb +0 -310
- data/lib/subskribe_dev/models/company_contact_json.rb +0 -225
- data/lib/subskribe_dev/models/credit_memo_application_json.rb +0 -239
- data/lib/subskribe_dev/models/credit_memo_balance_json.rb +0 -211
- data/lib/subskribe_dev/models/credit_memo_json.rb +0 -363
- data/lib/subskribe_dev/models/credit_memo_line_item_json.rb +0 -252
- data/lib/subskribe_dev/models/credit_memo_line_item_request_json.rb +0 -211
- data/lib/subskribe_dev/models/crm_account_import_response.rb +0 -193
- data/lib/subskribe_dev/models/custom_field_default.rb +0 -195
- data/lib/subskribe_dev/models/custom_field_definition_create_input.rb +0 -317
- data/lib/subskribe_dev/models/custom_field_definition_json.rb +0 -313
- data/lib/subskribe_dev/models/custom_field_definition_update_input.rb +0 -256
- data/lib/subskribe_dev/models/custom_field_entry.rb +0 -325
- data/lib/subskribe_dev/models/custom_field_update_input.rb +0 -195
- data/lib/subskribe_dev/models/custom_field_value.rb +0 -316
- data/lib/subskribe_dev/models/data_import.rb +0 -355
- data/lib/subskribe_dev/models/discount_detail_json.rb +0 -263
- data/lib/subskribe_dev/models/discount_json.rb +0 -254
- data/lib/subskribe_dev/models/docu_sign_integration_request_json.rb +0 -236
- data/lib/subskribe_dev/models/docu_sign_integration_response_json.rb +0 -245
- data/lib/subskribe_dev/models/document_custom_content.rb +0 -211
- data/lib/subskribe_dev/models/document_section.rb +0 -265
- data/lib/subskribe_dev/models/document_template_json.rb +0 -300
- data/lib/subskribe_dev/models/dunning_setting_json.rb +0 -200
- data/lib/subskribe_dev/models/email_notifiers_list.rb +0 -208
- data/lib/subskribe_dev/models/entity.rb +0 -356
- data/lib/subskribe_dev/models/entity_json.rb +0 -347
- data/lib/subskribe_dev/models/entity_ref.rb +0 -202
- data/lib/subskribe_dev/models/entry.rb +0 -202
- data/lib/subskribe_dev/models/external_arr_schedule_json.rb +0 -319
- data/lib/subskribe_dev/models/flatfile_workbook_response.rb +0 -184
- data/lib/subskribe_dev/models/flatfile_workbook_response_data.rb +0 -193
- data/lib/subskribe_dev/models/input_stream.rb +0 -175
- data/lib/subskribe_dev/models/integration.rb +0 -311
- data/lib/subskribe_dev/models/invoice_balance_json.rb +0 -211
- data/lib/subskribe_dev/models/invoice_item_json.rb +0 -355
- data/lib/subskribe_dev/models/invoice_item_preview_json.rb +0 -229
- data/lib/subskribe_dev/models/invoice_json.rb +0 -439
- data/lib/subskribe_dev/models/invoice_json_pagination_response.rb +0 -204
- data/lib/subskribe_dev/models/invoice_number_prefix.rb +0 -184
- data/lib/subskribe_dev/models/invoice_preview_json.rb +0 -222
- data/lib/subskribe_dev/models/ledger_account.rb +0 -316
- data/lib/subskribe_dev/models/ledger_account_mapping.rb +0 -222
- data/lib/subskribe_dev/models/metrics_json.rb +0 -267
- data/lib/subskribe_dev/models/notification_target_and_subscriptions.rb +0 -265
- data/lib/subskribe_dev/models/number_config.rb +0 -254
- data/lib/subskribe_dev/models/opportunity.rb +0 -326
- data/lib/subskribe_dev/models/opportunity_json.rb +0 -326
- data/lib/subskribe_dev/models/opportunity_pagination_response.rb +0 -204
- data/lib/subskribe_dev/models/opportunity_rest_json.rb +0 -317
- data/lib/subskribe_dev/models/order_json.rb +0 -754
- data/lib/subskribe_dev/models/order_json_pagination_response.rb +0 -204
- data/lib/subskribe_dev/models/order_line_item_json.rb +0 -465
- data/lib/subskribe_dev/models/order_line_item_request_json.rb +0 -375
- data/lib/subskribe_dev/models/order_request_json.rb +0 -616
- data/lib/subskribe_dev/models/order_terms.rb +0 -265
- data/lib/subskribe_dev/models/paginated_response.rb +0 -204
- data/lib/subskribe_dev/models/payment_balance_json.rb +0 -211
- data/lib/subskribe_dev/models/payment_configuration.rb +0 -208
- data/lib/subskribe_dev/models/payment_json.rb +0 -300
- data/lib/subskribe_dev/models/payment_term_settings_json.rb +0 -219
- data/lib/subskribe_dev/models/plan_json.rb +0 -339
- data/lib/subskribe_dev/models/plan_json_pagination_response.rb +0 -204
- data/lib/subskribe_dev/models/predefined_report_def_chart_json.rb +0 -265
- data/lib/subskribe_dev/models/predefined_report_def_json.rb +0 -222
- data/lib/subskribe_dev/models/predefined_report_defs_json.rb +0 -186
- data/lib/subskribe_dev/models/predefined_report_json.rb +0 -213
- data/lib/subskribe_dev/models/predefined_report_param.rb +0 -296
- data/lib/subskribe_dev/models/predefined_report_param_object.rb +0 -296
- data/lib/subskribe_dev/models/prepaid_stats.rb +0 -310
- data/lib/subskribe_dev/models/price_tier_json.rb +0 -212
- data/lib/subskribe_dev/models/product_category.rb +0 -264
- data/lib/subskribe_dev/models/product_category_pagination_response.rb +0 -204
- data/lib/subskribe_dev/models/product_input_json.rb +0 -249
- data/lib/subskribe_dev/models/product_json.rb +0 -276
- data/lib/subskribe_dev/models/product_json_pagination_response.rb +0 -204
- data/lib/subskribe_dev/models/purchase_order.rb +0 -226
- data/lib/subskribe_dev/models/raw_usage.rb +0 -247
- data/lib/subskribe_dev/models/raw_usages_data.rb +0 -192
- data/lib/subskribe_dev/models/recognition_event_completion.rb +0 -322
- data/lib/subskribe_dev/models/recognition_rule.rb +0 -376
- data/lib/subskribe_dev/models/recurrence_json.rb +0 -256
- data/lib/subskribe_dev/models/refund.rb +0 -301
- data/lib/subskribe_dev/models/refund_detail.rb +0 -322
- data/lib/subskribe_dev/models/refund_request_json.rb +0 -272
- data/lib/subskribe_dev/models/report_duration.rb +0 -193
- data/lib/subskribe_dev/models/report_job_response.rb +0 -245
- data/lib/subskribe_dev/models/salesforce_account.rb +0 -229
- data/lib/subskribe_dev/models/salesforce_account_billing_address.rb +0 -220
- data/lib/subskribe_dev/models/salesforce_client_integration_request_json.rb +0 -211
- data/lib/subskribe_dev/models/settlement_application.rb +0 -329
- data/lib/subskribe_dev/models/standalone_credit_memo_request.rb +0 -353
- data/lib/subskribe_dev/models/subscription_charge_alias.rb +0 -283
- data/lib/subskribe_dev/models/subscription_charge_json.rb +0 -362
- data/lib/subskribe_dev/models/subscription_json.rb +0 -583
- data/lib/subskribe_dev/models/subscription_update_json.rb +0 -280
- data/lib/subskribe_dev/models/tax_jar_integration.rb +0 -238
- data/lib/subskribe_dev/models/tax_jar_integration_input.rb +0 -193
- data/lib/subskribe_dev/models/tax_rate_json.rb +0 -286
- data/lib/subskribe_dev/models/tax_rate_pagination_response_json.rb +0 -204
- data/lib/subskribe_dev/models/tenant_credit_memo_configuration_json.rb +0 -211
- data/lib/subskribe_dev/models/tenant_discount_json.rb +0 -193
- data/lib/subskribe_dev/models/tenant_discount_line_item_json.rb +0 -202
- data/lib/subskribe_dev/models/tenant_invoice_config.rb +0 -254
- data/lib/subskribe_dev/models/tenant_json.rb +0 -283
- data/lib/subskribe_dev/models/tenant_setting_json.rb +0 -307
- data/lib/subskribe_dev/models/time_series_amount_json.rb +0 -193
- data/lib/subskribe_dev/models/time_zone.rb +0 -211
- data/lib/subskribe_dev/models/unit_of_measure_json.rb +0 -250
- data/lib/subskribe_dev/models/unit_of_measure_pagination_response_json.rb +0 -204
- data/lib/subskribe_dev/models/update_invoice_request.rb +0 -282
- data/lib/subskribe_dev/models/usage_aggregate_output.rb +0 -258
- data/lib/subskribe_dev/models/usage_batch_insert_result.rb +0 -213
- data/lib/subskribe_dev/models/user_group_json.rb +0 -224
- data/lib/subskribe_dev/models/user_group_request_json.rb +0 -224
- data/lib/subskribe_dev/models/user_input.rb +0 -304
- data/lib/subskribe_dev/models/user_json.rb +0 -376
- data/lib/subskribe_dev/models/user_pagination_response_json.rb +0 -204
- data/lib/subskribe_dev/models/void_invoice_request.rb +0 -203
- data/lib/subskribe_dev/models/void_payment_json.rb +0 -235
- data/lib/subskribe_dev/version.rb +0 -15
- data/lib/subskribe_dev.rb +0 -229
- data/lib/subskribe_sandbox/models/paginated_response.rb +0 -204
- data/spec/api/entity_api_spec.rb +0 -48
- data/subskribe_dev.gemspec +0 -46
@@ -1,307 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Subskribe API
|
3
|
-
|
4
|
-
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.41
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module SubskribeDevClient
|
16
|
-
class AutomatedInvoiceRuleRequestJson
|
17
|
-
attr_accessor :id
|
18
|
-
|
19
|
-
attr_accessor :name
|
20
|
-
|
21
|
-
attr_accessor :description
|
22
|
-
|
23
|
-
attr_accessor :cron_expression
|
24
|
-
|
25
|
-
attr_accessor :first_execution_date
|
26
|
-
|
27
|
-
attr_accessor :last_execution_date
|
28
|
-
|
29
|
-
attr_accessor :target_duration
|
30
|
-
|
31
|
-
attr_accessor :invoice_duration
|
32
|
-
|
33
|
-
attr_accessor :include_usage_charge
|
34
|
-
|
35
|
-
attr_accessor :include_non_usage_charge
|
36
|
-
|
37
|
-
attr_accessor :auto_post_invoice
|
38
|
-
|
39
|
-
attr_accessor :auto_email_invoice
|
40
|
-
|
41
|
-
attr_accessor :enabled
|
42
|
-
|
43
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
44
|
-
def self.attribute_map
|
45
|
-
{
|
46
|
-
:'id' => :'id',
|
47
|
-
:'name' => :'name',
|
48
|
-
:'description' => :'description',
|
49
|
-
:'cron_expression' => :'cronExpression',
|
50
|
-
:'first_execution_date' => :'firstExecutionDate',
|
51
|
-
:'last_execution_date' => :'lastExecutionDate',
|
52
|
-
:'target_duration' => :'targetDuration',
|
53
|
-
:'invoice_duration' => :'invoiceDuration',
|
54
|
-
:'include_usage_charge' => :'includeUsageCharge',
|
55
|
-
:'include_non_usage_charge' => :'includeNonUsageCharge',
|
56
|
-
:'auto_post_invoice' => :'autoPostInvoice',
|
57
|
-
:'auto_email_invoice' => :'autoEmailInvoice',
|
58
|
-
:'enabled' => :'enabled'
|
59
|
-
}
|
60
|
-
end
|
61
|
-
|
62
|
-
# Attribute type mapping.
|
63
|
-
def self.swagger_types
|
64
|
-
{
|
65
|
-
:'id' => :'String',
|
66
|
-
:'name' => :'String',
|
67
|
-
:'description' => :'String',
|
68
|
-
:'cron_expression' => :'String',
|
69
|
-
:'first_execution_date' => :'Integer',
|
70
|
-
:'last_execution_date' => :'Integer',
|
71
|
-
:'target_duration' => :'Integer',
|
72
|
-
:'invoice_duration' => :'Integer',
|
73
|
-
:'include_usage_charge' => :'BOOLEAN',
|
74
|
-
:'include_non_usage_charge' => :'BOOLEAN',
|
75
|
-
:'auto_post_invoice' => :'BOOLEAN',
|
76
|
-
:'auto_email_invoice' => :'BOOLEAN',
|
77
|
-
:'enabled' => :'BOOLEAN'
|
78
|
-
}
|
79
|
-
end
|
80
|
-
|
81
|
-
# Initializes the object
|
82
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
83
|
-
def initialize(attributes = {})
|
84
|
-
return unless attributes.is_a?(Hash)
|
85
|
-
|
86
|
-
# convert string to symbol for hash key
|
87
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
88
|
-
|
89
|
-
if attributes.has_key?(:'id')
|
90
|
-
self.id = attributes[:'id']
|
91
|
-
end
|
92
|
-
|
93
|
-
if attributes.has_key?(:'name')
|
94
|
-
self.name = attributes[:'name']
|
95
|
-
end
|
96
|
-
|
97
|
-
if attributes.has_key?(:'description')
|
98
|
-
self.description = attributes[:'description']
|
99
|
-
end
|
100
|
-
|
101
|
-
if attributes.has_key?(:'cronExpression')
|
102
|
-
self.cron_expression = attributes[:'cronExpression']
|
103
|
-
end
|
104
|
-
|
105
|
-
if attributes.has_key?(:'firstExecutionDate')
|
106
|
-
self.first_execution_date = attributes[:'firstExecutionDate']
|
107
|
-
end
|
108
|
-
|
109
|
-
if attributes.has_key?(:'lastExecutionDate')
|
110
|
-
self.last_execution_date = attributes[:'lastExecutionDate']
|
111
|
-
end
|
112
|
-
|
113
|
-
if attributes.has_key?(:'targetDuration')
|
114
|
-
self.target_duration = attributes[:'targetDuration']
|
115
|
-
end
|
116
|
-
|
117
|
-
if attributes.has_key?(:'invoiceDuration')
|
118
|
-
self.invoice_duration = attributes[:'invoiceDuration']
|
119
|
-
end
|
120
|
-
|
121
|
-
if attributes.has_key?(:'includeUsageCharge')
|
122
|
-
self.include_usage_charge = attributes[:'includeUsageCharge']
|
123
|
-
end
|
124
|
-
|
125
|
-
if attributes.has_key?(:'includeNonUsageCharge')
|
126
|
-
self.include_non_usage_charge = attributes[:'includeNonUsageCharge']
|
127
|
-
end
|
128
|
-
|
129
|
-
if attributes.has_key?(:'autoPostInvoice')
|
130
|
-
self.auto_post_invoice = attributes[:'autoPostInvoice']
|
131
|
-
end
|
132
|
-
|
133
|
-
if attributes.has_key?(:'autoEmailInvoice')
|
134
|
-
self.auto_email_invoice = attributes[:'autoEmailInvoice']
|
135
|
-
end
|
136
|
-
|
137
|
-
if attributes.has_key?(:'enabled')
|
138
|
-
self.enabled = attributes[:'enabled']
|
139
|
-
end
|
140
|
-
end
|
141
|
-
|
142
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
143
|
-
# @return Array for valid properties with the reasons
|
144
|
-
def list_invalid_properties
|
145
|
-
invalid_properties = Array.new
|
146
|
-
if @name.nil?
|
147
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
148
|
-
end
|
149
|
-
|
150
|
-
if @cron_expression.nil?
|
151
|
-
invalid_properties.push('invalid value for "cron_expression", cron_expression cannot be nil.')
|
152
|
-
end
|
153
|
-
|
154
|
-
if @first_execution_date.nil?
|
155
|
-
invalid_properties.push('invalid value for "first_execution_date", first_execution_date cannot be nil.')
|
156
|
-
end
|
157
|
-
|
158
|
-
invalid_properties
|
159
|
-
end
|
160
|
-
|
161
|
-
# Check to see if the all the properties in the model are valid
|
162
|
-
# @return true if the model is valid
|
163
|
-
def valid?
|
164
|
-
return false if @name.nil?
|
165
|
-
return false if @cron_expression.nil?
|
166
|
-
return false if @first_execution_date.nil?
|
167
|
-
true
|
168
|
-
end
|
169
|
-
|
170
|
-
# Checks equality by comparing each attribute.
|
171
|
-
# @param [Object] Object to be compared
|
172
|
-
def ==(o)
|
173
|
-
return true if self.equal?(o)
|
174
|
-
self.class == o.class &&
|
175
|
-
id == o.id &&
|
176
|
-
name == o.name &&
|
177
|
-
description == o.description &&
|
178
|
-
cron_expression == o.cron_expression &&
|
179
|
-
first_execution_date == o.first_execution_date &&
|
180
|
-
last_execution_date == o.last_execution_date &&
|
181
|
-
target_duration == o.target_duration &&
|
182
|
-
invoice_duration == o.invoice_duration &&
|
183
|
-
include_usage_charge == o.include_usage_charge &&
|
184
|
-
include_non_usage_charge == o.include_non_usage_charge &&
|
185
|
-
auto_post_invoice == o.auto_post_invoice &&
|
186
|
-
auto_email_invoice == o.auto_email_invoice &&
|
187
|
-
enabled == o.enabled
|
188
|
-
end
|
189
|
-
|
190
|
-
# @see the `==` method
|
191
|
-
# @param [Object] Object to be compared
|
192
|
-
def eql?(o)
|
193
|
-
self == o
|
194
|
-
end
|
195
|
-
|
196
|
-
# Calculates hash code according to all attributes.
|
197
|
-
# @return [Fixnum] Hash code
|
198
|
-
def hash
|
199
|
-
[id, name, description, cron_expression, first_execution_date, last_execution_date, target_duration, invoice_duration, include_usage_charge, include_non_usage_charge, auto_post_invoice, auto_email_invoice, enabled].hash
|
200
|
-
end
|
201
|
-
|
202
|
-
# Builds the object from hash
|
203
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
204
|
-
# @return [Object] Returns the model itself
|
205
|
-
def build_from_hash(attributes)
|
206
|
-
return nil unless attributes.is_a?(Hash)
|
207
|
-
self.class.swagger_types.each_pair do |key, type|
|
208
|
-
if type =~ /\AArray<(.*)>/i
|
209
|
-
# check to ensure the input is an array given that the attribute
|
210
|
-
# is documented as an array but the input is not
|
211
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
212
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
213
|
-
end
|
214
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
215
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
216
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
217
|
-
end
|
218
|
-
|
219
|
-
self
|
220
|
-
end
|
221
|
-
|
222
|
-
# Deserializes the data based on type
|
223
|
-
# @param string type Data type
|
224
|
-
# @param string value Value to be deserialized
|
225
|
-
# @return [Object] Deserialized data
|
226
|
-
def _deserialize(type, value)
|
227
|
-
case type.to_sym
|
228
|
-
when :DateTime
|
229
|
-
DateTime.parse(value)
|
230
|
-
when :Date
|
231
|
-
Date.parse(value)
|
232
|
-
when :String
|
233
|
-
value.to_s
|
234
|
-
when :Integer
|
235
|
-
value.to_i
|
236
|
-
when :Float
|
237
|
-
value.to_f
|
238
|
-
when :BOOLEAN
|
239
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
240
|
-
true
|
241
|
-
else
|
242
|
-
false
|
243
|
-
end
|
244
|
-
when :Object
|
245
|
-
# generic object (usually a Hash), return directly
|
246
|
-
value
|
247
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
248
|
-
inner_type = Regexp.last_match[:inner_type]
|
249
|
-
value.map { |v| _deserialize(inner_type, v) }
|
250
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
251
|
-
k_type = Regexp.last_match[:k_type]
|
252
|
-
v_type = Regexp.last_match[:v_type]
|
253
|
-
{}.tap do |hash|
|
254
|
-
value.each do |k, v|
|
255
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
256
|
-
end
|
257
|
-
end
|
258
|
-
else # model
|
259
|
-
temp_model = SubskribeDevClient.const_get(type).new
|
260
|
-
temp_model.build_from_hash(value)
|
261
|
-
end
|
262
|
-
end
|
263
|
-
|
264
|
-
# Returns the string representation of the object
|
265
|
-
# @return [String] String presentation of the object
|
266
|
-
def to_s
|
267
|
-
to_hash.to_s
|
268
|
-
end
|
269
|
-
|
270
|
-
# to_body is an alias to to_hash (backward compatibility)
|
271
|
-
# @return [Hash] Returns the object in the form of hash
|
272
|
-
def to_body
|
273
|
-
to_hash
|
274
|
-
end
|
275
|
-
|
276
|
-
# Returns the object in the form of hash
|
277
|
-
# @return [Hash] Returns the object in the form of hash
|
278
|
-
def to_hash
|
279
|
-
hash = {}
|
280
|
-
self.class.attribute_map.each_pair do |attr, param|
|
281
|
-
value = self.send(attr)
|
282
|
-
next if value.nil?
|
283
|
-
hash[param] = _to_hash(value)
|
284
|
-
end
|
285
|
-
hash
|
286
|
-
end
|
287
|
-
|
288
|
-
# Outputs non-array value in the form of hash
|
289
|
-
# For object, use to_hash. Otherwise, just return the value
|
290
|
-
# @param [Object] value Any valid value
|
291
|
-
# @return [Hash] Returns the value in the form of hash
|
292
|
-
def _to_hash(value)
|
293
|
-
if value.is_a?(Array)
|
294
|
-
value.compact.map { |v| _to_hash(v) }
|
295
|
-
elsif value.is_a?(Hash)
|
296
|
-
{}.tap do |hash|
|
297
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
298
|
-
end
|
299
|
-
elsif value.respond_to? :to_hash
|
300
|
-
value.to_hash
|
301
|
-
else
|
302
|
-
value
|
303
|
-
end
|
304
|
-
end
|
305
|
-
|
306
|
-
end
|
307
|
-
end
|
@@ -1,238 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Subskribe API
|
3
|
-
|
4
|
-
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
-
|
6
|
-
OpenAPI spec version: 1.0.0
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.41
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module SubskribeDevClient
|
16
|
-
class AvalaraIntegration
|
17
|
-
attr_accessor :account_id
|
18
|
-
|
19
|
-
attr_accessor :company_code
|
20
|
-
|
21
|
-
attr_accessor :created_on
|
22
|
-
|
23
|
-
attr_accessor :updated_on
|
24
|
-
|
25
|
-
attr_accessor :sandbox_environment
|
26
|
-
|
27
|
-
attr_accessor :integration_id
|
28
|
-
|
29
|
-
attr_accessor :should_commit_documents
|
30
|
-
|
31
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
-
def self.attribute_map
|
33
|
-
{
|
34
|
-
:'account_id' => :'accountId',
|
35
|
-
:'company_code' => :'companyCode',
|
36
|
-
:'created_on' => :'createdOn',
|
37
|
-
:'updated_on' => :'updatedOn',
|
38
|
-
:'sandbox_environment' => :'sandboxEnvironment',
|
39
|
-
:'integration_id' => :'integrationId',
|
40
|
-
:'should_commit_documents' => :'shouldCommitDocuments'
|
41
|
-
}
|
42
|
-
end
|
43
|
-
|
44
|
-
# Attribute type mapping.
|
45
|
-
def self.swagger_types
|
46
|
-
{
|
47
|
-
:'account_id' => :'String',
|
48
|
-
:'company_code' => :'String',
|
49
|
-
:'created_on' => :'Integer',
|
50
|
-
:'updated_on' => :'Integer',
|
51
|
-
:'sandbox_environment' => :'BOOLEAN',
|
52
|
-
:'integration_id' => :'String',
|
53
|
-
:'should_commit_documents' => :'BOOLEAN'
|
54
|
-
}
|
55
|
-
end
|
56
|
-
|
57
|
-
# Initializes the object
|
58
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
59
|
-
def initialize(attributes = {})
|
60
|
-
return unless attributes.is_a?(Hash)
|
61
|
-
|
62
|
-
# convert string to symbol for hash key
|
63
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
64
|
-
|
65
|
-
if attributes.has_key?(:'accountId')
|
66
|
-
self.account_id = attributes[:'accountId']
|
67
|
-
end
|
68
|
-
|
69
|
-
if attributes.has_key?(:'companyCode')
|
70
|
-
self.company_code = attributes[:'companyCode']
|
71
|
-
end
|
72
|
-
|
73
|
-
if attributes.has_key?(:'createdOn')
|
74
|
-
self.created_on = attributes[:'createdOn']
|
75
|
-
end
|
76
|
-
|
77
|
-
if attributes.has_key?(:'updatedOn')
|
78
|
-
self.updated_on = attributes[:'updatedOn']
|
79
|
-
end
|
80
|
-
|
81
|
-
if attributes.has_key?(:'sandboxEnvironment')
|
82
|
-
self.sandbox_environment = attributes[:'sandboxEnvironment']
|
83
|
-
end
|
84
|
-
|
85
|
-
if attributes.has_key?(:'integrationId')
|
86
|
-
self.integration_id = attributes[:'integrationId']
|
87
|
-
end
|
88
|
-
|
89
|
-
if attributes.has_key?(:'shouldCommitDocuments')
|
90
|
-
self.should_commit_documents = attributes[:'shouldCommitDocuments']
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
95
|
-
# @return Array for valid properties with the reasons
|
96
|
-
def list_invalid_properties
|
97
|
-
invalid_properties = Array.new
|
98
|
-
invalid_properties
|
99
|
-
end
|
100
|
-
|
101
|
-
# Check to see if the all the properties in the model are valid
|
102
|
-
# @return true if the model is valid
|
103
|
-
def valid?
|
104
|
-
true
|
105
|
-
end
|
106
|
-
|
107
|
-
# Checks equality by comparing each attribute.
|
108
|
-
# @param [Object] Object to be compared
|
109
|
-
def ==(o)
|
110
|
-
return true if self.equal?(o)
|
111
|
-
self.class == o.class &&
|
112
|
-
account_id == o.account_id &&
|
113
|
-
company_code == o.company_code &&
|
114
|
-
created_on == o.created_on &&
|
115
|
-
updated_on == o.updated_on &&
|
116
|
-
sandbox_environment == o.sandbox_environment &&
|
117
|
-
integration_id == o.integration_id &&
|
118
|
-
should_commit_documents == o.should_commit_documents
|
119
|
-
end
|
120
|
-
|
121
|
-
# @see the `==` method
|
122
|
-
# @param [Object] Object to be compared
|
123
|
-
def eql?(o)
|
124
|
-
self == o
|
125
|
-
end
|
126
|
-
|
127
|
-
# Calculates hash code according to all attributes.
|
128
|
-
# @return [Fixnum] Hash code
|
129
|
-
def hash
|
130
|
-
[account_id, company_code, created_on, updated_on, sandbox_environment, integration_id, should_commit_documents].hash
|
131
|
-
end
|
132
|
-
|
133
|
-
# Builds the object from hash
|
134
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
135
|
-
# @return [Object] Returns the model itself
|
136
|
-
def build_from_hash(attributes)
|
137
|
-
return nil unless attributes.is_a?(Hash)
|
138
|
-
self.class.swagger_types.each_pair do |key, type|
|
139
|
-
if type =~ /\AArray<(.*)>/i
|
140
|
-
# check to ensure the input is an array given that the attribute
|
141
|
-
# is documented as an array but the input is not
|
142
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
143
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
144
|
-
end
|
145
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
146
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
147
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
148
|
-
end
|
149
|
-
|
150
|
-
self
|
151
|
-
end
|
152
|
-
|
153
|
-
# Deserializes the data based on type
|
154
|
-
# @param string type Data type
|
155
|
-
# @param string value Value to be deserialized
|
156
|
-
# @return [Object] Deserialized data
|
157
|
-
def _deserialize(type, value)
|
158
|
-
case type.to_sym
|
159
|
-
when :DateTime
|
160
|
-
DateTime.parse(value)
|
161
|
-
when :Date
|
162
|
-
Date.parse(value)
|
163
|
-
when :String
|
164
|
-
value.to_s
|
165
|
-
when :Integer
|
166
|
-
value.to_i
|
167
|
-
when :Float
|
168
|
-
value.to_f
|
169
|
-
when :BOOLEAN
|
170
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
171
|
-
true
|
172
|
-
else
|
173
|
-
false
|
174
|
-
end
|
175
|
-
when :Object
|
176
|
-
# generic object (usually a Hash), return directly
|
177
|
-
value
|
178
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
179
|
-
inner_type = Regexp.last_match[:inner_type]
|
180
|
-
value.map { |v| _deserialize(inner_type, v) }
|
181
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
182
|
-
k_type = Regexp.last_match[:k_type]
|
183
|
-
v_type = Regexp.last_match[:v_type]
|
184
|
-
{}.tap do |hash|
|
185
|
-
value.each do |k, v|
|
186
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
187
|
-
end
|
188
|
-
end
|
189
|
-
else # model
|
190
|
-
temp_model = SubskribeDevClient.const_get(type).new
|
191
|
-
temp_model.build_from_hash(value)
|
192
|
-
end
|
193
|
-
end
|
194
|
-
|
195
|
-
# Returns the string representation of the object
|
196
|
-
# @return [String] String presentation of the object
|
197
|
-
def to_s
|
198
|
-
to_hash.to_s
|
199
|
-
end
|
200
|
-
|
201
|
-
# to_body is an alias to to_hash (backward compatibility)
|
202
|
-
# @return [Hash] Returns the object in the form of hash
|
203
|
-
def to_body
|
204
|
-
to_hash
|
205
|
-
end
|
206
|
-
|
207
|
-
# Returns the object in the form of hash
|
208
|
-
# @return [Hash] Returns the object in the form of hash
|
209
|
-
def to_hash
|
210
|
-
hash = {}
|
211
|
-
self.class.attribute_map.each_pair do |attr, param|
|
212
|
-
value = self.send(attr)
|
213
|
-
next if value.nil?
|
214
|
-
hash[param] = _to_hash(value)
|
215
|
-
end
|
216
|
-
hash
|
217
|
-
end
|
218
|
-
|
219
|
-
# Outputs non-array value in the form of hash
|
220
|
-
# For object, use to_hash. Otherwise, just return the value
|
221
|
-
# @param [Object] value Any valid value
|
222
|
-
# @return [Hash] Returns the value in the form of hash
|
223
|
-
def _to_hash(value)
|
224
|
-
if value.is_a?(Array)
|
225
|
-
value.compact.map { |v| _to_hash(v) }
|
226
|
-
elsif value.is_a?(Hash)
|
227
|
-
{}.tap do |hash|
|
228
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
229
|
-
end
|
230
|
-
elsif value.respond_to? :to_hash
|
231
|
-
value.to_hash
|
232
|
-
else
|
233
|
-
value
|
234
|
-
end
|
235
|
-
end
|
236
|
-
|
237
|
-
end
|
238
|
-
end
|