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,1745 @@
|
|
|
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 OrdersAndDeliveryApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Upload or link a file
|
|
23
|
+
# Upload a file (multipart `file`, up to 2 GB) to private storage, or link one you host (`url`, https only). Either way a customer only reaches it through a signed, expiring link that counts the download. `plan` delivers it on that plan only.
|
|
24
|
+
# @param product [String] The product's key.
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @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`.
|
|
27
|
+
# @option opts [File] :file
|
|
28
|
+
# @option opts [String] :name
|
|
29
|
+
# @option opts [String] :plan
|
|
30
|
+
# @option opts [String] :version
|
|
31
|
+
# @return [ProductFile]
|
|
32
|
+
def add_product_file(product, opts = {})
|
|
33
|
+
data, _status_code, _headers = add_product_file_with_http_info(product, opts)
|
|
34
|
+
data
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Upload or link a file
|
|
38
|
+
# Upload a file (multipart `file`, up to 2 GB) to private storage, or link one you host (`url`, https only). Either way a customer only reaches it through a signed, expiring link that counts the download. `plan` delivers it on that plan only.
|
|
39
|
+
# @param product [String] The product's key.
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @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`.
|
|
42
|
+
# @option opts [File] :file
|
|
43
|
+
# @option opts [String] :name
|
|
44
|
+
# @option opts [String] :plan
|
|
45
|
+
# @option opts [String] :version
|
|
46
|
+
# @return [Array<(ProductFile, Integer, Hash)>] ProductFile data, response status code and response headers
|
|
47
|
+
def add_product_file_with_http_info(product, opts = {})
|
|
48
|
+
if @api_client.config.debugging
|
|
49
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.add_product_file ...'
|
|
50
|
+
end
|
|
51
|
+
# verify the required parameter 'product' is set
|
|
52
|
+
if @api_client.config.client_side_validation && product.nil?
|
|
53
|
+
fail ArgumentError, "Missing the required parameter 'product' when calling OrdersAndDeliveryApi.add_product_file"
|
|
54
|
+
end
|
|
55
|
+
# resource path
|
|
56
|
+
local_var_path = '/products/{product}/files'.sub('{product}', CGI.escape(product.to_s))
|
|
57
|
+
|
|
58
|
+
# query parameters
|
|
59
|
+
query_params = opts[:query_params] || {}
|
|
60
|
+
|
|
61
|
+
# header parameters
|
|
62
|
+
header_params = opts[:header_params] || {}
|
|
63
|
+
# HTTP header 'Accept' (if needed)
|
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
65
|
+
# HTTP header 'Content-Type'
|
|
66
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data', 'application/json'])
|
|
67
|
+
if !content_type.nil?
|
|
68
|
+
header_params['Content-Type'] = content_type
|
|
69
|
+
end
|
|
70
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
71
|
+
|
|
72
|
+
# form parameters
|
|
73
|
+
form_params = opts[:form_params] || {}
|
|
74
|
+
form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
|
|
75
|
+
form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
76
|
+
form_params['plan'] = opts[:'plan'] if !opts[:'plan'].nil?
|
|
77
|
+
form_params['version'] = opts[:'version'] if !opts[:'version'].nil?
|
|
78
|
+
|
|
79
|
+
# http body (model)
|
|
80
|
+
post_body = opts[:debug_body]
|
|
81
|
+
|
|
82
|
+
# return_type
|
|
83
|
+
return_type = opts[:debug_return_type] || 'ProductFile'
|
|
84
|
+
|
|
85
|
+
# auth_names
|
|
86
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
87
|
+
|
|
88
|
+
new_options = opts.merge(
|
|
89
|
+
:operation => :"OrdersAndDeliveryApi.add_product_file",
|
|
90
|
+
:header_params => header_params,
|
|
91
|
+
:query_params => query_params,
|
|
92
|
+
:form_params => form_params,
|
|
93
|
+
:body => post_body,
|
|
94
|
+
:auth_names => auth_names,
|
|
95
|
+
:return_type => return_type
|
|
96
|
+
)
|
|
97
|
+
|
|
98
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
99
|
+
if @api_client.config.debugging
|
|
100
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#add_product_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
101
|
+
end
|
|
102
|
+
return data, status_code, headers
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Archive a file
|
|
106
|
+
# Stop offering the file. Its download history stays.
|
|
107
|
+
# @param id [String] The file's public id (`pfil_…`).
|
|
108
|
+
# @param [Hash] opts the optional parameters
|
|
109
|
+
# @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`.
|
|
110
|
+
# @return [ProductFile]
|
|
111
|
+
def archive_product_file(id, opts = {})
|
|
112
|
+
data, _status_code, _headers = archive_product_file_with_http_info(id, opts)
|
|
113
|
+
data
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Archive a file
|
|
117
|
+
# Stop offering the file. Its download history stays.
|
|
118
|
+
# @param id [String] The file's public id (`pfil_…`).
|
|
119
|
+
# @param [Hash] opts the optional parameters
|
|
120
|
+
# @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`.
|
|
121
|
+
# @return [Array<(ProductFile, Integer, Hash)>] ProductFile data, response status code and response headers
|
|
122
|
+
def archive_product_file_with_http_info(id, opts = {})
|
|
123
|
+
if @api_client.config.debugging
|
|
124
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.archive_product_file ...'
|
|
125
|
+
end
|
|
126
|
+
# verify the required parameter 'id' is set
|
|
127
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
128
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrdersAndDeliveryApi.archive_product_file"
|
|
129
|
+
end
|
|
130
|
+
pattern = Regexp.new(/^pfil_[0-9A-Za-z]+$/)
|
|
131
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
132
|
+
fail ArgumentError, "invalid value for 'id' when calling OrdersAndDeliveryApi.archive_product_file, must conform to the pattern #{pattern}."
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# resource path
|
|
136
|
+
local_var_path = '/files/{id}/archive'.sub('{id}', CGI.escape(id.to_s))
|
|
137
|
+
|
|
138
|
+
# query parameters
|
|
139
|
+
query_params = opts[:query_params] || {}
|
|
140
|
+
|
|
141
|
+
# header parameters
|
|
142
|
+
header_params = opts[:header_params] || {}
|
|
143
|
+
# HTTP header 'Accept' (if needed)
|
|
144
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
145
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
146
|
+
|
|
147
|
+
# form parameters
|
|
148
|
+
form_params = opts[:form_params] || {}
|
|
149
|
+
|
|
150
|
+
# http body (model)
|
|
151
|
+
post_body = opts[:debug_body]
|
|
152
|
+
|
|
153
|
+
# return_type
|
|
154
|
+
return_type = opts[:debug_return_type] || 'ProductFile'
|
|
155
|
+
|
|
156
|
+
# auth_names
|
|
157
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
158
|
+
|
|
159
|
+
new_options = opts.merge(
|
|
160
|
+
:operation => :"OrdersAndDeliveryApi.archive_product_file",
|
|
161
|
+
:header_params => header_params,
|
|
162
|
+
:query_params => query_params,
|
|
163
|
+
:form_params => form_params,
|
|
164
|
+
:body => post_body,
|
|
165
|
+
:auth_names => auth_names,
|
|
166
|
+
:return_type => return_type
|
|
167
|
+
)
|
|
168
|
+
|
|
169
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
170
|
+
if @api_client.config.debugging
|
|
171
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#archive_product_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
172
|
+
end
|
|
173
|
+
return data, status_code, headers
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Grant a customer a product's files
|
|
177
|
+
# By hand, without an order, such as a replacement or a gift.
|
|
178
|
+
# @param create_download_grant_request [CreateDownloadGrantRequest]
|
|
179
|
+
# @param [Hash] opts the optional parameters
|
|
180
|
+
# @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`.
|
|
181
|
+
# @return [DownloadGrant]
|
|
182
|
+
def create_download_grant(create_download_grant_request, opts = {})
|
|
183
|
+
data, _status_code, _headers = create_download_grant_with_http_info(create_download_grant_request, opts)
|
|
184
|
+
data
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Grant a customer a product's files
|
|
188
|
+
# By hand, without an order, such as a replacement or a gift.
|
|
189
|
+
# @param create_download_grant_request [CreateDownloadGrantRequest]
|
|
190
|
+
# @param [Hash] opts the optional parameters
|
|
191
|
+
# @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`.
|
|
192
|
+
# @return [Array<(DownloadGrant, Integer, Hash)>] DownloadGrant data, response status code and response headers
|
|
193
|
+
def create_download_grant_with_http_info(create_download_grant_request, opts = {})
|
|
194
|
+
if @api_client.config.debugging
|
|
195
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.create_download_grant ...'
|
|
196
|
+
end
|
|
197
|
+
# verify the required parameter 'create_download_grant_request' is set
|
|
198
|
+
if @api_client.config.client_side_validation && create_download_grant_request.nil?
|
|
199
|
+
fail ArgumentError, "Missing the required parameter 'create_download_grant_request' when calling OrdersAndDeliveryApi.create_download_grant"
|
|
200
|
+
end
|
|
201
|
+
# resource path
|
|
202
|
+
local_var_path = '/download-grants'
|
|
203
|
+
|
|
204
|
+
# query parameters
|
|
205
|
+
query_params = opts[:query_params] || {}
|
|
206
|
+
|
|
207
|
+
# header parameters
|
|
208
|
+
header_params = opts[:header_params] || {}
|
|
209
|
+
# HTTP header 'Accept' (if needed)
|
|
210
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
211
|
+
# HTTP header 'Content-Type'
|
|
212
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
213
|
+
if !content_type.nil?
|
|
214
|
+
header_params['Content-Type'] = content_type
|
|
215
|
+
end
|
|
216
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
217
|
+
|
|
218
|
+
# form parameters
|
|
219
|
+
form_params = opts[:form_params] || {}
|
|
220
|
+
|
|
221
|
+
# http body (model)
|
|
222
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_download_grant_request)
|
|
223
|
+
|
|
224
|
+
# return_type
|
|
225
|
+
return_type = opts[:debug_return_type] || 'DownloadGrant'
|
|
226
|
+
|
|
227
|
+
# auth_names
|
|
228
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
229
|
+
|
|
230
|
+
new_options = opts.merge(
|
|
231
|
+
:operation => :"OrdersAndDeliveryApi.create_download_grant",
|
|
232
|
+
:header_params => header_params,
|
|
233
|
+
:query_params => query_params,
|
|
234
|
+
:form_params => form_params,
|
|
235
|
+
:body => post_body,
|
|
236
|
+
:auth_names => auth_names,
|
|
237
|
+
:return_type => return_type
|
|
238
|
+
)
|
|
239
|
+
|
|
240
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
241
|
+
if @api_client.config.debugging
|
|
242
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#create_download_grant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
243
|
+
end
|
|
244
|
+
return data, status_code, headers
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# Signed download links for a grant
|
|
248
|
+
# A signed link to each file the grant gives, for your own app or mail to hand the customer. They live `minutes` (5 to 10080, default 60). Following one counts a download; a file with no downloads left has no link. A closed grant is `409`.
|
|
249
|
+
# @param id [String] The download grant's public id (`dlg_…`).
|
|
250
|
+
# @param [Hash] opts the optional parameters
|
|
251
|
+
# @option opts [CreateDownloadLinksRequest] :create_download_links_request
|
|
252
|
+
# @return [CreateDownloadLinks200Response]
|
|
253
|
+
def create_download_links(id, opts = {})
|
|
254
|
+
data, _status_code, _headers = create_download_links_with_http_info(id, opts)
|
|
255
|
+
data
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
# Signed download links for a grant
|
|
259
|
+
# A signed link to each file the grant gives, for your own app or mail to hand the customer. They live `minutes` (5 to 10080, default 60). Following one counts a download; a file with no downloads left has no link. A closed grant is `409`.
|
|
260
|
+
# @param id [String] The download grant's public id (`dlg_…`).
|
|
261
|
+
# @param [Hash] opts the optional parameters
|
|
262
|
+
# @option opts [CreateDownloadLinksRequest] :create_download_links_request
|
|
263
|
+
# @return [Array<(CreateDownloadLinks200Response, Integer, Hash)>] CreateDownloadLinks200Response data, response status code and response headers
|
|
264
|
+
def create_download_links_with_http_info(id, opts = {})
|
|
265
|
+
if @api_client.config.debugging
|
|
266
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.create_download_links ...'
|
|
267
|
+
end
|
|
268
|
+
# verify the required parameter 'id' is set
|
|
269
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
270
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrdersAndDeliveryApi.create_download_links"
|
|
271
|
+
end
|
|
272
|
+
pattern = Regexp.new(/^dlg_[0-9A-Za-z]+$/)
|
|
273
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
274
|
+
fail ArgumentError, "invalid value for 'id' when calling OrdersAndDeliveryApi.create_download_links, must conform to the pattern #{pattern}."
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# resource path
|
|
278
|
+
local_var_path = '/download-grants/{id}/links'.sub('{id}', CGI.escape(id.to_s))
|
|
279
|
+
|
|
280
|
+
# query parameters
|
|
281
|
+
query_params = opts[:query_params] || {}
|
|
282
|
+
|
|
283
|
+
# header parameters
|
|
284
|
+
header_params = opts[:header_params] || {}
|
|
285
|
+
# HTTP header 'Accept' (if needed)
|
|
286
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
287
|
+
# HTTP header 'Content-Type'
|
|
288
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
289
|
+
if !content_type.nil?
|
|
290
|
+
header_params['Content-Type'] = content_type
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
# form parameters
|
|
294
|
+
form_params = opts[:form_params] || {}
|
|
295
|
+
|
|
296
|
+
# http body (model)
|
|
297
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_download_links_request'])
|
|
298
|
+
|
|
299
|
+
# return_type
|
|
300
|
+
return_type = opts[:debug_return_type] || 'CreateDownloadLinks200Response'
|
|
301
|
+
|
|
302
|
+
# auth_names
|
|
303
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
304
|
+
|
|
305
|
+
new_options = opts.merge(
|
|
306
|
+
:operation => :"OrdersAndDeliveryApi.create_download_links",
|
|
307
|
+
:header_params => header_params,
|
|
308
|
+
:query_params => query_params,
|
|
309
|
+
:form_params => form_params,
|
|
310
|
+
:body => post_body,
|
|
311
|
+
:auth_names => auth_names,
|
|
312
|
+
:return_type => return_type
|
|
313
|
+
)
|
|
314
|
+
|
|
315
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
316
|
+
if @api_client.config.debugging
|
|
317
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#create_download_links\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
318
|
+
end
|
|
319
|
+
return data, status_code, headers
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
# Create a license key
|
|
323
|
+
# A key by hand for a customer and a product. `key` keeps a key you already gave out; without it a new UUID is minted.
|
|
324
|
+
# @param create_license_key_request [CreateLicenseKeyRequest]
|
|
325
|
+
# @param [Hash] opts the optional parameters
|
|
326
|
+
# @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`.
|
|
327
|
+
# @return [LicenseKeyDetail]
|
|
328
|
+
def create_license_key(create_license_key_request, opts = {})
|
|
329
|
+
data, _status_code, _headers = create_license_key_with_http_info(create_license_key_request, opts)
|
|
330
|
+
data
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
# Create a license key
|
|
334
|
+
# A key by hand for a customer and a product. `key` keeps a key you already gave out; without it a new UUID is minted.
|
|
335
|
+
# @param create_license_key_request [CreateLicenseKeyRequest]
|
|
336
|
+
# @param [Hash] opts the optional parameters
|
|
337
|
+
# @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`.
|
|
338
|
+
# @return [Array<(LicenseKeyDetail, Integer, Hash)>] LicenseKeyDetail data, response status code and response headers
|
|
339
|
+
def create_license_key_with_http_info(create_license_key_request, opts = {})
|
|
340
|
+
if @api_client.config.debugging
|
|
341
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.create_license_key ...'
|
|
342
|
+
end
|
|
343
|
+
# verify the required parameter 'create_license_key_request' is set
|
|
344
|
+
if @api_client.config.client_side_validation && create_license_key_request.nil?
|
|
345
|
+
fail ArgumentError, "Missing the required parameter 'create_license_key_request' when calling OrdersAndDeliveryApi.create_license_key"
|
|
346
|
+
end
|
|
347
|
+
# resource path
|
|
348
|
+
local_var_path = '/license-keys'
|
|
349
|
+
|
|
350
|
+
# query parameters
|
|
351
|
+
query_params = opts[:query_params] || {}
|
|
352
|
+
|
|
353
|
+
# header parameters
|
|
354
|
+
header_params = opts[:header_params] || {}
|
|
355
|
+
# HTTP header 'Accept' (if needed)
|
|
356
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
357
|
+
# HTTP header 'Content-Type'
|
|
358
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
359
|
+
if !content_type.nil?
|
|
360
|
+
header_params['Content-Type'] = content_type
|
|
361
|
+
end
|
|
362
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
363
|
+
|
|
364
|
+
# form parameters
|
|
365
|
+
form_params = opts[:form_params] || {}
|
|
366
|
+
|
|
367
|
+
# http body (model)
|
|
368
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_license_key_request)
|
|
369
|
+
|
|
370
|
+
# return_type
|
|
371
|
+
return_type = opts[:debug_return_type] || 'LicenseKeyDetail'
|
|
372
|
+
|
|
373
|
+
# auth_names
|
|
374
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
375
|
+
|
|
376
|
+
new_options = opts.merge(
|
|
377
|
+
:operation => :"OrdersAndDeliveryApi.create_license_key",
|
|
378
|
+
:header_params => header_params,
|
|
379
|
+
:query_params => query_params,
|
|
380
|
+
:form_params => form_params,
|
|
381
|
+
:body => post_body,
|
|
382
|
+
:auth_names => auth_names,
|
|
383
|
+
:return_type => return_type
|
|
384
|
+
)
|
|
385
|
+
|
|
386
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
387
|
+
if @api_client.config.debugging
|
|
388
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#create_license_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
389
|
+
end
|
|
390
|
+
return data, status_code, headers
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
# Record an order
|
|
394
|
+
# Record a sale another system made, such as a Stripe Managed Payments checkout, or one made by hand. Lines name products (and plans) by key. A paid order delivers what its products deliver: license keys, downloads and the delivery mail. Idempotent on `external_id`: the same sale reported again answers `200` with the order it made the first time.
|
|
395
|
+
# @param create_order_request [CreateOrderRequest]
|
|
396
|
+
# @param [Hash] opts the optional parameters
|
|
397
|
+
# @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`.
|
|
398
|
+
# @return [Order]
|
|
399
|
+
def create_order(create_order_request, opts = {})
|
|
400
|
+
data, _status_code, _headers = create_order_with_http_info(create_order_request, opts)
|
|
401
|
+
data
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
# Record an order
|
|
405
|
+
# Record a sale another system made, such as a Stripe Managed Payments checkout, or one made by hand. Lines name products (and plans) by key. A paid order delivers what its products deliver: license keys, downloads and the delivery mail. Idempotent on `external_id`: the same sale reported again answers `200` with the order it made the first time.
|
|
406
|
+
# @param create_order_request [CreateOrderRequest]
|
|
407
|
+
# @param [Hash] opts the optional parameters
|
|
408
|
+
# @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`.
|
|
409
|
+
# @return [Array<(Order, Integer, Hash)>] Order data, response status code and response headers
|
|
410
|
+
def create_order_with_http_info(create_order_request, opts = {})
|
|
411
|
+
if @api_client.config.debugging
|
|
412
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.create_order ...'
|
|
413
|
+
end
|
|
414
|
+
# verify the required parameter 'create_order_request' is set
|
|
415
|
+
if @api_client.config.client_side_validation && create_order_request.nil?
|
|
416
|
+
fail ArgumentError, "Missing the required parameter 'create_order_request' when calling OrdersAndDeliveryApi.create_order"
|
|
417
|
+
end
|
|
418
|
+
# resource path
|
|
419
|
+
local_var_path = '/orders'
|
|
420
|
+
|
|
421
|
+
# query parameters
|
|
422
|
+
query_params = opts[:query_params] || {}
|
|
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
|
+
# HTTP header 'Content-Type'
|
|
429
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
430
|
+
if !content_type.nil?
|
|
431
|
+
header_params['Content-Type'] = content_type
|
|
432
|
+
end
|
|
433
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
434
|
+
|
|
435
|
+
# form parameters
|
|
436
|
+
form_params = opts[:form_params] || {}
|
|
437
|
+
|
|
438
|
+
# http body (model)
|
|
439
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_order_request)
|
|
440
|
+
|
|
441
|
+
# return_type
|
|
442
|
+
return_type = opts[:debug_return_type] || 'Order'
|
|
443
|
+
|
|
444
|
+
# auth_names
|
|
445
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
446
|
+
|
|
447
|
+
new_options = opts.merge(
|
|
448
|
+
:operation => :"OrdersAndDeliveryApi.create_order",
|
|
449
|
+
:header_params => header_params,
|
|
450
|
+
:query_params => query_params,
|
|
451
|
+
:form_params => form_params,
|
|
452
|
+
:body => post_body,
|
|
453
|
+
:auth_names => auth_names,
|
|
454
|
+
:return_type => return_type
|
|
455
|
+
)
|
|
456
|
+
|
|
457
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
458
|
+
if @api_client.config.debugging
|
|
459
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#create_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
460
|
+
end
|
|
461
|
+
return data, status_code, headers
|
|
462
|
+
end
|
|
463
|
+
|
|
464
|
+
# Free one activation of a key
|
|
465
|
+
# Name the instance by its public id (`lki_…`) or the `instance_id` the app holds.
|
|
466
|
+
# @param id [String] The license key's public id (`lk_…`).
|
|
467
|
+
# @param instance [String]
|
|
468
|
+
# @param [Hash] opts the optional parameters
|
|
469
|
+
# @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`.
|
|
470
|
+
# @return [LicenseKeyDetail]
|
|
471
|
+
def deactivate_license_key_instance(id, instance, opts = {})
|
|
472
|
+
data, _status_code, _headers = deactivate_license_key_instance_with_http_info(id, instance, opts)
|
|
473
|
+
data
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
# Free one activation of a key
|
|
477
|
+
# Name the instance by its public id (`lki_…`) or the `instance_id` the app holds.
|
|
478
|
+
# @param id [String] The license key's public id (`lk_…`).
|
|
479
|
+
# @param instance [String]
|
|
480
|
+
# @param [Hash] opts the optional parameters
|
|
481
|
+
# @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`.
|
|
482
|
+
# @return [Array<(LicenseKeyDetail, Integer, Hash)>] LicenseKeyDetail data, response status code and response headers
|
|
483
|
+
def deactivate_license_key_instance_with_http_info(id, instance, opts = {})
|
|
484
|
+
if @api_client.config.debugging
|
|
485
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.deactivate_license_key_instance ...'
|
|
486
|
+
end
|
|
487
|
+
# verify the required parameter 'id' is set
|
|
488
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
489
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrdersAndDeliveryApi.deactivate_license_key_instance"
|
|
490
|
+
end
|
|
491
|
+
pattern = Regexp.new(/^lk_[0-9A-Za-z]+$/)
|
|
492
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
493
|
+
fail ArgumentError, "invalid value for 'id' when calling OrdersAndDeliveryApi.deactivate_license_key_instance, must conform to the pattern #{pattern}."
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
# verify the required parameter 'instance' is set
|
|
497
|
+
if @api_client.config.client_side_validation && instance.nil?
|
|
498
|
+
fail ArgumentError, "Missing the required parameter 'instance' when calling OrdersAndDeliveryApi.deactivate_license_key_instance"
|
|
499
|
+
end
|
|
500
|
+
# resource path
|
|
501
|
+
local_var_path = '/license-keys/{id}/instances/{instance}'.sub('{id}', CGI.escape(id.to_s)).sub('{instance}', CGI.escape(instance.to_s))
|
|
502
|
+
|
|
503
|
+
# query parameters
|
|
504
|
+
query_params = opts[:query_params] || {}
|
|
505
|
+
|
|
506
|
+
# header parameters
|
|
507
|
+
header_params = opts[:header_params] || {}
|
|
508
|
+
# HTTP header 'Accept' (if needed)
|
|
509
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
510
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
511
|
+
|
|
512
|
+
# form parameters
|
|
513
|
+
form_params = opts[:form_params] || {}
|
|
514
|
+
|
|
515
|
+
# http body (model)
|
|
516
|
+
post_body = opts[:debug_body]
|
|
517
|
+
|
|
518
|
+
# return_type
|
|
519
|
+
return_type = opts[:debug_return_type] || 'LicenseKeyDetail'
|
|
520
|
+
|
|
521
|
+
# auth_names
|
|
522
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
523
|
+
|
|
524
|
+
new_options = opts.merge(
|
|
525
|
+
:operation => :"OrdersAndDeliveryApi.deactivate_license_key_instance",
|
|
526
|
+
:header_params => header_params,
|
|
527
|
+
:query_params => query_params,
|
|
528
|
+
:form_params => form_params,
|
|
529
|
+
:body => post_body,
|
|
530
|
+
:auth_names => auth_names,
|
|
531
|
+
:return_type => return_type
|
|
532
|
+
)
|
|
533
|
+
|
|
534
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
535
|
+
if @api_client.config.debugging
|
|
536
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#deactivate_license_key_instance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
537
|
+
end
|
|
538
|
+
return data, status_code, headers
|
|
539
|
+
end
|
|
540
|
+
|
|
541
|
+
# Disable a license key
|
|
542
|
+
# The key stops validating and cannot be activated. Its instances are kept.
|
|
543
|
+
# @param id [String] The license key's public id (`lk_…`).
|
|
544
|
+
# @param [Hash] opts the optional parameters
|
|
545
|
+
# @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`.
|
|
546
|
+
# @option opts [DisableLicenseKeyRequest] :disable_license_key_request
|
|
547
|
+
# @return [LicenseKeyDetail]
|
|
548
|
+
def disable_license_key(id, opts = {})
|
|
549
|
+
data, _status_code, _headers = disable_license_key_with_http_info(id, opts)
|
|
550
|
+
data
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
# Disable a license key
|
|
554
|
+
# The key stops validating and cannot be activated. Its instances are kept.
|
|
555
|
+
# @param id [String] The license key's public id (`lk_…`).
|
|
556
|
+
# @param [Hash] opts the optional parameters
|
|
557
|
+
# @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`.
|
|
558
|
+
# @option opts [DisableLicenseKeyRequest] :disable_license_key_request
|
|
559
|
+
# @return [Array<(LicenseKeyDetail, Integer, Hash)>] LicenseKeyDetail data, response status code and response headers
|
|
560
|
+
def disable_license_key_with_http_info(id, opts = {})
|
|
561
|
+
if @api_client.config.debugging
|
|
562
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.disable_license_key ...'
|
|
563
|
+
end
|
|
564
|
+
# verify the required parameter 'id' is set
|
|
565
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
566
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrdersAndDeliveryApi.disable_license_key"
|
|
567
|
+
end
|
|
568
|
+
pattern = Regexp.new(/^lk_[0-9A-Za-z]+$/)
|
|
569
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
570
|
+
fail ArgumentError, "invalid value for 'id' when calling OrdersAndDeliveryApi.disable_license_key, must conform to the pattern #{pattern}."
|
|
571
|
+
end
|
|
572
|
+
|
|
573
|
+
# resource path
|
|
574
|
+
local_var_path = '/license-keys/{id}/disable'.sub('{id}', CGI.escape(id.to_s))
|
|
575
|
+
|
|
576
|
+
# query parameters
|
|
577
|
+
query_params = opts[:query_params] || {}
|
|
578
|
+
|
|
579
|
+
# header parameters
|
|
580
|
+
header_params = opts[:header_params] || {}
|
|
581
|
+
# HTTP header 'Accept' (if needed)
|
|
582
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
583
|
+
# HTTP header 'Content-Type'
|
|
584
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
585
|
+
if !content_type.nil?
|
|
586
|
+
header_params['Content-Type'] = content_type
|
|
587
|
+
end
|
|
588
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
589
|
+
|
|
590
|
+
# form parameters
|
|
591
|
+
form_params = opts[:form_params] || {}
|
|
592
|
+
|
|
593
|
+
# http body (model)
|
|
594
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'disable_license_key_request'])
|
|
595
|
+
|
|
596
|
+
# return_type
|
|
597
|
+
return_type = opts[:debug_return_type] || 'LicenseKeyDetail'
|
|
598
|
+
|
|
599
|
+
# auth_names
|
|
600
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
601
|
+
|
|
602
|
+
new_options = opts.merge(
|
|
603
|
+
:operation => :"OrdersAndDeliveryApi.disable_license_key",
|
|
604
|
+
:header_params => header_params,
|
|
605
|
+
:query_params => query_params,
|
|
606
|
+
:form_params => form_params,
|
|
607
|
+
:body => post_body,
|
|
608
|
+
:auth_names => auth_names,
|
|
609
|
+
:return_type => return_type
|
|
610
|
+
)
|
|
611
|
+
|
|
612
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
613
|
+
if @api_client.config.debugging
|
|
614
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#disable_license_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
615
|
+
end
|
|
616
|
+
return data, status_code, headers
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
# Enable a disabled license key
|
|
620
|
+
# @param id [String] The license key's public id (`lk_…`).
|
|
621
|
+
# @param [Hash] opts the optional parameters
|
|
622
|
+
# @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`.
|
|
623
|
+
# @return [LicenseKeyDetail]
|
|
624
|
+
def enable_license_key(id, opts = {})
|
|
625
|
+
data, _status_code, _headers = enable_license_key_with_http_info(id, opts)
|
|
626
|
+
data
|
|
627
|
+
end
|
|
628
|
+
|
|
629
|
+
# Enable a disabled license key
|
|
630
|
+
# @param id [String] The license key's public id (`lk_…`).
|
|
631
|
+
# @param [Hash] opts the optional parameters
|
|
632
|
+
# @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`.
|
|
633
|
+
# @return [Array<(LicenseKeyDetail, Integer, Hash)>] LicenseKeyDetail data, response status code and response headers
|
|
634
|
+
def enable_license_key_with_http_info(id, opts = {})
|
|
635
|
+
if @api_client.config.debugging
|
|
636
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.enable_license_key ...'
|
|
637
|
+
end
|
|
638
|
+
# verify the required parameter 'id' is set
|
|
639
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
640
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrdersAndDeliveryApi.enable_license_key"
|
|
641
|
+
end
|
|
642
|
+
pattern = Regexp.new(/^lk_[0-9A-Za-z]+$/)
|
|
643
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
644
|
+
fail ArgumentError, "invalid value for 'id' when calling OrdersAndDeliveryApi.enable_license_key, must conform to the pattern #{pattern}."
|
|
645
|
+
end
|
|
646
|
+
|
|
647
|
+
# resource path
|
|
648
|
+
local_var_path = '/license-keys/{id}/enable'.sub('{id}', CGI.escape(id.to_s))
|
|
649
|
+
|
|
650
|
+
# query parameters
|
|
651
|
+
query_params = opts[:query_params] || {}
|
|
652
|
+
|
|
653
|
+
# header parameters
|
|
654
|
+
header_params = opts[:header_params] || {}
|
|
655
|
+
# HTTP header 'Accept' (if needed)
|
|
656
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
657
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
658
|
+
|
|
659
|
+
# form parameters
|
|
660
|
+
form_params = opts[:form_params] || {}
|
|
661
|
+
|
|
662
|
+
# http body (model)
|
|
663
|
+
post_body = opts[:debug_body]
|
|
664
|
+
|
|
665
|
+
# return_type
|
|
666
|
+
return_type = opts[:debug_return_type] || 'LicenseKeyDetail'
|
|
667
|
+
|
|
668
|
+
# auth_names
|
|
669
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
670
|
+
|
|
671
|
+
new_options = opts.merge(
|
|
672
|
+
:operation => :"OrdersAndDeliveryApi.enable_license_key",
|
|
673
|
+
:header_params => header_params,
|
|
674
|
+
:query_params => query_params,
|
|
675
|
+
:form_params => form_params,
|
|
676
|
+
:body => post_body,
|
|
677
|
+
:auth_names => auth_names,
|
|
678
|
+
:return_type => return_type
|
|
679
|
+
)
|
|
680
|
+
|
|
681
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
682
|
+
if @api_client.config.debugging
|
|
683
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#enable_license_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
684
|
+
end
|
|
685
|
+
return data, status_code, headers
|
|
686
|
+
end
|
|
687
|
+
|
|
688
|
+
# Drop a plan's own delivery settings
|
|
689
|
+
# The product's settings apply to the plan again.
|
|
690
|
+
# @param product [String] The product's key.
|
|
691
|
+
# @param plan [String]
|
|
692
|
+
# @param [Hash] opts the optional parameters
|
|
693
|
+
# @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`.
|
|
694
|
+
# @return [nil]
|
|
695
|
+
def forget_plan_delivery(product, plan, opts = {})
|
|
696
|
+
forget_plan_delivery_with_http_info(product, plan, opts)
|
|
697
|
+
nil
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
# Drop a plan's own delivery settings
|
|
701
|
+
# The product's settings apply to the plan again.
|
|
702
|
+
# @param product [String] The product's key.
|
|
703
|
+
# @param plan [String]
|
|
704
|
+
# @param [Hash] opts the optional parameters
|
|
705
|
+
# @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`.
|
|
706
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
707
|
+
def forget_plan_delivery_with_http_info(product, plan, opts = {})
|
|
708
|
+
if @api_client.config.debugging
|
|
709
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.forget_plan_delivery ...'
|
|
710
|
+
end
|
|
711
|
+
# verify the required parameter 'product' is set
|
|
712
|
+
if @api_client.config.client_side_validation && product.nil?
|
|
713
|
+
fail ArgumentError, "Missing the required parameter 'product' when calling OrdersAndDeliveryApi.forget_plan_delivery"
|
|
714
|
+
end
|
|
715
|
+
# verify the required parameter 'plan' is set
|
|
716
|
+
if @api_client.config.client_side_validation && plan.nil?
|
|
717
|
+
fail ArgumentError, "Missing the required parameter 'plan' when calling OrdersAndDeliveryApi.forget_plan_delivery"
|
|
718
|
+
end
|
|
719
|
+
# resource path
|
|
720
|
+
local_var_path = '/products/{product}/delivery'.sub('{product}', CGI.escape(product.to_s))
|
|
721
|
+
|
|
722
|
+
# query parameters
|
|
723
|
+
query_params = opts[:query_params] || {}
|
|
724
|
+
query_params[:'plan'] = plan
|
|
725
|
+
|
|
726
|
+
# header parameters
|
|
727
|
+
header_params = opts[:header_params] || {}
|
|
728
|
+
# HTTP header 'Accept' (if needed)
|
|
729
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
730
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
731
|
+
|
|
732
|
+
# form parameters
|
|
733
|
+
form_params = opts[:form_params] || {}
|
|
734
|
+
|
|
735
|
+
# http body (model)
|
|
736
|
+
post_body = opts[:debug_body]
|
|
737
|
+
|
|
738
|
+
# return_type
|
|
739
|
+
return_type = opts[:debug_return_type]
|
|
740
|
+
|
|
741
|
+
# auth_names
|
|
742
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
743
|
+
|
|
744
|
+
new_options = opts.merge(
|
|
745
|
+
:operation => :"OrdersAndDeliveryApi.forget_plan_delivery",
|
|
746
|
+
:header_params => header_params,
|
|
747
|
+
:query_params => query_params,
|
|
748
|
+
:form_params => form_params,
|
|
749
|
+
:body => post_body,
|
|
750
|
+
:auth_names => auth_names,
|
|
751
|
+
:return_type => return_type
|
|
752
|
+
)
|
|
753
|
+
|
|
754
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
755
|
+
if @api_client.config.debugging
|
|
756
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#forget_plan_delivery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
757
|
+
end
|
|
758
|
+
return data, status_code, headers
|
|
759
|
+
end
|
|
760
|
+
|
|
761
|
+
# Show a download grant
|
|
762
|
+
# @param id [String] The download grant's public id (`dlg_…`).
|
|
763
|
+
# @param [Hash] opts the optional parameters
|
|
764
|
+
# @return [DownloadGrant]
|
|
765
|
+
def get_download_grant(id, opts = {})
|
|
766
|
+
data, _status_code, _headers = get_download_grant_with_http_info(id, opts)
|
|
767
|
+
data
|
|
768
|
+
end
|
|
769
|
+
|
|
770
|
+
# Show a download grant
|
|
771
|
+
# @param id [String] The download grant's public id (`dlg_…`).
|
|
772
|
+
# @param [Hash] opts the optional parameters
|
|
773
|
+
# @return [Array<(DownloadGrant, Integer, Hash)>] DownloadGrant data, response status code and response headers
|
|
774
|
+
def get_download_grant_with_http_info(id, opts = {})
|
|
775
|
+
if @api_client.config.debugging
|
|
776
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.get_download_grant ...'
|
|
777
|
+
end
|
|
778
|
+
# verify the required parameter 'id' is set
|
|
779
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
780
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrdersAndDeliveryApi.get_download_grant"
|
|
781
|
+
end
|
|
782
|
+
pattern = Regexp.new(/^dlg_[0-9A-Za-z]+$/)
|
|
783
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
784
|
+
fail ArgumentError, "invalid value for 'id' when calling OrdersAndDeliveryApi.get_download_grant, must conform to the pattern #{pattern}."
|
|
785
|
+
end
|
|
786
|
+
|
|
787
|
+
# resource path
|
|
788
|
+
local_var_path = '/download-grants/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
789
|
+
|
|
790
|
+
# query parameters
|
|
791
|
+
query_params = opts[:query_params] || {}
|
|
792
|
+
|
|
793
|
+
# header parameters
|
|
794
|
+
header_params = opts[:header_params] || {}
|
|
795
|
+
# HTTP header 'Accept' (if needed)
|
|
796
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
797
|
+
|
|
798
|
+
# form parameters
|
|
799
|
+
form_params = opts[:form_params] || {}
|
|
800
|
+
|
|
801
|
+
# http body (model)
|
|
802
|
+
post_body = opts[:debug_body]
|
|
803
|
+
|
|
804
|
+
# return_type
|
|
805
|
+
return_type = opts[:debug_return_type] || 'DownloadGrant'
|
|
806
|
+
|
|
807
|
+
# auth_names
|
|
808
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
809
|
+
|
|
810
|
+
new_options = opts.merge(
|
|
811
|
+
:operation => :"OrdersAndDeliveryApi.get_download_grant",
|
|
812
|
+
:header_params => header_params,
|
|
813
|
+
:query_params => query_params,
|
|
814
|
+
:form_params => form_params,
|
|
815
|
+
:body => post_body,
|
|
816
|
+
:auth_names => auth_names,
|
|
817
|
+
:return_type => return_type
|
|
818
|
+
)
|
|
819
|
+
|
|
820
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
821
|
+
if @api_client.config.debugging
|
|
822
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#get_download_grant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
823
|
+
end
|
|
824
|
+
return data, status_code, headers
|
|
825
|
+
end
|
|
826
|
+
|
|
827
|
+
# Show a license key and its instances
|
|
828
|
+
# @param id [String] The license key's public id (`lk_…`).
|
|
829
|
+
# @param [Hash] opts the optional parameters
|
|
830
|
+
# @return [LicenseKeyDetail]
|
|
831
|
+
def get_license_key(id, opts = {})
|
|
832
|
+
data, _status_code, _headers = get_license_key_with_http_info(id, opts)
|
|
833
|
+
data
|
|
834
|
+
end
|
|
835
|
+
|
|
836
|
+
# Show a license key and its instances
|
|
837
|
+
# @param id [String] The license key's public id (`lk_…`).
|
|
838
|
+
# @param [Hash] opts the optional parameters
|
|
839
|
+
# @return [Array<(LicenseKeyDetail, Integer, Hash)>] LicenseKeyDetail data, response status code and response headers
|
|
840
|
+
def get_license_key_with_http_info(id, opts = {})
|
|
841
|
+
if @api_client.config.debugging
|
|
842
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.get_license_key ...'
|
|
843
|
+
end
|
|
844
|
+
# verify the required parameter 'id' is set
|
|
845
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
846
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrdersAndDeliveryApi.get_license_key"
|
|
847
|
+
end
|
|
848
|
+
pattern = Regexp.new(/^lk_[0-9A-Za-z]+$/)
|
|
849
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
850
|
+
fail ArgumentError, "invalid value for 'id' when calling OrdersAndDeliveryApi.get_license_key, must conform to the pattern #{pattern}."
|
|
851
|
+
end
|
|
852
|
+
|
|
853
|
+
# resource path
|
|
854
|
+
local_var_path = '/license-keys/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
855
|
+
|
|
856
|
+
# query parameters
|
|
857
|
+
query_params = opts[:query_params] || {}
|
|
858
|
+
|
|
859
|
+
# header parameters
|
|
860
|
+
header_params = opts[:header_params] || {}
|
|
861
|
+
# HTTP header 'Accept' (if needed)
|
|
862
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
863
|
+
|
|
864
|
+
# form parameters
|
|
865
|
+
form_params = opts[:form_params] || {}
|
|
866
|
+
|
|
867
|
+
# http body (model)
|
|
868
|
+
post_body = opts[:debug_body]
|
|
869
|
+
|
|
870
|
+
# return_type
|
|
871
|
+
return_type = opts[:debug_return_type] || 'LicenseKeyDetail'
|
|
872
|
+
|
|
873
|
+
# auth_names
|
|
874
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
875
|
+
|
|
876
|
+
new_options = opts.merge(
|
|
877
|
+
:operation => :"OrdersAndDeliveryApi.get_license_key",
|
|
878
|
+
:header_params => header_params,
|
|
879
|
+
:query_params => query_params,
|
|
880
|
+
:form_params => form_params,
|
|
881
|
+
:body => post_body,
|
|
882
|
+
:auth_names => auth_names,
|
|
883
|
+
:return_type => return_type
|
|
884
|
+
)
|
|
885
|
+
|
|
886
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
887
|
+
if @api_client.config.debugging
|
|
888
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#get_license_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
889
|
+
end
|
|
890
|
+
return data, status_code, headers
|
|
891
|
+
end
|
|
892
|
+
|
|
893
|
+
# Show an order
|
|
894
|
+
# @param id [String] The order's public id (`ord_…`).
|
|
895
|
+
# @param [Hash] opts the optional parameters
|
|
896
|
+
# @return [Order]
|
|
897
|
+
def get_order(id, opts = {})
|
|
898
|
+
data, _status_code, _headers = get_order_with_http_info(id, opts)
|
|
899
|
+
data
|
|
900
|
+
end
|
|
901
|
+
|
|
902
|
+
# Show an order
|
|
903
|
+
# @param id [String] The order's public id (`ord_…`).
|
|
904
|
+
# @param [Hash] opts the optional parameters
|
|
905
|
+
# @return [Array<(Order, Integer, Hash)>] Order data, response status code and response headers
|
|
906
|
+
def get_order_with_http_info(id, opts = {})
|
|
907
|
+
if @api_client.config.debugging
|
|
908
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.get_order ...'
|
|
909
|
+
end
|
|
910
|
+
# verify the required parameter 'id' is set
|
|
911
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
912
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrdersAndDeliveryApi.get_order"
|
|
913
|
+
end
|
|
914
|
+
pattern = Regexp.new(/^ord_[0-9A-Za-z]+$/)
|
|
915
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
916
|
+
fail ArgumentError, "invalid value for 'id' when calling OrdersAndDeliveryApi.get_order, must conform to the pattern #{pattern}."
|
|
917
|
+
end
|
|
918
|
+
|
|
919
|
+
# resource path
|
|
920
|
+
local_var_path = '/orders/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
921
|
+
|
|
922
|
+
# query parameters
|
|
923
|
+
query_params = opts[:query_params] || {}
|
|
924
|
+
|
|
925
|
+
# header parameters
|
|
926
|
+
header_params = opts[:header_params] || {}
|
|
927
|
+
# HTTP header 'Accept' (if needed)
|
|
928
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
929
|
+
|
|
930
|
+
# form parameters
|
|
931
|
+
form_params = opts[:form_params] || {}
|
|
932
|
+
|
|
933
|
+
# http body (model)
|
|
934
|
+
post_body = opts[:debug_body]
|
|
935
|
+
|
|
936
|
+
# return_type
|
|
937
|
+
return_type = opts[:debug_return_type] || 'Order'
|
|
938
|
+
|
|
939
|
+
# auth_names
|
|
940
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
941
|
+
|
|
942
|
+
new_options = opts.merge(
|
|
943
|
+
:operation => :"OrdersAndDeliveryApi.get_order",
|
|
944
|
+
:header_params => header_params,
|
|
945
|
+
:query_params => query_params,
|
|
946
|
+
:form_params => form_params,
|
|
947
|
+
:body => post_body,
|
|
948
|
+
:auth_names => auth_names,
|
|
949
|
+
:return_type => return_type
|
|
950
|
+
)
|
|
951
|
+
|
|
952
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
953
|
+
if @api_client.config.debugging
|
|
954
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#get_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
955
|
+
end
|
|
956
|
+
return data, status_code, headers
|
|
957
|
+
end
|
|
958
|
+
|
|
959
|
+
# What a product delivers
|
|
960
|
+
# The product's delivery settings (`null` when it delivers nothing) and each plan's own.
|
|
961
|
+
# @param product [String] The product's key.
|
|
962
|
+
# @param [Hash] opts the optional parameters
|
|
963
|
+
# @return [GetProductDelivery200Response]
|
|
964
|
+
def get_product_delivery(product, opts = {})
|
|
965
|
+
data, _status_code, _headers = get_product_delivery_with_http_info(product, opts)
|
|
966
|
+
data
|
|
967
|
+
end
|
|
968
|
+
|
|
969
|
+
# What a product delivers
|
|
970
|
+
# The product's delivery settings (`null` when it delivers nothing) and each plan's own.
|
|
971
|
+
# @param product [String] The product's key.
|
|
972
|
+
# @param [Hash] opts the optional parameters
|
|
973
|
+
# @return [Array<(GetProductDelivery200Response, Integer, Hash)>] GetProductDelivery200Response data, response status code and response headers
|
|
974
|
+
def get_product_delivery_with_http_info(product, opts = {})
|
|
975
|
+
if @api_client.config.debugging
|
|
976
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.get_product_delivery ...'
|
|
977
|
+
end
|
|
978
|
+
# verify the required parameter 'product' is set
|
|
979
|
+
if @api_client.config.client_side_validation && product.nil?
|
|
980
|
+
fail ArgumentError, "Missing the required parameter 'product' when calling OrdersAndDeliveryApi.get_product_delivery"
|
|
981
|
+
end
|
|
982
|
+
# resource path
|
|
983
|
+
local_var_path = '/products/{product}/delivery'.sub('{product}', CGI.escape(product.to_s))
|
|
984
|
+
|
|
985
|
+
# query parameters
|
|
986
|
+
query_params = opts[:query_params] || {}
|
|
987
|
+
|
|
988
|
+
# header parameters
|
|
989
|
+
header_params = opts[:header_params] || {}
|
|
990
|
+
# HTTP header 'Accept' (if needed)
|
|
991
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
992
|
+
|
|
993
|
+
# form parameters
|
|
994
|
+
form_params = opts[:form_params] || {}
|
|
995
|
+
|
|
996
|
+
# http body (model)
|
|
997
|
+
post_body = opts[:debug_body]
|
|
998
|
+
|
|
999
|
+
# return_type
|
|
1000
|
+
return_type = opts[:debug_return_type] || 'GetProductDelivery200Response'
|
|
1001
|
+
|
|
1002
|
+
# auth_names
|
|
1003
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1004
|
+
|
|
1005
|
+
new_options = opts.merge(
|
|
1006
|
+
:operation => :"OrdersAndDeliveryApi.get_product_delivery",
|
|
1007
|
+
:header_params => header_params,
|
|
1008
|
+
:query_params => query_params,
|
|
1009
|
+
:form_params => form_params,
|
|
1010
|
+
:body => post_body,
|
|
1011
|
+
:auth_names => auth_names,
|
|
1012
|
+
:return_type => return_type
|
|
1013
|
+
)
|
|
1014
|
+
|
|
1015
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1016
|
+
if @api_client.config.debugging
|
|
1017
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#get_product_delivery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1018
|
+
end
|
|
1019
|
+
return data, status_code, headers
|
|
1020
|
+
end
|
|
1021
|
+
|
|
1022
|
+
# List download grants
|
|
1023
|
+
# Who may download which product's files. `open=1` leaves out revoked and expired grants.
|
|
1024
|
+
# @param [Hash] opts the optional parameters
|
|
1025
|
+
# @option opts [String] :customer
|
|
1026
|
+
# @option opts [String] :product
|
|
1027
|
+
# @option opts [Boolean] :open
|
|
1028
|
+
# @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`.
|
|
1029
|
+
# @option opts [Integer] :limit Maximum items per page (1–100). Defaults to 20. (default to 20)
|
|
1030
|
+
# @return [ListDownloadGrants200Response]
|
|
1031
|
+
def list_download_grants(opts = {})
|
|
1032
|
+
data, _status_code, _headers = list_download_grants_with_http_info(opts)
|
|
1033
|
+
data
|
|
1034
|
+
end
|
|
1035
|
+
|
|
1036
|
+
# List download grants
|
|
1037
|
+
# Who may download which product's files. `open=1` leaves out revoked and expired grants.
|
|
1038
|
+
# @param [Hash] opts the optional parameters
|
|
1039
|
+
# @option opts [String] :customer
|
|
1040
|
+
# @option opts [String] :product
|
|
1041
|
+
# @option opts [Boolean] :open
|
|
1042
|
+
# @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`.
|
|
1043
|
+
# @option opts [Integer] :limit Maximum items per page (1–100). Defaults to 20. (default to 20)
|
|
1044
|
+
# @return [Array<(ListDownloadGrants200Response, Integer, Hash)>] ListDownloadGrants200Response data, response status code and response headers
|
|
1045
|
+
def list_download_grants_with_http_info(opts = {})
|
|
1046
|
+
if @api_client.config.debugging
|
|
1047
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.list_download_grants ...'
|
|
1048
|
+
end
|
|
1049
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
1050
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling OrdersAndDeliveryApi.list_download_grants, must be smaller than or equal to 100.'
|
|
1051
|
+
end
|
|
1052
|
+
|
|
1053
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1054
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling OrdersAndDeliveryApi.list_download_grants, must be greater than or equal to 1.'
|
|
1055
|
+
end
|
|
1056
|
+
|
|
1057
|
+
# resource path
|
|
1058
|
+
local_var_path = '/download-grants'
|
|
1059
|
+
|
|
1060
|
+
# query parameters
|
|
1061
|
+
query_params = opts[:query_params] || {}
|
|
1062
|
+
query_params[:'customer'] = opts[:'customer'] if !opts[:'customer'].nil?
|
|
1063
|
+
query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
|
|
1064
|
+
query_params[:'open'] = opts[:'open'] if !opts[:'open'].nil?
|
|
1065
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1066
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1067
|
+
|
|
1068
|
+
# header parameters
|
|
1069
|
+
header_params = opts[:header_params] || {}
|
|
1070
|
+
# HTTP header 'Accept' (if needed)
|
|
1071
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1072
|
+
|
|
1073
|
+
# form parameters
|
|
1074
|
+
form_params = opts[:form_params] || {}
|
|
1075
|
+
|
|
1076
|
+
# http body (model)
|
|
1077
|
+
post_body = opts[:debug_body]
|
|
1078
|
+
|
|
1079
|
+
# return_type
|
|
1080
|
+
return_type = opts[:debug_return_type] || 'ListDownloadGrants200Response'
|
|
1081
|
+
|
|
1082
|
+
# auth_names
|
|
1083
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1084
|
+
|
|
1085
|
+
new_options = opts.merge(
|
|
1086
|
+
:operation => :"OrdersAndDeliveryApi.list_download_grants",
|
|
1087
|
+
:header_params => header_params,
|
|
1088
|
+
:query_params => query_params,
|
|
1089
|
+
:form_params => form_params,
|
|
1090
|
+
:body => post_body,
|
|
1091
|
+
:auth_names => auth_names,
|
|
1092
|
+
:return_type => return_type
|
|
1093
|
+
)
|
|
1094
|
+
|
|
1095
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1096
|
+
if @api_client.config.debugging
|
|
1097
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#list_download_grants\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1098
|
+
end
|
|
1099
|
+
return data, status_code, headers
|
|
1100
|
+
end
|
|
1101
|
+
|
|
1102
|
+
# List license keys
|
|
1103
|
+
# License keys, newest first. `q` finds the whole key, or its last characters as a customer reads them from `XXXX-…`. `status` uses the license key API's words.
|
|
1104
|
+
# @param [Hash] opts the optional parameters
|
|
1105
|
+
# @option opts [String] :customer
|
|
1106
|
+
# @option opts [String] :status
|
|
1107
|
+
# @option opts [String] :product A product key.
|
|
1108
|
+
# @option opts [String] :q
|
|
1109
|
+
# @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`.
|
|
1110
|
+
# @option opts [Integer] :limit Maximum items per page (1–100). Defaults to 20. (default to 20)
|
|
1111
|
+
# @return [ListLicenseKeys200Response]
|
|
1112
|
+
def list_license_keys(opts = {})
|
|
1113
|
+
data, _status_code, _headers = list_license_keys_with_http_info(opts)
|
|
1114
|
+
data
|
|
1115
|
+
end
|
|
1116
|
+
|
|
1117
|
+
# List license keys
|
|
1118
|
+
# License keys, newest first. `q` finds the whole key, or its last characters as a customer reads them from `XXXX-…`. `status` uses the license key API's words.
|
|
1119
|
+
# @param [Hash] opts the optional parameters
|
|
1120
|
+
# @option opts [String] :customer
|
|
1121
|
+
# @option opts [String] :status
|
|
1122
|
+
# @option opts [String] :product A product key.
|
|
1123
|
+
# @option opts [String] :q
|
|
1124
|
+
# @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`.
|
|
1125
|
+
# @option opts [Integer] :limit Maximum items per page (1–100). Defaults to 20. (default to 20)
|
|
1126
|
+
# @return [Array<(ListLicenseKeys200Response, Integer, Hash)>] ListLicenseKeys200Response data, response status code and response headers
|
|
1127
|
+
def list_license_keys_with_http_info(opts = {})
|
|
1128
|
+
if @api_client.config.debugging
|
|
1129
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.list_license_keys ...'
|
|
1130
|
+
end
|
|
1131
|
+
allowable_values = ["inactive", "active", "expired", "disabled"]
|
|
1132
|
+
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
|
1133
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
|
1134
|
+
end
|
|
1135
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
1136
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling OrdersAndDeliveryApi.list_license_keys, must be smaller than or equal to 100.'
|
|
1137
|
+
end
|
|
1138
|
+
|
|
1139
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1140
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling OrdersAndDeliveryApi.list_license_keys, must be greater than or equal to 1.'
|
|
1141
|
+
end
|
|
1142
|
+
|
|
1143
|
+
# resource path
|
|
1144
|
+
local_var_path = '/license-keys'
|
|
1145
|
+
|
|
1146
|
+
# query parameters
|
|
1147
|
+
query_params = opts[:query_params] || {}
|
|
1148
|
+
query_params[:'customer'] = opts[:'customer'] if !opts[:'customer'].nil?
|
|
1149
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
|
1150
|
+
query_params[:'product'] = opts[:'product'] if !opts[:'product'].nil?
|
|
1151
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
1152
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1153
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1154
|
+
|
|
1155
|
+
# header parameters
|
|
1156
|
+
header_params = opts[:header_params] || {}
|
|
1157
|
+
# HTTP header 'Accept' (if needed)
|
|
1158
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1159
|
+
|
|
1160
|
+
# form parameters
|
|
1161
|
+
form_params = opts[:form_params] || {}
|
|
1162
|
+
|
|
1163
|
+
# http body (model)
|
|
1164
|
+
post_body = opts[:debug_body]
|
|
1165
|
+
|
|
1166
|
+
# return_type
|
|
1167
|
+
return_type = opts[:debug_return_type] || 'ListLicenseKeys200Response'
|
|
1168
|
+
|
|
1169
|
+
# auth_names
|
|
1170
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1171
|
+
|
|
1172
|
+
new_options = opts.merge(
|
|
1173
|
+
:operation => :"OrdersAndDeliveryApi.list_license_keys",
|
|
1174
|
+
:header_params => header_params,
|
|
1175
|
+
:query_params => query_params,
|
|
1176
|
+
:form_params => form_params,
|
|
1177
|
+
:body => post_body,
|
|
1178
|
+
:auth_names => auth_names,
|
|
1179
|
+
:return_type => return_type
|
|
1180
|
+
)
|
|
1181
|
+
|
|
1182
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1183
|
+
if @api_client.config.debugging
|
|
1184
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#list_license_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1185
|
+
end
|
|
1186
|
+
return data, status_code, headers
|
|
1187
|
+
end
|
|
1188
|
+
|
|
1189
|
+
# List orders
|
|
1190
|
+
# Orders, newest first, whoever took the money: Billing's checkout, Stripe Managed Payments as merchant of record (`source: api` when your backend reports them), an operator, or an import. Operator tokens only; a product-bound token sees the orders with a line of its product. Filter by `customer`, `status` and `source`; `q` finds an order number, external id or order id.
|
|
1191
|
+
# @param [Hash] opts the optional parameters
|
|
1192
|
+
# @option opts [String] :customer The customer's organization id.
|
|
1193
|
+
# @option opts [String] :status
|
|
1194
|
+
# @option opts [String] :source
|
|
1195
|
+
# @option opts [String] :q An order number, external id or order id.
|
|
1196
|
+
# @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`.
|
|
1197
|
+
# @option opts [Integer] :limit Maximum items per page (1–100). Defaults to 20. (default to 20)
|
|
1198
|
+
# @return [ListOrders200Response]
|
|
1199
|
+
def list_orders(opts = {})
|
|
1200
|
+
data, _status_code, _headers = list_orders_with_http_info(opts)
|
|
1201
|
+
data
|
|
1202
|
+
end
|
|
1203
|
+
|
|
1204
|
+
# List orders
|
|
1205
|
+
# Orders, newest first, whoever took the money: Billing's checkout, Stripe Managed Payments as merchant of record (`source: api` when your backend reports them), an operator, or an import. Operator tokens only; a product-bound token sees the orders with a line of its product. Filter by `customer`, `status` and `source`; `q` finds an order number, external id or order id.
|
|
1206
|
+
# @param [Hash] opts the optional parameters
|
|
1207
|
+
# @option opts [String] :customer The customer's organization id.
|
|
1208
|
+
# @option opts [String] :status
|
|
1209
|
+
# @option opts [String] :source
|
|
1210
|
+
# @option opts [String] :q An order number, external id or order id.
|
|
1211
|
+
# @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`.
|
|
1212
|
+
# @option opts [Integer] :limit Maximum items per page (1–100). Defaults to 20. (default to 20)
|
|
1213
|
+
# @return [Array<(ListOrders200Response, Integer, Hash)>] ListOrders200Response data, response status code and response headers
|
|
1214
|
+
def list_orders_with_http_info(opts = {})
|
|
1215
|
+
if @api_client.config.debugging
|
|
1216
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.list_orders ...'
|
|
1217
|
+
end
|
|
1218
|
+
allowable_values = ["pending", "paid", "partially_refunded", "refunded"]
|
|
1219
|
+
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
|
1220
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
|
1221
|
+
end
|
|
1222
|
+
allowable_values = ["checkout", "manual", "api", "stripe_managed_payments", "imported"]
|
|
1223
|
+
if @api_client.config.client_side_validation && opts[:'source'] && !allowable_values.include?(opts[:'source'])
|
|
1224
|
+
fail ArgumentError, "invalid value for \"source\", must be one of #{allowable_values}"
|
|
1225
|
+
end
|
|
1226
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
1227
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling OrdersAndDeliveryApi.list_orders, must be smaller than or equal to 100.'
|
|
1228
|
+
end
|
|
1229
|
+
|
|
1230
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1231
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling OrdersAndDeliveryApi.list_orders, must be greater than or equal to 1.'
|
|
1232
|
+
end
|
|
1233
|
+
|
|
1234
|
+
# resource path
|
|
1235
|
+
local_var_path = '/orders'
|
|
1236
|
+
|
|
1237
|
+
# query parameters
|
|
1238
|
+
query_params = opts[:query_params] || {}
|
|
1239
|
+
query_params[:'customer'] = opts[:'customer'] if !opts[:'customer'].nil?
|
|
1240
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
|
1241
|
+
query_params[:'source'] = opts[:'source'] if !opts[:'source'].nil?
|
|
1242
|
+
query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
|
|
1243
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1244
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1245
|
+
|
|
1246
|
+
# header parameters
|
|
1247
|
+
header_params = opts[:header_params] || {}
|
|
1248
|
+
# HTTP header 'Accept' (if needed)
|
|
1249
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1250
|
+
|
|
1251
|
+
# form parameters
|
|
1252
|
+
form_params = opts[:form_params] || {}
|
|
1253
|
+
|
|
1254
|
+
# http body (model)
|
|
1255
|
+
post_body = opts[:debug_body]
|
|
1256
|
+
|
|
1257
|
+
# return_type
|
|
1258
|
+
return_type = opts[:debug_return_type] || 'ListOrders200Response'
|
|
1259
|
+
|
|
1260
|
+
# auth_names
|
|
1261
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1262
|
+
|
|
1263
|
+
new_options = opts.merge(
|
|
1264
|
+
:operation => :"OrdersAndDeliveryApi.list_orders",
|
|
1265
|
+
:header_params => header_params,
|
|
1266
|
+
:query_params => query_params,
|
|
1267
|
+
:form_params => form_params,
|
|
1268
|
+
:body => post_body,
|
|
1269
|
+
:auth_names => auth_names,
|
|
1270
|
+
:return_type => return_type
|
|
1271
|
+
)
|
|
1272
|
+
|
|
1273
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1274
|
+
if @api_client.config.debugging
|
|
1275
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#list_orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1276
|
+
end
|
|
1277
|
+
return data, status_code, headers
|
|
1278
|
+
end
|
|
1279
|
+
|
|
1280
|
+
# List a product's files
|
|
1281
|
+
# The files the product and its plans deliver, in order. `archived=1` adds archived files.
|
|
1282
|
+
# @param product [String] The product's key.
|
|
1283
|
+
# @param [Hash] opts the optional parameters
|
|
1284
|
+
# @option opts [Boolean] :archived
|
|
1285
|
+
# @return [ListProductFiles200Response]
|
|
1286
|
+
def list_product_files(product, opts = {})
|
|
1287
|
+
data, _status_code, _headers = list_product_files_with_http_info(product, opts)
|
|
1288
|
+
data
|
|
1289
|
+
end
|
|
1290
|
+
|
|
1291
|
+
# List a product's files
|
|
1292
|
+
# The files the product and its plans deliver, in order. `archived=1` adds archived files.
|
|
1293
|
+
# @param product [String] The product's key.
|
|
1294
|
+
# @param [Hash] opts the optional parameters
|
|
1295
|
+
# @option opts [Boolean] :archived
|
|
1296
|
+
# @return [Array<(ListProductFiles200Response, Integer, Hash)>] ListProductFiles200Response data, response status code and response headers
|
|
1297
|
+
def list_product_files_with_http_info(product, opts = {})
|
|
1298
|
+
if @api_client.config.debugging
|
|
1299
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.list_product_files ...'
|
|
1300
|
+
end
|
|
1301
|
+
# verify the required parameter 'product' is set
|
|
1302
|
+
if @api_client.config.client_side_validation && product.nil?
|
|
1303
|
+
fail ArgumentError, "Missing the required parameter 'product' when calling OrdersAndDeliveryApi.list_product_files"
|
|
1304
|
+
end
|
|
1305
|
+
# resource path
|
|
1306
|
+
local_var_path = '/products/{product}/files'.sub('{product}', CGI.escape(product.to_s))
|
|
1307
|
+
|
|
1308
|
+
# query parameters
|
|
1309
|
+
query_params = opts[:query_params] || {}
|
|
1310
|
+
query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
|
|
1311
|
+
|
|
1312
|
+
# header parameters
|
|
1313
|
+
header_params = opts[:header_params] || {}
|
|
1314
|
+
# HTTP header 'Accept' (if needed)
|
|
1315
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1316
|
+
|
|
1317
|
+
# form parameters
|
|
1318
|
+
form_params = opts[:form_params] || {}
|
|
1319
|
+
|
|
1320
|
+
# http body (model)
|
|
1321
|
+
post_body = opts[:debug_body]
|
|
1322
|
+
|
|
1323
|
+
# return_type
|
|
1324
|
+
return_type = opts[:debug_return_type] || 'ListProductFiles200Response'
|
|
1325
|
+
|
|
1326
|
+
# auth_names
|
|
1327
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1328
|
+
|
|
1329
|
+
new_options = opts.merge(
|
|
1330
|
+
:operation => :"OrdersAndDeliveryApi.list_product_files",
|
|
1331
|
+
:header_params => header_params,
|
|
1332
|
+
:query_params => query_params,
|
|
1333
|
+
:form_params => form_params,
|
|
1334
|
+
:body => post_body,
|
|
1335
|
+
:auth_names => auth_names,
|
|
1336
|
+
:return_type => return_type
|
|
1337
|
+
)
|
|
1338
|
+
|
|
1339
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1340
|
+
if @api_client.config.debugging
|
|
1341
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#list_product_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1342
|
+
end
|
|
1343
|
+
return data, status_code, headers
|
|
1344
|
+
end
|
|
1345
|
+
|
|
1346
|
+
# Record a refund of an order
|
|
1347
|
+
# Record that part or all of an order was refunded by whoever took the money. Idempotent on `reference`. Refunding all of it disables the order's license keys and revokes its downloads. An order Billing invoiced is refunded through its invoice instead (`409`).
|
|
1348
|
+
# @param id [String] The order's public id (`ord_…`).
|
|
1349
|
+
# @param refund_order_request [RefundOrderRequest]
|
|
1350
|
+
# @param [Hash] opts the optional parameters
|
|
1351
|
+
# @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`.
|
|
1352
|
+
# @return [Order]
|
|
1353
|
+
def refund_order(id, refund_order_request, opts = {})
|
|
1354
|
+
data, _status_code, _headers = refund_order_with_http_info(id, refund_order_request, opts)
|
|
1355
|
+
data
|
|
1356
|
+
end
|
|
1357
|
+
|
|
1358
|
+
# Record a refund of an order
|
|
1359
|
+
# Record that part or all of an order was refunded by whoever took the money. Idempotent on `reference`. Refunding all of it disables the order's license keys and revokes its downloads. An order Billing invoiced is refunded through its invoice instead (`409`).
|
|
1360
|
+
# @param id [String] The order's public id (`ord_…`).
|
|
1361
|
+
# @param refund_order_request [RefundOrderRequest]
|
|
1362
|
+
# @param [Hash] opts the optional parameters
|
|
1363
|
+
# @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`.
|
|
1364
|
+
# @return [Array<(Order, Integer, Hash)>] Order data, response status code and response headers
|
|
1365
|
+
def refund_order_with_http_info(id, refund_order_request, opts = {})
|
|
1366
|
+
if @api_client.config.debugging
|
|
1367
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.refund_order ...'
|
|
1368
|
+
end
|
|
1369
|
+
# verify the required parameter 'id' is set
|
|
1370
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1371
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrdersAndDeliveryApi.refund_order"
|
|
1372
|
+
end
|
|
1373
|
+
pattern = Regexp.new(/^ord_[0-9A-Za-z]+$/)
|
|
1374
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
1375
|
+
fail ArgumentError, "invalid value for 'id' when calling OrdersAndDeliveryApi.refund_order, must conform to the pattern #{pattern}."
|
|
1376
|
+
end
|
|
1377
|
+
|
|
1378
|
+
# verify the required parameter 'refund_order_request' is set
|
|
1379
|
+
if @api_client.config.client_side_validation && refund_order_request.nil?
|
|
1380
|
+
fail ArgumentError, "Missing the required parameter 'refund_order_request' when calling OrdersAndDeliveryApi.refund_order"
|
|
1381
|
+
end
|
|
1382
|
+
# resource path
|
|
1383
|
+
local_var_path = '/orders/{id}/refunds'.sub('{id}', CGI.escape(id.to_s))
|
|
1384
|
+
|
|
1385
|
+
# query parameters
|
|
1386
|
+
query_params = opts[:query_params] || {}
|
|
1387
|
+
|
|
1388
|
+
# header parameters
|
|
1389
|
+
header_params = opts[:header_params] || {}
|
|
1390
|
+
# HTTP header 'Accept' (if needed)
|
|
1391
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1392
|
+
# HTTP header 'Content-Type'
|
|
1393
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1394
|
+
if !content_type.nil?
|
|
1395
|
+
header_params['Content-Type'] = content_type
|
|
1396
|
+
end
|
|
1397
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
1398
|
+
|
|
1399
|
+
# form parameters
|
|
1400
|
+
form_params = opts[:form_params] || {}
|
|
1401
|
+
|
|
1402
|
+
# http body (model)
|
|
1403
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(refund_order_request)
|
|
1404
|
+
|
|
1405
|
+
# return_type
|
|
1406
|
+
return_type = opts[:debug_return_type] || 'Order'
|
|
1407
|
+
|
|
1408
|
+
# auth_names
|
|
1409
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1410
|
+
|
|
1411
|
+
new_options = opts.merge(
|
|
1412
|
+
:operation => :"OrdersAndDeliveryApi.refund_order",
|
|
1413
|
+
:header_params => header_params,
|
|
1414
|
+
:query_params => query_params,
|
|
1415
|
+
:form_params => form_params,
|
|
1416
|
+
:body => post_body,
|
|
1417
|
+
:auth_names => auth_names,
|
|
1418
|
+
:return_type => return_type
|
|
1419
|
+
)
|
|
1420
|
+
|
|
1421
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1422
|
+
if @api_client.config.debugging
|
|
1423
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#refund_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1424
|
+
end
|
|
1425
|
+
return data, status_code, headers
|
|
1426
|
+
end
|
|
1427
|
+
|
|
1428
|
+
# Revoke a download grant
|
|
1429
|
+
# @param id [String] The download grant's public id (`dlg_…`).
|
|
1430
|
+
# @param [Hash] opts the optional parameters
|
|
1431
|
+
# @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`.
|
|
1432
|
+
# @option opts [DisableLicenseKeyRequest] :disable_license_key_request
|
|
1433
|
+
# @return [DownloadGrant]
|
|
1434
|
+
def revoke_download_grant(id, opts = {})
|
|
1435
|
+
data, _status_code, _headers = revoke_download_grant_with_http_info(id, opts)
|
|
1436
|
+
data
|
|
1437
|
+
end
|
|
1438
|
+
|
|
1439
|
+
# Revoke a download grant
|
|
1440
|
+
# @param id [String] The download grant's public id (`dlg_…`).
|
|
1441
|
+
# @param [Hash] opts the optional parameters
|
|
1442
|
+
# @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`.
|
|
1443
|
+
# @option opts [DisableLicenseKeyRequest] :disable_license_key_request
|
|
1444
|
+
# @return [Array<(DownloadGrant, Integer, Hash)>] DownloadGrant data, response status code and response headers
|
|
1445
|
+
def revoke_download_grant_with_http_info(id, opts = {})
|
|
1446
|
+
if @api_client.config.debugging
|
|
1447
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.revoke_download_grant ...'
|
|
1448
|
+
end
|
|
1449
|
+
# verify the required parameter 'id' is set
|
|
1450
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1451
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrdersAndDeliveryApi.revoke_download_grant"
|
|
1452
|
+
end
|
|
1453
|
+
pattern = Regexp.new(/^dlg_[0-9A-Za-z]+$/)
|
|
1454
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
1455
|
+
fail ArgumentError, "invalid value for 'id' when calling OrdersAndDeliveryApi.revoke_download_grant, must conform to the pattern #{pattern}."
|
|
1456
|
+
end
|
|
1457
|
+
|
|
1458
|
+
# resource path
|
|
1459
|
+
local_var_path = '/download-grants/{id}/revoke'.sub('{id}', CGI.escape(id.to_s))
|
|
1460
|
+
|
|
1461
|
+
# query parameters
|
|
1462
|
+
query_params = opts[:query_params] || {}
|
|
1463
|
+
|
|
1464
|
+
# header parameters
|
|
1465
|
+
header_params = opts[:header_params] || {}
|
|
1466
|
+
# HTTP header 'Accept' (if needed)
|
|
1467
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1468
|
+
# HTTP header 'Content-Type'
|
|
1469
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1470
|
+
if !content_type.nil?
|
|
1471
|
+
header_params['Content-Type'] = content_type
|
|
1472
|
+
end
|
|
1473
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
1474
|
+
|
|
1475
|
+
# form parameters
|
|
1476
|
+
form_params = opts[:form_params] || {}
|
|
1477
|
+
|
|
1478
|
+
# http body (model)
|
|
1479
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'disable_license_key_request'])
|
|
1480
|
+
|
|
1481
|
+
# return_type
|
|
1482
|
+
return_type = opts[:debug_return_type] || 'DownloadGrant'
|
|
1483
|
+
|
|
1484
|
+
# auth_names
|
|
1485
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1486
|
+
|
|
1487
|
+
new_options = opts.merge(
|
|
1488
|
+
:operation => :"OrdersAndDeliveryApi.revoke_download_grant",
|
|
1489
|
+
:header_params => header_params,
|
|
1490
|
+
:query_params => query_params,
|
|
1491
|
+
:form_params => form_params,
|
|
1492
|
+
:body => post_body,
|
|
1493
|
+
:auth_names => auth_names,
|
|
1494
|
+
:return_type => return_type
|
|
1495
|
+
)
|
|
1496
|
+
|
|
1497
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1498
|
+
if @api_client.config.debugging
|
|
1499
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#revoke_download_grant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1500
|
+
end
|
|
1501
|
+
return data, status_code, headers
|
|
1502
|
+
end
|
|
1503
|
+
|
|
1504
|
+
# Set what a product delivers
|
|
1505
|
+
# Whether a purchase issues a license key (with its activation limit, multiplied by the quantity bought, and its length), how often each file may be downloaded and for how long, and whether the delivery mail goes out. `plan` sets that plan's own, which replaces the product's for it.
|
|
1506
|
+
# @param product [String] The product's key.
|
|
1507
|
+
# @param set_product_delivery_request [SetProductDeliveryRequest]
|
|
1508
|
+
# @param [Hash] opts the optional parameters
|
|
1509
|
+
# @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`.
|
|
1510
|
+
# @return [Delivery]
|
|
1511
|
+
def set_product_delivery(product, set_product_delivery_request, opts = {})
|
|
1512
|
+
data, _status_code, _headers = set_product_delivery_with_http_info(product, set_product_delivery_request, opts)
|
|
1513
|
+
data
|
|
1514
|
+
end
|
|
1515
|
+
|
|
1516
|
+
# Set what a product delivers
|
|
1517
|
+
# Whether a purchase issues a license key (with its activation limit, multiplied by the quantity bought, and its length), how often each file may be downloaded and for how long, and whether the delivery mail goes out. `plan` sets that plan's own, which replaces the product's for it.
|
|
1518
|
+
# @param product [String] The product's key.
|
|
1519
|
+
# @param set_product_delivery_request [SetProductDeliveryRequest]
|
|
1520
|
+
# @param [Hash] opts the optional parameters
|
|
1521
|
+
# @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`.
|
|
1522
|
+
# @return [Array<(Delivery, Integer, Hash)>] Delivery data, response status code and response headers
|
|
1523
|
+
def set_product_delivery_with_http_info(product, set_product_delivery_request, opts = {})
|
|
1524
|
+
if @api_client.config.debugging
|
|
1525
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.set_product_delivery ...'
|
|
1526
|
+
end
|
|
1527
|
+
# verify the required parameter 'product' is set
|
|
1528
|
+
if @api_client.config.client_side_validation && product.nil?
|
|
1529
|
+
fail ArgumentError, "Missing the required parameter 'product' when calling OrdersAndDeliveryApi.set_product_delivery"
|
|
1530
|
+
end
|
|
1531
|
+
# verify the required parameter 'set_product_delivery_request' is set
|
|
1532
|
+
if @api_client.config.client_side_validation && set_product_delivery_request.nil?
|
|
1533
|
+
fail ArgumentError, "Missing the required parameter 'set_product_delivery_request' when calling OrdersAndDeliveryApi.set_product_delivery"
|
|
1534
|
+
end
|
|
1535
|
+
# resource path
|
|
1536
|
+
local_var_path = '/products/{product}/delivery'.sub('{product}', CGI.escape(product.to_s))
|
|
1537
|
+
|
|
1538
|
+
# query parameters
|
|
1539
|
+
query_params = opts[:query_params] || {}
|
|
1540
|
+
|
|
1541
|
+
# header parameters
|
|
1542
|
+
header_params = opts[:header_params] || {}
|
|
1543
|
+
# HTTP header 'Accept' (if needed)
|
|
1544
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1545
|
+
# HTTP header 'Content-Type'
|
|
1546
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1547
|
+
if !content_type.nil?
|
|
1548
|
+
header_params['Content-Type'] = content_type
|
|
1549
|
+
end
|
|
1550
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
1551
|
+
|
|
1552
|
+
# form parameters
|
|
1553
|
+
form_params = opts[:form_params] || {}
|
|
1554
|
+
|
|
1555
|
+
# http body (model)
|
|
1556
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_product_delivery_request)
|
|
1557
|
+
|
|
1558
|
+
# return_type
|
|
1559
|
+
return_type = opts[:debug_return_type] || 'Delivery'
|
|
1560
|
+
|
|
1561
|
+
# auth_names
|
|
1562
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1563
|
+
|
|
1564
|
+
new_options = opts.merge(
|
|
1565
|
+
:operation => :"OrdersAndDeliveryApi.set_product_delivery",
|
|
1566
|
+
:header_params => header_params,
|
|
1567
|
+
:query_params => query_params,
|
|
1568
|
+
:form_params => form_params,
|
|
1569
|
+
:body => post_body,
|
|
1570
|
+
:auth_names => auth_names,
|
|
1571
|
+
:return_type => return_type
|
|
1572
|
+
)
|
|
1573
|
+
|
|
1574
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1575
|
+
if @api_client.config.debugging
|
|
1576
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#set_product_delivery\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1577
|
+
end
|
|
1578
|
+
return data, status_code, headers
|
|
1579
|
+
end
|
|
1580
|
+
|
|
1581
|
+
# Change a key's activation limit or expiry
|
|
1582
|
+
# `activation_limit: null` makes it unlimited, `expires_at: null` perpetual; a field left out stays.
|
|
1583
|
+
# @param id [String] The license key's public id (`lk_…`).
|
|
1584
|
+
# @param update_license_key_request [UpdateLicenseKeyRequest]
|
|
1585
|
+
# @param [Hash] opts the optional parameters
|
|
1586
|
+
# @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`.
|
|
1587
|
+
# @return [LicenseKeyDetail]
|
|
1588
|
+
def update_license_key(id, update_license_key_request, opts = {})
|
|
1589
|
+
data, _status_code, _headers = update_license_key_with_http_info(id, update_license_key_request, opts)
|
|
1590
|
+
data
|
|
1591
|
+
end
|
|
1592
|
+
|
|
1593
|
+
# Change a key's activation limit or expiry
|
|
1594
|
+
# `activation_limit: null` makes it unlimited, `expires_at: null` perpetual; a field left out stays.
|
|
1595
|
+
# @param id [String] The license key's public id (`lk_…`).
|
|
1596
|
+
# @param update_license_key_request [UpdateLicenseKeyRequest]
|
|
1597
|
+
# @param [Hash] opts the optional parameters
|
|
1598
|
+
# @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`.
|
|
1599
|
+
# @return [Array<(LicenseKeyDetail, Integer, Hash)>] LicenseKeyDetail data, response status code and response headers
|
|
1600
|
+
def update_license_key_with_http_info(id, update_license_key_request, opts = {})
|
|
1601
|
+
if @api_client.config.debugging
|
|
1602
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.update_license_key ...'
|
|
1603
|
+
end
|
|
1604
|
+
# verify the required parameter 'id' is set
|
|
1605
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1606
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrdersAndDeliveryApi.update_license_key"
|
|
1607
|
+
end
|
|
1608
|
+
pattern = Regexp.new(/^lk_[0-9A-Za-z]+$/)
|
|
1609
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
1610
|
+
fail ArgumentError, "invalid value for 'id' when calling OrdersAndDeliveryApi.update_license_key, must conform to the pattern #{pattern}."
|
|
1611
|
+
end
|
|
1612
|
+
|
|
1613
|
+
# verify the required parameter 'update_license_key_request' is set
|
|
1614
|
+
if @api_client.config.client_side_validation && update_license_key_request.nil?
|
|
1615
|
+
fail ArgumentError, "Missing the required parameter 'update_license_key_request' when calling OrdersAndDeliveryApi.update_license_key"
|
|
1616
|
+
end
|
|
1617
|
+
# resource path
|
|
1618
|
+
local_var_path = '/license-keys/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
1619
|
+
|
|
1620
|
+
# query parameters
|
|
1621
|
+
query_params = opts[:query_params] || {}
|
|
1622
|
+
|
|
1623
|
+
# header parameters
|
|
1624
|
+
header_params = opts[:header_params] || {}
|
|
1625
|
+
# HTTP header 'Accept' (if needed)
|
|
1626
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1627
|
+
# HTTP header 'Content-Type'
|
|
1628
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1629
|
+
if !content_type.nil?
|
|
1630
|
+
header_params['Content-Type'] = content_type
|
|
1631
|
+
end
|
|
1632
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
1633
|
+
|
|
1634
|
+
# form parameters
|
|
1635
|
+
form_params = opts[:form_params] || {}
|
|
1636
|
+
|
|
1637
|
+
# http body (model)
|
|
1638
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_license_key_request)
|
|
1639
|
+
|
|
1640
|
+
# return_type
|
|
1641
|
+
return_type = opts[:debug_return_type] || 'LicenseKeyDetail'
|
|
1642
|
+
|
|
1643
|
+
# auth_names
|
|
1644
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1645
|
+
|
|
1646
|
+
new_options = opts.merge(
|
|
1647
|
+
:operation => :"OrdersAndDeliveryApi.update_license_key",
|
|
1648
|
+
:header_params => header_params,
|
|
1649
|
+
:query_params => query_params,
|
|
1650
|
+
:form_params => form_params,
|
|
1651
|
+
:body => post_body,
|
|
1652
|
+
:auth_names => auth_names,
|
|
1653
|
+
:return_type => return_type
|
|
1654
|
+
)
|
|
1655
|
+
|
|
1656
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1657
|
+
if @api_client.config.debugging
|
|
1658
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#update_license_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1659
|
+
end
|
|
1660
|
+
return data, status_code, headers
|
|
1661
|
+
end
|
|
1662
|
+
|
|
1663
|
+
# Rename, version, reorder or move a file
|
|
1664
|
+
# `plan: null` moves the file to the whole product.
|
|
1665
|
+
# @param id [String] The file's public id (`pfil_…`).
|
|
1666
|
+
# @param update_product_file_request [UpdateProductFileRequest]
|
|
1667
|
+
# @param [Hash] opts the optional parameters
|
|
1668
|
+
# @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`.
|
|
1669
|
+
# @return [ProductFile]
|
|
1670
|
+
def update_product_file(id, update_product_file_request, opts = {})
|
|
1671
|
+
data, _status_code, _headers = update_product_file_with_http_info(id, update_product_file_request, opts)
|
|
1672
|
+
data
|
|
1673
|
+
end
|
|
1674
|
+
|
|
1675
|
+
# Rename, version, reorder or move a file
|
|
1676
|
+
# `plan: null` moves the file to the whole product.
|
|
1677
|
+
# @param id [String] The file's public id (`pfil_…`).
|
|
1678
|
+
# @param update_product_file_request [UpdateProductFileRequest]
|
|
1679
|
+
# @param [Hash] opts the optional parameters
|
|
1680
|
+
# @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`.
|
|
1681
|
+
# @return [Array<(ProductFile, Integer, Hash)>] ProductFile data, response status code and response headers
|
|
1682
|
+
def update_product_file_with_http_info(id, update_product_file_request, opts = {})
|
|
1683
|
+
if @api_client.config.debugging
|
|
1684
|
+
@api_client.config.logger.debug 'Calling API: OrdersAndDeliveryApi.update_product_file ...'
|
|
1685
|
+
end
|
|
1686
|
+
# verify the required parameter 'id' is set
|
|
1687
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1688
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrdersAndDeliveryApi.update_product_file"
|
|
1689
|
+
end
|
|
1690
|
+
pattern = Regexp.new(/^pfil_[0-9A-Za-z]+$/)
|
|
1691
|
+
if @api_client.config.client_side_validation && id !~ pattern
|
|
1692
|
+
fail ArgumentError, "invalid value for 'id' when calling OrdersAndDeliveryApi.update_product_file, must conform to the pattern #{pattern}."
|
|
1693
|
+
end
|
|
1694
|
+
|
|
1695
|
+
# verify the required parameter 'update_product_file_request' is set
|
|
1696
|
+
if @api_client.config.client_side_validation && update_product_file_request.nil?
|
|
1697
|
+
fail ArgumentError, "Missing the required parameter 'update_product_file_request' when calling OrdersAndDeliveryApi.update_product_file"
|
|
1698
|
+
end
|
|
1699
|
+
# resource path
|
|
1700
|
+
local_var_path = '/files/{id}'.sub('{id}', CGI.escape(id.to_s))
|
|
1701
|
+
|
|
1702
|
+
# query parameters
|
|
1703
|
+
query_params = opts[:query_params] || {}
|
|
1704
|
+
|
|
1705
|
+
# header parameters
|
|
1706
|
+
header_params = opts[:header_params] || {}
|
|
1707
|
+
# HTTP header 'Accept' (if needed)
|
|
1708
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1709
|
+
# HTTP header 'Content-Type'
|
|
1710
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1711
|
+
if !content_type.nil?
|
|
1712
|
+
header_params['Content-Type'] = content_type
|
|
1713
|
+
end
|
|
1714
|
+
header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
|
1715
|
+
|
|
1716
|
+
# form parameters
|
|
1717
|
+
form_params = opts[:form_params] || {}
|
|
1718
|
+
|
|
1719
|
+
# http body (model)
|
|
1720
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_product_file_request)
|
|
1721
|
+
|
|
1722
|
+
# return_type
|
|
1723
|
+
return_type = opts[:debug_return_type] || 'ProductFile'
|
|
1724
|
+
|
|
1725
|
+
# auth_names
|
|
1726
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1727
|
+
|
|
1728
|
+
new_options = opts.merge(
|
|
1729
|
+
:operation => :"OrdersAndDeliveryApi.update_product_file",
|
|
1730
|
+
:header_params => header_params,
|
|
1731
|
+
:query_params => query_params,
|
|
1732
|
+
:form_params => form_params,
|
|
1733
|
+
:body => post_body,
|
|
1734
|
+
:auth_names => auth_names,
|
|
1735
|
+
:return_type => return_type
|
|
1736
|
+
)
|
|
1737
|
+
|
|
1738
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1739
|
+
if @api_client.config.debugging
|
|
1740
|
+
@api_client.config.logger.debug "API called: OrdersAndDeliveryApi#update_product_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1741
|
+
end
|
|
1742
|
+
return data, status_code, headers
|
|
1743
|
+
end
|
|
1744
|
+
end
|
|
1745
|
+
end
|