sellapp 0.1.1 → 0.2.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 +4 -4
- data/README.md +2 -2
- data/docs/methods.md +2 -1
- data/docs/migration.md +14 -2
- data/docs/resources/coupons.md +24 -0
- data/docs/resources/customer_portal.md +47 -105
- data/docs/resources/product_variants.md +12 -0
- data/docs/resources/promotions.md +40 -0
- data/docs/resources/subscriptions.md +223 -145
- data/docs/resources/subscriptions_actions.md +178 -0
- data/lib/sellapp/add_ons/create_add_on_draft_request_application_json_property_variant.rb +4 -0
- data/lib/sellapp/blacklists/batch_create_coupons_request_application_json_property_resources_item.rb +11 -3
- data/lib/sellapp/blacklists/batch_create_coupons_response_value_200_application_jso_0ec85b96d02637d5.rb +8 -0
- data/lib/sellapp/blacklists/batch_delete_coupons_response_value_200_application_jso_e32fc6c28be8fcb0.rb +8 -0
- data/lib/sellapp/blacklists/batch_update_coupons_request_application_json_property_f2f17c43405120cd.rb +11 -3
- data/lib/sellapp/blacklists/batch_update_coupons_response_value_200_application_jso_da9a40b68416b178.rb +8 -0
- data/lib/sellapp/blacklists/create_coupon_response_value_201_application_json_property_data.rb +8 -0
- data/lib/sellapp/blacklists/delete_coupon_response_value_200_application_json_property_data.rb +8 -0
- data/lib/sellapp/blacklists/get_coupon_response_value_200_application_json_property_data.rb +8 -0
- data/lib/sellapp/blacklists/list_coupons_response_value_200_application_json_property_data_item.rb +8 -0
- data/lib/sellapp/blacklists/replace_coupon_response_value_200_application_json_property_data.rb +8 -0
- data/lib/sellapp/blacklists/sdk_create_coupon_request_application_json.rb +11 -3
- data/lib/sellapp/blacklists/sdk_replace_coupon_request_application_json.rb +11 -3
- data/lib/sellapp/blacklists/sdk_update_coupon_request_application_json.rb +11 -3
- data/lib/sellapp/blacklists/sdk_v_2_create_coupon_request_application_json.rb +11 -3
- data/lib/sellapp/blacklists/sdk_v_2_replace_coupon_request_application_json.rb +11 -3
- data/lib/sellapp/blacklists/sdk_v_2_update_coupon_request_application_json.rb +11 -3
- data/lib/sellapp/blacklists/search_coupons_response_value_200_application_json_property_data_item.rb +8 -0
- data/lib/sellapp/blacklists/update_coupon_response_value_200_application_json_property_data.rb +8 -0
- data/lib/sellapp/blacklists/v_2_batch_create_coupons_request_application_json_prope_ed426eec0e25abbc.rb +11 -3
- data/lib/sellapp/blacklists/v_2_batch_create_coupons_response_value_200_application_9b1202494c86b4da.rb +8 -0
- data/lib/sellapp/blacklists/v_2_batch_delete_coupons_response_value_200_application_c698eceb577c6910.rb +8 -0
- data/lib/sellapp/blacklists/v_2_batch_update_coupons_request_application_json_prope_d8687eabdd5373b5.rb +11 -3
- data/lib/sellapp/blacklists/v_2_batch_update_coupons_response_value_200_application_55d31662a4c43bd7.rb +8 -0
- data/lib/sellapp/blacklists/v_2_create_coupon_response_value_201_application_json_property_data.rb +8 -0
- data/lib/sellapp/blacklists/v_2_delete_coupon_response_value_200_application_json_property_data.rb +8 -0
- data/lib/sellapp/blacklists/v_2_get_coupon_response_value_200_application_json_property_data.rb +8 -0
- data/lib/sellapp/blacklists/v_2_list_coupons_response_value_200_application_json_property_data_item.rb +8 -0
- data/lib/sellapp/blacklists/v_2_replace_coupon_response_value_200_application_json_property_data.rb +8 -0
- data/lib/sellapp/blacklists/v_2_search_coupons_response_value_200_application_json_5ca05afc2ac6576b.rb +8 -0
- data/lib/sellapp/blacklists/v_2_update_coupon_response_value_200_application_json_property_data.rb +8 -0
- data/lib/sellapp/bundle_items/get_bundle_item_response_value_200_application_json_pro_456afa58904c31c7.rb +32 -0
- data/lib/sellapp/bundle_items/get_bundle_item_response_value_200_application_json_pro_7435fb7df5c9edd7.rb +7 -0
- data/lib/sellapp/bundle_items/get_bundle_item_response_value_200_application_json_pro_99eef800c9794d5f.rb +36 -0
- data/lib/sellapp/bundle_items/get_bundle_item_response_value_200_application_json_pro_f08bbe34dba8d405.rb +38 -1
- data/lib/sellapp/bundle_items/list_bundle_items_response_value_200_application_json_p_258a94f35072eea6.rb +32 -0
- data/lib/sellapp/bundle_items/list_bundle_items_response_value_200_application_json_p_4bb397983e1c6fe5.rb +38 -1
- data/lib/sellapp/bundle_items/list_bundle_items_response_value_200_application_json_p_d1306fd6952625d2.rb +7 -0
- data/lib/sellapp/bundle_items/list_bundle_items_response_value_200_application_json_p_e27cb1b411a87d7c.rb +36 -0
- data/lib/sellapp/bundle_items/list_bundle_items_response_value_200_application_json_property_data_item.rb +82 -1
- data/lib/sellapp/charges.rb +1 -1
- data/lib/sellapp/client.rb +4 -0
- data/lib/sellapp/coupons.rb +66 -30
- data/lib/sellapp/customer_portal/cancel_customer_subscription_at_period_end_response_val_1b237a9df5e2d312.rb +21 -46
- data/lib/sellapp/customer_portal/cancel_customer_subscription_immediately_response_value_4f922b4e84788fe6.rb +46 -1
- data/lib/sellapp/customer_portal/confirm_customer_subscription_plan_change_request_appli_0579929af2b2a3b6.rb +7 -0
- data/lib/sellapp/customer_portal/confirm_customer_subscription_plan_change_response_valu_61645c9ab28a4ddf.rb +46 -1
- data/lib/sellapp/customer_portal/confirm_customer_subscription_renewal_date_change_reque_035e9e971f9cbb0d.rb +7 -0
- data/lib/sellapp/customer_portal/confirm_customer_subscription_renewal_date_change_respo_999430742430048f.rb +46 -1
- data/lib/sellapp/customer_portal/customer_portal_subscription.rb +68 -0
- data/lib/sellapp/customer_portal/customer_portal_subscription_plan.rb +40 -0
- data/lib/sellapp/customer_portal/get_customer_portal_profile_response_value_200_applicat_033e1c78cc821142.rb +1 -1
- data/lib/sellapp/customer_portal/get_customer_portal_profile_response_value_200_applicat_b14d0da3c725d58c.rb +42 -1
- data/lib/sellapp/customer_portal/get_customer_portal_subscription_capabilities_response_08ac914b08743f57.rb +12 -8
- data/lib/sellapp/customer_portal/get_customer_portal_subscription_capabilities_response_813909143cbd1ea5.rb +4 -4
- data/lib/sellapp/customer_portal/pause_customer_subscription_response_value_200_applicat_af208d6ddbfa995f.rb +46 -1
- data/lib/sellapp/customer_portal/preview_customer_subscription_plan_change_request_appli_12704d044b8d0d74.rb +7 -0
- data/lib/sellapp/customer_portal/preview_customer_subscription_plan_change_response_valu_292b713e27004f87.rb +34 -1
- data/lib/sellapp/customer_portal/preview_customer_subscription_renewal_date_change_reque_c9cc0e0cfdafa916.rb +7 -0
- data/lib/sellapp/customer_portal/{preview_customer_subscription_renewal_date_change_respo_f49367224934c0ce.rb → preview_customer_subscription_renewal_date_change_respo_0e58bc1a5b267b4b.rb} +1 -1
- data/lib/sellapp/customer_portal/preview_customer_subscription_renewal_date_change_respo_8bb4aa86f1b8a82c.rb +34 -1
- data/lib/sellapp/customer_portal/resume_customer_subscription_response_value_200_applica_1d78041ee517c32a.rb +46 -1
- data/lib/sellapp/customer_portal/sdk_cancel_customer_subscription_at_period_end_request_application_json.rb +2 -19
- data/lib/sellapp/customer_portal/sdk_cancel_customer_subscription_immediately_response_v_3cdcf09c81010590.rb +21 -1
- data/lib/sellapp/customer_portal/sdk_confirm_customer_subscription_plan_change_request_application_json.rb +38 -1
- data/lib/sellapp/customer_portal/sdk_confirm_customer_subscription_plan_change_response_7b34bd27e3728a61.rb +21 -1
- data/lib/sellapp/customer_portal/sdk_confirm_customer_subscription_renewal_date_change_r_1d60f8388ee9d4a0.rb +34 -1
- data/lib/sellapp/customer_portal/sdk_confirm_customer_subscription_renewal_date_change_r_854560ae195509dc.rb +21 -1
- data/lib/sellapp/customer_portal/sdk_get_customer_portal_subscription_response_value_200_application_json.rb +21 -1
- data/lib/sellapp/customer_portal/sdk_list_customer_portal_subscriptions_response_value_2_b195e1339dee14ac.rb +13 -4
- data/lib/sellapp/customer_portal/sdk_pause_customer_subscription_request_application_json.rb +26 -1
- data/lib/sellapp/customer_portal/sdk_pause_customer_subscription_response_value_200_application_json.rb +21 -1
- data/lib/sellapp/customer_portal/sdk_preview_customer_subscription_plan_change_request_application_json.rb +34 -1
- data/lib/sellapp/customer_portal/sdk_preview_customer_subscription_plan_change_response_33f099059c9fe4e9.rb +21 -1
- data/lib/sellapp/customer_portal/sdk_preview_customer_subscription_renewal_date_change_r_1c87ad45642cd397.rb +30 -1
- data/lib/sellapp/customer_portal/sdk_preview_customer_subscription_renewal_date_change_r_cfac8f32a7fa71d1.rb +21 -1
- data/lib/sellapp/customer_portal/sdk_resume_customer_subscription_response_value_200_application_json.rb +21 -1
- data/lib/sellapp/customer_portal/sdk_update_customer_subscription_payment_method_request_application_json.rb +21 -1
- data/lib/sellapp/customer_portal/sdk_update_customer_subscription_payment_method_respons_e87ff28ee5c705ab.rb +21 -1
- data/lib/sellapp/customer_portal/update_customer_portal_profile_response_value_200_appli_0d05a9df88ca5004.rb +1 -1
- data/lib/sellapp/customer_portal/update_customer_portal_profile_response_value_200_appli_f426cb31a5e240ec.rb +1 -1
- data/lib/sellapp/customer_portal/update_customer_subscription_payment_method_response_va_9476695c7a3f9972.rb +46 -1
- data/lib/sellapp/customer_portal.rb +61 -141
- data/lib/sellapp/customers/create_customer_response_value_201_application_json_pro_5eb217ae2306965e.rb +14 -1
- data/lib/sellapp/customers/update_customer_response_value_200_application_json_pro_7a6ab0adbc66a3b1.rb +1 -1
- data/lib/sellapp/customers/upsert_customer_response_value_200_application_json_pro_06ad2a443d9195b2.rb +1 -1
- data/lib/sellapp/events/list_integration_events_response_value_200_application_7182e7ce95bef432.rb +1 -1
- data/lib/sellapp/events/list_order_events_response_value_200_application_json_p_87793fc0f01adccc.rb +1 -1
- data/lib/sellapp/inflections.rb +198 -31
- data/lib/sellapp/invoices/create_checkout_session_response_value_200_application_3708bfc37113f5b2.rb +2 -2
- data/lib/sellapp/invoices/create_checkout_session_response_value_200_application_8492037e31dd7910.rb +1 -30
- data/lib/sellapp/invoices/create_checkout_session_response_value_200_application_84da4d86bf3fba9a.rb +36 -0
- data/lib/sellapp/invoices/create_checkout_session_response_value_200_application_8e002bfe1446badd.rb +1 -1
- data/lib/sellapp/invoices/create_invoice_refund_response_value_200_application_js_1e5be181ec12a31d.rb +1 -26
- data/lib/sellapp/invoices/create_invoice_refund_response_value_200_application_js_3c317881624a6039.rb +1 -1
- data/lib/sellapp/invoices/create_invoice_refund_response_value_200_application_js_73b3e46459410996.rb +1 -1
- data/lib/sellapp/invoices/create_invoice_refund_response_value_200_application_js_eaf53eda5392eb57.rb +1 -66
- data/lib/sellapp/invoices/create_invoice_response_value_201_application_json_prop_568491d53b76c0cd.rb +1 -1
- data/lib/sellapp/invoices/create_invoice_response_value_201_application_json_prop_8a7c4bb7c689f40c.rb +1 -1
- data/lib/sellapp/invoices/create_invoice_response_value_201_application_json_prop_90e407ab0d1b806a.rb +1 -1
- data/lib/sellapp/invoices/get_invoice_response_value_200_application_json_propert_64d7085a629bace5.rb +1 -1
- data/lib/sellapp/invoices/get_invoice_response_value_200_application_json_propert_68c7afb551a5a704.rb +1 -1
- data/lib/sellapp/invoices/get_invoice_response_value_200_application_json_propert_977cfa2a7dfe08b5.rb +1 -1
- data/lib/sellapp/invoices/get_invoice_response_value_200_application_json_property_data.rb +1 -1
- data/lib/sellapp/invoices/issue_replacement_for_completed_invoice_response_value_3f8b4996b36e812d.rb +1 -1
- data/lib/sellapp/invoices/issue_replacement_for_completed_invoice_response_value_4f5871d1b8874d52.rb +1 -1
- data/lib/sellapp/invoices/issue_replacement_for_completed_invoice_response_value_597d45fa5600b601.rb +1 -1
- data/lib/sellapp/invoices/list_invoices_response_value_200_application_json_prope_7a67ff66a39e061e.rb +1 -1
- data/lib/sellapp/invoices/list_invoices_response_value_200_application_json_prope_7e6f99cc87da4498.rb +1 -1
- data/lib/sellapp/invoices/list_invoices_response_value_200_application_json_prope_8ba19c6e5bb23bcd.rb +1 -1
- data/lib/sellapp/invoices/list_invoices_response_value_200_application_json_property_data_item.rb +1 -1
- data/lib/sellapp/invoices/mark_pending_invoice_completed_response_value_200_appli_402285b8ef24a272.rb +1 -1
- data/lib/sellapp/invoices/mark_pending_invoice_completed_response_value_200_appli_52a1d381df5ea1b8.rb +1 -1
- data/lib/sellapp/invoices/mark_pending_invoice_completed_response_value_200_appli_b660b430b1ec4fe3.rb +1 -1
- data/lib/sellapp/invoices/mark_pending_invoice_voided_response_value_200_applicat_39144e324756b3d0.rb +1 -1
- data/lib/sellapp/invoices/mark_pending_invoice_voided_response_value_200_applicat_676dbb65ddb39d6d.rb +1 -1
- data/lib/sellapp/invoices/mark_pending_invoice_voided_response_value_200_applicat_e6145e63ddac1e79.rb +1 -1
- data/lib/sellapp/invoices/sdk_issue_replacement_for_completed_invoice_response_va_59dad8110215972f.rb +1 -1
- data/lib/sellapp/invoices/sdk_mark_pending_invoice_completed_response_value_200_application_json.rb +1 -1
- data/lib/sellapp/invoices/sdk_mark_pending_invoice_voided_response_value_200_application_json.rb +1 -1
- data/lib/sellapp/invoices/sdk_update_invoice_status_response_value_200_application_json.rb +1 -1
- data/lib/sellapp/invoices/search_invoices_response_value_200_application_json_pro_629157f0f628bf19.rb +1 -1
- data/lib/sellapp/invoices/search_invoices_response_value_200_application_json_pro_8816c57834d18126.rb +1 -1
- data/lib/sellapp/invoices/search_invoices_response_value_200_application_json_pro_faae45d8b445442d.rb +1 -1
- data/lib/sellapp/invoices/search_invoices_response_value_200_application_json_property_data_item.rb +1 -1
- data/lib/sellapp/invoices/update_invoice_status_response_value_200_application_js_2a45851a5bac959c.rb +1 -1
- data/lib/sellapp/invoices/update_invoice_status_response_value_200_application_js_596c8c35d2776a6e.rb +1 -1
- data/lib/sellapp/invoices/update_invoice_status_response_value_200_application_js_5ddc5eec93b61311.rb +1 -1
- data/lib/sellapp/invoices.rb +7 -7
- data/lib/sellapp/orders.rb +2 -2
- data/lib/sellapp/product_variants/batch_create_product_variants_request_application_json_f7955cb84807f42d.rb +4 -0
- data/lib/sellapp/product_variants/batch_create_product_variants_response_value_200_applic_55397d6292d490d7.rb +32 -0
- data/lib/sellapp/product_variants/batch_create_product_variants_response_value_200_applic_5d961676137de8ec.rb +7 -0
- data/lib/sellapp/product_variants/batch_create_product_variants_response_value_200_applic_86f522bd59f541d6.rb +36 -0
- data/lib/sellapp/product_variants/batch_create_product_variants_response_value_200_applic_f8d8e72fd1ac31df.rb +7 -3
- data/lib/sellapp/product_variants/batch_delete_product_variants_response_value_200_applic_46743e853349a693.rb +82 -1
- data/lib/sellapp/product_variants/batch_delete_product_variants_response_value_200_applic_4f7fc18215784387.rb +32 -0
- data/lib/sellapp/product_variants/batch_delete_product_variants_response_value_200_applic_61d3fe356156617a.rb +7 -0
- data/lib/sellapp/product_variants/batch_delete_product_variants_response_value_200_applic_f537bac07a5096f6.rb +38 -1
- data/lib/sellapp/product_variants/batch_delete_product_variants_response_value_200_applic_fbb197394e0578d4.rb +36 -0
- data/lib/sellapp/product_variants/batch_update_product_variants_request_application_json_204c51466c3d72a7.rb +11 -3
- data/lib/sellapp/product_variants/batch_update_product_variants_response_value_200_applic_0b5432f752b791c7.rb +36 -0
- data/lib/sellapp/product_variants/batch_update_product_variants_response_value_200_applic_25eec2dabeeb9335.rb +82 -1
- data/lib/sellapp/product_variants/batch_update_product_variants_response_value_200_applic_3bcbc4ae6bd62480.rb +38 -1
- data/lib/sellapp/product_variants/batch_update_product_variants_response_value_200_applic_62b962d54b7dcfe5.rb +7 -0
- data/lib/sellapp/product_variants/batch_update_product_variants_response_value_200_applic_897de6fe082dc04a.rb +32 -0
- data/lib/sellapp/product_variants/create_product_variant_response_value_201_application_j_432a56466e0dfcb1.rb +36 -0
- data/lib/sellapp/product_variants/create_product_variant_response_value_201_application_j_9ab3a548f6675913.rb +7 -0
- data/lib/sellapp/product_variants/create_product_variant_response_value_201_application_j_ec452f5259d08899.rb +38 -1
- data/lib/sellapp/product_variants/create_product_variant_response_value_201_application_j_fcb291d38e267391.rb +32 -0
- data/lib/sellapp/product_variants/create_product_variant_response_value_201_application_json_property_data.rb +82 -1
- data/lib/sellapp/product_variants/delete_product_variant_response_value_200_application_j_1625f933ea9ef222.rb +38 -1
- data/lib/sellapp/product_variants/delete_product_variant_response_value_200_application_j_253e3aa89c30ea4d.rb +32 -0
- data/lib/sellapp/product_variants/delete_product_variant_response_value_200_application_j_512136b8d3549914.rb +36 -0
- data/lib/sellapp/product_variants/delete_product_variant_response_value_200_application_j_eee56a417d83c915.rb +7 -0
- data/lib/sellapp/product_variants/delete_product_variant_response_value_200_application_json_property_data.rb +82 -1
- data/lib/sellapp/product_variants/get_product_variant_response_value_200_application_json_39a20656a1877d3e.rb +38 -1
- data/lib/sellapp/product_variants/get_product_variant_response_value_200_application_json_5c36c0aed9bc127b.rb +32 -0
- data/lib/sellapp/product_variants/get_product_variant_response_value_200_application_json_7d90752def54f603.rb +7 -0
- data/lib/sellapp/product_variants/get_product_variant_response_value_200_application_json_a5840703626bd079.rb +36 -0
- data/lib/sellapp/product_variants/get_product_variant_response_value_200_application_json_property_data.rb +82 -1
- data/lib/sellapp/product_variants/list_product_variants_response_value_200_application_js_27ddb830e302cbb4.rb +38 -1
- data/lib/sellapp/product_variants/list_product_variants_response_value_200_application_js_61bd6a02c1541ad3.rb +32 -0
- data/lib/sellapp/product_variants/list_product_variants_response_value_200_application_js_9a92f855b36ba154.rb +36 -0
- data/lib/sellapp/product_variants/list_product_variants_response_value_200_application_js_e6e4f34bc9c5ef21.rb +7 -0
- data/lib/sellapp/product_variants/replace_product_variant_pricing_request_application_jso_5fddb64b863cba15.rb +36 -0
- data/lib/sellapp/product_variants/replace_product_variant_pricing_request_application_jso_e8b8f08422f94a24.rb +32 -0
- data/lib/sellapp/product_variants/replace_product_variant_pricing_request_application_jso_f0c3d4b7add5a74b.rb +32 -0
- data/lib/sellapp/product_variants/replace_product_variant_pricing_request_application_jso_f2e2f3da76859370.rb +7 -3
- data/lib/sellapp/product_variants/replace_product_variant_pricing_response_value_200_appl_02625ea2a00f5c11.rb +7 -0
- data/lib/sellapp/product_variants/replace_product_variant_pricing_response_value_200_appl_3952043ad627e3ba.rb +38 -1
- data/lib/sellapp/product_variants/replace_product_variant_pricing_response_value_200_appl_49b9539bb3faf3af.rb +32 -0
- data/lib/sellapp/product_variants/replace_product_variant_pricing_response_value_200_appl_938bcba5499e5ba2.rb +36 -0
- data/lib/sellapp/product_variants/replace_product_variant_pricing_response_value_200_appl_a48e0d3056849ba8.rb +82 -1
- data/lib/sellapp/product_variants/replace_product_variant_with_put_response_value_200_app_2a107fa42e603ca6.rb +32 -0
- data/lib/sellapp/product_variants/replace_product_variant_with_put_response_value_200_app_35eb6a14d86193b9.rb +36 -0
- data/lib/sellapp/product_variants/replace_product_variant_with_put_response_value_200_app_37053f7be0d6429f.rb +38 -1
- data/lib/sellapp/product_variants/replace_product_variant_with_put_response_value_200_app_4bee4b00b932c7fb.rb +7 -0
- data/lib/sellapp/product_variants/replace_product_variant_with_put_response_value_200_app_f261708d7ab0e92e.rb +82 -1
- data/lib/sellapp/product_variants/sdk_batch_delete_product_variants_response_value_200_application_json.rb +21 -1
- data/lib/sellapp/product_variants/sdk_batch_update_product_variants_response_value_200_application_json.rb +21 -1
- data/lib/sellapp/product_variants/sdk_create_product_variant_request_application_json.rb +4 -0
- data/lib/sellapp/product_variants/sdk_delete_product_variant_request_application_json.rb +7 -0
- data/lib/sellapp/product_variants/sdk_delete_product_variant_response_value_200_application_json.rb +21 -1
- data/lib/sellapp/product_variants/sdk_get_product_variant_response_value_200_application_json.rb +21 -1
- data/lib/sellapp/product_variants/sdk_replace_product_variant_pricing_request_application_json.rb +1 -1
- data/lib/sellapp/product_variants/sdk_replace_product_variant_pricing_response_value_200_application_json.rb +21 -1
- data/lib/sellapp/product_variants/sdk_replace_product_variant_with_put_request_application_json.rb +11 -3
- data/lib/sellapp/product_variants/sdk_replace_product_variant_with_put_response_value_200_application_json.rb +21 -1
- data/lib/sellapp/product_variants/sdk_search_product_variants_response_value_200_application_json.rb +30 -1
- data/lib/sellapp/product_variants/sdk_update_product_variant_pricing_request_application_json.rb +1 -1
- data/lib/sellapp/product_variants/sdk_update_product_variant_pricing_response_value_200_application_json.rb +21 -1
- data/lib/sellapp/product_variants/sdk_update_product_variant_request_application_json.rb +11 -3
- data/lib/sellapp/product_variants/sdk_update_product_variant_response_value_200_application_json.rb +21 -1
- data/lib/sellapp/product_variants/search_product_variants_response_value_200_application_06f0e191901d4516.rb +36 -0
- data/lib/sellapp/product_variants/search_product_variants_response_value_200_application_3c00d6fbb94ff355.rb +32 -0
- data/lib/sellapp/product_variants/search_product_variants_response_value_200_application_6c2a7aac716e111e.rb +7 -0
- data/lib/sellapp/product_variants/search_product_variants_response_value_200_application_d28e51b3bfad1a5c.rb +38 -1
- data/lib/sellapp/product_variants/search_product_variants_response_value_200_application_e2c2895b71723d71.rb +82 -1
- data/lib/sellapp/product_variants/update_product_variant_pricing_request_application_json_32174a021ed2b562.rb +36 -0
- data/lib/sellapp/product_variants/update_product_variant_pricing_request_application_json_64bacb17d0182259.rb +32 -0
- data/lib/sellapp/product_variants/update_product_variant_pricing_request_application_json_d05e0aaddb671184.rb +32 -0
- data/lib/sellapp/product_variants/update_product_variant_pricing_request_application_json_property_pricing.rb +7 -3
- data/lib/sellapp/product_variants/update_product_variant_pricing_response_value_200_appli_7eb4581690d93d51.rb +36 -0
- data/lib/sellapp/product_variants/update_product_variant_pricing_response_value_200_appli_86f48bf6582b3fb4.rb +7 -0
- data/lib/sellapp/product_variants/update_product_variant_pricing_response_value_200_appli_a08396f8f7e99a40.rb +82 -1
- data/lib/sellapp/product_variants/update_product_variant_pricing_response_value_200_appli_ea4e2475c5e43cf1.rb +38 -1
- data/lib/sellapp/product_variants/update_product_variant_pricing_response_value_200_appli_ea785bdd54e04c3b.rb +32 -0
- data/lib/sellapp/product_variants/update_product_variant_response_value_200_application_j_3e8ceee3996cb7ce.rb +36 -0
- data/lib/sellapp/product_variants/update_product_variant_response_value_200_application_j_5a00baba4018ffc5.rb +38 -1
- data/lib/sellapp/product_variants/update_product_variant_response_value_200_application_j_dc7155b2f60bfa67.rb +32 -0
- data/lib/sellapp/product_variants/update_product_variant_response_value_200_application_j_f6e8ecea84932799.rb +7 -0
- data/lib/sellapp/product_variants/update_product_variant_response_value_200_application_json_property_data.rb +82 -1
- data/lib/sellapp/product_variants.rb +25 -3
- data/lib/sellapp/products/create_product_request_application_json_property_variants_item.rb +4 -0
- data/lib/sellapp/promotions/create_promotion_response_value_201_application_json_property_data.rb +20 -0
- data/lib/sellapp/promotions/delete_promotion_response_value_200_application_json_property_data.rb +20 -0
- data/lib/sellapp/promotions/get_promotion_response_value_200_application_json_property_data.rb +20 -0
- data/lib/sellapp/promotions/replace_promotion_response_value_200_application_json_property_data.rb +20 -0
- data/lib/sellapp/promotions/restore_promotion_response_value_200_application_json_property_data.rb +20 -0
- data/lib/sellapp/promotions/sdk_create_promotion_request_application_json.rb +20 -0
- data/lib/sellapp/promotions/sdk_replace_promotion_request_application_json.rb +20 -0
- data/lib/sellapp/promotions/sdk_restore_promotion_request_application_json.rb +20 -0
- data/lib/sellapp/promotions/sdk_update_promotion_request_application_json.rb +20 -0
- data/lib/sellapp/promotions/update_promotion_response_value_200_application_json_property_data.rb +20 -0
- data/lib/sellapp/promotions.rb +62 -2
- data/lib/sellapp/shared/batch_create_coupons_response_value_201_application_jso_a0caeba3fad6205f.rb +8 -0
- data/lib/sellapp/shared/batch_create_product_variants_response_value_201_applic_0bc62301b27d4389.rb +82 -1
- data/lib/sellapp/shared/batch_create_product_variants_response_value_201_applic_4412aa60f61be3e5.rb +32 -0
- data/lib/sellapp/shared/batch_create_product_variants_response_value_201_applic_52153f56c59444b3.rb +36 -0
- data/lib/sellapp/shared/batch_create_product_variants_response_value_201_applic_82b197a914cf0ccf.rb +38 -1
- data/lib/sellapp/shared/batch_create_product_variants_response_value_201_applic_df9a9910eb6198f0.rb +7 -0
- data/lib/sellapp/shared/create_checkout_session_response_value_201_application_c01eb75b6ba1d484.rb +1 -1
- data/lib/sellapp/shared/create_checkout_session_response_value_201_application_d7b2177a5c5c7834.rb +7 -0
- data/lib/sellapp/shared/sdk_batch_create_product_variants_response_value_201_application_json.rb +21 -1
- data/lib/sellapp/shared/upsert_customer_response_value_201_application_json_pro_0c835817b71b1115.rb +1 -1
- data/lib/sellapp/shared/v_2_batch_create_coupons_response_value_201_application_2470749202844407.rb +8 -0
- data/lib/sellapp/subscriptions/cancel_subscription_at_period_end_response_value_200_ap_6409adac3c0f0072.rb +9 -1
- data/lib/sellapp/subscriptions/cancel_subscription_immediately_response_value_200_appl_e9e78022e05c4ccb.rb +9 -1
- data/lib/sellapp/{customer_portal/cancel_customer_subscription_at_period_end_response_val_400775a4a08b1f68.rb → subscriptions/cancel_subscription_response_value_200_application_json_e2ce1ae55aff4517.rb} +3 -3
- data/lib/sellapp/subscriptions/cancel_subscription_response_value_200_application_json_property_data.rb +76 -11
- data/lib/sellapp/subscriptions/confirm_subscription_plan_change_response_value_200_app_165ae818f15da5ad.rb +76 -0
- data/lib/sellapp/subscriptions/confirm_subscription_renewal_date_change_response_value_003754f9ed1da158.rb +9 -1
- data/lib/sellapp/subscriptions/dismiss_subscription_action_response_value_200_applicat_6a1500e747207621.rb +76 -0
- data/lib/sellapp/subscriptions/get_subscription_action_response_value_200_application_b18090f02f1e4c68.rb +76 -0
- data/lib/sellapp/subscriptions/get_subscription_response_value_200_application_json_pr_02d4ff7e080fa2c4.rb +1 -1
- data/lib/sellapp/subscriptions/get_subscription_response_value_200_application_json_property_data.rb +143 -1
- data/lib/sellapp/subscriptions/keep_subscription_response_value_200_application_json_property_data.rb +76 -0
- data/lib/sellapp/subscriptions/pause_subscription_response_value_200_application_json_property_data.rb +9 -1
- data/lib/sellapp/subscriptions/preview_subscription_plan_change_response_value_200_app_7c013044a3b1c14f.rb +7 -0
- data/lib/sellapp/subscriptions/preview_subscription_plan_change_response_value_200_app_81f8bf9583de2c22.rb +48 -0
- data/lib/sellapp/subscriptions/resume_subscription_response_value_200_application_json_property_data.rb +9 -1
- data/lib/sellapp/subscriptions/sdk_confirm_subscription_plan_change_response_value_200_application_json.rb +36 -0
- data/lib/sellapp/subscriptions/sdk_dismiss_subscription_action_request_application_json.rb +32 -0
- data/lib/sellapp/subscriptions/sdk_dismiss_subscription_action_response_value_200_application_json.rb +32 -0
- data/lib/sellapp/subscriptions/sdk_get_subscription_action_response_value_200_application_json.rb +27 -0
- data/lib/sellapp/subscriptions/sdk_get_subscription_response_value_200_application_json.rb +21 -1
- data/lib/sellapp/{customer_portal/cancel_customer_subscription_at_period_end_response_val_e11ff4f0b23dea7a.rb → subscriptions/sdk_keep_subscription_request_application_json.rb} +12 -5
- data/lib/sellapp/subscriptions/sdk_keep_subscription_response_value_200_application_json.rb +32 -0
- data/lib/sellapp/subscriptions/sdk_list_subscription_actions_response_value_200_application_json.rb +7 -0
- data/lib/sellapp/subscriptions/sdk_list_subscriptions_response_value_200_application_json.rb +1 -30
- data/lib/sellapp/subscriptions/sdk_preview_subscription_plan_change_response_value_200_application_json.rb +32 -0
- data/lib/sellapp/subscriptions/sdk_resume_subscription_request_application_json.rb +1 -21
- data/lib/sellapp/subscriptions/sdk_search_subscriptions_request_application_json.rb +14 -6
- data/lib/sellapp/subscriptions/sdk_search_subscriptions_response_value_200_application_json.rb +1 -1
- data/lib/sellapp/subscriptions/sdk_update_subscription_payment_method_request_application_json.rb +26 -1
- data/lib/sellapp/subscriptions/sdk_update_subscription_payment_method_response_value_2_0e7dda95f205bad2.rb +36 -0
- data/lib/sellapp/subscriptions/search_subscriptions_request_application_json_property_d64a9058144ab025.rb +7 -0
- data/lib/sellapp/subscriptions/search_subscriptions_request_application_json_property_filters_item.rb +44 -0
- data/lib/sellapp/subscriptions/search_subscriptions_request_application_json_property_includes_item.rb +7 -0
- data/lib/sellapp/subscriptions/search_subscriptions_request_application_json_property_search.rb +7 -0
- data/lib/sellapp/subscriptions/search_subscriptions_request_application_json_property_sort_item.rb +32 -0
- data/lib/sellapp/subscriptions/subscription_plan_change_preview_payload.rb +44 -0
- data/lib/sellapp/subscriptions/update_subscription_payment_method_response_value_200_a_ef70359cc2691f13.rb +76 -0
- data/lib/sellapp/subscriptions.rb +166 -89
- data/lib/sellapp/subscriptions_actions.rb +116 -0
- data/lib/sellapp/types/batch_create_coupons_request_application_json_property_23b9d0de383242f7.rb +13 -0
- data/lib/sellapp/types/batch_create_coupons_response_value_200_application_jso_eb3c4879ea3d5cdf.rb +9 -0
- data/lib/sellapp/types/batch_create_coupons_response_value_201_application_jso_aa01c651906d92eb.rb +9 -0
- data/lib/sellapp/types/batch_create_product_variants_response_value_200_applic_2942a5ba451b2584.rb +13 -0
- data/lib/sellapp/types/batch_create_product_variants_response_value_200_applic_bbc133b66c1d0323.rb +15 -0
- data/lib/sellapp/types/batch_create_product_variants_response_value_201_applic_417bb542a33a5dad.rb +9 -0
- data/lib/sellapp/types/batch_create_product_variants_response_value_201_applic_da8d9005e17ee8da.rb +9 -0
- data/lib/sellapp/types/batch_delete_coupons_response_value_200_application_jso_71ab6b253b373877.rb +9 -0
- data/lib/sellapp/types/batch_delete_product_variants_response_value_200_applic_1b82aad85abd74b1.rb +9 -0
- data/lib/sellapp/types/batch_delete_product_variants_response_value_200_applic_f87b1b150f9bf4fb.rb +9 -0
- data/lib/sellapp/types/batch_update_coupons_request_application_json_property_35c03d76d732dd87.rb +9 -0
- data/lib/sellapp/types/batch_update_coupons_response_value_200_application_jso_70356cdc744ddc9a.rb +9 -0
- data/lib/sellapp/types/batch_update_product_variants_response_value_200_applic_15d8a18d1da30e1b.rb +9 -0
- data/lib/sellapp/types/batch_update_product_variants_response_value_200_applic_9bb20266e35c9dfa.rb +9 -0
- data/lib/sellapp/types/cancel_customer_subscription_at_period_end_response_val_0bf4364417656a91.rb +20 -0
- data/lib/sellapp/types/cancel_customer_subscription_at_period_end_response_val_be50b73f3b2a4c5d.rb +16 -0
- data/lib/sellapp/types/cancel_customer_subscription_immediately_response_value_33c18cc4158d461a.rb +9 -0
- data/lib/sellapp/types/cancel_customer_subscription_immediately_response_value_f0f5854d5c8939a9.rb +9 -0
- data/lib/sellapp/types/cancel_subscription_at_period_end_response_value_200_ap_86c430098c4454c7.rb +1 -10
- data/lib/sellapp/types/cancel_subscription_immediately_response_value_200_appl_cdd6aebb6ff00a9b.rb +1 -1
- data/lib/sellapp/types/cancel_subscription_response_value_200_application_json_b4d708055e2845fd.rb +18 -0
- data/lib/sellapp/types/confirm_customer_subscription_plan_change_response_valu_89741c8c56a69118.rb +9 -0
- data/lib/sellapp/types/confirm_customer_subscription_plan_change_response_valu_8ddd853d4257e4e2.rb +9 -0
- data/lib/sellapp/types/confirm_customer_subscription_renewal_date_change_respo_022fc2b5f97e9caa.rb +9 -0
- data/lib/sellapp/types/confirm_customer_subscription_renewal_date_change_respo_ff65d280a2bd2a1d.rb +9 -0
- data/lib/sellapp/types/confirm_subscription_plan_change_response_value_200_app_67e0b5b34b4bdd4b.rb +9 -0
- data/lib/sellapp/types/confirm_subscription_plan_change_response_value_200_app_86d1f45910d1c098.rb +9 -0
- data/lib/sellapp/types/confirm_subscription_renewal_date_change_response_value_4373b33874063209.rb +1 -1
- data/lib/sellapp/types/create_coupon_response_value_201_application_json_prope_3d21ce3bd8a7aec6.rb +9 -0
- data/lib/sellapp/types/create_product_variant_response_value_201_application_j_1003c6a73ad74d04.rb +9 -0
- data/lib/sellapp/types/create_product_variant_response_value_201_application_j_7381e3761d51b935.rb +9 -0
- data/lib/sellapp/types/create_promotion_response_value_201_application_json_pr_bd065be47c0828fc.rb +9 -0
- data/lib/sellapp/types/create_webhook_channel_response_value_201_application_j_51630cf318748378.rb +5 -1
- data/lib/sellapp/types/customer_portal_subscription_status.rb +9 -0
- data/lib/sellapp/types/delete_coupon_response_value_200_application_json_prope_1ce204876f91a600.rb +9 -0
- data/lib/sellapp/types/delete_product_variant_response_value_200_application_j_643d5c5ecd83d47b.rb +9 -0
- data/lib/sellapp/types/delete_product_variant_response_value_200_application_j_fce82679919230cb.rb +9 -0
- data/lib/sellapp/types/delete_promotion_response_value_200_application_json_pr_fbb5afc20ff855eb.rb +9 -0
- data/lib/sellapp/types/dismiss_subscription_action_response_value_200_applicat_25e36f630bb4c837.rb +9 -0
- data/lib/sellapp/types/dismiss_subscription_action_response_value_200_applicat_4ae8e514091c9fa1.rb +9 -0
- data/lib/sellapp/types/get_bundle_item_response_value_200_application_json_pro_62d5618f50a224f4.rb +9 -0
- data/lib/sellapp/types/get_bundle_item_response_value_200_application_json_pro_72ff07d9a45db027.rb +9 -0
- data/lib/sellapp/types/get_coupon_response_value_200_application_json_property_data_applies_to.rb +9 -0
- data/lib/sellapp/types/get_customer_portal_subscription_capabilities_response_c7be24af2b846890.rb +17 -0
- data/lib/sellapp/types/get_product_variant_response_value_200_application_json_b31fc93bb1115ebe.rb +9 -0
- data/lib/sellapp/types/get_product_variant_response_value_200_application_json_ec26e205803b8222.rb +9 -0
- data/lib/sellapp/types/get_promotion_response_value_200_application_json_prope_d62ba91b9a406535.rb +9 -0
- data/lib/sellapp/types/get_subscription_action_response_value_200_application_889293007a3e8028.rb +9 -0
- data/lib/sellapp/types/get_subscription_action_response_value_200_application_ec4418980df7ae13.rb +9 -0
- data/lib/sellapp/types/get_subscription_capabilities_response_value_200_applic_c868953288b435f6.rb +1 -9
- data/lib/sellapp/types/get_subscription_response_value_200_application_json_pr_8daed32cf53e1f73.rb +9 -0
- data/lib/sellapp/types/get_webhook_delivery_response_value_200_application_jso_6601bea4be0273b9.rb +3 -1
- data/lib/sellapp/types/keep_subscription_response_value_200_application_json_p_3c908fdf2c78cf9e.rb +9 -0
- data/lib/sellapp/types/keep_subscription_response_value_200_application_json_p_b695d95c4d5ce2f1.rb +9 -0
- data/lib/sellapp/types/list_bundle_items_response_value_200_application_json_p_1b562b16f2d58944.rb +9 -0
- data/lib/sellapp/types/list_bundle_items_response_value_200_application_json_p_c10fbeb26cfbdbf2.rb +9 -0
- data/lib/sellapp/types/list_coupons_response_value_200_application_json_proper_c84bf0f0f40abc22.rb +9 -0
- data/lib/sellapp/types/list_product_variants_response_value_200_application_js_9e1e6577dfc20b61.rb +9 -0
- data/lib/sellapp/types/list_product_variants_response_value_200_application_js_ab1db6f992a67efe.rb +9 -0
- data/lib/sellapp/types/pause_customer_subscription_response_value_200_applicat_b28e1b2262625bb8.rb +9 -0
- data/lib/sellapp/types/pause_customer_subscription_response_value_200_applicat_b57d57be23f7f75f.rb +9 -0
- data/lib/sellapp/types/pause_subscription_response_value_200_application_json_53ce84562987d30f.rb +1 -1
- data/lib/sellapp/types/replace_coupon_response_value_200_application_json_prop_c238cac1df08d57f.rb +9 -0
- data/lib/sellapp/types/replace_product_variant_pricing_request_application_jso_2c7da99bab64b988.rb +9 -0
- data/lib/sellapp/types/replace_product_variant_pricing_request_application_jso_50a32f3b446fcfa0.rb +9 -0
- data/lib/sellapp/types/replace_product_variant_pricing_request_application_jso_9a243a8a708b319d.rb +1 -7
- data/lib/sellapp/types/replace_product_variant_pricing_request_application_jso_bfc34be01eb90e59.rb +9 -0
- data/lib/sellapp/types/replace_product_variant_pricing_response_value_200_appl_1c5c7cfaf3263839.rb +9 -0
- data/lib/sellapp/types/replace_product_variant_pricing_response_value_200_appl_56e63344ae14c210.rb +9 -0
- data/lib/sellapp/types/replace_product_variant_with_put_response_value_200_app_53e2da956105de14.rb +9 -0
- data/lib/sellapp/types/replace_product_variant_with_put_response_value_200_app_bc33ce9bb289b54b.rb +9 -0
- data/lib/sellapp/types/replace_promotion_response_value_200_application_json_p_6450f28871d5e029.rb +9 -0
- data/lib/sellapp/types/restore_promotion_response_value_200_application_json_p_75424b375358ddfe.rb +9 -0
- data/lib/sellapp/types/resume_customer_subscription_response_value_200_applica_6de065657d973ad7.rb +9 -0
- data/lib/sellapp/types/resume_customer_subscription_response_value_200_applica_998ee0d4a44cb6ca.rb +9 -0
- data/lib/sellapp/types/resume_subscription_response_value_200_application_json_2c0d4ed1aedcbdf8.rb +1 -1
- data/lib/sellapp/types/sdk_confirm_customer_subscription_plan_change_request_a_6695407027f625c3.rb +13 -0
- data/lib/sellapp/types/sdk_confirm_customer_subscription_plan_change_request_a_d564a5d9c5ebb779.rb +15 -0
- data/lib/sellapp/types/sdk_confirm_subscription_plan_change_request_applicatio_1140ddcbbca91a39.rb +1 -7
- data/lib/sellapp/types/sdk_confirm_subscription_plan_change_request_applicatio_7bb1fbcc438e7b33.rb +1 -5
- data/lib/sellapp/types/sdk_create_coupon_request_application_json_applies_to.rb +9 -0
- data/lib/sellapp/types/sdk_create_promotion_request_application_json_applies_to.rb +9 -0
- data/lib/sellapp/types/sdk_preview_customer_subscription_plan_change_request_a_e15a2021104961b5.rb +9 -0
- data/lib/sellapp/types/sdk_preview_customer_subscription_plan_change_request_a_ef0f686cfc724974.rb +9 -0
- data/lib/sellapp/types/sdk_preview_subscription_plan_change_request_applicatio_9f5e23aedb1765cc.rb +1 -1
- data/lib/sellapp/types/sdk_preview_subscription_plan_change_request_applicatio_caea84ed852ca8d4.rb +1 -1
- data/lib/sellapp/types/sdk_replace_coupon_request_application_json_applies_to.rb +9 -0
- data/lib/sellapp/types/sdk_replace_promotion_request_application_json_applies_to.rb +9 -0
- data/lib/sellapp/types/sdk_restore_promotion_request_application_json_applies_to.rb +9 -0
- data/lib/sellapp/types/sdk_update_coupon_request_application_json_applies_to.rb +9 -0
- data/lib/sellapp/types/sdk_update_promotion_request_application_json_applies_to.rb +9 -0
- data/lib/sellapp/types/sdk_v_2_create_coupon_request_application_json_applies_to.rb +9 -0
- data/lib/sellapp/types/sdk_v_2_replace_coupon_request_application_json_applies_to.rb +9 -0
- data/lib/sellapp/types/sdk_v_2_update_coupon_request_application_json_applies_to.rb +9 -0
- data/lib/sellapp/types/search_coupons_response_value_200_application_json_prop_7c742f2d6e7b988d.rb +9 -0
- data/lib/sellapp/types/search_product_variants_response_value_200_application_5db3416c5477bd61.rb +9 -0
- data/lib/sellapp/types/search_product_variants_response_value_200_application_fa2c20caea12af3a.rb +9 -0
- data/lib/sellapp/types/search_subscriptions_request_application_json_property_21bbb1ee157aff8f.rb +9 -0
- data/lib/sellapp/types/search_subscriptions_request_application_json_property_filters_item_type.rb +9 -0
- data/lib/sellapp/types/subscriptions_status.rb +9 -0
- data/lib/sellapp/types/update_coupon_response_value_200_application_json_prope_c3ff67e4c7f9fe53.rb +9 -0
- data/lib/sellapp/types/update_customer_subscription_payment_method_response_va_5adc7a58a6006a5d.rb +9 -0
- data/lib/sellapp/types/update_customer_subscription_payment_method_response_va_a233737e5d7ecd7c.rb +9 -0
- data/lib/sellapp/types/update_product_variant_pricing_request_application_json_06c5b996dce6bb26.rb +1 -1
- data/lib/sellapp/types/update_product_variant_pricing_request_application_json_4c0c8a8519dd9622.rb +9 -0
- data/lib/sellapp/types/update_product_variant_pricing_request_application_json_6d20a5fc97b581b4.rb +9 -0
- data/lib/sellapp/types/update_product_variant_pricing_request_application_json_7988a8bcd048e2e2.rb +9 -0
- data/lib/sellapp/types/update_product_variant_pricing_response_value_200_appli_27b3b5e91f833702.rb +9 -0
- data/lib/sellapp/types/update_product_variant_pricing_response_value_200_appli_9d1bc81d5c724b88.rb +9 -0
- data/lib/sellapp/types/update_product_variant_response_value_200_application_j_8f19a9985407d82f.rb +9 -0
- data/lib/sellapp/types/update_product_variant_response_value_200_application_j_cb09690ab5cb3ac5.rb +9 -0
- data/lib/sellapp/types/update_promotion_response_value_200_application_json_pr_1fdb8ae70db0478c.rb +9 -0
- data/lib/sellapp/types/update_subscription_payment_method_response_value_200_a_84d80a8722656b6c.rb +9 -0
- data/lib/sellapp/types/update_subscription_payment_method_response_value_200_a_f7c5ce6ab0429950.rb +9 -0
- data/lib/sellapp/types/v_2_batch_create_coupons_request_application_json_prope_c6fb9db06d9f3628.rb +9 -0
- data/lib/sellapp/types/v_2_batch_create_coupons_response_value_200_application_259dceec390e1acb.rb +9 -0
- data/lib/sellapp/types/v_2_batch_create_coupons_response_value_201_application_3b0f0c24930f2601.rb +9 -0
- data/lib/sellapp/types/v_2_batch_delete_coupons_response_value_200_application_9a191f60c8e0f225.rb +9 -0
- data/lib/sellapp/types/v_2_batch_update_coupons_request_application_json_prope_2da43d7864ecadfe.rb +9 -0
- data/lib/sellapp/types/v_2_batch_update_coupons_response_value_200_application_0223795fd9bad981.rb +9 -0
- data/lib/sellapp/types/v_2_create_coupon_response_value_201_application_json_p_8e2791c35123e1ff.rb +9 -0
- data/lib/sellapp/types/v_2_delete_coupon_response_value_200_application_json_p_f113bec2aa2a6e72.rb +9 -0
- data/lib/sellapp/types/v_2_get_coupon_response_value_200_application_json_prop_084e009dbfc97a24.rb +9 -0
- data/lib/sellapp/types/v_2_list_coupons_response_value_200_application_json_pr_ef119abaf889dbc9.rb +9 -0
- data/lib/sellapp/types/v_2_replace_coupon_response_value_200_application_json_e41c4f99f44e3ce7.rb +9 -0
- data/lib/sellapp/types/v_2_search_coupons_response_value_200_application_json_361cf1cdef0fb6ea.rb +9 -0
- data/lib/sellapp/types/v_2_update_coupon_response_value_200_application_json_p_ef4ea06803ae542a.rb +9 -0
- data/lib/sellapp/version.rb +1 -1
- data/lib/sellapp/webhook_channels/create_webhook_channel_response_value_201_application_json_property_data.rb +1 -1
- data/lib/sellapp/webhook_channels/delete_webhook_channel_response_value_200_application_json_property_data.rb +1 -1
- data/lib/sellapp/webhook_channels/get_webhook_channel_response_value_200_application_json_property_data.rb +1 -1
- data/lib/sellapp/webhook_channels/list_webhook_channels_response_value_200_application_js_a1eb6b96a856726b.rb +1 -1
- data/lib/sellapp/webhook_channels/replace_webhook_channel_response_value_200_application_91bcedad7023dfdb.rb +1 -1
- data/lib/sellapp/webhook_channels/sdk_create_webhook_channel_request_application_json.rb +1 -1
- data/lib/sellapp/webhook_channels/sdk_replace_webhook_channel_request_application_json.rb +1 -1
- data/lib/sellapp/webhook_channels/sdk_search_webhook_channels_request_application_json.rb +1 -1
- data/lib/sellapp/webhook_channels/sdk_send_test_webhook_request_application_json.rb +1 -1
- data/lib/sellapp/webhook_channels/sdk_update_webhook_channel_request_application_json.rb +1 -1
- data/lib/sellapp/webhook_channels/search_webhook_channels_response_value_200_application_8b0363862f2da308.rb +1 -1
- data/lib/sellapp/webhook_channels/send_test_webhook_response_value_200_application_json_property_data.rb +1 -1
- data/lib/sellapp/webhook_channels/update_webhook_channel_response_value_200_application_json_property_data.rb +1 -1
- data/lib/sellapp/webhook_platform/get_webhook_delivery_response_value_200_application_json_property_data.rb +1 -1
- data/lib/sellapp/webhook_platform/list_webhook_deliveries_response_value_200_application_ee5250441aa280d8.rb +1 -1
- data/lib/sellapp/webhook_platform/replay_webhook_delivery_response_value_201_application_392e01c2cabfcd77.rb +1 -1
- data/rbi/sellapp/batch_create_coupons_request_application_json_property_resources_item.rbi +12 -0
- data/rbi/sellapp/batch_create_coupons_response_value_200_application_jso_0ec85b96d02637d5.rbi +12 -0
- data/rbi/sellapp/batch_create_coupons_response_value_201_application_jso_a0caeba3fad6205f.rbi +12 -0
- data/rbi/sellapp/batch_create_product_variants_request_application_json_f7955cb84807f42d.rbi +6 -0
- data/rbi/sellapp/batch_create_product_variants_response_value_200_applic_55397d6292d490d7.rbi +30 -0
- data/rbi/sellapp/batch_create_product_variants_response_value_200_applic_5d961676137de8ec.rbi +30 -0
- data/rbi/sellapp/batch_create_product_variants_response_value_200_applic_86f522bd59f541d6.rbi +36 -0
- data/rbi/sellapp/batch_create_product_variants_response_value_200_applic_f8d8e72fd1ac31df.rbi +6 -0
- data/rbi/sellapp/batch_create_product_variants_response_value_201_applic_4412aa60f61be3e5.rbi +30 -0
- data/rbi/sellapp/batch_create_product_variants_response_value_201_applic_52153f56c59444b3.rbi +36 -0
- data/rbi/sellapp/batch_create_product_variants_response_value_201_applic_82b197a914cf0ccf.rbi +6 -0
- data/rbi/sellapp/batch_create_product_variants_response_value_201_applic_df9a9910eb6198f0.rbi +30 -0
- data/rbi/sellapp/batch_delete_coupons_response_value_200_application_jso_e32fc6c28be8fcb0.rbi +12 -0
- data/rbi/sellapp/batch_delete_product_variants_response_value_200_applic_4f7fc18215784387.rbi +30 -0
- data/rbi/sellapp/batch_delete_product_variants_response_value_200_applic_61d3fe356156617a.rbi +30 -0
- data/rbi/sellapp/batch_delete_product_variants_response_value_200_applic_f537bac07a5096f6.rbi +6 -0
- data/rbi/sellapp/batch_delete_product_variants_response_value_200_applic_fbb197394e0578d4.rbi +36 -0
- data/rbi/sellapp/batch_update_coupons_request_application_json_property_f2f17c43405120cd.rbi +12 -0
- data/rbi/sellapp/batch_update_coupons_response_value_200_application_jso_da9a40b68416b178.rbi +12 -0
- data/rbi/sellapp/batch_update_product_variants_request_application_json_204c51466c3d72a7.rbi +12 -0
- data/rbi/sellapp/batch_update_product_variants_response_value_200_applic_0b5432f752b791c7.rbi +36 -0
- data/rbi/sellapp/batch_update_product_variants_response_value_200_applic_3bcbc4ae6bd62480.rbi +6 -0
- data/rbi/sellapp/batch_update_product_variants_response_value_200_applic_62b962d54b7dcfe5.rbi +30 -0
- data/rbi/sellapp/batch_update_product_variants_response_value_200_applic_897de6fe082dc04a.rbi +30 -0
- data/rbi/sellapp/cancel_customer_subscription_at_period_end_response_val_1b237a9df5e2d312.rbi +18 -24
- data/rbi/sellapp/cancel_customer_subscription_immediately_response_value_4f922b4e84788fe6.rbi +18 -24
- data/rbi/sellapp/cancel_subscription_at_period_end_response_value_200_ap_6409adac3c0f0072.rbi +12 -0
- data/rbi/sellapp/cancel_subscription_immediately_response_value_200_appl_e9e78022e05c4ccb.rbi +12 -0
- data/rbi/sellapp/{list_subscriptions_response_value_200_application_json_ef5a64ce42a89897.rbi → cancel_subscription_response_value_200_application_json_e2ce1ae55aff4517.rbi} +3 -3
- data/rbi/sellapp/cancel_subscription_response_value_200_application_json_property_data.rbi +82 -16
- data/rbi/sellapp/{get_subscription_response_value_200_application_json_pr_fd726601caff080f.rbi → confirm_customer_subscription_plan_change_request_appli_0579929af2b2a3b6.rbi} +1 -1
- data/rbi/sellapp/confirm_customer_subscription_plan_change_response_valu_61645c9ab28a4ddf.rbi +18 -24
- data/rbi/sellapp/{list_subscriptions_response_value_200_application_json_5d2c3694b34cc2c9.rbi → confirm_customer_subscription_renewal_date_change_reque_035e9e971f9cbb0d.rbi} +1 -1
- data/rbi/sellapp/confirm_customer_subscription_renewal_date_change_respo_999430742430048f.rbi +18 -24
- data/rbi/sellapp/confirm_subscription_plan_change_response_value_200_app_165ae818f15da5ad.rbi +96 -0
- data/rbi/sellapp/confirm_subscription_renewal_date_change_response_value_003754f9ed1da158.rbi +12 -0
- data/rbi/sellapp/coupons.rbi +18 -6
- data/rbi/sellapp/create_add_on_draft_request_application_json_property_variant.rbi +6 -0
- data/rbi/sellapp/create_checkout_session_response_value_200_application_3708bfc37113f5b2.rbi +2 -2
- data/rbi/sellapp/create_checkout_session_response_value_200_application_84da4d86bf3fba9a.rbi +36 -0
- data/rbi/sellapp/create_checkout_session_response_value_200_application_8e002bfe1446badd.rbi +2 -2
- data/rbi/sellapp/create_checkout_session_response_value_201_application_7cb2c097a79c8ea5.rbi +2 -2
- data/rbi/sellapp/create_checkout_session_response_value_201_application_988fd4daf301651b.rbi +2 -2
- data/rbi/sellapp/create_checkout_session_response_value_201_application_d7b2177a5c5c7834.rbi +36 -0
- data/rbi/sellapp/create_coupon_response_value_201_application_json_property_data.rbi +12 -0
- data/rbi/sellapp/create_invoice_refund_response_value_200_application_js_37f1c1845c0b0cdd.rbi +2 -2
- data/rbi/sellapp/create_invoice_response_value_201_application_json_prop_39a001660c6a4a3d.rbi +2 -2
- data/rbi/sellapp/create_product_request_application_json_property_variants_item.rbi +6 -0
- data/rbi/sellapp/create_product_variant_response_value_201_application_j_432a56466e0dfcb1.rbi +36 -0
- data/rbi/sellapp/create_product_variant_response_value_201_application_j_9ab3a548f6675913.rbi +30 -0
- data/rbi/sellapp/create_product_variant_response_value_201_application_j_ec452f5259d08899.rbi +6 -0
- data/rbi/sellapp/create_product_variant_response_value_201_application_j_fcb291d38e267391.rbi +30 -0
- data/rbi/sellapp/create_promotion_response_value_201_application_json_property_data.rbi +30 -0
- data/rbi/sellapp/customer_portal.rbi +24 -48
- data/rbi/sellapp/customer_portal_subscription.rbi +84 -0
- data/rbi/sellapp/customer_portal_subscription_plan.rbi +42 -0
- data/rbi/sellapp/delete_coupon_response_value_200_application_json_property_data.rbi +12 -0
- data/rbi/sellapp/delete_product_variant_response_value_200_application_j_1625f933ea9ef222.rbi +6 -0
- data/rbi/sellapp/delete_product_variant_response_value_200_application_j_253e3aa89c30ea4d.rbi +30 -0
- data/rbi/sellapp/delete_product_variant_response_value_200_application_j_512136b8d3549914.rbi +36 -0
- data/rbi/sellapp/delete_product_variant_response_value_200_application_j_eee56a417d83c915.rbi +30 -0
- data/rbi/sellapp/delete_promotion_response_value_200_application_json_property_data.rbi +30 -0
- data/rbi/sellapp/dismiss_subscription_action_response_value_200_applicat_6a1500e747207621.rbi +96 -0
- data/rbi/sellapp/get_bundle_item_response_value_200_application_json_pro_456afa58904c31c7.rbi +30 -0
- data/rbi/sellapp/get_bundle_item_response_value_200_application_json_pro_7435fb7df5c9edd7.rbi +30 -0
- data/rbi/sellapp/get_bundle_item_response_value_200_application_json_pro_99eef800c9794d5f.rbi +36 -0
- data/rbi/sellapp/get_bundle_item_response_value_200_application_json_pro_f08bbe34dba8d405.rbi +6 -0
- data/rbi/sellapp/get_coupon_response_value_200_application_json_property_data.rbi +12 -0
- data/rbi/sellapp/get_customer_portal_subscription_capabilities_response_08ac914b08743f57.rbi +12 -6
- data/rbi/sellapp/get_customer_portal_subscription_capabilities_response_813909143cbd1ea5.rbi +2 -2
- data/rbi/sellapp/get_invoice_response_value_200_application_json_propert_7fdc4821b301acdb.rbi +2 -2
- data/rbi/sellapp/get_product_variant_response_value_200_application_json_39a20656a1877d3e.rbi +6 -0
- data/rbi/sellapp/get_product_variant_response_value_200_application_json_5c36c0aed9bc127b.rbi +30 -0
- data/rbi/sellapp/get_product_variant_response_value_200_application_json_7d90752def54f603.rbi +30 -0
- data/rbi/sellapp/get_product_variant_response_value_200_application_json_a5840703626bd079.rbi +36 -0
- data/rbi/sellapp/get_promotion_response_value_200_application_json_property_data.rbi +30 -0
- data/rbi/sellapp/get_subscription_action_response_value_200_application_b18090f02f1e4c68.rbi +96 -0
- data/rbi/sellapp/get_subscription_response_value_200_application_json_pr_02d4ff7e080fa2c4.rbi +2 -2
- data/rbi/sellapp/get_subscription_response_value_200_application_json_property_data.rbi +114 -6
- data/rbi/sellapp/issue_replacement_for_completed_invoice_response_value_60f8f7e00a0130cc.rbi +2 -2
- data/rbi/sellapp/keep_subscription_response_value_200_application_json_property_data.rbi +96 -0
- data/rbi/sellapp/list_bundle_items_response_value_200_application_json_p_258a94f35072eea6.rbi +30 -0
- data/rbi/sellapp/list_bundle_items_response_value_200_application_json_p_4bb397983e1c6fe5.rbi +6 -0
- data/rbi/sellapp/list_bundle_items_response_value_200_application_json_p_d1306fd6952625d2.rbi +30 -0
- data/rbi/sellapp/list_bundle_items_response_value_200_application_json_p_e27cb1b411a87d7c.rbi +36 -0
- data/rbi/sellapp/list_coupons_response_value_200_application_json_property_data_item.rbi +12 -0
- data/rbi/sellapp/list_invoices_response_value_200_application_json_prope_3ffd725bd795802f.rbi +2 -2
- data/rbi/sellapp/list_product_variants_response_value_200_application_js_27ddb830e302cbb4.rbi +6 -0
- data/rbi/sellapp/list_product_variants_response_value_200_application_js_61bd6a02c1541ad3.rbi +30 -0
- data/rbi/sellapp/list_product_variants_response_value_200_application_js_9a92f855b36ba154.rbi +36 -0
- data/rbi/sellapp/list_product_variants_response_value_200_application_js_e6e4f34bc9c5ef21.rbi +30 -0
- data/rbi/sellapp/mark_pending_invoice_completed_response_value_200_appli_3640822bc0148ebb.rbi +2 -2
- data/rbi/sellapp/mark_pending_invoice_voided_response_value_200_applicat_323718d7621c89d3.rbi +2 -2
- data/rbi/sellapp/pause_customer_subscription_response_value_200_applicat_af208d6ddbfa995f.rbi +18 -24
- data/rbi/sellapp/pause_subscription_response_value_200_application_json_property_data.rbi +12 -0
- data/rbi/sellapp/{search_subscriptions_response_value_200_application_jso_7acae8465bf50921.rbi → preview_customer_subscription_plan_change_request_appli_12704d044b8d0d74.rbi} +1 -1
- data/rbi/sellapp/preview_customer_subscription_plan_change_response_valu_292b713e27004f87.rbi +10 -34
- data/rbi/sellapp/{pause_customer_subscription_response_value_200_applicat_8bf9c73dfe762f34.rbi → preview_customer_subscription_renewal_date_change_reque_c9cc0e0cfdafa916.rbi} +1 -1
- data/rbi/sellapp/{preview_customer_subscription_renewal_date_change_respo_75f3149dcc4d5fd1.rbi → preview_customer_subscription_renewal_date_change_respo_0e58bc1a5b267b4b.rbi} +1 -1
- data/rbi/sellapp/preview_customer_subscription_renewal_date_change_respo_8bb4aa86f1b8a82c.rbi +10 -34
- data/rbi/sellapp/preview_subscription_plan_change_response_value_200_app_7c013044a3b1c14f.rbi +18 -0
- data/rbi/sellapp/preview_subscription_plan_change_response_value_200_app_81f8bf9583de2c22.rbi +54 -0
- data/rbi/sellapp/product_variants.rbi +10 -4
- data/rbi/sellapp/promotions.rbi +24 -4
- data/rbi/sellapp/replace_coupon_response_value_200_application_json_property_data.rbi +12 -0
- data/rbi/sellapp/replace_product_variant_pricing_request_application_jso_5fddb64b863cba15.rbi +36 -0
- data/rbi/sellapp/replace_product_variant_pricing_request_application_jso_e8b8f08422f94a24.rbi +30 -0
- data/rbi/sellapp/replace_product_variant_pricing_request_application_jso_f0c3d4b7add5a74b.rbi +30 -0
- data/rbi/sellapp/replace_product_variant_pricing_request_application_jso_f2e2f3da76859370.rbi +6 -0
- data/rbi/sellapp/replace_product_variant_pricing_response_value_200_appl_02625ea2a00f5c11.rbi +30 -0
- data/rbi/sellapp/replace_product_variant_pricing_response_value_200_appl_3952043ad627e3ba.rbi +6 -0
- data/rbi/sellapp/replace_product_variant_pricing_response_value_200_appl_49b9539bb3faf3af.rbi +30 -0
- data/rbi/sellapp/replace_product_variant_pricing_response_value_200_appl_938bcba5499e5ba2.rbi +36 -0
- data/rbi/sellapp/replace_product_variant_with_put_response_value_200_app_2a107fa42e603ca6.rbi +30 -0
- data/rbi/sellapp/replace_product_variant_with_put_response_value_200_app_35eb6a14d86193b9.rbi +36 -0
- data/rbi/sellapp/replace_product_variant_with_put_response_value_200_app_37053f7be0d6429f.rbi +6 -0
- data/rbi/sellapp/replace_product_variant_with_put_response_value_200_app_4bee4b00b932c7fb.rbi +30 -0
- data/rbi/sellapp/replace_promotion_response_value_200_application_json_property_data.rbi +30 -0
- data/rbi/sellapp/restore_promotion_response_value_200_application_json_property_data.rbi +30 -0
- data/rbi/sellapp/resume_customer_subscription_response_value_200_applica_1d78041ee517c32a.rbi +18 -24
- data/rbi/sellapp/resume_subscription_response_value_200_application_json_property_data.rbi +12 -0
- data/rbi/sellapp/sdk_cancel_customer_subscription_at_period_end_request_application_json.rbi +0 -24
- data/rbi/sellapp/sdk_cancel_customer_subscription_immediately_request_application_json.rbi +0 -24
- data/rbi/sellapp/sdk_confirm_customer_subscription_plan_change_request_application_json.rbi +16 -16
- data/rbi/sellapp/sdk_confirm_customer_subscription_renewal_date_change_r_1d60f8388ee9d4a0.rbi +10 -16
- data/rbi/sellapp/sdk_confirm_subscription_plan_change_response_value_200_application_json.rbi +36 -0
- data/rbi/sellapp/sdk_create_coupon_request_application_json.rbi +12 -0
- data/rbi/sellapp/sdk_create_product_variant_request_application_json.rbi +6 -0
- data/rbi/sellapp/sdk_create_promotion_request_application_json.rbi +30 -0
- data/rbi/sellapp/{confirm_customer_subscription_plan_change_response_valu_be2e9aa48dd8cdb5.rbi → sdk_delete_product_variant_request_application_json.rbi} +7 -1
- data/rbi/sellapp/sdk_dismiss_subscription_action_request_application_json.rbi +30 -0
- data/rbi/sellapp/sdk_dismiss_subscription_action_response_value_200_application_json.rbi +30 -0
- data/rbi/sellapp/sdk_get_customer_portal_subscription_response_value_200_application_json.rbi +2 -2
- data/rbi/sellapp/sdk_get_subscription_action_response_value_200_application_json.rbi +24 -0
- data/rbi/sellapp/{cancel_customer_subscription_immediately_response_value_26878c257b5af4e5.rbi → sdk_keep_subscription_request_application_json.rbi} +7 -1
- data/rbi/sellapp/sdk_keep_subscription_response_value_200_application_json.rbi +30 -0
- data/rbi/sellapp/sdk_list_customer_portal_subscriptions_response_value_2_b195e1339dee14ac.rbi +14 -2
- data/rbi/sellapp/sdk_list_subscription_actions_response_value_200_application_json.rbi +18 -0
- data/rbi/sellapp/sdk_list_subscriptions_response_value_200_application_json.rbi +0 -18
- data/rbi/sellapp/sdk_pause_customer_subscription_request_application_json.rbi +2 -20
- data/rbi/sellapp/sdk_preview_customer_subscription_plan_change_request_application_json.rbi +12 -18
- data/rbi/sellapp/sdk_preview_customer_subscription_renewal_date_change_r_1c87ad45642cd397.rbi +8 -20
- data/rbi/sellapp/sdk_preview_subscription_plan_change_response_value_200_application_json.rbi +30 -0
- data/rbi/sellapp/sdk_replace_coupon_request_application_json.rbi +12 -0
- data/rbi/sellapp/sdk_replace_product_variant_with_put_request_application_json.rbi +12 -0
- data/rbi/sellapp/sdk_replace_promotion_request_application_json.rbi +30 -0
- data/rbi/sellapp/sdk_restore_promotion_request_application_json.rbi +30 -0
- data/rbi/sellapp/sdk_search_subscriptions_request_application_json.rbi +18 -6
- data/rbi/sellapp/sdk_search_subscriptions_response_value_200_application_json.rbi +0 -18
- data/rbi/sellapp/sdk_update_coupon_request_application_json.rbi +12 -0
- data/rbi/sellapp/sdk_update_customer_subscription_payment_method_request_application_json.rbi +0 -24
- data/rbi/sellapp/sdk_update_product_variant_request_application_json.rbi +12 -0
- data/rbi/sellapp/sdk_update_promotion_request_application_json.rbi +30 -0
- data/rbi/sellapp/sdk_update_subscription_payment_method_request_application_json.rbi +6 -0
- data/rbi/sellapp/sdk_update_subscription_payment_method_response_value_2_0e7dda95f205bad2.rbi +36 -0
- data/rbi/sellapp/sdk_v_2_create_coupon_request_application_json.rbi +12 -0
- data/rbi/sellapp/sdk_v_2_replace_coupon_request_application_json.rbi +12 -0
- data/rbi/sellapp/sdk_v_2_update_coupon_request_application_json.rbi +12 -0
- data/rbi/sellapp/search_coupons_response_value_200_application_json_property_data_item.rbi +12 -0
- data/rbi/sellapp/search_invoices_response_value_200_application_json_pro_c32975fb3651b049.rbi +2 -2
- data/rbi/sellapp/search_product_variants_response_value_200_application_06f0e191901d4516.rbi +36 -0
- data/rbi/sellapp/search_product_variants_response_value_200_application_3c00d6fbb94ff355.rbi +30 -0
- data/rbi/sellapp/search_product_variants_response_value_200_application_6c2a7aac716e111e.rbi +30 -0
- data/rbi/sellapp/search_product_variants_response_value_200_application_d28e51b3bfad1a5c.rbi +6 -0
- data/rbi/sellapp/search_subscriptions_request_application_json_property_d64a9058144ab025.rbi +18 -0
- data/rbi/sellapp/search_subscriptions_request_application_json_property_filters_item.rbi +48 -0
- data/rbi/sellapp/{cancel_customer_subscription_at_period_end_response_val_e11ff4f0b23dea7a.rbi → search_subscriptions_request_application_json_property_includes_item.rbi} +7 -1
- data/rbi/sellapp/search_subscriptions_request_application_json_property_search.rbi +30 -0
- data/rbi/sellapp/{confirm_customer_subscription_renewal_date_change_respo_92ed1c9cbced40d4.rbi → search_subscriptions_request_application_json_property_sort_item.rbi} +13 -1
- data/rbi/sellapp/{sdk_resume_customer_subscription_request_application_json.rbi → subscription_plan_change_preview_payload.rbi} +13 -13
- data/rbi/sellapp/subscriptions.rbi +47 -28
- data/rbi/sellapp/subscriptions_actions.rbi +44 -0
- data/rbi/sellapp/update_coupon_response_value_200_application_json_property_data.rbi +12 -0
- data/rbi/sellapp/update_customer_subscription_payment_method_response_va_9476695c7a3f9972.rbi +18 -24
- data/rbi/sellapp/update_invoice_status_response_value_200_application_js_e7d745531a4cae68.rbi +2 -2
- data/rbi/sellapp/update_product_variant_pricing_request_application_json_32174a021ed2b562.rbi +36 -0
- data/rbi/sellapp/update_product_variant_pricing_request_application_json_64bacb17d0182259.rbi +30 -0
- data/rbi/sellapp/update_product_variant_pricing_request_application_json_d05e0aaddb671184.rbi +30 -0
- data/rbi/sellapp/update_product_variant_pricing_request_application_json_property_pricing.rbi +6 -0
- data/rbi/sellapp/update_product_variant_pricing_response_value_200_appli_7eb4581690d93d51.rbi +36 -0
- data/rbi/sellapp/update_product_variant_pricing_response_value_200_appli_86f48bf6582b3fb4.rbi +30 -0
- data/rbi/sellapp/update_product_variant_pricing_response_value_200_appli_ea4e2475c5e43cf1.rbi +6 -0
- data/rbi/sellapp/update_product_variant_pricing_response_value_200_appli_ea785bdd54e04c3b.rbi +30 -0
- data/rbi/sellapp/update_product_variant_response_value_200_application_j_3e8ceee3996cb7ce.rbi +36 -0
- data/rbi/sellapp/update_product_variant_response_value_200_application_j_5a00baba4018ffc5.rbi +6 -0
- data/rbi/sellapp/update_product_variant_response_value_200_application_j_dc7155b2f60bfa67.rbi +30 -0
- data/rbi/sellapp/update_product_variant_response_value_200_application_j_f6e8ecea84932799.rbi +30 -0
- data/rbi/sellapp/update_promotion_response_value_200_application_json_property_data.rbi +30 -0
- data/rbi/sellapp/update_subscription_payment_method_response_value_200_a_ef70359cc2691f13.rbi +96 -0
- data/rbi/sellapp/v_2_batch_create_coupons_request_application_json_prope_ed426eec0e25abbc.rbi +12 -0
- data/rbi/sellapp/v_2_batch_create_coupons_response_value_200_application_9b1202494c86b4da.rbi +12 -0
- data/rbi/sellapp/v_2_batch_create_coupons_response_value_201_application_2470749202844407.rbi +12 -0
- data/rbi/sellapp/v_2_batch_delete_coupons_response_value_200_application_c698eceb577c6910.rbi +12 -0
- data/rbi/sellapp/v_2_batch_update_coupons_request_application_json_prope_d8687eabdd5373b5.rbi +12 -0
- data/rbi/sellapp/v_2_batch_update_coupons_response_value_200_application_55d31662a4c43bd7.rbi +12 -0
- data/rbi/sellapp/v_2_create_coupon_response_value_201_application_json_property_data.rbi +12 -0
- data/rbi/sellapp/v_2_delete_coupon_response_value_200_application_json_property_data.rbi +12 -0
- data/rbi/sellapp/v_2_get_coupon_response_value_200_application_json_property_data.rbi +12 -0
- data/rbi/sellapp/v_2_list_coupons_response_value_200_application_json_property_data_item.rbi +12 -0
- data/rbi/sellapp/v_2_replace_coupon_response_value_200_application_json_property_data.rbi +12 -0
- data/rbi/sellapp/v_2_search_coupons_response_value_200_application_json_5ca05afc2ac6576b.rbi +12 -0
- data/rbi/sellapp/v_2_update_coupon_response_value_200_application_json_property_data.rbi +12 -0
- data/sig/sellapp.rbs +1016 -469
- metadata +286 -66
- data/lib/sellapp/customer_portal/cancel_customer_subscription_immediately_response_value_26878c257b5af4e5.rb +0 -7
- data/lib/sellapp/customer_portal/cancel_customer_subscription_immediately_response_value_d762d4b5b0812a02.rb +0 -7
- data/lib/sellapp/customer_portal/confirm_customer_subscription_plan_change_response_valu_8f18d8bd8f4f9b79.rb +0 -7
- data/lib/sellapp/customer_portal/confirm_customer_subscription_plan_change_response_valu_be2e9aa48dd8cdb5.rb +0 -7
- data/lib/sellapp/customer_portal/confirm_customer_subscription_renewal_date_change_respo_04eefb3f38acd135.rb +0 -7
- data/lib/sellapp/customer_portal/confirm_customer_subscription_renewal_date_change_respo_92ed1c9cbced40d4.rb +0 -7
- data/lib/sellapp/customer_portal/get_customer_portal_subscription_response_value_200_app_7f60348c3cb26504.rb +0 -7
- data/lib/sellapp/customer_portal/get_customer_portal_subscription_response_value_200_app_c8294b0dbd34ac0a.rb +0 -7
- data/lib/sellapp/customer_portal/get_customer_portal_subscription_response_value_200_app_de83e054e429757c.rb +0 -7
- data/lib/sellapp/customer_portal/list_customer_portal_subscriptions_response_value_200_a_a0defe6d3d636f8c.rb +0 -7
- data/lib/sellapp/customer_portal/list_customer_portal_subscriptions_response_value_200_a_adf4e71e216ef14d.rb +0 -7
- data/lib/sellapp/customer_portal/list_customer_portal_subscriptions_response_value_200_a_d516b72def2eabcf.rb +0 -7
- data/lib/sellapp/customer_portal/pause_customer_subscription_response_value_200_applicat_8bf9c73dfe762f34.rb +0 -7
- data/lib/sellapp/customer_portal/pause_customer_subscription_response_value_200_applicat_bd8916d023679e65.rb +0 -7
- data/lib/sellapp/customer_portal/preview_customer_subscription_plan_change_response_valu_afd3ce7dc51846e6.rb +0 -7
- data/lib/sellapp/customer_portal/preview_customer_subscription_plan_change_response_valu_cbb420df88fca7dc.rb +0 -7
- data/lib/sellapp/customer_portal/preview_customer_subscription_renewal_date_change_respo_75f3149dcc4d5fd1.rb +0 -7
- data/lib/sellapp/customer_portal/resume_customer_subscription_response_value_200_applica_33bbabda45d97f71.rb +0 -7
- data/lib/sellapp/customer_portal/resume_customer_subscription_response_value_200_applica_c642495eb5e4db3a.rb +0 -7
- data/lib/sellapp/customer_portal/sdk_resume_customer_subscription_request_application_json.rb +0 -7
- data/lib/sellapp/customer_portal/update_customer_subscription_payment_method_response_va_3990946206084a72.rb +0 -7
- data/lib/sellapp/customer_portal/update_customer_subscription_payment_method_response_va_b87e2f1eba01177d.rb +0 -7
- data/lib/sellapp/subscriptions/get_subscription_response_value_200_application_json_pr_fd726601caff080f.rb +0 -7
- data/lib/sellapp/subscriptions/list_subscriptions_response_value_200_application_json_5543a884272391eb.rb +0 -7
- data/lib/sellapp/subscriptions/list_subscriptions_response_value_200_application_json_5d2c3694b34cc2c9.rb +0 -7
- data/lib/sellapp/subscriptions/list_subscriptions_response_value_200_application_json_ef5a64ce42a89897.rb +0 -7
- data/lib/sellapp/subscriptions/search_subscriptions_response_value_200_application_jso_458e9002411933f6.rb +0 -7
- data/lib/sellapp/subscriptions/search_subscriptions_response_value_200_application_jso_7acae8465bf50921.rb +0 -7
- data/lib/sellapp/subscriptions/search_subscriptions_response_value_200_application_jso_ef42956bab18d4ee.rb +0 -7
- data/rbi/sellapp/cancel_customer_subscription_at_period_end_response_val_400775a4a08b1f68.rbi +0 -54
- data/rbi/sellapp/cancel_customer_subscription_immediately_response_value_d762d4b5b0812a02.rbi +0 -54
- data/rbi/sellapp/confirm_customer_subscription_plan_change_response_valu_8f18d8bd8f4f9b79.rbi +0 -54
- data/rbi/sellapp/confirm_customer_subscription_renewal_date_change_respo_04eefb3f38acd135.rbi +0 -54
- data/rbi/sellapp/get_customer_portal_subscription_response_value_200_app_7f60348c3cb26504.rbi +0 -18
- data/rbi/sellapp/get_customer_portal_subscription_response_value_200_app_c8294b0dbd34ac0a.rbi +0 -54
- data/rbi/sellapp/get_customer_portal_subscription_response_value_200_app_de83e054e429757c.rbi +0 -66
- data/rbi/sellapp/list_customer_portal_subscriptions_response_value_200_a_a0defe6d3d636f8c.rbi +0 -54
- data/rbi/sellapp/list_customer_portal_subscriptions_response_value_200_a_adf4e71e216ef14d.rbi +0 -66
- data/rbi/sellapp/list_customer_portal_subscriptions_response_value_200_a_d516b72def2eabcf.rbi +0 -18
- data/rbi/sellapp/list_subscriptions_response_value_200_application_json_5543a884272391eb.rbi +0 -66
- data/rbi/sellapp/pause_customer_subscription_response_value_200_applicat_bd8916d023679e65.rbi +0 -54
- data/rbi/sellapp/preview_customer_subscription_plan_change_response_valu_afd3ce7dc51846e6.rbi +0 -54
- data/rbi/sellapp/preview_customer_subscription_plan_change_response_valu_cbb420df88fca7dc.rbi +0 -18
- data/rbi/sellapp/preview_customer_subscription_renewal_date_change_respo_f49367224934c0ce.rbi +0 -54
- data/rbi/sellapp/resume_customer_subscription_response_value_200_applica_33bbabda45d97f71.rbi +0 -18
- data/rbi/sellapp/resume_customer_subscription_response_value_200_applica_c642495eb5e4db3a.rbi +0 -54
- data/rbi/sellapp/search_subscriptions_response_value_200_application_jso_458e9002411933f6.rbi +0 -66
- data/rbi/sellapp/search_subscriptions_response_value_200_application_jso_ef42956bab18d4ee.rbi +0 -54
- data/rbi/sellapp/update_customer_subscription_payment_method_response_va_3990946206084a72.rbi +0 -18
- data/rbi/sellapp/update_customer_subscription_payment_method_response_va_b87e2f1eba01177d.rbi +0 -54
data/lib/sellapp/promotions/create_promotion_response_value_201_application_json_property_data.rb
CHANGED
|
@@ -13,6 +13,11 @@ module SellApp
|
|
|
13
13
|
priority: :priority,
|
|
14
14
|
is_stackable: :is_stackable,
|
|
15
15
|
max_redemptions: :max_redemptions,
|
|
16
|
+
applies_to: :applies_to,
|
|
17
|
+
subscription_payments: :subscription_payments,
|
|
18
|
+
store_wide: :store_wide,
|
|
19
|
+
products: :products,
|
|
20
|
+
product_variants: :product_variants,
|
|
16
21
|
phases: :phases,
|
|
17
22
|
created_at: :created_at,
|
|
18
23
|
updated_at: :updated_at,
|
|
@@ -28,6 +33,11 @@ module SellApp
|
|
|
28
33
|
priority: {required: true, schema: {kind: :integer, minimum: 0}},
|
|
29
34
|
is_stackable: {required: true, schema: {kind: :boolean}},
|
|
30
35
|
max_redemptions: {required: false, schema: {kind: :nullable, inner: {kind: :integer, minimum: 1}}},
|
|
36
|
+
applies_to: {required: true, schema: {kind: :enum, values: ["one_time", "subscriptions"]}},
|
|
37
|
+
subscription_payments: {required: true, schema: {kind: :nullable, inner: {kind: :integer}}},
|
|
38
|
+
store_wide: {required: true, schema: {kind: :boolean}},
|
|
39
|
+
products: {required: true, schema: {kind: :array, items: {kind: :integer}}},
|
|
40
|
+
product_variants: {required: true, schema: {kind: :array, items: {kind: :integer}}},
|
|
31
41
|
phases: {required: true, schema: {kind: :array, items: {kind: :model, name: "SellApp::CreatePromotionResponseValue201ApplicationJsonPropertyDataPropertyPhasesItem"}}},
|
|
32
42
|
created_at: {required: false, schema: {kind: :nullable, inner: {kind: :string, format: "date-time"}}},
|
|
33
43
|
updated_at: {required: false, schema: {kind: :nullable, inner: {kind: :string, format: "date-time"}}},
|
|
@@ -45,6 +55,11 @@ module SellApp
|
|
|
45
55
|
:priority,
|
|
46
56
|
:is_stackable,
|
|
47
57
|
:max_redemptions,
|
|
58
|
+
:applies_to,
|
|
59
|
+
:subscription_payments,
|
|
60
|
+
:store_wide,
|
|
61
|
+
:products,
|
|
62
|
+
:product_variants,
|
|
48
63
|
:phases,
|
|
49
64
|
:created_at,
|
|
50
65
|
:updated_at,
|
|
@@ -63,6 +78,11 @@ module SellApp
|
|
|
63
78
|
@priority = hash[:priority]
|
|
64
79
|
@is_stackable = hash[:is_stackable]
|
|
65
80
|
@max_redemptions = hash[:max_redemptions]
|
|
81
|
+
@applies_to = hash[:applies_to]
|
|
82
|
+
@subscription_payments = hash[:subscription_payments]
|
|
83
|
+
@store_wide = hash[:store_wide]
|
|
84
|
+
@products = hash[:products]
|
|
85
|
+
@product_variants = hash[:product_variants]
|
|
66
86
|
@phases = hash[:phases] ? hash[:phases].map { |item| item ? SellApp::CreatePromotionResponseValue201ApplicationJsonPropertyDataPropertyPhasesItem.new(item) : nil } : nil
|
|
67
87
|
@created_at = hash[:created_at]
|
|
68
88
|
@updated_at = hash[:updated_at]
|
data/lib/sellapp/promotions/delete_promotion_response_value_200_application_json_property_data.rb
CHANGED
|
@@ -13,6 +13,11 @@ module SellApp
|
|
|
13
13
|
priority: :priority,
|
|
14
14
|
is_stackable: :is_stackable,
|
|
15
15
|
max_redemptions: :max_redemptions,
|
|
16
|
+
applies_to: :applies_to,
|
|
17
|
+
subscription_payments: :subscription_payments,
|
|
18
|
+
store_wide: :store_wide,
|
|
19
|
+
products: :products,
|
|
20
|
+
product_variants: :product_variants,
|
|
16
21
|
phases: :phases,
|
|
17
22
|
created_at: :created_at,
|
|
18
23
|
updated_at: :updated_at,
|
|
@@ -28,6 +33,11 @@ module SellApp
|
|
|
28
33
|
priority: {required: true, schema: {kind: :integer, minimum: 0}},
|
|
29
34
|
is_stackable: {required: true, schema: {kind: :boolean}},
|
|
30
35
|
max_redemptions: {required: false, schema: {kind: :nullable, inner: {kind: :integer, minimum: 1}}},
|
|
36
|
+
applies_to: {required: true, schema: {kind: :enum, values: ["one_time", "subscriptions"]}},
|
|
37
|
+
subscription_payments: {required: true, schema: {kind: :nullable, inner: {kind: :integer}}},
|
|
38
|
+
store_wide: {required: true, schema: {kind: :boolean}},
|
|
39
|
+
products: {required: true, schema: {kind: :array, items: {kind: :integer}}},
|
|
40
|
+
product_variants: {required: true, schema: {kind: :array, items: {kind: :integer}}},
|
|
31
41
|
phases: {required: true, schema: {kind: :array, items: {kind: :model, name: "SellApp::DeletePromotionResponseValue200ApplicationJsonPropertyDataPropertyPhasesItem"}}},
|
|
32
42
|
created_at: {required: false, schema: {kind: :nullable, inner: {kind: :string, format: "date-time"}}},
|
|
33
43
|
updated_at: {required: false, schema: {kind: :nullable, inner: {kind: :string, format: "date-time"}}},
|
|
@@ -45,6 +55,11 @@ module SellApp
|
|
|
45
55
|
:priority,
|
|
46
56
|
:is_stackable,
|
|
47
57
|
:max_redemptions,
|
|
58
|
+
:applies_to,
|
|
59
|
+
:subscription_payments,
|
|
60
|
+
:store_wide,
|
|
61
|
+
:products,
|
|
62
|
+
:product_variants,
|
|
48
63
|
:phases,
|
|
49
64
|
:created_at,
|
|
50
65
|
:updated_at,
|
|
@@ -63,6 +78,11 @@ module SellApp
|
|
|
63
78
|
@priority = hash[:priority]
|
|
64
79
|
@is_stackable = hash[:is_stackable]
|
|
65
80
|
@max_redemptions = hash[:max_redemptions]
|
|
81
|
+
@applies_to = hash[:applies_to]
|
|
82
|
+
@subscription_payments = hash[:subscription_payments]
|
|
83
|
+
@store_wide = hash[:store_wide]
|
|
84
|
+
@products = hash[:products]
|
|
85
|
+
@product_variants = hash[:product_variants]
|
|
66
86
|
@phases = hash[:phases] ? hash[:phases].map { |item| item ? SellApp::DeletePromotionResponseValue200ApplicationJsonPropertyDataPropertyPhasesItem.new(item) : nil } : nil
|
|
67
87
|
@created_at = hash[:created_at]
|
|
68
88
|
@updated_at = hash[:updated_at]
|
data/lib/sellapp/promotions/get_promotion_response_value_200_application_json_property_data.rb
CHANGED
|
@@ -13,6 +13,11 @@ module SellApp
|
|
|
13
13
|
priority: :priority,
|
|
14
14
|
is_stackable: :is_stackable,
|
|
15
15
|
max_redemptions: :max_redemptions,
|
|
16
|
+
applies_to: :applies_to,
|
|
17
|
+
subscription_payments: :subscription_payments,
|
|
18
|
+
store_wide: :store_wide,
|
|
19
|
+
products: :products,
|
|
20
|
+
product_variants: :product_variants,
|
|
16
21
|
phases: :phases,
|
|
17
22
|
created_at: :created_at,
|
|
18
23
|
updated_at: :updated_at,
|
|
@@ -28,6 +33,11 @@ module SellApp
|
|
|
28
33
|
priority: {required: true, schema: {kind: :integer, minimum: 0}},
|
|
29
34
|
is_stackable: {required: true, schema: {kind: :boolean}},
|
|
30
35
|
max_redemptions: {required: false, schema: {kind: :nullable, inner: {kind: :integer, minimum: 1}}},
|
|
36
|
+
applies_to: {required: true, schema: {kind: :enum, values: ["one_time", "subscriptions"]}},
|
|
37
|
+
subscription_payments: {required: true, schema: {kind: :nullable, inner: {kind: :integer}}},
|
|
38
|
+
store_wide: {required: true, schema: {kind: :boolean}},
|
|
39
|
+
products: {required: true, schema: {kind: :array, items: {kind: :integer}}},
|
|
40
|
+
product_variants: {required: true, schema: {kind: :array, items: {kind: :integer}}},
|
|
31
41
|
phases: {required: true, schema: {kind: :array, items: {kind: :model, name: "SellApp::GetPromotionResponseValue200ApplicationJsonPropertyDataPropertyPhasesItem"}}},
|
|
32
42
|
created_at: {required: false, schema: {kind: :nullable, inner: {kind: :string, format: "date-time"}}},
|
|
33
43
|
updated_at: {required: false, schema: {kind: :nullable, inner: {kind: :string, format: "date-time"}}},
|
|
@@ -45,6 +55,11 @@ module SellApp
|
|
|
45
55
|
:priority,
|
|
46
56
|
:is_stackable,
|
|
47
57
|
:max_redemptions,
|
|
58
|
+
:applies_to,
|
|
59
|
+
:subscription_payments,
|
|
60
|
+
:store_wide,
|
|
61
|
+
:products,
|
|
62
|
+
:product_variants,
|
|
48
63
|
:phases,
|
|
49
64
|
:created_at,
|
|
50
65
|
:updated_at,
|
|
@@ -63,6 +78,11 @@ module SellApp
|
|
|
63
78
|
@priority = hash[:priority]
|
|
64
79
|
@is_stackable = hash[:is_stackable]
|
|
65
80
|
@max_redemptions = hash[:max_redemptions]
|
|
81
|
+
@applies_to = hash[:applies_to]
|
|
82
|
+
@subscription_payments = hash[:subscription_payments]
|
|
83
|
+
@store_wide = hash[:store_wide]
|
|
84
|
+
@products = hash[:products]
|
|
85
|
+
@product_variants = hash[:product_variants]
|
|
66
86
|
@phases = hash[:phases] ? hash[:phases].map { |item| item ? SellApp::GetPromotionResponseValue200ApplicationJsonPropertyDataPropertyPhasesItem.new(item) : nil } : nil
|
|
67
87
|
@created_at = hash[:created_at]
|
|
68
88
|
@updated_at = hash[:updated_at]
|
data/lib/sellapp/promotions/replace_promotion_response_value_200_application_json_property_data.rb
CHANGED
|
@@ -13,6 +13,11 @@ module SellApp
|
|
|
13
13
|
priority: :priority,
|
|
14
14
|
is_stackable: :is_stackable,
|
|
15
15
|
max_redemptions: :max_redemptions,
|
|
16
|
+
applies_to: :applies_to,
|
|
17
|
+
subscription_payments: :subscription_payments,
|
|
18
|
+
store_wide: :store_wide,
|
|
19
|
+
products: :products,
|
|
20
|
+
product_variants: :product_variants,
|
|
16
21
|
phases: :phases,
|
|
17
22
|
created_at: :created_at,
|
|
18
23
|
updated_at: :updated_at,
|
|
@@ -28,6 +33,11 @@ module SellApp
|
|
|
28
33
|
priority: {required: true, schema: {kind: :integer, minimum: 0}},
|
|
29
34
|
is_stackable: {required: true, schema: {kind: :boolean}},
|
|
30
35
|
max_redemptions: {required: false, schema: {kind: :nullable, inner: {kind: :integer, minimum: 1}}},
|
|
36
|
+
applies_to: {required: true, schema: {kind: :enum, values: ["one_time", "subscriptions"]}},
|
|
37
|
+
subscription_payments: {required: true, schema: {kind: :nullable, inner: {kind: :integer}}},
|
|
38
|
+
store_wide: {required: true, schema: {kind: :boolean}},
|
|
39
|
+
products: {required: true, schema: {kind: :array, items: {kind: :integer}}},
|
|
40
|
+
product_variants: {required: true, schema: {kind: :array, items: {kind: :integer}}},
|
|
31
41
|
phases: {required: true, schema: {kind: :array, items: {kind: :model, name: "SellApp::ReplacePromotionResponseValue200ApplicationJsonPropertyDataPropertyPhasesItem"}}},
|
|
32
42
|
created_at: {required: false, schema: {kind: :nullable, inner: {kind: :string, format: "date-time"}}},
|
|
33
43
|
updated_at: {required: false, schema: {kind: :nullable, inner: {kind: :string, format: "date-time"}}},
|
|
@@ -45,6 +55,11 @@ module SellApp
|
|
|
45
55
|
:priority,
|
|
46
56
|
:is_stackable,
|
|
47
57
|
:max_redemptions,
|
|
58
|
+
:applies_to,
|
|
59
|
+
:subscription_payments,
|
|
60
|
+
:store_wide,
|
|
61
|
+
:products,
|
|
62
|
+
:product_variants,
|
|
48
63
|
:phases,
|
|
49
64
|
:created_at,
|
|
50
65
|
:updated_at,
|
|
@@ -63,6 +78,11 @@ module SellApp
|
|
|
63
78
|
@priority = hash[:priority]
|
|
64
79
|
@is_stackable = hash[:is_stackable]
|
|
65
80
|
@max_redemptions = hash[:max_redemptions]
|
|
81
|
+
@applies_to = hash[:applies_to]
|
|
82
|
+
@subscription_payments = hash[:subscription_payments]
|
|
83
|
+
@store_wide = hash[:store_wide]
|
|
84
|
+
@products = hash[:products]
|
|
85
|
+
@product_variants = hash[:product_variants]
|
|
66
86
|
@phases = hash[:phases] ? hash[:phases].map { |item| item ? SellApp::ReplacePromotionResponseValue200ApplicationJsonPropertyDataPropertyPhasesItem.new(item) : nil } : nil
|
|
67
87
|
@created_at = hash[:created_at]
|
|
68
88
|
@updated_at = hash[:updated_at]
|
data/lib/sellapp/promotions/restore_promotion_response_value_200_application_json_property_data.rb
CHANGED
|
@@ -13,6 +13,11 @@ module SellApp
|
|
|
13
13
|
priority: :priority,
|
|
14
14
|
is_stackable: :is_stackable,
|
|
15
15
|
max_redemptions: :max_redemptions,
|
|
16
|
+
applies_to: :applies_to,
|
|
17
|
+
subscription_payments: :subscription_payments,
|
|
18
|
+
store_wide: :store_wide,
|
|
19
|
+
products: :products,
|
|
20
|
+
product_variants: :product_variants,
|
|
16
21
|
phases: :phases,
|
|
17
22
|
created_at: :created_at,
|
|
18
23
|
updated_at: :updated_at,
|
|
@@ -28,6 +33,11 @@ module SellApp
|
|
|
28
33
|
priority: {required: true, schema: {kind: :integer, minimum: 0}},
|
|
29
34
|
is_stackable: {required: true, schema: {kind: :boolean}},
|
|
30
35
|
max_redemptions: {required: false, schema: {kind: :nullable, inner: {kind: :integer, minimum: 1}}},
|
|
36
|
+
applies_to: {required: true, schema: {kind: :enum, values: ["one_time", "subscriptions"]}},
|
|
37
|
+
subscription_payments: {required: true, schema: {kind: :nullable, inner: {kind: :integer}}},
|
|
38
|
+
store_wide: {required: true, schema: {kind: :boolean}},
|
|
39
|
+
products: {required: true, schema: {kind: :array, items: {kind: :integer}}},
|
|
40
|
+
product_variants: {required: true, schema: {kind: :array, items: {kind: :integer}}},
|
|
31
41
|
phases: {required: true, schema: {kind: :array, items: {kind: :model, name: "SellApp::RestorePromotionResponseValue200ApplicationJsonPropertyDataPropertyPhasesItem"}}},
|
|
32
42
|
created_at: {required: false, schema: {kind: :nullable, inner: {kind: :string, format: "date-time"}}},
|
|
33
43
|
updated_at: {required: false, schema: {kind: :nullable, inner: {kind: :string, format: "date-time"}}},
|
|
@@ -45,6 +55,11 @@ module SellApp
|
|
|
45
55
|
:priority,
|
|
46
56
|
:is_stackable,
|
|
47
57
|
:max_redemptions,
|
|
58
|
+
:applies_to,
|
|
59
|
+
:subscription_payments,
|
|
60
|
+
:store_wide,
|
|
61
|
+
:products,
|
|
62
|
+
:product_variants,
|
|
48
63
|
:phases,
|
|
49
64
|
:created_at,
|
|
50
65
|
:updated_at,
|
|
@@ -63,6 +78,11 @@ module SellApp
|
|
|
63
78
|
@priority = hash[:priority]
|
|
64
79
|
@is_stackable = hash[:is_stackable]
|
|
65
80
|
@max_redemptions = hash[:max_redemptions]
|
|
81
|
+
@applies_to = hash[:applies_to]
|
|
82
|
+
@subscription_payments = hash[:subscription_payments]
|
|
83
|
+
@store_wide = hash[:store_wide]
|
|
84
|
+
@products = hash[:products]
|
|
85
|
+
@product_variants = hash[:product_variants]
|
|
66
86
|
@phases = hash[:phases] ? hash[:phases].map { |item| item ? SellApp::RestorePromotionResponseValue200ApplicationJsonPropertyDataPropertyPhasesItem.new(item) : nil } : nil
|
|
67
87
|
@created_at = hash[:created_at]
|
|
68
88
|
@updated_at = hash[:updated_at]
|
|
@@ -12,6 +12,11 @@ module SellApp
|
|
|
12
12
|
priority: :priority,
|
|
13
13
|
is_stackable: :is_stackable,
|
|
14
14
|
max_redemptions: :max_redemptions,
|
|
15
|
+
applies_to: :applies_to,
|
|
16
|
+
subscription_payments: :subscription_payments,
|
|
17
|
+
store_wide: :store_wide,
|
|
18
|
+
products: :products,
|
|
19
|
+
product_variants: :product_variants,
|
|
15
20
|
phases: :phases
|
|
16
21
|
}.freeze
|
|
17
22
|
|
|
@@ -23,6 +28,11 @@ module SellApp
|
|
|
23
28
|
priority: {required: true, schema: {kind: :integer, minimum: 0, maximum: 2147483647}},
|
|
24
29
|
is_stackable: {required: true, schema: {kind: :boolean}},
|
|
25
30
|
max_redemptions: {required: false, schema: {kind: :nullable, inner: {kind: :integer, minimum: 1, maximum: 4294967295}}},
|
|
31
|
+
applies_to: {required: false, schema: {kind: :enum, values: ["one_time", "subscriptions"]}},
|
|
32
|
+
subscription_payments: {required: false, schema: {kind: :nullable, inner: {kind: :integer, minimum: 1, maximum: 36}}},
|
|
33
|
+
store_wide: {required: false, schema: {kind: :boolean}},
|
|
34
|
+
products: {required: false, schema: {kind: :array, items: {kind: :integer}}},
|
|
35
|
+
product_variants: {required: false, schema: {kind: :array, items: {kind: :integer}}},
|
|
26
36
|
phases: {required: true, schema: {kind: :array, items: {kind: :model, name: "SellApp::CreatePromotionRequestApplicationJsonPropertyPhasesItem"}, min: 1}}
|
|
27
37
|
}.freeze
|
|
28
38
|
ADDITIONAL_PROPERTIES = true
|
|
@@ -36,6 +46,11 @@ module SellApp
|
|
|
36
46
|
:priority,
|
|
37
47
|
:is_stackable,
|
|
38
48
|
:max_redemptions,
|
|
49
|
+
:applies_to,
|
|
50
|
+
:subscription_payments,
|
|
51
|
+
:store_wide,
|
|
52
|
+
:products,
|
|
53
|
+
:product_variants,
|
|
39
54
|
:phases
|
|
40
55
|
|
|
41
56
|
def initialize(json)
|
|
@@ -50,6 +65,11 @@ module SellApp
|
|
|
50
65
|
@priority = hash[:priority]
|
|
51
66
|
@is_stackable = hash[:is_stackable]
|
|
52
67
|
@max_redemptions = hash[:max_redemptions]
|
|
68
|
+
@applies_to = hash[:applies_to]
|
|
69
|
+
@subscription_payments = hash[:subscription_payments]
|
|
70
|
+
@store_wide = hash[:store_wide]
|
|
71
|
+
@products = hash[:products]
|
|
72
|
+
@product_variants = hash[:product_variants]
|
|
53
73
|
@phases = hash[:phases] ? hash[:phases].map { |item| item ? SellApp::CreatePromotionRequestApplicationJsonPropertyPhasesItem.new(item) : nil } : nil
|
|
54
74
|
end
|
|
55
75
|
end
|
|
@@ -12,6 +12,11 @@ module SellApp
|
|
|
12
12
|
priority: :priority,
|
|
13
13
|
is_stackable: :is_stackable,
|
|
14
14
|
max_redemptions: :max_redemptions,
|
|
15
|
+
applies_to: :applies_to,
|
|
16
|
+
subscription_payments: :subscription_payments,
|
|
17
|
+
store_wide: :store_wide,
|
|
18
|
+
products: :products,
|
|
19
|
+
product_variants: :product_variants,
|
|
15
20
|
phases: :phases
|
|
16
21
|
}.freeze
|
|
17
22
|
|
|
@@ -23,6 +28,11 @@ module SellApp
|
|
|
23
28
|
priority: {required: false, schema: {kind: :integer, minimum: 0, maximum: 2147483647}},
|
|
24
29
|
is_stackable: {required: false, schema: {kind: :boolean}},
|
|
25
30
|
max_redemptions: {required: false, schema: {kind: :nullable, inner: {kind: :integer, minimum: 1, maximum: 4294967295}}},
|
|
31
|
+
applies_to: {required: false, schema: {kind: :enum, values: ["one_time", "subscriptions"]}},
|
|
32
|
+
subscription_payments: {required: false, schema: {kind: :nullable, inner: {kind: :integer, minimum: 1, maximum: 36}}},
|
|
33
|
+
store_wide: {required: false, schema: {kind: :boolean}},
|
|
34
|
+
products: {required: false, schema: {kind: :array, items: {kind: :integer}}},
|
|
35
|
+
product_variants: {required: false, schema: {kind: :array, items: {kind: :integer}}},
|
|
26
36
|
phases: {required: false, schema: {kind: :array, items: {kind: :model, name: "SellApp::ReplacePromotionRequestApplicationJsonPropertyPhasesItem"}, min: 1}}
|
|
27
37
|
}.freeze
|
|
28
38
|
ADDITIONAL_PROPERTIES = true
|
|
@@ -36,6 +46,11 @@ module SellApp
|
|
|
36
46
|
:priority,
|
|
37
47
|
:is_stackable,
|
|
38
48
|
:max_redemptions,
|
|
49
|
+
:applies_to,
|
|
50
|
+
:subscription_payments,
|
|
51
|
+
:store_wide,
|
|
52
|
+
:products,
|
|
53
|
+
:product_variants,
|
|
39
54
|
:phases
|
|
40
55
|
|
|
41
56
|
def initialize(json)
|
|
@@ -50,6 +65,11 @@ module SellApp
|
|
|
50
65
|
@priority = hash[:priority]
|
|
51
66
|
@is_stackable = hash[:is_stackable]
|
|
52
67
|
@max_redemptions = hash[:max_redemptions]
|
|
68
|
+
@applies_to = hash[:applies_to]
|
|
69
|
+
@subscription_payments = hash[:subscription_payments]
|
|
70
|
+
@store_wide = hash[:store_wide]
|
|
71
|
+
@products = hash[:products]
|
|
72
|
+
@product_variants = hash[:product_variants]
|
|
53
73
|
@phases = hash[:phases] ? hash[:phases].map { |item| item ? SellApp::ReplacePromotionRequestApplicationJsonPropertyPhasesItem.new(item) : nil } : nil
|
|
54
74
|
end
|
|
55
75
|
end
|
|
@@ -12,6 +12,11 @@ module SellApp
|
|
|
12
12
|
priority: :priority,
|
|
13
13
|
is_stackable: :is_stackable,
|
|
14
14
|
max_redemptions: :max_redemptions,
|
|
15
|
+
applies_to: :applies_to,
|
|
16
|
+
subscription_payments: :subscription_payments,
|
|
17
|
+
store_wide: :store_wide,
|
|
18
|
+
products: :products,
|
|
19
|
+
product_variants: :product_variants,
|
|
15
20
|
phases: :phases
|
|
16
21
|
}.freeze
|
|
17
22
|
|
|
@@ -23,6 +28,11 @@ module SellApp
|
|
|
23
28
|
priority: {required: true, schema: {kind: :integer, minimum: 0, maximum: 2147483647}},
|
|
24
29
|
is_stackable: {required: true, schema: {kind: :boolean}},
|
|
25
30
|
max_redemptions: {required: false, schema: {kind: :nullable, inner: {kind: :integer, minimum: 1, maximum: 4294967295}}},
|
|
31
|
+
applies_to: {required: false, schema: {kind: :enum, values: ["one_time", "subscriptions"]}},
|
|
32
|
+
subscription_payments: {required: false, schema: {kind: :nullable, inner: {kind: :integer, minimum: 1, maximum: 36}}},
|
|
33
|
+
store_wide: {required: false, schema: {kind: :boolean}},
|
|
34
|
+
products: {required: false, schema: {kind: :array, items: {kind: :integer}}},
|
|
35
|
+
product_variants: {required: false, schema: {kind: :array, items: {kind: :integer}}},
|
|
26
36
|
phases: {required: true, schema: {kind: :array, items: {kind: :model, name: "SellApp::RestorePromotionRequestApplicationJsonPropertyPhasesItem"}, min: 1}}
|
|
27
37
|
}.freeze
|
|
28
38
|
ADDITIONAL_PROPERTIES = true
|
|
@@ -36,6 +46,11 @@ module SellApp
|
|
|
36
46
|
:priority,
|
|
37
47
|
:is_stackable,
|
|
38
48
|
:max_redemptions,
|
|
49
|
+
:applies_to,
|
|
50
|
+
:subscription_payments,
|
|
51
|
+
:store_wide,
|
|
52
|
+
:products,
|
|
53
|
+
:product_variants,
|
|
39
54
|
:phases
|
|
40
55
|
|
|
41
56
|
def initialize(json)
|
|
@@ -50,6 +65,11 @@ module SellApp
|
|
|
50
65
|
@priority = hash[:priority]
|
|
51
66
|
@is_stackable = hash[:is_stackable]
|
|
52
67
|
@max_redemptions = hash[:max_redemptions]
|
|
68
|
+
@applies_to = hash[:applies_to]
|
|
69
|
+
@subscription_payments = hash[:subscription_payments]
|
|
70
|
+
@store_wide = hash[:store_wide]
|
|
71
|
+
@products = hash[:products]
|
|
72
|
+
@product_variants = hash[:product_variants]
|
|
53
73
|
@phases = hash[:phases] ? hash[:phases].map { |item| item ? SellApp::RestorePromotionRequestApplicationJsonPropertyPhasesItem.new(item) : nil } : nil
|
|
54
74
|
end
|
|
55
75
|
end
|
|
@@ -12,6 +12,11 @@ module SellApp
|
|
|
12
12
|
priority: :priority,
|
|
13
13
|
is_stackable: :is_stackable,
|
|
14
14
|
max_redemptions: :max_redemptions,
|
|
15
|
+
applies_to: :applies_to,
|
|
16
|
+
subscription_payments: :subscription_payments,
|
|
17
|
+
store_wide: :store_wide,
|
|
18
|
+
products: :products,
|
|
19
|
+
product_variants: :product_variants,
|
|
15
20
|
phases: :phases
|
|
16
21
|
}.freeze
|
|
17
22
|
|
|
@@ -23,6 +28,11 @@ module SellApp
|
|
|
23
28
|
priority: {required: false, schema: {kind: :integer, minimum: 0, maximum: 2147483647}},
|
|
24
29
|
is_stackable: {required: false, schema: {kind: :boolean}},
|
|
25
30
|
max_redemptions: {required: false, schema: {kind: :nullable, inner: {kind: :integer, minimum: 1, maximum: 4294967295}}},
|
|
31
|
+
applies_to: {required: false, schema: {kind: :enum, values: ["one_time", "subscriptions"]}},
|
|
32
|
+
subscription_payments: {required: false, schema: {kind: :nullable, inner: {kind: :integer, minimum: 1, maximum: 36}}},
|
|
33
|
+
store_wide: {required: false, schema: {kind: :boolean}},
|
|
34
|
+
products: {required: false, schema: {kind: :array, items: {kind: :integer}}},
|
|
35
|
+
product_variants: {required: false, schema: {kind: :array, items: {kind: :integer}}},
|
|
26
36
|
phases: {required: false, schema: {kind: :array, items: {kind: :model, name: "SellApp::UpdatePromotionRequestApplicationJsonPropertyPhasesItem"}, min: 1}}
|
|
27
37
|
}.freeze
|
|
28
38
|
ADDITIONAL_PROPERTIES = true
|
|
@@ -36,6 +46,11 @@ module SellApp
|
|
|
36
46
|
:priority,
|
|
37
47
|
:is_stackable,
|
|
38
48
|
:max_redemptions,
|
|
49
|
+
:applies_to,
|
|
50
|
+
:subscription_payments,
|
|
51
|
+
:store_wide,
|
|
52
|
+
:products,
|
|
53
|
+
:product_variants,
|
|
39
54
|
:phases
|
|
40
55
|
|
|
41
56
|
def initialize(json)
|
|
@@ -50,6 +65,11 @@ module SellApp
|
|
|
50
65
|
@priority = hash[:priority]
|
|
51
66
|
@is_stackable = hash[:is_stackable]
|
|
52
67
|
@max_redemptions = hash[:max_redemptions]
|
|
68
|
+
@applies_to = hash[:applies_to]
|
|
69
|
+
@subscription_payments = hash[:subscription_payments]
|
|
70
|
+
@store_wide = hash[:store_wide]
|
|
71
|
+
@products = hash[:products]
|
|
72
|
+
@product_variants = hash[:product_variants]
|
|
53
73
|
@phases = hash[:phases] ? hash[:phases].map { |item| item ? SellApp::UpdatePromotionRequestApplicationJsonPropertyPhasesItem.new(item) : nil } : nil
|
|
54
74
|
end
|
|
55
75
|
end
|
data/lib/sellapp/promotions/update_promotion_response_value_200_application_json_property_data.rb
CHANGED
|
@@ -13,6 +13,11 @@ module SellApp
|
|
|
13
13
|
priority: :priority,
|
|
14
14
|
is_stackable: :is_stackable,
|
|
15
15
|
max_redemptions: :max_redemptions,
|
|
16
|
+
applies_to: :applies_to,
|
|
17
|
+
subscription_payments: :subscription_payments,
|
|
18
|
+
store_wide: :store_wide,
|
|
19
|
+
products: :products,
|
|
20
|
+
product_variants: :product_variants,
|
|
16
21
|
phases: :phases,
|
|
17
22
|
created_at: :created_at,
|
|
18
23
|
updated_at: :updated_at,
|
|
@@ -28,6 +33,11 @@ module SellApp
|
|
|
28
33
|
priority: {required: true, schema: {kind: :integer, minimum: 0}},
|
|
29
34
|
is_stackable: {required: true, schema: {kind: :boolean}},
|
|
30
35
|
max_redemptions: {required: false, schema: {kind: :nullable, inner: {kind: :integer, minimum: 1}}},
|
|
36
|
+
applies_to: {required: true, schema: {kind: :enum, values: ["one_time", "subscriptions"]}},
|
|
37
|
+
subscription_payments: {required: true, schema: {kind: :nullable, inner: {kind: :integer}}},
|
|
38
|
+
store_wide: {required: true, schema: {kind: :boolean}},
|
|
39
|
+
products: {required: true, schema: {kind: :array, items: {kind: :integer}}},
|
|
40
|
+
product_variants: {required: true, schema: {kind: :array, items: {kind: :integer}}},
|
|
31
41
|
phases: {required: true, schema: {kind: :array, items: {kind: :model, name: "SellApp::UpdatePromotionResponseValue200ApplicationJsonPropertyDataPropertyPhasesItem"}}},
|
|
32
42
|
created_at: {required: false, schema: {kind: :nullable, inner: {kind: :string, format: "date-time"}}},
|
|
33
43
|
updated_at: {required: false, schema: {kind: :nullable, inner: {kind: :string, format: "date-time"}}},
|
|
@@ -45,6 +55,11 @@ module SellApp
|
|
|
45
55
|
:priority,
|
|
46
56
|
:is_stackable,
|
|
47
57
|
:max_redemptions,
|
|
58
|
+
:applies_to,
|
|
59
|
+
:subscription_payments,
|
|
60
|
+
:store_wide,
|
|
61
|
+
:products,
|
|
62
|
+
:product_variants,
|
|
48
63
|
:phases,
|
|
49
64
|
:created_at,
|
|
50
65
|
:updated_at,
|
|
@@ -63,6 +78,11 @@ module SellApp
|
|
|
63
78
|
@priority = hash[:priority]
|
|
64
79
|
@is_stackable = hash[:is_stackable]
|
|
65
80
|
@max_redemptions = hash[:max_redemptions]
|
|
81
|
+
@applies_to = hash[:applies_to]
|
|
82
|
+
@subscription_payments = hash[:subscription_payments]
|
|
83
|
+
@store_wide = hash[:store_wide]
|
|
84
|
+
@products = hash[:products]
|
|
85
|
+
@product_variants = hash[:product_variants]
|
|
66
86
|
@phases = hash[:phases] ? hash[:phases].map { |item| item ? SellApp::UpdatePromotionResponseValue200ApplicationJsonPropertyDataPropertyPhasesItem.new(item) : nil } : nil
|
|
67
87
|
@created_at = hash[:created_at]
|
|
68
88
|
@updated_at = hash[:updated_at]
|
data/lib/sellapp/promotions.rb
CHANGED
|
@@ -54,6 +54,11 @@ module SellApp
|
|
|
54
54
|
# @param priority [Integer]
|
|
55
55
|
# @param is_stackable [Boolean]
|
|
56
56
|
# @param max_redemptions [Integer, nil]
|
|
57
|
+
# @param applies_to [SellApp::Types::SdkCreatePromotionRequestApplicationJsonAppliesTo, nil] What the promotion discounts: `one_time` for one-time purchases, or `subscriptions` for the first payments of a subscription plan. A new promotion defaults to `one_time`, and an update that leaves this out keeps the current kind. The promotion only discounts order lines of its kind.
|
|
58
|
+
# @param subscription_payments [Integer, nil] How many payments a `subscriptions` promotion discounts, counting the signup payment as the first, so `3` discounts the signup and the next two renewals. A `subscriptions` promotion needs one, and an update that leaves it out keeps the stored number. Missing on a `subscriptions` promotion, or outside 1 to 36, it returns `422` on `subscription_payments` with `The number of discounted payments must be between 1 and 36.` A `one_time` promotion always stores null here.
|
|
59
|
+
# @param store_wide [Boolean, nil] Send `false` with `products` to limit a `subscriptions` promotion to picked products and plans. Required whenever the request sends `products` or `product_variants`. A new promotion defaults to `true`, an update that leaves it out keeps the current scope, and switching a promotion to `one_time` makes it store-wide again. A `one_time` promotion with `false` returns `422` on `store_wide` with `A promotion for one-time purchases applies to the whole store.`
|
|
60
|
+
# @param products [Array<Integer>, nil] Product IDs a narrowed subscription promotion reaches. Each one must sell a subscription, or the request returns `422` on `products` with `Pick only products that sell a subscription.` A narrowed promotion left with no products returns `422` with `Pick at least one subscription product for this promotion.` An update replaces the picks with this list, or keeps them when it is left out.
|
|
61
|
+
# @param product_variants [Array<Integer>, nil] Subscription plan IDs to limit the picked products to. Each one must be a subscription plan of a product in `products`, or the request returns `422` on `product_variants` with `Pick only subscription plans of the picked products.` A picked product with none of its plans listed takes every plan, including plans added later. An update that leaves this out keeps the listed plans of products that stay picked.
|
|
57
62
|
# @param phases [Array<SellApp::CreatePromotionRequestApplicationJsonPropertyPhasesItem>] The complete ordered phase set. Array order becomes phase position.
|
|
58
63
|
# @param request_options [Hash] (see SellApp::Types::RequestOptions)
|
|
59
64
|
# @return [SellApp::SdkCreatePromotionResponseValue201ApplicationJson]
|
|
@@ -66,6 +71,11 @@ module SellApp
|
|
|
66
71
|
starts_at: SellApp::OMIT,
|
|
67
72
|
ends_at: SellApp::OMIT,
|
|
68
73
|
max_redemptions: SellApp::OMIT,
|
|
74
|
+
applies_to: nil,
|
|
75
|
+
subscription_payments: SellApp::OMIT,
|
|
76
|
+
store_wide: nil,
|
|
77
|
+
products: nil,
|
|
78
|
+
product_variants: nil,
|
|
69
79
|
request_options: {}
|
|
70
80
|
)
|
|
71
81
|
body = {
|
|
@@ -73,11 +83,16 @@ module SellApp
|
|
|
73
83
|
'status' => status,
|
|
74
84
|
'priority' => priority,
|
|
75
85
|
'is_stackable' => is_stackable,
|
|
86
|
+
'applies_to' => applies_to,
|
|
87
|
+
'store_wide' => store_wide,
|
|
88
|
+
'products' => products,
|
|
89
|
+
'product_variants' => product_variants,
|
|
76
90
|
'phases' => phases
|
|
77
|
-
}
|
|
91
|
+
}.compact
|
|
78
92
|
body['starts_at'] = starts_at unless starts_at.equal?(SellApp::OMIT)
|
|
79
93
|
body['ends_at'] = ends_at unless ends_at.equal?(SellApp::OMIT)
|
|
80
94
|
body['max_redemptions'] = max_redemptions unless max_redemptions.equal?(SellApp::OMIT)
|
|
95
|
+
body['subscription_payments'] = subscription_payments unless subscription_payments.equal?(SellApp::OMIT)
|
|
81
96
|
SellApp::Types::BaseModel.validate_value!(body, {kind: :model, name: "SellApp::SdkCreatePromotionRequestApplicationJson"}, "$request.body")
|
|
82
97
|
request_options = request_options.merge(operation_id: 'createPromotion', credential_policy: {anonymous: false, apiKey: true, accessToken: true, customerSession: false, browserSession: false, clientBasic: false, apiKeyRequiresStore: false, apiKeyUsesStore: true, accessTokenRequiresStore: true}, retry_forbidden: false, idempotency_supported: false)
|
|
83
98
|
response = @client.request(
|
|
@@ -180,6 +195,11 @@ module SellApp
|
|
|
180
195
|
# @param priority [Integer, nil]
|
|
181
196
|
# @param is_stackable [Boolean, nil]
|
|
182
197
|
# @param max_redemptions [Integer, nil]
|
|
198
|
+
# @param applies_to [SellApp::Types::SdkReplacePromotionRequestApplicationJsonAppliesTo, nil] What the promotion discounts: `one_time` for one-time purchases, or `subscriptions` for the first payments of a subscription plan. A new promotion defaults to `one_time`, and an update that leaves this out keeps the current kind. The promotion only discounts order lines of its kind.
|
|
199
|
+
# @param subscription_payments [Integer, nil] How many payments a `subscriptions` promotion discounts, counting the signup payment as the first, so `3` discounts the signup and the next two renewals. A `subscriptions` promotion needs one, and an update that leaves it out keeps the stored number. Missing on a `subscriptions` promotion, or outside 1 to 36, it returns `422` on `subscription_payments` with `The number of discounted payments must be between 1 and 36.` A `one_time` promotion always stores null here.
|
|
200
|
+
# @param store_wide [Boolean, nil] Send `false` with `products` to limit a `subscriptions` promotion to picked products and plans. Required whenever the request sends `products` or `product_variants`. A new promotion defaults to `true`, an update that leaves it out keeps the current scope, and switching a promotion to `one_time` makes it store-wide again. A `one_time` promotion with `false` returns `422` on `store_wide` with `A promotion for one-time purchases applies to the whole store.`
|
|
201
|
+
# @param products [Array<Integer>, nil] Product IDs a narrowed subscription promotion reaches. Each one must sell a subscription, or the request returns `422` on `products` with `Pick only products that sell a subscription.` A narrowed promotion left with no products returns `422` with `Pick at least one subscription product for this promotion.` An update replaces the picks with this list, or keeps them when it is left out.
|
|
202
|
+
# @param product_variants [Array<Integer>, nil] Subscription plan IDs to limit the picked products to. Each one must be a subscription plan of a product in `products`, or the request returns `422` on `product_variants` with `Pick only subscription plans of the picked products.` A picked product with none of its plans listed takes every plan, including plans added later. An update that leaves this out keeps the listed plans of products that stay picked.
|
|
183
203
|
# @param phases [Array<SellApp::ReplacePromotionRequestApplicationJsonPropertyPhasesItem>, nil] The complete ordered phase set. Array order becomes phase position.
|
|
184
204
|
# @param request_options [Hash] (see SellApp::Types::RequestOptions)
|
|
185
205
|
# @return [SellApp::SdkReplacePromotionResponseValue200ApplicationJson]
|
|
@@ -192,6 +212,11 @@ module SellApp
|
|
|
192
212
|
priority: nil,
|
|
193
213
|
is_stackable: nil,
|
|
194
214
|
max_redemptions: SellApp::OMIT,
|
|
215
|
+
applies_to: nil,
|
|
216
|
+
subscription_payments: SellApp::OMIT,
|
|
217
|
+
store_wide: nil,
|
|
218
|
+
products: nil,
|
|
219
|
+
product_variants: nil,
|
|
195
220
|
phases: nil,
|
|
196
221
|
request_options: {}
|
|
197
222
|
)
|
|
@@ -200,11 +225,16 @@ module SellApp
|
|
|
200
225
|
'status' => status,
|
|
201
226
|
'priority' => priority,
|
|
202
227
|
'is_stackable' => is_stackable,
|
|
228
|
+
'applies_to' => applies_to,
|
|
229
|
+
'store_wide' => store_wide,
|
|
230
|
+
'products' => products,
|
|
231
|
+
'product_variants' => product_variants,
|
|
203
232
|
'phases' => phases
|
|
204
233
|
}.compact
|
|
205
234
|
body['starts_at'] = starts_at unless starts_at.equal?(SellApp::OMIT)
|
|
206
235
|
body['ends_at'] = ends_at unless ends_at.equal?(SellApp::OMIT)
|
|
207
236
|
body['max_redemptions'] = max_redemptions unless max_redemptions.equal?(SellApp::OMIT)
|
|
237
|
+
body['subscription_payments'] = subscription_payments unless subscription_payments.equal?(SellApp::OMIT)
|
|
208
238
|
SellApp::Types::BaseModel.validate_value!(promotion, {kind: :integer}, "$request.promotion")
|
|
209
239
|
SellApp::Types::BaseModel.validate_value!(body, {kind: :model, name: "SellApp::SdkReplacePromotionRequestApplicationJson"}, "$request.body")
|
|
210
240
|
request_options = request_options.merge(operation_id: 'replacePromotion', credential_policy: {anonymous: false, apiKey: true, accessToken: true, customerSession: false, browserSession: false, clientBasic: false, apiKeyRequiresStore: false, apiKeyUsesStore: true, accessTokenRequiresStore: true}, retry_forbidden: false, idempotency_supported: false)
|
|
@@ -232,6 +262,11 @@ module SellApp
|
|
|
232
262
|
# @param priority [Integer, nil]
|
|
233
263
|
# @param is_stackable [Boolean, nil]
|
|
234
264
|
# @param max_redemptions [Integer, nil]
|
|
265
|
+
# @param applies_to [SellApp::Types::SdkUpdatePromotionRequestApplicationJsonAppliesTo, nil] What the promotion discounts: `one_time` for one-time purchases, or `subscriptions` for the first payments of a subscription plan. A new promotion defaults to `one_time`, and an update that leaves this out keeps the current kind. The promotion only discounts order lines of its kind.
|
|
266
|
+
# @param subscription_payments [Integer, nil] How many payments a `subscriptions` promotion discounts, counting the signup payment as the first, so `3` discounts the signup and the next two renewals. A `subscriptions` promotion needs one, and an update that leaves it out keeps the stored number. Missing on a `subscriptions` promotion, or outside 1 to 36, it returns `422` on `subscription_payments` with `The number of discounted payments must be between 1 and 36.` A `one_time` promotion always stores null here.
|
|
267
|
+
# @param store_wide [Boolean, nil] Send `false` with `products` to limit a `subscriptions` promotion to picked products and plans. Required whenever the request sends `products` or `product_variants`. A new promotion defaults to `true`, an update that leaves it out keeps the current scope, and switching a promotion to `one_time` makes it store-wide again. A `one_time` promotion with `false` returns `422` on `store_wide` with `A promotion for one-time purchases applies to the whole store.`
|
|
268
|
+
# @param products [Array<Integer>, nil] Product IDs a narrowed subscription promotion reaches. Each one must sell a subscription, or the request returns `422` on `products` with `Pick only products that sell a subscription.` A narrowed promotion left with no products returns `422` with `Pick at least one subscription product for this promotion.` An update replaces the picks with this list, or keeps them when it is left out.
|
|
269
|
+
# @param product_variants [Array<Integer>, nil] Subscription plan IDs to limit the picked products to. Each one must be a subscription plan of a product in `products`, or the request returns `422` on `product_variants` with `Pick only subscription plans of the picked products.` A picked product with none of its plans listed takes every plan, including plans added later. An update that leaves this out keeps the listed plans of products that stay picked.
|
|
235
270
|
# @param phases [Array<SellApp::UpdatePromotionRequestApplicationJsonPropertyPhasesItem>, nil] The complete ordered phase set. Array order becomes phase position.
|
|
236
271
|
# @param request_options [Hash] (see SellApp::Types::RequestOptions)
|
|
237
272
|
# @return [SellApp::SdkUpdatePromotionResponseValue200ApplicationJson]
|
|
@@ -244,6 +279,11 @@ module SellApp
|
|
|
244
279
|
priority: nil,
|
|
245
280
|
is_stackable: nil,
|
|
246
281
|
max_redemptions: SellApp::OMIT,
|
|
282
|
+
applies_to: nil,
|
|
283
|
+
subscription_payments: SellApp::OMIT,
|
|
284
|
+
store_wide: nil,
|
|
285
|
+
products: nil,
|
|
286
|
+
product_variants: nil,
|
|
247
287
|
phases: nil,
|
|
248
288
|
request_options: {}
|
|
249
289
|
)
|
|
@@ -252,11 +292,16 @@ module SellApp
|
|
|
252
292
|
'status' => status,
|
|
253
293
|
'priority' => priority,
|
|
254
294
|
'is_stackable' => is_stackable,
|
|
295
|
+
'applies_to' => applies_to,
|
|
296
|
+
'store_wide' => store_wide,
|
|
297
|
+
'products' => products,
|
|
298
|
+
'product_variants' => product_variants,
|
|
255
299
|
'phases' => phases
|
|
256
300
|
}.compact
|
|
257
301
|
body['starts_at'] = starts_at unless starts_at.equal?(SellApp::OMIT)
|
|
258
302
|
body['ends_at'] = ends_at unless ends_at.equal?(SellApp::OMIT)
|
|
259
303
|
body['max_redemptions'] = max_redemptions unless max_redemptions.equal?(SellApp::OMIT)
|
|
304
|
+
body['subscription_payments'] = subscription_payments unless subscription_payments.equal?(SellApp::OMIT)
|
|
260
305
|
SellApp::Types::BaseModel.validate_value!(promotion, {kind: :integer}, "$request.promotion")
|
|
261
306
|
SellApp::Types::BaseModel.validate_value!(body, {kind: :model, name: "SellApp::SdkUpdatePromotionRequestApplicationJson"}, "$request.body")
|
|
262
307
|
request_options = request_options.merge(operation_id: 'updatePromotion', credential_policy: {anonymous: false, apiKey: true, accessToken: true, customerSession: false, browserSession: false, clientBasic: false, apiKeyRequiresStore: false, apiKeyUsesStore: true, accessTokenRequiresStore: true}, retry_forbidden: false, idempotency_supported: false)
|
|
@@ -308,6 +353,11 @@ module SellApp
|
|
|
308
353
|
# @param priority [Integer]
|
|
309
354
|
# @param is_stackable [Boolean]
|
|
310
355
|
# @param max_redemptions [Integer, nil]
|
|
356
|
+
# @param applies_to [SellApp::Types::SdkRestorePromotionRequestApplicationJsonAppliesTo, nil] What the promotion discounts: `one_time` for one-time purchases, or `subscriptions` for the first payments of a subscription plan. A new promotion defaults to `one_time`, and an update that leaves this out keeps the current kind. The promotion only discounts order lines of its kind.
|
|
357
|
+
# @param subscription_payments [Integer, nil] How many payments a `subscriptions` promotion discounts, counting the signup payment as the first, so `3` discounts the signup and the next two renewals. A `subscriptions` promotion needs one, and an update that leaves it out keeps the stored number. Missing on a `subscriptions` promotion, or outside 1 to 36, it returns `422` on `subscription_payments` with `The number of discounted payments must be between 1 and 36.` A `one_time` promotion always stores null here.
|
|
358
|
+
# @param store_wide [Boolean, nil] Send `false` with `products` to limit a `subscriptions` promotion to picked products and plans. Required whenever the request sends `products` or `product_variants`. A new promotion defaults to `true`, an update that leaves it out keeps the current scope, and switching a promotion to `one_time` makes it store-wide again. A `one_time` promotion with `false` returns `422` on `store_wide` with `A promotion for one-time purchases applies to the whole store.`
|
|
359
|
+
# @param products [Array<Integer>, nil] Product IDs a narrowed subscription promotion reaches. Each one must sell a subscription, or the request returns `422` on `products` with `Pick only products that sell a subscription.` A narrowed promotion left with no products returns `422` with `Pick at least one subscription product for this promotion.` An update replaces the picks with this list, or keeps them when it is left out.
|
|
360
|
+
# @param product_variants [Array<Integer>, nil] Subscription plan IDs to limit the picked products to. Each one must be a subscription plan of a product in `products`, or the request returns `422` on `product_variants` with `Pick only subscription plans of the picked products.` A picked product with none of its plans listed takes every plan, including plans added later. An update that leaves this out keeps the listed plans of products that stay picked.
|
|
311
361
|
# @param phases [Array<SellApp::RestorePromotionRequestApplicationJsonPropertyPhasesItem>] The complete ordered phase set. Array order becomes phase position.
|
|
312
362
|
# @param request_options [Hash] (see SellApp::Types::RequestOptions)
|
|
313
363
|
# @return [SellApp::SdkRestorePromotionResponseValue200ApplicationJson]
|
|
@@ -321,6 +371,11 @@ module SellApp
|
|
|
321
371
|
starts_at: SellApp::OMIT,
|
|
322
372
|
ends_at: SellApp::OMIT,
|
|
323
373
|
max_redemptions: SellApp::OMIT,
|
|
374
|
+
applies_to: nil,
|
|
375
|
+
subscription_payments: SellApp::OMIT,
|
|
376
|
+
store_wide: nil,
|
|
377
|
+
products: nil,
|
|
378
|
+
product_variants: nil,
|
|
324
379
|
request_options: {}
|
|
325
380
|
)
|
|
326
381
|
body = {
|
|
@@ -328,11 +383,16 @@ module SellApp
|
|
|
328
383
|
'status' => status,
|
|
329
384
|
'priority' => priority,
|
|
330
385
|
'is_stackable' => is_stackable,
|
|
386
|
+
'applies_to' => applies_to,
|
|
387
|
+
'store_wide' => store_wide,
|
|
388
|
+
'products' => products,
|
|
389
|
+
'product_variants' => product_variants,
|
|
331
390
|
'phases' => phases
|
|
332
|
-
}
|
|
391
|
+
}.compact
|
|
333
392
|
body['starts_at'] = starts_at unless starts_at.equal?(SellApp::OMIT)
|
|
334
393
|
body['ends_at'] = ends_at unless ends_at.equal?(SellApp::OMIT)
|
|
335
394
|
body['max_redemptions'] = max_redemptions unless max_redemptions.equal?(SellApp::OMIT)
|
|
395
|
+
body['subscription_payments'] = subscription_payments unless subscription_payments.equal?(SellApp::OMIT)
|
|
336
396
|
SellApp::Types::BaseModel.validate_value!(promotion, {kind: :integer}, "$request.promotion")
|
|
337
397
|
SellApp::Types::BaseModel.validate_value!(body, {kind: :model, name: "SellApp::SdkRestorePromotionRequestApplicationJson"}, "$request.body")
|
|
338
398
|
request_options = request_options.merge(operation_id: 'restorePromotion', credential_policy: {anonymous: false, apiKey: true, accessToken: true, customerSession: false, browserSession: false, clientBasic: false, apiKeyRequiresStore: false, apiKeyUsesStore: true, accessTokenRequiresStore: true}, retry_forbidden: false, idempotency_supported: false)
|