terminal-shop 2.1.3 → 3.5.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/.ignore +2 -0
- data/CHANGELOG.md +674 -0
- data/README.md +86 -26
- data/SECURITY.md +27 -0
- data/lib/{terminal-shop → terminal_shop}/client.rb +19 -24
- data/lib/terminal_shop/errors.rb +192 -0
- data/lib/terminal_shop/file_part.rb +55 -0
- data/lib/terminal_shop/internal/transport/base_client.rb +486 -0
- data/lib/terminal_shop/internal/transport/pooled_net_requester.rb +193 -0
- data/lib/terminal_shop/internal/type/array_of.rb +154 -0
- data/lib/terminal_shop/internal/type/base_model.rb +443 -0
- data/lib/terminal_shop/internal/type/base_page.rb +55 -0
- data/lib/terminal_shop/internal/type/boolean.rb +64 -0
- data/lib/terminal_shop/internal/type/converter.rb +274 -0
- data/lib/terminal_shop/internal/type/enum.rb +133 -0
- data/lib/terminal_shop/internal/type/file_input.rb +96 -0
- data/lib/terminal_shop/internal/type/hash_of.rb +174 -0
- data/lib/terminal_shop/internal/type/request_parameters.rb +48 -0
- data/lib/terminal_shop/internal/type/union.rb +220 -0
- data/lib/terminal_shop/internal/type/unknown.rb +68 -0
- data/lib/terminal_shop/internal/util.rb +790 -0
- data/lib/terminal_shop/internal.rb +11 -0
- data/lib/terminal_shop/models/address.rb +93 -0
- data/lib/terminal_shop/models/address_create_params.rb +78 -0
- data/lib/terminal_shop/models/address_create_response.rb +17 -0
- data/lib/terminal_shop/models/address_delete_params.rb +14 -0
- data/lib/terminal_shop/models/address_delete_response.rb +16 -0
- data/lib/terminal_shop/models/address_get_params.rb +14 -0
- data/lib/{terminal-shop → terminal_shop}/models/address_get_response.rb +4 -7
- data/lib/terminal_shop/models/address_list_params.rb +14 -0
- data/lib/terminal_shop/models/address_list_response.rb +17 -0
- data/lib/{terminal-shop → terminal_shop}/models/app.rb +14 -12
- data/lib/terminal_shop/models/app_create_params.rb +26 -0
- data/lib/{terminal-shop → terminal_shop}/models/app_create_response.rb +10 -15
- data/lib/terminal_shop/models/app_delete_params.rb +14 -0
- data/lib/terminal_shop/models/app_delete_response.rb +16 -0
- data/lib/terminal_shop/models/app_get_params.rb +14 -0
- data/lib/{terminal-shop → terminal_shop}/models/app_get_response.rb +4 -7
- data/lib/terminal_shop/models/app_list_params.rb +14 -0
- data/lib/terminal_shop/models/app_list_response.rb +17 -0
- data/lib/terminal_shop/models/card.rb +75 -0
- data/lib/terminal_shop/models/card_collect_params.rb +14 -0
- data/lib/terminal_shop/models/card_collect_response.rb +36 -0
- data/lib/terminal_shop/models/card_create_params.rb +27 -0
- data/lib/terminal_shop/models/card_create_response.rb +17 -0
- data/lib/terminal_shop/models/card_delete_params.rb +14 -0
- data/lib/terminal_shop/models/card_delete_response.rb +16 -0
- data/lib/terminal_shop/models/card_get_params.rb +14 -0
- data/lib/{terminal-shop → terminal_shop}/models/card_get_response.rb +4 -7
- data/lib/terminal_shop/models/card_list_params.rb +14 -0
- data/lib/terminal_shop/models/card_list_response.rb +17 -0
- data/lib/terminal_shop/models/cart.rb +150 -0
- data/lib/terminal_shop/models/cart_clear_params.rb +14 -0
- data/lib/terminal_shop/models/cart_clear_response.rb +16 -0
- data/lib/terminal_shop/models/cart_convert_params.rb +14 -0
- data/lib/{terminal-shop → terminal_shop}/models/cart_convert_response.rb +4 -7
- data/lib/terminal_shop/models/cart_get_params.rb +14 -0
- data/lib/{terminal-shop → terminal_shop}/models/cart_get_response.rb +4 -7
- data/lib/terminal_shop/models/cart_set_address_params.rb +22 -0
- data/lib/terminal_shop/models/cart_set_address_response.rb +16 -0
- data/lib/terminal_shop/models/cart_set_card_params.rb +22 -0
- data/lib/terminal_shop/models/cart_set_card_response.rb +16 -0
- data/lib/terminal_shop/models/cart_set_item_params.rb +30 -0
- data/lib/{terminal-shop → terminal_shop}/models/cart_set_item_response.rb +4 -7
- data/lib/terminal_shop/models/email_create_params.rb +22 -0
- data/lib/terminal_shop/models/email_create_response.rb +16 -0
- data/lib/terminal_shop/models/order.rb +278 -0
- data/lib/terminal_shop/models/order_create_params.rb +38 -0
- data/lib/terminal_shop/models/order_create_response.rb +17 -0
- data/lib/terminal_shop/models/order_get_params.rb +14 -0
- data/lib/{terminal-shop → terminal_shop}/models/order_get_response.rb +4 -7
- data/lib/terminal_shop/models/order_list_params.rb +14 -0
- data/lib/terminal_shop/models/order_list_response.rb +17 -0
- data/lib/terminal_shop/models/product.rb +125 -0
- data/lib/terminal_shop/models/product_get_params.rb +14 -0
- data/lib/{terminal-shop → terminal_shop}/models/product_get_response.rb +4 -7
- data/lib/terminal_shop/models/product_list_params.rb +14 -0
- data/lib/terminal_shop/models/product_list_response.rb +17 -0
- data/lib/terminal_shop/models/product_variant.rb +84 -0
- data/lib/{terminal-shop → terminal_shop}/models/profile.rb +22 -22
- data/lib/terminal_shop/models/profile_me_params.rb +14 -0
- data/lib/{terminal-shop → terminal_shop}/models/profile_me_response.rb +4 -7
- data/lib/terminal_shop/models/profile_update_params.rb +26 -0
- data/lib/{terminal-shop → terminal_shop}/models/profile_update_response.rb +4 -7
- data/lib/{terminal-shop → terminal_shop}/models/region.rb +4 -6
- data/lib/terminal_shop/models/subscription.rb +125 -0
- data/lib/terminal_shop/models/subscription_create_params.rb +14 -0
- data/lib/terminal_shop/models/subscription_create_response.rb +16 -0
- data/lib/terminal_shop/models/subscription_delete_params.rb +14 -0
- data/lib/terminal_shop/models/subscription_delete_response.rb +16 -0
- data/lib/terminal_shop/models/subscription_get_params.rb +14 -0
- data/lib/{terminal-shop → terminal_shop}/models/subscription_get_response.rb +4 -7
- data/lib/terminal_shop/models/subscription_list_params.rb +14 -0
- data/lib/terminal_shop/models/subscription_list_response.rb +17 -0
- data/lib/terminal_shop/models/subscription_update_params.rb +76 -0
- data/lib/terminal_shop/models/subscription_update_response.rb +17 -0
- data/lib/terminal_shop/models/token.rb +38 -0
- data/lib/terminal_shop/models/token_create_params.rb +14 -0
- data/lib/terminal_shop/models/token_create_response.rb +41 -0
- data/lib/terminal_shop/models/token_delete_params.rb +14 -0
- data/lib/terminal_shop/models/token_delete_response.rb +16 -0
- data/lib/terminal_shop/models/token_get_params.rb +14 -0
- data/lib/terminal_shop/models/token_get_response.rb +22 -0
- data/lib/terminal_shop/models/token_list_params.rb +14 -0
- data/lib/terminal_shop/models/token_list_response.rb +17 -0
- data/lib/terminal_shop/models/view_init_params.rb +14 -0
- data/lib/terminal_shop/models/view_init_response.rb +97 -0
- data/lib/{terminal-shop → terminal_shop}/request_options.rb +14 -15
- data/lib/{terminal-shop → terminal_shop}/resources/address.rb +28 -18
- data/lib/{terminal-shop → terminal_shop}/resources/app.rb +22 -14
- data/lib/{terminal-shop → terminal_shop}/resources/card.rb +30 -15
- data/lib/{terminal-shop → terminal_shop}/resources/cart.rb +30 -16
- data/lib/{terminal-shop → terminal_shop}/resources/email.rb +7 -3
- data/lib/{terminal-shop → terminal_shop}/resources/order.rb +18 -10
- data/lib/{terminal-shop → terminal_shop}/resources/product.rb +11 -5
- data/lib/{terminal-shop → terminal_shop}/resources/profile.rb +12 -8
- data/lib/terminal_shop/resources/subscription.rb +141 -0
- data/lib/{terminal-shop → terminal_shop}/resources/token.rb +20 -10
- data/lib/{terminal-shop → terminal_shop}/resources/view.rb +7 -3
- data/lib/{terminal-shop → terminal_shop}/version.rb +1 -1
- data/lib/terminal_shop.rb +144 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/client.rbi +18 -19
- data/rbi/lib/terminal_shop/errors.rbi +143 -0
- data/rbi/lib/terminal_shop/file_part.rbi +34 -0
- data/rbi/lib/terminal_shop/internal/transport/base_client.rbi +213 -0
- data/rbi/lib/terminal_shop/internal/transport/pooled_net_requester.rbi +60 -0
- data/rbi/lib/terminal_shop/internal/type/array_of.rbi +88 -0
- data/rbi/lib/terminal_shop/internal/type/base_model.rbi +220 -0
- data/rbi/lib/terminal_shop/internal/type/base_page.rbi +38 -0
- data/rbi/lib/terminal_shop/internal/type/boolean.rbi +48 -0
- data/rbi/lib/terminal_shop/internal/type/converter.rbi +120 -0
- data/rbi/lib/terminal_shop/internal/type/enum.rbi +66 -0
- data/rbi/lib/terminal_shop/internal/type/file_input.rbi +50 -0
- data/rbi/lib/terminal_shop/internal/type/hash_of.rbi +88 -0
- data/rbi/lib/terminal_shop/internal/type/request_parameters.rbi +21 -0
- data/rbi/lib/terminal_shop/internal/type/union.rbi +80 -0
- data/rbi/lib/terminal_shop/internal/type/unknown.rbi +40 -0
- data/rbi/lib/terminal_shop/internal/util.rbi +302 -0
- data/rbi/lib/terminal_shop/internal.rbi +11 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/address.rbi +30 -6
- data/rbi/lib/{terminal-shop → terminal_shop}/models/address_create_params.rbi +14 -9
- data/rbi/lib/{terminal-shop → terminal_shop}/models/address_create_response.rbi +6 -6
- data/rbi/lib/terminal_shop/models/address_delete_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/address_delete_response.rbi +3 -5
- data/rbi/lib/terminal_shop/models/address_get_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/address_get_response.rbi +8 -8
- data/rbi/lib/terminal_shop/models/address_list_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/address_list_response.rbi +7 -7
- data/rbi/lib/{terminal-shop → terminal_shop}/models/app.rbi +12 -6
- data/rbi/lib/{terminal-shop → terminal_shop}/models/app_create_params.rbi +6 -8
- data/rbi/lib/{terminal-shop → terminal_shop}/models/app_create_response.rbi +13 -13
- data/rbi/lib/terminal_shop/models/app_delete_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/app_delete_response.rbi +3 -5
- data/rbi/lib/terminal_shop/models/app_get_params.rbi +19 -0
- data/rbi/lib/terminal_shop/models/app_get_response.rbi +25 -0
- data/rbi/lib/terminal_shop/models/app_list_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/app_list_response.rbi +7 -7
- data/rbi/lib/{terminal-shop → terminal_shop}/models/card.rbi +32 -15
- data/rbi/lib/terminal_shop/models/card_collect_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/card_collect_response.rbi +16 -15
- data/rbi/lib/terminal_shop/models/card_create_params.rbi +31 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/card_create_response.rbi +6 -6
- data/rbi/lib/terminal_shop/models/card_delete_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/card_delete_response.rbi +3 -5
- data/rbi/lib/terminal_shop/models/card_get_params.rbi +19 -0
- data/rbi/lib/terminal_shop/models/card_get_response.rbi +25 -0
- data/rbi/lib/terminal_shop/models/card_list_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/card_list_response.rbi +7 -7
- data/rbi/lib/{terminal-shop → terminal_shop}/models/cart.rbi +51 -29
- data/rbi/lib/terminal_shop/models/cart_clear_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/cart_clear_response.rbi +3 -5
- data/rbi/lib/terminal_shop/models/cart_convert_params.rbi +19 -0
- data/rbi/lib/terminal_shop/models/cart_convert_response.rbi +25 -0
- data/rbi/lib/terminal_shop/models/cart_get_params.rbi +19 -0
- data/rbi/lib/terminal_shop/models/cart_get_response.rbi +25 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/cart_set_address_params.rbi +10 -9
- data/rbi/lib/{terminal-shop → terminal_shop}/models/cart_set_address_response.rbi +3 -5
- data/rbi/lib/terminal_shop/models/cart_set_card_params.rbi +29 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/cart_set_card_response.rbi +3 -5
- data/rbi/lib/{terminal-shop → terminal_shop}/models/cart_set_item_params.rbi +12 -9
- data/rbi/lib/terminal_shop/models/cart_set_item_response.rbi +25 -0
- data/rbi/lib/terminal_shop/models/email_create_params.rbi +29 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/email_create_response.rbi +3 -5
- data/rbi/lib/{terminal-shop → terminal_shop}/models/order.rbi +149 -36
- data/rbi/lib/{terminal-shop → terminal_shop}/models/order_create_params.rbi +14 -9
- data/rbi/lib/{terminal-shop → terminal_shop}/models/order_create_response.rbi +6 -6
- data/rbi/lib/terminal_shop/models/order_get_params.rbi +19 -0
- data/rbi/lib/terminal_shop/models/order_get_response.rbi +25 -0
- data/rbi/lib/terminal_shop/models/order_list_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/order_list_response.rbi +7 -7
- data/rbi/lib/{terminal-shop → terminal_shop}/models/product.rbi +44 -24
- data/rbi/lib/terminal_shop/models/product_get_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/product_get_response.rbi +8 -8
- data/rbi/lib/terminal_shop/models/product_list_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/product_list_response.rbi +7 -7
- data/rbi/lib/terminal_shop/models/product_variant.rbi +109 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/profile.rbi +22 -14
- data/rbi/lib/terminal_shop/models/profile_me_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/profile_me_response.rbi +8 -8
- data/rbi/lib/{terminal-shop → terminal_shop}/models/profile_update_params.rbi +6 -8
- data/rbi/lib/{terminal-shop → terminal_shop}/models/profile_update_response.rbi +8 -8
- data/rbi/lib/{terminal-shop → terminal_shop}/models/region.rbi +4 -4
- data/rbi/lib/{terminal-shop → terminal_shop}/models/subscription.rbi +44 -21
- data/rbi/lib/{terminal-shop → terminal_shop}/models/subscription_create_params.rbi +5 -7
- data/rbi/lib/{terminal-shop → terminal_shop}/models/subscription_create_response.rbi +3 -5
- data/rbi/lib/terminal_shop/models/subscription_delete_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/subscription_delete_response.rbi +3 -5
- data/rbi/lib/terminal_shop/models/subscription_get_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/subscription_get_response.rbi +8 -8
- data/rbi/lib/terminal_shop/models/subscription_list_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/subscription_list_response.rbi +7 -7
- data/rbi/lib/terminal_shop/models/subscription_update_params.rbi +125 -0
- data/rbi/lib/terminal_shop/models/subscription_update_response.rbi +25 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/token.rbi +11 -7
- data/rbi/lib/terminal_shop/models/token_create_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/token_create_response.rbi +15 -14
- data/rbi/lib/terminal_shop/models/token_delete_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/token_delete_response.rbi +3 -5
- data/rbi/lib/terminal_shop/models/token_get_params.rbi +19 -0
- data/rbi/lib/terminal_shop/models/token_get_response.rbi +27 -0
- data/rbi/lib/terminal_shop/models/token_list_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/token_list_response.rbi +7 -7
- data/rbi/lib/terminal_shop/models/view_init_params.rbi +19 -0
- data/rbi/lib/{terminal-shop → terminal_shop}/models/view_init_response.rbi +25 -25
- data/rbi/lib/{terminal-shop → terminal_shop}/request_options.rbi +11 -13
- data/rbi/lib/{terminal-shop → terminal_shop}/resources/address.rbi +17 -17
- data/rbi/lib/{terminal-shop → terminal_shop}/resources/app.rbi +17 -16
- data/rbi/lib/{terminal-shop → terminal_shop}/resources/card.rbi +28 -22
- data/rbi/lib/{terminal-shop → terminal_shop}/resources/cart.rbi +35 -23
- data/rbi/lib/{terminal-shop → terminal_shop}/resources/email.rbi +4 -6
- data/rbi/lib/{terminal-shop → terminal_shop}/resources/order.rbi +15 -13
- data/rbi/lib/{terminal-shop → terminal_shop}/resources/product.rbi +13 -9
- data/rbi/lib/{terminal-shop → terminal_shop}/resources/profile.rbi +13 -8
- data/rbi/lib/{terminal-shop → terminal_shop}/resources/subscription.rbi +49 -17
- data/rbi/lib/{terminal-shop → terminal_shop}/resources/token.rbi +24 -16
- data/rbi/lib/{terminal-shop → terminal_shop}/resources/view.rbi +12 -6
- data/rbi/lib/{terminal-shop → terminal_shop}/version.rbi +1 -1
- data/sig/{terminal-shop → terminal_shop}/client.rbs +3 -3
- data/sig/terminal_shop/errors.rbs +101 -0
- data/sig/terminal_shop/file_part.rbs +21 -0
- data/sig/terminal_shop/internal/transport/base_client.rbs +116 -0
- data/sig/terminal_shop/internal/transport/pooled_net_requester.rbs +41 -0
- data/sig/terminal_shop/internal/type/array_of.rbs +45 -0
- data/sig/terminal_shop/internal/type/base_model.rbs +96 -0
- data/sig/terminal_shop/internal/type/base_page.rbs +24 -0
- data/sig/terminal_shop/internal/type/boolean.rbs +23 -0
- data/sig/terminal_shop/internal/type/converter.rbs +54 -0
- data/sig/terminal_shop/internal/type/enum.rbs +29 -0
- data/sig/terminal_shop/internal/type/file_input.rbs +23 -0
- data/sig/terminal_shop/internal/type/hash_of.rbs +45 -0
- data/sig/terminal_shop/internal/type/request_parameters.rbs +15 -0
- data/sig/terminal_shop/internal/type/union.rbs +49 -0
- data/sig/terminal_shop/internal/type/unknown.rbs +23 -0
- data/sig/terminal_shop/internal/util.rbs +158 -0
- data/sig/terminal_shop/internal.rbs +5 -0
- data/sig/{terminal-shop → terminal_shop}/models/address.rbs +5 -1
- data/sig/{terminal-shop → terminal_shop}/models/address_create_params.rbs +4 -4
- data/sig/{terminal-shop → terminal_shop}/models/address_create_response.rbs +1 -1
- data/sig/terminal_shop/models/address_delete_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/address_delete_response.rbs +1 -1
- data/sig/terminal_shop/models/address_get_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/address_get_response.rbs +1 -1
- data/sig/terminal_shop/models/address_list_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/address_list_response.rbs +1 -1
- data/sig/{terminal-shop → terminal_shop}/models/app.rbs +1 -1
- data/sig/{terminal-shop → terminal_shop}/models/app_create_params.rbs +5 -4
- data/sig/{terminal-shop → terminal_shop}/models/app_create_response.rbs +2 -2
- data/sig/terminal_shop/models/app_delete_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/app_delete_response.rbs +1 -1
- data/sig/terminal_shop/models/app_get_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/app_get_response.rbs +1 -1
- data/sig/terminal_shop/models/app_list_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/app_list_response.rbs +1 -1
- data/sig/{terminal-shop → terminal_shop}/models/card.rbs +6 -2
- data/sig/terminal_shop/models/card_collect_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/card_collect_response.rbs +2 -2
- data/sig/{terminal-shop → terminal_shop}/models/card_create_params.rbs +4 -4
- data/sig/{terminal-shop → terminal_shop}/models/card_create_response.rbs +1 -1
- data/sig/terminal_shop/models/card_delete_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/card_delete_response.rbs +1 -1
- data/sig/terminal_shop/models/card_get_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/card_get_response.rbs +1 -1
- data/sig/terminal_shop/models/card_list_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/card_list_response.rbs +1 -1
- data/sig/{terminal-shop → terminal_shop}/models/cart.rbs +4 -4
- data/sig/terminal_shop/models/cart_clear_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/cart_clear_response.rbs +1 -1
- data/sig/terminal_shop/models/cart_convert_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/cart_convert_response.rbs +1 -1
- data/sig/terminal_shop/models/cart_get_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/cart_get_response.rbs +1 -1
- data/sig/{terminal-shop → terminal_shop}/models/cart_set_address_params.rbs +4 -4
- data/sig/{terminal-shop → terminal_shop}/models/cart_set_address_response.rbs +1 -1
- data/sig/{terminal-shop → terminal_shop}/models/cart_set_card_params.rbs +4 -4
- data/sig/{terminal-shop → terminal_shop}/models/cart_set_card_response.rbs +1 -1
- data/sig/{terminal-shop → terminal_shop}/models/cart_set_item_params.rbs +4 -4
- data/sig/{terminal-shop → terminal_shop}/models/cart_set_item_response.rbs +1 -1
- data/sig/{terminal-shop → terminal_shop}/models/email_create_params.rbs +4 -4
- data/sig/{terminal-shop → terminal_shop}/models/email_create_response.rbs +1 -1
- data/sig/{terminal-shop → terminal_shop}/models/order.rbs +51 -6
- data/sig/{terminal-shop → terminal_shop}/models/order_create_params.rbs +4 -4
- data/sig/{terminal-shop → terminal_shop}/models/order_create_response.rbs +1 -1
- data/sig/terminal_shop/models/order_get_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/order_get_response.rbs +1 -1
- data/sig/terminal_shop/models/order_list_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/order_list_response.rbs +1 -1
- data/sig/{terminal-shop → terminal_shop}/models/product.rbs +9 -3
- data/sig/terminal_shop/models/product_get_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/product_get_response.rbs +1 -1
- data/sig/terminal_shop/models/product_list_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/product_list_response.rbs +1 -1
- data/sig/terminal_shop/models/product_variant.rbs +70 -0
- data/sig/{terminal-shop → terminal_shop}/models/profile.rbs +2 -2
- data/sig/terminal_shop/models/profile_me_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/profile_me_response.rbs +1 -1
- data/sig/{terminal-shop → terminal_shop}/models/profile_update_params.rbs +5 -4
- data/sig/{terminal-shop → terminal_shop}/models/profile_update_response.rbs +1 -1
- data/sig/{terminal-shop → terminal_shop}/models/region.rbs +3 -2
- data/sig/{terminal-shop → terminal_shop}/models/subscription.rbs +12 -4
- data/sig/{terminal-shop → terminal_shop}/models/subscription_create_params.rbs +4 -3
- data/sig/{terminal-shop → terminal_shop}/models/subscription_create_response.rbs +1 -1
- data/sig/terminal_shop/models/subscription_delete_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/subscription_delete_response.rbs +1 -1
- data/sig/terminal_shop/models/subscription_get_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/subscription_get_response.rbs +1 -1
- data/sig/terminal_shop/models/subscription_list_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/subscription_list_response.rbs +1 -1
- data/sig/terminal_shop/models/subscription_update_params.rbs +71 -0
- data/sig/terminal_shop/models/subscription_update_response.rbs +14 -0
- data/sig/{terminal-shop → terminal_shop}/models/token.rbs +1 -1
- data/sig/terminal_shop/models/token_create_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/token_create_response.rbs +2 -2
- data/sig/terminal_shop/models/token_delete_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/token_delete_response.rbs +1 -1
- data/sig/terminal_shop/models/token_get_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/token_get_response.rbs +1 -1
- data/sig/terminal_shop/models/token_list_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/token_list_response.rbs +1 -1
- data/sig/terminal_shop/models/view_init_params.rbs +15 -0
- data/sig/{terminal-shop → terminal_shop}/models/view_init_response.rbs +2 -2
- data/sig/{terminal-shop → terminal_shop}/request_options.rbs +1 -1
- data/sig/{terminal-shop → terminal_shop}/resources/subscription.rbs +10 -0
- data/sig/{terminal-shop → terminal_shop}/version.rbs +1 -1
- metadata +354 -339
- data/lib/terminal-shop/errors.rb +0 -183
- data/lib/terminal-shop/models/address.rb +0 -90
- data/lib/terminal-shop/models/address_create_params.rb +0 -86
- data/lib/terminal-shop/models/address_create_response.rb +0 -20
- data/lib/terminal-shop/models/address_delete_params.rb +0 -18
- data/lib/terminal-shop/models/address_delete_response.rb +0 -19
- data/lib/terminal-shop/models/address_get_params.rb +0 -18
- data/lib/terminal-shop/models/address_list_params.rb +0 -18
- data/lib/terminal-shop/models/address_list_response.rb +0 -20
- data/lib/terminal-shop/models/app_create_params.rb +0 -30
- data/lib/terminal-shop/models/app_delete_params.rb +0 -18
- data/lib/terminal-shop/models/app_delete_response.rb +0 -19
- data/lib/terminal-shop/models/app_get_params.rb +0 -18
- data/lib/terminal-shop/models/app_list_params.rb +0 -18
- data/lib/terminal-shop/models/app_list_response.rb +0 -20
- data/lib/terminal-shop/models/card.rb +0 -67
- data/lib/terminal-shop/models/card_collect_params.rb +0 -18
- data/lib/terminal-shop/models/card_collect_response.rb +0 -38
- data/lib/terminal-shop/models/card_create_params.rb +0 -26
- data/lib/terminal-shop/models/card_create_response.rb +0 -20
- data/lib/terminal-shop/models/card_delete_params.rb +0 -18
- data/lib/terminal-shop/models/card_delete_response.rb +0 -19
- data/lib/terminal-shop/models/card_get_params.rb +0 -18
- data/lib/terminal-shop/models/card_list_params.rb +0 -18
- data/lib/terminal-shop/models/card_list_response.rb +0 -20
- data/lib/terminal-shop/models/cart.rb +0 -178
- data/lib/terminal-shop/models/cart_clear_params.rb +0 -18
- data/lib/terminal-shop/models/cart_clear_response.rb +0 -19
- data/lib/terminal-shop/models/cart_convert_params.rb +0 -18
- data/lib/terminal-shop/models/cart_get_params.rb +0 -18
- data/lib/terminal-shop/models/cart_set_address_params.rb +0 -25
- data/lib/terminal-shop/models/cart_set_address_response.rb +0 -19
- data/lib/terminal-shop/models/cart_set_card_params.rb +0 -25
- data/lib/terminal-shop/models/cart_set_card_response.rb +0 -19
- data/lib/terminal-shop/models/cart_set_item_params.rb +0 -32
- data/lib/terminal-shop/models/email_create_params.rb +0 -25
- data/lib/terminal-shop/models/email_create_response.rb +0 -19
- data/lib/terminal-shop/models/order.rb +0 -257
- data/lib/terminal-shop/models/order_create_params.rb +0 -39
- data/lib/terminal-shop/models/order_create_response.rb +0 -20
- data/lib/terminal-shop/models/order_get_params.rb +0 -18
- data/lib/terminal-shop/models/order_list_params.rb +0 -18
- data/lib/terminal-shop/models/order_list_response.rb +0 -20
- data/lib/terminal-shop/models/product.rb +0 -150
- data/lib/terminal-shop/models/product_get_params.rb +0 -18
- data/lib/terminal-shop/models/product_list_params.rb +0 -18
- data/lib/terminal-shop/models/product_list_response.rb +0 -20
- data/lib/terminal-shop/models/product_variant.rb +0 -36
- data/lib/terminal-shop/models/profile_me_params.rb +0 -18
- data/lib/terminal-shop/models/profile_update_params.rb +0 -30
- data/lib/terminal-shop/models/subscription.rb +0 -119
- data/lib/terminal-shop/models/subscription_create_params.rb +0 -18
- data/lib/terminal-shop/models/subscription_create_response.rb +0 -19
- data/lib/terminal-shop/models/subscription_delete_params.rb +0 -18
- data/lib/terminal-shop/models/subscription_delete_response.rb +0 -19
- data/lib/terminal-shop/models/subscription_get_params.rb +0 -18
- data/lib/terminal-shop/models/subscription_list_params.rb +0 -18
- data/lib/terminal-shop/models/subscription_list_response.rb +0 -20
- data/lib/terminal-shop/models/token.rb +0 -37
- data/lib/terminal-shop/models/token_create_params.rb +0 -18
- data/lib/terminal-shop/models/token_create_response.rb +0 -42
- data/lib/terminal-shop/models/token_delete_params.rb +0 -18
- data/lib/terminal-shop/models/token_delete_response.rb +0 -19
- data/lib/terminal-shop/models/token_get_params.rb +0 -18
- data/lib/terminal-shop/models/token_get_response.rb +0 -21
- data/lib/terminal-shop/models/token_list_params.rb +0 -18
- data/lib/terminal-shop/models/token_list_response.rb +0 -20
- data/lib/terminal-shop/models/view_init_params.rb +0 -18
- data/lib/terminal-shop/models/view_init_response.rb +0 -93
- data/lib/terminal-shop/resources/subscription.rb +0 -96
- data/lib/terminal-shop/transport/base_client.rb +0 -459
- data/lib/terminal-shop/transport/pooled_net_requester.rb +0 -182
- data/lib/terminal-shop/type/array_of.rb +0 -112
- data/lib/terminal-shop/type/base_model.rb +0 -364
- data/lib/terminal-shop/type/base_page.rb +0 -61
- data/lib/terminal-shop/type/boolean_model.rb +0 -52
- data/lib/terminal-shop/type/converter.rb +0 -217
- data/lib/terminal-shop/type/enum.rb +0 -101
- data/lib/terminal-shop/type/hash_of.rb +0 -138
- data/lib/terminal-shop/type/request_parameters.rb +0 -38
- data/lib/terminal-shop/type/union.rb +0 -185
- data/lib/terminal-shop/type/unknown.rb +0 -56
- data/lib/terminal-shop/type.rb +0 -23
- data/lib/terminal-shop/util.rb +0 -726
- data/lib/terminal-shop.rb +0 -149
- data/rbi/lib/terminal-shop/errors.rbi +0 -144
- data/rbi/lib/terminal-shop/models/address_delete_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/address_get_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/address_list_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/app_delete_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/app_get_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/app_get_response.rbi +0 -22
- data/rbi/lib/terminal-shop/models/app_list_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/card_collect_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/card_create_params.rbi +0 -32
- data/rbi/lib/terminal-shop/models/card_delete_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/card_get_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/card_get_response.rbi +0 -22
- data/rbi/lib/terminal-shop/models/card_list_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/cart_clear_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/cart_convert_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/cart_convert_response.rbi +0 -22
- data/rbi/lib/terminal-shop/models/cart_get_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/cart_get_response.rbi +0 -22
- data/rbi/lib/terminal-shop/models/cart_set_card_params.rbi +0 -31
- data/rbi/lib/terminal-shop/models/cart_set_item_response.rbi +0 -22
- data/rbi/lib/terminal-shop/models/email_create_params.rbi +0 -31
- data/rbi/lib/terminal-shop/models/order_get_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/order_get_response.rbi +0 -22
- data/rbi/lib/terminal-shop/models/order_list_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/product_get_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/product_list_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/product_variant.rbi +0 -28
- data/rbi/lib/terminal-shop/models/profile_me_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/subscription_delete_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/subscription_get_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/subscription_list_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/token_create_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/token_delete_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/token_get_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/token_get_response.rbi +0 -23
- data/rbi/lib/terminal-shop/models/token_list_params.rbi +0 -21
- data/rbi/lib/terminal-shop/models/view_init_params.rbi +0 -21
- data/rbi/lib/terminal-shop/transport/base_client.rbi +0 -208
- data/rbi/lib/terminal-shop/transport/pooled_net_requester.rbi +0 -64
- data/rbi/lib/terminal-shop/type/array_of.rbi +0 -82
- data/rbi/lib/terminal-shop/type/base_model.rbi +0 -194
- data/rbi/lib/terminal-shop/type/base_page.rbi +0 -38
- data/rbi/lib/terminal-shop/type/boolean_model.rbi +0 -41
- data/rbi/lib/terminal-shop/type/converter.rbi +0 -101
- data/rbi/lib/terminal-shop/type/enum.rbi +0 -58
- data/rbi/lib/terminal-shop/type/hash_of.rbi +0 -85
- data/rbi/lib/terminal-shop/type/request_parameters.rbi +0 -20
- data/rbi/lib/terminal-shop/type/union.rbi +0 -68
- data/rbi/lib/terminal-shop/type/unknown.rbi +0 -37
- data/rbi/lib/terminal-shop/type.rbi +0 -23
- data/rbi/lib/terminal-shop/util.rbi +0 -281
- data/sig/terminal-shop/errors.rbs +0 -99
- data/sig/terminal-shop/models/address_delete_params.rbs +0 -14
- data/sig/terminal-shop/models/address_get_params.rbs +0 -14
- data/sig/terminal-shop/models/address_list_params.rbs +0 -14
- data/sig/terminal-shop/models/app_delete_params.rbs +0 -14
- data/sig/terminal-shop/models/app_get_params.rbs +0 -14
- data/sig/terminal-shop/models/app_list_params.rbs +0 -14
- data/sig/terminal-shop/models/card_collect_params.rbs +0 -14
- data/sig/terminal-shop/models/card_delete_params.rbs +0 -14
- data/sig/terminal-shop/models/card_get_params.rbs +0 -14
- data/sig/terminal-shop/models/card_list_params.rbs +0 -14
- data/sig/terminal-shop/models/cart_clear_params.rbs +0 -14
- data/sig/terminal-shop/models/cart_convert_params.rbs +0 -14
- data/sig/terminal-shop/models/cart_get_params.rbs +0 -14
- data/sig/terminal-shop/models/order_get_params.rbs +0 -14
- data/sig/terminal-shop/models/order_list_params.rbs +0 -14
- data/sig/terminal-shop/models/product_get_params.rbs +0 -14
- data/sig/terminal-shop/models/product_list_params.rbs +0 -14
- data/sig/terminal-shop/models/product_variant.rbs +0 -17
- data/sig/terminal-shop/models/profile_me_params.rbs +0 -14
- data/sig/terminal-shop/models/subscription_delete_params.rbs +0 -14
- data/sig/terminal-shop/models/subscription_get_params.rbs +0 -14
- data/sig/terminal-shop/models/subscription_list_params.rbs +0 -14
- data/sig/terminal-shop/models/token_create_params.rbs +0 -14
- data/sig/terminal-shop/models/token_delete_params.rbs +0 -14
- data/sig/terminal-shop/models/token_get_params.rbs +0 -14
- data/sig/terminal-shop/models/token_list_params.rbs +0 -14
- data/sig/terminal-shop/models/view_init_params.rbs +0 -14
- data/sig/terminal-shop/transport/base_client.rbs +0 -110
- data/sig/terminal-shop/transport/pooled_net_requester.rbs +0 -39
- data/sig/terminal-shop/type/array_of.rbs +0 -36
- data/sig/terminal-shop/type/base_model.rbs +0 -73
- data/sig/terminal-shop/type/base_page.rbs +0 -22
- data/sig/terminal-shop/type/boolean_model.rbs +0 -18
- data/sig/terminal-shop/type/converter.rbs +0 -42
- data/sig/terminal-shop/type/enum.rbs +0 -22
- data/sig/terminal-shop/type/hash_of.rbs +0 -36
- data/sig/terminal-shop/type/request_parameters.rbs +0 -13
- data/sig/terminal-shop/type/union.rbs +0 -40
- data/sig/terminal-shop/type/unknown.rbs +0 -18
- data/sig/terminal-shop/type.rbs +0 -22
- data/sig/terminal-shop/util.rbs +0 -136
- /data/sig/{terminal-shop → terminal_shop}/resources/address.rbs +0 -0
- /data/sig/{terminal-shop → terminal_shop}/resources/app.rbs +0 -0
- /data/sig/{terminal-shop → terminal_shop}/resources/card.rbs +0 -0
- /data/sig/{terminal-shop → terminal_shop}/resources/cart.rbs +0 -0
- /data/sig/{terminal-shop → terminal_shop}/resources/email.rbs +0 -0
- /data/sig/{terminal-shop → terminal_shop}/resources/order.rbs +0 -0
- /data/sig/{terminal-shop → terminal_shop}/resources/product.rbs +0 -0
- /data/sig/{terminal-shop → terminal_shop}/resources/profile.rbs +0 -0
- /data/sig/{terminal-shop → terminal_shop}/resources/token.rbs +0 -0
- /data/sig/{terminal-shop → terminal_shop}/resources/view.rbs +0 -0
@@ -2,23 +2,20 @@
|
|
2
2
|
|
3
3
|
module TerminalShop
|
4
4
|
module Models
|
5
|
-
class ProfileAPI < TerminalShop::BaseModel
|
5
|
+
class ProfileAPI < TerminalShop::Internal::Type::BaseModel
|
6
6
|
# @!attribute user
|
7
7
|
# A Terminal shop user. (We have users, btw.)
|
8
8
|
#
|
9
9
|
# @return [TerminalShop::Models::ProfileAPI::User]
|
10
10
|
required :user, -> { TerminalShop::Models::ProfileAPI::User }
|
11
11
|
|
12
|
-
# @!
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
16
|
-
# #
|
17
|
-
# def initialize(user:, **) = super
|
18
|
-
|
19
|
-
# def initialize: (Hash | TerminalShop::BaseModel) -> void
|
12
|
+
# @!method initialize(user:)
|
13
|
+
# A Terminal shop user's profile. (We have users, btw.)
|
14
|
+
#
|
15
|
+
# @param user [TerminalShop::Models::ProfileAPI::User] A Terminal shop user. (We have users, btw.)
|
20
16
|
|
21
|
-
|
17
|
+
# @see TerminalShop::Models::ProfileAPI#user
|
18
|
+
class User < TerminalShop::Internal::Type::BaseModel
|
22
19
|
# @!attribute id
|
23
20
|
# Unique object identifier. The format and length of IDs may change over time.
|
24
21
|
#
|
@@ -49,18 +46,21 @@ module TerminalShop
|
|
49
46
|
# @return [String]
|
50
47
|
required :stripe_customer_id, String, api_name: :stripeCustomerID
|
51
48
|
|
52
|
-
# @!
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
57
|
-
#
|
58
|
-
#
|
59
|
-
#
|
60
|
-
#
|
61
|
-
#
|
62
|
-
|
63
|
-
#
|
49
|
+
# @!method initialize(id:, email:, fingerprint:, name:, stripe_customer_id:)
|
50
|
+
# Some parameter documentations has been truncated, see
|
51
|
+
# {TerminalShop::Models::ProfileAPI::User} for more details.
|
52
|
+
#
|
53
|
+
# A Terminal shop user. (We have users, btw.)
|
54
|
+
#
|
55
|
+
# @param id [String] Unique object identifier. ...
|
56
|
+
#
|
57
|
+
# @param email [String, nil] Email address of the user.
|
58
|
+
#
|
59
|
+
# @param fingerprint [String, nil] The user's fingerprint, derived from their public SSH key.
|
60
|
+
#
|
61
|
+
# @param name [String, nil] Name of the user.
|
62
|
+
#
|
63
|
+
# @param stripe_customer_id [String] Stripe customer ID of the user.
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
# @see TerminalShop::Resources::Profile#me
|
6
|
+
class ProfileMeParams < TerminalShop::Internal::Type::BaseModel
|
7
|
+
extend TerminalShop::Internal::Type::RequestParameters::Converter
|
8
|
+
include TerminalShop::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!method initialize(request_options: {})
|
11
|
+
# @param request_options [TerminalShop::RequestOptions, Hash{Symbol=>Object}]
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -2,19 +2,16 @@
|
|
2
2
|
|
3
3
|
module TerminalShop
|
4
4
|
module Models
|
5
|
-
|
5
|
+
# @see TerminalShop::Resources::Profile#me
|
6
|
+
class ProfileMeResponse < TerminalShop::Internal::Type::BaseModel
|
6
7
|
# @!attribute data
|
7
8
|
# A Terminal shop user's profile. (We have users, btw.)
|
8
9
|
#
|
9
10
|
# @return [TerminalShop::Models::ProfileAPI]
|
10
11
|
required :data, -> { TerminalShop::Models::ProfileAPI }
|
11
12
|
|
12
|
-
# @!
|
13
|
-
#
|
14
|
-
# #
|
15
|
-
# def initialize(data:, **) = super
|
16
|
-
|
17
|
-
# def initialize: (Hash | TerminalShop::BaseModel) -> void
|
13
|
+
# @!method initialize(data:)
|
14
|
+
# @param data [TerminalShop::Models::ProfileAPI] A Terminal shop user's profile. (We have users, btw.)
|
18
15
|
end
|
19
16
|
end
|
20
17
|
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
# @see TerminalShop::Resources::Profile#update
|
6
|
+
class ProfileUpdateParams < TerminalShop::Internal::Type::BaseModel
|
7
|
+
extend TerminalShop::Internal::Type::RequestParameters::Converter
|
8
|
+
include TerminalShop::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!attribute email
|
11
|
+
#
|
12
|
+
# @return [String]
|
13
|
+
required :email, String
|
14
|
+
|
15
|
+
# @!attribute name
|
16
|
+
#
|
17
|
+
# @return [String]
|
18
|
+
required :name, String
|
19
|
+
|
20
|
+
# @!method initialize(email:, name:, request_options: {})
|
21
|
+
# @param email [String]
|
22
|
+
# @param name [String]
|
23
|
+
# @param request_options [TerminalShop::RequestOptions, Hash{Symbol=>Object}]
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -2,19 +2,16 @@
|
|
2
2
|
|
3
3
|
module TerminalShop
|
4
4
|
module Models
|
5
|
-
|
5
|
+
# @see TerminalShop::Resources::Profile#update
|
6
|
+
class ProfileUpdateResponse < TerminalShop::Internal::Type::BaseModel
|
6
7
|
# @!attribute data
|
7
8
|
# A Terminal shop user's profile. (We have users, btw.)
|
8
9
|
#
|
9
10
|
# @return [TerminalShop::Models::ProfileAPI]
|
10
11
|
required :data, -> { TerminalShop::Models::ProfileAPI }
|
11
12
|
|
12
|
-
# @!
|
13
|
-
#
|
14
|
-
# #
|
15
|
-
# def initialize(data:, **) = super
|
16
|
-
|
17
|
-
# def initialize: (Hash | TerminalShop::BaseModel) -> void
|
13
|
+
# @!method initialize(data:)
|
14
|
+
# @param data [TerminalShop::Models::ProfileAPI] A Terminal shop user's profile. (We have users, btw.)
|
18
15
|
end
|
19
16
|
end
|
20
17
|
end
|
@@ -4,16 +4,14 @@ module TerminalShop
|
|
4
4
|
module Models
|
5
5
|
# A Terminal shop user's region.
|
6
6
|
module Region
|
7
|
-
extend TerminalShop::Enum
|
7
|
+
extend TerminalShop::Internal::Type::Enum
|
8
8
|
|
9
9
|
EU = :eu
|
10
10
|
NA = :na
|
11
|
+
GLOBAL = :global
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
# @!parse
|
15
|
-
# # @return [Array<Symbol>]
|
16
|
-
# def self.values; end
|
13
|
+
# @!method self.values
|
14
|
+
# @return [Array<Symbol>]
|
17
15
|
end
|
18
16
|
end
|
19
17
|
end
|
@@ -0,0 +1,125 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
class SubscriptionAPI < TerminalShop::Internal::Type::BaseModel
|
6
|
+
# @!attribute id
|
7
|
+
# Unique object identifier. The format and length of IDs may change over time.
|
8
|
+
#
|
9
|
+
# @return [String]
|
10
|
+
required :id, String
|
11
|
+
|
12
|
+
# @!attribute address_id
|
13
|
+
# ID of the shipping address used for the subscription.
|
14
|
+
#
|
15
|
+
# @return [String]
|
16
|
+
required :address_id, String, api_name: :addressID
|
17
|
+
|
18
|
+
# @!attribute card_id
|
19
|
+
# ID of the card used for the subscription.
|
20
|
+
#
|
21
|
+
# @return [String]
|
22
|
+
required :card_id, String, api_name: :cardID
|
23
|
+
|
24
|
+
# @!attribute created
|
25
|
+
# Date the subscription was created.
|
26
|
+
#
|
27
|
+
# @return [String]
|
28
|
+
required :created, String
|
29
|
+
|
30
|
+
# @!attribute price
|
31
|
+
# Price of the subscription in cents (USD).
|
32
|
+
#
|
33
|
+
# @return [Integer]
|
34
|
+
required :price, Integer
|
35
|
+
|
36
|
+
# @!attribute product_variant_id
|
37
|
+
# ID of the product variant being subscribed to.
|
38
|
+
#
|
39
|
+
# @return [String]
|
40
|
+
required :product_variant_id, String, api_name: :productVariantID
|
41
|
+
|
42
|
+
# @!attribute quantity
|
43
|
+
# Quantity of the subscription.
|
44
|
+
#
|
45
|
+
# @return [Integer]
|
46
|
+
required :quantity, Integer
|
47
|
+
|
48
|
+
# @!attribute next_
|
49
|
+
# Next shipment and billing date for the subscription.
|
50
|
+
#
|
51
|
+
# @return [String, nil]
|
52
|
+
optional :next_, String, api_name: :next
|
53
|
+
|
54
|
+
# @!attribute schedule
|
55
|
+
# Schedule of the subscription.
|
56
|
+
#
|
57
|
+
# @return [TerminalShop::Models::SubscriptionAPI::Schedule::Fixed, TerminalShop::Models::SubscriptionAPI::Schedule::Weekly, nil]
|
58
|
+
optional :schedule, union: -> { TerminalShop::Models::SubscriptionAPI::Schedule }
|
59
|
+
|
60
|
+
# @!method initialize(id:, address_id:, card_id:, created:, price:, product_variant_id:, quantity:, next_: nil, schedule: nil)
|
61
|
+
# Some parameter documentations has been truncated, see
|
62
|
+
# {TerminalShop::Models::SubscriptionAPI} for more details.
|
63
|
+
#
|
64
|
+
# Subscription to a Terminal shop product.
|
65
|
+
#
|
66
|
+
# @param id [String] Unique object identifier. ...
|
67
|
+
#
|
68
|
+
# @param address_id [String] ID of the shipping address used for the subscription.
|
69
|
+
#
|
70
|
+
# @param card_id [String] ID of the card used for the subscription.
|
71
|
+
#
|
72
|
+
# @param created [String] Date the subscription was created.
|
73
|
+
#
|
74
|
+
# @param price [Integer] Price of the subscription in cents (USD).
|
75
|
+
#
|
76
|
+
# @param product_variant_id [String] ID of the product variant being subscribed to.
|
77
|
+
#
|
78
|
+
# @param quantity [Integer] Quantity of the subscription.
|
79
|
+
#
|
80
|
+
# @param next_ [String] Next shipment and billing date for the subscription.
|
81
|
+
#
|
82
|
+
# @param schedule [TerminalShop::Models::SubscriptionAPI::Schedule::Fixed, TerminalShop::Models::SubscriptionAPI::Schedule::Weekly] Schedule of the subscription.
|
83
|
+
|
84
|
+
# Schedule of the subscription.
|
85
|
+
#
|
86
|
+
# @see TerminalShop::Models::SubscriptionAPI#schedule
|
87
|
+
module Schedule
|
88
|
+
extend TerminalShop::Internal::Type::Union
|
89
|
+
|
90
|
+
variant -> { TerminalShop::Models::SubscriptionAPI::Schedule::Fixed }
|
91
|
+
|
92
|
+
variant -> { TerminalShop::Models::SubscriptionAPI::Schedule::Weekly }
|
93
|
+
|
94
|
+
class Fixed < TerminalShop::Internal::Type::BaseModel
|
95
|
+
# @!attribute type
|
96
|
+
#
|
97
|
+
# @return [Symbol, :fixed]
|
98
|
+
required :type, const: :fixed
|
99
|
+
|
100
|
+
# @!method initialize(type: :fixed)
|
101
|
+
# @param type [Symbol, :fixed]
|
102
|
+
end
|
103
|
+
|
104
|
+
class Weekly < TerminalShop::Internal::Type::BaseModel
|
105
|
+
# @!attribute interval
|
106
|
+
#
|
107
|
+
# @return [Integer]
|
108
|
+
required :interval, Integer
|
109
|
+
|
110
|
+
# @!attribute type
|
111
|
+
#
|
112
|
+
# @return [Symbol, :weekly]
|
113
|
+
required :type, const: :weekly
|
114
|
+
|
115
|
+
# @!method initialize(interval:, type: :weekly)
|
116
|
+
# @param interval [Integer]
|
117
|
+
# @param type [Symbol, :weekly]
|
118
|
+
end
|
119
|
+
|
120
|
+
# @!method self.variants
|
121
|
+
# @return [Array(TerminalShop::Models::SubscriptionAPI::Schedule::Fixed, TerminalShop::Models::SubscriptionAPI::Schedule::Weekly)]
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
# @see TerminalShop::Resources::Subscription#create
|
6
|
+
class SubscriptionCreateParams < TerminalShop::Models::SubscriptionAPI
|
7
|
+
extend TerminalShop::Internal::Type::RequestParameters::Converter
|
8
|
+
include TerminalShop::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!method initialize(request_options: {})
|
11
|
+
# @param request_options [TerminalShop::RequestOptions, Hash{Symbol=>Object}]
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
# @see TerminalShop::Resources::Subscription#create
|
6
|
+
class SubscriptionCreateResponse < TerminalShop::Internal::Type::BaseModel
|
7
|
+
# @!attribute data
|
8
|
+
#
|
9
|
+
# @return [Symbol, :ok]
|
10
|
+
required :data, const: :ok
|
11
|
+
|
12
|
+
# @!method initialize(data: :ok)
|
13
|
+
# @param data [Symbol, :ok]
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
# @see TerminalShop::Resources::Subscription#delete
|
6
|
+
class SubscriptionDeleteParams < TerminalShop::Internal::Type::BaseModel
|
7
|
+
extend TerminalShop::Internal::Type::RequestParameters::Converter
|
8
|
+
include TerminalShop::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!method initialize(request_options: {})
|
11
|
+
# @param request_options [TerminalShop::RequestOptions, Hash{Symbol=>Object}]
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
# @see TerminalShop::Resources::Subscription#delete
|
6
|
+
class SubscriptionDeleteResponse < TerminalShop::Internal::Type::BaseModel
|
7
|
+
# @!attribute data
|
8
|
+
#
|
9
|
+
# @return [Symbol, :ok]
|
10
|
+
required :data, const: :ok
|
11
|
+
|
12
|
+
# @!method initialize(data: :ok)
|
13
|
+
# @param data [Symbol, :ok]
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
# @see TerminalShop::Resources::Subscription#get
|
6
|
+
class SubscriptionGetParams < TerminalShop::Internal::Type::BaseModel
|
7
|
+
extend TerminalShop::Internal::Type::RequestParameters::Converter
|
8
|
+
include TerminalShop::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!method initialize(request_options: {})
|
11
|
+
# @param request_options [TerminalShop::RequestOptions, Hash{Symbol=>Object}]
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -2,19 +2,16 @@
|
|
2
2
|
|
3
3
|
module TerminalShop
|
4
4
|
module Models
|
5
|
-
|
5
|
+
# @see TerminalShop::Resources::Subscription#get
|
6
|
+
class SubscriptionGetResponse < TerminalShop::Internal::Type::BaseModel
|
6
7
|
# @!attribute data
|
7
8
|
# Subscription to a Terminal shop product.
|
8
9
|
#
|
9
10
|
# @return [TerminalShop::Models::SubscriptionAPI]
|
10
11
|
required :data, -> { TerminalShop::Models::SubscriptionAPI }
|
11
12
|
|
12
|
-
# @!
|
13
|
-
#
|
14
|
-
# #
|
15
|
-
# def initialize(data:, **) = super
|
16
|
-
|
17
|
-
# def initialize: (Hash | TerminalShop::BaseModel) -> void
|
13
|
+
# @!method initialize(data:)
|
14
|
+
# @param data [TerminalShop::Models::SubscriptionAPI] Subscription to a Terminal shop product.
|
18
15
|
end
|
19
16
|
end
|
20
17
|
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
# @see TerminalShop::Resources::Subscription#list
|
6
|
+
class SubscriptionListParams < TerminalShop::Internal::Type::BaseModel
|
7
|
+
extend TerminalShop::Internal::Type::RequestParameters::Converter
|
8
|
+
include TerminalShop::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!method initialize(request_options: {})
|
11
|
+
# @param request_options [TerminalShop::RequestOptions, Hash{Symbol=>Object}]
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
# @see TerminalShop::Resources::Subscription#list
|
6
|
+
class SubscriptionListResponse < TerminalShop::Internal::Type::BaseModel
|
7
|
+
# @!attribute data
|
8
|
+
# List of subscriptions.
|
9
|
+
#
|
10
|
+
# @return [Array<TerminalShop::Models::SubscriptionAPI>]
|
11
|
+
required :data, -> { TerminalShop::Internal::Type::ArrayOf[TerminalShop::Models::SubscriptionAPI] }
|
12
|
+
|
13
|
+
# @!method initialize(data:)
|
14
|
+
# @param data [Array<TerminalShop::Models::SubscriptionAPI>] List of subscriptions.
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
# @see TerminalShop::Resources::Subscription#update
|
6
|
+
class SubscriptionUpdateParams < TerminalShop::Internal::Type::BaseModel
|
7
|
+
extend TerminalShop::Internal::Type::RequestParameters::Converter
|
8
|
+
include TerminalShop::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!attribute address_id
|
11
|
+
# New shipping address ID for the subscription.
|
12
|
+
#
|
13
|
+
# @return [String, nil]
|
14
|
+
optional :address_id, String, api_name: :addressID
|
15
|
+
|
16
|
+
# @!attribute card_id
|
17
|
+
# New payment method ID for the subscription.
|
18
|
+
#
|
19
|
+
# @return [String, nil]
|
20
|
+
optional :card_id, String, api_name: :cardID
|
21
|
+
|
22
|
+
# @!attribute schedule
|
23
|
+
# New schedule for the subscription.
|
24
|
+
#
|
25
|
+
# @return [TerminalShop::Models::SubscriptionUpdateParams::Schedule::Fixed, TerminalShop::Models::SubscriptionUpdateParams::Schedule::Weekly, nil]
|
26
|
+
optional :schedule, union: -> { TerminalShop::Models::SubscriptionUpdateParams::Schedule }
|
27
|
+
|
28
|
+
# @!method initialize(address_id: nil, card_id: nil, schedule: nil, request_options: {})
|
29
|
+
# @param address_id [String] New shipping address ID for the subscription.
|
30
|
+
#
|
31
|
+
# @param card_id [String] New payment method ID for the subscription.
|
32
|
+
#
|
33
|
+
# @param schedule [TerminalShop::Models::SubscriptionUpdateParams::Schedule::Fixed, TerminalShop::Models::SubscriptionUpdateParams::Schedule::Weekly] New schedule for the subscription.
|
34
|
+
#
|
35
|
+
# @param request_options [TerminalShop::RequestOptions, Hash{Symbol=>Object}]
|
36
|
+
|
37
|
+
# New schedule for the subscription.
|
38
|
+
module Schedule
|
39
|
+
extend TerminalShop::Internal::Type::Union
|
40
|
+
|
41
|
+
variant -> { TerminalShop::Models::SubscriptionUpdateParams::Schedule::Fixed }
|
42
|
+
|
43
|
+
variant -> { TerminalShop::Models::SubscriptionUpdateParams::Schedule::Weekly }
|
44
|
+
|
45
|
+
class Fixed < TerminalShop::Internal::Type::BaseModel
|
46
|
+
# @!attribute type
|
47
|
+
#
|
48
|
+
# @return [Symbol, :fixed]
|
49
|
+
required :type, const: :fixed
|
50
|
+
|
51
|
+
# @!method initialize(type: :fixed)
|
52
|
+
# @param type [Symbol, :fixed]
|
53
|
+
end
|
54
|
+
|
55
|
+
class Weekly < TerminalShop::Internal::Type::BaseModel
|
56
|
+
# @!attribute interval
|
57
|
+
#
|
58
|
+
# @return [Integer]
|
59
|
+
required :interval, Integer
|
60
|
+
|
61
|
+
# @!attribute type
|
62
|
+
#
|
63
|
+
# @return [Symbol, :weekly]
|
64
|
+
required :type, const: :weekly
|
65
|
+
|
66
|
+
# @!method initialize(interval:, type: :weekly)
|
67
|
+
# @param interval [Integer]
|
68
|
+
# @param type [Symbol, :weekly]
|
69
|
+
end
|
70
|
+
|
71
|
+
# @!method self.variants
|
72
|
+
# @return [Array(TerminalShop::Models::SubscriptionUpdateParams::Schedule::Fixed, TerminalShop::Models::SubscriptionUpdateParams::Schedule::Weekly)]
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
# @see TerminalShop::Resources::Subscription#update
|
6
|
+
class SubscriptionUpdateResponse < TerminalShop::Internal::Type::BaseModel
|
7
|
+
# @!attribute data
|
8
|
+
# Subscription to a Terminal shop product.
|
9
|
+
#
|
10
|
+
# @return [TerminalShop::Models::SubscriptionAPI]
|
11
|
+
required :data, -> { TerminalShop::Models::SubscriptionAPI }
|
12
|
+
|
13
|
+
# @!method initialize(data:)
|
14
|
+
# @param data [TerminalShop::Models::SubscriptionAPI] Subscription to a Terminal shop product.
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
class TokenAPI < TerminalShop::Internal::Type::BaseModel
|
6
|
+
# @!attribute id
|
7
|
+
# Unique object identifier. The format and length of IDs may change over time.
|
8
|
+
#
|
9
|
+
# @return [String]
|
10
|
+
required :id, String
|
11
|
+
|
12
|
+
# @!attribute token
|
13
|
+
# Personal access token (obfuscated).
|
14
|
+
#
|
15
|
+
# @return [String]
|
16
|
+
required :token, String
|
17
|
+
|
18
|
+
# @!attribute created
|
19
|
+
# The created time for the token.
|
20
|
+
#
|
21
|
+
# @return [String]
|
22
|
+
required :created, String
|
23
|
+
|
24
|
+
# @!method initialize(id:, token:, created:)
|
25
|
+
# Some parameter documentations has been truncated, see
|
26
|
+
# {TerminalShop::Models::TokenAPI} for more details.
|
27
|
+
#
|
28
|
+
# A personal access token used to access the Terminal API. If you leak this,
|
29
|
+
# expect large sums of coffee to be ordered on your credit card.
|
30
|
+
#
|
31
|
+
# @param id [String] Unique object identifier. ...
|
32
|
+
#
|
33
|
+
# @param token [String] Personal access token (obfuscated).
|
34
|
+
#
|
35
|
+
# @param created [String] The created time for the token.
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
# @see TerminalShop::Resources::Token#create
|
6
|
+
class TokenCreateParams < TerminalShop::Internal::Type::BaseModel
|
7
|
+
extend TerminalShop::Internal::Type::RequestParameters::Converter
|
8
|
+
include TerminalShop::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!method initialize(request_options: {})
|
11
|
+
# @param request_options [TerminalShop::RequestOptions, Hash{Symbol=>Object}]
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
# @see TerminalShop::Resources::Token#create
|
6
|
+
class TokenCreateResponse < TerminalShop::Internal::Type::BaseModel
|
7
|
+
# @!attribute data
|
8
|
+
#
|
9
|
+
# @return [TerminalShop::Models::TokenCreateResponse::Data]
|
10
|
+
required :data, -> { TerminalShop::Models::TokenCreateResponse::Data }
|
11
|
+
|
12
|
+
# @!method initialize(data:)
|
13
|
+
# @param data [TerminalShop::Models::TokenCreateResponse::Data]
|
14
|
+
|
15
|
+
# @see TerminalShop::Models::TokenCreateResponse#data
|
16
|
+
class Data < TerminalShop::Internal::Type::BaseModel
|
17
|
+
# @!attribute id
|
18
|
+
# Personal token ID.
|
19
|
+
#
|
20
|
+
# @return [String]
|
21
|
+
required :id, String
|
22
|
+
|
23
|
+
# @!attribute token
|
24
|
+
# Personal access token. Include this in the Authorization header
|
25
|
+
# (`Bearer <token>`) when accessing the Terminal API.
|
26
|
+
#
|
27
|
+
# @return [String]
|
28
|
+
required :token, String
|
29
|
+
|
30
|
+
# @!method initialize(id:, token:)
|
31
|
+
# Some parameter documentations has been truncated, see
|
32
|
+
# {TerminalShop::Models::TokenCreateResponse::Data} for more details.
|
33
|
+
#
|
34
|
+
# @param id [String] Personal token ID.
|
35
|
+
#
|
36
|
+
# @param token [String] Personal access token. Include this in the Authorization header (`Bearer <token>
|
37
|
+
# ...
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
# @see TerminalShop::Resources::Token#delete
|
6
|
+
class TokenDeleteParams < TerminalShop::Internal::Type::BaseModel
|
7
|
+
extend TerminalShop::Internal::Type::RequestParameters::Converter
|
8
|
+
include TerminalShop::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!method initialize(request_options: {})
|
11
|
+
# @param request_options [TerminalShop::RequestOptions, Hash{Symbol=>Object}]
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module TerminalShop
|
4
|
+
module Models
|
5
|
+
# @see TerminalShop::Resources::Token#delete
|
6
|
+
class TokenDeleteResponse < TerminalShop::Internal::Type::BaseModel
|
7
|
+
# @!attribute data
|
8
|
+
#
|
9
|
+
# @return [Symbol, :ok]
|
10
|
+
required :data, const: :ok
|
11
|
+
|
12
|
+
# @!method initialize(data: :ok)
|
13
|
+
# @param data [Symbol, :ok]
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|