subskribe_sandbox 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -6
- data/docs/AccountsApi.md +2 -2
- data/docs/AutomatedInvoiceRule.md +5 -5
- data/docs/BillingApi.md +23 -23
- data/docs/BulkPaymentUploadData.md +7 -7
- data/docs/ChargeJson.md +2 -2
- data/docs/PaginatedAccountsResponse.md +10 -0
- data/docs/TaxJarIntegration.md +4 -4
- data/lib/subskribe_dev/api/accounts_api.rb +3 -3
- data/lib/subskribe_dev/api/entities_api.rb +158 -0
- data/lib/subskribe_dev/api/erp_api.rb +20 -20
- data/lib/subskribe_dev/api/product_catalog_api.rb +58 -0
- data/lib/subskribe_dev/api/revenue_recognition_api.rb +22 -22
- data/lib/subskribe_dev/models/automated_invoice_rule.rb +22 -22
- data/lib/subskribe_dev/models/bulk_invoice_run_item.rb +22 -22
- data/lib/subskribe_dev/models/bulk_payment_upload_data.rb +31 -31
- data/lib/subskribe_dev/models/bulk_payment_upload_result.rb +13 -13
- data/lib/subskribe_dev/models/charge_json.rb +19 -19
- data/lib/subskribe_dev/models/order_line_item_json.rb +10 -1
- data/lib/subskribe_dev/models/order_line_item_request_json.rb +10 -1
- data/lib/subskribe_dev/models/paginated_accounts_response.rb +204 -0
- data/lib/subskribe_dev/models/plan_metadata_json.rb +187 -0
- data/lib/subskribe_dev/models/tax_jar_integration.rb +10 -10
- data/lib/subskribe_dev/version.rb +1 -1
- data/lib/subskribe_dev.rb +2 -1
- data/lib/subskribe_dev2/api/accounting_api.rb +193 -0
- data/lib/subskribe_dev2/api/accounts_api.rb +858 -0
- data/lib/subskribe_dev2/api/approvals_api.rb +965 -0
- data/lib/subskribe_dev2/api/attachments_api.rb +299 -0
- data/lib/subskribe_dev2/api/authentication_api.rb +335 -0
- data/lib/subskribe_dev2/api/billing_api.rb +2098 -0
- data/lib/subskribe_dev2/api/credit_memo_api.rb +636 -0
- data/lib/subskribe_dev2/api/custom_field_api.rb +434 -0
- data/lib/subskribe_dev2/api/customization_api.rb +269 -0
- data/lib/subskribe_dev2/api/default_api.rb +223 -0
- data/lib/subskribe_dev2/api/discounts_api.rb +340 -0
- data/lib/subskribe_dev2/api/entities_api.rb +532 -0
- data/lib/subskribe_dev2/api/erp_api.rb +278 -0
- data/lib/subskribe_dev2/api/import_api.rb +568 -0
- data/lib/subskribe_dev2/api/integrations_api.rb +1678 -0
- data/lib/subskribe_dev2/api/metrics_reporting_api.rb +223 -0
- data/lib/subskribe_dev2/api/notifications_api.rb +245 -0
- data/lib/subskribe_dev2/api/opportunity_api.rb +177 -0
- data/lib/subskribe_dev2/api/orders_api.rb +1381 -0
- data/lib/subskribe_dev2/api/payments_api.rb +431 -0
- data/lib/subskribe_dev2/api/product_catalog_api.rb +1886 -0
- data/lib/subskribe_dev2/api/rate_card_api.rb +68 -0
- data/lib/subskribe_dev2/api/refunds_api.rb +189 -0
- data/lib/subskribe_dev2/api/reports_api.rb +227 -0
- data/lib/subskribe_dev2/api/revenue_recognition_api.rb +484 -0
- data/lib/subskribe_dev2/api/sales_room_api.rb +74 -0
- data/lib/subskribe_dev2/api/settings_api.rb +1321 -0
- data/lib/subskribe_dev2/api/subscriptions_api.rb +576 -0
- data/lib/subskribe_dev2/api/usage_api.rb +604 -0
- data/lib/subskribe_dev2/api/users_api.rb +728 -0
- data/lib/subskribe_dev2/api_client.rb +391 -0
- data/lib/subskribe_dev2/api_error.rb +38 -0
- data/lib/subskribe_dev2/configuration.rb +209 -0
- data/lib/subskribe_dev2/models/account_address.rb +265 -0
- data/lib/subskribe_dev2/models/account_address_json.rb +229 -0
- data/lib/subskribe_dev2/models/account_contact.rb +530 -0
- data/lib/subskribe_dev2/models/account_contact_json.rb +274 -0
- data/lib/subskribe_dev2/models/account_json.rb +395 -0
- data/lib/subskribe_dev2/models/account_payment_method_json.rb +268 -0
- data/lib/subskribe_dev2/models/account_receivable_contact_json.rb +225 -0
- data/lib/subskribe_dev2/models/accounting_event.rb +319 -0
- data/lib/subskribe_dev2/models/accounting_event_paginated_response.rb +204 -0
- data/lib/subskribe_dev2/models/accounting_period.rb +356 -0
- data/lib/subskribe_dev2/models/accounting_period_calculation.rb +229 -0
- data/lib/subskribe_dev2/models/add_and_apply_payment_application_json.rb +344 -0
- data/lib/subskribe_dev2/models/anrok_integration_input.rb +184 -0
- data/lib/subskribe_dev2/models/approval_matrix_import_data_json.rb +229 -0
- data/lib/subskribe_dev2/models/approval_matrix_import_preview.rb +226 -0
- data/lib/subskribe_dev2/models/approval_role_json.rb +220 -0
- data/lib/subskribe_dev2/models/approval_role_segment_change.rb +211 -0
- data/lib/subskribe_dev2/models/approval_segment_json.rb +220 -0
- data/lib/subskribe_dev2/models/attachment.rb +326 -0
- data/lib/subskribe_dev2/models/attribute_reference.rb +193 -0
- data/lib/subskribe_dev2/models/auth_saml_integration_json.rb +204 -0
- data/lib/subskribe_dev2/models/automated_invoice_rule.rb +328 -0
- data/lib/subskribe_dev2/models/automated_invoice_rule_request_json.rb +307 -0
- data/lib/subskribe_dev2/models/avalara_integration.rb +238 -0
- data/lib/subskribe_dev2/models/avalara_integration_input.rb +268 -0
- data/lib/subskribe_dev2/models/billing_event_entry.rb +211 -0
- data/lib/subskribe_dev2/models/billing_event_input.rb +216 -0
- data/lib/subskribe_dev2/models/bulk_invoice_run.rb +350 -0
- data/lib/subskribe_dev2/models/bulk_invoice_run_exclusions.rb +197 -0
- data/lib/subskribe_dev2/models/bulk_invoice_run_input.rb +263 -0
- data/lib/subskribe_dev2/models/bulk_invoice_run_item.rb +364 -0
- data/lib/subskribe_dev2/models/bulk_invoice_run_selector.rb +184 -0
- data/lib/subskribe_dev2/models/bulk_payment_upload_data.rb +274 -0
- data/lib/subskribe_dev2/models/bulk_payment_upload_result.rb +204 -0
- data/lib/subskribe_dev2/models/byte_buffer.rb +247 -0
- data/lib/subskribe_dev2/models/catalog_relationship.rb +364 -0
- data/lib/subskribe_dev2/models/charge_json.rb +631 -0
- data/lib/subskribe_dev2/models/charge_partial_json.rb +310 -0
- data/lib/subskribe_dev2/models/company_contact_json.rb +225 -0
- data/lib/subskribe_dev2/models/credit_memo_application_json.rb +239 -0
- data/lib/subskribe_dev2/models/credit_memo_balance_json.rb +211 -0
- data/lib/subskribe_dev2/models/credit_memo_json.rb +363 -0
- data/lib/subskribe_dev2/models/credit_memo_line_item_json.rb +252 -0
- data/lib/subskribe_dev2/models/credit_memo_line_item_request_json.rb +211 -0
- data/lib/subskribe_dev2/models/credit_memo_pagination_response_json.rb +204 -0
- data/lib/subskribe_dev2/models/crm_account_import_response.rb +193 -0
- data/lib/subskribe_dev2/models/custom_field_default.rb +195 -0
- data/lib/subskribe_dev2/models/custom_field_definition_create_input.rb +317 -0
- data/lib/subskribe_dev2/models/custom_field_definition_json.rb +313 -0
- data/lib/subskribe_dev2/models/custom_field_definition_update_input.rb +256 -0
- data/lib/subskribe_dev2/models/custom_field_entry.rb +325 -0
- data/lib/subskribe_dev2/models/custom_field_update_input.rb +195 -0
- data/lib/subskribe_dev2/models/custom_field_value.rb +316 -0
- data/lib/subskribe_dev2/models/data_import.rb +355 -0
- data/lib/subskribe_dev2/models/discount_detail_json.rb +263 -0
- data/lib/subskribe_dev2/models/discount_json.rb +254 -0
- data/lib/subskribe_dev2/models/docu_sign_integration_request_json.rb +236 -0
- data/lib/subskribe_dev2/models/docu_sign_integration_response_json.rb +245 -0
- data/lib/subskribe_dev2/models/document_custom_content.rb +211 -0
- data/lib/subskribe_dev2/models/document_section.rb +265 -0
- data/lib/subskribe_dev2/models/document_template_json.rb +300 -0
- data/lib/subskribe_dev2/models/dunning_setting_json.rb +200 -0
- data/lib/subskribe_dev2/models/email_notifiers_list.rb +208 -0
- data/lib/subskribe_dev2/models/entity.rb +356 -0
- data/lib/subskribe_dev2/models/entity_json.rb +347 -0
- data/lib/subskribe_dev2/models/entity_ref.rb +202 -0
- data/lib/subskribe_dev2/models/entry.rb +202 -0
- data/lib/subskribe_dev2/models/external_arr_schedule_json.rb +319 -0
- data/lib/subskribe_dev2/models/flatfile_workbook_response.rb +184 -0
- data/lib/subskribe_dev2/models/flatfile_workbook_response_data.rb +193 -0
- data/lib/subskribe_dev2/models/input_stream.rb +175 -0
- data/lib/subskribe_dev2/models/integration.rb +311 -0
- data/lib/subskribe_dev2/models/invoice_balance_json.rb +211 -0
- data/lib/subskribe_dev2/models/invoice_item_json.rb +355 -0
- data/lib/subskribe_dev2/models/invoice_item_preview_json.rb +229 -0
- data/lib/subskribe_dev2/models/invoice_json.rb +439 -0
- data/lib/subskribe_dev2/models/invoice_json_pagination_response.rb +204 -0
- data/lib/subskribe_dev2/models/invoice_number_prefix.rb +184 -0
- data/lib/subskribe_dev2/models/invoice_preview_json.rb +222 -0
- data/lib/subskribe_dev2/models/ledger_account.rb +316 -0
- data/lib/subskribe_dev2/models/ledger_account_mapping.rb +222 -0
- data/lib/subskribe_dev2/models/metrics_json.rb +267 -0
- data/lib/subskribe_dev2/models/notification_target_and_subscriptions.rb +265 -0
- data/lib/subskribe_dev2/models/number_config.rb +254 -0
- data/lib/subskribe_dev2/models/opportunity.rb +326 -0
- data/lib/subskribe_dev2/models/opportunity_json.rb +326 -0
- data/lib/subskribe_dev2/models/opportunity_pagination_response.rb +204 -0
- data/lib/subskribe_dev2/models/opportunity_rest_json.rb +317 -0
- data/lib/subskribe_dev2/models/order_json.rb +754 -0
- data/lib/subskribe_dev2/models/order_json_pagination_response.rb +204 -0
- data/lib/subskribe_dev2/models/order_line_item_json.rb +474 -0
- data/lib/subskribe_dev2/models/order_line_item_request_json.rb +384 -0
- data/lib/subskribe_dev2/models/order_request_json.rb +616 -0
- data/lib/subskribe_dev2/models/order_terms.rb +265 -0
- data/lib/subskribe_dev2/models/paginated_accounts_response.rb +204 -0
- data/lib/subskribe_dev2/models/paginated_response.rb +204 -0
- data/lib/subskribe_dev2/models/payment_balance_json.rb +211 -0
- data/lib/subskribe_dev2/models/payment_configuration.rb +208 -0
- data/lib/subskribe_dev2/models/payment_json.rb +300 -0
- data/lib/subskribe_dev2/models/payment_json_pagination_response.rb +204 -0
- data/lib/subskribe_dev2/models/payment_term_settings_json.rb +219 -0
- data/lib/subskribe_dev2/models/plan_json.rb +339 -0
- data/lib/subskribe_dev2/models/plan_json_pagination_response.rb +204 -0
- data/lib/subskribe_dev2/models/plan_metadata_json.rb +187 -0
- data/lib/subskribe_dev2/models/predefined_report_def_chart_json.rb +265 -0
- data/lib/subskribe_dev2/models/predefined_report_def_json.rb +222 -0
- data/lib/subskribe_dev2/models/predefined_report_defs_json.rb +186 -0
- data/lib/subskribe_dev2/models/predefined_report_json.rb +213 -0
- data/lib/subskribe_dev2/models/predefined_report_param.rb +296 -0
- data/lib/subskribe_dev2/models/predefined_report_param_object.rb +296 -0
- data/lib/subskribe_dev2/models/prepaid_stats.rb +310 -0
- data/lib/subskribe_dev2/models/price_tier_json.rb +212 -0
- data/lib/subskribe_dev2/models/product_category.rb +264 -0
- data/lib/subskribe_dev2/models/product_category_pagination_response.rb +204 -0
- data/lib/subskribe_dev2/models/product_input_json.rb +249 -0
- data/lib/subskribe_dev2/models/product_json.rb +276 -0
- data/lib/subskribe_dev2/models/product_json_pagination_response.rb +204 -0
- data/lib/subskribe_dev2/models/purchase_order.rb +226 -0
- data/lib/subskribe_dev2/models/raw_usage.rb +247 -0
- data/lib/subskribe_dev2/models/raw_usages_data.rb +192 -0
- data/lib/subskribe_dev2/models/recognition_event_completion.rb +322 -0
- data/lib/subskribe_dev2/models/recognition_rule.rb +376 -0
- data/lib/subskribe_dev2/models/recurrence_json.rb +256 -0
- data/lib/subskribe_dev2/models/refund.rb +301 -0
- data/lib/subskribe_dev2/models/refund_detail.rb +322 -0
- data/lib/subskribe_dev2/models/refund_request_json.rb +272 -0
- data/lib/subskribe_dev2/models/report_duration.rb +193 -0
- data/lib/subskribe_dev2/models/report_job_response.rb +245 -0
- data/lib/subskribe_dev2/models/salesforce_account.rb +229 -0
- data/lib/subskribe_dev2/models/salesforce_account_billing_address.rb +220 -0
- data/lib/subskribe_dev2/models/salesforce_client_integration_request_json.rb +211 -0
- data/lib/subskribe_dev2/models/settlement_application.rb +329 -0
- data/lib/subskribe_dev2/models/standalone_credit_memo_request.rb +353 -0
- data/lib/subskribe_dev2/models/subscription_charge_alias.rb +283 -0
- data/lib/subskribe_dev2/models/subscription_charge_json.rb +362 -0
- data/lib/subskribe_dev2/models/subscription_json.rb +583 -0
- data/lib/subskribe_dev2/models/subscription_update_json.rb +280 -0
- data/lib/subskribe_dev2/models/tax_jar_integration.rb +238 -0
- data/lib/subskribe_dev2/models/tax_jar_integration_input.rb +193 -0
- data/lib/subskribe_dev2/models/tax_rate_json.rb +286 -0
- data/lib/subskribe_dev2/models/tax_rate_pagination_response_json.rb +204 -0
- data/lib/subskribe_dev2/models/tenant_credit_memo_configuration_json.rb +211 -0
- data/lib/subskribe_dev2/models/tenant_discount_json.rb +193 -0
- data/lib/subskribe_dev2/models/tenant_discount_line_item_json.rb +202 -0
- data/lib/subskribe_dev2/models/tenant_invoice_config.rb +254 -0
- data/lib/subskribe_dev2/models/tenant_json.rb +283 -0
- data/lib/subskribe_dev2/models/tenant_setting_json.rb +307 -0
- data/lib/subskribe_dev2/models/time_series_amount_json.rb +193 -0
- data/lib/subskribe_dev2/models/time_zone.rb +211 -0
- data/lib/subskribe_dev2/models/unit_of_measure_json.rb +250 -0
- data/lib/subskribe_dev2/models/unit_of_measure_pagination_response_json.rb +204 -0
- data/lib/subskribe_dev2/models/update_invoice_request.rb +282 -0
- data/lib/subskribe_dev2/models/usage_aggregate_output.rb +258 -0
- data/lib/subskribe_dev2/models/usage_batch_insert_result.rb +213 -0
- data/lib/subskribe_dev2/models/user_group_json.rb +224 -0
- data/lib/subskribe_dev2/models/user_group_request_json.rb +224 -0
- data/lib/subskribe_dev2/models/user_input.rb +304 -0
- data/lib/subskribe_dev2/models/user_json.rb +376 -0
- data/lib/subskribe_dev2/models/user_pagination_response_json.rb +204 -0
- data/lib/subskribe_dev2/models/void_invoice_request.rb +203 -0
- data/lib/subskribe_dev2/models/void_payment_json.rb +235 -0
- data/lib/subskribe_dev2/version.rb +15 -0
- data/lib/subskribe_dev2.rb +230 -0
- data/lib/subskribe_sandbox/api/accounts_api.rb +3 -3
- data/lib/subskribe_sandbox/api/billing_api.rb +35 -35
- data/lib/subskribe_sandbox/models/automated_invoice_rule.rb +49 -49
- 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_sandbox/models/paginated_accounts_response.rb +204 -0
- data/lib/subskribe_sandbox/models/tax_jar_integration.rb +31 -31
- data/lib/subskribe_sandbox/version.rb +1 -1
- data/lib/subskribe_sandbox.rb +1 -0
- data/lib/swagger_client/api/accounting_api.rb +193 -0
- data/lib/swagger_client/api/accounts_api.rb +858 -0
- data/lib/swagger_client/api/approvals_api.rb +965 -0
- data/lib/swagger_client/api/attachments_api.rb +299 -0
- data/lib/swagger_client/api/authentication_api.rb +335 -0
- data/lib/swagger_client/api/billing_api.rb +2098 -0
- data/lib/swagger_client/api/credit_memo_api.rb +636 -0
- data/lib/swagger_client/api/custom_field_api.rb +434 -0
- data/lib/swagger_client/api/customization_api.rb +269 -0
- data/lib/swagger_client/api/default_api.rb +223 -0
- data/lib/swagger_client/api/discounts_api.rb +340 -0
- data/lib/swagger_client/api/entities_api.rb +532 -0
- data/lib/swagger_client/api/erp_api.rb +278 -0
- data/lib/swagger_client/api/import_api.rb +568 -0
- data/lib/swagger_client/api/integrations_api.rb +1678 -0
- data/lib/swagger_client/api/metrics_reporting_api.rb +223 -0
- data/lib/swagger_client/api/notifications_api.rb +245 -0
- data/lib/swagger_client/api/opportunity_api.rb +177 -0
- data/lib/swagger_client/api/orders_api.rb +1381 -0
- data/lib/swagger_client/api/payments_api.rb +431 -0
- data/lib/swagger_client/api/product_catalog_api.rb +1886 -0
- data/lib/swagger_client/api/rate_card_api.rb +68 -0
- data/lib/swagger_client/api/refunds_api.rb +189 -0
- data/lib/swagger_client/api/reports_api.rb +227 -0
- data/lib/swagger_client/api/revenue_recognition_api.rb +484 -0
- data/lib/swagger_client/api/sales_room_api.rb +74 -0
- data/lib/swagger_client/api/settings_api.rb +1321 -0
- data/lib/swagger_client/api/subscriptions_api.rb +576 -0
- data/lib/swagger_client/api/usage_api.rb +604 -0
- data/lib/swagger_client/api/users_api.rb +728 -0
- data/lib/swagger_client/api_client.rb +391 -0
- data/lib/swagger_client/api_error.rb +38 -0
- data/lib/swagger_client/configuration.rb +209 -0
- data/lib/swagger_client/models/account_address.rb +265 -0
- data/lib/swagger_client/models/account_address_json.rb +229 -0
- data/lib/swagger_client/models/account_contact.rb +530 -0
- data/lib/swagger_client/models/account_contact_json.rb +274 -0
- data/lib/swagger_client/models/account_json.rb +395 -0
- data/lib/swagger_client/models/account_payment_method_json.rb +268 -0
- data/lib/swagger_client/models/account_receivable_contact_json.rb +225 -0
- data/lib/swagger_client/models/accounting_event.rb +319 -0
- data/lib/swagger_client/models/accounting_event_paginated_response.rb +204 -0
- data/lib/swagger_client/models/accounting_period.rb +356 -0
- data/lib/swagger_client/models/accounting_period_calculation.rb +229 -0
- data/lib/swagger_client/models/add_and_apply_payment_application_json.rb +344 -0
- data/lib/swagger_client/models/anrok_integration_input.rb +184 -0
- data/lib/swagger_client/models/approval_matrix_import_data_json.rb +229 -0
- data/lib/swagger_client/models/approval_matrix_import_preview.rb +226 -0
- data/lib/swagger_client/models/approval_role_json.rb +220 -0
- data/lib/swagger_client/models/approval_role_segment_change.rb +211 -0
- data/lib/swagger_client/models/approval_segment_json.rb +220 -0
- data/lib/swagger_client/models/attachment.rb +326 -0
- data/lib/swagger_client/models/attribute_reference.rb +193 -0
- data/lib/swagger_client/models/auth_saml_integration_json.rb +204 -0
- data/lib/swagger_client/models/automated_invoice_rule.rb +328 -0
- data/lib/swagger_client/models/automated_invoice_rule_request_json.rb +307 -0
- data/lib/swagger_client/models/avalara_integration.rb +238 -0
- data/lib/swagger_client/models/avalara_integration_input.rb +268 -0
- data/lib/swagger_client/models/billing_event_entry.rb +211 -0
- data/lib/swagger_client/models/billing_event_input.rb +216 -0
- data/lib/swagger_client/models/bulk_invoice_run.rb +350 -0
- data/lib/swagger_client/models/bulk_invoice_run_exclusions.rb +197 -0
- data/lib/swagger_client/models/bulk_invoice_run_input.rb +263 -0
- data/lib/swagger_client/models/bulk_invoice_run_item.rb +364 -0
- data/lib/swagger_client/models/bulk_invoice_run_selector.rb +184 -0
- data/lib/swagger_client/models/bulk_payment_upload_data.rb +274 -0
- data/lib/swagger_client/models/bulk_payment_upload_result.rb +204 -0
- data/lib/swagger_client/models/byte_buffer.rb +247 -0
- data/lib/swagger_client/models/catalog_relationship.rb +364 -0
- data/lib/swagger_client/models/charge_json.rb +631 -0
- data/lib/swagger_client/models/charge_partial_json.rb +310 -0
- data/lib/swagger_client/models/company_contact_json.rb +225 -0
- data/lib/swagger_client/models/credit_memo_application_json.rb +239 -0
- data/lib/swagger_client/models/credit_memo_balance_json.rb +211 -0
- data/lib/swagger_client/models/credit_memo_json.rb +363 -0
- data/lib/swagger_client/models/credit_memo_line_item_json.rb +252 -0
- data/lib/swagger_client/models/credit_memo_line_item_request_json.rb +211 -0
- data/lib/swagger_client/models/credit_memo_pagination_response_json.rb +204 -0
- data/lib/swagger_client/models/crm_account_import_response.rb +193 -0
- data/lib/swagger_client/models/custom_field_default.rb +195 -0
- data/lib/swagger_client/models/custom_field_definition_create_input.rb +317 -0
- data/lib/swagger_client/models/custom_field_definition_json.rb +313 -0
- data/lib/swagger_client/models/custom_field_definition_update_input.rb +256 -0
- data/lib/swagger_client/models/custom_field_entry.rb +325 -0
- data/lib/swagger_client/models/custom_field_update_input.rb +195 -0
- data/lib/swagger_client/models/custom_field_value.rb +316 -0
- data/lib/swagger_client/models/data_import.rb +355 -0
- data/lib/swagger_client/models/discount_detail_json.rb +263 -0
- data/lib/swagger_client/models/discount_json.rb +254 -0
- data/lib/swagger_client/models/docu_sign_integration_request_json.rb +236 -0
- data/lib/swagger_client/models/docu_sign_integration_response_json.rb +245 -0
- data/lib/swagger_client/models/document_custom_content.rb +211 -0
- data/lib/swagger_client/models/document_section.rb +265 -0
- data/lib/swagger_client/models/document_template_json.rb +300 -0
- data/lib/swagger_client/models/dunning_setting_json.rb +200 -0
- data/lib/swagger_client/models/email_notifiers_list.rb +208 -0
- data/lib/swagger_client/models/entity.rb +356 -0
- data/lib/swagger_client/models/entity_json.rb +347 -0
- data/lib/swagger_client/models/entity_ref.rb +202 -0
- data/lib/swagger_client/models/entry.rb +202 -0
- data/lib/swagger_client/models/external_arr_schedule_json.rb +319 -0
- data/lib/swagger_client/models/flatfile_workbook_response.rb +184 -0
- data/lib/swagger_client/models/flatfile_workbook_response_data.rb +193 -0
- data/lib/swagger_client/models/input_stream.rb +175 -0
- data/lib/swagger_client/models/integration.rb +311 -0
- data/lib/swagger_client/models/invoice_balance_json.rb +211 -0
- data/lib/swagger_client/models/invoice_item_json.rb +355 -0
- data/lib/swagger_client/models/invoice_item_preview_json.rb +229 -0
- data/lib/swagger_client/models/invoice_json.rb +439 -0
- data/lib/swagger_client/models/invoice_json_pagination_response.rb +204 -0
- data/lib/swagger_client/models/invoice_number_prefix.rb +184 -0
- data/lib/swagger_client/models/invoice_preview_json.rb +222 -0
- data/lib/swagger_client/models/ledger_account.rb +316 -0
- data/lib/swagger_client/models/ledger_account_mapping.rb +222 -0
- data/lib/swagger_client/models/metrics_json.rb +267 -0
- data/lib/swagger_client/models/notification_target_and_subscriptions.rb +265 -0
- data/lib/swagger_client/models/number_config.rb +254 -0
- data/lib/swagger_client/models/opportunity.rb +326 -0
- data/lib/swagger_client/models/opportunity_json.rb +326 -0
- data/lib/swagger_client/models/opportunity_pagination_response.rb +204 -0
- data/lib/swagger_client/models/opportunity_rest_json.rb +317 -0
- data/lib/swagger_client/models/order_json.rb +754 -0
- data/lib/swagger_client/models/order_json_pagination_response.rb +204 -0
- data/lib/swagger_client/models/order_line_item_json.rb +474 -0
- data/lib/swagger_client/models/order_line_item_request_json.rb +384 -0
- data/lib/swagger_client/models/order_request_json.rb +616 -0
- data/lib/swagger_client/models/order_terms.rb +265 -0
- data/lib/swagger_client/models/paginated_accounts_response.rb +204 -0
- data/lib/swagger_client/models/paginated_response.rb +204 -0
- data/lib/swagger_client/models/payment_balance_json.rb +211 -0
- data/lib/swagger_client/models/payment_configuration.rb +208 -0
- data/lib/swagger_client/models/payment_json.rb +300 -0
- data/lib/swagger_client/models/payment_json_pagination_response.rb +204 -0
- data/lib/swagger_client/models/payment_term_settings_json.rb +219 -0
- data/lib/swagger_client/models/plan_json.rb +339 -0
- data/lib/swagger_client/models/plan_json_pagination_response.rb +204 -0
- data/lib/swagger_client/models/plan_metadata_json.rb +187 -0
- data/lib/swagger_client/models/predefined_report_def_chart_json.rb +265 -0
- data/lib/swagger_client/models/predefined_report_def_json.rb +222 -0
- data/lib/swagger_client/models/predefined_report_defs_json.rb +186 -0
- data/lib/swagger_client/models/predefined_report_json.rb +213 -0
- data/lib/swagger_client/models/predefined_report_param.rb +296 -0
- data/lib/swagger_client/models/predefined_report_param_object.rb +296 -0
- data/lib/swagger_client/models/prepaid_stats.rb +310 -0
- data/lib/swagger_client/models/price_tier_json.rb +212 -0
- data/lib/swagger_client/models/product_category.rb +264 -0
- data/lib/swagger_client/models/product_category_pagination_response.rb +204 -0
- data/lib/swagger_client/models/product_input_json.rb +249 -0
- data/lib/swagger_client/models/product_json.rb +276 -0
- data/lib/swagger_client/models/product_json_pagination_response.rb +204 -0
- data/lib/swagger_client/models/purchase_order.rb +226 -0
- data/lib/swagger_client/models/raw_usage.rb +247 -0
- data/lib/swagger_client/models/raw_usages_data.rb +192 -0
- data/lib/swagger_client/models/recognition_event_completion.rb +322 -0
- data/lib/swagger_client/models/recognition_rule.rb +376 -0
- data/lib/swagger_client/models/recurrence_json.rb +256 -0
- data/lib/swagger_client/models/refund.rb +301 -0
- data/lib/swagger_client/models/refund_detail.rb +322 -0
- data/lib/swagger_client/models/refund_request_json.rb +272 -0
- data/lib/swagger_client/models/report_duration.rb +193 -0
- data/lib/swagger_client/models/report_job_response.rb +245 -0
- data/lib/swagger_client/models/salesforce_account.rb +229 -0
- data/lib/swagger_client/models/salesforce_account_billing_address.rb +220 -0
- data/lib/swagger_client/models/salesforce_client_integration_request_json.rb +211 -0
- data/lib/swagger_client/models/settlement_application.rb +329 -0
- data/lib/swagger_client/models/standalone_credit_memo_request.rb +353 -0
- data/lib/swagger_client/models/subscription_charge_alias.rb +283 -0
- data/lib/swagger_client/models/subscription_charge_json.rb +362 -0
- data/lib/swagger_client/models/subscription_json.rb +583 -0
- data/lib/swagger_client/models/subscription_update_json.rb +280 -0
- data/lib/swagger_client/models/tax_jar_integration.rb +238 -0
- data/lib/swagger_client/models/tax_jar_integration_input.rb +193 -0
- data/lib/swagger_client/models/tax_rate_json.rb +286 -0
- data/lib/swagger_client/models/tax_rate_pagination_response_json.rb +204 -0
- data/lib/swagger_client/models/tenant_credit_memo_configuration_json.rb +211 -0
- data/lib/swagger_client/models/tenant_discount_json.rb +193 -0
- data/lib/swagger_client/models/tenant_discount_line_item_json.rb +202 -0
- data/lib/swagger_client/models/tenant_invoice_config.rb +254 -0
- data/lib/swagger_client/models/tenant_json.rb +283 -0
- data/lib/swagger_client/models/tenant_setting_json.rb +307 -0
- data/lib/swagger_client/models/time_series_amount_json.rb +193 -0
- data/lib/swagger_client/models/time_zone.rb +211 -0
- data/lib/swagger_client/models/unit_of_measure_json.rb +250 -0
- data/lib/swagger_client/models/unit_of_measure_pagination_response_json.rb +204 -0
- data/lib/swagger_client/models/update_invoice_request.rb +282 -0
- data/lib/swagger_client/models/usage_aggregate_output.rb +258 -0
- data/lib/swagger_client/models/usage_batch_insert_result.rb +213 -0
- data/lib/swagger_client/models/user_group_json.rb +224 -0
- data/lib/swagger_client/models/user_group_request_json.rb +224 -0
- data/lib/swagger_client/models/user_input.rb +304 -0
- data/lib/swagger_client/models/user_json.rb +376 -0
- data/lib/swagger_client/models/user_pagination_response_json.rb +204 -0
- data/lib/swagger_client/models/void_invoice_request.rb +203 -0
- data/lib/swagger_client/models/void_payment_json.rb +235 -0
- data/lib/swagger_client/version.rb +15 -0
- data/lib/swagger_client.rb +230 -0
- data/spec/models/paginated_accounts_response_spec.rb +53 -0
- data/spec/models/plan_metadata_json_spec.rb +3 -3
- data/subskribe_dev-1.3.1.gem +0 -0
- data/subskribe_dev.gemspec +4 -4
- data/subskribe_dev2-1.3.2.gem +0 -0
- data/subskribe_dev2.gemspec +46 -0
- data/subskribe_sandbox.gemspec +3 -3
- data/swagger_client.gemspec +46 -0
- metadata +589 -187
@@ -0,0 +1,439 @@
|
|
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 InvoiceJson
|
17
|
+
attr_accessor :invoice_number
|
18
|
+
|
19
|
+
attr_accessor :posted_date
|
20
|
+
|
21
|
+
attr_accessor :invoice_date
|
22
|
+
|
23
|
+
attr_accessor :voided_date
|
24
|
+
|
25
|
+
attr_accessor :due_date
|
26
|
+
|
27
|
+
attr_accessor :currency
|
28
|
+
|
29
|
+
attr_accessor :payment_term
|
30
|
+
|
31
|
+
attr_accessor :total_discount
|
32
|
+
|
33
|
+
attr_accessor :sub_total
|
34
|
+
|
35
|
+
attr_accessor :tax_total
|
36
|
+
|
37
|
+
attr_accessor :tax_transaction_code
|
38
|
+
|
39
|
+
attr_accessor :total
|
40
|
+
|
41
|
+
attr_accessor :subscription_id
|
42
|
+
|
43
|
+
attr_accessor :account_id
|
44
|
+
|
45
|
+
attr_accessor :invoice_items
|
46
|
+
|
47
|
+
attr_accessor :billing_contact
|
48
|
+
|
49
|
+
attr_accessor :shipping_contact
|
50
|
+
|
51
|
+
attr_accessor :status
|
52
|
+
|
53
|
+
attr_accessor :purchase_order_number
|
54
|
+
|
55
|
+
attr_accessor :purchase_order_required
|
56
|
+
|
57
|
+
attr_accessor :note
|
58
|
+
|
59
|
+
attr_accessor :email_notifiers_list
|
60
|
+
|
61
|
+
attr_accessor :erp_id
|
62
|
+
|
63
|
+
attr_accessor :generation_method
|
64
|
+
|
65
|
+
class EnumAttributeValidator
|
66
|
+
attr_reader :datatype
|
67
|
+
attr_reader :allowable_values
|
68
|
+
|
69
|
+
def initialize(datatype, allowable_values)
|
70
|
+
@allowable_values = allowable_values.map do |value|
|
71
|
+
case datatype.to_s
|
72
|
+
when /Integer/i
|
73
|
+
value.to_i
|
74
|
+
when /Float/i
|
75
|
+
value.to_f
|
76
|
+
else
|
77
|
+
value
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
def valid?(value)
|
83
|
+
!value || allowable_values.include?(value)
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
88
|
+
def self.attribute_map
|
89
|
+
{
|
90
|
+
:'invoice_number' => :'invoiceNumber',
|
91
|
+
:'posted_date' => :'postedDate',
|
92
|
+
:'invoice_date' => :'invoiceDate',
|
93
|
+
:'voided_date' => :'voidedDate',
|
94
|
+
:'due_date' => :'dueDate',
|
95
|
+
:'currency' => :'currency',
|
96
|
+
:'payment_term' => :'paymentTerm',
|
97
|
+
:'total_discount' => :'totalDiscount',
|
98
|
+
:'sub_total' => :'subTotal',
|
99
|
+
:'tax_total' => :'taxTotal',
|
100
|
+
:'tax_transaction_code' => :'taxTransactionCode',
|
101
|
+
:'total' => :'total',
|
102
|
+
:'subscription_id' => :'subscriptionId',
|
103
|
+
:'account_id' => :'accountId',
|
104
|
+
:'invoice_items' => :'invoiceItems',
|
105
|
+
:'billing_contact' => :'billingContact',
|
106
|
+
:'shipping_contact' => :'shippingContact',
|
107
|
+
:'status' => :'status',
|
108
|
+
:'purchase_order_number' => :'purchaseOrderNumber',
|
109
|
+
:'purchase_order_required' => :'purchaseOrderRequired',
|
110
|
+
:'note' => :'note',
|
111
|
+
:'email_notifiers_list' => :'emailNotifiersList',
|
112
|
+
:'erp_id' => :'erpId',
|
113
|
+
:'generation_method' => :'generationMethod'
|
114
|
+
}
|
115
|
+
end
|
116
|
+
|
117
|
+
# Attribute type mapping.
|
118
|
+
def self.swagger_types
|
119
|
+
{
|
120
|
+
:'invoice_number' => :'String',
|
121
|
+
:'posted_date' => :'Integer',
|
122
|
+
:'invoice_date' => :'Integer',
|
123
|
+
:'voided_date' => :'Integer',
|
124
|
+
:'due_date' => :'Integer',
|
125
|
+
:'currency' => :'String',
|
126
|
+
:'payment_term' => :'String',
|
127
|
+
:'total_discount' => :'Float',
|
128
|
+
:'sub_total' => :'Float',
|
129
|
+
:'tax_total' => :'Float',
|
130
|
+
:'tax_transaction_code' => :'String',
|
131
|
+
:'total' => :'Float',
|
132
|
+
:'subscription_id' => :'String',
|
133
|
+
:'account_id' => :'String',
|
134
|
+
:'invoice_items' => :'Array<InvoiceItemJson>',
|
135
|
+
:'billing_contact' => :'AccountContactJson',
|
136
|
+
:'shipping_contact' => :'AccountContactJson',
|
137
|
+
:'status' => :'String',
|
138
|
+
:'purchase_order_number' => :'String',
|
139
|
+
:'purchase_order_required' => :'BOOLEAN',
|
140
|
+
:'note' => :'String',
|
141
|
+
:'email_notifiers_list' => :'EmailNotifiersList',
|
142
|
+
:'erp_id' => :'String',
|
143
|
+
:'generation_method' => :'String'
|
144
|
+
}
|
145
|
+
end
|
146
|
+
|
147
|
+
# Initializes the object
|
148
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
149
|
+
def initialize(attributes = {})
|
150
|
+
return unless attributes.is_a?(Hash)
|
151
|
+
|
152
|
+
# convert string to symbol for hash key
|
153
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
154
|
+
|
155
|
+
if attributes.has_key?(:'invoiceNumber')
|
156
|
+
self.invoice_number = attributes[:'invoiceNumber']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.has_key?(:'postedDate')
|
160
|
+
self.posted_date = attributes[:'postedDate']
|
161
|
+
end
|
162
|
+
|
163
|
+
if attributes.has_key?(:'invoiceDate')
|
164
|
+
self.invoice_date = attributes[:'invoiceDate']
|
165
|
+
end
|
166
|
+
|
167
|
+
if attributes.has_key?(:'voidedDate')
|
168
|
+
self.voided_date = attributes[:'voidedDate']
|
169
|
+
end
|
170
|
+
|
171
|
+
if attributes.has_key?(:'dueDate')
|
172
|
+
self.due_date = attributes[:'dueDate']
|
173
|
+
end
|
174
|
+
|
175
|
+
if attributes.has_key?(:'currency')
|
176
|
+
self.currency = attributes[:'currency']
|
177
|
+
end
|
178
|
+
|
179
|
+
if attributes.has_key?(:'paymentTerm')
|
180
|
+
self.payment_term = attributes[:'paymentTerm']
|
181
|
+
end
|
182
|
+
|
183
|
+
if attributes.has_key?(:'totalDiscount')
|
184
|
+
self.total_discount = attributes[:'totalDiscount']
|
185
|
+
end
|
186
|
+
|
187
|
+
if attributes.has_key?(:'subTotal')
|
188
|
+
self.sub_total = attributes[:'subTotal']
|
189
|
+
end
|
190
|
+
|
191
|
+
if attributes.has_key?(:'taxTotal')
|
192
|
+
self.tax_total = attributes[:'taxTotal']
|
193
|
+
end
|
194
|
+
|
195
|
+
if attributes.has_key?(:'taxTransactionCode')
|
196
|
+
self.tax_transaction_code = attributes[:'taxTransactionCode']
|
197
|
+
end
|
198
|
+
|
199
|
+
if attributes.has_key?(:'total')
|
200
|
+
self.total = attributes[:'total']
|
201
|
+
end
|
202
|
+
|
203
|
+
if attributes.has_key?(:'subscriptionId')
|
204
|
+
self.subscription_id = attributes[:'subscriptionId']
|
205
|
+
end
|
206
|
+
|
207
|
+
if attributes.has_key?(:'accountId')
|
208
|
+
self.account_id = attributes[:'accountId']
|
209
|
+
end
|
210
|
+
|
211
|
+
if attributes.has_key?(:'invoiceItems')
|
212
|
+
if (value = attributes[:'invoiceItems']).is_a?(Array)
|
213
|
+
self.invoice_items = value
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
if attributes.has_key?(:'billingContact')
|
218
|
+
self.billing_contact = attributes[:'billingContact']
|
219
|
+
end
|
220
|
+
|
221
|
+
if attributes.has_key?(:'shippingContact')
|
222
|
+
self.shipping_contact = attributes[:'shippingContact']
|
223
|
+
end
|
224
|
+
|
225
|
+
if attributes.has_key?(:'status')
|
226
|
+
self.status = attributes[:'status']
|
227
|
+
end
|
228
|
+
|
229
|
+
if attributes.has_key?(:'purchaseOrderNumber')
|
230
|
+
self.purchase_order_number = attributes[:'purchaseOrderNumber']
|
231
|
+
end
|
232
|
+
|
233
|
+
if attributes.has_key?(:'purchaseOrderRequired')
|
234
|
+
self.purchase_order_required = attributes[:'purchaseOrderRequired']
|
235
|
+
end
|
236
|
+
|
237
|
+
if attributes.has_key?(:'note')
|
238
|
+
self.note = attributes[:'note']
|
239
|
+
end
|
240
|
+
|
241
|
+
if attributes.has_key?(:'emailNotifiersList')
|
242
|
+
self.email_notifiers_list = attributes[:'emailNotifiersList']
|
243
|
+
end
|
244
|
+
|
245
|
+
if attributes.has_key?(:'erpId')
|
246
|
+
self.erp_id = attributes[:'erpId']
|
247
|
+
end
|
248
|
+
|
249
|
+
if attributes.has_key?(:'generationMethod')
|
250
|
+
self.generation_method = attributes[:'generationMethod']
|
251
|
+
end
|
252
|
+
end
|
253
|
+
|
254
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
255
|
+
# @return Array for valid properties with the reasons
|
256
|
+
def list_invalid_properties
|
257
|
+
invalid_properties = Array.new
|
258
|
+
invalid_properties
|
259
|
+
end
|
260
|
+
|
261
|
+
# Check to see if the all the properties in the model are valid
|
262
|
+
# @return true if the model is valid
|
263
|
+
def valid?
|
264
|
+
status_validator = EnumAttributeValidator.new('String', ['DRAFT', 'POSTED', 'PAID', 'CONVERTED', 'VOIDED'])
|
265
|
+
return false unless status_validator.valid?(@status)
|
266
|
+
generation_method_validator = EnumAttributeValidator.new('String', ['USER_INITIATED', 'API_INITIATED', 'BULK_INVOICE_RUN', 'AUTOMATED_INVOICE_JOB', 'RULE_DRIVEN_INVOICE_JOB'])
|
267
|
+
return false unless generation_method_validator.valid?(@generation_method)
|
268
|
+
true
|
269
|
+
end
|
270
|
+
|
271
|
+
# Custom attribute writer method checking allowed values (enum).
|
272
|
+
# @param [Object] status Object to be assigned
|
273
|
+
def status=(status)
|
274
|
+
validator = EnumAttributeValidator.new('String', ['DRAFT', 'POSTED', 'PAID', 'CONVERTED', 'VOIDED'])
|
275
|
+
unless validator.valid?(status)
|
276
|
+
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
277
|
+
end
|
278
|
+
@status = status
|
279
|
+
end
|
280
|
+
|
281
|
+
# Custom attribute writer method checking allowed values (enum).
|
282
|
+
# @param [Object] generation_method Object to be assigned
|
283
|
+
def generation_method=(generation_method)
|
284
|
+
validator = EnumAttributeValidator.new('String', ['USER_INITIATED', 'API_INITIATED', 'BULK_INVOICE_RUN', 'AUTOMATED_INVOICE_JOB', 'RULE_DRIVEN_INVOICE_JOB'])
|
285
|
+
unless validator.valid?(generation_method)
|
286
|
+
fail ArgumentError, 'invalid value for "generation_method", must be one of #{validator.allowable_values}.'
|
287
|
+
end
|
288
|
+
@generation_method = generation_method
|
289
|
+
end
|
290
|
+
|
291
|
+
# Checks equality by comparing each attribute.
|
292
|
+
# @param [Object] Object to be compared
|
293
|
+
def ==(o)
|
294
|
+
return true if self.equal?(o)
|
295
|
+
self.class == o.class &&
|
296
|
+
invoice_number == o.invoice_number &&
|
297
|
+
posted_date == o.posted_date &&
|
298
|
+
invoice_date == o.invoice_date &&
|
299
|
+
voided_date == o.voided_date &&
|
300
|
+
due_date == o.due_date &&
|
301
|
+
currency == o.currency &&
|
302
|
+
payment_term == o.payment_term &&
|
303
|
+
total_discount == o.total_discount &&
|
304
|
+
sub_total == o.sub_total &&
|
305
|
+
tax_total == o.tax_total &&
|
306
|
+
tax_transaction_code == o.tax_transaction_code &&
|
307
|
+
total == o.total &&
|
308
|
+
subscription_id == o.subscription_id &&
|
309
|
+
account_id == o.account_id &&
|
310
|
+
invoice_items == o.invoice_items &&
|
311
|
+
billing_contact == o.billing_contact &&
|
312
|
+
shipping_contact == o.shipping_contact &&
|
313
|
+
status == o.status &&
|
314
|
+
purchase_order_number == o.purchase_order_number &&
|
315
|
+
purchase_order_required == o.purchase_order_required &&
|
316
|
+
note == o.note &&
|
317
|
+
email_notifiers_list == o.email_notifiers_list &&
|
318
|
+
erp_id == o.erp_id &&
|
319
|
+
generation_method == o.generation_method
|
320
|
+
end
|
321
|
+
|
322
|
+
# @see the `==` method
|
323
|
+
# @param [Object] Object to be compared
|
324
|
+
def eql?(o)
|
325
|
+
self == o
|
326
|
+
end
|
327
|
+
|
328
|
+
# Calculates hash code according to all attributes.
|
329
|
+
# @return [Fixnum] Hash code
|
330
|
+
def hash
|
331
|
+
[invoice_number, posted_date, invoice_date, voided_date, due_date, currency, payment_term, total_discount, sub_total, tax_total, tax_transaction_code, total, subscription_id, account_id, invoice_items, billing_contact, shipping_contact, status, purchase_order_number, purchase_order_required, note, email_notifiers_list, erp_id, generation_method].hash
|
332
|
+
end
|
333
|
+
|
334
|
+
# Builds the object from hash
|
335
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
336
|
+
# @return [Object] Returns the model itself
|
337
|
+
def build_from_hash(attributes)
|
338
|
+
return nil unless attributes.is_a?(Hash)
|
339
|
+
self.class.swagger_types.each_pair do |key, type|
|
340
|
+
if type =~ /\AArray<(.*)>/i
|
341
|
+
# check to ensure the input is an array given that the attribute
|
342
|
+
# is documented as an array but the input is not
|
343
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
344
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
345
|
+
end
|
346
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
347
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
348
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
349
|
+
end
|
350
|
+
|
351
|
+
self
|
352
|
+
end
|
353
|
+
|
354
|
+
# Deserializes the data based on type
|
355
|
+
# @param string type Data type
|
356
|
+
# @param string value Value to be deserialized
|
357
|
+
# @return [Object] Deserialized data
|
358
|
+
def _deserialize(type, value)
|
359
|
+
case type.to_sym
|
360
|
+
when :DateTime
|
361
|
+
DateTime.parse(value)
|
362
|
+
when :Date
|
363
|
+
Date.parse(value)
|
364
|
+
when :String
|
365
|
+
value.to_s
|
366
|
+
when :Integer
|
367
|
+
value.to_i
|
368
|
+
when :Float
|
369
|
+
value.to_f
|
370
|
+
when :BOOLEAN
|
371
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
372
|
+
true
|
373
|
+
else
|
374
|
+
false
|
375
|
+
end
|
376
|
+
when :Object
|
377
|
+
# generic object (usually a Hash), return directly
|
378
|
+
value
|
379
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
380
|
+
inner_type = Regexp.last_match[:inner_type]
|
381
|
+
value.map { |v| _deserialize(inner_type, v) }
|
382
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
383
|
+
k_type = Regexp.last_match[:k_type]
|
384
|
+
v_type = Regexp.last_match[:v_type]
|
385
|
+
{}.tap do |hash|
|
386
|
+
value.each do |k, v|
|
387
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
388
|
+
end
|
389
|
+
end
|
390
|
+
else # model
|
391
|
+
temp_model = SubskribeDevClient.const_get(type).new
|
392
|
+
temp_model.build_from_hash(value)
|
393
|
+
end
|
394
|
+
end
|
395
|
+
|
396
|
+
# Returns the string representation of the object
|
397
|
+
# @return [String] String presentation of the object
|
398
|
+
def to_s
|
399
|
+
to_hash.to_s
|
400
|
+
end
|
401
|
+
|
402
|
+
# to_body is an alias to to_hash (backward compatibility)
|
403
|
+
# @return [Hash] Returns the object in the form of hash
|
404
|
+
def to_body
|
405
|
+
to_hash
|
406
|
+
end
|
407
|
+
|
408
|
+
# Returns the object in the form of hash
|
409
|
+
# @return [Hash] Returns the object in the form of hash
|
410
|
+
def to_hash
|
411
|
+
hash = {}
|
412
|
+
self.class.attribute_map.each_pair do |attr, param|
|
413
|
+
value = self.send(attr)
|
414
|
+
next if value.nil?
|
415
|
+
hash[param] = _to_hash(value)
|
416
|
+
end
|
417
|
+
hash
|
418
|
+
end
|
419
|
+
|
420
|
+
# Outputs non-array value in the form of hash
|
421
|
+
# For object, use to_hash. Otherwise, just return the value
|
422
|
+
# @param [Object] value Any valid value
|
423
|
+
# @return [Hash] Returns the value in the form of hash
|
424
|
+
def _to_hash(value)
|
425
|
+
if value.is_a?(Array)
|
426
|
+
value.compact.map { |v| _to_hash(v) }
|
427
|
+
elsif value.is_a?(Hash)
|
428
|
+
{}.tap do |hash|
|
429
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
430
|
+
end
|
431
|
+
elsif value.respond_to? :to_hash
|
432
|
+
value.to_hash
|
433
|
+
else
|
434
|
+
value
|
435
|
+
end
|
436
|
+
end
|
437
|
+
|
438
|
+
end
|
439
|
+
end
|
@@ -0,0 +1,204 @@
|
|
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 InvoiceJsonPaginationResponse
|
17
|
+
attr_accessor :data
|
18
|
+
|
19
|
+
attr_accessor :num_elements
|
20
|
+
|
21
|
+
attr_accessor :next_cursor
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'data' => :'data',
|
27
|
+
:'num_elements' => :'numElements',
|
28
|
+
:'next_cursor' => :'nextCursor'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Attribute type mapping.
|
33
|
+
def self.swagger_types
|
34
|
+
{
|
35
|
+
:'data' => :'Array<InvoiceJson>',
|
36
|
+
:'num_elements' => :'Integer',
|
37
|
+
:'next_cursor' => :'String'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Initializes the object
|
42
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
43
|
+
def initialize(attributes = {})
|
44
|
+
return unless attributes.is_a?(Hash)
|
45
|
+
|
46
|
+
# convert string to symbol for hash key
|
47
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
48
|
+
|
49
|
+
if attributes.has_key?(:'data')
|
50
|
+
if (value = attributes[:'data']).is_a?(Array)
|
51
|
+
self.data = value
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
if attributes.has_key?(:'numElements')
|
56
|
+
self.num_elements = attributes[:'numElements']
|
57
|
+
end
|
58
|
+
|
59
|
+
if attributes.has_key?(:'nextCursor')
|
60
|
+
self.next_cursor = attributes[:'nextCursor']
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
65
|
+
# @return Array for valid properties with the reasons
|
66
|
+
def list_invalid_properties
|
67
|
+
invalid_properties = Array.new
|
68
|
+
invalid_properties
|
69
|
+
end
|
70
|
+
|
71
|
+
# Check to see if the all the properties in the model are valid
|
72
|
+
# @return true if the model is valid
|
73
|
+
def valid?
|
74
|
+
true
|
75
|
+
end
|
76
|
+
|
77
|
+
# Checks equality by comparing each attribute.
|
78
|
+
# @param [Object] Object to be compared
|
79
|
+
def ==(o)
|
80
|
+
return true if self.equal?(o)
|
81
|
+
self.class == o.class &&
|
82
|
+
data == o.data &&
|
83
|
+
num_elements == o.num_elements &&
|
84
|
+
next_cursor == o.next_cursor
|
85
|
+
end
|
86
|
+
|
87
|
+
# @see the `==` method
|
88
|
+
# @param [Object] Object to be compared
|
89
|
+
def eql?(o)
|
90
|
+
self == o
|
91
|
+
end
|
92
|
+
|
93
|
+
# Calculates hash code according to all attributes.
|
94
|
+
# @return [Fixnum] Hash code
|
95
|
+
def hash
|
96
|
+
[data, num_elements, next_cursor].hash
|
97
|
+
end
|
98
|
+
|
99
|
+
# Builds the object from hash
|
100
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
101
|
+
# @return [Object] Returns the model itself
|
102
|
+
def build_from_hash(attributes)
|
103
|
+
return nil unless attributes.is_a?(Hash)
|
104
|
+
self.class.swagger_types.each_pair do |key, type|
|
105
|
+
if type =~ /\AArray<(.*)>/i
|
106
|
+
# check to ensure the input is an array given that the attribute
|
107
|
+
# is documented as an array but the input is not
|
108
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
109
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
110
|
+
end
|
111
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
112
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
113
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
114
|
+
end
|
115
|
+
|
116
|
+
self
|
117
|
+
end
|
118
|
+
|
119
|
+
# Deserializes the data based on type
|
120
|
+
# @param string type Data type
|
121
|
+
# @param string value Value to be deserialized
|
122
|
+
# @return [Object] Deserialized data
|
123
|
+
def _deserialize(type, value)
|
124
|
+
case type.to_sym
|
125
|
+
when :DateTime
|
126
|
+
DateTime.parse(value)
|
127
|
+
when :Date
|
128
|
+
Date.parse(value)
|
129
|
+
when :String
|
130
|
+
value.to_s
|
131
|
+
when :Integer
|
132
|
+
value.to_i
|
133
|
+
when :Float
|
134
|
+
value.to_f
|
135
|
+
when :BOOLEAN
|
136
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
137
|
+
true
|
138
|
+
else
|
139
|
+
false
|
140
|
+
end
|
141
|
+
when :Object
|
142
|
+
# generic object (usually a Hash), return directly
|
143
|
+
value
|
144
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
145
|
+
inner_type = Regexp.last_match[:inner_type]
|
146
|
+
value.map { |v| _deserialize(inner_type, v) }
|
147
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
148
|
+
k_type = Regexp.last_match[:k_type]
|
149
|
+
v_type = Regexp.last_match[:v_type]
|
150
|
+
{}.tap do |hash|
|
151
|
+
value.each do |k, v|
|
152
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
else # model
|
156
|
+
temp_model = SubskribeDevClient.const_get(type).new
|
157
|
+
temp_model.build_from_hash(value)
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
# Returns the string representation of the object
|
162
|
+
# @return [String] String presentation of the object
|
163
|
+
def to_s
|
164
|
+
to_hash.to_s
|
165
|
+
end
|
166
|
+
|
167
|
+
# to_body is an alias to to_hash (backward compatibility)
|
168
|
+
# @return [Hash] Returns the object in the form of hash
|
169
|
+
def to_body
|
170
|
+
to_hash
|
171
|
+
end
|
172
|
+
|
173
|
+
# Returns the object in the form of hash
|
174
|
+
# @return [Hash] Returns the object in the form of hash
|
175
|
+
def to_hash
|
176
|
+
hash = {}
|
177
|
+
self.class.attribute_map.each_pair do |attr, param|
|
178
|
+
value = self.send(attr)
|
179
|
+
next if value.nil?
|
180
|
+
hash[param] = _to_hash(value)
|
181
|
+
end
|
182
|
+
hash
|
183
|
+
end
|
184
|
+
|
185
|
+
# Outputs non-array value in the form of hash
|
186
|
+
# For object, use to_hash. Otherwise, just return the value
|
187
|
+
# @param [Object] value Any valid value
|
188
|
+
# @return [Hash] Returns the value in the form of hash
|
189
|
+
def _to_hash(value)
|
190
|
+
if value.is_a?(Array)
|
191
|
+
value.compact.map { |v| _to_hash(v) }
|
192
|
+
elsif value.is_a?(Hash)
|
193
|
+
{}.tap do |hash|
|
194
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
195
|
+
end
|
196
|
+
elsif value.respond_to? :to_hash
|
197
|
+
value.to_hash
|
198
|
+
else
|
199
|
+
value
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
end
|
204
|
+
end
|