cbox_billing 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +215 -0
- data/cbox_billing.gemspec +26 -0
- data/lib/cbox_billing/api/accounting_api.rb +1893 -0
- data/lib/cbox_billing/api/affiliates_api.rb +2009 -0
- data/lib/cbox_billing/api/agreements_api.rb +552 -0
- data/lib/cbox_billing/api/bank_reconciliation_api.rb +505 -0
- data/lib/cbox_billing/api/catalog_api.rb +361 -0
- data/lib/cbox_billing/api/checkout_portal_api.rb +696 -0
- data/lib/cbox_billing/api/coupons_api.rb +538 -0
- data/lib/cbox_billing/api/credit_notes_api.rb +403 -0
- data/lib/cbox_billing/api/disputes_api.rb +540 -0
- data/lib/cbox_billing/api/dunning_api.rb +902 -0
- data/lib/cbox_billing/api/enforcement_api.rb +746 -0
- data/lib/cbox_billing/api/environments_api.rb +343 -0
- data/lib/cbox_billing/api/invoices_api.rb +1662 -0
- data/lib/cbox_billing/api/licence_data_api.rb +619 -0
- data/lib/cbox_billing/api/licenses_api.rb +293 -0
- data/lib/cbox_billing/api/management_api.rb +253 -0
- data/lib/cbox_billing/api/meters_api.rb +538 -0
- data/lib/cbox_billing/api/orders_and_delivery_api.rb +1745 -0
- data/lib/cbox_billing/api/organizations_api.rb +1110 -0
- data/lib/cbox_billing/api/payment_gateways_api.rb +227 -0
- data/lib/cbox_billing/api/payment_intents_api.rb +376 -0
- data/lib/cbox_billing/api/payment_methods_api.rb +96 -0
- data/lib/cbox_billing/api/plans_api.rb +654 -0
- data/lib/cbox_billing/api/product_access_api.rb +2033 -0
- data/lib/cbox_billing/api/quotes_api.rb +1062 -0
- data/lib/cbox_billing/api/seats_api.rb +938 -0
- data/lib/cbox_billing/api/service_connections_api.rb +245 -0
- data/lib/cbox_billing/api/subscriptions_api.rb +4697 -0
- data/lib/cbox_billing/api/tax_returns_api.rb +453 -0
- data/lib/cbox_billing/api/test_mode_api.rb +96 -0
- data/lib/cbox_billing/api/usage_api.rb +1116 -0
- data/lib/cbox_billing/api/webhook_endpoints_api.rb +835 -0
- data/lib/cbox_billing/api_client.rb +441 -0
- data/lib/cbox_billing/api_error.rb +58 -0
- data/lib/cbox_billing/api_model_base.rb +88 -0
- data/lib/cbox_billing/client.rb +49 -0
- data/lib/cbox_billing/configuration.rb +408 -0
- data/lib/cbox_billing/enforcement/client.rb +665 -0
- data/lib/cbox_billing/enforcement/errors.rb +48 -0
- data/lib/cbox_billing/enforcement/stores.rb +129 -0
- data/lib/cbox_billing/enforcement/transport.rb +79 -0
- data/lib/cbox_billing/enforcement/types.rb +63 -0
- data/lib/cbox_billing/enforcement.rb +9 -0
- data/lib/cbox_billing/errors.rb +110 -0
- data/lib/cbox_billing/idempotency.rb +16 -0
- data/lib/cbox_billing/models/accept_agreement201_response.rb +177 -0
- data/lib/cbox_billing/models/accept_agreement_request.rb +294 -0
- data/lib/cbox_billing/models/accept_agreement_request_user.rb +202 -0
- data/lib/cbox_billing/models/access_balance.rb +276 -0
- data/lib/cbox_billing/models/access_balance_request.rb +309 -0
- data/lib/cbox_billing/models/access_batch.rb +321 -0
- data/lib/cbox_billing/models/access_batch_filters.rb +183 -0
- data/lib/cbox_billing/models/access_cancel_request.rb +207 -0
- data/lib/cbox_billing/models/access_commit_request.rb +207 -0
- data/lib/cbox_billing/models/access_entry.rb +383 -0
- data/lib/cbox_billing/models/access_grant.rb +287 -0
- data/lib/cbox_billing/models/access_grant_request.rb +310 -0
- data/lib/cbox_billing/models/access_invitation.rb +404 -0
- data/lib/cbox_billing/models/access_invite_request.rb +337 -0
- data/lib/cbox_billing/models/access_join_request.rb +369 -0
- data/lib/cbox_billing/models/access_program.rb +511 -0
- data/lib/cbox_billing/models/access_program_input.rb +433 -0
- data/lib/cbox_billing/models/access_redeem_request.rb +335 -0
- data/lib/cbox_billing/models/access_redemption.rb +394 -0
- data/lib/cbox_billing/models/access_report.rb +250 -0
- data/lib/cbox_billing/models/access_report_balances.rb +252 -0
- data/lib/cbox_billing/models/access_report_batches.rb +252 -0
- data/lib/cbox_billing/models/access_report_entries.rb +252 -0
- data/lib/cbox_billing/models/access_report_grants.rb +252 -0
- data/lib/cbox_billing/models/access_report_invitations.rb +252 -0
- data/lib/cbox_billing/models/access_report_redemptions.rb +252 -0
- data/lib/cbox_billing/models/access_restore_grant_request.rb +207 -0
- data/lib/cbox_billing/models/access_retry_delivery_request.rb +207 -0
- data/lib/cbox_billing/models/access_revoke_grant_request.rb +207 -0
- data/lib/cbox_billing/models/access_revoke_invitation200_response.rb +195 -0
- data/lib/cbox_billing/models/access_revoke_invitation_request.rb +207 -0
- data/lib/cbox_billing/models/access_select200_response.rb +356 -0
- data/lib/cbox_billing/models/access_select_request.rb +323 -0
- data/lib/cbox_billing/models/account_credit.rb +258 -0
- data/lib/cbox_billing/models/account_credit_movements_inner.rb +255 -0
- data/lib/cbox_billing/models/account_entitlement.rb +240 -0
- data/lib/cbox_billing/models/accounting_connection.rb +336 -0
- data/lib/cbox_billing/models/accounting_connection_company.rb +170 -0
- data/lib/cbox_billing/models/accounting_contact_conflict.rb +308 -0
- data/lib/cbox_billing/models/accounting_contact_import.rb +397 -0
- data/lib/cbox_billing/models/accounting_contact_import_counts.rb +308 -0
- data/lib/cbox_billing/models/accounting_contact_import_row.rb +363 -0
- data/lib/cbox_billing/models/accounting_contact_import_row_candidates_inner.rb +227 -0
- data/lib/cbox_billing/models/accounting_contact_sync.rb +351 -0
- data/lib/cbox_billing/models/accounting_contact_sync_failure.rb +266 -0
- data/lib/cbox_billing/models/accounting_customer_document.rb +318 -0
- data/lib/cbox_billing/models/accounting_customer_link.rb +354 -0
- data/lib/cbox_billing/models/accounting_customer_link_company.rb +180 -0
- data/lib/cbox_billing/models/accounting_customer_link_contact.rb +292 -0
- data/lib/cbox_billing/models/accounting_customer_link_contact_sync.rb +291 -0
- data/lib/cbox_billing/models/accounting_customer_link_contact_sync_conflicts_inner.rb +237 -0
- data/lib/cbox_billing/models/accounting_customer_link_several_contacts_inner.rb +227 -0
- data/lib/cbox_billing/models/accounting_customer_link_shared_with_inner.rb +203 -0
- data/lib/cbox_billing/models/accounting_invoice.rb +532 -0
- data/lib/cbox_billing/models/accounting_invoice_contact.rb +189 -0
- data/lib/cbox_billing/models/accounting_sync.rb +356 -0
- data/lib/cbox_billing/models/accounting_vendor_contact.rb +307 -0
- data/lib/cbox_billing/models/accounting_vendor_link.rb +216 -0
- data/lib/cbox_billing/models/activation_bundle.rb +293 -0
- data/lib/cbox_billing/models/add_dispute_evidence_file201_response.rb +177 -0
- data/lib/cbox_billing/models/add_dispute_evidence_file422_response.rb +104 -0
- data/lib/cbox_billing/models/add_dispute_evidence_file_request.rb +261 -0
- data/lib/cbox_billing/models/add_invoice_item201_response.rb +177 -0
- data/lib/cbox_billing/models/add_invoice_item202_response.rb +228 -0
- data/lib/cbox_billing/models/add_invoice_item_request.rb +248 -0
- data/lib/cbox_billing/models/add_on.rb +305 -0
- data/lib/cbox_billing/models/add_on_preview.rb +170 -0
- data/lib/cbox_billing/models/add_on_request.rb +434 -0
- data/lib/cbox_billing/models/add_on_result.rb +203 -0
- data/lib/cbox_billing/models/add_product_file_request1.rb +233 -0
- data/lib/cbox_billing/models/add_subscription_phase201_response.rb +177 -0
- data/lib/cbox_billing/models/adjust_affiliate_balance_request.rb +257 -0
- data/lib/cbox_billing/models/admit_service_organization200_response.rb +169 -0
- data/lib/cbox_billing/models/affiliate.rb +505 -0
- data/lib/cbox_billing/models/affiliate_commission.rb +520 -0
- data/lib/cbox_billing/models/affiliate_detail.rb +523 -0
- data/lib/cbox_billing/models/affiliate_payout.rb +443 -0
- data/lib/cbox_billing/models/affiliate_payout_run.rb +446 -0
- data/lib/cbox_billing/models/affiliate_payout_run_list.rb +229 -0
- data/lib/cbox_billing/models/affiliate_payout_settings.rb +356 -0
- data/lib/cbox_billing/models/affiliate_portal_link.rb +203 -0
- data/lib/cbox_billing/models/affiliate_program.rb +556 -0
- data/lib/cbox_billing/models/affiliate_program_commission.rb +269 -0
- data/lib/cbox_billing/models/affiliate_rate_plan.rb +273 -0
- data/lib/cbox_billing/models/affiliate_rate_plan_phases_inner.rb +316 -0
- data/lib/cbox_billing/models/affiliate_rate_rule.rb +233 -0
- data/lib/cbox_billing/models/affiliate_referral.rb +325 -0
- data/lib/cbox_billing/models/agreement_block.rb +337 -0
- data/lib/cbox_billing/models/agreement_error.rb +227 -0
- data/lib/cbox_billing/models/agreement_status.rb +453 -0
- data/lib/cbox_billing/models/agreement_status_requires_inner.rb +202 -0
- data/lib/cbox_billing/models/align_renewals_request.rb +264 -0
- data/lib/cbox_billing/models/allowance_window.rb +269 -0
- data/lib/cbox_billing/models/appendix.rb +293 -0
- data/lib/cbox_billing/models/appendix_column.rb +257 -0
- data/lib/cbox_billing/models/apply_catalog409_response.rb +369 -0
- data/lib/cbox_billing/models/apply_subscription_coupon200_response.rb +177 -0
- data/lib/cbox_billing/models/apply_subscription_coupon_request.rb +197 -0
- data/lib/cbox_billing/models/archive_affiliate_program_request.rb +162 -0
- data/lib/cbox_billing/models/auto_top_up.rb +462 -0
- data/lib/cbox_billing/models/auto_top_up_attempts_inner.rb +290 -0
- data/lib/cbox_billing/models/auto_top_up_limits.rb +230 -0
- data/lib/cbox_billing/models/bank_csv_mapping.rb +467 -0
- data/lib/cbox_billing/models/bank_import_result.rb +285 -0
- data/lib/cbox_billing/models/bank_line.rb +486 -0
- data/lib/cbox_billing/models/bank_line_detail.rb +233 -0
- data/lib/cbox_billing/models/bank_line_detail_payments_inner.rb +280 -0
- data/lib/cbox_billing/models/bank_line_detail_suggestions_inner.rb +267 -0
- data/lib/cbox_billing/models/bank_statement.rb +412 -0
- data/lib/cbox_billing/models/bank_statement_import.rb +258 -0
- data/lib/cbox_billing/models/billing_parent.rb +219 -0
- data/lib/cbox_billing/models/billing_policy.rb +299 -0
- data/lib/cbox_billing/models/billing_policy_policy.rb +228 -0
- data/lib/cbox_billing/models/billing_policy_request.rb +323 -0
- data/lib/cbox_billing/models/bundle_benefit.rb +597 -0
- data/lib/cbox_billing/models/bundle_benefit_tiers_inner.rb +230 -0
- data/lib/cbox_billing/models/bundle_consequence.rb +450 -0
- data/lib/cbox_billing/models/bundle_offer.rb +508 -0
- data/lib/cbox_billing/models/bundle_offer_plan.rb +398 -0
- data/lib/cbox_billing/models/bundle_offer_products_to_add_inner.rb +169 -0
- data/lib/cbox_billing/models/bundle_offer_saves.rb +226 -0
- data/lib/cbox_billing/models/cancel_preview.rb +264 -0
- data/lib/cbox_billing/models/cancel_request.rb +256 -0
- data/lib/cbox_billing/models/cancel_subscription200_response.rb +652 -0
- data/lib/cbox_billing/models/catalog_changes.rb +286 -0
- data/lib/cbox_billing/models/catalog_changes_changes_inner.rb +264 -0
- data/lib/cbox_billing/models/catalog_changes_diff_inner.rb +303 -0
- data/lib/cbox_billing/models/catalog_changes_diff_inner_fields_inner.rb +180 -0
- data/lib/cbox_billing/models/catalog_changes_diff_inner_fields_inner_from.rb +105 -0
- data/lib/cbox_billing/models/catalog_changes_impact.rb +215 -0
- data/lib/cbox_billing/models/catalog_changes_impact_bundle_repriced_inner.rb +224 -0
- data/lib/cbox_billing/models/catalog_changes_impact_sample_inner.rb +169 -0
- data/lib/cbox_billing/models/catalog_changes_summary.rb +178 -0
- data/lib/cbox_billing/models/catalog_manifest.rb +215 -0
- data/lib/cbox_billing/models/catalog_manifest_bundles_inner.rb +344 -0
- data/lib/cbox_billing/models/catalog_manifest_bundles_inner_applies_to.rb +199 -0
- data/lib/cbox_billing/models/catalog_manifest_bundles_inner_copy_value.rb +263 -0
- data/lib/cbox_billing/models/catalog_manifest_bundles_inner_discount.rb +286 -0
- data/lib/cbox_billing/models/catalog_manifest_bundles_inner_requires.rb +254 -0
- data/lib/cbox_billing/models/catalog_manifest_existing.rb +242 -0
- data/lib/cbox_billing/models/catalog_manifest_products_inner.rb +246 -0
- data/lib/cbox_billing/models/catalog_manifest_products_inner_features_inner.rb +269 -0
- data/lib/cbox_billing/models/catalog_manifest_products_inner_meters_inner.rb +410 -0
- data/lib/cbox_billing/models/catalog_manifest_products_inner_plans_inner.rb +258 -0
- data/lib/cbox_billing/models/catalog_manifest_products_inner_plans_inner_meters_value.rb +356 -0
- data/lib/cbox_billing/models/catalog_manifest_products_inner_plans_inner_meters_value_price_value.rb +471 -0
- data/lib/cbox_billing/models/catalog_manifest_products_inner_plans_inner_meters_value_price_value_matrix_inner.rb +274 -0
- data/lib/cbox_billing/models/catalog_manifest_products_inner_plans_inner_meters_value_price_value_rates_inner.rb +216 -0
- data/lib/cbox_billing/models/change_subscription_dates200_response.rb +187 -0
- data/lib/cbox_billing/models/change_subscription_dates_request.rb +325 -0
- data/lib/cbox_billing/models/charged_invoice.rb +322 -0
- data/lib/cbox_billing/models/check_service_admission200_response.rb +178 -0
- data/lib/cbox_billing/models/checkout_session_request.rb +354 -0
- data/lib/cbox_billing/models/checkout_session_request_items_inner.rb +217 -0
- data/lib/cbox_billing/models/choose_accounting_contact_import_row200_response.rb +177 -0
- data/lib/cbox_billing/models/clear_subscription_end_date200_response.rb +162 -0
- data/lib/cbox_billing/models/commit_request.rb +214 -0
- data/lib/cbox_billing/models/commit_request_actuals_inner.rb +212 -0
- data/lib/cbox_billing/models/commitment.rb +499 -0
- data/lib/cbox_billing/models/commitment_ramp_step.rb +221 -0
- data/lib/cbox_billing/models/commitment_refusal.rb +239 -0
- data/lib/cbox_billing/models/commitment_request.rb +409 -0
- data/lib/cbox_billing/models/commitment_response.rb +203 -0
- data/lib/cbox_billing/models/commitment_term.rb +227 -0
- data/lib/cbox_billing/models/confirm_accounting_contact_import200_response.rb +177 -0
- data/lib/cbox_billing/models/confirm_accounting_contact_import_request.rb +190 -0
- data/lib/cbox_billing/models/connect_engage_service200_response.rb +212 -0
- data/lib/cbox_billing/models/connect_engage_service_request.rb +267 -0
- data/lib/cbox_billing/models/contract_cap_discount.rb +284 -0
- data/lib/cbox_billing/models/contract_price_cap.rb +332 -0
- data/lib/cbox_billing/models/contract_price_cap_basis.rb +216 -0
- data/lib/cbox_billing/models/coupon.rb +307 -0
- data/lib/cbox_billing/models/coupon_definition.rb +520 -0
- data/lib/cbox_billing/models/coupon_definition_detail.rb +555 -0
- data/lib/cbox_billing/models/coupon_definition_detail_all_of_redemptions.rb +216 -0
- data/lib/cbox_billing/models/coupon_definition_list.rb +226 -0
- data/lib/cbox_billing/models/coupon_deleted.rb +227 -0
- data/lib/cbox_billing/models/coupon_request.rb +537 -0
- data/lib/cbox_billing/models/create_affiliate_payout_request.rb +247 -0
- data/lib/cbox_billing/models/create_affiliate_program_request.rb +423 -0
- data/lib/cbox_billing/models/create_affiliate_program_request_commission.rb +348 -0
- data/lib/cbox_billing/models/create_affiliate_referral_request.rb +178 -0
- data/lib/cbox_billing/models/create_affiliate_request.rb +415 -0
- data/lib/cbox_billing/models/create_credit_purchase422_response.rb +104 -0
- data/lib/cbox_billing/models/create_customers_from_accounting_contact_import200_response.rb +207 -0
- data/lib/cbox_billing/models/create_customers_from_accounting_contact_import200_response_created_inner.rb +204 -0
- data/lib/cbox_billing/models/create_customers_from_accounting_contact_import200_response_refused_inner.rb +204 -0
- data/lib/cbox_billing/models/create_customers_from_accounting_contact_import_request.rb +197 -0
- data/lib/cbox_billing/models/create_download_grant_request.rb +248 -0
- data/lib/cbox_billing/models/create_download_links200_response.rb +205 -0
- data/lib/cbox_billing/models/create_download_links200_response_data_inner.rb +227 -0
- data/lib/cbox_billing/models/create_download_links_request.rb +190 -0
- data/lib/cbox_billing/models/create_environment_request.rb +270 -0
- data/lib/cbox_billing/models/create_license_key_request.rb +273 -0
- data/lib/cbox_billing/models/create_order_request.rb +420 -0
- data/lib/cbox_billing/models/create_order_request_lines_inner.rb +262 -0
- data/lib/cbox_billing/models/create_private_plan_request.rb +318 -0
- data/lib/cbox_billing/models/create_spend_alert_request.rb +295 -0
- data/lib/cbox_billing/models/created_access_invitation.rb +464 -0
- data/lib/cbox_billing/models/created_environment.rb +214 -0
- data/lib/cbox_billing/models/credit_adjustment_applied.rb +247 -0
- data/lib/cbox_billing/models/credit_adjustment_pending.rb +228 -0
- data/lib/cbox_billing/models/credit_adjustment_request.rb +375 -0
- data/lib/cbox_billing/models/credit_delta.rb +229 -0
- data/lib/cbox_billing/models/credit_movement.rb +364 -0
- data/lib/cbox_billing/models/credit_movement_list.rb +226 -0
- data/lib/cbox_billing/models/credit_note.rb +455 -0
- data/lib/cbox_billing/models/credit_note_detail.rb +517 -0
- data/lib/cbox_billing/models/credit_note_detail_all_of_lines.rb +294 -0
- data/lib/cbox_billing/models/credit_note_list.rb +226 -0
- data/lib/cbox_billing/models/credit_pool.rb +567 -0
- data/lib/cbox_billing/models/credit_pool_expiries_inner.rb +241 -0
- data/lib/cbox_billing/models/credit_pool_label.rb +204 -0
- data/lib/cbox_billing/models/credit_pool_list.rb +205 -0
- data/lib/cbox_billing/models/credit_pool_pay_as_you_go.rb +218 -0
- data/lib/cbox_billing/models/credit_pool_period.rb +175 -0
- data/lib/cbox_billing/models/credit_pool_scope.rb +207 -0
- data/lib/cbox_billing/models/credit_pool_scope_conditions_inner.rb +256 -0
- data/lib/cbox_billing/models/credit_purchase.rb +306 -0
- data/lib/cbox_billing/models/credit_purchase_credit.rb +203 -0
- data/lib/cbox_billing/models/customer_contract.rb +227 -0
- data/lib/cbox_billing/models/customer_overage_cap_row.rb +345 -0
- data/lib/cbox_billing/models/customer_overage_cap_row_customer.rb +202 -0
- data/lib/cbox_billing/models/date_change_preview.rb +370 -0
- data/lib/cbox_billing/models/date_change_request.rb +272 -0
- data/lib/cbox_billing/models/delete_entitlement_override200_response.rb +204 -0
- data/lib/cbox_billing/models/delete_overage_cap200_response.rb +203 -0
- data/lib/cbox_billing/models/delete_spend_alert200_response.rb +203 -0
- data/lib/cbox_billing/models/delete_webhook_endpoint200_response.rb +239 -0
- data/lib/cbox_billing/models/delivery.rb +339 -0
- data/lib/cbox_billing/models/destroy_environment200_response.rb +178 -0
- data/lib/cbox_billing/models/detach_payment_method422_response.rb +253 -0
- data/lib/cbox_billing/models/detach_payment_method422_response_errors.rb +162 -0
- data/lib/cbox_billing/models/directory_registration.rb +244 -0
- data/lib/cbox_billing/models/directory_service.rb +472 -0
- data/lib/cbox_billing/models/disable_license_key_request.rb +161 -0
- data/lib/cbox_billing/models/dispute.rb +471 -0
- data/lib/cbox_billing/models/dispute_detail.rb +229 -0
- data/lib/cbox_billing/models/dispute_detail_evidence.rb +205 -0
- data/lib/cbox_billing/models/dispute_detail_evidence_text.rb +200 -0
- data/lib/cbox_billing/models/dispute_detail_pack.rb +193 -0
- data/lib/cbox_billing/models/dispute_detail_pack_sections_inner.rb +269 -0
- data/lib/cbox_billing/models/dispute_evidence.rb +312 -0
- data/lib/cbox_billing/models/dispute_evidence_file.rb +357 -0
- data/lib/cbox_billing/models/dispute_evidence_slot.rb +43 -0
- data/lib/cbox_billing/models/dispute_refusal.rb +256 -0
- data/lib/cbox_billing/models/dispute_status.rb +46 -0
- data/lib/cbox_billing/models/download_grant.rb +401 -0
- data/lib/cbox_billing/models/dunning_hold.rb +344 -0
- data/lib/cbox_billing/models/dunning_state.rb +217 -0
- data/lib/cbox_billing/models/dunning_state_invoice.rb +281 -0
- data/lib/cbox_billing/models/dunning_state_retry.rb +232 -0
- data/lib/cbox_billing/models/e_invoice_refusal.rb +229 -0
- data/lib/cbox_billing/models/effective_billing_policy.rb +298 -0
- data/lib/cbox_billing/models/effective_entitlement.rb +271 -0
- data/lib/cbox_billing/models/effective_usage_threshold.rb +280 -0
- data/lib/cbox_billing/models/entitlement.rb +366 -0
- data/lib/cbox_billing/models/entitlement_override.rb +557 -0
- data/lib/cbox_billing/models/entitlement_override_input.rb +353 -0
- data/lib/cbox_billing/models/entitlement_override_result.rb +591 -0
- data/lib/cbox_billing/models/entitlement_terms.rb +293 -0
- data/lib/cbox_billing/models/entitlements_response.rb +200 -0
- data/lib/cbox_billing/models/environment.rb +379 -0
- data/lib/cbox_billing/models/error_body.rb +242 -0
- data/lib/cbox_billing/models/export_catalog200_response.rb +232 -0
- data/lib/cbox_billing/models/extend_invoice_due_date_request.rb +213 -0
- data/lib/cbox_billing/models/feature.rb +277 -0
- data/lib/cbox_billing/models/feature_check.rb +310 -0
- data/lib/cbox_billing/models/feature_set.rb +179 -0
- data/lib/cbox_billing/models/feature_value.rb +105 -0
- data/lib/cbox_billing/models/first_period.rb +461 -0
- data/lib/cbox_billing/models/gateway_intent.rb +254 -0
- data/lib/cbox_billing/models/get_accounting_connection200_response.rb +163 -0
- data/lib/cbox_billing/models/get_accounting_contact200_response.rb +227 -0
- data/lib/cbox_billing/models/get_accounting_contact_sync200_response.rb +229 -0
- data/lib/cbox_billing/models/get_accounting_invoice_sync200_response.rb +293 -0
- data/lib/cbox_billing/models/get_accounting_invoice_sync200_response_settings.rb +241 -0
- data/lib/cbox_billing/models/get_accounting_invoice_sync200_response_sync.rb +318 -0
- data/lib/cbox_billing/models/get_accounting_organization200_response.rb +231 -0
- data/lib/cbox_billing/models/get_bank_statement200_response.rb +205 -0
- data/lib/cbox_billing/models/get_customer_statement200_response.rb +339 -0
- data/lib/cbox_billing/models/get_customer_statement200_response_account_credit.rb +169 -0
- data/lib/cbox_billing/models/get_customer_statement200_response_activity_inner.rb +334 -0
- data/lib/cbox_billing/models/get_customer_statement200_response_balances_inner.rb +229 -0
- data/lib/cbox_billing/models/get_customer_statement200_response_subscriptions_inner.rb +281 -0
- data/lib/cbox_billing/models/get_customer_statement200_response_subscriptions_inner_next.rb +200 -0
- data/lib/cbox_billing/models/get_latest_accounting_contact_import200_response.rb +163 -0
- data/lib/cbox_billing/models/get_product_delivery200_response.rb +217 -0
- data/lib/cbox_billing/models/get_resource_limits200_response.rb +257 -0
- data/lib/cbox_billing/models/get_service_admission_policy200_response.rb +160 -0
- data/lib/cbox_billing/models/get_service_registrations200_response.rb +179 -0
- data/lib/cbox_billing/models/get_service_registrations200_response_data_inner.rb +190 -0
- data/lib/cbox_billing/models/get_service_registrations_request.rb +284 -0
- data/lib/cbox_billing/models/grandfathered_subscriber.rb +356 -0
- data/lib/cbox_billing/models/grandfathered_subscriber_contract_cap.rb +230 -0
- data/lib/cbox_billing/models/guest_waitlist_input.rb +271 -0
- data/lib/cbox_billing/models/hold_invoice_dunning_request.rb +249 -0
- data/lib/cbox_billing/models/hold_invoice_for_review200_response.rb +177 -0
- data/lib/cbox_billing/models/hosted_session.rb +204 -0
- data/lib/cbox_billing/models/import_bank_statement201_response.rb +203 -0
- data/lib/cbox_billing/models/inline_object.rb +227 -0
- data/lib/cbox_billing/models/inline_object1.rb +255 -0
- data/lib/cbox_billing/models/inline_object2.rb +255 -0
- data/lib/cbox_billing/models/invoice.rb +523 -0
- data/lib/cbox_billing/models/invoice_balance.rb +281 -0
- data/lib/cbox_billing/models/invoice_detail.rb +655 -0
- data/lib/cbox_billing/models/invoice_draft.rb +452 -0
- data/lib/cbox_billing/models/invoice_draft_lines_inner.rb +199 -0
- data/lib/cbox_billing/models/invoice_item.rb +354 -0
- data/lib/cbox_billing/models/invoice_line.rb +295 -0
- data/lib/cbox_billing/models/invoice_list.rb +226 -0
- data/lib/cbox_billing/models/invoice_payment.rb +292 -0
- data/lib/cbox_billing/models/invoice_payment_result.rb +203 -0
- data/lib/cbox_billing/models/join_service_waitlist200_response.rb +163 -0
- data/lib/cbox_billing/models/join_service_waitlist_as_guest200_response.rb +194 -0
- data/lib/cbox_billing/models/join_service_waitlist_request.rb +378 -0
- data/lib/cbox_billing/models/keep_accounting_contact200_response.rb +231 -0
- data/lib/cbox_billing/models/keep_accounting_contact_request.rb +186 -0
- data/lib/cbox_billing/models/lease.rb +266 -0
- data/lib/cbox_billing/models/lease_request.rb +341 -0
- data/lib/cbox_billing/models/leave_feature_waitlist200_response.rb +201 -0
- data/lib/cbox_billing/models/leave_feature_waitlist_request.rb +249 -0
- data/lib/cbox_billing/models/licence_period_document.rb +408 -0
- data/lib/cbox_billing/models/licence_period_document_usage_measures_inner.rb +170 -0
- data/lib/cbox_billing/models/licence_period_list.rb +230 -0
- data/lib/cbox_billing/models/licence_period_summary.rb +344 -0
- data/lib/cbox_billing/models/licence_reportable.rb +204 -0
- data/lib/cbox_billing/models/licence_row_list.rb +244 -0
- data/lib/cbox_billing/models/licence_seat_count.rb +355 -0
- data/lib/cbox_billing/models/licence_seat_ledger_entry.rb +578 -0
- data/lib/cbox_billing/models/licence_seat_ledger_list.rb +217 -0
- data/lib/cbox_billing/models/licence_seat_snapshot_list.rb +243 -0
- data/lib/cbox_billing/models/license.rb +407 -0
- data/lib/cbox_billing/models/license_issue_request.rb +232 -0
- data/lib/cbox_billing/models/license_key.rb +503 -0
- data/lib/cbox_billing/models/license_key_detail.rb +537 -0
- data/lib/cbox_billing/models/license_key_detail_all_of_instances.rb +277 -0
- data/lib/cbox_billing/models/license_renew_request.rb +160 -0
- data/lib/cbox_billing/models/license_revoke_request.rb +160 -0
- data/lib/cbox_billing/models/license_revoke_result.rb +227 -0
- data/lib/cbox_billing/models/limit_increase_decision.rb +368 -0
- data/lib/cbox_billing/models/limit_increase_input.rb +300 -0
- data/lib/cbox_billing/models/limit_increase_request.rb +516 -0
- data/lib/cbox_billing/models/link_accounting_contact200_response.rb +177 -0
- data/lib/cbox_billing/models/link_accounting_contact_request.rb +187 -0
- data/lib/cbox_billing/models/list_access_programs200_response.rb +252 -0
- data/lib/cbox_billing/models/list_accounting_contact_duplicates200_response.rb +205 -0
- data/lib/cbox_billing/models/list_accounting_contact_duplicates200_response_duplicates_inner.rb +205 -0
- data/lib/cbox_billing/models/list_accounting_contact_duplicates200_response_duplicates_inner_organizations_inner.rb +203 -0
- data/lib/cbox_billing/models/list_accounting_contact_import_rows200_response.rb +192 -0
- data/lib/cbox_billing/models/list_accounting_contact_sync_failures200_response.rb +217 -0
- data/lib/cbox_billing/models/list_accounting_contacts200_response.rb +282 -0
- data/lib/cbox_billing/models/list_accounting_organization_invoices200_response.rb +191 -0
- data/lib/cbox_billing/models/list_accounting_syncs200_response.rb +179 -0
- data/lib/cbox_billing/models/list_affiliate_commissions200_response.rb +226 -0
- data/lib/cbox_billing/models/list_affiliate_payout_runs200_response.rb +226 -0
- data/lib/cbox_billing/models/list_affiliate_payouts200_response.rb +226 -0
- data/lib/cbox_billing/models/list_affiliate_programs200_response.rb +226 -0
- data/lib/cbox_billing/models/list_affiliates200_response.rb +226 -0
- data/lib/cbox_billing/models/list_agreements200_response.rb +179 -0
- data/lib/cbox_billing/models/list_all_invoices400_response.rb +177 -0
- data/lib/cbox_billing/models/list_bank_lines200_response.rb +215 -0
- data/lib/cbox_billing/models/list_bank_statements200_response.rb +215 -0
- data/lib/cbox_billing/models/list_connected_financial_events200_response.rb +292 -0
- data/lib/cbox_billing/models/list_connected_production_environments200_response.rb +205 -0
- data/lib/cbox_billing/models/list_connected_production_environments200_response_data_inner.rb +203 -0
- data/lib/cbox_billing/models/list_customer_dunning_holds200_response.rb +179 -0
- data/lib/cbox_billing/models/list_disputes200_response.rb +217 -0
- data/lib/cbox_billing/models/list_download_grants200_response.rb +226 -0
- data/lib/cbox_billing/models/list_entitlement_overrides200_response.rb +207 -0
- data/lib/cbox_billing/models/list_environments200_response.rb +162 -0
- data/lib/cbox_billing/models/list_financial_events200_response.rb +240 -0
- data/lib/cbox_billing/models/list_financial_events200_response_data_inner.rb +342 -0
- data/lib/cbox_billing/models/list_financial_events200_response_data_inner_data.rb +408 -0
- data/lib/cbox_billing/models/list_grandfathered_subscribers200_response.rb +244 -0
- data/lib/cbox_billing/models/list_invoice_drafts200_response.rb +215 -0
- data/lib/cbox_billing/models/list_invoice_items200_response.rb +179 -0
- data/lib/cbox_billing/models/list_invoice_payments200_response.rb +205 -0
- data/lib/cbox_billing/models/list_license_keys200_response.rb +226 -0
- data/lib/cbox_billing/models/list_limit_increase_requests200_response.rb +231 -0
- data/lib/cbox_billing/models/list_one_off_products200_response.rb +179 -0
- data/lib/cbox_billing/models/list_orders200_response.rb +226 -0
- data/lib/cbox_billing/models/list_organization_purchases200_response.rb +205 -0
- data/lib/cbox_billing/models/list_organization_subscriptions200_response.rb +179 -0
- data/lib/cbox_billing/models/list_overage_caps200_response.rb +179 -0
- data/lib/cbox_billing/models/list_plan_moves200_response.rb +179 -0
- data/lib/cbox_billing/models/list_private_plans200_response.rb +179 -0
- data/lib/cbox_billing/models/list_product_files200_response.rb +179 -0
- data/lib/cbox_billing/models/list_scheduled_catalog_changes200_response.rb +179 -0
- data/lib/cbox_billing/models/list_service_directory200_response.rb +249 -0
- data/lib/cbox_billing/models/list_signed_agreements200_response.rb +226 -0
- data/lib/cbox_billing/models/list_spend_alerts200_response.rb +218 -0
- data/lib/cbox_billing/models/list_spend_alerts200_response_spend.rb +222 -0
- data/lib/cbox_billing/models/list_subscription_date_moves200_response.rb +179 -0
- data/lib/cbox_billing/models/list_subscription_schedule200_response.rb +179 -0
- data/lib/cbox_billing/models/list_tax_return_lines200_response.rb +215 -0
- data/lib/cbox_billing/models/list_tax_returns200_response.rb +215 -0
- data/lib/cbox_billing/models/list_unmatched_accounting_invoices200_response.rb +192 -0
- data/lib/cbox_billing/models/lock_subscription_price_request.rb +162 -0
- data/lib/cbox_billing/models/mark_affiliate_payout_paid_request.rb +176 -0
- data/lib/cbox_billing/models/mark_invoice_paid_request.rb +176 -0
- data/lib/cbox_billing/models/match_bank_line_request.rb +197 -0
- data/lib/cbox_billing/models/match_bank_line_request_allocations_inner.rb +221 -0
- data/lib/cbox_billing/models/meter.rb +524 -0
- data/lib/cbox_billing/models/meter_detail.rb +587 -0
- data/lib/cbox_billing/models/meter_detail_all_of_entitlements.rb +260 -0
- data/lib/cbox_billing/models/meter_list.rb +226 -0
- data/lib/cbox_billing/models/meter_request.rb +463 -0
- data/lib/cbox_billing/models/meter_request_resets.rb +237 -0
- data/lib/cbox_billing/models/meter_resets.rb +279 -0
- data/lib/cbox_billing/models/meter_staged.rb +309 -0
- data/lib/cbox_billing/models/meter_staged_changeset.rb +265 -0
- data/lib/cbox_billing/models/money.rb +222 -0
- data/lib/cbox_billing/models/money_amount.rb +203 -0
- data/lib/cbox_billing/models/move_affiliate_referral_request.rb +213 -0
- data/lib/cbox_billing/models/move_affiliate_request.rb +188 -0
- data/lib/cbox_billing/models/negotiated_price.rb +277 -0
- data/lib/cbox_billing/models/new_auto_top_up.rb +277 -0
- data/lib/cbox_billing/models/new_credit_purchase.rb +271 -0
- data/lib/cbox_billing/models/new_invoice.rb +264 -0
- data/lib/cbox_billing/models/new_invoice_line.rb +295 -0
- data/lib/cbox_billing/models/ok.rb +201 -0
- data/lib/cbox_billing/models/one_off_product.rb +359 -0
- data/lib/cbox_billing/models/one_off_purchase.rb +396 -0
- data/lib/cbox_billing/models/one_off_purchase_items_inner.rb +255 -0
- data/lib/cbox_billing/models/one_off_quote.rb +527 -0
- data/lib/cbox_billing/models/one_off_quote_organization.rb +177 -0
- data/lib/cbox_billing/models/one_off_quote_request.rb +324 -0
- data/lib/cbox_billing/models/order.rb +573 -0
- data/lib/cbox_billing/models/order_items_inner.rb +311 -0
- data/lib/cbox_billing/models/organization.rb +545 -0
- data/lib/cbox_billing/models/organization_accounting_contact.rb +255 -0
- data/lib/cbox_billing/models/organization_bundles.rb +310 -0
- data/lib/cbox_billing/models/organization_bundles_active_inner.rb +242 -0
- data/lib/cbox_billing/models/organization_response.rb +177 -0
- data/lib/cbox_billing/models/organization_upsert_request.rb +666 -0
- data/lib/cbox_billing/models/overage_cap.rb +105 -0
- data/lib/cbox_billing/models/overage_cap_binding.rb +263 -0
- data/lib/cbox_billing/models/overage_cap_one_of.rb +186 -0
- data/lib/cbox_billing/models/overage_cap_one_of1.rb +231 -0
- data/lib/cbox_billing/models/overage_cap_state.rb +380 -0
- data/lib/cbox_billing/models/page.rb +192 -0
- data/lib/cbox_billing/models/payment_gateway_failover.rb +233 -0
- data/lib/cbox_billing/models/payment_gateway_failover_failovers_inner.rb +348 -0
- data/lib/cbox_billing/models/payment_gateway_failover_failovers_inner_hops_inner.rb +190 -0
- data/lib/cbox_billing/models/payment_gateway_failover_gateways_inner.rb +230 -0
- data/lib/cbox_billing/models/payment_gateway_failover_gateways_inner_circuit.rb +288 -0
- data/lib/cbox_billing/models/payment_gateway_failover_routing.rb +235 -0
- data/lib/cbox_billing/models/payment_intent_request.rb +254 -0
- data/lib/cbox_billing/models/payment_mandate.rb +253 -0
- data/lib/cbox_billing/models/payment_method.rb +374 -0
- data/lib/cbox_billing/models/payment_method_id_request.rb +177 -0
- data/lib/cbox_billing/models/payment_method_list.rb +226 -0
- data/lib/cbox_billing/models/payment_method_set.rb +180 -0
- data/lib/cbox_billing/models/payment_terms.rb +281 -0
- data/lib/cbox_billing/models/payment_terms_request.rb +235 -0
- data/lib/cbox_billing/models/pending_approval.rb +229 -0
- data/lib/cbox_billing/models/pending_price_change.rb +257 -0
- data/lib/cbox_billing/models/per_value_entitlements.rb +206 -0
- data/lib/cbox_billing/models/per_value_entitlements_values_value.rb +263 -0
- data/lib/cbox_billing/models/plan.rb +425 -0
- data/lib/cbox_billing/models/plan_change_input.rb +224 -0
- data/lib/cbox_billing/models/plan_change_preview.rb +478 -0
- data/lib/cbox_billing/models/plan_change_preview_seat_types_inner.rb +356 -0
- data/lib/cbox_billing/models/plan_change_price_options.rb +280 -0
- data/lib/cbox_billing/models/plan_change_price_options_keep_negotiated.rb +230 -0
- data/lib/cbox_billing/models/plan_change_request.rb +256 -0
- data/lib/cbox_billing/models/plan_change_result.rb +543 -0
- data/lib/cbox_billing/models/plan_features_value.rb +105 -0
- data/lib/cbox_billing/models/plan_list.rb +253 -0
- data/lib/cbox_billing/models/plan_meter_entitlement.rb +250 -0
- data/lib/cbox_billing/models/plan_move.rb +386 -0
- data/lib/cbox_billing/models/plan_move_subscribers.rb +188 -0
- data/lib/cbox_billing/models/plan_price.rb +256 -0
- data/lib/cbox_billing/models/plan_prices_inner.rb +241 -0
- data/lib/cbox_billing/models/plane_invoice_list.rb +226 -0
- data/lib/cbox_billing/models/plane_invoice_list_all_of_data.rb +557 -0
- data/lib/cbox_billing/models/portal_session_request.rb +309 -0
- data/lib/cbox_billing/models/prepare_tax_return200_response.rb +177 -0
- data/lib/cbox_billing/models/prepare_tax_return_request.rb +237 -0
- data/lib/cbox_billing/models/preview_renewal_alignment_request.rb +201 -0
- data/lib/cbox_billing/models/preview_service_invitation200_response.rb +161 -0
- data/lib/cbox_billing/models/preview_service_invitation200_response_invitation.rb +189 -0
- data/lib/cbox_billing/models/preview_service_invitation_request.rb +186 -0
- data/lib/cbox_billing/models/preview_subscription_cancel_request.rb +216 -0
- data/lib/cbox_billing/models/preview_subscription_coupon200_response.rb +205 -0
- data/lib/cbox_billing/models/preview_subscription_coupon_request.rb +186 -0
- data/lib/cbox_billing/models/price_lock.rb +215 -0
- data/lib/cbox_billing/models/price_lock_state.rb +190 -0
- data/lib/cbox_billing/models/price_tax.rb +348 -0
- data/lib/cbox_billing/models/private_plan.rb +380 -0
- data/lib/cbox_billing/models/product_definition_manifest.rb +269 -0
- data/lib/cbox_billing/models/product_definition_manifest_features_inner.rb +333 -0
- data/lib/cbox_billing/models/product_definition_manifest_meters_inner.rb +434 -0
- data/lib/cbox_billing/models/product_file.rb +420 -0
- data/lib/cbox_billing/models/proration_line.rb +203 -0
- data/lib/cbox_billing/models/quantity_preview.rb +321 -0
- data/lib/cbox_billing/models/quantity_request.rb +196 -0
- data/lib/cbox_billing/models/quote.rb +700 -0
- data/lib/cbox_billing/models/quote_all_of_acceptance.rb +206 -0
- data/lib/cbox_billing/models/quote_all_of_approval.rb +201 -0
- data/lib/cbox_billing/models/quote_all_of_grants.rb +205 -0
- data/lib/cbox_billing/models/quote_all_of_lines.rb +284 -0
- data/lib/cbox_billing/models/quote_all_of_terms.rb +285 -0
- data/lib/cbox_billing/models/quote_all_of_terms_ramp.rb +169 -0
- data/lib/cbox_billing/models/quote_all_of_totals.rb +255 -0
- data/lib/cbox_billing/models/quote_all_of_totals_lines.rb +223 -0
- data/lib/cbox_billing/models/quote_line_grants.rb +212 -0
- data/lib/cbox_billing/models/quote_line_grants_features_inner.rb +204 -0
- data/lib/cbox_billing/models/quote_line_grants_meters_inner.rb +260 -0
- data/lib/cbox_billing/models/quote_line_request.rb +368 -0
- data/lib/cbox_billing/models/quote_list.rb +226 -0
- data/lib/cbox_billing/models/quote_request.rb +650 -0
- data/lib/cbox_billing/models/quote_request_ramp_inner.rb +221 -0
- data/lib/cbox_billing/models/quote_signer.rb +434 -0
- data/lib/cbox_billing/models/quote_signer_request.rb +247 -0
- data/lib/cbox_billing/models/quote_signer_signature.rb +296 -0
- data/lib/cbox_billing/models/quote_signing.rb +384 -0
- data/lib/cbox_billing/models/quote_signing_request.rb +278 -0
- data/lib/cbox_billing/models/quote_signing_signed_document.rb +240 -0
- data/lib/cbox_billing/models/quote_summary.rb +440 -0
- data/lib/cbox_billing/models/rate_limit_error_body.rb +177 -0
- data/lib/cbox_billing/models/reconcile_id_signals_inclusion200_response.rb +211 -0
- data/lib/cbox_billing/models/reconcile_id_signals_inclusion_request.rb +162 -0
- data/lib/cbox_billing/models/record_invoice_payment_request.rb +223 -0
- data/lib/cbox_billing/models/recurring_price.rb +230 -0
- data/lib/cbox_billing/models/refund.rb +493 -0
- data/lib/cbox_billing/models/refund_list.rb +179 -0
- data/lib/cbox_billing/models/refund_order_request.rb +223 -0
- data/lib/cbox_billing/models/refund_request.rb +227 -0
- data/lib/cbox_billing/models/refund_result.rb +239 -0
- data/lib/cbox_billing/models/refusal.rb +205 -0
- data/lib/cbox_billing/models/release_invoice_from_review200_response.rb +205 -0
- data/lib/cbox_billing/models/remove_billing_parent_request.rb +186 -0
- data/lib/cbox_billing/models/remove_subscription_coupon200_response.rb +177 -0
- data/lib/cbox_billing/models/remove_subscription_coupon_request.rb +177 -0
- data/lib/cbox_billing/models/reserve_outcome.rb +251 -0
- data/lib/cbox_billing/models/reserve_request.rb +225 -0
- data/lib/cbox_billing/models/reserve_request_meters_inner.rb +212 -0
- data/lib/cbox_billing/models/reset_environment200_response.rb +187 -0
- data/lib/cbox_billing/models/reset_environment_request.rb +162 -0
- data/lib/cbox_billing/models/reset_period.rb +247 -0
- data/lib/cbox_billing/models/resource_limit.rb +392 -0
- data/lib/cbox_billing/models/retry_accounting_sync202_response.rb +177 -0
- data/lib/cbox_billing/models/retry_invoice_dunning_request.rb +176 -0
- data/lib/cbox_billing/models/reverse_invoice_payment_request.rb +186 -0
- data/lib/cbox_billing/models/revoke_limit_increase_request.rb +195 -0
- data/lib/cbox_billing/models/schedule_phase.rb +486 -0
- data/lib/cbox_billing/models/schedule_phase_request.rb +396 -0
- data/lib/cbox_billing/models/schedule_plan_move_request.rb +231 -0
- data/lib/cbox_billing/models/scheduled_catalog_change.rb +331 -0
- data/lib/cbox_billing/models/scheduled_catalog_change_existing.rb +215 -0
- data/lib/cbox_billing/models/seat_breakdown.rb +404 -0
- data/lib/cbox_billing/models/seat_entitlement.rb +267 -0
- data/lib/cbox_billing/models/seat_ledger_entry.rb +440 -0
- data/lib/cbox_billing/models/seat_ledger_page.rb +205 -0
- data/lib/cbox_billing/models/seat_ledger_page_meta.rb +255 -0
- data/lib/cbox_billing/models/seat_reassign_request.rb +187 -0
- data/lib/cbox_billing/models/seat_subject_request.rb +178 -0
- data/lib/cbox_billing/models/seat_type_change.rb +384 -0
- data/lib/cbox_billing/models/seat_type_entitlement.rb +269 -0
- data/lib/cbox_billing/models/seat_type_quantity_request.rb +205 -0
- data/lib/cbox_billing/models/seat_type_response.rb +177 -0
- data/lib/cbox_billing/models/seat_type_state.rb +565 -0
- data/lib/cbox_billing/models/seat_type_state_holders_inner.rb +189 -0
- data/lib/cbox_billing/models/seats_set_request.rb +186 -0
- data/lib/cbox_billing/models/service_admission_identity.rb +237 -0
- data/lib/cbox_billing/models/service_admission_input.rb +388 -0
- data/lib/cbox_billing/models/set_backup_card_consent200_response.rb +189 -0
- data/lib/cbox_billing/models/set_backup_card_consent_request.rb +177 -0
- data/lib/cbox_billing/models/set_billing_parent409_response.rb +227 -0
- data/lib/cbox_billing/models/set_billing_parent_request.rb +212 -0
- data/lib/cbox_billing/models/set_customer_contract_request.rb +197 -0
- data/lib/cbox_billing/models/set_invoice_consolidation_request.rb +177 -0
- data/lib/cbox_billing/models/set_overage_cap422_response.rb +227 -0
- data/lib/cbox_billing/models/set_product_delivery_request.rb +342 -0
- data/lib/cbox_billing/models/set_subscription_purchase_order200_response.rb +189 -0
- data/lib/cbox_billing/models/set_subscription_purchase_order_request.rb +176 -0
- data/lib/cbox_billing/models/setup_intent.rb +302 -0
- data/lib/cbox_billing/models/setup_intent_request.rb +177 -0
- data/lib/cbox_billing/models/show_environment200_response.rb +160 -0
- data/lib/cbox_billing/models/signals_source200_response.rb +214 -0
- data/lib/cbox_billing/models/signals_source200_response_meta.rb +471 -0
- data/lib/cbox_billing/models/signals_source_erasures200_response.rb +214 -0
- data/lib/cbox_billing/models/signals_source_erasures200_response_meta.rb +329 -0
- data/lib/cbox_billing/models/signed_agreement.rb +498 -0
- data/lib/cbox_billing/models/signed_agreement_document.rb +252 -0
- data/lib/cbox_billing/models/skip_accounting_contact_import_rows200_response.rb +177 -0
- data/lib/cbox_billing/models/skip_accounting_contact_import_rows_request.rb +188 -0
- data/lib/cbox_billing/models/skip_invoice_dunning_step_request.rb +186 -0
- data/lib/cbox_billing/models/spend_alert.rb +395 -0
- data/lib/cbox_billing/models/start_accounting_contact_import202_response.rb +177 -0
- data/lib/cbox_billing/models/stop_invoice_dunning_request.rb +247 -0
- data/lib/cbox_billing/models/submit_dispute_evidence_request.rb +178 -0
- data/lib/cbox_billing/models/subscribe_request.rb +373 -0
- data/lib/cbox_billing/models/subscribe_result.rb +215 -0
- data/lib/cbox_billing/models/subscription.rb +617 -0
- data/lib/cbox_billing/models/subscription_bundle.rb +200 -0
- data/lib/cbox_billing/models/subscription_change.rb +505 -0
- data/lib/cbox_billing/models/subscription_change_list.rb +226 -0
- data/lib/cbox_billing/models/subscription_contract.rb +188 -0
- data/lib/cbox_billing/models/subscription_contract_term.rb +385 -0
- data/lib/cbox_billing/models/subscription_date_move.rb +295 -0
- data/lib/cbox_billing/models/subscription_discount.rb +315 -0
- data/lib/cbox_billing/models/subscription_pending_change.rb +171 -0
- data/lib/cbox_billing/models/subscription_standing.rb +230 -0
- data/lib/cbox_billing/models/subscription_terms.rb +459 -0
- data/lib/cbox_billing/models/subscription_terms_price.rb +178 -0
- data/lib/cbox_billing/models/sync_product_definitions200_response.rb +179 -0
- data/lib/cbox_billing/models/sync_product_definitions200_response_data_inner.rb +335 -0
- data/lib/cbox_billing/models/tax_return.rb +663 -0
- data/lib/cbox_billing/models/tax_return_boxes_inner.rb +307 -0
- data/lib/cbox_billing/models/tax_return_corrections_inner.rb +178 -0
- data/lib/cbox_billing/models/tax_return_issues_inner.rb +227 -0
- data/lib/cbox_billing/models/tax_return_line.rb +550 -0
- data/lib/cbox_billing/models/tax_return_line_document.rb +214 -0
- data/lib/cbox_billing/models/tax_return_line_fx.rb +212 -0
- data/lib/cbox_billing/models/tax_return_member_states_inner.rb +250 -0
- data/lib/cbox_billing/models/tax_return_not_from_billing_inner.rb +229 -0
- data/lib/cbox_billing/models/test_clock_advance_request.rb +178 -0
- data/lib/cbox_billing/models/test_clock_advance_result.rb +334 -0
- data/lib/cbox_billing/models/test_clock_advance_result_clock.rb +230 -0
- data/lib/cbox_billing/models/upcoming_invoice.rb +440 -0
- data/lib/cbox_billing/models/upcoming_invoice_first_period.rb +251 -0
- data/lib/cbox_billing/models/upcoming_invoice_interim.rb +245 -0
- data/lib/cbox_billing/models/upcoming_invoice_interim_invoices_inner.rb +286 -0
- data/lib/cbox_billing/models/upcoming_invoice_interim_reconciliation.rb +270 -0
- data/lib/cbox_billing/models/upcoming_invoice_interim_reconciliation_credit_notes_inner.rb +282 -0
- data/lib/cbox_billing/models/upcoming_invoice_lines_inner.rb +282 -0
- data/lib/cbox_billing/models/update_affiliate_program_request.rb +398 -0
- data/lib/cbox_billing/models/update_affiliate_request.rb +321 -0
- data/lib/cbox_billing/models/update_dispute_evidence_request.rb +177 -0
- data/lib/cbox_billing/models/update_dispute_evidence_request_evidence.rb +251 -0
- data/lib/cbox_billing/models/update_entitlement_override_request.rb +309 -0
- data/lib/cbox_billing/models/update_invoice_draft_request.rb +214 -0
- data/lib/cbox_billing/models/update_invoice_draft_request_lines_inner.rb +224 -0
- data/lib/cbox_billing/models/update_license_key_request.rb +186 -0
- data/lib/cbox_billing/models/update_payment_gateway_routing_request.rb +234 -0
- data/lib/cbox_billing/models/update_product_file_request.rb +208 -0
- data/lib/cbox_billing/models/update_spend_alert_request.rb +296 -0
- data/lib/cbox_billing/models/upgrade_offer.rb +189 -0
- data/lib/cbox_billing/models/usage_correction.rb +471 -0
- data/lib/cbox_billing/models/usage_correction_actor.rb +211 -0
- data/lib/cbox_billing/models/usage_correction_adjustment.rb +411 -0
- data/lib/cbox_billing/models/usage_correction_list.rb +226 -0
- data/lib/cbox_billing/models/usage_correction_list_all_of_data.rb +506 -0
- data/lib/cbox_billing/models/usage_corrections_request.rb +246 -0
- data/lib/cbox_billing/models/usage_corrections_request_corrections_inner.rb +413 -0
- data/lib/cbox_billing/models/usage_corrections_result.rb +395 -0
- data/lib/cbox_billing/models/usage_corrections_result_rejected_inner.rb +262 -0
- data/lib/cbox_billing/models/usage_event_values.rb +252 -0
- data/lib/cbox_billing/models/usage_events_request.rb +234 -0
- data/lib/cbox_billing/models/usage_events_request_events_inner.rb +385 -0
- data/lib/cbox_billing/models/usage_events_request_events_inner_dimensions_value.rb +104 -0
- data/lib/cbox_billing/models/usage_events_result.rb +301 -0
- data/lib/cbox_billing/models/usage_events_result_rejected_inner.rb +263 -0
- data/lib/cbox_billing/models/usage_ingest_request.rb +225 -0
- data/lib/cbox_billing/models/usage_ingest_request_entries_inner.rb +290 -0
- data/lib/cbox_billing/models/usage_ingest_result.rb +374 -0
- data/lib/cbox_billing/models/usage_ingest_result_unsupported_meters_inner.rb +203 -0
- data/lib/cbox_billing/models/usage_price.rb +258 -0
- data/lib/cbox_billing/models/usage_summary.rb +205 -0
- data/lib/cbox_billing/models/usage_summary_meters_value.rb +289 -0
- data/lib/cbox_billing/models/usage_summary_meters_value_breakdown_inner.rb +205 -0
- data/lib/cbox_billing/models/usage_summary_period.rb +247 -0
- data/lib/cbox_billing/models/usage_threshold.rb +275 -0
- data/lib/cbox_billing/models/usage_threshold_level.rb +217 -0
- data/lib/cbox_billing/models/usage_threshold_request.rb +248 -0
- data/lib/cbox_billing/models/usage_threshold_subscriptions_inner.rb +201 -0
- data/lib/cbox_billing/models/validation_error_body.rb +206 -0
- data/lib/cbox_billing/models/value_rule.rb +291 -0
- data/lib/cbox_billing/models/value_rules.rb +235 -0
- data/lib/cbox_billing/models/waitlist_answer.rb +105 -0
- data/lib/cbox_billing/models/waitlist_question.rb +411 -0
- data/lib/cbox_billing/models/webhook_delivery.rb +435 -0
- data/lib/cbox_billing/models/webhook_delivery_list.rb +226 -0
- data/lib/cbox_billing/models/webhook_endpoint.rb +347 -0
- data/lib/cbox_billing/models/webhook_endpoint_list.rb +226 -0
- data/lib/cbox_billing/models/webhook_endpoint_request.rb +270 -0
- data/lib/cbox_billing/models/webhook_endpoint_with_secret.rb +367 -0
- data/lib/cbox_billing/models/withdraw_agreement_request.rb +220 -0
- data/lib/cbox_billing/models/withdraw_agreement_request_user.rb +177 -0
- data/lib/cbox_billing/pagination.rb +28 -0
- data/lib/cbox_billing/retry.rb +96 -0
- data/lib/cbox_billing/version.rb +15 -0
- data/lib/cbox_billing/webhook.rb +77 -0
- data/lib/cbox_billing.rb +765 -0
- metadata +824 -0
|
@@ -0,0 +1,835 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Cbox Billing API
|
|
3
|
+
|
|
4
|
+
#The HTTP API of Cbox Billing. Reference: https://github.com/cboxdk/cbox-billing/tree/main/docs/api
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.26.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module CboxBilling
|
|
16
|
+
class WebhookEndpointsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Activate an endpoint
|
|
23
|
+
# @param id [String] The webhook endpoint's public id (`bwh_…`).
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
26
|
+
# @return [WebhookEndpoint]
|
|
27
|
+
def activate_webhook_endpoint(id, opts = {})
|
|
28
|
+
data, _status_code, _headers = activate_webhook_endpoint_with_http_info(id, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Activate an endpoint
|
|
33
|
+
# @param id [String] The webhook endpoint's public id (`bwh_…`).
|
|
34
|
+
# @param [Hash] opts the optional parameters
|
|
35
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
36
|
+
# @return [Array<(WebhookEndpoint, Integer, Hash)>] WebhookEndpoint data, response status code and response headers
|
|
37
|
+
def activate_webhook_endpoint_with_http_info(id, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointsApi.activate_webhook_endpoint ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'id' is set
|
|
42
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WebhookEndpointsApi.activate_webhook_endpoint"
|
|
44
|
+
end
|
|
45
|
+
pattern = Regexp.new(/^bwh_[0-9A-Za-z]+$/)
|
|
46
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
47
|
+
fail ArgumentError, "invalid value for 'id' when calling WebhookEndpointsApi.activate_webhook_endpoint, must conform to the pattern #{pattern}."
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# resource path
|
|
51
|
+
local_var_path = '/webhook-endpoints/{id}/activate'.sub('{id}', CGI.escape(id.to_s))
|
|
52
|
+
|
|
53
|
+
# query parameters
|
|
54
|
+
query_params = opts[:query_params] || {}
|
|
55
|
+
|
|
56
|
+
# header parameters
|
|
57
|
+
header_params = opts[:header_params] || {}
|
|
58
|
+
# HTTP header 'Accept' (if needed)
|
|
59
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
60
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
61
|
+
|
|
62
|
+
# form parameters
|
|
63
|
+
form_params = opts[:form_params] || {}
|
|
64
|
+
|
|
65
|
+
# http body (model)
|
|
66
|
+
post_body = opts[:debug_body]
|
|
67
|
+
|
|
68
|
+
# return_type
|
|
69
|
+
return_type = opts[:debug_return_type] || 'WebhookEndpoint'
|
|
70
|
+
|
|
71
|
+
# auth_names
|
|
72
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
73
|
+
|
|
74
|
+
new_options = opts.merge(
|
|
75
|
+
:operation => :"WebhookEndpointsApi.activate_webhook_endpoint",
|
|
76
|
+
:header_params => header_params,
|
|
77
|
+
:query_params => query_params,
|
|
78
|
+
:form_params => form_params,
|
|
79
|
+
:body => post_body,
|
|
80
|
+
:auth_names => auth_names,
|
|
81
|
+
:return_type => return_type
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
85
|
+
if @api_client.config.debugging
|
|
86
|
+
@api_client.config.logger.debug "API called: WebhookEndpointsApi#activate_webhook_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
87
|
+
end
|
|
88
|
+
return data, status_code, headers
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Register a webhook endpoint
|
|
92
|
+
# Register an endpoint, as Settings → Webhooks does. The answer carries the signing `secret` **once**: store it now. A replay with the same `Idempotency-Key` returns the endpoint with `secret: null`, because the secret is never stored for a replay; rotate it if it was lost. `event_types` are names from the event catalog; an unknown name is `422`, never dropped. The URL must be public: a private, loopback or link-local address is `422 { error: unsafe_url, message }`. `product` (a product key of this environment) sends the endpoint only that product's events; a token bound to a product always filters to its own, and naming another is `422`.
|
|
93
|
+
# @param idempotency_key [String] An opaque, caller-generated key (at most 100 characters). Required: a missing key is `400 idempotency_key_required`. A retry with the same key replays the first response; reusing it with a different body is `409`.
|
|
94
|
+
# @param webhook_endpoint_request [WebhookEndpointRequest]
|
|
95
|
+
# @param [Hash] opts the optional parameters
|
|
96
|
+
# @return [WebhookEndpointWithSecret]
|
|
97
|
+
def create_webhook_endpoint(idempotency_key, webhook_endpoint_request, opts = {})
|
|
98
|
+
data, _status_code, _headers = create_webhook_endpoint_with_http_info(idempotency_key, webhook_endpoint_request, opts)
|
|
99
|
+
data
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Register a webhook endpoint
|
|
103
|
+
# Register an endpoint, as Settings → Webhooks does. The answer carries the signing `secret` **once**: store it now. A replay with the same `Idempotency-Key` returns the endpoint with `secret: null`, because the secret is never stored for a replay; rotate it if it was lost. `event_types` are names from the event catalog; an unknown name is `422`, never dropped. The URL must be public: a private, loopback or link-local address is `422 { error: unsafe_url, message }`. `product` (a product key of this environment) sends the endpoint only that product's events; a token bound to a product always filters to its own, and naming another is `422`.
|
|
104
|
+
# @param idempotency_key [String] An opaque, caller-generated key (at most 100 characters). Required: a missing key is `400 idempotency_key_required`. A retry with the same key replays the first response; reusing it with a different body is `409`.
|
|
105
|
+
# @param webhook_endpoint_request [WebhookEndpointRequest]
|
|
106
|
+
# @param [Hash] opts the optional parameters
|
|
107
|
+
# @return [Array<(WebhookEndpointWithSecret, Integer, Hash)>] WebhookEndpointWithSecret data, response status code and response headers
|
|
108
|
+
def create_webhook_endpoint_with_http_info(idempotency_key, webhook_endpoint_request, opts = {})
|
|
109
|
+
if @api_client.config.debugging
|
|
110
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointsApi.create_webhook_endpoint ...'
|
|
111
|
+
end
|
|
112
|
+
# verify the required parameter 'idempotency_key' is set
|
|
113
|
+
if @api_client.config.client_side_validation && idempotency_key.nil?
|
|
114
|
+
fail ArgumentError, "Missing the required parameter 'idempotency_key' when calling WebhookEndpointsApi.create_webhook_endpoint"
|
|
115
|
+
end
|
|
116
|
+
if @api_client.config.client_side_validation && idempotency_key.to_s.length > 100
|
|
117
|
+
fail ArgumentError, 'invalid value for "idempotency_key" when calling WebhookEndpointsApi.create_webhook_endpoint, the character length must be smaller than or equal to 100.'
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# verify the required parameter 'webhook_endpoint_request' is set
|
|
121
|
+
if @api_client.config.client_side_validation && webhook_endpoint_request.nil?
|
|
122
|
+
fail ArgumentError, "Missing the required parameter 'webhook_endpoint_request' when calling WebhookEndpointsApi.create_webhook_endpoint"
|
|
123
|
+
end
|
|
124
|
+
# resource path
|
|
125
|
+
local_var_path = '/webhook-endpoints'
|
|
126
|
+
|
|
127
|
+
# query parameters
|
|
128
|
+
query_params = opts[:query_params] || {}
|
|
129
|
+
|
|
130
|
+
# header parameters
|
|
131
|
+
header_params = opts[:header_params] || {}
|
|
132
|
+
# HTTP header 'Accept' (if needed)
|
|
133
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
134
|
+
# HTTP header 'Content-Type'
|
|
135
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
136
|
+
if !content_type.nil?
|
|
137
|
+
header_params['Content-Type'] = content_type
|
|
138
|
+
end
|
|
139
|
+
header_params[:'Idempotency-Key'] = idempotency_key
|
|
140
|
+
|
|
141
|
+
# form parameters
|
|
142
|
+
form_params = opts[:form_params] || {}
|
|
143
|
+
|
|
144
|
+
# http body (model)
|
|
145
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(webhook_endpoint_request)
|
|
146
|
+
|
|
147
|
+
# return_type
|
|
148
|
+
return_type = opts[:debug_return_type] || 'WebhookEndpointWithSecret'
|
|
149
|
+
|
|
150
|
+
# auth_names
|
|
151
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
152
|
+
|
|
153
|
+
new_options = opts.merge(
|
|
154
|
+
:operation => :"WebhookEndpointsApi.create_webhook_endpoint",
|
|
155
|
+
:header_params => header_params,
|
|
156
|
+
:query_params => query_params,
|
|
157
|
+
:form_params => form_params,
|
|
158
|
+
:body => post_body,
|
|
159
|
+
:auth_names => auth_names,
|
|
160
|
+
:return_type => return_type
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
164
|
+
if @api_client.config.debugging
|
|
165
|
+
@api_client.config.logger.debug "API called: WebhookEndpointsApi#create_webhook_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
166
|
+
end
|
|
167
|
+
return data, status_code, headers
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Deactivate an endpoint
|
|
171
|
+
# A deactivated endpoint receives no further events until it is activated again.
|
|
172
|
+
# @param id [String] The webhook endpoint's public id (`bwh_…`).
|
|
173
|
+
# @param [Hash] opts the optional parameters
|
|
174
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
175
|
+
# @return [WebhookEndpoint]
|
|
176
|
+
def deactivate_webhook_endpoint(id, opts = {})
|
|
177
|
+
data, _status_code, _headers = deactivate_webhook_endpoint_with_http_info(id, opts)
|
|
178
|
+
data
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Deactivate an endpoint
|
|
182
|
+
# A deactivated endpoint receives no further events until it is activated again.
|
|
183
|
+
# @param id [String] The webhook endpoint's public id (`bwh_…`).
|
|
184
|
+
# @param [Hash] opts the optional parameters
|
|
185
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
186
|
+
# @return [Array<(WebhookEndpoint, Integer, Hash)>] WebhookEndpoint data, response status code and response headers
|
|
187
|
+
def deactivate_webhook_endpoint_with_http_info(id, opts = {})
|
|
188
|
+
if @api_client.config.debugging
|
|
189
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointsApi.deactivate_webhook_endpoint ...'
|
|
190
|
+
end
|
|
191
|
+
# verify the required parameter 'id' is set
|
|
192
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
193
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WebhookEndpointsApi.deactivate_webhook_endpoint"
|
|
194
|
+
end
|
|
195
|
+
pattern = Regexp.new(/^bwh_[0-9A-Za-z]+$/)
|
|
196
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
197
|
+
fail ArgumentError, "invalid value for 'id' when calling WebhookEndpointsApi.deactivate_webhook_endpoint, must conform to the pattern #{pattern}."
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# resource path
|
|
201
|
+
local_var_path = '/webhook-endpoints/{id}/deactivate'.sub('{id}', CGI.escape(id.to_s))
|
|
202
|
+
|
|
203
|
+
# query parameters
|
|
204
|
+
query_params = opts[:query_params] || {}
|
|
205
|
+
|
|
206
|
+
# header parameters
|
|
207
|
+
header_params = opts[:header_params] || {}
|
|
208
|
+
# HTTP header 'Accept' (if needed)
|
|
209
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
210
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
211
|
+
|
|
212
|
+
# form parameters
|
|
213
|
+
form_params = opts[:form_params] || {}
|
|
214
|
+
|
|
215
|
+
# http body (model)
|
|
216
|
+
post_body = opts[:debug_body]
|
|
217
|
+
|
|
218
|
+
# return_type
|
|
219
|
+
return_type = opts[:debug_return_type] || 'WebhookEndpoint'
|
|
220
|
+
|
|
221
|
+
# auth_names
|
|
222
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
223
|
+
|
|
224
|
+
new_options = opts.merge(
|
|
225
|
+
:operation => :"WebhookEndpointsApi.deactivate_webhook_endpoint",
|
|
226
|
+
:header_params => header_params,
|
|
227
|
+
:query_params => query_params,
|
|
228
|
+
:form_params => form_params,
|
|
229
|
+
:body => post_body,
|
|
230
|
+
:auth_names => auth_names,
|
|
231
|
+
:return_type => return_type
|
|
232
|
+
)
|
|
233
|
+
|
|
234
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
235
|
+
if @api_client.config.debugging
|
|
236
|
+
@api_client.config.logger.debug "API called: WebhookEndpointsApi#deactivate_webhook_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
237
|
+
end
|
|
238
|
+
return data, status_code, headers
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Delete an endpoint
|
|
242
|
+
# The endpoint and its delivery log are removed; it receives nothing further.
|
|
243
|
+
# @param id [String] The webhook endpoint's public id (`bwh_…`).
|
|
244
|
+
# @param [Hash] opts the optional parameters
|
|
245
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
246
|
+
# @return [DeleteWebhookEndpoint200Response]
|
|
247
|
+
def delete_webhook_endpoint(id, opts = {})
|
|
248
|
+
data, _status_code, _headers = delete_webhook_endpoint_with_http_info(id, opts)
|
|
249
|
+
data
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
# Delete an endpoint
|
|
253
|
+
# The endpoint and its delivery log are removed; it receives nothing further.
|
|
254
|
+
# @param id [String] The webhook endpoint's public id (`bwh_…`).
|
|
255
|
+
# @param [Hash] opts the optional parameters
|
|
256
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
257
|
+
# @return [Array<(DeleteWebhookEndpoint200Response, Integer, Hash)>] DeleteWebhookEndpoint200Response data, response status code and response headers
|
|
258
|
+
def delete_webhook_endpoint_with_http_info(id, opts = {})
|
|
259
|
+
if @api_client.config.debugging
|
|
260
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointsApi.delete_webhook_endpoint ...'
|
|
261
|
+
end
|
|
262
|
+
# verify the required parameter 'id' is set
|
|
263
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
264
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WebhookEndpointsApi.delete_webhook_endpoint"
|
|
265
|
+
end
|
|
266
|
+
pattern = Regexp.new(/^bwh_[0-9A-Za-z]+$/)
|
|
267
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
268
|
+
fail ArgumentError, "invalid value for 'id' when calling WebhookEndpointsApi.delete_webhook_endpoint, must conform to the pattern #{pattern}."
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
# resource path
|
|
272
|
+
local_var_path = '/webhook-endpoints/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
273
|
+
|
|
274
|
+
# query parameters
|
|
275
|
+
query_params = opts[:query_params] || {}
|
|
276
|
+
|
|
277
|
+
# header parameters
|
|
278
|
+
header_params = opts[:header_params] || {}
|
|
279
|
+
# HTTP header 'Accept' (if needed)
|
|
280
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
281
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
282
|
+
|
|
283
|
+
# form parameters
|
|
284
|
+
form_params = opts[:form_params] || {}
|
|
285
|
+
|
|
286
|
+
# http body (model)
|
|
287
|
+
post_body = opts[:debug_body]
|
|
288
|
+
|
|
289
|
+
# return_type
|
|
290
|
+
return_type = opts[:debug_return_type] || 'DeleteWebhookEndpoint200Response'
|
|
291
|
+
|
|
292
|
+
# auth_names
|
|
293
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
294
|
+
|
|
295
|
+
new_options = opts.merge(
|
|
296
|
+
:operation => :"WebhookEndpointsApi.delete_webhook_endpoint",
|
|
297
|
+
:header_params => header_params,
|
|
298
|
+
:query_params => query_params,
|
|
299
|
+
:form_params => form_params,
|
|
300
|
+
:body => post_body,
|
|
301
|
+
:auth_names => auth_names,
|
|
302
|
+
:return_type => return_type
|
|
303
|
+
)
|
|
304
|
+
|
|
305
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
306
|
+
if @api_client.config.debugging
|
|
307
|
+
@api_client.config.logger.debug "API called: WebhookEndpointsApi#delete_webhook_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
308
|
+
end
|
|
309
|
+
return data, status_code, headers
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# One webhook endpoint
|
|
313
|
+
# @param id [String] The webhook endpoint's public id (`bwh_…`).
|
|
314
|
+
# @param [Hash] opts the optional parameters
|
|
315
|
+
# @return [WebhookEndpoint]
|
|
316
|
+
def get_webhook_endpoint(id, opts = {})
|
|
317
|
+
data, _status_code, _headers = get_webhook_endpoint_with_http_info(id, opts)
|
|
318
|
+
data
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
# One webhook endpoint
|
|
322
|
+
# @param id [String] The webhook endpoint's public id (`bwh_…`).
|
|
323
|
+
# @param [Hash] opts the optional parameters
|
|
324
|
+
# @return [Array<(WebhookEndpoint, Integer, Hash)>] WebhookEndpoint data, response status code and response headers
|
|
325
|
+
def get_webhook_endpoint_with_http_info(id, opts = {})
|
|
326
|
+
if @api_client.config.debugging
|
|
327
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointsApi.get_webhook_endpoint ...'
|
|
328
|
+
end
|
|
329
|
+
# verify the required parameter 'id' is set
|
|
330
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
331
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WebhookEndpointsApi.get_webhook_endpoint"
|
|
332
|
+
end
|
|
333
|
+
pattern = Regexp.new(/^bwh_[0-9A-Za-z]+$/)
|
|
334
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
335
|
+
fail ArgumentError, "invalid value for 'id' when calling WebhookEndpointsApi.get_webhook_endpoint, must conform to the pattern #{pattern}."
|
|
336
|
+
end
|
|
337
|
+
|
|
338
|
+
# resource path
|
|
339
|
+
local_var_path = '/webhook-endpoints/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
340
|
+
|
|
341
|
+
# query parameters
|
|
342
|
+
query_params = opts[:query_params] || {}
|
|
343
|
+
|
|
344
|
+
# header parameters
|
|
345
|
+
header_params = opts[:header_params] || {}
|
|
346
|
+
# HTTP header 'Accept' (if needed)
|
|
347
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
348
|
+
|
|
349
|
+
# form parameters
|
|
350
|
+
form_params = opts[:form_params] || {}
|
|
351
|
+
|
|
352
|
+
# http body (model)
|
|
353
|
+
post_body = opts[:debug_body]
|
|
354
|
+
|
|
355
|
+
# return_type
|
|
356
|
+
return_type = opts[:debug_return_type] || 'WebhookEndpoint'
|
|
357
|
+
|
|
358
|
+
# auth_names
|
|
359
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
360
|
+
|
|
361
|
+
new_options = opts.merge(
|
|
362
|
+
:operation => :"WebhookEndpointsApi.get_webhook_endpoint",
|
|
363
|
+
:header_params => header_params,
|
|
364
|
+
:query_params => query_params,
|
|
365
|
+
:form_params => form_params,
|
|
366
|
+
:body => post_body,
|
|
367
|
+
:auth_names => auth_names,
|
|
368
|
+
:return_type => return_type
|
|
369
|
+
)
|
|
370
|
+
|
|
371
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
372
|
+
if @api_client.config.debugging
|
|
373
|
+
@api_client.config.logger.debug "API called: WebhookEndpointsApi#get_webhook_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
374
|
+
end
|
|
375
|
+
return data, status_code, headers
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
# An endpoint's delivery log (newest first)
|
|
379
|
+
# @param id [String] The webhook endpoint's public id (`bwh_…`).
|
|
380
|
+
# @param [Hash] opts the optional parameters
|
|
381
|
+
# @option opts [String] :cursor The opaque `next_cursor` from a previous page. Treat it as a black box — echo it back verbatim to fetch the following page. Omit it for the first page. A malformed cursor is a `400`.
|
|
382
|
+
# @option opts [Integer] :limit Maximum items per page (1–100). Defaults to 20. (default to 20)
|
|
383
|
+
# @return [WebhookDeliveryList]
|
|
384
|
+
def list_webhook_deliveries(id, opts = {})
|
|
385
|
+
data, _status_code, _headers = list_webhook_deliveries_with_http_info(id, opts)
|
|
386
|
+
data
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
# An endpoint's delivery log (newest first)
|
|
390
|
+
# @param id [String] The webhook endpoint's public id (`bwh_…`).
|
|
391
|
+
# @param [Hash] opts the optional parameters
|
|
392
|
+
# @option opts [String] :cursor The opaque `next_cursor` from a previous page. Treat it as a black box — echo it back verbatim to fetch the following page. Omit it for the first page. A malformed cursor is a `400`.
|
|
393
|
+
# @option opts [Integer] :limit Maximum items per page (1–100). Defaults to 20. (default to 20)
|
|
394
|
+
# @return [Array<(WebhookDeliveryList, Integer, Hash)>] WebhookDeliveryList data, response status code and response headers
|
|
395
|
+
def list_webhook_deliveries_with_http_info(id, opts = {})
|
|
396
|
+
if @api_client.config.debugging
|
|
397
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointsApi.list_webhook_deliveries ...'
|
|
398
|
+
end
|
|
399
|
+
# verify the required parameter 'id' is set
|
|
400
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
401
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WebhookEndpointsApi.list_webhook_deliveries"
|
|
402
|
+
end
|
|
403
|
+
pattern = Regexp.new(/^bwh_[0-9A-Za-z]+$/)
|
|
404
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
405
|
+
fail ArgumentError, "invalid value for 'id' when calling WebhookEndpointsApi.list_webhook_deliveries, must conform to the pattern #{pattern}."
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
409
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling WebhookEndpointsApi.list_webhook_deliveries, must be smaller than or equal to 100.'
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
413
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling WebhookEndpointsApi.list_webhook_deliveries, must be greater than or equal to 1.'
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
# resource path
|
|
417
|
+
local_var_path = '/webhook-endpoints/{id}/deliveries'.sub('{id}', CGI.escape(id.to_s))
|
|
418
|
+
|
|
419
|
+
# query parameters
|
|
420
|
+
query_params = opts[:query_params] || {}
|
|
421
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
422
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
423
|
+
|
|
424
|
+
# header parameters
|
|
425
|
+
header_params = opts[:header_params] || {}
|
|
426
|
+
# HTTP header 'Accept' (if needed)
|
|
427
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
428
|
+
|
|
429
|
+
# form parameters
|
|
430
|
+
form_params = opts[:form_params] || {}
|
|
431
|
+
|
|
432
|
+
# http body (model)
|
|
433
|
+
post_body = opts[:debug_body]
|
|
434
|
+
|
|
435
|
+
# return_type
|
|
436
|
+
return_type = opts[:debug_return_type] || 'WebhookDeliveryList'
|
|
437
|
+
|
|
438
|
+
# auth_names
|
|
439
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
440
|
+
|
|
441
|
+
new_options = opts.merge(
|
|
442
|
+
:operation => :"WebhookEndpointsApi.list_webhook_deliveries",
|
|
443
|
+
:header_params => header_params,
|
|
444
|
+
:query_params => query_params,
|
|
445
|
+
:form_params => form_params,
|
|
446
|
+
:body => post_body,
|
|
447
|
+
:auth_names => auth_names,
|
|
448
|
+
:return_type => return_type
|
|
449
|
+
)
|
|
450
|
+
|
|
451
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
452
|
+
if @api_client.config.debugging
|
|
453
|
+
@api_client.config.logger.debug "API called: WebhookEndpointsApi#list_webhook_deliveries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
454
|
+
end
|
|
455
|
+
return data, status_code, headers
|
|
456
|
+
end
|
|
457
|
+
|
|
458
|
+
# The environment's webhook endpoints (newest first)
|
|
459
|
+
# Every outbound webhook endpoint of the token's environment, newest first, cursor-paged. Operator tokens only. A token bound to a product sees only the endpoints filtered to that product. The signing secret is never listed.
|
|
460
|
+
# @param [Hash] opts the optional parameters
|
|
461
|
+
# @option opts [String] :cursor The opaque `next_cursor` from a previous page. Treat it as a black box — echo it back verbatim to fetch the following page. Omit it for the first page. A malformed cursor is a `400`.
|
|
462
|
+
# @option opts [Integer] :limit Maximum items per page (1–100). Defaults to 20. (default to 20)
|
|
463
|
+
# @return [WebhookEndpointList]
|
|
464
|
+
def list_webhook_endpoints(opts = {})
|
|
465
|
+
data, _status_code, _headers = list_webhook_endpoints_with_http_info(opts)
|
|
466
|
+
data
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
# The environment's webhook endpoints (newest first)
|
|
470
|
+
# Every outbound webhook endpoint of the token's environment, newest first, cursor-paged. Operator tokens only. A token bound to a product sees only the endpoints filtered to that product. The signing secret is never listed.
|
|
471
|
+
# @param [Hash] opts the optional parameters
|
|
472
|
+
# @option opts [String] :cursor The opaque `next_cursor` from a previous page. Treat it as a black box — echo it back verbatim to fetch the following page. Omit it for the first page. A malformed cursor is a `400`.
|
|
473
|
+
# @option opts [Integer] :limit Maximum items per page (1–100). Defaults to 20. (default to 20)
|
|
474
|
+
# @return [Array<(WebhookEndpointList, Integer, Hash)>] WebhookEndpointList data, response status code and response headers
|
|
475
|
+
def list_webhook_endpoints_with_http_info(opts = {})
|
|
476
|
+
if @api_client.config.debugging
|
|
477
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointsApi.list_webhook_endpoints ...'
|
|
478
|
+
end
|
|
479
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
480
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling WebhookEndpointsApi.list_webhook_endpoints, must be smaller than or equal to 100.'
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
484
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling WebhookEndpointsApi.list_webhook_endpoints, must be greater than or equal to 1.'
|
|
485
|
+
end
|
|
486
|
+
|
|
487
|
+
# resource path
|
|
488
|
+
local_var_path = '/webhook-endpoints'
|
|
489
|
+
|
|
490
|
+
# query parameters
|
|
491
|
+
query_params = opts[:query_params] || {}
|
|
492
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
493
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
494
|
+
|
|
495
|
+
# header parameters
|
|
496
|
+
header_params = opts[:header_params] || {}
|
|
497
|
+
# HTTP header 'Accept' (if needed)
|
|
498
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
499
|
+
|
|
500
|
+
# form parameters
|
|
501
|
+
form_params = opts[:form_params] || {}
|
|
502
|
+
|
|
503
|
+
# http body (model)
|
|
504
|
+
post_body = opts[:debug_body]
|
|
505
|
+
|
|
506
|
+
# return_type
|
|
507
|
+
return_type = opts[:debug_return_type] || 'WebhookEndpointList'
|
|
508
|
+
|
|
509
|
+
# auth_names
|
|
510
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
511
|
+
|
|
512
|
+
new_options = opts.merge(
|
|
513
|
+
:operation => :"WebhookEndpointsApi.list_webhook_endpoints",
|
|
514
|
+
:header_params => header_params,
|
|
515
|
+
:query_params => query_params,
|
|
516
|
+
:form_params => form_params,
|
|
517
|
+
:body => post_body,
|
|
518
|
+
:auth_names => auth_names,
|
|
519
|
+
:return_type => return_type
|
|
520
|
+
)
|
|
521
|
+
|
|
522
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
523
|
+
if @api_client.config.debugging
|
|
524
|
+
@api_client.config.logger.debug "API called: WebhookEndpointsApi#list_webhook_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
525
|
+
end
|
|
526
|
+
return data, status_code, headers
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
# Redeliver one delivery
|
|
530
|
+
# Resets the delivery to `pending` and queues it again, keeping its id and event id so the receiver can deduplicate. A delivery of another endpoint is `404`.
|
|
531
|
+
# @param id [String] The webhook endpoint's public id (`bwh_…`).
|
|
532
|
+
# @param delivery [String] The delivery id, as the delivery log answers it.
|
|
533
|
+
# @param [Hash] opts the optional parameters
|
|
534
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
535
|
+
# @return [WebhookDelivery]
|
|
536
|
+
def redeliver_webhook_delivery(id, delivery, opts = {})
|
|
537
|
+
data, _status_code, _headers = redeliver_webhook_delivery_with_http_info(id, delivery, opts)
|
|
538
|
+
data
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
# Redeliver one delivery
|
|
542
|
+
# Resets the delivery to `pending` and queues it again, keeping its id and event id so the receiver can deduplicate. A delivery of another endpoint is `404`.
|
|
543
|
+
# @param id [String] The webhook endpoint's public id (`bwh_…`).
|
|
544
|
+
# @param delivery [String] The delivery id, as the delivery log answers it.
|
|
545
|
+
# @param [Hash] opts the optional parameters
|
|
546
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
547
|
+
# @return [Array<(WebhookDelivery, Integer, Hash)>] WebhookDelivery data, response status code and response headers
|
|
548
|
+
def redeliver_webhook_delivery_with_http_info(id, delivery, opts = {})
|
|
549
|
+
if @api_client.config.debugging
|
|
550
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointsApi.redeliver_webhook_delivery ...'
|
|
551
|
+
end
|
|
552
|
+
# verify the required parameter 'id' is set
|
|
553
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
554
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WebhookEndpointsApi.redeliver_webhook_delivery"
|
|
555
|
+
end
|
|
556
|
+
pattern = Regexp.new(/^bwh_[0-9A-Za-z]+$/)
|
|
557
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
558
|
+
fail ArgumentError, "invalid value for 'id' when calling WebhookEndpointsApi.redeliver_webhook_delivery, must conform to the pattern #{pattern}."
|
|
559
|
+
end
|
|
560
|
+
|
|
561
|
+
# verify the required parameter 'delivery' is set
|
|
562
|
+
if @api_client.config.client_side_validation && delivery.nil?
|
|
563
|
+
fail ArgumentError, "Missing the required parameter 'delivery' when calling WebhookEndpointsApi.redeliver_webhook_delivery"
|
|
564
|
+
end
|
|
565
|
+
pattern = Regexp.new(/^[0-9A-Za-z]{26}$/)
|
|
566
|
+
if @api_client.config.client_side_validation && delivery !~ pattern
|
|
567
|
+
fail ArgumentError, "invalid value for 'delivery' when calling WebhookEndpointsApi.redeliver_webhook_delivery, must conform to the pattern #{pattern}."
|
|
568
|
+
end
|
|
569
|
+
|
|
570
|
+
# resource path
|
|
571
|
+
local_var_path = '/webhook-endpoints/{id}/deliveries/{delivery}/redeliver'.sub('{id}', CGI.escape(id.to_s)).sub('{delivery}', CGI.escape(delivery.to_s))
|
|
572
|
+
|
|
573
|
+
# query parameters
|
|
574
|
+
query_params = opts[:query_params] || {}
|
|
575
|
+
|
|
576
|
+
# header parameters
|
|
577
|
+
header_params = opts[:header_params] || {}
|
|
578
|
+
# HTTP header 'Accept' (if needed)
|
|
579
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
580
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
581
|
+
|
|
582
|
+
# form parameters
|
|
583
|
+
form_params = opts[:form_params] || {}
|
|
584
|
+
|
|
585
|
+
# http body (model)
|
|
586
|
+
post_body = opts[:debug_body]
|
|
587
|
+
|
|
588
|
+
# return_type
|
|
589
|
+
return_type = opts[:debug_return_type] || 'WebhookDelivery'
|
|
590
|
+
|
|
591
|
+
# auth_names
|
|
592
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
593
|
+
|
|
594
|
+
new_options = opts.merge(
|
|
595
|
+
:operation => :"WebhookEndpointsApi.redeliver_webhook_delivery",
|
|
596
|
+
:header_params => header_params,
|
|
597
|
+
:query_params => query_params,
|
|
598
|
+
:form_params => form_params,
|
|
599
|
+
:body => post_body,
|
|
600
|
+
:auth_names => auth_names,
|
|
601
|
+
:return_type => return_type
|
|
602
|
+
)
|
|
603
|
+
|
|
604
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
605
|
+
if @api_client.config.debugging
|
|
606
|
+
@api_client.config.logger.debug "API called: WebhookEndpointsApi#redeliver_webhook_delivery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
607
|
+
end
|
|
608
|
+
return data, status_code, headers
|
|
609
|
+
end
|
|
610
|
+
|
|
611
|
+
# Roll the signing secret
|
|
612
|
+
# Mints a new signing secret and answers it **once**. The old secret stops verifying at once. A replay with the same `Idempotency-Key` does not rotate again and answers `secret: null`.
|
|
613
|
+
# @param id [String] The webhook endpoint's public id (`bwh_…`).
|
|
614
|
+
# @param [Hash] opts the optional parameters
|
|
615
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
616
|
+
# @return [WebhookEndpointWithSecret]
|
|
617
|
+
def rotate_webhook_endpoint_secret(id, opts = {})
|
|
618
|
+
data, _status_code, _headers = rotate_webhook_endpoint_secret_with_http_info(id, opts)
|
|
619
|
+
data
|
|
620
|
+
end
|
|
621
|
+
|
|
622
|
+
# Roll the signing secret
|
|
623
|
+
# Mints a new signing secret and answers it **once**. The old secret stops verifying at once. A replay with the same `Idempotency-Key` does not rotate again and answers `secret: null`.
|
|
624
|
+
# @param id [String] The webhook endpoint's public id (`bwh_…`).
|
|
625
|
+
# @param [Hash] opts the optional parameters
|
|
626
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
627
|
+
# @return [Array<(WebhookEndpointWithSecret, Integer, Hash)>] WebhookEndpointWithSecret data, response status code and response headers
|
|
628
|
+
def rotate_webhook_endpoint_secret_with_http_info(id, opts = {})
|
|
629
|
+
if @api_client.config.debugging
|
|
630
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointsApi.rotate_webhook_endpoint_secret ...'
|
|
631
|
+
end
|
|
632
|
+
# verify the required parameter 'id' is set
|
|
633
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
634
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WebhookEndpointsApi.rotate_webhook_endpoint_secret"
|
|
635
|
+
end
|
|
636
|
+
pattern = Regexp.new(/^bwh_[0-9A-Za-z]+$/)
|
|
637
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
638
|
+
fail ArgumentError, "invalid value for 'id' when calling WebhookEndpointsApi.rotate_webhook_endpoint_secret, must conform to the pattern #{pattern}."
|
|
639
|
+
end
|
|
640
|
+
|
|
641
|
+
# resource path
|
|
642
|
+
local_var_path = '/webhook-endpoints/{id}/rotate-secret'.sub('{id}', CGI.escape(id.to_s))
|
|
643
|
+
|
|
644
|
+
# query parameters
|
|
645
|
+
query_params = opts[:query_params] || {}
|
|
646
|
+
|
|
647
|
+
# header parameters
|
|
648
|
+
header_params = opts[:header_params] || {}
|
|
649
|
+
# HTTP header 'Accept' (if needed)
|
|
650
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
651
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
652
|
+
|
|
653
|
+
# form parameters
|
|
654
|
+
form_params = opts[:form_params] || {}
|
|
655
|
+
|
|
656
|
+
# http body (model)
|
|
657
|
+
post_body = opts[:debug_body]
|
|
658
|
+
|
|
659
|
+
# return_type
|
|
660
|
+
return_type = opts[:debug_return_type] || 'WebhookEndpointWithSecret'
|
|
661
|
+
|
|
662
|
+
# auth_names
|
|
663
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
664
|
+
|
|
665
|
+
new_options = opts.merge(
|
|
666
|
+
:operation => :"WebhookEndpointsApi.rotate_webhook_endpoint_secret",
|
|
667
|
+
:header_params => header_params,
|
|
668
|
+
:query_params => query_params,
|
|
669
|
+
:form_params => form_params,
|
|
670
|
+
:body => post_body,
|
|
671
|
+
:auth_names => auth_names,
|
|
672
|
+
:return_type => return_type
|
|
673
|
+
)
|
|
674
|
+
|
|
675
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
676
|
+
if @api_client.config.debugging
|
|
677
|
+
@api_client.config.logger.debug "API called: WebhookEndpointsApi#rotate_webhook_endpoint_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
678
|
+
end
|
|
679
|
+
return data, status_code, headers
|
|
680
|
+
end
|
|
681
|
+
|
|
682
|
+
# Send a signed test ping
|
|
683
|
+
# Queues a signed `ping` event to the endpoint, so the wiring can be checked end to end. `202` with the queued delivery; follow it in the delivery log.
|
|
684
|
+
# @param id [String] The webhook endpoint's public id (`bwh_…`).
|
|
685
|
+
# @param [Hash] opts the optional parameters
|
|
686
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
687
|
+
# @return [WebhookDelivery]
|
|
688
|
+
def test_webhook_endpoint(id, opts = {})
|
|
689
|
+
data, _status_code, _headers = test_webhook_endpoint_with_http_info(id, opts)
|
|
690
|
+
data
|
|
691
|
+
end
|
|
692
|
+
|
|
693
|
+
# Send a signed test ping
|
|
694
|
+
# Queues a signed `ping` event to the endpoint, so the wiring can be checked end to end. `202` with the queued delivery; follow it in the delivery log.
|
|
695
|
+
# @param id [String] The webhook endpoint's public id (`bwh_…`).
|
|
696
|
+
# @param [Hash] opts the optional parameters
|
|
697
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
698
|
+
# @return [Array<(WebhookDelivery, Integer, Hash)>] WebhookDelivery data, response status code and response headers
|
|
699
|
+
def test_webhook_endpoint_with_http_info(id, opts = {})
|
|
700
|
+
if @api_client.config.debugging
|
|
701
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointsApi.test_webhook_endpoint ...'
|
|
702
|
+
end
|
|
703
|
+
# verify the required parameter 'id' is set
|
|
704
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
705
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WebhookEndpointsApi.test_webhook_endpoint"
|
|
706
|
+
end
|
|
707
|
+
pattern = Regexp.new(/^bwh_[0-9A-Za-z]+$/)
|
|
708
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
709
|
+
fail ArgumentError, "invalid value for 'id' when calling WebhookEndpointsApi.test_webhook_endpoint, must conform to the pattern #{pattern}."
|
|
710
|
+
end
|
|
711
|
+
|
|
712
|
+
# resource path
|
|
713
|
+
local_var_path = '/webhook-endpoints/{id}/test'.sub('{id}', CGI.escape(id.to_s))
|
|
714
|
+
|
|
715
|
+
# query parameters
|
|
716
|
+
query_params = opts[:query_params] || {}
|
|
717
|
+
|
|
718
|
+
# header parameters
|
|
719
|
+
header_params = opts[:header_params] || {}
|
|
720
|
+
# HTTP header 'Accept' (if needed)
|
|
721
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
722
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
723
|
+
|
|
724
|
+
# form parameters
|
|
725
|
+
form_params = opts[:form_params] || {}
|
|
726
|
+
|
|
727
|
+
# http body (model)
|
|
728
|
+
post_body = opts[:debug_body]
|
|
729
|
+
|
|
730
|
+
# return_type
|
|
731
|
+
return_type = opts[:debug_return_type] || 'WebhookDelivery'
|
|
732
|
+
|
|
733
|
+
# auth_names
|
|
734
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
735
|
+
|
|
736
|
+
new_options = opts.merge(
|
|
737
|
+
:operation => :"WebhookEndpointsApi.test_webhook_endpoint",
|
|
738
|
+
:header_params => header_params,
|
|
739
|
+
:query_params => query_params,
|
|
740
|
+
:form_params => form_params,
|
|
741
|
+
:body => post_body,
|
|
742
|
+
:auth_names => auth_names,
|
|
743
|
+
:return_type => return_type
|
|
744
|
+
)
|
|
745
|
+
|
|
746
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
747
|
+
if @api_client.config.debugging
|
|
748
|
+
@api_client.config.logger.debug "API called: WebhookEndpointsApi#test_webhook_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
749
|
+
end
|
|
750
|
+
return data, status_code, headers
|
|
751
|
+
end
|
|
752
|
+
|
|
753
|
+
# Replace an endpoint's URL, events, description and product filter
|
|
754
|
+
# Replaces all four, as the console's edit form does: an omitted `description` or `product` clears it. The secret is unchanged. The same `422` rules as registering apply.
|
|
755
|
+
# @param id [String] The webhook endpoint's public id (`bwh_…`).
|
|
756
|
+
# @param webhook_endpoint_request [WebhookEndpointRequest]
|
|
757
|
+
# @param [Hash] opts the optional parameters
|
|
758
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
759
|
+
# @return [WebhookEndpoint]
|
|
760
|
+
def update_webhook_endpoint(id, webhook_endpoint_request, opts = {})
|
|
761
|
+
data, _status_code, _headers = update_webhook_endpoint_with_http_info(id, webhook_endpoint_request, opts)
|
|
762
|
+
data
|
|
763
|
+
end
|
|
764
|
+
|
|
765
|
+
# Replace an endpoint's URL, events, description and product filter
|
|
766
|
+
# Replaces all four, as the console's edit form does: an omitted `description` or `product` clears it. The secret is unchanged. The same `422` rules as registering apply.
|
|
767
|
+
# @param id [String] The webhook endpoint's public id (`bwh_…`).
|
|
768
|
+
# @param webhook_endpoint_request [WebhookEndpointRequest]
|
|
769
|
+
# @param [Hash] opts the optional parameters
|
|
770
|
+
# @option opts [String] :idempotency_key An opaque, caller-generated key giving this write exactly-once semantics. A retry with the same key replays the first response instead of re-running the effect; reusing it with a different body is `409`.
|
|
771
|
+
# @return [Array<(WebhookEndpoint, Integer, Hash)>] WebhookEndpoint data, response status code and response headers
|
|
772
|
+
def update_webhook_endpoint_with_http_info(id, webhook_endpoint_request, opts = {})
|
|
773
|
+
if @api_client.config.debugging
|
|
774
|
+
@api_client.config.logger.debug 'Calling API: WebhookEndpointsApi.update_webhook_endpoint ...'
|
|
775
|
+
end
|
|
776
|
+
# verify the required parameter 'id' is set
|
|
777
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
778
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling WebhookEndpointsApi.update_webhook_endpoint"
|
|
779
|
+
end
|
|
780
|
+
pattern = Regexp.new(/^bwh_[0-9A-Za-z]+$/)
|
|
781
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
782
|
+
fail ArgumentError, "invalid value for 'id' when calling WebhookEndpointsApi.update_webhook_endpoint, must conform to the pattern #{pattern}."
|
|
783
|
+
end
|
|
784
|
+
|
|
785
|
+
# verify the required parameter 'webhook_endpoint_request' is set
|
|
786
|
+
if @api_client.config.client_side_validation && webhook_endpoint_request.nil?
|
|
787
|
+
fail ArgumentError, "Missing the required parameter 'webhook_endpoint_request' when calling WebhookEndpointsApi.update_webhook_endpoint"
|
|
788
|
+
end
|
|
789
|
+
# resource path
|
|
790
|
+
local_var_path = '/webhook-endpoints/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
791
|
+
|
|
792
|
+
# query parameters
|
|
793
|
+
query_params = opts[:query_params] || {}
|
|
794
|
+
|
|
795
|
+
# header parameters
|
|
796
|
+
header_params = opts[:header_params] || {}
|
|
797
|
+
# HTTP header 'Accept' (if needed)
|
|
798
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
799
|
+
# HTTP header 'Content-Type'
|
|
800
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
801
|
+
if !content_type.nil?
|
|
802
|
+
header_params['Content-Type'] = content_type
|
|
803
|
+
end
|
|
804
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
805
|
+
|
|
806
|
+
# form parameters
|
|
807
|
+
form_params = opts[:form_params] || {}
|
|
808
|
+
|
|
809
|
+
# http body (model)
|
|
810
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(webhook_endpoint_request)
|
|
811
|
+
|
|
812
|
+
# return_type
|
|
813
|
+
return_type = opts[:debug_return_type] || 'WebhookEndpoint'
|
|
814
|
+
|
|
815
|
+
# auth_names
|
|
816
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
817
|
+
|
|
818
|
+
new_options = opts.merge(
|
|
819
|
+
:operation => :"WebhookEndpointsApi.update_webhook_endpoint",
|
|
820
|
+
:header_params => header_params,
|
|
821
|
+
:query_params => query_params,
|
|
822
|
+
:form_params => form_params,
|
|
823
|
+
:body => post_body,
|
|
824
|
+
:auth_names => auth_names,
|
|
825
|
+
:return_type => return_type
|
|
826
|
+
)
|
|
827
|
+
|
|
828
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
829
|
+
if @api_client.config.debugging
|
|
830
|
+
@api_client.config.logger.debug "API called: WebhookEndpointsApi#update_webhook_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
831
|
+
end
|
|
832
|
+
return data, status_code, headers
|
|
833
|
+
end
|
|
834
|
+
end
|
|
835
|
+
end
|