square.rb 43.0.0.20250618 → 44.0.0.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/LICENSE +21 -10
- data/README.md +158 -139
- data/lib/square/apple_pay/client.rb +43 -0
- data/lib/square/apple_pay/types/register_domain_request.rb +11 -0
- data/lib/square/bank_accounts/client.rb +69 -0
- data/lib/square/bank_accounts/types/get_bank_accounts_request.rb +11 -0
- data/lib/square/bank_accounts/types/get_by_v_1_id_bank_accounts_request.rb +11 -0
- data/lib/square/bank_accounts/types/list_bank_accounts_request.rb +13 -0
- data/lib/square/bookings/client.rb +255 -0
- data/lib/square/bookings/custom_attribute_definitions/client.rb +137 -0
- data/lib/square/bookings/custom_attribute_definitions/types/create_booking_custom_attribute_definition_request.rb +16 -0
- data/lib/square/bookings/custom_attribute_definitions/types/delete_custom_attribute_definitions_request.rb +13 -0
- data/lib/square/bookings/custom_attribute_definitions/types/get_custom_attribute_definitions_request.rb +14 -0
- data/lib/square/bookings/custom_attribute_definitions/types/list_custom_attribute_definitions_request.rb +14 -0
- data/lib/square/bookings/custom_attribute_definitions/types/update_booking_custom_attribute_definition_request.rb +17 -0
- data/lib/square/bookings/custom_attributes/client.rb +161 -0
- data/lib/square/bookings/custom_attributes/types/bulk_delete_booking_custom_attributes_request.rb +15 -0
- data/lib/square/bookings/custom_attributes/types/bulk_upsert_booking_custom_attributes_request.rb +15 -0
- data/lib/square/bookings/custom_attributes/types/delete_custom_attributes_request.rb +14 -0
- data/lib/square/bookings/custom_attributes/types/get_custom_attributes_request.rb +16 -0
- data/lib/square/bookings/custom_attributes/types/list_custom_attributes_request.rb +16 -0
- data/lib/square/bookings/custom_attributes/types/upsert_booking_custom_attribute_request.rb +16 -0
- data/lib/square/bookings/location_profiles/client.rb +36 -0
- data/lib/square/bookings/location_profiles/types/list_location_profiles_request.rb +14 -0
- data/lib/square/bookings/team_member_profiles/client.rb +53 -0
- data/lib/square/bookings/team_member_profiles/types/get_team_member_profiles_request.rb +13 -0
- data/lib/square/bookings/team_member_profiles/types/list_team_member_profiles_request.rb +16 -0
- data/lib/square/bookings/types/bulk_retrieve_bookings_request.rb +11 -0
- data/lib/square/bookings/types/bulk_retrieve_team_member_booking_profiles_request.rb +11 -0
- data/lib/square/bookings/types/cancel_booking_request.rb +13 -0
- data/lib/square/bookings/types/create_booking_request.rb +12 -0
- data/lib/square/bookings/types/get_bookings_request.rb +11 -0
- data/lib/square/bookings/types/list_bookings_request.rb +17 -0
- data/lib/square/bookings/types/retrieve_location_booking_profile_request.rb +11 -0
- data/lib/square/bookings/types/search_availability_request.rb +11 -0
- data/lib/square/bookings/types/update_booking_request.rb +13 -0
- data/lib/square/cards/client.rb +86 -0
- data/lib/square/cards/types/create_card_request.rb +14 -0
- data/lib/square/cards/types/disable_cards_request.rb +11 -0
- data/lib/square/cards/types/get_cards_request.rb +11 -0
- data/lib/square/cards/types/list_cards_request.rb +15 -0
- data/lib/square/cash_drawers/client.rb +17 -0
- data/lib/square/cash_drawers/shifts/client.rb +82 -0
- data/lib/square/cash_drawers/shifts/types/get_shifts_request.rb +14 -0
- data/lib/square/cash_drawers/shifts/types/list_events_shifts_request.rb +16 -0
- data/lib/square/cash_drawers/shifts/types/list_shifts_request.rb +18 -0
- data/lib/square/catalog/client.rb +247 -0
- data/lib/square/catalog/images/client.rb +78 -0
- data/lib/square/catalog/images/types/create_images_request.rb +11 -0
- data/lib/square/catalog/images/types/update_images_request.rb +13 -0
- data/lib/square/catalog/object/client.rb +90 -0
- data/lib/square/catalog/object/types/delete_object_request.rb +13 -0
- data/lib/square/catalog/object/types/get_object_request.rb +16 -0
- data/lib/square/catalog/object/types/upsert_catalog_object_request.rb +14 -0
- data/lib/square/catalog/types/batch_delete_catalog_objects_request.rb +11 -0
- data/lib/square/catalog/types/batch_get_catalog_objects_request.rb +15 -0
- data/lib/square/catalog/types/batch_upsert_catalog_objects_request.rb +14 -0
- data/lib/square/catalog/types/list_catalog_request.rb +13 -0
- data/lib/square/catalog/types/search_catalog_items_request.rb +26 -0
- data/lib/square/catalog/types/search_catalog_objects_request.rb +20 -0
- data/lib/square/catalog/types/update_item_modifier_lists_request.rb +13 -0
- data/lib/square/catalog/types/update_item_taxes_request.rb +13 -0
- data/lib/square/checkout/client.rb +89 -0
- data/lib/square/checkout/payment_links/client.rb +110 -0
- data/lib/square/checkout/payment_links/types/create_payment_link_request.rb +19 -0
- data/lib/square/checkout/payment_links/types/delete_payment_links_request.rb +13 -0
- data/lib/square/checkout/payment_links/types/get_payment_links_request.rb +13 -0
- data/lib/square/checkout/payment_links/types/list_payment_links_request.rb +14 -0
- data/lib/square/checkout/payment_links/types/update_payment_link_request.rb +14 -0
- data/lib/square/checkout/types/retrieve_location_settings_request.rb +11 -0
- data/lib/square/checkout/types/update_location_settings_request.rb +12 -0
- data/lib/square/checkout/types/update_merchant_settings_request.rb +11 -0
- data/lib/square/client.rb +92 -231
- data/lib/square/customers/cards/client.rb +55 -0
- data/lib/square/customers/cards/types/create_customer_card_request.rb +17 -0
- data/lib/square/customers/cards/types/delete_cards_request.rb +14 -0
- data/lib/square/customers/client.rb +268 -0
- data/lib/square/customers/custom_attribute_definitions/client.rb +174 -0
- data/lib/square/customers/custom_attribute_definitions/types/batch_upsert_customer_custom_attributes_request.rb +15 -0
- data/lib/square/customers/custom_attribute_definitions/types/create_customer_custom_attribute_definition_request.rb +16 -0
- data/lib/square/customers/custom_attribute_definitions/types/delete_custom_attribute_definitions_request.rb +13 -0
- data/lib/square/customers/custom_attribute_definitions/types/get_custom_attribute_definitions_request.rb +14 -0
- data/lib/square/customers/custom_attribute_definitions/types/list_custom_attribute_definitions_request.rb +14 -0
- data/lib/square/customers/custom_attribute_definitions/types/update_customer_custom_attribute_definition_request.rb +17 -0
- data/lib/square/customers/custom_attributes/client.rb +121 -0
- data/lib/square/customers/custom_attributes/types/delete_custom_attributes_request.rb +14 -0
- data/lib/square/customers/custom_attributes/types/get_custom_attributes_request.rb +16 -0
- data/lib/square/customers/custom_attributes/types/list_custom_attributes_request.rb +16 -0
- data/lib/square/customers/custom_attributes/types/upsert_customer_custom_attribute_request.rb +16 -0
- data/lib/square/customers/groups/client.rb +150 -0
- data/lib/square/customers/groups/types/add_groups_request.rb +14 -0
- data/lib/square/customers/groups/types/create_customer_group_request.rb +14 -0
- data/lib/square/customers/groups/types/delete_groups_request.rb +13 -0
- data/lib/square/customers/groups/types/get_groups_request.rb +13 -0
- data/lib/square/customers/groups/types/list_groups_request.rb +14 -0
- data/lib/square/customers/groups/types/remove_groups_request.rb +14 -0
- data/lib/square/customers/groups/types/update_customer_group_request.rb +14 -0
- data/lib/square/customers/segments/client.rb +53 -0
- data/lib/square/customers/segments/types/get_segments_request.rb +13 -0
- data/lib/square/customers/segments/types/list_segments_request.rb +14 -0
- data/lib/square/customers/types/bulk_create_customers_request.rb +13 -0
- data/lib/square/customers/types/bulk_delete_customers_request.rb +11 -0
- data/lib/square/customers/types/bulk_retrieve_customers_request.rb +11 -0
- data/lib/square/customers/types/bulk_update_customers_request.rb +13 -0
- data/lib/square/customers/types/create_customer_request.rb +22 -0
- data/lib/square/customers/types/delete_customers_request.rb +12 -0
- data/lib/square/customers/types/get_customers_request.rb +11 -0
- data/lib/square/customers/types/list_customers_request.rb +15 -0
- data/lib/square/customers/types/search_customers_request.rb +14 -0
- data/lib/square/customers/types/update_customer_request.rb +23 -0
- data/lib/square/devices/client.rb +57 -0
- data/lib/square/devices/codes/client.rb +72 -0
- data/lib/square/devices/codes/types/create_device_code_request.rb +14 -0
- data/lib/square/devices/codes/types/get_codes_request.rb +13 -0
- data/lib/square/devices/codes/types/list_codes_request.rb +16 -0
- data/lib/square/devices/types/get_devices_request.rb +11 -0
- data/lib/square/devices/types/list_devices_request.rb +14 -0
- data/lib/square/disputes/client.rb +149 -0
- data/lib/square/disputes/evidence/client.rb +73 -0
- data/lib/square/disputes/evidence/types/delete_evidence_request.rb +14 -0
- data/lib/square/disputes/evidence/types/get_evidence_request.rb +14 -0
- data/lib/square/disputes/evidence/types/list_evidence_request.rb +14 -0
- data/lib/square/disputes/types/accept_disputes_request.rb +11 -0
- data/lib/square/disputes/types/create_dispute_evidence_text_request.rb +14 -0
- data/lib/square/disputes/types/create_evidence_file_disputes_request.rb +11 -0
- data/lib/square/disputes/types/get_disputes_request.rb +11 -0
- data/lib/square/disputes/types/list_disputes_request.rb +13 -0
- data/lib/square/disputes/types/submit_evidence_disputes_request.rb +11 -0
- data/lib/square/employees/client.rb +47 -0
- data/lib/square/employees/types/get_employees_request.rb +11 -0
- data/lib/square/employees/types/list_employees_request.rb +14 -0
- data/lib/square/environment.rb +8 -0
- data/lib/square/events/client.rb +88 -0
- data/lib/square/events/types/list_event_types_request.rb +11 -0
- data/lib/square/events/types/search_events_request.rb +13 -0
- data/lib/square/file_param.rb +83 -0
- data/lib/square/gift_cards/activities/client.rb +59 -0
- data/lib/square/gift_cards/activities/types/create_gift_card_activity_request.rb +14 -0
- data/lib/square/gift_cards/activities/types/list_activities_request.rb +20 -0
- data/lib/square/gift_cards/client.rb +155 -0
- data/lib/square/gift_cards/types/create_gift_card_request.rb +13 -0
- data/lib/square/gift_cards/types/get_gift_card_from_gan_request.rb +11 -0
- data/lib/square/gift_cards/types/get_gift_card_from_nonce_request.rb +11 -0
- data/lib/square/gift_cards/types/get_gift_cards_request.rb +11 -0
- data/lib/square/gift_cards/types/link_customer_to_gift_card_request.rb +12 -0
- data/lib/square/gift_cards/types/list_gift_cards_request.rb +15 -0
- data/lib/square/gift_cards/types/unlink_customer_from_gift_card_request.rb +12 -0
- data/lib/square/internal/errors/constraint_error.rb +10 -0
- data/lib/square/internal/errors/type_error.rb +10 -0
- data/lib/square/internal/http/base_request.rb +31 -0
- data/lib/square/internal/http/raw_client.rb +105 -0
- data/lib/square/internal/json/request.rb +38 -0
- data/lib/square/internal/json/serializable.rb +25 -0
- data/lib/square/internal/multipart/multipart_encoder.rb +141 -0
- data/lib/square/internal/multipart/multipart_form_data.rb +78 -0
- data/lib/square/internal/multipart/multipart_form_data_part.rb +51 -0
- data/lib/square/internal/multipart/multipart_request.rb +37 -0
- data/lib/square/internal/types/array.rb +47 -0
- data/lib/square/internal/types/boolean.rb +34 -0
- data/lib/square/internal/types/enum.rb +48 -0
- data/lib/square/internal/types/hash.rb +36 -0
- data/lib/square/internal/types/model/field.rb +28 -0
- data/lib/square/internal/types/model.rb +198 -0
- data/lib/square/internal/types/type.rb +35 -0
- data/lib/square/internal/types/union.rb +80 -0
- data/lib/square/internal/types/unknown.rb +15 -0
- data/lib/square/internal/types/utils.rb +100 -0
- data/lib/square/inventory/client.rb +293 -0
- data/lib/square/inventory/types/changes_inventory_request.rb +13 -0
- data/lib/square/inventory/types/deprecated_get_adjustment_inventory_request.rb +11 -0
- data/lib/square/inventory/types/deprecated_get_physical_count_inventory_request.rb +11 -0
- data/lib/square/inventory/types/get_adjustment_inventory_request.rb +11 -0
- data/lib/square/inventory/types/get_inventory_request.rb +13 -0
- data/lib/square/inventory/types/get_physical_count_inventory_request.rb +11 -0
- data/lib/square/inventory/types/get_transfer_inventory_request.rb +11 -0
- data/lib/square/invoices/client.rb +255 -0
- data/lib/square/invoices/types/cancel_invoice_request.rb +12 -0
- data/lib/square/invoices/types/create_invoice_attachment_request.rb +11 -0
- data/lib/square/invoices/types/create_invoice_request.rb +12 -0
- data/lib/square/invoices/types/delete_invoice_attachment_request.rb +12 -0
- data/lib/square/invoices/types/delete_invoices_request.rb +12 -0
- data/lib/square/invoices/types/get_invoices_request.rb +11 -0
- data/lib/square/invoices/types/list_invoices_request.rb +13 -0
- data/lib/square/invoices/types/publish_invoice_request.rb +13 -0
- data/lib/square/invoices/types/search_invoices_request.rb +13 -0
- data/lib/square/invoices/types/update_invoice_request.rb +14 -0
- data/lib/square/labor/break_types/client.rb +123 -0
- data/lib/square/labor/break_types/types/create_break_type_request.rb +14 -0
- data/lib/square/labor/break_types/types/delete_break_types_request.rb +13 -0
- data/lib/square/labor/break_types/types/get_break_types_request.rb +13 -0
- data/lib/square/labor/break_types/types/list_break_types_request.rb +15 -0
- data/lib/square/labor/break_types/types/update_break_type_request.rb +14 -0
- data/lib/square/labor/client.rb +297 -0
- data/lib/square/labor/employee_wages/client.rb +53 -0
- data/lib/square/labor/employee_wages/types/get_employee_wages_request.rb +13 -0
- data/lib/square/labor/employee_wages/types/list_employee_wages_request.rb +15 -0
- data/lib/square/labor/shifts/client.rb +140 -0
- data/lib/square/labor/shifts/types/create_shift_request.rb +14 -0
- data/lib/square/labor/shifts/types/delete_shifts_request.rb +13 -0
- data/lib/square/labor/shifts/types/get_shifts_request.rb +13 -0
- data/lib/square/labor/shifts/types/search_shifts_request.rb +15 -0
- data/lib/square/labor/shifts/types/update_shift_request.rb +14 -0
- data/lib/square/labor/team_member_wages/client.rb +53 -0
- data/lib/square/labor/team_member_wages/types/get_team_member_wages_request.rb +13 -0
- data/lib/square/labor/team_member_wages/types/list_team_member_wages_request.rb +15 -0
- data/lib/square/labor/types/bulk_publish_scheduled_shifts_request.rb +16 -0
- data/lib/square/labor/types/create_scheduled_shift_request.rb +12 -0
- data/lib/square/labor/types/create_timecard_request.rb +12 -0
- data/lib/square/labor/types/delete_timecard_request.rb +11 -0
- data/lib/square/labor/types/publish_scheduled_shift_request.rb +16 -0
- data/lib/square/labor/types/retrieve_scheduled_shift_request.rb +11 -0
- data/lib/square/labor/types/retrieve_timecard_request.rb +11 -0
- data/lib/square/labor/types/search_scheduled_shifts_request.rb +13 -0
- data/lib/square/labor/types/search_timecards_request.rb +13 -0
- data/lib/square/labor/types/update_scheduled_shift_request.rb +12 -0
- data/lib/square/labor/types/update_timecard_request.rb +12 -0
- data/lib/square/labor/workweek_configs/client.rb +56 -0
- data/lib/square/labor/workweek_configs/types/list_workweek_configs_request.rb +14 -0
- data/lib/square/labor/workweek_configs/types/update_workweek_config_request.rb +14 -0
- data/lib/square/locations/client.rb +133 -0
- data/lib/square/locations/custom_attribute_definitions/client.rb +130 -0
- data/lib/square/locations/custom_attribute_definitions/types/create_location_custom_attribute_definition_request.rb +16 -0
- data/lib/square/locations/custom_attribute_definitions/types/delete_custom_attribute_definitions_request.rb +13 -0
- data/lib/square/locations/custom_attribute_definitions/types/get_custom_attribute_definitions_request.rb +14 -0
- data/lib/square/locations/custom_attribute_definitions/types/list_custom_attribute_definitions_request.rb +15 -0
- data/lib/square/locations/custom_attribute_definitions/types/update_location_custom_attribute_definition_request.rb +17 -0
- data/lib/square/locations/custom_attributes/client.rb +158 -0
- data/lib/square/locations/custom_attributes/types/bulk_delete_location_custom_attributes_request.rb +15 -0
- data/lib/square/locations/custom_attributes/types/bulk_upsert_location_custom_attributes_request.rb +15 -0
- data/lib/square/locations/custom_attributes/types/delete_custom_attributes_request.rb +14 -0
- data/lib/square/locations/custom_attributes/types/get_custom_attributes_request.rb +16 -0
- data/lib/square/locations/custom_attributes/types/list_custom_attributes_request.rb +17 -0
- data/lib/square/locations/custom_attributes/types/upsert_location_custom_attribute_request.rb +16 -0
- data/lib/square/locations/transactions/client.rb +102 -0
- data/lib/square/locations/transactions/types/capture_transactions_request.rb +14 -0
- data/lib/square/locations/transactions/types/get_transactions_request.rb +14 -0
- data/lib/square/locations/transactions/types/list_transactions_request.rb +17 -0
- data/lib/square/locations/transactions/types/void_transactions_request.rb +14 -0
- data/lib/square/locations/types/create_checkout_request.rb +22 -0
- data/lib/square/locations/types/create_location_request.rb +11 -0
- data/lib/square/locations/types/get_locations_request.rb +11 -0
- data/lib/square/locations/types/update_location_request.rb +12 -0
- data/lib/square/loyalty/accounts/client.rb +128 -0
- data/lib/square/loyalty/accounts/types/accumulate_loyalty_points_request.rb +16 -0
- data/lib/square/loyalty/accounts/types/adjust_loyalty_points_request.rb +16 -0
- data/lib/square/loyalty/accounts/types/create_loyalty_account_request.rb +14 -0
- data/lib/square/loyalty/accounts/types/get_accounts_request.rb +13 -0
- data/lib/square/loyalty/accounts/types/search_loyalty_accounts_request.rb +17 -0
- data/lib/square/loyalty/client.rb +52 -0
- data/lib/square/loyalty/programs/client.rb +93 -0
- data/lib/square/loyalty/programs/promotions/client.rb +103 -0
- data/lib/square/loyalty/programs/promotions/types/cancel_promotions_request.rb +16 -0
- data/lib/square/loyalty/programs/promotions/types/create_loyalty_promotion_request.rb +17 -0
- data/lib/square/loyalty/programs/promotions/types/get_promotions_request.rb +16 -0
- data/lib/square/loyalty/programs/promotions/types/list_promotions_request.rb +18 -0
- data/lib/square/loyalty/programs/types/calculate_loyalty_points_request.rb +16 -0
- data/lib/square/loyalty/programs/types/get_programs_request.rb +13 -0
- data/lib/square/loyalty/rewards/client.rb +135 -0
- data/lib/square/loyalty/rewards/types/create_loyalty_reward_request.rb +14 -0
- data/lib/square/loyalty/rewards/types/delete_rewards_request.rb +13 -0
- data/lib/square/loyalty/rewards/types/get_rewards_request.rb +13 -0
- data/lib/square/loyalty/rewards/types/redeem_loyalty_reward_request.rb +15 -0
- data/lib/square/loyalty/rewards/types/search_loyalty_rewards_request.rb +17 -0
- data/lib/square/loyalty/types/search_loyalty_events_request.rb +13 -0
- data/lib/square/merchants/client.rb +70 -0
- data/lib/square/merchants/custom_attribute_definitions/client.rb +130 -0
- data/lib/square/merchants/custom_attribute_definitions/types/create_merchant_custom_attribute_definition_request.rb +16 -0
- data/lib/square/merchants/custom_attribute_definitions/types/delete_custom_attribute_definitions_request.rb +13 -0
- data/lib/square/merchants/custom_attribute_definitions/types/get_custom_attribute_definitions_request.rb +14 -0
- data/lib/square/merchants/custom_attribute_definitions/types/list_custom_attribute_definitions_request.rb +15 -0
- data/lib/square/merchants/custom_attribute_definitions/types/update_merchant_custom_attribute_definition_request.rb +17 -0
- data/lib/square/merchants/custom_attributes/client.rb +158 -0
- data/lib/square/merchants/custom_attributes/types/bulk_delete_merchant_custom_attributes_request.rb +15 -0
- data/lib/square/merchants/custom_attributes/types/bulk_upsert_merchant_custom_attributes_request.rb +15 -0
- data/lib/square/merchants/custom_attributes/types/delete_custom_attributes_request.rb +14 -0
- data/lib/square/merchants/custom_attributes/types/get_custom_attributes_request.rb +16 -0
- data/lib/square/merchants/custom_attributes/types/list_custom_attributes_request.rb +17 -0
- data/lib/square/merchants/custom_attributes/types/upsert_merchant_custom_attribute_request.rb +16 -0
- data/lib/square/merchants/types/get_merchants_request.rb +11 -0
- data/lib/square/merchants/types/list_merchants_request.rb +11 -0
- data/lib/square/mobile/client.rb +44 -0
- data/lib/square/mobile/types/create_mobile_authorization_code_request.rb +11 -0
- data/lib/square/o_auth/client.rb +124 -0
- data/lib/square/o_auth/types/obtain_token_request.rb +20 -0
- data/lib/square/o_auth/types/revoke_token_request.rb +14 -0
- data/lib/square/orders/client.rb +217 -0
- data/lib/square/orders/custom_attribute_definitions/client.rb +130 -0
- data/lib/square/orders/custom_attribute_definitions/types/create_order_custom_attribute_definition_request.rb +16 -0
- data/lib/square/orders/custom_attribute_definitions/types/delete_custom_attribute_definitions_request.rb +13 -0
- data/lib/square/orders/custom_attribute_definitions/types/get_custom_attribute_definitions_request.rb +14 -0
- data/lib/square/orders/custom_attribute_definitions/types/list_custom_attribute_definitions_request.rb +15 -0
- data/lib/square/orders/custom_attribute_definitions/types/update_order_custom_attribute_definition_request.rb +17 -0
- data/lib/square/orders/custom_attributes/client.rb +183 -0
- data/lib/square/orders/custom_attributes/types/bulk_delete_order_custom_attributes_request.rb +15 -0
- data/lib/square/orders/custom_attributes/types/bulk_upsert_order_custom_attributes_request.rb +15 -0
- data/lib/square/orders/custom_attributes/types/delete_custom_attributes_request.rb +14 -0
- data/lib/square/orders/custom_attributes/types/get_custom_attributes_request.rb +16 -0
- data/lib/square/orders/custom_attributes/types/list_custom_attributes_request.rb +17 -0
- data/lib/square/orders/custom_attributes/types/upsert_order_custom_attribute_request.rb +16 -0
- data/lib/square/orders/types/batch_get_orders_request.rb +12 -0
- data/lib/square/orders/types/calculate_order_request.rb +14 -0
- data/lib/square/orders/types/clone_order_request.rb +13 -0
- data/lib/square/orders/types/get_orders_request.rb +11 -0
- data/lib/square/orders/types/pay_order_request.rb +14 -0
- data/lib/square/orders/types/search_orders_request.rb +15 -0
- data/lib/square/orders/types/update_order_request.rb +14 -0
- data/lib/square/payments/client.rb +172 -0
- data/lib/square/payments/types/cancel_payment_by_idempotency_key_request.rb +11 -0
- data/lib/square/payments/types/cancel_payments_request.rb +11 -0
- data/lib/square/payments/types/complete_payment_request.rb +12 -0
- data/lib/square/payments/types/create_payment_request.rb +35 -0
- data/lib/square/payments/types/get_payments_request.rb +11 -0
- data/lib/square/payments/types/list_payments_request.rb +25 -0
- data/lib/square/payments/types/update_payment_request.rb +13 -0
- data/lib/square/payouts/client.rb +77 -0
- data/lib/square/payouts/types/get_payouts_request.rb +11 -0
- data/lib/square/payouts/types/list_entries_payouts_request.rb +14 -0
- data/lib/square/payouts/types/list_payouts_request.rb +17 -0
- data/lib/square/refunds/client.rb +78 -0
- data/lib/square/refunds/types/get_refunds_request.rb +11 -0
- data/lib/square/refunds/types/list_refunds_request.rb +21 -0
- data/lib/square/refunds/types/refund_payment_request.rb +25 -0
- data/lib/square/sites/client.rb +32 -0
- data/lib/square/snippets/client.rb +82 -0
- data/lib/square/snippets/types/delete_snippets_request.rb +11 -0
- data/lib/square/snippets/types/get_snippets_request.rb +11 -0
- data/lib/square/snippets/types/upsert_snippet_request.rb +12 -0
- data/lib/square/subscriptions/client.rb +268 -0
- data/lib/square/subscriptions/types/bulk_swap_plan_request.rb +13 -0
- data/lib/square/subscriptions/types/cancel_subscriptions_request.rb +11 -0
- data/lib/square/subscriptions/types/change_billing_anchor_date_request.rb +13 -0
- data/lib/square/subscriptions/types/create_subscription_request.rb +23 -0
- data/lib/square/subscriptions/types/delete_action_subscriptions_request.rb +12 -0
- data/lib/square/subscriptions/types/get_subscriptions_request.rb +12 -0
- data/lib/square/subscriptions/types/list_events_subscriptions_request.rb +13 -0
- data/lib/square/subscriptions/types/pause_subscription_request.rb +16 -0
- data/lib/square/subscriptions/types/resume_subscription_request.rb +13 -0
- data/lib/square/subscriptions/types/search_subscriptions_request.rb +14 -0
- data/lib/square/subscriptions/types/swap_plan_request.rb +13 -0
- data/lib/square/subscriptions/types/update_subscription_request.rb +12 -0
- data/lib/square/team/client.rb +90 -0
- data/lib/square/team/types/create_job_request.rb +12 -0
- data/lib/square/team/types/list_jobs_request.rb +11 -0
- data/lib/square/team/types/retrieve_job_request.rb +11 -0
- data/lib/square/team/types/update_job_request.rb +12 -0
- data/lib/square/team_members/client.rb +144 -0
- data/lib/square/team_members/types/batch_create_team_members_request.rb +13 -0
- data/lib/square/team_members/types/batch_update_team_members_request.rb +13 -0
- data/lib/square/team_members/types/get_team_members_request.rb +11 -0
- data/lib/square/team_members/types/search_team_members_request.rb +13 -0
- data/lib/square/team_members/types/update_team_members_request.rb +12 -0
- data/lib/square/team_members/wage_setting/client.rb +63 -0
- data/lib/square/team_members/wage_setting/types/get_wage_setting_request.rb +13 -0
- data/lib/square/team_members/wage_setting/types/update_wage_setting_request.rb +14 -0
- data/lib/square/terminal/actions/client.rb +84 -0
- data/lib/square/terminal/actions/types/cancel_actions_request.rb +13 -0
- data/lib/square/terminal/actions/types/create_terminal_action_request.rb +14 -0
- data/lib/square/terminal/actions/types/get_actions_request.rb +13 -0
- data/lib/square/terminal/actions/types/search_terminal_actions_request.rb +15 -0
- data/lib/square/terminal/checkouts/client.rb +85 -0
- data/lib/square/terminal/checkouts/types/cancel_checkouts_request.rb +13 -0
- data/lib/square/terminal/checkouts/types/create_terminal_checkout_request.rb +14 -0
- data/lib/square/terminal/checkouts/types/get_checkouts_request.rb +13 -0
- data/lib/square/terminal/checkouts/types/search_terminal_checkouts_request.rb +15 -0
- data/lib/square/terminal/client.rb +80 -0
- data/lib/square/terminal/refunds/client.rb +84 -0
- data/lib/square/terminal/refunds/types/cancel_refunds_request.rb +13 -0
- data/lib/square/terminal/refunds/types/create_terminal_refund_request.rb +14 -0
- data/lib/square/terminal/refunds/types/get_refunds_request.rb +13 -0
- data/lib/square/terminal/refunds/types/search_terminal_refunds_request.rb +15 -0
- data/lib/square/terminal/types/dismiss_terminal_action_request.rb +11 -0
- data/lib/square/terminal/types/dismiss_terminal_checkout_request.rb +11 -0
- data/lib/square/terminal/types/dismiss_terminal_refund_request.rb +11 -0
- data/lib/square/types/accept_dispute_response.rb +11 -0
- data/lib/square/types/accepted_payment_methods.rb +12 -0
- data/lib/square/types/accumulate_loyalty_points_response.rb +12 -0
- data/lib/square/types/ach_details.rb +12 -0
- data/lib/square/types/action_cancel_reason.rb +12 -0
- data/lib/square/types/activity_type.rb +67 -0
- data/lib/square/types/add_group_to_customer_response.rb +11 -0
- data/lib/square/types/additional_recipient.rb +13 -0
- data/lib/square/types/address.rb +24 -0
- data/lib/square/types/adjust_loyalty_points_response.rb +11 -0
- data/lib/square/types/afterpay_details.rb +10 -0
- data/lib/square/types/application_details.rb +13 -0
- data/lib/square/types/application_details_external_square_product.rb +19 -0
- data/lib/square/types/appointment_segment.rb +16 -0
- data/lib/square/types/archived_state.rb +12 -0
- data/lib/square/types/availability.rb +14 -0
- data/lib/square/types/bank_account.rb +28 -0
- data/lib/square/types/bank_account_created_event.rb +17 -0
- data/lib/square/types/bank_account_created_event_data.rb +11 -0
- data/lib/square/types/bank_account_created_event_object.rb +9 -0
- data/lib/square/types/bank_account_disabled_event.rb +16 -0
- data/lib/square/types/bank_account_disabled_event_data.rb +11 -0
- data/lib/square/types/bank_account_disabled_event_object.rb +9 -0
- data/lib/square/types/bank_account_payment_details.rb +17 -0
- data/lib/square/types/bank_account_status.rb +12 -0
- data/lib/square/types/bank_account_type.rb +14 -0
- data/lib/square/types/bank_account_verified_event.rb +16 -0
- data/lib/square/types/bank_account_verified_event_data.rb +11 -0
- data/lib/square/types/bank_account_verified_event_object.rb +9 -0
- data/lib/square/types/batch_change_inventory_request.rb +11 -0
- data/lib/square/types/batch_change_inventory_response.rb +11 -0
- data/lib/square/types/batch_create_team_members_response.rb +13 -0
- data/lib/square/types/batch_create_vendors_response.rb +13 -0
- data/lib/square/types/batch_delete_catalog_objects_response.rb +11 -0
- data/lib/square/types/batch_get_catalog_objects_response.rb +13 -0
- data/lib/square/types/batch_get_inventory_changes_response.rb +11 -0
- data/lib/square/types/batch_get_inventory_counts_request.rb +14 -0
- data/lib/square/types/batch_get_inventory_counts_response.rb +11 -0
- data/lib/square/types/batch_get_orders_response.rb +12 -0
- data/lib/square/types/batch_get_vendors_response.rb +13 -0
- data/lib/square/types/batch_retrieve_inventory_changes_request.rb +16 -0
- data/lib/square/types/batch_update_team_members_response.rb +13 -0
- data/lib/square/types/batch_update_vendors_response.rb +13 -0
- data/lib/square/types/batch_upsert_catalog_objects_response.rb +14 -0
- data/lib/square/types/batch_upsert_customer_custom_attributes_request_customer_custom_attribute_upsert_request.rb +14 -0
- data/lib/square/types/batch_upsert_customer_custom_attributes_response.rb +14 -0
- data/lib/square/types/batch_upsert_customer_custom_attributes_response_customer_custom_attribute_upsert_response.rb +12 -0
- data/lib/square/types/booking.rb +31 -0
- data/lib/square/types/booking_booking_source.rb +13 -0
- data/lib/square/types/booking_created_event.rb +17 -0
- data/lib/square/types/booking_created_event_data.rb +11 -0
- data/lib/square/types/booking_created_event_object.rb +9 -0
- data/lib/square/types/booking_creator_details.rb +12 -0
- data/lib/square/types/booking_creator_details_creator_type.rb +11 -0
- data/lib/square/types/booking_custom_attribute_definition_owned_created_event.rb +16 -0
- data/lib/square/types/booking_custom_attribute_definition_owned_deleted_event.rb +16 -0
- data/lib/square/types/booking_custom_attribute_definition_owned_updated_event.rb +16 -0
- data/lib/square/types/booking_custom_attribute_definition_visible_created_event.rb +17 -0
- data/lib/square/types/booking_custom_attribute_definition_visible_deleted_event.rb +17 -0
- data/lib/square/types/booking_custom_attribute_definition_visible_updated_event.rb +17 -0
- data/lib/square/types/booking_custom_attribute_delete_request.rb +12 -0
- data/lib/square/types/booking_custom_attribute_delete_response.rb +11 -0
- data/lib/square/types/booking_custom_attribute_owned_deleted_event.rb +18 -0
- data/lib/square/types/booking_custom_attribute_owned_updated_event.rb +16 -0
- data/lib/square/types/booking_custom_attribute_upsert_request.rb +14 -0
- data/lib/square/types/booking_custom_attribute_upsert_response.rb +12 -0
- data/lib/square/types/booking_custom_attribute_visible_deleted_event.rb +17 -0
- data/lib/square/types/booking_custom_attribute_visible_updated_event.rb +17 -0
- data/lib/square/types/booking_status.rb +15 -0
- data/lib/square/types/booking_updated_event.rb +17 -0
- data/lib/square/types/booking_updated_event_data.rb +11 -0
- data/lib/square/types/booking_updated_event_object.rb +9 -0
- data/lib/square/types/break_.rb +16 -0
- data/lib/square/types/break_type.rb +18 -0
- data/lib/square/types/bulk_create_customer_data.rb +21 -0
- data/lib/square/types/bulk_create_customers_response.rb +14 -0
- data/lib/square/types/bulk_delete_booking_custom_attributes_response.rb +14 -0
- data/lib/square/types/bulk_delete_customers_response.rb +14 -0
- data/lib/square/types/bulk_delete_location_custom_attributes_request_location_custom_attribute_delete_request.rb +12 -0
- data/lib/square/types/bulk_delete_location_custom_attributes_response.rb +14 -0
- data/lib/square/types/bulk_delete_location_custom_attributes_response_location_custom_attribute_delete_response.rb +12 -0
- data/lib/square/types/bulk_delete_merchant_custom_attributes_request_merchant_custom_attribute_delete_request.rb +12 -0
- data/lib/square/types/bulk_delete_merchant_custom_attributes_response.rb +14 -0
- data/lib/square/types/bulk_delete_merchant_custom_attributes_response_merchant_custom_attribute_delete_response.rb +11 -0
- data/lib/square/types/bulk_delete_order_custom_attributes_request_delete_custom_attribute.rb +11 -0
- data/lib/square/types/bulk_delete_order_custom_attributes_response.rb +13 -0
- data/lib/square/types/bulk_publish_scheduled_shifts_data.rb +12 -0
- data/lib/square/types/bulk_publish_scheduled_shifts_response.rb +14 -0
- data/lib/square/types/bulk_retrieve_bookings_response.rb +13 -0
- data/lib/square/types/bulk_retrieve_customers_response.rb +14 -0
- data/lib/square/types/bulk_retrieve_team_member_booking_profiles_response.rb +13 -0
- data/lib/square/types/bulk_swap_plan_response.rb +12 -0
- data/lib/square/types/bulk_update_customer_data.rb +22 -0
- data/lib/square/types/bulk_update_customers_response.rb +14 -0
- data/lib/square/types/bulk_upsert_booking_custom_attributes_response.rb +14 -0
- data/lib/square/types/bulk_upsert_location_custom_attributes_request_location_custom_attribute_upsert_request.rb +14 -0
- data/lib/square/types/bulk_upsert_location_custom_attributes_response.rb +14 -0
- data/lib/square/types/bulk_upsert_location_custom_attributes_response_location_custom_attribute_upsert_response.rb +12 -0
- data/lib/square/types/bulk_upsert_merchant_custom_attributes_request_merchant_custom_attribute_upsert_request.rb +14 -0
- data/lib/square/types/bulk_upsert_merchant_custom_attributes_response.rb +14 -0
- data/lib/square/types/bulk_upsert_merchant_custom_attributes_response_merchant_custom_attribute_upsert_response.rb +12 -0
- data/lib/square/types/bulk_upsert_order_custom_attributes_request_upsert_custom_attribute.rb +12 -0
- data/lib/square/types/bulk_upsert_order_custom_attributes_response.rb +13 -0
- data/lib/square/types/business_appointment_settings.rb +30 -0
- data/lib/square/types/business_appointment_settings_alignment_time.rb +13 -0
- data/lib/square/types/business_appointment_settings_booking_location_type.rb +12 -0
- data/lib/square/types/business_appointment_settings_cancellation_policy.rb +11 -0
- data/lib/square/types/business_appointment_settings_max_appointments_per_day_limit_type.rb +11 -0
- data/lib/square/types/business_booking_profile.rb +21 -0
- data/lib/square/types/business_booking_profile_booking_policy.rb +11 -0
- data/lib/square/types/business_booking_profile_customer_timezone_choice.rb +11 -0
- data/lib/square/types/business_hours.rb +10 -0
- data/lib/square/types/business_hours_period.rb +12 -0
- data/lib/square/types/buy_now_pay_later_details.rb +12 -0
- data/lib/square/types/calculate_loyalty_points_response.rb +12 -0
- data/lib/square/types/calculate_order_response.rb +10 -0
- data/lib/square/types/cancel_booking_response.rb +10 -0
- data/lib/square/types/cancel_invoice_response.rb +11 -0
- data/lib/square/types/cancel_loyalty_promotion_response.rb +12 -0
- data/lib/square/types/cancel_payment_by_idempotency_key_response.rb +12 -0
- data/lib/square/types/cancel_payment_response.rb +11 -0
- data/lib/square/types/cancel_subscription_response.rb +13 -0
- data/lib/square/types/cancel_terminal_action_response.rb +10 -0
- data/lib/square/types/cancel_terminal_checkout_response.rb +10 -0
- data/lib/square/types/cancel_terminal_refund_response.rb +10 -0
- data/lib/square/types/capture_transaction_response.rb +11 -0
- data/lib/square/types/card.rb +30 -0
- data/lib/square/types/card_automatically_updated_event.rb +15 -0
- data/lib/square/types/card_automatically_updated_event_data.rb +11 -0
- data/lib/square/types/card_automatically_updated_event_object.rb +9 -0
- data/lib/square/types/card_brand.rb +23 -0
- data/lib/square/types/card_co_brand.rb +12 -0
- data/lib/square/types/card_created_event.rb +14 -0
- data/lib/square/types/card_created_event_data.rb +11 -0
- data/lib/square/types/card_created_event_object.rb +9 -0
- data/lib/square/types/card_disabled_event.rb +14 -0
- data/lib/square/types/card_disabled_event_data.rb +11 -0
- data/lib/square/types/card_disabled_event_object.rb +9 -0
- data/lib/square/types/card_forgotten_event.rb +14 -0
- data/lib/square/types/card_forgotten_event_card.rb +14 -0
- data/lib/square/types/card_forgotten_event_data.rb +11 -0
- data/lib/square/types/card_forgotten_event_object.rb +9 -0
- data/lib/square/types/card_payment_details.rb +25 -0
- data/lib/square/types/card_payment_timeline.rb +12 -0
- data/lib/square/types/card_prepaid_type.rb +12 -0
- data/lib/square/types/card_type.rb +12 -0
- data/lib/square/types/card_updated_event.rb +14 -0
- data/lib/square/types/card_updated_event_data.rb +11 -0
- data/lib/square/types/card_updated_event_object.rb +9 -0
- data/lib/square/types/cash_app_details.rb +12 -0
- data/lib/square/types/cash_drawer_device.rb +10 -0
- data/lib/square/types/cash_drawer_event_type.rb +18 -0
- data/lib/square/types/cash_drawer_shift.rb +33 -0
- data/lib/square/types/cash_drawer_shift_event.rb +14 -0
- data/lib/square/types/cash_drawer_shift_state.rb +12 -0
- data/lib/square/types/cash_drawer_shift_summary.rb +24 -0
- data/lib/square/types/cash_payment_details.rb +12 -0
- data/lib/square/types/catalog_availability_period.rb +12 -0
- data/lib/square/types/catalog_category.rb +22 -0
- data/lib/square/types/catalog_category_type.rb +12 -0
- data/lib/square/types/catalog_custom_attribute_definition.rb +37 -0
- data/lib/square/types/catalog_custom_attribute_definition_app_visibility.rb +12 -0
- data/lib/square/types/catalog_custom_attribute_definition_number_config.rb +9 -0
- data/lib/square/types/catalog_custom_attribute_definition_selection_config.rb +13 -0
- data/lib/square/types/catalog_custom_attribute_definition_selection_config_custom_attribute_selection.rb +11 -0
- data/lib/square/types/catalog_custom_attribute_definition_seller_visibility.rb +11 -0
- data/lib/square/types/catalog_custom_attribute_definition_string_config.rb +10 -0
- data/lib/square/types/catalog_custom_attribute_definition_type.rb +13 -0
- data/lib/square/types/catalog_custom_attribute_value.rb +19 -0
- data/lib/square/types/catalog_discount.rb +17 -0
- data/lib/square/types/catalog_discount_modify_tax_basis.rb +11 -0
- data/lib/square/types/catalog_discount_type.rb +13 -0
- data/lib/square/types/catalog_ecom_seo_data.rb +12 -0
- data/lib/square/types/catalog_id_mapping.rb +21 -0
- data/lib/square/types/catalog_image.rb +18 -0
- data/lib/square/types/catalog_info_response.rb +13 -0
- data/lib/square/types/catalog_info_response_limits.rb +19 -0
- data/lib/square/types/catalog_item.rb +42 -0
- data/lib/square/types/catalog_item_food_and_beverage_details.rb +16 -0
- data/lib/square/types/catalog_item_food_and_beverage_details_dietary_preference.rb +16 -0
- data/lib/square/types/catalog_item_food_and_beverage_details_dietary_preference_standard_dietary_preference.rb +16 -0
- data/lib/square/types/catalog_item_food_and_beverage_details_dietary_preference_type.rb +11 -0
- data/lib/square/types/catalog_item_food_and_beverage_details_ingredient.rb +16 -0
- data/lib/square/types/catalog_item_food_and_beverage_details_ingredient_standard_ingredient.rb +23 -0
- data/lib/square/types/catalog_item_modifier_list_info.rb +23 -0
- data/lib/square/types/catalog_item_option.rb +14 -0
- data/lib/square/types/catalog_item_option_for_item.rb +11 -0
- data/lib/square/types/catalog_item_option_value.rb +16 -0
- data/lib/square/types/catalog_item_option_value_for_item_variation.rb +14 -0
- data/lib/square/types/catalog_item_product_type.rb +18 -0
- data/lib/square/types/catalog_item_variation.rb +43 -0
- data/lib/square/types/catalog_measurement_unit.rb +12 -0
- data/lib/square/types/catalog_modifier.rb +19 -0
- data/lib/square/types/catalog_modifier_list.rb +27 -0
- data/lib/square/types/catalog_modifier_list_modifier_type.rb +11 -0
- data/lib/square/types/catalog_modifier_list_selection_type.rb +11 -0
- data/lib/square/types/catalog_modifier_override.rb +13 -0
- data/lib/square/types/catalog_object.rb +41 -0
- data/lib/square/types/catalog_object_availability_period.rb +9 -0
- data/lib/square/types/catalog_object_base.rb +20 -0
- data/lib/square/types/catalog_object_batch.rb +10 -0
- data/lib/square/types/catalog_object_category.rb +25 -0
- data/lib/square/types/catalog_object_custom_attribute_definition.rb +11 -0
- data/lib/square/types/catalog_object_discount.rb +9 -0
- data/lib/square/types/catalog_object_image.rb +9 -0
- data/lib/square/types/catalog_object_item.rb +9 -0
- data/lib/square/types/catalog_object_item_option.rb +9 -0
- data/lib/square/types/catalog_object_item_option_value.rb +9 -0
- data/lib/square/types/catalog_object_item_variation.rb +9 -0
- data/lib/square/types/catalog_object_measurement_unit.rb +9 -0
- data/lib/square/types/catalog_object_modifier.rb +9 -0
- data/lib/square/types/catalog_object_modifier_list.rb +9 -0
- data/lib/square/types/catalog_object_pricing_rule.rb +9 -0
- data/lib/square/types/catalog_object_product_set.rb +9 -0
- data/lib/square/types/catalog_object_quick_amounts_settings.rb +11 -0
- data/lib/square/types/catalog_object_reference.rb +13 -0
- data/lib/square/types/catalog_object_subscription_plan.rb +9 -0
- data/lib/square/types/catalog_object_subscription_plan_variation.rb +11 -0
- data/lib/square/types/catalog_object_tax.rb +9 -0
- data/lib/square/types/catalog_object_time_period.rb +9 -0
- data/lib/square/types/catalog_object_type.rb +28 -0
- data/lib/square/types/catalog_pricing_rule.rb +23 -0
- data/lib/square/types/catalog_pricing_type.rb +11 -0
- data/lib/square/types/catalog_product_set.rb +20 -0
- data/lib/square/types/catalog_query.rb +50 -0
- data/lib/square/types/catalog_query_exact.rb +11 -0
- data/lib/square/types/catalog_query_item_variations_for_item_option_values.rb +10 -0
- data/lib/square/types/catalog_query_items_for_item_options.rb +10 -0
- data/lib/square/types/catalog_query_items_for_modifier_list.rb +10 -0
- data/lib/square/types/catalog_query_items_for_tax.rb +10 -0
- data/lib/square/types/catalog_query_prefix.rb +11 -0
- data/lib/square/types/catalog_query_range.rb +12 -0
- data/lib/square/types/catalog_query_set.rb +12 -0
- data/lib/square/types/catalog_query_sorted_attribute.rb +12 -0
- data/lib/square/types/catalog_query_text.rb +10 -0
- data/lib/square/types/catalog_quick_amount.rb +13 -0
- data/lib/square/types/catalog_quick_amount_type.rb +11 -0
- data/lib/square/types/catalog_quick_amounts_settings.rb +12 -0
- data/lib/square/types/catalog_quick_amounts_settings_option.rb +12 -0
- data/lib/square/types/catalog_stock_conversion.rb +14 -0
- data/lib/square/types/catalog_subscription_plan.rb +18 -0
- data/lib/square/types/catalog_subscription_plan_variation.rb +16 -0
- data/lib/square/types/catalog_tax.rb +16 -0
- data/lib/square/types/catalog_time_period.rb +10 -0
- data/lib/square/types/catalog_v_1_id.rb +11 -0
- data/lib/square/types/catalog_version_updated_event.rb +14 -0
- data/lib/square/types/catalog_version_updated_event_catalog_version.rb +9 -0
- data/lib/square/types/catalog_version_updated_event_data.rb +10 -0
- data/lib/square/types/catalog_version_updated_event_object.rb +11 -0
- data/lib/square/types/category_path_to_root_node.rb +11 -0
- data/lib/square/types/change_billing_anchor_date_response.rb +13 -0
- data/lib/square/types/change_timing.rb +11 -0
- data/lib/square/types/charge_request_additional_recipient.rb +13 -0
- data/lib/square/types/checkout.rb +22 -0
- data/lib/square/types/checkout_location_settings.rb +17 -0
- data/lib/square/types/checkout_location_settings_branding.rb +15 -0
- data/lib/square/types/checkout_location_settings_branding_button_shape.rb +12 -0
- data/lib/square/types/checkout_location_settings_branding_header_type.rb +12 -0
- data/lib/square/types/checkout_location_settings_coupons.rb +9 -0
- data/lib/square/types/checkout_location_settings_policy.rb +11 -0
- data/lib/square/types/checkout_location_settings_tipping.rb +13 -0
- data/lib/square/types/checkout_merchant_settings.rb +12 -0
- data/lib/square/types/checkout_merchant_settings_payment_methods.rb +20 -0
- data/lib/square/types/checkout_merchant_settings_payment_methods_afterpay_clearpay.rb +16 -0
- data/lib/square/types/checkout_merchant_settings_payment_methods_afterpay_clearpay_eligibility_range.rb +11 -0
- data/lib/square/types/checkout_merchant_settings_payment_methods_payment_method.rb +10 -0
- data/lib/square/types/checkout_options.rb +19 -0
- data/lib/square/types/checkout_options_payment_type.rb +17 -0
- data/lib/square/types/clearpay_details.rb +10 -0
- data/lib/square/types/clone_order_response.rb +12 -0
- data/lib/square/types/collected_data.rb +9 -0
- data/lib/square/types/complete_payment_response.rb +11 -0
- data/lib/square/types/component.rb +23 -0
- data/lib/square/types/component_component_type.rb +15 -0
- data/lib/square/types/confirmation_decision.rb +9 -0
- data/lib/square/types/confirmation_options.rb +13 -0
- data/lib/square/types/coordinates.rb +11 -0
- data/lib/square/types/country.rb +259 -0
- data/lib/square/types/create_booking_custom_attribute_definition_response.rb +14 -0
- data/lib/square/types/create_booking_response.rb +10 -0
- data/lib/square/types/create_break_type_response.rb +13 -0
- data/lib/square/types/create_card_response.rb +15 -0
- data/lib/square/types/create_catalog_image_request.rb +12 -0
- data/lib/square/types/create_catalog_image_response.rb +10 -0
- data/lib/square/types/create_checkout_response.rb +12 -0
- data/lib/square/types/create_customer_card_response.rb +14 -0
- data/lib/square/types/create_customer_custom_attribute_definition_response.rb +14 -0
- data/lib/square/types/create_customer_group_response.rb +14 -0
- data/lib/square/types/create_customer_response.rb +15 -0
- data/lib/square/types/create_device_code_response.rb +10 -0
- data/lib/square/types/create_dispute_evidence_file_request.rb +12 -0
- data/lib/square/types/create_dispute_evidence_file_response.rb +11 -0
- data/lib/square/types/create_dispute_evidence_text_response.rb +11 -0
- data/lib/square/types/create_gift_card_activity_response.rb +12 -0
- data/lib/square/types/create_gift_card_response.rb +12 -0
- data/lib/square/types/create_invoice_attachment_request_data.rb +11 -0
- data/lib/square/types/create_invoice_attachment_response.rb +11 -0
- data/lib/square/types/create_invoice_response.rb +11 -0
- data/lib/square/types/create_job_response.rb +12 -0
- data/lib/square/types/create_location_custom_attribute_definition_response.rb +14 -0
- data/lib/square/types/create_location_response.rb +11 -0
- data/lib/square/types/create_loyalty_account_response.rb +11 -0
- data/lib/square/types/create_loyalty_promotion_response.rb +12 -0
- data/lib/square/types/create_loyalty_reward_response.rb +11 -0
- data/lib/square/types/create_merchant_custom_attribute_definition_response.rb +14 -0
- data/lib/square/types/create_mobile_authorization_code_response.rb +13 -0
- data/lib/square/types/create_order_custom_attribute_definition_response.rb +13 -0
- data/lib/square/types/create_order_request.rb +10 -0
- data/lib/square/types/create_order_response.rb +14 -0
- data/lib/square/types/create_payment_link_response.rb +11 -0
- data/lib/square/types/create_payment_response.rb +14 -0
- data/lib/square/types/create_scheduled_shift_response.rb +12 -0
- data/lib/square/types/create_shift_response.rb +13 -0
- data/lib/square/types/create_subscription_response.rb +12 -0
- data/lib/square/types/create_team_member_request.rb +11 -0
- data/lib/square/types/create_team_member_response.rb +11 -0
- data/lib/square/types/create_terminal_action_response.rb +10 -0
- data/lib/square/types/create_terminal_checkout_response.rb +10 -0
- data/lib/square/types/create_terminal_refund_response.rb +10 -0
- data/lib/square/types/create_timecard_response.rb +13 -0
- data/lib/square/types/create_vendor_response.rb +11 -0
- data/lib/square/types/create_webhook_subscription_response.rb +15 -0
- data/lib/square/types/currency.rb +192 -0
- data/lib/square/types/custom_attribute.rb +17 -0
- data/lib/square/types/custom_attribute_definition.rb +20 -0
- data/lib/square/types/custom_attribute_definition_event_data.rb +13 -0
- data/lib/square/types/custom_attribute_definition_event_data_object.rb +11 -0
- data/lib/square/types/custom_attribute_definition_visibility.rb +12 -0
- data/lib/square/types/custom_attribute_event_data.rb +11 -0
- data/lib/square/types/custom_attribute_event_data_object.rb +9 -0
- data/lib/square/types/custom_attribute_filter.rb +17 -0
- data/lib/square/types/custom_field.rb +12 -0
- data/lib/square/types/customer.rb +28 -0
- data/lib/square/types/customer_address_filter.rb +12 -0
- data/lib/square/types/customer_created_event.rb +17 -0
- data/lib/square/types/customer_created_event_data.rb +12 -0
- data/lib/square/types/customer_created_event_event_context.rb +10 -0
- data/lib/square/types/customer_created_event_event_context_merge.rb +11 -0
- data/lib/square/types/customer_created_event_object.rb +11 -0
- data/lib/square/types/customer_creation_source.rb +28 -0
- data/lib/square/types/customer_creation_source_filter.rb +16 -0
- data/lib/square/types/customer_custom_attribute_definition_created_event.rb +18 -0
- data/lib/square/types/customer_custom_attribute_definition_created_public_event.rb +20 -0
- data/lib/square/types/customer_custom_attribute_definition_deleted_event.rb +19 -0
- data/lib/square/types/customer_custom_attribute_definition_deleted_public_event.rb +20 -0
- data/lib/square/types/customer_custom_attribute_definition_owned_created_event.rb +15 -0
- data/lib/square/types/customer_custom_attribute_definition_owned_deleted_event.rb +16 -0
- data/lib/square/types/customer_custom_attribute_definition_owned_updated_event.rb +16 -0
- data/lib/square/types/customer_custom_attribute_definition_updated_event.rb +19 -0
- data/lib/square/types/customer_custom_attribute_definition_updated_public_event.rb +20 -0
- data/lib/square/types/customer_custom_attribute_definition_visible_created_event.rb +17 -0
- data/lib/square/types/customer_custom_attribute_definition_visible_deleted_event.rb +18 -0
- data/lib/square/types/customer_custom_attribute_definition_visible_updated_event.rb +18 -0
- data/lib/square/types/customer_custom_attribute_deleted_event.rb +20 -0
- data/lib/square/types/customer_custom_attribute_deleted_public_event.rb +20 -0
- data/lib/square/types/customer_custom_attribute_filter.rb +13 -0
- data/lib/square/types/customer_custom_attribute_filter_value.rb +18 -0
- data/lib/square/types/customer_custom_attribute_filters.rb +14 -0
- data/lib/square/types/customer_custom_attribute_owned_deleted_event.rb +17 -0
- data/lib/square/types/customer_custom_attribute_owned_updated_event.rb +17 -0
- data/lib/square/types/customer_custom_attribute_updated_event.rb +20 -0
- data/lib/square/types/customer_custom_attribute_updated_public_event.rb +20 -0
- data/lib/square/types/customer_custom_attribute_visible_deleted_event.rb +22 -0
- data/lib/square/types/customer_custom_attribute_visible_updated_event.rb +22 -0
- data/lib/square/types/customer_deleted_event.rb +16 -0
- data/lib/square/types/customer_deleted_event_data.rb +12 -0
- data/lib/square/types/customer_deleted_event_event_context.rb +10 -0
- data/lib/square/types/customer_deleted_event_event_context_merge.rb +11 -0
- data/lib/square/types/customer_deleted_event_object.rb +11 -0
- data/lib/square/types/customer_details.rb +11 -0
- data/lib/square/types/customer_filter.rb +19 -0
- data/lib/square/types/customer_group.rb +16 -0
- data/lib/square/types/customer_inclusion_exclusion.rb +11 -0
- data/lib/square/types/customer_preferences.rb +10 -0
- data/lib/square/types/customer_query.rb +11 -0
- data/lib/square/types/customer_segment.rb +16 -0
- data/lib/square/types/customer_sort.rb +12 -0
- data/lib/square/types/customer_sort_field.rb +11 -0
- data/lib/square/types/customer_tax_ids.rb +11 -0
- data/lib/square/types/customer_text_filter.rb +13 -0
- data/lib/square/types/customer_updated_event.rb +16 -0
- data/lib/square/types/customer_updated_event_data.rb +12 -0
- data/lib/square/types/customer_updated_event_object.rb +10 -0
- data/lib/square/types/data_collection_options.rb +12 -0
- data/lib/square/types/data_collection_options_input_type.rb +11 -0
- data/lib/square/types/date_range.rb +12 -0
- data/lib/square/types/day_of_week.rb +16 -0
- data/lib/square/types/delete_booking_custom_attribute_definition_response.rb +11 -0
- data/lib/square/types/delete_booking_custom_attribute_response.rb +11 -0
- data/lib/square/types/delete_break_type_response.rb +11 -0
- data/lib/square/types/delete_catalog_object_response.rb +11 -0
- data/lib/square/types/delete_customer_card_response.rb +11 -0
- data/lib/square/types/delete_customer_custom_attribute_definition_response.rb +10 -0
- data/lib/square/types/delete_customer_custom_attribute_response.rb +11 -0
- data/lib/square/types/delete_customer_group_response.rb +11 -0
- data/lib/square/types/delete_customer_response.rb +11 -0
- data/lib/square/types/delete_dispute_evidence_response.rb +10 -0
- data/lib/square/types/delete_invoice_attachment_response.rb +10 -0
- data/lib/square/types/delete_invoice_response.rb +10 -0
- data/lib/square/types/delete_location_custom_attribute_definition_response.rb +10 -0
- data/lib/square/types/delete_location_custom_attribute_response.rb +11 -0
- data/lib/square/types/delete_loyalty_reward_response.rb +10 -0
- data/lib/square/types/delete_merchant_custom_attribute_definition_response.rb +10 -0
- data/lib/square/types/delete_merchant_custom_attribute_response.rb +11 -0
- data/lib/square/types/delete_order_custom_attribute_definition_response.rb +10 -0
- data/lib/square/types/delete_order_custom_attribute_response.rb +10 -0
- data/lib/square/types/delete_payment_link_response.rb +11 -0
- data/lib/square/types/delete_shift_response.rb +11 -0
- data/lib/square/types/delete_snippet_response.rb +10 -0
- data/lib/square/types/delete_subscription_action_response.rb +12 -0
- data/lib/square/types/delete_timecard_response.rb +11 -0
- data/lib/square/types/delete_webhook_subscription_response.rb +11 -0
- data/lib/square/types/destination.rb +11 -0
- data/lib/square/types/destination_details.rb +14 -0
- data/lib/square/types/destination_details_card_refund_details.rb +11 -0
- data/lib/square/types/destination_details_cash_refund_details.rb +11 -0
- data/lib/square/types/destination_details_external_refund_details.rb +12 -0
- data/lib/square/types/destination_type.rb +13 -0
- data/lib/square/types/device.rb +12 -0
- data/lib/square/types/device_attributes.rb +16 -0
- data/lib/square/types/device_checkout_options.rb +13 -0
- data/lib/square/types/device_code.rb +19 -0
- data/lib/square/types/device_code_paired_event.rb +17 -0
- data/lib/square/types/device_code_paired_event_data.rb +11 -0
- data/lib/square/types/device_code_paired_event_object.rb +9 -0
- data/lib/square/types/device_code_status.rb +13 -0
- data/lib/square/types/device_component_details_application_details.rb +12 -0
- data/lib/square/types/device_component_details_battery_details.rb +10 -0
- data/lib/square/types/device_component_details_card_reader_details.rb +9 -0
- data/lib/square/types/device_component_details_ethernet_details.rb +10 -0
- data/lib/square/types/device_component_details_external_power.rb +13 -0
- data/lib/square/types/device_component_details_measurement.rb +10 -0
- data/lib/square/types/device_component_details_wi_fi_details.rb +13 -0
- data/lib/square/types/device_created_event.rb +14 -0
- data/lib/square/types/device_created_event_data.rb +11 -0
- data/lib/square/types/device_created_event_object.rb +9 -0
- data/lib/square/types/device_details.rb +12 -0
- data/lib/square/types/device_metadata.rb +20 -0
- data/lib/square/types/device_status.rb +9 -0
- data/lib/square/types/device_status_category.rb +12 -0
- data/lib/square/types/digital_wallet_details.rb +12 -0
- data/lib/square/types/disable_card_response.rb +15 -0
- data/lib/square/types/disable_events_response.rb +14 -0
- data/lib/square/types/dismiss_terminal_action_response.rb +10 -0
- data/lib/square/types/dismiss_terminal_checkout_response.rb +10 -0
- data/lib/square/types/dismiss_terminal_refund_response.rb +10 -0
- data/lib/square/types/dispute.rb +25 -0
- data/lib/square/types/dispute_created_event.rb +15 -0
- data/lib/square/types/dispute_created_event_data.rb +11 -0
- data/lib/square/types/dispute_created_event_object.rb +9 -0
- data/lib/square/types/dispute_evidence.rb +15 -0
- data/lib/square/types/dispute_evidence_added_event.rb +17 -0
- data/lib/square/types/dispute_evidence_added_event_data.rb +11 -0
- data/lib/square/types/dispute_evidence_added_event_object.rb +9 -0
- data/lib/square/types/dispute_evidence_created_event.rb +17 -0
- data/lib/square/types/dispute_evidence_created_event_data.rb +11 -0
- data/lib/square/types/dispute_evidence_created_event_object.rb +9 -0
- data/lib/square/types/dispute_evidence_deleted_event.rb +17 -0
- data/lib/square/types/dispute_evidence_deleted_event_data.rb +11 -0
- data/lib/square/types/dispute_evidence_deleted_event_object.rb +9 -0
- data/lib/square/types/dispute_evidence_file.rb +11 -0
- data/lib/square/types/dispute_evidence_removed_event.rb +17 -0
- data/lib/square/types/dispute_evidence_removed_event_data.rb +11 -0
- data/lib/square/types/dispute_evidence_removed_event_object.rb +9 -0
- data/lib/square/types/dispute_evidence_type.rb +24 -0
- data/lib/square/types/dispute_reason.rb +18 -0
- data/lib/square/types/dispute_state.rb +17 -0
- data/lib/square/types/dispute_state_changed_event.rb +17 -0
- data/lib/square/types/dispute_state_changed_event_data.rb +11 -0
- data/lib/square/types/dispute_state_changed_event_object.rb +9 -0
- data/lib/square/types/dispute_state_updated_event.rb +17 -0
- data/lib/square/types/dispute_state_updated_event_data.rb +11 -0
- data/lib/square/types/dispute_state_updated_event_object.rb +9 -0
- data/lib/square/types/disputed_payment.rb +10 -0
- data/lib/square/types/ecom_visibility.rb +13 -0
- data/lib/square/types/employee.rb +21 -0
- data/lib/square/types/employee_status.rb +11 -0
- data/lib/square/types/employee_wage.rb +13 -0
- data/lib/square/types/enable_events_response.rb +14 -0
- data/lib/square/types/error.rb +15 -0
- data/lib/square/types/error_category.rb +17 -0
- data/lib/square/types/error_code.rb +162 -0
- data/lib/square/types/event.rb +14 -0
- data/lib/square/types/event_data.rb +14 -0
- data/lib/square/types/event_metadata.rb +11 -0
- data/lib/square/types/event_type_metadata.rb +12 -0
- data/lib/square/types/exclude_strategy.rb +11 -0
- data/lib/square/types/external_payment_details.rb +15 -0
- data/lib/square/types/filter_value.rb +16 -0
- data/lib/square/types/float_number_range.rb +11 -0
- data/lib/square/types/fulfillment.rb +24 -0
- data/lib/square/types/fulfillment_delivery_details.rb +34 -0
- data/lib/square/types/fulfillment_delivery_details_order_fulfillment_delivery_details_schedule_type.rb +11 -0
- data/lib/square/types/fulfillment_fulfillment_entry.rb +15 -0
- data/lib/square/types/fulfillment_fulfillment_line_item_application.rb +11 -0
- data/lib/square/types/fulfillment_pickup_details.rb +29 -0
- data/lib/square/types/fulfillment_pickup_details_curbside_pickup_details.rb +11 -0
- data/lib/square/types/fulfillment_pickup_details_schedule_type.rb +11 -0
- data/lib/square/types/fulfillment_recipient.rb +14 -0
- data/lib/square/types/fulfillment_shipment_details.rb +24 -0
- data/lib/square/types/fulfillment_state.rb +15 -0
- data/lib/square/types/fulfillment_type.rb +12 -0
- data/lib/square/types/get_bank_account_by_v_1_id_response.rb +11 -0
- data/lib/square/types/get_bank_account_response.rb +11 -0
- data/lib/square/types/get_booking_response.rb +10 -0
- data/lib/square/types/get_break_type_response.rb +13 -0
- data/lib/square/types/get_business_booking_profile_response.rb +10 -0
- data/lib/square/types/get_card_response.rb +15 -0
- data/lib/square/types/get_cash_drawer_shift_response.rb +10 -0
- data/lib/square/types/get_catalog_object_response.rb +13 -0
- data/lib/square/types/get_customer_custom_attribute_definition_response.rb +14 -0
- data/lib/square/types/get_customer_custom_attribute_response.rb +12 -0
- data/lib/square/types/get_customer_group_response.rb +14 -0
- data/lib/square/types/get_customer_response.rb +14 -0
- data/lib/square/types/get_customer_segment_response.rb +13 -0
- data/lib/square/types/get_device_code_response.rb +10 -0
- data/lib/square/types/get_device_response.rb +10 -0
- data/lib/square/types/get_dispute_evidence_response.rb +11 -0
- data/lib/square/types/get_dispute_response.rb +11 -0
- data/lib/square/types/get_employee_response.rb +10 -0
- data/lib/square/types/get_employee_wage_response.rb +13 -0
- data/lib/square/types/get_gift_card_from_gan_response.rb +12 -0
- data/lib/square/types/get_gift_card_from_nonce_response.rb +12 -0
- data/lib/square/types/get_gift_card_response.rb +12 -0
- data/lib/square/types/get_inventory_adjustment_response.rb +10 -0
- data/lib/square/types/get_inventory_changes_response.rb +11 -0
- data/lib/square/types/get_inventory_count_response.rb +11 -0
- data/lib/square/types/get_inventory_physical_count_response.rb +10 -0
- data/lib/square/types/get_inventory_transfer_response.rb +10 -0
- data/lib/square/types/get_invoice_response.rb +11 -0
- data/lib/square/types/get_location_response.rb +12 -0
- data/lib/square/types/get_loyalty_account_response.rb +11 -0
- data/lib/square/types/get_loyalty_program_response.rb +11 -0
- data/lib/square/types/get_loyalty_promotion_response.rb +11 -0
- data/lib/square/types/get_loyalty_reward_response.rb +11 -0
- data/lib/square/types/get_merchant_response.rb +11 -0
- data/lib/square/types/get_order_response.rb +10 -0
- data/lib/square/types/get_payment_link_response.rb +10 -0
- data/lib/square/types/get_payment_refund_response.rb +14 -0
- data/lib/square/types/get_payment_response.rb +11 -0
- data/lib/square/types/get_payout_response.rb +10 -0
- data/lib/square/types/get_shift_response.rb +13 -0
- data/lib/square/types/get_snippet_response.rb +11 -0
- data/lib/square/types/get_subscription_response.rb +12 -0
- data/lib/square/types/get_team_member_booking_profile_response.rb +12 -0
- data/lib/square/types/get_team_member_response.rb +11 -0
- data/lib/square/types/get_team_member_wage_response.rb +13 -0
- data/lib/square/types/get_terminal_action_response.rb +10 -0
- data/lib/square/types/get_terminal_checkout_response.rb +10 -0
- data/lib/square/types/get_terminal_refund_response.rb +10 -0
- data/lib/square/types/get_transaction_response.rb +14 -0
- data/lib/square/types/get_vendor_response.rb +11 -0
- data/lib/square/types/get_wage_setting_response.rb +11 -0
- data/lib/square/types/get_webhook_subscription_response.rb +15 -0
- data/lib/square/types/gift_card.rb +17 -0
- data/lib/square/types/gift_card_activity.rb +49 -0
- data/lib/square/types/gift_card_activity_activate.rb +14 -0
- data/lib/square/types/gift_card_activity_adjust_decrement.rb +11 -0
- data/lib/square/types/gift_card_activity_adjust_decrement_reason.rb +13 -0
- data/lib/square/types/gift_card_activity_adjust_increment.rb +11 -0
- data/lib/square/types/gift_card_activity_adjust_increment_reason.rb +12 -0
- data/lib/square/types/gift_card_activity_block.rb +10 -0
- data/lib/square/types/gift_card_activity_clear_balance.rb +10 -0
- data/lib/square/types/gift_card_activity_clear_balance_reason.rb +12 -0
- data/lib/square/types/gift_card_activity_created_event.rb +14 -0
- data/lib/square/types/gift_card_activity_created_event_data.rb +12 -0
- data/lib/square/types/gift_card_activity_created_event_object.rb +11 -0
- data/lib/square/types/gift_card_activity_deactivate.rb +10 -0
- data/lib/square/types/gift_card_activity_deactivate_reason.rb +12 -0
- data/lib/square/types/gift_card_activity_import.rb +12 -0
- data/lib/square/types/gift_card_activity_import_reversal.rb +10 -0
- data/lib/square/types/gift_card_activity_load.rb +14 -0
- data/lib/square/types/gift_card_activity_redeem.rb +13 -0
- data/lib/square/types/gift_card_activity_redeem_status.rb +12 -0
- data/lib/square/types/gift_card_activity_refund.rb +13 -0
- data/lib/square/types/gift_card_activity_transfer_balance_from.rb +11 -0
- data/lib/square/types/gift_card_activity_transfer_balance_to.rb +11 -0
- data/lib/square/types/gift_card_activity_type.rb +24 -0
- data/lib/square/types/gift_card_activity_unblock.rb +10 -0
- data/lib/square/types/gift_card_activity_unlinked_activity_refund.rb +12 -0
- data/lib/square/types/gift_card_activity_updated_event.rb +18 -0
- data/lib/square/types/gift_card_activity_updated_event_data.rb +12 -0
- data/lib/square/types/gift_card_activity_updated_event_object.rb +11 -0
- data/lib/square/types/gift_card_created_event.rb +14 -0
- data/lib/square/types/gift_card_created_event_data.rb +12 -0
- data/lib/square/types/gift_card_created_event_object.rb +10 -0
- data/lib/square/types/gift_card_customer_linked_event.rb +14 -0
- data/lib/square/types/gift_card_customer_linked_event_data.rb +12 -0
- data/lib/square/types/gift_card_customer_linked_event_object.rb +12 -0
- data/lib/square/types/gift_card_customer_unlinked_event.rb +14 -0
- data/lib/square/types/gift_card_customer_unlinked_event_data.rb +12 -0
- data/lib/square/types/gift_card_customer_unlinked_event_object.rb +12 -0
- data/lib/square/types/gift_card_gan_source.rb +11 -0
- data/lib/square/types/gift_card_status.rb +13 -0
- data/lib/square/types/gift_card_type.rb +11 -0
- data/lib/square/types/gift_card_updated_event.rb +15 -0
- data/lib/square/types/gift_card_updated_event_data.rb +12 -0
- data/lib/square/types/gift_card_updated_event_object.rb +10 -0
- data/lib/square/types/inventory_adjustment.rb +29 -0
- data/lib/square/types/inventory_adjustment_group.rb +12 -0
- data/lib/square/types/inventory_alert_type.rb +11 -0
- data/lib/square/types/inventory_change.rb +17 -0
- data/lib/square/types/inventory_change_type.rb +12 -0
- data/lib/square/types/inventory_count.rb +18 -0
- data/lib/square/types/inventory_count_updated_event.rb +15 -0
- data/lib/square/types/inventory_count_updated_event_data.rb +11 -0
- data/lib/square/types/inventory_count_updated_event_object.rb +11 -0
- data/lib/square/types/inventory_physical_count.rb +24 -0
- data/lib/square/types/inventory_state.rb +25 -0
- data/lib/square/types/inventory_transfer.rb +23 -0
- data/lib/square/types/invoice.rb +43 -0
- data/lib/square/types/invoice_accepted_payment_methods.rb +14 -0
- data/lib/square/types/invoice_attachment.rb +16 -0
- data/lib/square/types/invoice_automatic_payment_source.rb +12 -0
- data/lib/square/types/invoice_canceled_event.rb +14 -0
- data/lib/square/types/invoice_canceled_event_data.rb +11 -0
- data/lib/square/types/invoice_canceled_event_object.rb +9 -0
- data/lib/square/types/invoice_created_event.rb +14 -0
- data/lib/square/types/invoice_created_event_data.rb +11 -0
- data/lib/square/types/invoice_created_event_object.rb +9 -0
- data/lib/square/types/invoice_custom_field.rb +16 -0
- data/lib/square/types/invoice_custom_field_placement.rb +11 -0
- data/lib/square/types/invoice_deleted_event.rb +14 -0
- data/lib/square/types/invoice_deleted_event_data.rb +11 -0
- data/lib/square/types/invoice_delivery_method.rb +12 -0
- data/lib/square/types/invoice_filter.rb +11 -0
- data/lib/square/types/invoice_payment_made_event.rb +15 -0
- data/lib/square/types/invoice_payment_made_event_data.rb +11 -0
- data/lib/square/types/invoice_payment_made_event_object.rb +9 -0
- data/lib/square/types/invoice_payment_reminder.rb +16 -0
- data/lib/square/types/invoice_payment_reminder_status.rb +12 -0
- data/lib/square/types/invoice_payment_request.rb +31 -0
- data/lib/square/types/invoice_published_event.rb +14 -0
- data/lib/square/types/invoice_published_event_data.rb +11 -0
- data/lib/square/types/invoice_published_event_object.rb +9 -0
- data/lib/square/types/invoice_query.rb +11 -0
- data/lib/square/types/invoice_recipient.rb +22 -0
- data/lib/square/types/invoice_recipient_tax_ids.rb +12 -0
- data/lib/square/types/invoice_refunded_event.rb +15 -0
- data/lib/square/types/invoice_refunded_event_data.rb +11 -0
- data/lib/square/types/invoice_refunded_event_object.rb +9 -0
- data/lib/square/types/invoice_request_method.rb +16 -0
- data/lib/square/types/invoice_request_type.rb +12 -0
- data/lib/square/types/invoice_scheduled_charge_failed_event.rb +14 -0
- data/lib/square/types/invoice_scheduled_charge_failed_event_data.rb +11 -0
- data/lib/square/types/invoice_scheduled_charge_failed_event_object.rb +9 -0
- data/lib/square/types/invoice_sort.rb +11 -0
- data/lib/square/types/invoice_status.rb +19 -0
- data/lib/square/types/invoice_updated_event.rb +14 -0
- data/lib/square/types/invoice_updated_event_data.rb +11 -0
- data/lib/square/types/invoice_updated_event_object.rb +9 -0
- data/lib/square/types/item_variation_location_overrides.rb +17 -0
- data/lib/square/types/job.rb +17 -0
- data/lib/square/types/job_assignment.rb +16 -0
- data/lib/square/types/job_assignment_pay_type.rb +12 -0
- data/lib/square/types/job_created_event.rb +14 -0
- data/lib/square/types/job_created_event_data.rb +11 -0
- data/lib/square/types/job_created_event_object.rb +9 -0
- data/lib/square/types/job_updated_event.rb +14 -0
- data/lib/square/types/job_updated_event_data.rb +11 -0
- data/lib/square/types/job_updated_event_object.rb +9 -0
- data/lib/square/types/labor_scheduled_shift_created_event.rb +15 -0
- data/lib/square/types/labor_scheduled_shift_created_event_data.rb +11 -0
- data/lib/square/types/labor_scheduled_shift_created_event_object.rb +9 -0
- data/lib/square/types/labor_scheduled_shift_deleted_event.rb +15 -0
- data/lib/square/types/labor_scheduled_shift_deleted_event_data.rb +11 -0
- data/lib/square/types/labor_scheduled_shift_published_event.rb +15 -0
- data/lib/square/types/labor_scheduled_shift_published_event_data.rb +11 -0
- data/lib/square/types/labor_scheduled_shift_published_event_object.rb +9 -0
- data/lib/square/types/labor_scheduled_shift_updated_event.rb +15 -0
- data/lib/square/types/labor_scheduled_shift_updated_event_data.rb +11 -0
- data/lib/square/types/labor_scheduled_shift_updated_event_object.rb +9 -0
- data/lib/square/types/labor_shift_created_event.rb +16 -0
- data/lib/square/types/labor_shift_created_event_data.rb +11 -0
- data/lib/square/types/labor_shift_created_event_object.rb +9 -0
- data/lib/square/types/labor_shift_deleted_event.rb +16 -0
- data/lib/square/types/labor_shift_deleted_event_data.rb +11 -0
- data/lib/square/types/labor_shift_updated_event.rb +16 -0
- data/lib/square/types/labor_shift_updated_event_data.rb +11 -0
- data/lib/square/types/labor_shift_updated_event_object.rb +9 -0
- data/lib/square/types/labor_timecard_created_event.rb +14 -0
- data/lib/square/types/labor_timecard_created_event_data.rb +11 -0
- data/lib/square/types/labor_timecard_created_event_object.rb +9 -0
- data/lib/square/types/labor_timecard_deleted_event.rb +14 -0
- data/lib/square/types/labor_timecard_deleted_event_data.rb +11 -0
- data/lib/square/types/labor_timecard_updated_event.rb +14 -0
- data/lib/square/types/labor_timecard_updated_event_data.rb +11 -0
- data/lib/square/types/labor_timecard_updated_event_object.rb +9 -0
- data/lib/square/types/link_customer_to_gift_card_response.rb +12 -0
- data/lib/square/types/list_bank_accounts_response.rb +12 -0
- data/lib/square/types/list_booking_custom_attribute_definitions_response.rb +16 -0
- data/lib/square/types/list_booking_custom_attributes_response.rb +16 -0
- data/lib/square/types/list_bookings_response.rb +11 -0
- data/lib/square/types/list_break_types_response.rb +14 -0
- data/lib/square/types/list_cards_response.rb +16 -0
- data/lib/square/types/list_cash_drawer_shift_events_response.rb +13 -0
- data/lib/square/types/list_cash_drawer_shifts_response.rb +13 -0
- data/lib/square/types/list_catalog_response.rb +11 -0
- data/lib/square/types/list_customer_custom_attribute_definitions_response.rb +16 -0
- data/lib/square/types/list_customer_custom_attributes_response.rb +16 -0
- data/lib/square/types/list_customer_groups_response.rb +15 -0
- data/lib/square/types/list_customer_segments_response.rb +14 -0
- data/lib/square/types/list_customers_response.rb +16 -0
- data/lib/square/types/list_device_codes_response.rb +11 -0
- data/lib/square/types/list_devices_response.rb +11 -0
- data/lib/square/types/list_dispute_evidence_response.rb +12 -0
- data/lib/square/types/list_disputes_response.rb +12 -0
- data/lib/square/types/list_employee_wages_response.rb +13 -0
- data/lib/square/types/list_employees_response.rb +11 -0
- data/lib/square/types/list_event_types_response.rb +16 -0
- data/lib/square/types/list_gift_card_activities_response.rb +15 -0
- data/lib/square/types/list_gift_cards_response.rb +13 -0
- data/lib/square/types/list_invoices_response.rb +12 -0
- data/lib/square/types/list_jobs_response.rb +13 -0
- data/lib/square/types/list_location_booking_profiles_response.rb +13 -0
- data/lib/square/types/list_location_custom_attribute_definitions_response.rb +16 -0
- data/lib/square/types/list_location_custom_attributes_response.rb +16 -0
- data/lib/square/types/list_locations_response.rb +14 -0
- data/lib/square/types/list_loyalty_programs_response.rb +11 -0
- data/lib/square/types/list_loyalty_promotions_response.rb +16 -0
- data/lib/square/types/list_merchant_custom_attribute_definitions_response.rb +16 -0
- data/lib/square/types/list_merchant_custom_attributes_response.rb +16 -0
- data/lib/square/types/list_merchants_response.rb +12 -0
- data/lib/square/types/list_order_custom_attribute_definitions_response.rb +14 -0
- data/lib/square/types/list_order_custom_attributes_response.rb +14 -0
- data/lib/square/types/list_payment_links_response.rb +11 -0
- data/lib/square/types/list_payment_refunds_request_sort_field.rb +11 -0
- data/lib/square/types/list_payment_refunds_response.rb +14 -0
- data/lib/square/types/list_payments_request_sort_field.rb +12 -0
- data/lib/square/types/list_payments_response.rb +12 -0
- data/lib/square/types/list_payout_entries_response.rb +12 -0
- data/lib/square/types/list_payouts_response.rb +12 -0
- data/lib/square/types/list_sites_response.rb +11 -0
- data/lib/square/types/list_subscription_events_response.rb +15 -0
- data/lib/square/types/list_team_member_booking_profiles_response.rb +13 -0
- data/lib/square/types/list_team_member_wages_response.rb +15 -0
- data/lib/square/types/list_transactions_response.rb +15 -0
- data/lib/square/types/list_webhook_event_types_response.rb +16 -0
- data/lib/square/types/list_webhook_subscriptions_response.rb +18 -0
- data/lib/square/types/list_workweek_configs_response.rb +16 -0
- data/lib/square/types/location.rb +38 -0
- data/lib/square/types/location_booking_profile.rb +12 -0
- data/lib/square/types/location_capability.rb +12 -0
- data/lib/square/types/location_created_event.rb +15 -0
- data/lib/square/types/location_created_event_data.rb +10 -0
- data/lib/square/types/location_custom_attribute_definition_owned_created_event.rb +15 -0
- data/lib/square/types/location_custom_attribute_definition_owned_deleted_event.rb +16 -0
- data/lib/square/types/location_custom_attribute_definition_owned_updated_event.rb +16 -0
- data/lib/square/types/location_custom_attribute_definition_visible_created_event.rb +17 -0
- data/lib/square/types/location_custom_attribute_definition_visible_deleted_event.rb +18 -0
- data/lib/square/types/location_custom_attribute_definition_visible_updated_event.rb +18 -0
- data/lib/square/types/location_custom_attribute_owned_deleted_event.rb +17 -0
- data/lib/square/types/location_custom_attribute_owned_updated_event.rb +17 -0
- data/lib/square/types/location_custom_attribute_visible_deleted_event.rb +22 -0
- data/lib/square/types/location_custom_attribute_visible_updated_event.rb +22 -0
- data/lib/square/types/location_settings_updated_event.rb +14 -0
- data/lib/square/types/location_settings_updated_event_data.rb +11 -0
- data/lib/square/types/location_settings_updated_event_object.rb +9 -0
- data/lib/square/types/location_status.rb +11 -0
- data/lib/square/types/location_type.rb +11 -0
- data/lib/square/types/location_updated_event.rb +15 -0
- data/lib/square/types/location_updated_event_data.rb +10 -0
- data/lib/square/types/loyalty_account.rb +22 -0
- data/lib/square/types/loyalty_account_created_event.rb +14 -0
- data/lib/square/types/loyalty_account_created_event_data.rb +12 -0
- data/lib/square/types/loyalty_account_created_event_object.rb +9 -0
- data/lib/square/types/loyalty_account_deleted_event.rb +14 -0
- data/lib/square/types/loyalty_account_deleted_event_data.rb +12 -0
- data/lib/square/types/loyalty_account_deleted_event_object.rb +9 -0
- data/lib/square/types/loyalty_account_expiring_point_deadline.rb +11 -0
- data/lib/square/types/loyalty_account_mapping.rb +15 -0
- data/lib/square/types/loyalty_account_updated_event.rb +14 -0
- data/lib/square/types/loyalty_account_updated_event_data.rb +12 -0
- data/lib/square/types/loyalty_account_updated_event_object.rb +9 -0
- data/lib/square/types/loyalty_event.rb +26 -0
- data/lib/square/types/loyalty_event_accumulate_points.rb +12 -0
- data/lib/square/types/loyalty_event_accumulate_promotion_points.rb +13 -0
- data/lib/square/types/loyalty_event_adjust_points.rb +12 -0
- data/lib/square/types/loyalty_event_create_reward.rb +12 -0
- data/lib/square/types/loyalty_event_created_event.rb +14 -0
- data/lib/square/types/loyalty_event_created_event_data.rb +12 -0
- data/lib/square/types/loyalty_event_created_event_object.rb +9 -0
- data/lib/square/types/loyalty_event_date_time_filter.rb +10 -0
- data/lib/square/types/loyalty_event_delete_reward.rb +12 -0
- data/lib/square/types/loyalty_event_expire_points.rb +11 -0
- data/lib/square/types/loyalty_event_filter.rb +17 -0
- data/lib/square/types/loyalty_event_location_filter.rb +10 -0
- data/lib/square/types/loyalty_event_loyalty_account_filter.rb +10 -0
- data/lib/square/types/loyalty_event_order_filter.rb +10 -0
- data/lib/square/types/loyalty_event_other.rb +11 -0
- data/lib/square/types/loyalty_event_query.rb +10 -0
- data/lib/square/types/loyalty_event_redeem_reward.rb +12 -0
- data/lib/square/types/loyalty_event_source.rb +11 -0
- data/lib/square/types/loyalty_event_type.rb +17 -0
- data/lib/square/types/loyalty_event_type_filter.rb +10 -0
- data/lib/square/types/loyalty_program.rb +24 -0
- data/lib/square/types/loyalty_program_accrual_rule.rb +17 -0
- data/lib/square/types/loyalty_program_accrual_rule_category_data.rb +10 -0
- data/lib/square/types/loyalty_program_accrual_rule_item_variation_data.rb +10 -0
- data/lib/square/types/loyalty_program_accrual_rule_spend_data.rb +13 -0
- data/lib/square/types/loyalty_program_accrual_rule_tax_mode.rb +11 -0
- data/lib/square/types/loyalty_program_accrual_rule_type.rb +13 -0
- data/lib/square/types/loyalty_program_accrual_rule_visit_data.rb +11 -0
- data/lib/square/types/loyalty_program_created_event.rb +14 -0
- data/lib/square/types/loyalty_program_created_event_data.rb +12 -0
- data/lib/square/types/loyalty_program_created_event_object.rb +10 -0
- data/lib/square/types/loyalty_program_expiration_policy.rb +10 -0
- data/lib/square/types/loyalty_program_reward_tier.rb +14 -0
- data/lib/square/types/loyalty_program_status.rb +11 -0
- data/lib/square/types/loyalty_program_terminology.rb +11 -0
- data/lib/square/types/loyalty_program_updated_event.rb +14 -0
- data/lib/square/types/loyalty_program_updated_event_data.rb +12 -0
- data/lib/square/types/loyalty_program_updated_event_object.rb +10 -0
- data/lib/square/types/loyalty_promotion.rb +25 -0
- data/lib/square/types/loyalty_promotion_available_time_data.rb +13 -0
- data/lib/square/types/loyalty_promotion_created_event.rb +14 -0
- data/lib/square/types/loyalty_promotion_created_event_data.rb +12 -0
- data/lib/square/types/loyalty_promotion_created_event_object.rb +10 -0
- data/lib/square/types/loyalty_promotion_incentive.rb +18 -0
- data/lib/square/types/loyalty_promotion_incentive_points_addition_data.rb +10 -0
- data/lib/square/types/loyalty_promotion_incentive_points_multiplier_data.rb +11 -0
- data/lib/square/types/loyalty_promotion_incentive_type.rb +11 -0
- data/lib/square/types/loyalty_promotion_status.rb +13 -0
- data/lib/square/types/loyalty_promotion_trigger_limit.rb +15 -0
- data/lib/square/types/loyalty_promotion_trigger_limit_interval.rb +11 -0
- data/lib/square/types/loyalty_promotion_updated_event.rb +15 -0
- data/lib/square/types/loyalty_promotion_updated_event_data.rb +12 -0
- data/lib/square/types/loyalty_promotion_updated_event_object.rb +10 -0
- data/lib/square/types/loyalty_reward.rb +19 -0
- data/lib/square/types/loyalty_reward_status.rb +12 -0
- data/lib/square/types/measurement_unit.rb +19 -0
- data/lib/square/types/measurement_unit_area.rb +17 -0
- data/lib/square/types/measurement_unit_custom.rb +11 -0
- data/lib/square/types/measurement_unit_length.rb +17 -0
- data/lib/square/types/measurement_unit_time.rb +14 -0
- data/lib/square/types/measurement_unit_unit_type.rb +15 -0
- data/lib/square/types/measurement_unit_volume.rb +20 -0
- data/lib/square/types/measurement_unit_weight.rb +15 -0
- data/lib/square/types/merchant.rb +17 -0
- data/lib/square/types/merchant_custom_attribute_definition_owned_created_event.rb +16 -0
- data/lib/square/types/merchant_custom_attribute_definition_owned_deleted_event.rb +16 -0
- data/lib/square/types/merchant_custom_attribute_definition_owned_updated_event.rb +16 -0
- data/lib/square/types/merchant_custom_attribute_definition_visible_created_event.rb +17 -0
- data/lib/square/types/merchant_custom_attribute_definition_visible_deleted_event.rb +17 -0
- data/lib/square/types/merchant_custom_attribute_definition_visible_updated_event.rb +17 -0
- data/lib/square/types/merchant_custom_attribute_owned_deleted_event.rb +17 -0
- data/lib/square/types/merchant_custom_attribute_owned_updated_event.rb +17 -0
- data/lib/square/types/merchant_custom_attribute_visible_deleted_event.rb +17 -0
- data/lib/square/types/merchant_custom_attribute_visible_updated_event.rb +17 -0
- data/lib/square/types/merchant_settings_updated_event.rb +14 -0
- data/lib/square/types/merchant_settings_updated_event_data.rb +11 -0
- data/lib/square/types/merchant_settings_updated_event_object.rb +9 -0
- data/lib/square/types/merchant_status.rb +11 -0
- data/lib/square/types/modifier_location_overrides.rb +12 -0
- data/lib/square/types/money.rb +16 -0
- data/lib/square/types/oauth_authorization_revoked_event.rb +14 -0
- data/lib/square/types/oauth_authorization_revoked_event_data.rb +11 -0
- data/lib/square/types/oauth_authorization_revoked_event_object.rb +11 -0
- data/lib/square/types/oauth_authorization_revoked_event_revocation_object.rb +12 -0
- data/lib/square/types/oauth_authorization_revoked_event_revoker_type.rb +12 -0
- data/lib/square/types/obtain_token_response.rb +20 -0
- data/lib/square/types/offline_payment_details.rb +10 -0
- data/lib/square/types/order.rb +49 -0
- data/lib/square/types/order_created.rb +13 -0
- data/lib/square/types/order_created_event.rb +17 -0
- data/lib/square/types/order_created_event_data.rb +11 -0
- data/lib/square/types/order_created_object.rb +9 -0
- data/lib/square/types/order_custom_attribute_definition_owned_created_event.rb +14 -0
- data/lib/square/types/order_custom_attribute_definition_owned_deleted_event.rb +14 -0
- data/lib/square/types/order_custom_attribute_definition_owned_updated_event.rb +14 -0
- data/lib/square/types/order_custom_attribute_definition_visible_created_event.rb +14 -0
- data/lib/square/types/order_custom_attribute_definition_visible_deleted_event.rb +14 -0
- data/lib/square/types/order_custom_attribute_definition_visible_updated_event.rb +14 -0
- data/lib/square/types/order_custom_attribute_owned_deleted_event.rb +14 -0
- data/lib/square/types/order_custom_attribute_owned_updated_event.rb +14 -0
- data/lib/square/types/order_custom_attribute_visible_deleted_event.rb +14 -0
- data/lib/square/types/order_custom_attribute_visible_updated_event.rb +14 -0
- data/lib/square/types/order_entry.rb +13 -0
- data/lib/square/types/order_fulfillment_delivery_details_schedule_type.rb +11 -0
- data/lib/square/types/order_fulfillment_fulfillment_line_item_application.rb +11 -0
- data/lib/square/types/order_fulfillment_pickup_details_schedule_type.rb +11 -0
- data/lib/square/types/order_fulfillment_state.rb +15 -0
- data/lib/square/types/order_fulfillment_type.rb +12 -0
- data/lib/square/types/order_fulfillment_updated.rb +17 -0
- data/lib/square/types/order_fulfillment_updated_event.rb +16 -0
- data/lib/square/types/order_fulfillment_updated_event_data.rb +11 -0
- data/lib/square/types/order_fulfillment_updated_object.rb +9 -0
- data/lib/square/types/order_fulfillment_updated_update.rb +12 -0
- data/lib/square/types/order_line_item.rb +40 -0
- data/lib/square/types/order_line_item_applied_discount.rb +17 -0
- data/lib/square/types/order_line_item_applied_service_charge.rb +11 -0
- data/lib/square/types/order_line_item_applied_tax.rb +17 -0
- data/lib/square/types/order_line_item_discount.rb +26 -0
- data/lib/square/types/order_line_item_discount_scope.rb +12 -0
- data/lib/square/types/order_line_item_discount_type.rb +14 -0
- data/lib/square/types/order_line_item_item_type.rb +12 -0
- data/lib/square/types/order_line_item_modifier.rb +17 -0
- data/lib/square/types/order_line_item_pricing_blocklists.rb +17 -0
- data/lib/square/types/order_line_item_pricing_blocklists_blocked_discount.rb +13 -0
- data/lib/square/types/order_line_item_pricing_blocklists_blocked_tax.rb +13 -0
- data/lib/square/types/order_line_item_tax.rb +23 -0
- data/lib/square/types/order_line_item_tax_scope.rb +12 -0
- data/lib/square/types/order_line_item_tax_type.rb +12 -0
- data/lib/square/types/order_money_amounts.rb +14 -0
- data/lib/square/types/order_pricing_options.rb +13 -0
- data/lib/square/types/order_quantity_unit.rb +14 -0
- data/lib/square/types/order_return.rb +24 -0
- data/lib/square/types/order_return_discount.rb +24 -0
- data/lib/square/types/order_return_line_item.rb +38 -0
- data/lib/square/types/order_return_line_item_modifier.rb +17 -0
- data/lib/square/types/order_return_service_charge.rb +28 -0
- data/lib/square/types/order_return_tax.rb +22 -0
- data/lib/square/types/order_return_tip.rb +13 -0
- data/lib/square/types/order_reward.rb +12 -0
- data/lib/square/types/order_rounding_adjustment.rb +13 -0
- data/lib/square/types/order_service_charge.rb +29 -0
- data/lib/square/types/order_service_charge_calculation_phase.rb +13 -0
- data/lib/square/types/order_service_charge_scope.rb +12 -0
- data/lib/square/types/order_service_charge_treatment_type.rb +11 -0
- data/lib/square/types/order_service_charge_type.rb +11 -0
- data/lib/square/types/order_source.rb +10 -0
- data/lib/square/types/order_state.rb +13 -0
- data/lib/square/types/order_updated.rb +14 -0
- data/lib/square/types/order_updated_event.rb +16 -0
- data/lib/square/types/order_updated_event_data.rb +11 -0
- data/lib/square/types/order_updated_object.rb +9 -0
- data/lib/square/types/pause_subscription_response.rb +13 -0
- data/lib/square/types/pay_order_response.rb +12 -0
- data/lib/square/types/payment.rb +55 -0
- data/lib/square/types/payment_balance_activity_app_fee_refund_detail.rb +11 -0
- data/lib/square/types/payment_balance_activity_app_fee_revenue_detail.rb +10 -0
- data/lib/square/types/payment_balance_activity_automatic_savings_detail.rb +10 -0
- data/lib/square/types/payment_balance_activity_automatic_savings_reversed_detail.rb +10 -0
- data/lib/square/types/payment_balance_activity_charge_detail.rb +9 -0
- data/lib/square/types/payment_balance_activity_deposit_fee_detail.rb +9 -0
- data/lib/square/types/payment_balance_activity_deposit_fee_reversed_detail.rb +9 -0
- data/lib/square/types/payment_balance_activity_dispute_detail.rb +10 -0
- data/lib/square/types/payment_balance_activity_fee_detail.rb +9 -0
- data/lib/square/types/payment_balance_activity_free_processing_detail.rb +9 -0
- data/lib/square/types/payment_balance_activity_hold_adjustment_detail.rb +9 -0
- data/lib/square/types/payment_balance_activity_open_dispute_detail.rb +10 -0
- data/lib/square/types/payment_balance_activity_other_adjustment_detail.rb +9 -0
- data/lib/square/types/payment_balance_activity_other_detail.rb +9 -0
- data/lib/square/types/payment_balance_activity_refund_detail.rb +10 -0
- data/lib/square/types/payment_balance_activity_release_adjustment_detail.rb +9 -0
- data/lib/square/types/payment_balance_activity_reserve_hold_detail.rb +9 -0
- data/lib/square/types/payment_balance_activity_reserve_release_detail.rb +9 -0
- data/lib/square/types/payment_balance_activity_square_capital_payment_detail.rb +9 -0
- data/lib/square/types/payment_balance_activity_square_capital_reversed_payment_detail.rb +9 -0
- data/lib/square/types/payment_balance_activity_square_payroll_transfer_detail.rb +9 -0
- data/lib/square/types/payment_balance_activity_square_payroll_transfer_reversed_detail.rb +9 -0
- data/lib/square/types/payment_balance_activity_tax_on_fee_detail.rb +10 -0
- data/lib/square/types/payment_balance_activity_third_party_fee_detail.rb +9 -0
- data/lib/square/types/payment_balance_activity_third_party_fee_refund_detail.rb +10 -0
- data/lib/square/types/payment_created_event.rb +14 -0
- data/lib/square/types/payment_created_event_data.rb +11 -0
- data/lib/square/types/payment_created_event_object.rb +9 -0
- data/lib/square/types/payment_link.rb +19 -0
- data/lib/square/types/payment_link_related_resources.rb +12 -0
- data/lib/square/types/payment_options.rb +12 -0
- data/lib/square/types/payment_options_delay_action.rb +11 -0
- data/lib/square/types/payment_refund.rb +28 -0
- data/lib/square/types/payment_updated_event.rb +16 -0
- data/lib/square/types/payment_updated_event_data.rb +11 -0
- data/lib/square/types/payment_updated_event_object.rb +9 -0
- data/lib/square/types/payout.rb +22 -0
- data/lib/square/types/payout_entry.rb +90 -0
- data/lib/square/types/payout_failed_event.rb +15 -0
- data/lib/square/types/payout_failed_event_data.rb +11 -0
- data/lib/square/types/payout_failed_event_object.rb +9 -0
- data/lib/square/types/payout_fee.rb +12 -0
- data/lib/square/types/payout_fee_type.rb +11 -0
- data/lib/square/types/payout_paid_event.rb +15 -0
- data/lib/square/types/payout_paid_event_data.rb +11 -0
- data/lib/square/types/payout_paid_event_object.rb +9 -0
- data/lib/square/types/payout_sent_event.rb +15 -0
- data/lib/square/types/payout_sent_event_data.rb +11 -0
- data/lib/square/types/payout_sent_event_object.rb +9 -0
- data/lib/square/types/payout_status.rb +12 -0
- data/lib/square/types/payout_type.rb +11 -0
- data/lib/square/types/phase.rb +13 -0
- data/lib/square/types/phase_input.rb +11 -0
- data/lib/square/types/pre_populated_data.rb +14 -0
- data/lib/square/types/processing_fee.rb +12 -0
- data/lib/square/types/product.rb +19 -0
- data/lib/square/types/publish_invoice_response.rb +11 -0
- data/lib/square/types/publish_scheduled_shift_response.rb +12 -0
- data/lib/square/types/qr_code_options.rb +12 -0
- data/lib/square/types/quick_pay.rb +14 -0
- data/lib/square/types/range.rb +11 -0
- data/lib/square/types/receipt_options.rb +12 -0
- data/lib/square/types/redeem_loyalty_reward_response.rb +11 -0
- data/lib/square/types/refund.rb +21 -0
- data/lib/square/types/refund_created_event.rb +14 -0
- data/lib/square/types/refund_created_event_data.rb +11 -0
- data/lib/square/types/refund_created_event_object.rb +9 -0
- data/lib/square/types/refund_payment_response.rb +15 -0
- data/lib/square/types/refund_status.rb +13 -0
- data/lib/square/types/refund_updated_event.rb +15 -0
- data/lib/square/types/refund_updated_event_data.rb +11 -0
- data/lib/square/types/refund_updated_event_object.rb +9 -0
- data/lib/square/types/register_domain_response.rb +14 -0
- data/lib/square/types/register_domain_response_status.rb +11 -0
- data/lib/square/types/remove_group_from_customer_response.rb +12 -0
- data/lib/square/types/resume_subscription_response.rb +13 -0
- data/lib/square/types/retrieve_booking_custom_attribute_definition_response.rb +14 -0
- data/lib/square/types/retrieve_booking_custom_attribute_response.rb +12 -0
- data/lib/square/types/retrieve_job_response.rb +12 -0
- data/lib/square/types/retrieve_location_booking_profile_response.rb +10 -0
- data/lib/square/types/retrieve_location_custom_attribute_definition_response.rb +14 -0
- data/lib/square/types/retrieve_location_custom_attribute_response.rb +12 -0
- data/lib/square/types/retrieve_location_settings_response.rb +10 -0
- data/lib/square/types/retrieve_merchant_custom_attribute_definition_response.rb +14 -0
- data/lib/square/types/retrieve_merchant_custom_attribute_response.rb +12 -0
- data/lib/square/types/retrieve_merchant_settings_response.rb +10 -0
- data/lib/square/types/retrieve_order_custom_attribute_definition_response.rb +13 -0
- data/lib/square/types/retrieve_order_custom_attribute_response.rb +11 -0
- data/lib/square/types/retrieve_scheduled_shift_response.rb +12 -0
- data/lib/square/types/retrieve_timecard_response.rb +13 -0
- data/lib/square/types/retrieve_token_status_response.rb +15 -0
- data/lib/square/types/revoke_token_response.rb +10 -0
- data/lib/square/types/risk_evaluation.rb +16 -0
- data/lib/square/types/risk_evaluation_risk_level.rb +13 -0
- data/lib/square/types/save_card_options.rb +12 -0
- data/lib/square/types/scheduled_shift.rb +17 -0
- data/lib/square/types/scheduled_shift_details.rb +18 -0
- data/lib/square/types/scheduled_shift_filter.rb +21 -0
- data/lib/square/types/scheduled_shift_filter_assignment_status.rb +11 -0
- data/lib/square/types/scheduled_shift_filter_scheduled_shift_status.rb +11 -0
- data/lib/square/types/scheduled_shift_notification_audience.rb +12 -0
- data/lib/square/types/scheduled_shift_query.rb +12 -0
- data/lib/square/types/scheduled_shift_sort.rb +12 -0
- data/lib/square/types/scheduled_shift_sort_field.rb +13 -0
- data/lib/square/types/scheduled_shift_workday.rb +15 -0
- data/lib/square/types/scheduled_shift_workday_matcher.rb +12 -0
- data/lib/square/types/search_availability_filter.rb +15 -0
- data/lib/square/types/search_availability_query.rb +10 -0
- data/lib/square/types/search_availability_response.rb +10 -0
- data/lib/square/types/search_catalog_items_request_stock_level.rb +11 -0
- data/lib/square/types/search_catalog_items_response.rb +13 -0
- data/lib/square/types/search_catalog_objects_response.rb +15 -0
- data/lib/square/types/search_customers_response.rb +16 -0
- data/lib/square/types/search_events_filter.rb +13 -0
- data/lib/square/types/search_events_query.rb +11 -0
- data/lib/square/types/search_events_response.rb +17 -0
- data/lib/square/types/search_events_sort.rb +11 -0
- data/lib/square/types/search_invoices_response.rb +12 -0
- data/lib/square/types/search_loyalty_accounts_request_loyalty_account_query.rb +13 -0
- data/lib/square/types/search_loyalty_accounts_response.rb +14 -0
- data/lib/square/types/search_loyalty_events_response.rb +13 -0
- data/lib/square/types/search_loyalty_rewards_request_loyalty_reward_query.rb +11 -0
- data/lib/square/types/search_loyalty_rewards_response.rb +12 -0
- data/lib/square/types/search_orders_customer_filter.rb +12 -0
- data/lib/square/types/search_orders_date_time_filter.rb +25 -0
- data/lib/square/types/search_orders_filter.rb +15 -0
- data/lib/square/types/search_orders_fulfillment_filter.rb +15 -0
- data/lib/square/types/search_orders_query.rb +11 -0
- data/lib/square/types/search_orders_response.rb +14 -0
- data/lib/square/types/search_orders_sort.rb +12 -0
- data/lib/square/types/search_orders_sort_field.rb +12 -0
- data/lib/square/types/search_orders_source_filter.rb +10 -0
- data/lib/square/types/search_orders_state_filter.rb +10 -0
- data/lib/square/types/search_scheduled_shifts_response.rb +15 -0
- data/lib/square/types/search_shifts_response.rb +14 -0
- data/lib/square/types/search_subscriptions_filter.rb +13 -0
- data/lib/square/types/search_subscriptions_query.rb +10 -0
- data/lib/square/types/search_subscriptions_response.rb +13 -0
- data/lib/square/types/search_team_members_filter.rb +18 -0
- data/lib/square/types/search_team_members_query.rb +10 -0
- data/lib/square/types/search_team_members_response.rb +12 -0
- data/lib/square/types/search_terminal_actions_response.rb +11 -0
- data/lib/square/types/search_terminal_checkouts_response.rb +11 -0
- data/lib/square/types/search_terminal_refunds_response.rb +11 -0
- data/lib/square/types/search_timecards_response.rb +14 -0
- data/lib/square/types/search_vendors_request_filter.rb +11 -0
- data/lib/square/types/search_vendors_request_sort.rb +11 -0
- data/lib/square/types/search_vendors_request_sort_field.rb +11 -0
- data/lib/square/types/search_vendors_response.rb +12 -0
- data/lib/square/types/segment_filter.rb +11 -0
- data/lib/square/types/select_option.rb +10 -0
- data/lib/square/types/select_options.rb +12 -0
- data/lib/square/types/shift.rb +28 -0
- data/lib/square/types/shift_filter.rb +19 -0
- data/lib/square/types/shift_filter_status.rb +11 -0
- data/lib/square/types/shift_query.rb +13 -0
- data/lib/square/types/shift_sort.rb +13 -0
- data/lib/square/types/shift_sort_field.rb +13 -0
- data/lib/square/types/shift_status.rb +11 -0
- data/lib/square/types/shift_wage.rb +15 -0
- data/lib/square/types/shift_workday.rb +15 -0
- data/lib/square/types/shift_workday_matcher.rb +12 -0
- data/lib/square/types/shipping_fee.rb +10 -0
- data/lib/square/types/signature_image.rb +10 -0
- data/lib/square/types/signature_options.rb +11 -0
- data/lib/square/types/site.rb +15 -0
- data/lib/square/types/snippet.rb +14 -0
- data/lib/square/types/sort_order.rb +11 -0
- data/lib/square/types/source_application.rb +12 -0
- data/lib/square/types/square_account_details.rb +11 -0
- data/lib/square/types/standard_unit_description.rb +12 -0
- data/lib/square/types/standard_unit_description_group.rb +13 -0
- data/lib/square/types/submit_evidence_response.rb +11 -0
- data/lib/square/types/subscription.rb +31 -0
- data/lib/square/types/subscription_action.rb +15 -0
- data/lib/square/types/subscription_action_type.rb +14 -0
- data/lib/square/types/subscription_cadence.rb +22 -0
- data/lib/square/types/subscription_created_event.rb +14 -0
- data/lib/square/types/subscription_created_event_data.rb +11 -0
- data/lib/square/types/subscription_created_event_object.rb +9 -0
- data/lib/square/types/subscription_event.rb +18 -0
- data/lib/square/types/subscription_event_info.rb +11 -0
- data/lib/square/types/subscription_event_info_code.rb +15 -0
- data/lib/square/types/subscription_event_subscription_event_type.rb +16 -0
- data/lib/square/types/subscription_phase.rb +15 -0
- data/lib/square/types/subscription_pricing.rb +12 -0
- data/lib/square/types/subscription_pricing_type.rb +11 -0
- data/lib/square/types/subscription_source.rb +10 -0
- data/lib/square/types/subscription_status.rb +14 -0
- data/lib/square/types/subscription_test_result.rb +15 -0
- data/lib/square/types/subscription_updated_event.rb +16 -0
- data/lib/square/types/subscription_updated_event_data.rb +11 -0
- data/lib/square/types/subscription_updated_event_object.rb +9 -0
- data/lib/square/types/swap_plan_response.rb +13 -0
- data/lib/square/types/tax_calculation_phase.rb +11 -0
- data/lib/square/types/tax_ids.rb +14 -0
- data/lib/square/types/tax_inclusion_type.rb +11 -0
- data/lib/square/types/team_member.rb +21 -0
- data/lib/square/types/team_member_assigned_locations.rb +13 -0
- data/lib/square/types/team_member_assigned_locations_assignment_type.rb +11 -0
- data/lib/square/types/team_member_booking_profile.rb +14 -0
- data/lib/square/types/team_member_created_event.rb +14 -0
- data/lib/square/types/team_member_created_event_data.rb +11 -0
- data/lib/square/types/team_member_created_event_object.rb +9 -0
- data/lib/square/types/team_member_invitation_status.rb +12 -0
- data/lib/square/types/team_member_status.rb +11 -0
- data/lib/square/types/team_member_updated_event.rb +14 -0
- data/lib/square/types/team_member_updated_event_data.rb +11 -0
- data/lib/square/types/team_member_updated_event_object.rb +9 -0
- data/lib/square/types/team_member_wage.rb +17 -0
- data/lib/square/types/team_member_wage_setting_updated_event.rb +14 -0
- data/lib/square/types/team_member_wage_setting_updated_event_data.rb +11 -0
- data/lib/square/types/team_member_wage_setting_updated_event_object.rb +9 -0
- data/lib/square/types/tender.rb +30 -0
- data/lib/square/types/tender_bank_account_details.rb +13 -0
- data/lib/square/types/tender_bank_account_details_status.rb +12 -0
- data/lib/square/types/tender_buy_now_pay_later_details.rb +13 -0
- data/lib/square/types/tender_buy_now_pay_later_details_brand.rb +11 -0
- data/lib/square/types/tender_buy_now_pay_later_details_status.rb +13 -0
- data/lib/square/types/tender_card_details.rb +12 -0
- data/lib/square/types/tender_card_details_entry_method.rb +14 -0
- data/lib/square/types/tender_card_details_status.rb +13 -0
- data/lib/square/types/tender_cash_details.rb +11 -0
- data/lib/square/types/tender_square_account_details.rb +10 -0
- data/lib/square/types/tender_square_account_details_status.rb +13 -0
- data/lib/square/types/tender_type.rb +19 -0
- data/lib/square/types/terminal_action.rb +29 -0
- data/lib/square/types/terminal_action_action_type.rb +17 -0
- data/lib/square/types/terminal_action_created_event.rb +14 -0
- data/lib/square/types/terminal_action_created_event_data.rb +11 -0
- data/lib/square/types/terminal_action_created_event_object.rb +9 -0
- data/lib/square/types/terminal_action_query.rb +10 -0
- data/lib/square/types/terminal_action_query_filter.rb +12 -0
- data/lib/square/types/terminal_action_query_sort.rb +9 -0
- data/lib/square/types/terminal_action_updated_event.rb +14 -0
- data/lib/square/types/terminal_action_updated_event_data.rb +11 -0
- data/lib/square/types/terminal_action_updated_event_object.rb +9 -0
- data/lib/square/types/terminal_checkout.rb +30 -0
- data/lib/square/types/terminal_checkout_created_event.rb +14 -0
- data/lib/square/types/terminal_checkout_created_event_data.rb +11 -0
- data/lib/square/types/terminal_checkout_created_event_object.rb +9 -0
- data/lib/square/types/terminal_checkout_query.rb +10 -0
- data/lib/square/types/terminal_checkout_query_filter.rb +11 -0
- data/lib/square/types/terminal_checkout_query_sort.rb +9 -0
- data/lib/square/types/terminal_checkout_updated_event.rb +14 -0
- data/lib/square/types/terminal_checkout_updated_event_data.rb +11 -0
- data/lib/square/types/terminal_checkout_updated_event_object.rb +9 -0
- data/lib/square/types/terminal_refund.rb +23 -0
- data/lib/square/types/terminal_refund_created_event.rb +14 -0
- data/lib/square/types/terminal_refund_created_event_data.rb +11 -0
- data/lib/square/types/terminal_refund_created_event_object.rb +9 -0
- data/lib/square/types/terminal_refund_query.rb +10 -0
- data/lib/square/types/terminal_refund_query_filter.rb +11 -0
- data/lib/square/types/terminal_refund_query_sort.rb +9 -0
- data/lib/square/types/terminal_refund_updated_event.rb +14 -0
- data/lib/square/types/terminal_refund_updated_event_data.rb +11 -0
- data/lib/square/types/terminal_refund_updated_event_object.rb +9 -0
- data/lib/square/types/test_webhook_subscription_response.rb +15 -0
- data/lib/square/types/time_range.rb +15 -0
- data/lib/square/types/timecard.rb +24 -0
- data/lib/square/types/timecard_filter.rb +16 -0
- data/lib/square/types/timecard_filter_status.rb +11 -0
- data/lib/square/types/timecard_query.rb +11 -0
- data/lib/square/types/timecard_sort.rb +11 -0
- data/lib/square/types/timecard_sort_field.rb +13 -0
- data/lib/square/types/timecard_status.rb +11 -0
- data/lib/square/types/timecard_wage.rb +13 -0
- data/lib/square/types/timecard_workday.rb +13 -0
- data/lib/square/types/timecard_workday_matcher.rb +12 -0
- data/lib/square/types/tip_settings.rb +13 -0
- data/lib/square/types/transaction.rb +23 -0
- data/lib/square/types/transaction_product.rb +17 -0
- data/lib/square/types/transaction_type.rb +11 -0
- data/lib/square/types/unlink_customer_from_gift_card_response.rb +12 -0
- data/lib/square/types/update_booking_custom_attribute_definition_response.rb +14 -0
- data/lib/square/types/update_booking_response.rb +10 -0
- data/lib/square/types/update_break_type_response.rb +13 -0
- data/lib/square/types/update_catalog_image_request.rb +9 -0
- data/lib/square/types/update_catalog_image_response.rb +10 -0
- data/lib/square/types/update_customer_custom_attribute_definition_response.rb +14 -0
- data/lib/square/types/update_customer_group_response.rb +14 -0
- data/lib/square/types/update_customer_response.rb +15 -0
- data/lib/square/types/update_invoice_response.rb +11 -0
- data/lib/square/types/update_item_modifier_lists_response.rb +10 -0
- data/lib/square/types/update_item_taxes_response.rb +10 -0
- data/lib/square/types/update_job_response.rb +12 -0
- data/lib/square/types/update_location_custom_attribute_definition_response.rb +14 -0
- data/lib/square/types/update_location_response.rb +11 -0
- data/lib/square/types/update_location_settings_response.rb +10 -0
- data/lib/square/types/update_merchant_custom_attribute_definition_response.rb +14 -0
- data/lib/square/types/update_merchant_settings_response.rb +10 -0
- data/lib/square/types/update_order_custom_attribute_definition_response.rb +13 -0
- data/lib/square/types/update_order_response.rb +12 -0
- data/lib/square/types/update_payment_link_response.rb +10 -0
- data/lib/square/types/update_payment_response.rb +12 -0
- data/lib/square/types/update_scheduled_shift_response.rb +12 -0
- data/lib/square/types/update_shift_response.rb +13 -0
- data/lib/square/types/update_subscription_response.rb +12 -0
- data/lib/square/types/update_team_member_request.rb +10 -0
- data/lib/square/types/update_team_member_response.rb +11 -0
- data/lib/square/types/update_timecard_response.rb +13 -0
- data/lib/square/types/update_vendor_request.rb +11 -0
- data/lib/square/types/update_vendor_response.rb +11 -0
- data/lib/square/types/update_wage_setting_response.rb +12 -0
- data/lib/square/types/update_webhook_subscription_response.rb +15 -0
- data/lib/square/types/update_webhook_subscription_signature_key_response.rb +15 -0
- data/lib/square/types/update_workweek_config_response.rb +13 -0
- data/lib/square/types/upsert_booking_custom_attribute_response.rb +12 -0
- data/lib/square/types/upsert_catalog_object_response.rb +13 -0
- data/lib/square/types/upsert_customer_custom_attribute_response.rb +12 -0
- data/lib/square/types/upsert_location_custom_attribute_response.rb +12 -0
- data/lib/square/types/upsert_merchant_custom_attribute_response.rb +12 -0
- data/lib/square/types/upsert_order_custom_attribute_response.rb +11 -0
- data/lib/square/types/upsert_snippet_response.rb +11 -0
- data/lib/square/types/v_1_money.rb +10 -0
- data/lib/square/types/v_1_order.rb +36 -0
- data/lib/square/types/v_1_order_history_entry.rb +11 -0
- data/lib/square/types/v_1_order_history_entry_action.rb +16 -0
- data/lib/square/types/v_1_order_state.rb +15 -0
- data/lib/square/types/v_1_tender.rb +46 -0
- data/lib/square/types/v_1_tender_card_brand.rb +18 -0
- data/lib/square/types/v_1_tender_entry_method.rb +16 -0
- data/lib/square/types/v_1_tender_type.rb +17 -0
- data/lib/square/types/v_1_update_order_request_action.rb +12 -0
- data/lib/square/types/vendor.rb +19 -0
- data/lib/square/types/vendor_contact.rb +15 -0
- data/lib/square/types/vendor_created_event.rb +15 -0
- data/lib/square/types/vendor_created_event_data.rb +12 -0
- data/lib/square/types/vendor_created_event_object.rb +10 -0
- data/lib/square/types/vendor_status.rb +11 -0
- data/lib/square/types/vendor_updated_event.rb +15 -0
- data/lib/square/types/vendor_updated_event_data.rb +12 -0
- data/lib/square/types/vendor_updated_event_object.rb +10 -0
- data/lib/square/types/visibility_filter.rb +12 -0
- data/lib/square/types/void_transaction_response.rb +11 -0
- data/lib/square/types/wage_setting.rb +18 -0
- data/lib/square/types/webhook_subscription.rb +19 -0
- data/lib/square/types/weekday.rb +16 -0
- data/lib/square/types/workweek_config.rb +16 -0
- data/lib/square/v_1_transactions/client.rb +65 -0
- data/lib/square/v_1_transactions/types/v_1_list_orders_request.rb +14 -0
- data/lib/square/v_1_transactions/types/v_1_retrieve_order_request.rb +12 -0
- data/lib/square/v_1_transactions/types/v_1_update_order_request.rb +17 -0
- data/lib/square/vendors/client.rb +139 -0
- data/lib/square/vendors/types/batch_create_vendors_request.rb +11 -0
- data/lib/square/vendors/types/batch_get_vendors_request.rb +11 -0
- data/lib/square/vendors/types/batch_update_vendors_request.rb +13 -0
- data/lib/square/vendors/types/create_vendor_request.rb +12 -0
- data/lib/square/vendors/types/get_vendors_request.rb +11 -0
- data/lib/square/vendors/types/search_vendors_request.rb +13 -0
- data/lib/square/vendors/types/update_vendors_request.rb +12 -0
- data/lib/square/webhooks/client.rb +22 -0
- data/lib/square/webhooks/event_types/client.rb +36 -0
- data/lib/square/webhooks/event_types/types/list_event_types_request.rb +13 -0
- data/lib/square/webhooks/subscriptions/client.rb +148 -0
- data/lib/square/webhooks/subscriptions/types/create_webhook_subscription_request.rb +14 -0
- data/lib/square/webhooks/subscriptions/types/delete_subscriptions_request.rb +13 -0
- data/lib/square/webhooks/subscriptions/types/get_subscriptions_request.rb +13 -0
- data/lib/square/webhooks/subscriptions/types/list_subscriptions_request.rb +16 -0
- data/lib/square/webhooks/subscriptions/types/test_webhook_subscription_request.rb +14 -0
- data/lib/square/webhooks/subscriptions/types/update_webhook_subscription_request.rb +14 -0
- data/lib/square/webhooks/subscriptions/types/update_webhook_subscription_signature_key_request.rb +14 -0
- data/lib/square.rb +1673 -76
- data/lib/{square → square_legacy}/api/apple_pay_api.rb +1 -1
- data/lib/{square → square_legacy}/api/bank_accounts_api.rb +1 -1
- data/lib/{square → square_legacy}/api/base_api.rb +2 -2
- data/lib/{square → square_legacy}/api/booking_custom_attributes_api.rb +1 -1
- data/lib/{square → square_legacy}/api/bookings_api.rb +1 -1
- data/lib/{square → square_legacy}/api/cards_api.rb +1 -1
- data/lib/{square → square_legacy}/api/cash_drawers_api.rb +1 -1
- data/lib/{square → square_legacy}/api/catalog_api.rb +1 -1
- data/lib/{square → square_legacy}/api/checkout_api.rb +1 -1
- data/lib/{square → square_legacy}/api/customer_custom_attributes_api.rb +1 -1
- data/lib/{square → square_legacy}/api/customer_groups_api.rb +1 -1
- data/lib/{square → square_legacy}/api/customer_segments_api.rb +1 -1
- data/lib/{square → square_legacy}/api/customers_api.rb +1 -1
- data/lib/{square → square_legacy}/api/devices_api.rb +1 -1
- data/lib/{square → square_legacy}/api/disputes_api.rb +1 -1
- data/lib/{square → square_legacy}/api/employees_api.rb +1 -1
- data/lib/{square → square_legacy}/api/events_api.rb +1 -1
- data/lib/{square → square_legacy}/api/gift_card_activities_api.rb +1 -1
- data/lib/{square → square_legacy}/api/gift_cards_api.rb +1 -1
- data/lib/{square → square_legacy}/api/inventory_api.rb +1 -1
- data/lib/{square → square_legacy}/api/invoices_api.rb +1 -1
- data/lib/{square → square_legacy}/api/labor_api.rb +1 -1
- data/lib/{square → square_legacy}/api/location_custom_attributes_api.rb +1 -1
- data/lib/{square → square_legacy}/api/locations_api.rb +1 -1
- data/lib/{square → square_legacy}/api/loyalty_api.rb +1 -1
- data/lib/{square → square_legacy}/api/merchant_custom_attributes_api.rb +1 -1
- data/lib/{square → square_legacy}/api/merchants_api.rb +1 -1
- data/lib/{square → square_legacy}/api/mobile_authorization_api.rb +1 -1
- data/lib/{square → square_legacy}/api/o_auth_api.rb +1 -1
- data/lib/{square → square_legacy}/api/order_custom_attributes_api.rb +1 -1
- data/lib/{square → square_legacy}/api/orders_api.rb +1 -1
- data/lib/{square → square_legacy}/api/payments_api.rb +1 -1
- data/lib/{square → square_legacy}/api/payouts_api.rb +1 -1
- data/lib/{square → square_legacy}/api/refunds_api.rb +1 -1
- data/lib/{square → square_legacy}/api/sites_api.rb +1 -1
- data/lib/{square → square_legacy}/api/snippets_api.rb +1 -1
- data/lib/{square → square_legacy}/api/subscriptions_api.rb +1 -1
- data/lib/{square → square_legacy}/api/team_api.rb +1 -1
- data/lib/{square → square_legacy}/api/terminal_api.rb +1 -1
- data/lib/{square → square_legacy}/api/transactions_api.rb +1 -1
- data/lib/{square → square_legacy}/api/v1_transactions_api.rb +1 -1
- data/lib/{square → square_legacy}/api/vendors_api.rb +1 -1
- data/lib/{square → square_legacy}/api/webhook_subscriptions_api.rb +1 -1
- data/lib/{square → square_legacy}/api_helper.rb +1 -1
- data/lib/square_legacy/client.rb +326 -0
- data/lib/{square → square_legacy}/configuration.rb +1 -1
- data/lib/{square → square_legacy}/exceptions/api_exception.rb +1 -1
- data/lib/{square → square_legacy}/http/api_response.rb +1 -1
- data/lib/{square → square_legacy}/http/auth/o_auth2.rb +1 -1
- data/lib/{square → square_legacy}/http/http_call_back.rb +1 -1
- data/lib/{square → square_legacy}/http/http_method_enum.rb +1 -1
- data/lib/{square → square_legacy}/http/http_request.rb +1 -1
- data/lib/{square → square_legacy}/http/http_response.rb +1 -1
- data/lib/{square → square_legacy}/utilities/date_time_helper.rb +1 -1
- data/lib/{square → square_legacy}/utilities/file_wrapper.rb +1 -1
- data/lib/{square → square_legacy}/utilities/webhooks_helper.rb +1 -1
- data/lib/square_legacy.rb +76 -0
- data/test/square/integration/client_tests/test_cash_drawers.rb +27 -0
- data/test/square/integration/client_tests/test_catalog.rb +701 -0
- data/test/square/integration/client_tests/test_customers.rb +65 -0
- data/test/square/integration/client_tests/test_customers_groups.rb +144 -0
- data/test/square/integration/client_tests/test_customers_segments.rb +36 -0
- data/test/square/integration/client_tests/test_devices.rb +67 -0
- data/test/square/integration/client_tests/test_inventory.rb +28 -0
- data/test/square/integration/client_tests/test_locations.rb +18 -0
- data/test/square/integration/client_tests/test_merchants.rb +40 -0
- data/test/square/integration/client_tests/test_mobile.rb +21 -0
- data/test/square/integration/client_tests/test_orders.rb +177 -0
- data/test/square/integration/client_tests/test_payments.rb +167 -0
- data/test/square/integration/client_tests/test_refunds.rb +133 -0
- data/test/square/integration/client_tests/test_team_members.rb +97 -0
- data/test/square/integration/client_tests/test_terminal.rb +107 -0
- data/test/square/integration/integration_test_base.rb +16 -0
- data/test/square/integration/testdata/image.jpeg +0 -0
- data/test/square/internal/multipart/test_form_data.rb +311 -0
- data/test/square/internal/types/test_array.rb +37 -0
- data/test/square/internal/types/test_boolean.rb +35 -0
- data/test/square/internal/types/test_enum.rb +42 -0
- data/test/square/internal/types/test_hash.rb +50 -0
- data/test/square/internal/types/test_model.rb +105 -0
- data/test/square/internal/types/test_union.rb +52 -0
- data/test/square/internal/types/test_utils.rb +216 -0
- data/test/{api → square_legacy/api}/api_test_base.rb +2 -2
- data/test/{http_response_catcher.rb → square_legacy/http_response_catcher.rb} +1 -1
- data/test/{webhooks → square_legacy/webhooks}/test_webhooks_helper.rb +12 -12
- data/test/test_helper.rb +123 -0
- metadata +1765 -77
- data/spec/user_journey_spec.rb +0 -145
- /data/test/{api → square_legacy/api}/test_catalog_api.rb +0 -0
- /data/test/{api → square_legacy/api}/test_customers_api.rb +0 -0
- /data/test/{api → square_legacy/api}/test_employees_api.rb +0 -0
- /data/test/{api → square_legacy/api}/test_labor_api.rb +0 -0
- /data/test/{api → square_legacy/api}/test_locations_api.rb +0 -0
- /data/test/{api → square_legacy/api}/test_merchants_api.rb +0 -0
- /data/test/{api → square_legacy/api}/test_payments_api.rb +0 -0
- /data/test/{api → square_legacy/api}/test_refunds_api.rb +0 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# A response that contains a `GiftCard`. The response might contain a set of `Error` objects if the request
|
6
|
+
# resulted in errors.
|
7
|
+
class CreateGiftCardResponse < Internal::Types::Model
|
8
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
9
|
+
field :gift_card, -> { Square::Types::GiftCard }, optional: true, nullable: false
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# Represents a [CreateInvoiceAttachment](api-endpoint:Invoices-CreateInvoiceAttachment) request.
|
6
|
+
class CreateInvoiceAttachmentRequestData < Internal::Types::Model
|
7
|
+
field :idempotency_key, -> { String }, optional: true, nullable: false
|
8
|
+
field :description, -> { String }, optional: true, nullable: false
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# Represents a [CreateInvoiceAttachment](api-endpoint:Invoices-CreateInvoiceAttachment) response.
|
6
|
+
class CreateInvoiceAttachmentResponse < Internal::Types::Model
|
7
|
+
field :attachment, -> { Square::Types::InvoiceAttachment }, optional: true, nullable: false
|
8
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# The response returned by the `CreateInvoice` request.
|
6
|
+
class CreateInvoiceResponse < Internal::Types::Model
|
7
|
+
field :invoice, -> { Square::Types::Invoice }, optional: true, nullable: false
|
8
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# Represents a [CreateJob](api-endpoint:Team-CreateJob) response. Either `job` or `errors`
|
6
|
+
# is present in the response.
|
7
|
+
class CreateJobResponse < Internal::Types::Model
|
8
|
+
field :job, -> { Square::Types::Job }, optional: true, nullable: false
|
9
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# Represents a [CreateLocationCustomAttributeDefinition](api-endpoint:LocationCustomAttributes-CreateLocationCustomAttributeDefinition) response.
|
6
|
+
# Either `custom_attribute_definition` or `errors` is present in the response.
|
7
|
+
class CreateLocationCustomAttributeDefinitionResponse < Internal::Types::Model
|
8
|
+
field :custom_attribute_definition, lambda {
|
9
|
+
Square::Types::CustomAttributeDefinition
|
10
|
+
}, optional: true, nullable: false
|
11
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# The response object returned by the [CreateLocation](api-endpoint:Locations-CreateLocation) endpoint.
|
6
|
+
class CreateLocationResponse < Internal::Types::Model
|
7
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
8
|
+
field :location, -> { Square::Types::Location }, optional: true, nullable: false
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# A response that includes loyalty account created.
|
6
|
+
class CreateLoyaltyAccountResponse < Internal::Types::Model
|
7
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
8
|
+
field :loyalty_account, -> { Square::Types::LoyaltyAccount }, optional: true, nullable: false
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# Represents a [CreateLoyaltyPromotion](api-endpoint:Loyalty-CreateLoyaltyPromotion) response.
|
6
|
+
# Either `loyalty_promotion` or `errors` is present in the response.
|
7
|
+
class CreateLoyaltyPromotionResponse < Internal::Types::Model
|
8
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
9
|
+
field :loyalty_promotion, -> { Square::Types::LoyaltyPromotion }, optional: true, nullable: false
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# A response that includes the loyalty reward created.
|
6
|
+
class CreateLoyaltyRewardResponse < Internal::Types::Model
|
7
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
8
|
+
field :reward, -> { Square::Types::LoyaltyReward }, optional: true, nullable: false
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# Represents a [CreateMerchantCustomAttributeDefinition](api-endpoint:MerchantCustomAttributes-CreateMerchantCustomAttributeDefinition) response.
|
6
|
+
# Either `custom_attribute_definition` or `errors` is present in the response.
|
7
|
+
class CreateMerchantCustomAttributeDefinitionResponse < Internal::Types::Model
|
8
|
+
field :custom_attribute_definition, lambda {
|
9
|
+
Square::Types::CustomAttributeDefinition
|
10
|
+
}, optional: true, nullable: false
|
11
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# Defines the fields that are included in the response body of
|
6
|
+
# a request to the `CreateMobileAuthorizationCode` endpoint.
|
7
|
+
class CreateMobileAuthorizationCodeResponse < Internal::Types::Model
|
8
|
+
field :authorization_code, -> { String }, optional: true, nullable: false
|
9
|
+
field :expires_at, -> { String }, optional: true, nullable: false
|
10
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# Represents a response from creating an order custom attribute definition.
|
6
|
+
class CreateOrderCustomAttributeDefinitionResponse < Internal::Types::Model
|
7
|
+
field :custom_attribute_definition, lambda {
|
8
|
+
Square::Types::CustomAttributeDefinition
|
9
|
+
}, optional: true, nullable: false
|
10
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
class CreateOrderRequest < Internal::Types::Model
|
6
|
+
field :order, -> { Square::Types::Order }, optional: true, nullable: false
|
7
|
+
field :idempotency_key, -> { String }, optional: true, nullable: false
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# Defines the fields that are included in the response body of
|
6
|
+
# a request to the `CreateOrder` endpoint.
|
7
|
+
#
|
8
|
+
# Either `errors` or `order` is present in a given response, but never both.
|
9
|
+
class CreateOrderResponse < Internal::Types::Model
|
10
|
+
field :order, -> { Square::Types::Order }, optional: true, nullable: false
|
11
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
class CreatePaymentLinkResponse < Internal::Types::Model
|
6
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
7
|
+
field :payment_link, -> { Square::Types::PaymentLink }, optional: true, nullable: false
|
8
|
+
field :related_resources, -> { Square::Types::PaymentLinkRelatedResources }, optional: true, nullable: false
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# Defines the response returned by [CreatePayment](api-endpoint:Payments-CreatePayment).
|
6
|
+
#
|
7
|
+
# If there are errors processing the request, the `payment` field might not be
|
8
|
+
# present, or it might be present with a status of `FAILED`.
|
9
|
+
class CreatePaymentResponse < Internal::Types::Model
|
10
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
11
|
+
field :payment, -> { Square::Types::Payment }, optional: true, nullable: false
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# Represents a [CreateScheduledShift](api-endpoint:Labor-CreateScheduledShift) response.
|
6
|
+
# Either `scheduled_shift` or `errors` is present in the response.
|
7
|
+
class CreateScheduledShiftResponse < Internal::Types::Model
|
8
|
+
field :scheduled_shift, -> { Square::Types::ScheduledShift }, optional: true, nullable: false
|
9
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# The response to a request to create a `Shift`. The response contains
|
6
|
+
# the created `Shift` object and might contain a set of `Error` objects if
|
7
|
+
# the request resulted in errors.
|
8
|
+
class CreateShiftResponse < Internal::Types::Model
|
9
|
+
field :shift, -> { Square::Types::Shift }, optional: true, nullable: false
|
10
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# Defines output parameters in a response from the
|
6
|
+
# [CreateSubscription](api-endpoint:Subscriptions-CreateSubscription) endpoint.
|
7
|
+
class CreateSubscriptionResponse < Internal::Types::Model
|
8
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
9
|
+
field :subscription, -> { Square::Types::Subscription }, optional: true, nullable: false
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# Represents a create request for a `TeamMember` object.
|
6
|
+
class CreateTeamMemberRequest < Internal::Types::Model
|
7
|
+
field :idempotency_key, -> { String }, optional: true, nullable: false
|
8
|
+
field :team_member, -> { Square::Types::TeamMember }, optional: true, nullable: false
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# Represents a response from a create request containing the created `TeamMember` object or error messages.
|
6
|
+
class CreateTeamMemberResponse < Internal::Types::Model
|
7
|
+
field :team_member, -> { Square::Types::TeamMember }, optional: true, nullable: false
|
8
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
class CreateTerminalActionResponse < Internal::Types::Model
|
6
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
7
|
+
field :action, -> { Square::Types::TerminalAction }, optional: true, nullable: false
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
class CreateTerminalCheckoutResponse < Internal::Types::Model
|
6
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
7
|
+
field :checkout, -> { Square::Types::TerminalCheckout }, optional: true, nullable: false
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
class CreateTerminalRefundResponse < Internal::Types::Model
|
6
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
7
|
+
field :refund, -> { Square::Types::TerminalRefund }, optional: true, nullable: false
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# The response to a request to create a `Timecard`. The response contains
|
6
|
+
# the created `Timecard` object and might contain a set of `Error` objects if
|
7
|
+
# the request resulted in errors.
|
8
|
+
class CreateTimecardResponse < Internal::Types::Model
|
9
|
+
field :timecard, -> { Square::Types::Timecard }, optional: true, nullable: false
|
10
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# Represents an output from a call to [CreateVendor](api-endpoint:Vendors-CreateVendor).
|
6
|
+
class CreateVendorResponse < Internal::Types::Model
|
7
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
8
|
+
field :vendor, -> { Square::Types::Vendor }, optional: true, nullable: false
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# Defines the fields that are included in the response body of
|
6
|
+
# a request to the [CreateWebhookSubscription](api-endpoint:WebhookSubscriptions-CreateWebhookSubscription) endpoint.
|
7
|
+
#
|
8
|
+
# Note: if there are errors processing the request, the [Subscription](entity:WebhookSubscription) will not be
|
9
|
+
# present.
|
10
|
+
class CreateWebhookSubscriptionResponse < Internal::Types::Model
|
11
|
+
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
|
12
|
+
field :subscription, -> { Square::Types::WebhookSubscription }, optional: true, nullable: false
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,192 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
module Currency
|
6
|
+
extend Square::Internal::Types::Enum
|
7
|
+
|
8
|
+
UNKNOWN_CURRENCY = "UNKNOWN_CURRENCY"
|
9
|
+
AED = "AED"
|
10
|
+
AFN = "AFN"
|
11
|
+
ALL = "ALL"
|
12
|
+
AMD = "AMD"
|
13
|
+
ANG = "ANG"
|
14
|
+
AOA = "AOA"
|
15
|
+
ARS = "ARS"
|
16
|
+
AUD = "AUD"
|
17
|
+
AWG = "AWG"
|
18
|
+
AZN = "AZN"
|
19
|
+
BAM = "BAM"
|
20
|
+
BBD = "BBD"
|
21
|
+
BDT = "BDT"
|
22
|
+
BGN = "BGN"
|
23
|
+
BHD = "BHD"
|
24
|
+
BIF = "BIF"
|
25
|
+
BMD = "BMD"
|
26
|
+
BND = "BND"
|
27
|
+
BOB = "BOB"
|
28
|
+
BOV = "BOV"
|
29
|
+
BRL = "BRL"
|
30
|
+
BSD = "BSD"
|
31
|
+
BTN = "BTN"
|
32
|
+
BWP = "BWP"
|
33
|
+
BYR = "BYR"
|
34
|
+
BZD = "BZD"
|
35
|
+
CAD = "CAD"
|
36
|
+
CDF = "CDF"
|
37
|
+
CHE = "CHE"
|
38
|
+
CHF = "CHF"
|
39
|
+
CHW = "CHW"
|
40
|
+
CLF = "CLF"
|
41
|
+
CLP = "CLP"
|
42
|
+
CNY = "CNY"
|
43
|
+
COP = "COP"
|
44
|
+
COU = "COU"
|
45
|
+
CRC = "CRC"
|
46
|
+
CUC = "CUC"
|
47
|
+
CUP = "CUP"
|
48
|
+
CVE = "CVE"
|
49
|
+
CZK = "CZK"
|
50
|
+
DJF = "DJF"
|
51
|
+
DKK = "DKK"
|
52
|
+
DOP = "DOP"
|
53
|
+
DZD = "DZD"
|
54
|
+
EGP = "EGP"
|
55
|
+
ERN = "ERN"
|
56
|
+
ETB = "ETB"
|
57
|
+
EUR = "EUR"
|
58
|
+
FJD = "FJD"
|
59
|
+
FKP = "FKP"
|
60
|
+
GBP = "GBP"
|
61
|
+
GEL = "GEL"
|
62
|
+
GHS = "GHS"
|
63
|
+
GIP = "GIP"
|
64
|
+
GMD = "GMD"
|
65
|
+
GNF = "GNF"
|
66
|
+
GTQ = "GTQ"
|
67
|
+
GYD = "GYD"
|
68
|
+
HKD = "HKD"
|
69
|
+
HNL = "HNL"
|
70
|
+
HRK = "HRK"
|
71
|
+
HTG = "HTG"
|
72
|
+
HUF = "HUF"
|
73
|
+
IDR = "IDR"
|
74
|
+
ILS = "ILS"
|
75
|
+
INR = "INR"
|
76
|
+
IQD = "IQD"
|
77
|
+
IRR = "IRR"
|
78
|
+
ISK = "ISK"
|
79
|
+
JMD = "JMD"
|
80
|
+
JOD = "JOD"
|
81
|
+
JPY = "JPY"
|
82
|
+
KES = "KES"
|
83
|
+
KGS = "KGS"
|
84
|
+
KHR = "KHR"
|
85
|
+
KMF = "KMF"
|
86
|
+
KPW = "KPW"
|
87
|
+
KRW = "KRW"
|
88
|
+
KWD = "KWD"
|
89
|
+
KYD = "KYD"
|
90
|
+
KZT = "KZT"
|
91
|
+
LAK = "LAK"
|
92
|
+
LBP = "LBP"
|
93
|
+
LKR = "LKR"
|
94
|
+
LRD = "LRD"
|
95
|
+
LSL = "LSL"
|
96
|
+
LTL = "LTL"
|
97
|
+
LVL = "LVL"
|
98
|
+
LYD = "LYD"
|
99
|
+
MAD = "MAD"
|
100
|
+
MDL = "MDL"
|
101
|
+
MGA = "MGA"
|
102
|
+
MKD = "MKD"
|
103
|
+
MMK = "MMK"
|
104
|
+
MNT = "MNT"
|
105
|
+
MOP = "MOP"
|
106
|
+
MRO = "MRO"
|
107
|
+
MUR = "MUR"
|
108
|
+
MVR = "MVR"
|
109
|
+
MWK = "MWK"
|
110
|
+
MXN = "MXN"
|
111
|
+
MXV = "MXV"
|
112
|
+
MYR = "MYR"
|
113
|
+
MZN = "MZN"
|
114
|
+
NAD = "NAD"
|
115
|
+
NGN = "NGN"
|
116
|
+
NIO = "NIO"
|
117
|
+
NOK = "NOK"
|
118
|
+
NPR = "NPR"
|
119
|
+
NZD = "NZD"
|
120
|
+
OMR = "OMR"
|
121
|
+
PAB = "PAB"
|
122
|
+
PEN = "PEN"
|
123
|
+
PGK = "PGK"
|
124
|
+
PHP = "PHP"
|
125
|
+
PKR = "PKR"
|
126
|
+
PLN = "PLN"
|
127
|
+
PYG = "PYG"
|
128
|
+
QAR = "QAR"
|
129
|
+
RON = "RON"
|
130
|
+
RSD = "RSD"
|
131
|
+
RUB = "RUB"
|
132
|
+
RWF = "RWF"
|
133
|
+
SAR = "SAR"
|
134
|
+
SBD = "SBD"
|
135
|
+
SCR = "SCR"
|
136
|
+
SDG = "SDG"
|
137
|
+
SEK = "SEK"
|
138
|
+
SGD = "SGD"
|
139
|
+
SHP = "SHP"
|
140
|
+
SLL = "SLL"
|
141
|
+
SLE = "SLE"
|
142
|
+
SOS = "SOS"
|
143
|
+
SRD = "SRD"
|
144
|
+
SSP = "SSP"
|
145
|
+
STD = "STD"
|
146
|
+
SVC = "SVC"
|
147
|
+
SYP = "SYP"
|
148
|
+
SZL = "SZL"
|
149
|
+
THB = "THB"
|
150
|
+
TJS = "TJS"
|
151
|
+
TMT = "TMT"
|
152
|
+
TND = "TND"
|
153
|
+
TOP = "TOP"
|
154
|
+
TRY = "TRY"
|
155
|
+
TTD = "TTD"
|
156
|
+
TWD = "TWD"
|
157
|
+
TZS = "TZS"
|
158
|
+
UAH = "UAH"
|
159
|
+
UGX = "UGX"
|
160
|
+
USD = "USD"
|
161
|
+
USN = "USN"
|
162
|
+
USS = "USS"
|
163
|
+
UYI = "UYI"
|
164
|
+
UYU = "UYU"
|
165
|
+
UZS = "UZS"
|
166
|
+
VEF = "VEF"
|
167
|
+
VND = "VND"
|
168
|
+
VUV = "VUV"
|
169
|
+
WST = "WST"
|
170
|
+
XAF = "XAF"
|
171
|
+
XAG = "XAG"
|
172
|
+
XAU = "XAU"
|
173
|
+
XBA = "XBA"
|
174
|
+
XBB = "XBB"
|
175
|
+
XBC = "XBC"
|
176
|
+
XBD = "XBD"
|
177
|
+
XCD = "XCD"
|
178
|
+
XDR = "XDR"
|
179
|
+
XOF = "XOF"
|
180
|
+
XPD = "XPD"
|
181
|
+
XPF = "XPF"
|
182
|
+
XPT = "XPT"
|
183
|
+
XTS = "XTS"
|
184
|
+
XXX = "XXX"
|
185
|
+
YER = "YER"
|
186
|
+
ZAR = "ZAR"
|
187
|
+
ZMK = "ZMK"
|
188
|
+
ZMW = "ZMW"
|
189
|
+
BTC = "BTC"
|
190
|
+
XUS = "XUS"end
|
191
|
+
end
|
192
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# A custom attribute value. Each custom attribute value has a corresponding
|
6
|
+
# `CustomAttributeDefinition` object.
|
7
|
+
class CustomAttribute < Internal::Types::Model
|
8
|
+
field :key, -> { String }, optional: true, nullable: false
|
9
|
+
field :value, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false
|
10
|
+
field :version, -> { Integer }, optional: true, nullable: false
|
11
|
+
field :visibility, -> { Square::Types::CustomAttributeDefinitionVisibility }, optional: true, nullable: false
|
12
|
+
field :definition, -> { Square::Types::CustomAttributeDefinition }, optional: true, nullable: false
|
13
|
+
field :updated_at, -> { String }, optional: true, nullable: false
|
14
|
+
field :created_at, -> { String }, optional: true, nullable: false
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# Represents a definition for custom attribute values. A custom attribute definition
|
6
|
+
# specifies the key, visibility, schema, and other properties for a custom attribute.
|
7
|
+
class CustomAttributeDefinition < Internal::Types::Model
|
8
|
+
field :key, -> { String }, optional: true, nullable: false
|
9
|
+
field :schema, lambda {
|
10
|
+
Internal::Types::Hash[String, Internal::Types::Hash[String, Object]]
|
11
|
+
}, optional: true, nullable: false
|
12
|
+
field :name, -> { String }, optional: true, nullable: false
|
13
|
+
field :description, -> { String }, optional: true, nullable: false
|
14
|
+
field :visibility, -> { Square::Types::CustomAttributeDefinitionVisibility }, optional: true, nullable: false
|
15
|
+
field :version, -> { Integer }, optional: true, nullable: false
|
16
|
+
field :updated_at, -> { String }, optional: true, nullable: false
|
17
|
+
field :created_at, -> { String }, optional: true, nullable: false
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
# Represents an object in the CustomAttributeDefinition event notification
|
6
|
+
# payload that contains the affected custom attribute definition.
|
7
|
+
class CustomAttributeDefinitionEventData < Internal::Types::Model
|
8
|
+
field :type, -> { String }, optional: true, nullable: false
|
9
|
+
field :id, -> { String }, optional: true, nullable: false
|
10
|
+
field :object, -> { Square::Types::CustomAttributeDefinitionEventDataObject }, optional: true, nullable: false
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
class CustomAttributeDefinitionEventDataObject < Internal::Types::Model
|
6
|
+
field :custom_attribute_definition, lambda {
|
7
|
+
Square::Types::CustomAttributeDefinition
|
8
|
+
}, optional: true, nullable: false
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
module CustomAttributeDefinitionVisibility
|
6
|
+
extend Square::Internal::Types::Enum
|
7
|
+
|
8
|
+
VISIBILITY_HIDDEN = "VISIBILITY_HIDDEN"
|
9
|
+
VISIBILITY_READ_ONLY = "VISIBILITY_READ_ONLY"
|
10
|
+
VISIBILITY_READ_WRITE_VALUES = "VISIBILITY_READ_WRITE_VALUES"end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Square
|
4
|
+
module Types
|
5
|
+
class CustomAttributeEventData < Internal::Types::Model
|
6
|
+
field :type, -> { String }, optional: true, nullable: false
|
7
|
+
field :id, -> { String }, optional: true, nullable: false
|
8
|
+
field :object, -> { Square::Types::CustomAttributeEventDataObject }, optional: true, nullable: false
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|