Class: Square::Internal::Types::Model Abstract
- Inherits:
-
Object
- Object
- Square::Internal::Types::Model
- Includes:
- Type
- Defined in:
- lib/square/internal/types/model.rb,
lib/square/internal/types/model/field.rb
Overview
An abstract model that all data objects will inherit from
Direct Known Subclasses
ApplePay::Types::RegisterDomainRequest, BankAccounts::Types::CreateBankAccountRequest, BankAccounts::Types::DisableBankAccountRequest, BankAccounts::Types::GetBankAccountsRequest, BankAccounts::Types::GetByV1IdBankAccountsRequest, BankAccounts::Types::ListBankAccountsRequest, Bookings::CustomAttributeDefinitions::Types::CreateBookingCustomAttributeDefinitionRequest, Bookings::CustomAttributeDefinitions::Types::DeleteCustomAttributeDefinitionsRequest, Bookings::CustomAttributeDefinitions::Types::GetCustomAttributeDefinitionsRequest, Bookings::CustomAttributeDefinitions::Types::ListCustomAttributeDefinitionsRequest, Bookings::CustomAttributeDefinitions::Types::UpdateBookingCustomAttributeDefinitionRequest, Bookings::CustomAttributes::Types::BulkDeleteBookingCustomAttributesRequest, Bookings::CustomAttributes::Types::BulkUpsertBookingCustomAttributesRequest, Bookings::CustomAttributes::Types::DeleteCustomAttributesRequest, Bookings::CustomAttributes::Types::GetCustomAttributesRequest, Bookings::CustomAttributes::Types::ListCustomAttributesRequest, Bookings::CustomAttributes::Types::UpsertBookingCustomAttributeRequest, Bookings::LocationProfiles::Types::ListLocationProfilesRequest, Bookings::TeamMemberProfiles::Types::GetTeamMemberProfilesRequest, Bookings::TeamMemberProfiles::Types::ListTeamMemberProfilesRequest, Bookings::Types::BulkRetrieveBookingsRequest, Bookings::Types::BulkRetrieveTeamMemberBookingProfilesRequest, Bookings::Types::CancelBookingRequest, Bookings::Types::CreateBookingRequest, Bookings::Types::GetBookingsRequest, Bookings::Types::ListBookingsRequest, Bookings::Types::RetrieveLocationBookingProfileRequest, Bookings::Types::SearchAvailabilityRequest, Bookings::Types::UpdateBookingRequest, Cards::Types::CreateCardRequest, Cards::Types::DisableCardsRequest, Cards::Types::GetCardsRequest, Cards::Types::ListCardsRequest, CashDrawers::Shifts::Types::GetShiftsRequest, CashDrawers::Shifts::Types::ListEventsShiftsRequest, CashDrawers::Shifts::Types::ListShiftsRequest, Catalog::Images::Types::CreateImagesRequest, Catalog::Images::Types::UpdateImagesRequest, Catalog::Object_::Types::DeleteObjectRequest, Catalog::Object_::Types::GetObjectRequest, Catalog::Object_::Types::UpsertCatalogObjectRequest, Catalog::Types::BatchDeleteCatalogObjectsRequest, Catalog::Types::BatchGetCatalogObjectsRequest, Catalog::Types::BatchUpsertCatalogObjectsRequest, Catalog::Types::ListCatalogRequest, Catalog::Types::SearchCatalogItemsRequest, Catalog::Types::SearchCatalogObjectsRequest, Catalog::Types::UpdateItemModifierListsRequest, Catalog::Types::UpdateItemTaxesRequest, Channels::Types::BulkRetrieveChannelsRequest, Channels::Types::GetChannelsRequest, Channels::Types::ListChannelsRequest, Checkout::PaymentLinks::Types::CreatePaymentLinkRequest, Checkout::PaymentLinks::Types::DeletePaymentLinksRequest, Checkout::PaymentLinks::Types::GetPaymentLinksRequest, Checkout::PaymentLinks::Types::ListPaymentLinksRequest, Checkout::PaymentLinks::Types::UpdatePaymentLinkRequest, Checkout::Types::RetrieveLocationSettingsRequest, Checkout::Types::UpdateLocationSettingsRequest, Checkout::Types::UpdateMerchantSettingsRequest, Customers::Cards::Types::CreateCustomerCardRequest, Customers::Cards::Types::DeleteCardsRequest, Customers::CustomAttributeDefinitions::Types::BatchUpsertCustomerCustomAttributesRequest, Customers::CustomAttributeDefinitions::Types::CreateCustomerCustomAttributeDefinitionRequest, Customers::CustomAttributeDefinitions::Types::DeleteCustomAttributeDefinitionsRequest, Customers::CustomAttributeDefinitions::Types::GetCustomAttributeDefinitionsRequest, Customers::CustomAttributeDefinitions::Types::ListCustomAttributeDefinitionsRequest, Customers::CustomAttributeDefinitions::Types::UpdateCustomerCustomAttributeDefinitionRequest, Customers::CustomAttributes::Types::DeleteCustomAttributesRequest, Customers::CustomAttributes::Types::GetCustomAttributesRequest, Customers::CustomAttributes::Types::ListCustomAttributesRequest, Customers::CustomAttributes::Types::UpsertCustomerCustomAttributeRequest, Customers::Groups::Types::AddGroupsRequest, Customers::Groups::Types::CreateCustomerGroupRequest, Customers::Groups::Types::DeleteGroupsRequest, Customers::Groups::Types::GetGroupsRequest, Customers::Groups::Types::ListGroupsRequest, Customers::Groups::Types::RemoveGroupsRequest, Customers::Groups::Types::UpdateCustomerGroupRequest, Customers::Segments::Types::GetSegmentsRequest, Customers::Segments::Types::ListSegmentsRequest, Customers::Types::BulkCreateCustomersRequest, Customers::Types::BulkDeleteCustomersRequest, Customers::Types::BulkRetrieveCustomersRequest, Customers::Types::BulkUpdateCustomersRequest, Customers::Types::CreateCustomerRequest, Customers::Types::DeleteCustomersRequest, Customers::Types::GetCustomersRequest, Customers::Types::ListCustomersRequest, Customers::Types::SearchCustomersRequest, Customers::Types::UpdateCustomerRequest, Devices::Codes::Types::CreateDeviceCodeRequest, Devices::Codes::Types::GetCodesRequest, Devices::Codes::Types::ListCodesRequest, Devices::Types::GetDevicesRequest, Devices::Types::ListDevicesRequest, Disputes::Evidence::Types::DeleteEvidenceRequest, Disputes::Evidence::Types::GetEvidenceRequest, Disputes::Evidence::Types::ListEvidenceRequest, Disputes::Types::AcceptDisputesRequest, Disputes::Types::CreateDisputeEvidenceTextRequest, Disputes::Types::CreateEvidenceFileDisputesRequest, Disputes::Types::GetDisputesRequest, Disputes::Types::ListDisputesRequest, Disputes::Types::SubmitEvidenceDisputesRequest, Employees::Types::GetEmployeesRequest, Employees::Types::ListEmployeesRequest, Events::Types::ListEventTypesRequest, Events::Types::SearchEventsRequest, GiftCards::Activities::Types::CreateGiftCardActivityRequest, GiftCards::Activities::Types::ListActivitiesRequest, GiftCards::Types::CreateGiftCardRequest, GiftCards::Types::GetGiftCardFromGanRequest, GiftCards::Types::GetGiftCardFromNonceRequest, GiftCards::Types::GetGiftCardsRequest, GiftCards::Types::LinkCustomerToGiftCardRequest, GiftCards::Types::ListGiftCardsRequest, GiftCards::Types::UnlinkCustomerFromGiftCardRequest, Square::Inventory::Types::ChangesInventoryRequest, Square::Inventory::Types::DeprecatedGetAdjustmentInventoryRequest, Square::Inventory::Types::DeprecatedGetPhysicalCountInventoryRequest, Square::Inventory::Types::GetAdjustmentInventoryRequest, Square::Inventory::Types::GetInventoryRequest, Square::Inventory::Types::GetPhysicalCountInventoryRequest, Square::Inventory::Types::GetTransferInventoryRequest, Square::Invoices::Types::CancelInvoiceRequest, Square::Invoices::Types::CreateInvoiceAttachmentRequest, Square::Invoices::Types::CreateInvoiceRequest, Square::Invoices::Types::DeleteInvoiceAttachmentRequest, Square::Invoices::Types::DeleteInvoicesRequest, Square::Invoices::Types::GetInvoicesRequest, Square::Invoices::Types::ListInvoicesRequest, Square::Invoices::Types::PublishInvoiceRequest, Square::Invoices::Types::SearchInvoicesRequest, Square::Invoices::Types::UpdateInvoiceRequest, Labor::BreakTypes::Types::CreateBreakTypeRequest, Labor::BreakTypes::Types::DeleteBreakTypesRequest, Labor::BreakTypes::Types::GetBreakTypesRequest, Labor::BreakTypes::Types::ListBreakTypesRequest, Labor::BreakTypes::Types::UpdateBreakTypeRequest, Labor::EmployeeWages::Types::GetEmployeeWagesRequest, Labor::EmployeeWages::Types::ListEmployeeWagesRequest, Labor::Shifts::Types::CreateShiftRequest, Labor::Shifts::Types::DeleteShiftsRequest, Labor::Shifts::Types::GetShiftsRequest, Labor::Shifts::Types::SearchShiftsRequest, Labor::Shifts::Types::UpdateShiftRequest, Labor::TeamMemberWages::Types::GetTeamMemberWagesRequest, Labor::TeamMemberWages::Types::ListTeamMemberWagesRequest, Labor::Types::BulkPublishScheduledShiftsRequest, Labor::Types::CreateScheduledShiftRequest, Labor::Types::CreateTimecardRequest, Labor::Types::DeleteTimecardRequest, Labor::Types::PublishScheduledShiftRequest, Labor::Types::RetrieveScheduledShiftRequest, Labor::Types::RetrieveTimecardRequest, Labor::Types::SearchScheduledShiftsRequest, Labor::Types::SearchTimecardsRequest, Labor::Types::UpdateScheduledShiftRequest, Labor::Types::UpdateTimecardRequest, Labor::WorkweekConfigs::Types::ListWorkweekConfigsRequest, Labor::WorkweekConfigs::Types::UpdateWorkweekConfigRequest, Locations::CustomAttributeDefinitions::Types::CreateLocationCustomAttributeDefinitionRequest, Locations::CustomAttributeDefinitions::Types::DeleteCustomAttributeDefinitionsRequest, Locations::CustomAttributeDefinitions::Types::GetCustomAttributeDefinitionsRequest, Locations::CustomAttributeDefinitions::Types::ListCustomAttributeDefinitionsRequest, Locations::CustomAttributeDefinitions::Types::UpdateLocationCustomAttributeDefinitionRequest, Locations::CustomAttributes::Types::BulkDeleteLocationCustomAttributesRequest, Locations::CustomAttributes::Types::BulkUpsertLocationCustomAttributesRequest, Locations::CustomAttributes::Types::DeleteCustomAttributesRequest, Locations::CustomAttributes::Types::GetCustomAttributesRequest, Locations::CustomAttributes::Types::ListCustomAttributesRequest, Locations::CustomAttributes::Types::UpsertLocationCustomAttributeRequest, Locations::Transactions::Types::CaptureTransactionsRequest, Locations::Transactions::Types::GetTransactionsRequest, Locations::Transactions::Types::ListTransactionsRequest, Locations::Transactions::Types::VoidTransactionsRequest, Locations::Types::CreateCheckoutRequest, Locations::Types::CreateLocationRequest, Locations::Types::GetLocationsRequest, Locations::Types::UpdateLocationRequest, Loyalty::Accounts::Types::AccumulateLoyaltyPointsRequest, Loyalty::Accounts::Types::AdjustLoyaltyPointsRequest, Loyalty::Accounts::Types::CreateLoyaltyAccountRequest, Loyalty::Accounts::Types::GetAccountsRequest, Loyalty::Accounts::Types::SearchLoyaltyAccountsRequest, Loyalty::Programs::Promotions::Types::CancelPromotionsRequest, Loyalty::Programs::Promotions::Types::CreateLoyaltyPromotionRequest, Loyalty::Programs::Promotions::Types::GetPromotionsRequest, Loyalty::Programs::Promotions::Types::ListPromotionsRequest, Loyalty::Programs::Types::CalculateLoyaltyPointsRequest, Loyalty::Programs::Types::GetProgramsRequest, Loyalty::Rewards::Types::CreateLoyaltyRewardRequest, Loyalty::Rewards::Types::DeleteRewardsRequest, Loyalty::Rewards::Types::GetRewardsRequest, Loyalty::Rewards::Types::RedeemLoyaltyRewardRequest, Loyalty::Rewards::Types::SearchLoyaltyRewardsRequest, Loyalty::Types::SearchLoyaltyEventsRequest, Merchants::CustomAttributeDefinitions::Types::CreateMerchantCustomAttributeDefinitionRequest, Merchants::CustomAttributeDefinitions::Types::DeleteCustomAttributeDefinitionsRequest, Merchants::CustomAttributeDefinitions::Types::GetCustomAttributeDefinitionsRequest, Merchants::CustomAttributeDefinitions::Types::ListCustomAttributeDefinitionsRequest, Merchants::CustomAttributeDefinitions::Types::UpdateMerchantCustomAttributeDefinitionRequest, Merchants::CustomAttributes::Types::BulkDeleteMerchantCustomAttributesRequest, Merchants::CustomAttributes::Types::BulkUpsertMerchantCustomAttributesRequest, Merchants::CustomAttributes::Types::DeleteCustomAttributesRequest, Merchants::CustomAttributes::Types::GetCustomAttributesRequest, Merchants::CustomAttributes::Types::ListCustomAttributesRequest, Merchants::CustomAttributes::Types::UpsertMerchantCustomAttributeRequest, Merchants::Types::GetMerchantsRequest, Merchants::Types::ListMerchantsRequest, OAuth::Types::ObtainTokenRequest, OAuth::Types::RevokeTokenRequest, Orders::CustomAttributeDefinitions::Types::CreateOrderCustomAttributeDefinitionRequest, Orders::CustomAttributeDefinitions::Types::DeleteCustomAttributeDefinitionsRequest, Orders::CustomAttributeDefinitions::Types::GetCustomAttributeDefinitionsRequest, Orders::CustomAttributeDefinitions::Types::ListCustomAttributeDefinitionsRequest, Orders::CustomAttributeDefinitions::Types::UpdateOrderCustomAttributeDefinitionRequest, Orders::CustomAttributes::Types::BulkDeleteOrderCustomAttributesRequest, Orders::CustomAttributes::Types::BulkUpsertOrderCustomAttributesRequest, Orders::CustomAttributes::Types::DeleteCustomAttributesRequest, Orders::CustomAttributes::Types::GetCustomAttributesRequest, Orders::CustomAttributes::Types::ListCustomAttributesRequest, Orders::CustomAttributes::Types::UpsertOrderCustomAttributeRequest, Orders::Types::BatchGetOrdersRequest, Orders::Types::CalculateOrderRequest, Orders::Types::CloneOrderRequest, Orders::Types::GetOrdersRequest, Orders::Types::PayOrderRequest, Orders::Types::SearchOrdersRequest, Orders::Types::UpdateOrderRequest, Payments::Types::CancelPaymentByIdempotencyKeyRequest, Payments::Types::CancelPaymentsRequest, Payments::Types::CompletePaymentRequest, Payments::Types::CreatePaymentRequest, Payments::Types::GetPaymentsRequest, Payments::Types::ListPaymentsRequest, Payments::Types::UpdatePaymentRequest, Payouts::Types::GetPayoutsRequest, Payouts::Types::ListEntriesPayoutsRequest, Payouts::Types::ListPayoutsRequest, Refunds::Types::GetRefundsRequest, Refunds::Types::ListRefundsRequest, Refunds::Types::RefundPaymentRequest, Snippets::Types::DeleteSnippetsRequest, Snippets::Types::GetSnippetsRequest, Snippets::Types::UpsertSnippetRequest, Subscriptions::Types::BulkSwapPlanRequest, Subscriptions::Types::CancelSubscriptionsRequest, Subscriptions::Types::ChangeBillingAnchorDateRequest, Subscriptions::Types::CreateSubscriptionRequest, Subscriptions::Types::DeleteActionSubscriptionsRequest, Subscriptions::Types::GetSubscriptionsRequest, Subscriptions::Types::ListEventsSubscriptionsRequest, Subscriptions::Types::PauseSubscriptionRequest, Subscriptions::Types::ResumeSubscriptionRequest, Subscriptions::Types::SearchSubscriptionsRequest, Subscriptions::Types::SwapPlanRequest, Subscriptions::Types::UpdateSubscriptionRequest, Team::Types::CreateJobRequest, Team::Types::ListJobsRequest, Team::Types::RetrieveJobRequest, Team::Types::UpdateJobRequest, TeamMembers::Types::BatchCreateTeamMembersRequest, TeamMembers::Types::BatchUpdateTeamMembersRequest, TeamMembers::Types::GetTeamMembersRequest, TeamMembers::Types::SearchTeamMembersRequest, TeamMembers::Types::UpdateTeamMembersRequest, TeamMembers::WageSetting::Types::GetWageSettingRequest, TeamMembers::WageSetting::Types::UpdateWageSettingRequest, Terminal::Actions::Types::CancelActionsRequest, Terminal::Actions::Types::CreateTerminalActionRequest, Terminal::Actions::Types::GetActionsRequest, Terminal::Actions::Types::SearchTerminalActionsRequest, Terminal::Checkouts::Types::CancelCheckoutsRequest, Terminal::Checkouts::Types::CreateTerminalCheckoutRequest, Terminal::Checkouts::Types::GetCheckoutsRequest, Terminal::Checkouts::Types::SearchTerminalCheckoutsRequest, Terminal::Refunds::Types::CancelRefundsRequest, Terminal::Refunds::Types::CreateTerminalRefundRequest, Terminal::Refunds::Types::GetRefundsRequest, Terminal::Refunds::Types::SearchTerminalRefundsRequest, Terminal::Types::DismissTerminalActionRequest, Terminal::Types::DismissTerminalCheckoutRequest, Terminal::Types::DismissTerminalRefundRequest, TransferOrders::Types::CancelTransferOrderRequest, TransferOrders::Types::CreateTransferOrderRequest, TransferOrders::Types::DeleteTransferOrdersRequest, TransferOrders::Types::GetTransferOrdersRequest, TransferOrders::Types::ReceiveTransferOrderRequest, TransferOrders::Types::SearchTransferOrdersRequest, TransferOrders::Types::StartTransferOrderRequest, TransferOrders::Types::UpdateTransferOrderRequest, Types::AcceptDisputeResponse, Types::AcceptedPaymentMethods, Types::AccumulateLoyaltyPointsResponse, Types::AchDetails, Types::AddGroupToCustomerResponse, Types::AdditionalRecipient, Types::Address, Types::AdjustLoyaltyPointsResponse, Types::AfterpayDetails, Types::ApplicationDetails, Types::AppointmentSegment, Types::Availability, Types::BankAccount, Types::BankAccountCreatedEvent, Types::BankAccountCreatedEventData, Types::BankAccountCreatedEventObject, Types::BankAccountDisabledEvent, Types::BankAccountDisabledEventData, Types::BankAccountDisabledEventObject, Types::BankAccountPaymentDetails, Types::BankAccountVerifiedEvent, Types::BankAccountVerifiedEventData, Types::BankAccountVerifiedEventObject, Types::BatchChangeInventoryRequest, Types::BatchChangeInventoryResponse, Types::BatchCreateTeamMembersResponse, Types::BatchCreateVendorsResponse, Types::BatchDeleteCatalogObjectsResponse, Types::BatchGetCatalogObjectsResponse, Types::BatchGetInventoryChangesResponse, Types::BatchGetInventoryCountsRequest, Types::BatchGetInventoryCountsResponse, Types::BatchGetOrdersResponse, Types::BatchGetVendorsResponse, Types::BatchRetrieveInventoryChangesRequest, Types::BatchUpdateTeamMembersResponse, Types::BatchUpdateVendorsResponse, Types::BatchUpsertCatalogObjectsResponse, Types::BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest, Types::BatchUpsertCustomerCustomAttributesResponse, Types::BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse, Types::Booking, Types::BookingCreatedEvent, Types::BookingCreatedEventData, Types::BookingCreatedEventObject, Types::BookingCreatorDetails, Types::BookingCustomAttributeDefinitionOwnedCreatedEvent, Types::BookingCustomAttributeDefinitionOwnedDeletedEvent, Types::BookingCustomAttributeDefinitionOwnedUpdatedEvent, Types::BookingCustomAttributeDefinitionVisibleCreatedEvent, Types::BookingCustomAttributeDefinitionVisibleDeletedEvent, Types::BookingCustomAttributeDefinitionVisibleUpdatedEvent, Types::BookingCustomAttributeDeleteRequest, Types::BookingCustomAttributeDeleteResponse, Types::BookingCustomAttributeOwnedDeletedEvent, Types::BookingCustomAttributeOwnedUpdatedEvent, Types::BookingCustomAttributeUpsertRequest, Types::BookingCustomAttributeUpsertResponse, Types::BookingCustomAttributeVisibleDeletedEvent, Types::BookingCustomAttributeVisibleUpdatedEvent, Types::BookingUpdatedEvent, Types::BookingUpdatedEventData, Types::BookingUpdatedEventObject, Types::Break, Types::BreakType, Types::BulkCreateCustomerData, Types::BulkCreateCustomersResponse, Types::BulkDeleteBookingCustomAttributesResponse, Types::BulkDeleteCustomersResponse, Types::BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest, Types::BulkDeleteLocationCustomAttributesResponse, Types::BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse, Types::BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest, Types::BulkDeleteMerchantCustomAttributesResponse, Types::BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse, Types::BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute, Types::BulkDeleteOrderCustomAttributesResponse, Types::BulkPublishScheduledShiftsData, Types::BulkPublishScheduledShiftsResponse, Types::BulkRetrieveBookingsResponse, Types::BulkRetrieveChannelsResponse, Types::BulkRetrieveCustomersResponse, Types::BulkRetrieveTeamMemberBookingProfilesResponse, Types::BulkSwapPlanResponse, Types::BulkUpdateCustomerData, Types::BulkUpdateCustomersResponse, Types::BulkUpsertBookingCustomAttributesResponse, Types::BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest, Types::BulkUpsertLocationCustomAttributesResponse, Types::BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse, Types::BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest, Types::BulkUpsertMerchantCustomAttributesResponse, Types::BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse, Types::BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute, Types::BulkUpsertOrderCustomAttributesResponse, Types::BusinessAppointmentSettings, Types::BusinessBookingProfile, Types::BusinessHours, Types::BusinessHoursPeriod, Types::BuyNowPayLaterDetails, Types::CalculateLoyaltyPointsResponse, Types::CalculateOrderResponse, Types::CancelBookingResponse, Types::CancelInvoiceResponse, Types::CancelLoyaltyPromotionResponse, Types::CancelPaymentByIdempotencyKeyResponse, Types::CancelPaymentResponse, Types::CancelSubscriptionResponse, Types::CancelTerminalActionResponse, Types::CancelTerminalCheckoutResponse, Types::CancelTerminalRefundResponse, Types::CancelTransferOrderResponse, Types::CaptureTransactionResponse, Types::Card, Types::CardAutomaticallyUpdatedEvent, Types::CardAutomaticallyUpdatedEventData, Types::CardAutomaticallyUpdatedEventObject, Types::CardCreatedEvent, Types::CardCreatedEventData, Types::CardCreatedEventObject, Types::CardDisabledEvent, Types::CardDisabledEventData, Types::CardDisabledEventObject, Types::CardForgottenEvent, Types::CardForgottenEventCard, Types::CardForgottenEventData, Types::CardForgottenEventObject, Types::CardPaymentDetails, Types::CardPaymentTimeline, Types::CardUpdatedEvent, Types::CardUpdatedEventData, Types::CardUpdatedEventObject, Types::CashAppDetails, Types::CashDrawerDevice, Types::CashDrawerShift, Types::CashDrawerShiftEvent, Types::CashDrawerShiftSummary, Types::CashPaymentDetails, Types::CatalogAvailabilityPeriod, Types::CatalogCategory, Types::CatalogCustomAttributeDefinition, Types::CatalogCustomAttributeDefinitionNumberConfig, Types::CatalogCustomAttributeDefinitionSelectionConfig, Types::CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection, Types::CatalogCustomAttributeDefinitionStringConfig, Types::CatalogCustomAttributeValue, Types::CatalogDiscount, Types::CatalogEcomSeoData, Types::CatalogIdMapping, Types::CatalogImage, Types::CatalogInfoResponse, Types::CatalogInfoResponseLimits, Types::CatalogItem, Types::CatalogItemFoodAndBeverageDetails, Types::CatalogItemFoodAndBeverageDetailsDietaryPreference, Types::CatalogItemFoodAndBeverageDetailsIngredient, Types::CatalogItemModifierListInfo, Types::CatalogItemOption, Types::CatalogItemOptionForItem, Types::CatalogItemOptionValue, Types::CatalogItemOptionValueForItemVariation, Types::CatalogItemVariation, Types::CatalogMeasurementUnit, Types::CatalogModifier, Types::CatalogModifierList, Types::CatalogModifierOverride, Types::CatalogObject, Types::CatalogObjectAvailabilityPeriod, Types::CatalogObjectBase, Types::CatalogObjectBatch, Types::CatalogObjectCategory, Types::CatalogObjectCustomAttributeDefinition, Types::CatalogObjectDiscount, Types::CatalogObjectImage, Types::CatalogObjectItem, Types::CatalogObjectItemOption, Types::CatalogObjectItemOptionValue, Types::CatalogObjectItemVariation, Types::CatalogObjectMeasurementUnit, Types::CatalogObjectModifier, Types::CatalogObjectModifierList, Types::CatalogObjectPricingRule, Types::CatalogObjectProductSet, Types::CatalogObjectQuickAmountsSettings, Types::CatalogObjectReference, Types::CatalogObjectSubscriptionPlan, Types::CatalogObjectSubscriptionPlanVariation, Types::CatalogObjectTax, Types::CatalogObjectTimePeriod, Types::CatalogPricingRule, Types::CatalogProductSet, Types::CatalogQuery, Types::CatalogQueryExact, Types::CatalogQueryItemVariationsForItemOptionValues, Types::CatalogQueryItemsForItemOptions, Types::CatalogQueryItemsForModifierList, Types::CatalogQueryItemsForTax, Types::CatalogQueryPrefix, Types::CatalogQueryRange, Types::CatalogQuerySet, Types::CatalogQuerySortedAttribute, Types::CatalogQueryText, Types::CatalogQuickAmount, Types::CatalogQuickAmountsSettings, Types::CatalogStockConversion, Types::CatalogSubscriptionPlan, Types::CatalogSubscriptionPlanVariation, Types::CatalogTax, Types::CatalogTimePeriod, Types::CatalogV1Id, Types::CatalogVersionUpdatedEvent, Types::CatalogVersionUpdatedEventCatalogVersion, Types::CatalogVersionUpdatedEventData, Types::CatalogVersionUpdatedEventObject, Types::CategoryPathToRootNode, Types::ChangeBillingAnchorDateResponse, Types::Channel, Types::ChargeRequestAdditionalRecipient, Types::Checkout, Types::CheckoutLocationSettings, Types::CheckoutLocationSettingsBranding, Types::CheckoutLocationSettingsCoupons, Types::CheckoutLocationSettingsPolicy, Types::CheckoutLocationSettingsTipping, Types::CheckoutMerchantSettings, Types::CheckoutMerchantSettingsPaymentMethods, Types::CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay, Types::CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange, Types::CheckoutMerchantSettingsPaymentMethodsPaymentMethod, Types::CheckoutOptions, Types::ClearpayDetails, Types::CloneOrderResponse, Types::CollectedData, Types::CompletePaymentResponse, Types::Component, Types::ConfirmationDecision, Types::ConfirmationOptions, Types::Coordinates, Types::CreateBankAccountResponse, Types::CreateBookingCustomAttributeDefinitionResponse, Types::CreateBookingResponse, Types::CreateBreakTypeResponse, Types::CreateCardResponse, Types::CreateCatalogImageRequest, Types::CreateCatalogImageResponse, Types::CreateCheckoutResponse, Types::CreateCustomerCardResponse, Types::CreateCustomerCustomAttributeDefinitionResponse, Types::CreateCustomerGroupResponse, Types::CreateCustomerResponse, Types::CreateDeviceCodeResponse, Types::CreateDisputeEvidenceFileRequest, Types::CreateDisputeEvidenceFileResponse, Types::CreateDisputeEvidenceTextResponse, Types::CreateGiftCardActivityResponse, Types::CreateGiftCardResponse, Types::CreateInvoiceAttachmentRequestData, Types::CreateInvoiceAttachmentResponse, Types::CreateInvoiceResponse, Types::CreateJobResponse, Types::CreateLocationCustomAttributeDefinitionResponse, Types::CreateLocationResponse, Types::CreateLoyaltyAccountResponse, Types::CreateLoyaltyPromotionResponse, Types::CreateLoyaltyRewardResponse, Types::CreateMerchantCustomAttributeDefinitionResponse, Types::CreateOrderCustomAttributeDefinitionResponse, Types::CreateOrderRequest, Types::CreateOrderResponse, Types::CreatePaymentLinkResponse, Types::CreatePaymentResponse, Types::CreateScheduledShiftResponse, Types::CreateShiftResponse, Types::CreateSubscriptionResponse, Types::CreateTeamMemberRequest, Types::CreateTeamMemberResponse, Types::CreateTerminalActionResponse, Types::CreateTerminalCheckoutResponse, Types::CreateTerminalRefundResponse, Types::CreateTimecardResponse, Types::CreateTransferOrderData, Types::CreateTransferOrderLineData, Types::CreateTransferOrderResponse, Types::CreateVendorResponse, Types::CreateWebhookSubscriptionResponse, Types::CustomAttribute, Types::CustomAttributeDefinition, Types::CustomAttributeDefinitionEventData, Types::CustomAttributeDefinitionEventDataObject, Types::CustomAttributeEventData, Types::CustomAttributeEventDataObject, Types::CustomAttributeFilter, Types::CustomField, Types::Customer, Types::CustomerAddressFilter, Types::CustomerCreatedEvent, Types::CustomerCreatedEventData, Types::CustomerCreatedEventEventContext, Types::CustomerCreatedEventEventContextMerge, Types::CustomerCreatedEventObject, Types::CustomerCreationSourceFilter, Types::CustomerCustomAttributeDefinitionCreatedEvent, Types::CustomerCustomAttributeDefinitionCreatedPublicEvent, Types::CustomerCustomAttributeDefinitionDeletedEvent, Types::CustomerCustomAttributeDefinitionDeletedPublicEvent, Types::CustomerCustomAttributeDefinitionOwnedCreatedEvent, Types::CustomerCustomAttributeDefinitionOwnedDeletedEvent, Types::CustomerCustomAttributeDefinitionOwnedUpdatedEvent, Types::CustomerCustomAttributeDefinitionUpdatedEvent, Types::CustomerCustomAttributeDefinitionUpdatedPublicEvent, Types::CustomerCustomAttributeDefinitionVisibleCreatedEvent, Types::CustomerCustomAttributeDefinitionVisibleDeletedEvent, Types::CustomerCustomAttributeDefinitionVisibleUpdatedEvent, Types::CustomerCustomAttributeDeletedEvent, Types::CustomerCustomAttributeDeletedPublicEvent, Types::CustomerCustomAttributeFilter, Types::CustomerCustomAttributeFilterValue, Types::CustomerCustomAttributeFilters, Types::CustomerCustomAttributeOwnedDeletedEvent, Types::CustomerCustomAttributeOwnedUpdatedEvent, Types::CustomerCustomAttributeUpdatedEvent, Types::CustomerCustomAttributeUpdatedPublicEvent, Types::CustomerCustomAttributeVisibleDeletedEvent, Types::CustomerCustomAttributeVisibleUpdatedEvent, Types::CustomerDeletedEvent, Types::CustomerDeletedEventData, Types::CustomerDeletedEventEventContext, Types::CustomerDeletedEventEventContextMerge, Types::CustomerDeletedEventObject, Types::CustomerDetails, Types::CustomerFilter, Types::CustomerGroup, Types::CustomerPreferences, Types::CustomerQuery, Types::CustomerSegment, Types::CustomerSort, Types::CustomerTaxIds, Types::CustomerTextFilter, Types::CustomerUpdatedEvent, Types::CustomerUpdatedEventData, Types::CustomerUpdatedEventObject, Types::DataCollectionOptions, Types::DateRange, Types::DeleteBookingCustomAttributeDefinitionResponse, Types::DeleteBookingCustomAttributeResponse, Types::DeleteBreakTypeResponse, Types::DeleteCatalogObjectResponse, Types::DeleteCustomerCardResponse, Types::DeleteCustomerCustomAttributeDefinitionResponse, Types::DeleteCustomerCustomAttributeResponse, Types::DeleteCustomerGroupResponse, Types::DeleteCustomerResponse, Types::DeleteDisputeEvidenceResponse, Types::DeleteInvoiceAttachmentResponse, Types::DeleteInvoiceResponse, Types::DeleteLocationCustomAttributeDefinitionResponse, Types::DeleteLocationCustomAttributeResponse, Types::DeleteLoyaltyRewardResponse, Types::DeleteMerchantCustomAttributeDefinitionResponse, Types::DeleteMerchantCustomAttributeResponse, Types::DeleteOrderCustomAttributeDefinitionResponse, Types::DeleteOrderCustomAttributeResponse, Types::DeletePaymentLinkResponse, Types::DeleteShiftResponse, Types::DeleteSnippetResponse, Types::DeleteSubscriptionActionResponse, Types::DeleteTimecardResponse, Types::DeleteTransferOrderResponse, Types::DeleteWebhookSubscriptionResponse, Types::Destination, Types::DestinationDetails, Types::DestinationDetailsCardRefundDetails, Types::DestinationDetailsCashRefundDetails, Types::DestinationDetailsExternalRefundDetails, Types::Device, Types::DeviceAttributes, Types::DeviceCheckoutOptions, Types::DeviceCode, Types::DeviceCodePairedEvent, Types::DeviceCodePairedEventData, Types::DeviceCodePairedEventObject, Types::DeviceComponentDetailsApplicationDetails, Types::DeviceComponentDetailsBatteryDetails, Types::DeviceComponentDetailsCardReaderDetails, Types::DeviceComponentDetailsEthernetDetails, Types::DeviceComponentDetailsMeasurement, Types::DeviceComponentDetailsWiFiDetails, Types::DeviceCreatedEvent, Types::DeviceCreatedEventData, Types::DeviceCreatedEventObject, Types::DeviceDetails, Types::DeviceMetadata, Types::DeviceStatus, Types::DigitalWalletDetails, Types::DisableBankAccountResponse, Types::DisableCardResponse, Types::DisableEventsResponse, Types::DismissTerminalActionResponse, Types::DismissTerminalCheckoutResponse, Types::DismissTerminalRefundResponse, Types::Dispute, Types::DisputeCreatedEvent, Types::DisputeCreatedEventData, Types::DisputeCreatedEventObject, Types::DisputeEvidence, Types::DisputeEvidenceAddedEvent, Types::DisputeEvidenceAddedEventData, Types::DisputeEvidenceAddedEventObject, Types::DisputeEvidenceCreatedEvent, Types::DisputeEvidenceCreatedEventData, Types::DisputeEvidenceCreatedEventObject, Types::DisputeEvidenceDeletedEvent, Types::DisputeEvidenceDeletedEventData, Types::DisputeEvidenceDeletedEventObject, Types::DisputeEvidenceFile, Types::DisputeEvidenceRemovedEvent, Types::DisputeEvidenceRemovedEventData, Types::DisputeEvidenceRemovedEventObject, Types::DisputeStateChangedEvent, Types::DisputeStateChangedEventData, Types::DisputeStateChangedEventObject, Types::DisputeStateUpdatedEvent, Types::DisputeStateUpdatedEventData, Types::DisputeStateUpdatedEventObject, Types::DisputedPayment, Types::Employee, Types::EmployeeWage, Types::EnableEventsResponse, Types::Error, Types::Event, Types::EventData, Types::EventMetadata, Types::EventTypeMetadata, Types::ExternalPaymentDetails, Types::FilterValue, Types::FloatNumberRange, Types::Fulfillment, Types::FulfillmentDeliveryDetails, Types::FulfillmentFulfillmentEntry, Types::FulfillmentPickupDetails, Types::FulfillmentPickupDetailsCurbsidePickupDetails, Types::FulfillmentRecipient, Types::FulfillmentShipmentDetails, Types::GetBankAccountByV1IdResponse, Types::GetBankAccountResponse, Types::GetBookingResponse, Types::GetBreakTypeResponse, Types::GetBusinessBookingProfileResponse, Types::GetCardResponse, Types::GetCashDrawerShiftResponse, Types::GetCatalogObjectResponse, Types::GetCustomerCustomAttributeDefinitionResponse, Types::GetCustomerCustomAttributeResponse, Types::GetCustomerGroupResponse, Types::GetCustomerResponse, Types::GetCustomerSegmentResponse, Types::GetDeviceCodeResponse, Types::GetDeviceResponse, Types::GetDisputeEvidenceResponse, Types::GetDisputeResponse, Types::GetEmployeeResponse, Types::GetEmployeeWageResponse, Types::GetGiftCardFromGanResponse, Types::GetGiftCardFromNonceResponse, Types::GetGiftCardResponse, Types::GetInventoryAdjustmentResponse, Types::GetInventoryChangesResponse, Types::GetInventoryCountResponse, Types::GetInventoryPhysicalCountResponse, Types::GetInventoryTransferResponse, Types::GetInvoiceResponse, Types::GetLocationResponse, Types::GetLoyaltyAccountResponse, Types::GetLoyaltyProgramResponse, Types::GetLoyaltyPromotionResponse, Types::GetLoyaltyRewardResponse, Types::GetMerchantResponse, Types::GetOrderResponse, Types::GetPaymentLinkResponse, Types::GetPaymentRefundResponse, Types::GetPaymentResponse, Types::GetPayoutResponse, Types::GetShiftResponse, Types::GetSnippetResponse, Types::GetSubscriptionResponse, Types::GetTeamMemberBookingProfileResponse, Types::GetTeamMemberResponse, Types::GetTeamMemberWageResponse, Types::GetTerminalActionResponse, Types::GetTerminalCheckoutResponse, Types::GetTerminalRefundResponse, Types::GetTransactionResponse, Types::GetVendorResponse, Types::GetWageSettingResponse, Types::GetWebhookSubscriptionResponse, Types::GiftCard, Types::GiftCardActivity, Types::GiftCardActivityActivate, Types::GiftCardActivityAdjustDecrement, Types::GiftCardActivityAdjustIncrement, Types::GiftCardActivityBlock, Types::GiftCardActivityClearBalance, Types::GiftCardActivityCreatedEvent, Types::GiftCardActivityCreatedEventData, Types::GiftCardActivityCreatedEventObject, Types::GiftCardActivityDeactivate, Types::GiftCardActivityImport, Types::GiftCardActivityImportReversal, Types::GiftCardActivityLoad, Types::GiftCardActivityRedeem, Types::GiftCardActivityRefund, Types::GiftCardActivityTransferBalanceFrom, Types::GiftCardActivityTransferBalanceTo, Types::GiftCardActivityUnblock, Types::GiftCardActivityUnlinkedActivityRefund, Types::GiftCardActivityUpdatedEvent, Types::GiftCardActivityUpdatedEventData, Types::GiftCardActivityUpdatedEventObject, Types::GiftCardCreatedEvent, Types::GiftCardCreatedEventData, Types::GiftCardCreatedEventObject, Types::GiftCardCustomerLinkedEvent, Types::GiftCardCustomerLinkedEventData, Types::GiftCardCustomerLinkedEventObject, Types::GiftCardCustomerUnlinkedEvent, Types::GiftCardCustomerUnlinkedEventData, Types::GiftCardCustomerUnlinkedEventObject, Types::GiftCardUpdatedEvent, Types::GiftCardUpdatedEventData, Types::GiftCardUpdatedEventObject, Types::InventoryAdjustment, Types::InventoryAdjustmentGroup, Types::InventoryChange, Types::InventoryCount, Types::InventoryCountUpdatedEvent, Types::InventoryCountUpdatedEventData, Types::InventoryCountUpdatedEventObject, Types::InventoryPhysicalCount, Types::InventoryTransfer, Types::Invoice, Types::InvoiceAcceptedPaymentMethods, Types::InvoiceAttachment, Types::InvoiceCanceledEvent, Types::InvoiceCanceledEventData, Types::InvoiceCanceledEventObject, Types::InvoiceCreatedEvent, Types::InvoiceCreatedEventData, Types::InvoiceCreatedEventObject, Types::InvoiceCustomField, Types::InvoiceDeletedEvent, Types::InvoiceDeletedEventData, Types::InvoiceFilter, Types::InvoicePaymentMadeEvent, Types::InvoicePaymentMadeEventData, Types::InvoicePaymentMadeEventObject, Types::InvoicePaymentReminder, Types::InvoicePaymentRequest, Types::InvoicePublishedEvent, Types::InvoicePublishedEventData, Types::InvoicePublishedEventObject, Types::InvoiceQuery, Types::InvoiceRecipient, Types::InvoiceRecipientTaxIds, Types::InvoiceRefundedEvent, Types::InvoiceRefundedEventData, Types::InvoiceRefundedEventObject, Types::InvoiceScheduledChargeFailedEvent, Types::InvoiceScheduledChargeFailedEventData, Types::InvoiceScheduledChargeFailedEventObject, Types::InvoiceSort, Types::InvoiceUpdatedEvent, Types::InvoiceUpdatedEventData, Types::InvoiceUpdatedEventObject, Types::ItemVariationLocationOverrides, Types::Job, Types::JobAssignment, Types::JobCreatedEvent, Types::JobCreatedEventData, Types::JobCreatedEventObject, Types::JobUpdatedEvent, Types::JobUpdatedEventData, Types::JobUpdatedEventObject, Types::LaborScheduledShiftCreatedEvent, Types::LaborScheduledShiftCreatedEventData, Types::LaborScheduledShiftCreatedEventObject, Types::LaborScheduledShiftDeletedEvent, Types::LaborScheduledShiftDeletedEventData, Types::LaborScheduledShiftPublishedEvent, Types::LaborScheduledShiftPublishedEventData, Types::LaborScheduledShiftPublishedEventObject, Types::LaborScheduledShiftUpdatedEvent, Types::LaborScheduledShiftUpdatedEventData, Types::LaborScheduledShiftUpdatedEventObject, Types::LaborShiftCreatedEvent, Types::LaborShiftCreatedEventData, Types::LaborShiftCreatedEventObject, Types::LaborShiftDeletedEvent, Types::LaborShiftDeletedEventData, Types::LaborShiftUpdatedEvent, Types::LaborShiftUpdatedEventData, Types::LaborShiftUpdatedEventObject, Types::LaborTimecardCreatedEvent, Types::LaborTimecardCreatedEventData, Types::LaborTimecardCreatedEventObject, Types::LaborTimecardDeletedEvent, Types::LaborTimecardDeletedEventData, Types::LaborTimecardUpdatedEvent, Types::LaborTimecardUpdatedEventData, Types::LaborTimecardUpdatedEventObject, Types::LinkCustomerToGiftCardResponse, Types::ListBankAccountsResponse, Types::ListBookingCustomAttributeDefinitionsResponse, Types::ListBookingCustomAttributesResponse, Types::ListBookingsResponse, Types::ListBreakTypesResponse, Types::ListCardsResponse, Types::ListCashDrawerShiftEventsResponse, Types::ListCashDrawerShiftsResponse, Types::ListCatalogResponse, Types::ListChannelsResponse, Types::ListCustomerCustomAttributeDefinitionsResponse, Types::ListCustomerCustomAttributesResponse, Types::ListCustomerGroupsResponse, Types::ListCustomerSegmentsResponse, Types::ListCustomersResponse, Types::ListDeviceCodesResponse, Types::ListDevicesResponse, Types::ListDisputeEvidenceResponse, Types::ListDisputesResponse, Types::ListEmployeeWagesResponse, Types::ListEmployeesResponse, Types::ListEventTypesResponse, Types::ListGiftCardActivitiesResponse, Types::ListGiftCardsResponse, Types::ListInvoicesResponse, Types::ListJobsResponse, Types::ListLocationBookingProfilesResponse, Types::ListLocationCustomAttributeDefinitionsResponse, Types::ListLocationCustomAttributesResponse, Types::ListLocationsResponse, Types::ListLoyaltyProgramsResponse, Types::ListLoyaltyPromotionsResponse, Types::ListMerchantCustomAttributeDefinitionsResponse, Types::ListMerchantCustomAttributesResponse, Types::ListMerchantsResponse, Types::ListOrderCustomAttributeDefinitionsResponse, Types::ListOrderCustomAttributesResponse, Types::ListPaymentLinksResponse, Types::ListPaymentRefundsResponse, Types::ListPaymentsResponse, Types::ListPayoutEntriesResponse, Types::ListPayoutsResponse, Types::ListSitesResponse, Types::ListSubscriptionEventsResponse, Types::ListTeamMemberBookingProfilesResponse, Types::ListTeamMemberWagesResponse, Types::ListTransactionsResponse, Types::ListWebhookEventTypesResponse, Types::ListWebhookSubscriptionsResponse, Types::ListWorkweekConfigsResponse, Types::Location, Types::LocationBookingProfile, Types::LocationCreatedEvent, Types::LocationCreatedEventData, Types::LocationCustomAttributeDefinitionOwnedCreatedEvent, Types::LocationCustomAttributeDefinitionOwnedDeletedEvent, Types::LocationCustomAttributeDefinitionOwnedUpdatedEvent, Types::LocationCustomAttributeDefinitionVisibleCreatedEvent, Types::LocationCustomAttributeDefinitionVisibleDeletedEvent, Types::LocationCustomAttributeDefinitionVisibleUpdatedEvent, Types::LocationCustomAttributeOwnedDeletedEvent, Types::LocationCustomAttributeOwnedUpdatedEvent, Types::LocationCustomAttributeVisibleDeletedEvent, Types::LocationCustomAttributeVisibleUpdatedEvent, Types::LocationSettingsUpdatedEvent, Types::LocationSettingsUpdatedEventData, Types::LocationSettingsUpdatedEventObject, Types::LocationUpdatedEvent, Types::LocationUpdatedEventData, Types::LoyaltyAccount, Types::LoyaltyAccountCreatedEvent, Types::LoyaltyAccountCreatedEventData, Types::LoyaltyAccountCreatedEventObject, Types::LoyaltyAccountDeletedEvent, Types::LoyaltyAccountDeletedEventData, Types::LoyaltyAccountDeletedEventObject, Types::LoyaltyAccountExpiringPointDeadline, Types::LoyaltyAccountMapping, Types::LoyaltyAccountUpdatedEvent, Types::LoyaltyAccountUpdatedEventData, Types::LoyaltyAccountUpdatedEventObject, Types::LoyaltyEvent, Types::LoyaltyEventAccumulatePoints, Types::LoyaltyEventAccumulatePromotionPoints, Types::LoyaltyEventAdjustPoints, Types::LoyaltyEventCreateReward, Types::LoyaltyEventCreatedEvent, Types::LoyaltyEventCreatedEventData, Types::LoyaltyEventCreatedEventObject, Types::LoyaltyEventDateTimeFilter, Types::LoyaltyEventDeleteReward, Types::LoyaltyEventExpirePoints, Types::LoyaltyEventFilter, Types::LoyaltyEventLocationFilter, Types::LoyaltyEventLoyaltyAccountFilter, Types::LoyaltyEventOrderFilter, Types::LoyaltyEventOther, Types::LoyaltyEventQuery, Types::LoyaltyEventRedeemReward, Types::LoyaltyEventTypeFilter, Types::LoyaltyProgram, Types::LoyaltyProgramAccrualRule, Types::LoyaltyProgramAccrualRuleCategoryData, Types::LoyaltyProgramAccrualRuleItemVariationData, Types::LoyaltyProgramAccrualRuleSpendData, Types::LoyaltyProgramAccrualRuleVisitData, Types::LoyaltyProgramCreatedEvent, Types::LoyaltyProgramCreatedEventData, Types::LoyaltyProgramCreatedEventObject, Types::LoyaltyProgramExpirationPolicy, Types::LoyaltyProgramRewardTier, Types::LoyaltyProgramTerminology, Types::LoyaltyProgramUpdatedEvent, Types::LoyaltyProgramUpdatedEventData, Types::LoyaltyProgramUpdatedEventObject, Types::LoyaltyPromotion, Types::LoyaltyPromotionAvailableTimeData, Types::LoyaltyPromotionCreatedEvent, Types::LoyaltyPromotionCreatedEventData, Types::LoyaltyPromotionCreatedEventObject, Types::LoyaltyPromotionIncentive, Types::LoyaltyPromotionIncentivePointsAdditionData, Types::LoyaltyPromotionIncentivePointsMultiplierData, Types::LoyaltyPromotionTriggerLimit, Types::LoyaltyPromotionUpdatedEvent, Types::LoyaltyPromotionUpdatedEventData, Types::LoyaltyPromotionUpdatedEventObject, Types::LoyaltyReward, Types::MeasurementUnit, Types::MeasurementUnitCustom, Types::Merchant, Types::MerchantCustomAttributeDefinitionOwnedCreatedEvent, Types::MerchantCustomAttributeDefinitionOwnedDeletedEvent, Types::MerchantCustomAttributeDefinitionOwnedUpdatedEvent, Types::MerchantCustomAttributeDefinitionVisibleCreatedEvent, Types::MerchantCustomAttributeDefinitionVisibleDeletedEvent, Types::MerchantCustomAttributeDefinitionVisibleUpdatedEvent, Types::MerchantCustomAttributeOwnedDeletedEvent, Types::MerchantCustomAttributeOwnedUpdatedEvent, Types::MerchantCustomAttributeVisibleDeletedEvent, Types::MerchantCustomAttributeVisibleUpdatedEvent, Types::MerchantSettingsUpdatedEvent, Types::MerchantSettingsUpdatedEventData, Types::MerchantSettingsUpdatedEventObject, Types::ModifierLocationOverrides, Types::Money, Types::OauthAuthorizationRevokedEvent, Types::OauthAuthorizationRevokedEventData, Types::OauthAuthorizationRevokedEventObject, Types::OauthAuthorizationRevokedEventRevocationObject, Types::ObtainTokenResponse, Types::OfflinePaymentDetails, Types::Order, Types::OrderCreated, Types::OrderCreatedEvent, Types::OrderCreatedEventData, Types::OrderCreatedObject, Types::OrderCustomAttributeDefinitionOwnedCreatedEvent, Types::OrderCustomAttributeDefinitionOwnedDeletedEvent, Types::OrderCustomAttributeDefinitionOwnedUpdatedEvent, Types::OrderCustomAttributeDefinitionVisibleCreatedEvent, Types::OrderCustomAttributeDefinitionVisibleDeletedEvent, Types::OrderCustomAttributeDefinitionVisibleUpdatedEvent, Types::OrderCustomAttributeOwnedDeletedEvent, Types::OrderCustomAttributeOwnedUpdatedEvent, Types::OrderCustomAttributeVisibleDeletedEvent, Types::OrderCustomAttributeVisibleUpdatedEvent, Types::OrderEntry, Types::OrderFulfillmentUpdated, Types::OrderFulfillmentUpdatedEvent, Types::OrderFulfillmentUpdatedEventData, Types::OrderFulfillmentUpdatedObject, Types::OrderFulfillmentUpdatedUpdate, Types::OrderLineItem, Types::OrderLineItemAppliedDiscount, Types::OrderLineItemAppliedServiceCharge, Types::OrderLineItemAppliedTax, Types::OrderLineItemDiscount, Types::OrderLineItemModifier, Types::OrderLineItemPricingBlocklists, Types::OrderLineItemPricingBlocklistsBlockedDiscount, Types::OrderLineItemPricingBlocklistsBlockedServiceCharge, Types::OrderLineItemPricingBlocklistsBlockedTax, Types::OrderLineItemTax, Types::OrderMoneyAmounts, Types::OrderPricingOptions, Types::OrderQuantityUnit, Types::OrderReturn, Types::OrderReturnDiscount, Types::OrderReturnLineItem, Types::OrderReturnLineItemModifier, Types::OrderReturnServiceCharge, Types::OrderReturnTax, Types::OrderReturnTip, Types::OrderReward, Types::OrderRoundingAdjustment, Types::OrderServiceCharge, Types::OrderSource, Types::OrderUpdated, Types::OrderUpdatedEvent, Types::OrderUpdatedEventData, Types::OrderUpdatedObject, Types::PauseSubscriptionResponse, Types::PayOrderResponse, Types::Payment, Types::PaymentBalanceActivityAppFeeRefundDetail, Types::PaymentBalanceActivityAppFeeRevenueDetail, Types::PaymentBalanceActivityAutomaticSavingsDetail, Types::PaymentBalanceActivityAutomaticSavingsReversedDetail, Types::PaymentBalanceActivityChargeDetail, Types::PaymentBalanceActivityDepositFeeDetail, Types::PaymentBalanceActivityDepositFeeReversedDetail, Types::PaymentBalanceActivityDisputeDetail, Types::PaymentBalanceActivityFeeDetail, Types::PaymentBalanceActivityFreeProcessingDetail, Types::PaymentBalanceActivityHoldAdjustmentDetail, Types::PaymentBalanceActivityOpenDisputeDetail, Types::PaymentBalanceActivityOtherAdjustmentDetail, Types::PaymentBalanceActivityOtherDetail, Types::PaymentBalanceActivityRefundDetail, Types::PaymentBalanceActivityReleaseAdjustmentDetail, Types::PaymentBalanceActivityReserveHoldDetail, Types::PaymentBalanceActivityReserveReleaseDetail, Types::PaymentBalanceActivitySquareCapitalPaymentDetail, Types::PaymentBalanceActivitySquareCapitalReversedPaymentDetail, Types::PaymentBalanceActivitySquarePayrollTransferDetail, Types::PaymentBalanceActivitySquarePayrollTransferReversedDetail, Types::PaymentBalanceActivityTaxOnFeeDetail, Types::PaymentBalanceActivityThirdPartyFeeDetail, Types::PaymentBalanceActivityThirdPartyFeeRefundDetail, Types::PaymentCreatedEvent, Types::PaymentCreatedEventData, Types::PaymentCreatedEventObject, Types::PaymentLink, Types::PaymentLinkRelatedResources, Types::PaymentOptions, Types::PaymentRefund, Types::PaymentUpdatedEvent, Types::PaymentUpdatedEventData, Types::PaymentUpdatedEventObject, Types::Payout, Types::PayoutEntry, Types::PayoutFailedEvent, Types::PayoutFailedEventData, Types::PayoutFailedEventObject, Types::PayoutFee, Types::PayoutPaidEvent, Types::PayoutPaidEventData, Types::PayoutPaidEventObject, Types::PayoutSentEvent, Types::PayoutSentEventData, Types::PayoutSentEventObject, Types::Phase, Types::PhaseInput, Types::PrePopulatedData, Types::ProcessingFee, Types::PublishInvoiceResponse, Types::PublishScheduledShiftResponse, Types::QrCodeOptions, Types::QuickPay, Types::Range, Types::ReceiptOptions, Types::ReceiveTransferOrderResponse, Types::RedeemLoyaltyRewardResponse, Types::Reference, Types::Refund, Types::RefundCreatedEvent, Types::RefundCreatedEventData, Types::RefundCreatedEventObject, Types::RefundPaymentResponse, Types::RefundUpdatedEvent, Types::RefundUpdatedEventData, Types::RefundUpdatedEventObject, Types::RegisterDomainResponse, Types::RemoveGroupFromCustomerResponse, Types::ResumeSubscriptionResponse, Types::RetrieveBookingCustomAttributeDefinitionResponse, Types::RetrieveBookingCustomAttributeResponse, Types::RetrieveChannelResponse, Types::RetrieveJobResponse, Types::RetrieveLocationBookingProfileResponse, Types::RetrieveLocationCustomAttributeDefinitionResponse, Types::RetrieveLocationCustomAttributeResponse, Types::RetrieveLocationSettingsResponse, Types::RetrieveMerchantCustomAttributeDefinitionResponse, Types::RetrieveMerchantCustomAttributeResponse, Types::RetrieveMerchantSettingsResponse, Types::RetrieveOrderCustomAttributeDefinitionResponse, Types::RetrieveOrderCustomAttributeResponse, Types::RetrieveScheduledShiftResponse, Types::RetrieveTimecardResponse, Types::RetrieveTokenStatusResponse, Types::RetrieveTransferOrderResponse, Types::RevokeTokenResponse, Types::RiskEvaluation, Types::SaveCardOptions, Types::ScheduledShift, Types::ScheduledShiftDetails, Types::ScheduledShiftFilter, Types::ScheduledShiftQuery, Types::ScheduledShiftSort, Types::ScheduledShiftWorkday, Types::SearchAvailabilityFilter, Types::SearchAvailabilityQuery, Types::SearchAvailabilityResponse, Types::SearchCatalogItemsResponse, Types::SearchCatalogObjectsResponse, Types::SearchCustomersResponse, Types::SearchEventsFilter, Types::SearchEventsQuery, Types::SearchEventsResponse, Types::SearchEventsSort, Types::SearchInvoicesResponse, Types::SearchLoyaltyAccountsRequestLoyaltyAccountQuery, Types::SearchLoyaltyAccountsResponse, Types::SearchLoyaltyEventsResponse, Types::SearchLoyaltyRewardsRequestLoyaltyRewardQuery, Types::SearchLoyaltyRewardsResponse, Types::SearchOrdersCustomerFilter, Types::SearchOrdersDateTimeFilter, Types::SearchOrdersFilter, Types::SearchOrdersFulfillmentFilter, Types::SearchOrdersQuery, Types::SearchOrdersResponse, Types::SearchOrdersSort, Types::SearchOrdersSourceFilter, Types::SearchOrdersStateFilter, Types::SearchScheduledShiftsResponse, Types::SearchShiftsResponse, Types::SearchSubscriptionsFilter, Types::SearchSubscriptionsQuery, Types::SearchSubscriptionsResponse, Types::SearchTeamMembersFilter, Types::SearchTeamMembersQuery, Types::SearchTeamMembersResponse, Types::SearchTerminalActionsResponse, Types::SearchTerminalCheckoutsResponse, Types::SearchTerminalRefundsResponse, Types::SearchTimecardsResponse, Types::SearchTransferOrdersResponse, Types::SearchVendorsRequestFilter, Types::SearchVendorsRequestSort, Types::SearchVendorsResponse, Types::SegmentFilter, Types::SelectOption, Types::SelectOptions, Types::Shift, Types::ShiftFilter, Types::ShiftQuery, Types::ShiftSort, Types::ShiftWage, Types::ShiftWorkday, Types::ShippingFee, Types::SignatureImage, Types::SignatureOptions, Types::Site, Types::Snippet, Types::SourceApplication, Types::SquareAccountDetails, Types::StandardUnitDescription, Types::StandardUnitDescriptionGroup, Types::StartTransferOrderResponse, Types::SubmitEvidenceResponse, Types::Subscription, Types::SubscriptionAction, Types::SubscriptionCreatedEvent, Types::SubscriptionCreatedEventData, Types::SubscriptionCreatedEventObject, Types::SubscriptionEvent, Types::SubscriptionEventInfo, Types::SubscriptionPhase, Types::SubscriptionPricing, Types::SubscriptionSource, Types::SubscriptionTestResult, Types::SubscriptionUpdatedEvent, Types::SubscriptionUpdatedEventData, Types::SubscriptionUpdatedEventObject, Types::SwapPlanResponse, Types::TaxIds, Types::TeamMember, Types::TeamMemberAssignedLocations, Types::TeamMemberBookingProfile, Types::TeamMemberCreatedEvent, Types::TeamMemberCreatedEventData, Types::TeamMemberCreatedEventObject, Types::TeamMemberUpdatedEvent, Types::TeamMemberUpdatedEventData, Types::TeamMemberUpdatedEventObject, Types::TeamMemberWage, Types::TeamMemberWageSettingUpdatedEvent, Types::TeamMemberWageSettingUpdatedEventData, Types::TeamMemberWageSettingUpdatedEventObject, Types::Tender, Types::TenderBankAccountDetails, Types::TenderBuyNowPayLaterDetails, Types::TenderCardDetails, Types::TenderCashDetails, Types::TenderSquareAccountDetails, Types::TerminalAction, Types::TerminalActionCreatedEvent, Types::TerminalActionCreatedEventData, Types::TerminalActionCreatedEventObject, Types::TerminalActionQuery, Types::TerminalActionQueryFilter, Types::TerminalActionQuerySort, Types::TerminalActionUpdatedEvent, Types::TerminalActionUpdatedEventData, Types::TerminalActionUpdatedEventObject, Types::TerminalCheckout, Types::TerminalCheckoutCreatedEvent, Types::TerminalCheckoutCreatedEventData, Types::TerminalCheckoutCreatedEventObject, Types::TerminalCheckoutQuery, Types::TerminalCheckoutQueryFilter, Types::TerminalCheckoutQuerySort, Types::TerminalCheckoutUpdatedEvent, Types::TerminalCheckoutUpdatedEventData, Types::TerminalCheckoutUpdatedEventObject, Types::TerminalRefund, Types::TerminalRefundCreatedEvent, Types::TerminalRefundCreatedEventData, Types::TerminalRefundCreatedEventObject, Types::TerminalRefundQuery, Types::TerminalRefundQueryFilter, Types::TerminalRefundQuerySort, Types::TerminalRefundUpdatedEvent, Types::TerminalRefundUpdatedEventData, Types::TerminalRefundUpdatedEventObject, Types::TestWebhookSubscriptionResponse, Types::TimeRange, Types::Timecard, Types::TimecardFilter, Types::TimecardQuery, Types::TimecardSort, Types::TimecardWage, Types::TimecardWorkday, Types::TipSettings, Types::Transaction, Types::TransferOrder, Types::TransferOrderCreatedEvent, Types::TransferOrderCreatedEventData, Types::TransferOrderCreatedEventObject, Types::TransferOrderDeletedEvent, Types::TransferOrderDeletedEventData, Types::TransferOrderFilter, Types::TransferOrderGoodsReceipt, Types::TransferOrderGoodsReceiptLineItem, Types::TransferOrderLine, Types::TransferOrderQuery, Types::TransferOrderSort, Types::TransferOrderUpdatedEvent, Types::TransferOrderUpdatedEventData, Types::TransferOrderUpdatedEventObject, Types::UnlinkCustomerFromGiftCardResponse, Types::UpdateBookingCustomAttributeDefinitionResponse, Types::UpdateBookingResponse, Types::UpdateBreakTypeResponse, Types::UpdateCatalogImageRequest, Types::UpdateCatalogImageResponse, Types::UpdateCustomerCustomAttributeDefinitionResponse, Types::UpdateCustomerGroupResponse, Types::UpdateCustomerResponse, Types::UpdateInvoiceResponse, Types::UpdateItemModifierListsResponse, Types::UpdateItemTaxesResponse, Types::UpdateJobResponse, Types::UpdateLocationCustomAttributeDefinitionResponse, Types::UpdateLocationResponse, Types::UpdateLocationSettingsResponse, Types::UpdateMerchantCustomAttributeDefinitionResponse, Types::UpdateMerchantSettingsResponse, Types::UpdateOrderCustomAttributeDefinitionResponse, Types::UpdateOrderResponse, Types::UpdatePaymentLinkResponse, Types::UpdatePaymentResponse, Types::UpdateScheduledShiftResponse, Types::UpdateShiftResponse, Types::UpdateSubscriptionResponse, Types::UpdateTeamMemberRequest, Types::UpdateTeamMemberResponse, Types::UpdateTimecardResponse, Types::UpdateTransferOrderData, Types::UpdateTransferOrderLineData, Types::UpdateTransferOrderResponse, Types::UpdateVendorRequest, Types::UpdateVendorResponse, Types::UpdateWageSettingResponse, Types::UpdateWebhookSubscriptionResponse, Types::UpdateWebhookSubscriptionSignatureKeyResponse, Types::UpdateWorkweekConfigResponse, Types::UpsertBookingCustomAttributeResponse, Types::UpsertCatalogObjectResponse, Types::UpsertCustomerCustomAttributeResponse, Types::UpsertLocationCustomAttributeResponse, Types::UpsertMerchantCustomAttributeResponse, Types::UpsertOrderCustomAttributeResponse, Types::UpsertSnippetResponse, Types::V1Money, Types::V1Order, Types::V1OrderHistoryEntry, Types::V1Tender, Types::Vendor, Types::VendorContact, Types::VendorCreatedEvent, Types::VendorCreatedEventData, Types::VendorCreatedEventObject, Types::VendorUpdatedEvent, Types::VendorUpdatedEventData, Types::VendorUpdatedEventObject, Types::VoidTransactionResponse, Types::WageSetting, Types::WebhookSubscription, Types::WorkweekConfig, V1Transactions::Types::V1ListOrdersRequest, V1Transactions::Types::V1RetrieveOrderRequest, V1Transactions::Types::V1UpdateOrderRequest, Vendors::Types::BatchCreateVendorsRequest, Vendors::Types::BatchGetVendorsRequest, Vendors::Types::BatchUpdateVendorsRequest, Vendors::Types::CreateVendorRequest, Vendors::Types::GetVendorsRequest, Vendors::Types::SearchVendorsRequest, Vendors::Types::UpdateVendorsRequest, Webhooks::EventTypes::Types::ListEventTypesRequest, Webhooks::Subscriptions::Types::CreateWebhookSubscriptionRequest, Webhooks::Subscriptions::Types::DeleteSubscriptionsRequest, Webhooks::Subscriptions::Types::GetSubscriptionsRequest, Webhooks::Subscriptions::Types::ListSubscriptionsRequest, Webhooks::Subscriptions::Types::TestWebhookSubscriptionRequest, Webhooks::Subscriptions::Types::UpdateWebhookSubscriptionRequest, Webhooks::Subscriptions::Types::UpdateWebhookSubscriptionSignatureKeyRequest
Defined Under Namespace
Classes: Field
Class Method Summary collapse
- .===(instance) ⇒ Object
-
.add_extra_field_definition(name:, type:) ⇒ void
private
Adds a new field definition into the class’s extra fields registry.
-
.coerce(value, strict: (respond_to?(:strict?) ? strict? : false)) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
-
.extra_fields ⇒ Hash<Symbol, Field>
private
Any extra fields that have been created from instantiation.
-
.field(name, type, optional: false, nullable: false, api_name: nil, default: nil) ⇒ void
Define a new field on this model.
-
.fields ⇒ Hash<Symbol, Field>
private
The defined fields for this model.
-
.literal(name, value, api_name: nil) ⇒ void
Define a new literal for this model.
- .load(str) ⇒ Object
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(values = {}) ⇒ self
constructor
Creates a new instance of this model TODO: Should all this logic be in ‘#coerce` instead?.
- #inspect ⇒ String
- #to_h ⇒ Object
Methods included from Type
Methods included from JSON::Serializable
Constructor Details
#initialize(values = {}) ⇒ self
Creates a new instance of this model TODO: Should all this logic be in ‘#coerce` instead?
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
# File 'lib/square/internal/types/model.rb', line 138 def initialize(values = {}) @data = {} values = Utils.symbolize_keys(values.dup) self.class.fields.each do |field_name, field| value = values.delete(field.api_name.to_sym) || values.delete(field.api_name) || values.delete(field_name) field_value = value || (if field.literal? field.value elsif field.default field.default end) @data[field_name] = Utils.coerce(field.type, field_value) end # Any remaining values in the input become extra fields values.each do |name, value| self.class.add_extra_field_definition(name: name, type: value.class) @data[name.to_sym] = value end end |
Class Method Details
.===(instance) ⇒ Object
127 128 129 |
# File 'lib/square/internal/types/model.rb', line 127 def ===(instance) instance.class.ancestors.include?(self) end |
.add_extra_field_definition(name:, type:) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Adds a new field definition into the class’s extra fields registry
88 89 90 91 92 93 94 95 |
# File 'lib/square/internal/types/model.rb', line 88 def add_extra_field_definition(name:, type:) return if extra_fields.key?(name.to_sym) extra_fields[name.to_sym] = Field.new(name: name, type: type, optional: true, nullable: false) define_accessor(name) define_setter(name) end |
.coerce(value, strict: (respond_to?(:strict?) ? strict? : false)) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
115 116 117 118 119 120 121 |
# File 'lib/square/internal/types/model.rb', line 115 def coerce(value, strict: (respond_to?(:strict?) ? strict? : false)) # rubocop:disable Lint/UnusedMethodArgument return value if value.is_a?(self) return value unless value.is_a?(::Hash) new(value) end |
.extra_fields ⇒ Hash<Symbol, Field>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Any extra fields that have been created from instantiation
31 32 33 |
# File 'lib/square/internal/types/model.rb', line 31 def extra_fields @extra_fields ||= {} end |
.field(name, type, optional: false, nullable: false, api_name: nil, default: nil) ⇒ void
This method returns an undefined value.
Define a new field on this model
44 45 46 47 48 49 50 |
# File 'lib/square/internal/types/model.rb', line 44 def field(name, type, optional: false, nullable: false, api_name: nil, default: nil) add_field_definition(name: name, type: type, optional: optional, nullable: nullable, api_name: api_name, default: default) define_accessor(name) define_setter(name) end |
.fields ⇒ Hash<Symbol, Field>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
The defined fields for this model
18 19 20 21 22 23 24 |
# File 'lib/square/internal/types/model.rb', line 18 def fields @fields ||= if self < Square::Internal::Types::Model superclass.fields.dup else {} end end |
.literal(name, value, api_name: nil) ⇒ void
This method returns an undefined value.
Define a new literal for this model
58 59 60 61 62 63 |
# File 'lib/square/internal/types/model.rb', line 58 def literal(name, value, api_name: nil) add_field_definition(name: name, type: value.class, optional: false, nullable: false, api_name: api_name, value: value) define_accessor(name) end |
.load(str) ⇒ Object
123 124 125 |
# File 'lib/square/internal/types/model.rb', line 123 def load(str) coerce(::JSON.parse(str, symbolize_names: true)) end |
Instance Method Details
#==(other) ⇒ Object
191 192 193 |
# File 'lib/square/internal/types/model.rb', line 191 def ==(other) self.class == other.class && to_h == other.to_h end |
#inspect ⇒ String
196 197 198 199 200 201 202 203 204 |
# File 'lib/square/internal/types/model.rb', line 196 def inspect attrs = @data.map do |name, value| field = self.class.fields[name] || self.class.extra_fields[name] display_value = field&.sensitive? ? "[REDACTED]" : value.inspect "#{name}=#{display_value}" end "#<#{self.class.name}:0x#{object_id&.to_s(16)} #{attrs.join(" ")}>" end |
#to_h ⇒ Object
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 |
# File 'lib/square/internal/types/model.rb', line 163 def to_h result = self.class.fields.merge(self.class.extra_fields).each_with_object({}) do |(name, field), acc| # If there is a value present in the data, use that value # If there is a `nil` value present in the data, and it is optional but NOT nullable, exclude key altogether # If there is a `nil` value present in the data, and it is optional and nullable, use the nil value value = @data[name] next if value.nil? && field.optional && !field.nullable if value.is_a?(::Array) value = value.map { |item| item.respond_to?(:to_h) ? item.to_h : item } elsif value.respond_to?(:to_h) value = value.to_h end acc[field.api_name] = value end # Inject union discriminant if this instance was coerced from a discriminated union # and the discriminant key is not already present in the result discriminant_key = instance_variable_get(:@_fern_union_discriminant_key) discriminant_value = instance_variable_get(:@_fern_union_discriminant_value) result[discriminant_key] = discriminant_value if discriminant_key && discriminant_value && !result.key?(discriminant_key) result end |