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,340 +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 'uri'
|
14
|
-
|
15
|
-
module SubskribeDevClient
|
16
|
-
class DiscountsApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
# Create a discount
|
23
|
-
# Creates a discount with the specified details. On success, the ID of the new discount is returned.
|
24
|
-
# @param [Hash] opts the optional parameters
|
25
|
-
# @option opts [DiscountJson] :body details of the discount
|
26
|
-
# @return [String]
|
27
|
-
def add_discount(opts = {})
|
28
|
-
data, _status_code, _headers = add_discount_with_http_info(opts)
|
29
|
-
data
|
30
|
-
end
|
31
|
-
|
32
|
-
# Create a discount
|
33
|
-
# Creates a discount with the specified details. On success, the ID of the new discount is returned.
|
34
|
-
# @param [Hash] opts the optional parameters
|
35
|
-
# @option opts [DiscountJson] :body details of the discount
|
36
|
-
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
37
|
-
def add_discount_with_http_info(opts = {})
|
38
|
-
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: DiscountsApi.add_discount ...'
|
40
|
-
end
|
41
|
-
# resource path
|
42
|
-
local_var_path = '/discounts'
|
43
|
-
|
44
|
-
# query parameters
|
45
|
-
query_params = {}
|
46
|
-
|
47
|
-
# header parameters
|
48
|
-
header_params = {}
|
49
|
-
# HTTP header 'Accept' (if needed)
|
50
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
51
|
-
# HTTP header 'Content-Type'
|
52
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
53
|
-
|
54
|
-
# form parameters
|
55
|
-
form_params = {}
|
56
|
-
|
57
|
-
# http body (model)
|
58
|
-
post_body = @api_client.object_to_http_body(opts[:'body'])
|
59
|
-
auth_names = ['ApiKeyAuth']
|
60
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
61
|
-
:header_params => header_params,
|
62
|
-
:query_params => query_params,
|
63
|
-
:form_params => form_params,
|
64
|
-
:body => post_body,
|
65
|
-
:auth_names => auth_names,
|
66
|
-
:return_type => 'String')
|
67
|
-
if @api_client.config.debugging
|
68
|
-
@api_client.config.logger.debug "API called: DiscountsApi#add_discount\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
69
|
-
end
|
70
|
-
return data, status_code, headers
|
71
|
-
end
|
72
|
-
# Delete a discount
|
73
|
-
# Deletes a discount. Note that a discount may not be deleted if it is in use.
|
74
|
-
# @param id
|
75
|
-
# @param [Hash] opts the optional parameters
|
76
|
-
# @return [nil]
|
77
|
-
def delete_discount(id, opts = {})
|
78
|
-
delete_discount_with_http_info(id, opts)
|
79
|
-
nil
|
80
|
-
end
|
81
|
-
|
82
|
-
# Delete a discount
|
83
|
-
# Deletes a discount. Note that a discount may not be deleted if it is in use.
|
84
|
-
# @param id
|
85
|
-
# @param [Hash] opts the optional parameters
|
86
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
87
|
-
def delete_discount_with_http_info(id, opts = {})
|
88
|
-
if @api_client.config.debugging
|
89
|
-
@api_client.config.logger.debug 'Calling API: DiscountsApi.delete_discount ...'
|
90
|
-
end
|
91
|
-
# verify the required parameter 'id' is set
|
92
|
-
if @api_client.config.client_side_validation && id.nil?
|
93
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling DiscountsApi.delete_discount"
|
94
|
-
end
|
95
|
-
# resource path
|
96
|
-
local_var_path = '/discounts/{id}'.sub('{' + 'id' + '}', id.to_s)
|
97
|
-
|
98
|
-
# query parameters
|
99
|
-
query_params = {}
|
100
|
-
|
101
|
-
# header parameters
|
102
|
-
header_params = {}
|
103
|
-
# HTTP header 'Accept' (if needed)
|
104
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
105
|
-
|
106
|
-
# form parameters
|
107
|
-
form_params = {}
|
108
|
-
|
109
|
-
# http body (model)
|
110
|
-
post_body = nil
|
111
|
-
auth_names = ['ApiKeyAuth']
|
112
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
113
|
-
:header_params => header_params,
|
114
|
-
:query_params => query_params,
|
115
|
-
:form_params => form_params,
|
116
|
-
:body => post_body,
|
117
|
-
:auth_names => auth_names)
|
118
|
-
if @api_client.config.debugging
|
119
|
-
@api_client.config.logger.debug "API called: DiscountsApi#delete_discount\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
120
|
-
end
|
121
|
-
return data, status_code, headers
|
122
|
-
end
|
123
|
-
# Get discount
|
124
|
-
# Returns the details of the specified discount.
|
125
|
-
# @param id id of the discount
|
126
|
-
# @param [Hash] opts the optional parameters
|
127
|
-
# @return [DiscountJson]
|
128
|
-
def get_discount(id, opts = {})
|
129
|
-
data, _status_code, _headers = get_discount_with_http_info(id, opts)
|
130
|
-
data
|
131
|
-
end
|
132
|
-
|
133
|
-
# Get discount
|
134
|
-
# Returns the details of the specified discount.
|
135
|
-
# @param id id of the discount
|
136
|
-
# @param [Hash] opts the optional parameters
|
137
|
-
# @return [Array<(DiscountJson, Fixnum, Hash)>] DiscountJson data, response status code and response headers
|
138
|
-
def get_discount_with_http_info(id, opts = {})
|
139
|
-
if @api_client.config.debugging
|
140
|
-
@api_client.config.logger.debug 'Calling API: DiscountsApi.get_discount ...'
|
141
|
-
end
|
142
|
-
# verify the required parameter 'id' is set
|
143
|
-
if @api_client.config.client_side_validation && id.nil?
|
144
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling DiscountsApi.get_discount"
|
145
|
-
end
|
146
|
-
# resource path
|
147
|
-
local_var_path = '/discounts/{id}'.sub('{' + 'id' + '}', id.to_s)
|
148
|
-
|
149
|
-
# query parameters
|
150
|
-
query_params = {}
|
151
|
-
|
152
|
-
# header parameters
|
153
|
-
header_params = {}
|
154
|
-
# HTTP header 'Accept' (if needed)
|
155
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
156
|
-
|
157
|
-
# form parameters
|
158
|
-
form_params = {}
|
159
|
-
|
160
|
-
# http body (model)
|
161
|
-
post_body = nil
|
162
|
-
auth_names = ['ApiKeyAuth']
|
163
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
164
|
-
:header_params => header_params,
|
165
|
-
:query_params => query_params,
|
166
|
-
:form_params => form_params,
|
167
|
-
:body => post_body,
|
168
|
-
:auth_names => auth_names,
|
169
|
-
:return_type => 'DiscountJson')
|
170
|
-
if @api_client.config.debugging
|
171
|
-
@api_client.config.logger.debug "API called: DiscountsApi#get_discount\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
172
|
-
end
|
173
|
-
return data, status_code, headers
|
174
|
-
end
|
175
|
-
# Get discounts
|
176
|
-
# Returns all discounts that have been defined
|
177
|
-
# @param [Hash] opts the optional parameters
|
178
|
-
# @return [Array<DiscountJson>]
|
179
|
-
def get_discounts(opts = {})
|
180
|
-
data, _status_code, _headers = get_discounts_with_http_info(opts)
|
181
|
-
data
|
182
|
-
end
|
183
|
-
|
184
|
-
# Get discounts
|
185
|
-
# Returns all discounts that have been defined
|
186
|
-
# @param [Hash] opts the optional parameters
|
187
|
-
# @return [Array<(Array<DiscountJson>, Fixnum, Hash)>] Array<DiscountJson> data, response status code and response headers
|
188
|
-
def get_discounts_with_http_info(opts = {})
|
189
|
-
if @api_client.config.debugging
|
190
|
-
@api_client.config.logger.debug 'Calling API: DiscountsApi.get_discounts ...'
|
191
|
-
end
|
192
|
-
# resource path
|
193
|
-
local_var_path = '/discounts'
|
194
|
-
|
195
|
-
# query parameters
|
196
|
-
query_params = {}
|
197
|
-
|
198
|
-
# header parameters
|
199
|
-
header_params = {}
|
200
|
-
# HTTP header 'Accept' (if needed)
|
201
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
202
|
-
|
203
|
-
# form parameters
|
204
|
-
form_params = {}
|
205
|
-
|
206
|
-
# http body (model)
|
207
|
-
post_body = nil
|
208
|
-
auth_names = ['ApiKeyAuth']
|
209
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
210
|
-
:header_params => header_params,
|
211
|
-
:query_params => query_params,
|
212
|
-
:form_params => form_params,
|
213
|
-
:body => post_body,
|
214
|
-
:auth_names => auth_names,
|
215
|
-
:return_type => 'Array<DiscountJson>')
|
216
|
-
if @api_client.config.debugging
|
217
|
-
@api_client.config.logger.debug "API called: DiscountsApi#get_discounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
218
|
-
end
|
219
|
-
return data, status_code, headers
|
220
|
-
end
|
221
|
-
# Update discount details
|
222
|
-
# Updates the details of the specified discount. Note that a discount cannot be updated once it is in use by an order.
|
223
|
-
# @param id id of the discount
|
224
|
-
# @param [Hash] opts the optional parameters
|
225
|
-
# @option opts [DiscountJson] :body
|
226
|
-
# @return [nil]
|
227
|
-
def update_discount(id, opts = {})
|
228
|
-
update_discount_with_http_info(id, opts)
|
229
|
-
nil
|
230
|
-
end
|
231
|
-
|
232
|
-
# Update discount details
|
233
|
-
# Updates the details of the specified discount. Note that a discount cannot be updated once it is in use by an order.
|
234
|
-
# @param id id of the discount
|
235
|
-
# @param [Hash] opts the optional parameters
|
236
|
-
# @option opts [DiscountJson] :body
|
237
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
238
|
-
def update_discount_with_http_info(id, opts = {})
|
239
|
-
if @api_client.config.debugging
|
240
|
-
@api_client.config.logger.debug 'Calling API: DiscountsApi.update_discount ...'
|
241
|
-
end
|
242
|
-
# verify the required parameter 'id' is set
|
243
|
-
if @api_client.config.client_side_validation && id.nil?
|
244
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling DiscountsApi.update_discount"
|
245
|
-
end
|
246
|
-
# resource path
|
247
|
-
local_var_path = '/discounts/{id}'.sub('{' + 'id' + '}', id.to_s)
|
248
|
-
|
249
|
-
# query parameters
|
250
|
-
query_params = {}
|
251
|
-
|
252
|
-
# header parameters
|
253
|
-
header_params = {}
|
254
|
-
# HTTP header 'Accept' (if needed)
|
255
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
256
|
-
# HTTP header 'Content-Type'
|
257
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
258
|
-
|
259
|
-
# form parameters
|
260
|
-
form_params = {}
|
261
|
-
|
262
|
-
# http body (model)
|
263
|
-
post_body = @api_client.object_to_http_body(opts[:'body'])
|
264
|
-
auth_names = ['ApiKeyAuth']
|
265
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
266
|
-
:header_params => header_params,
|
267
|
-
:query_params => query_params,
|
268
|
-
:form_params => form_params,
|
269
|
-
:body => post_body,
|
270
|
-
:auth_names => auth_names)
|
271
|
-
if @api_client.config.debugging
|
272
|
-
@api_client.config.logger.debug "API called: DiscountsApi#update_discount\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
273
|
-
end
|
274
|
-
return data, status_code, headers
|
275
|
-
end
|
276
|
-
# Update discount status
|
277
|
-
# Updates the status of a discount
|
278
|
-
# @param id id of the discount
|
279
|
-
# @param status new status to set
|
280
|
-
# @param [Hash] opts the optional parameters
|
281
|
-
# @return [nil]
|
282
|
-
def update_discount_status(id, status, opts = {})
|
283
|
-
update_discount_status_with_http_info(id, status, opts)
|
284
|
-
nil
|
285
|
-
end
|
286
|
-
|
287
|
-
# Update discount status
|
288
|
-
# Updates the status of a discount
|
289
|
-
# @param id id of the discount
|
290
|
-
# @param status new status to set
|
291
|
-
# @param [Hash] opts the optional parameters
|
292
|
-
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
293
|
-
def update_discount_status_with_http_info(id, status, opts = {})
|
294
|
-
if @api_client.config.debugging
|
295
|
-
@api_client.config.logger.debug 'Calling API: DiscountsApi.update_discount_status ...'
|
296
|
-
end
|
297
|
-
# verify the required parameter 'id' is set
|
298
|
-
if @api_client.config.client_side_validation && id.nil?
|
299
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling DiscountsApi.update_discount_status"
|
300
|
-
end
|
301
|
-
# verify the required parameter 'status' is set
|
302
|
-
if @api_client.config.client_side_validation && status.nil?
|
303
|
-
fail ArgumentError, "Missing the required parameter 'status' when calling DiscountsApi.update_discount_status"
|
304
|
-
end
|
305
|
-
# verify enum value
|
306
|
-
if @api_client.config.client_side_validation && !['ACTIVE', 'DEPRECATED'].include?(status)
|
307
|
-
fail ArgumentError, "invalid value for 'status', must be one of ACTIVE, DEPRECATED"
|
308
|
-
end
|
309
|
-
# resource path
|
310
|
-
local_var_path = '/discounts/{id}/status/{status}'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'status' + '}', status.to_s)
|
311
|
-
|
312
|
-
# query parameters
|
313
|
-
query_params = {}
|
314
|
-
|
315
|
-
# header parameters
|
316
|
-
header_params = {}
|
317
|
-
# HTTP header 'Accept' (if needed)
|
318
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
319
|
-
# HTTP header 'Content-Type'
|
320
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
321
|
-
|
322
|
-
# form parameters
|
323
|
-
form_params = {}
|
324
|
-
|
325
|
-
# http body (model)
|
326
|
-
post_body = nil
|
327
|
-
auth_names = ['ApiKeyAuth']
|
328
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
329
|
-
:header_params => header_params,
|
330
|
-
:query_params => query_params,
|
331
|
-
:form_params => form_params,
|
332
|
-
:body => post_body,
|
333
|
-
:auth_names => auth_names)
|
334
|
-
if @api_client.config.debugging
|
335
|
-
@api_client.config.logger.debug "API called: DiscountsApi#update_discount_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
336
|
-
end
|
337
|
-
return data, status_code, headers
|
338
|
-
end
|
339
|
-
end
|
340
|
-
end
|