Documentation
¶
Index ¶
- Variables
- func Bool(b bool) *bool
- func Byte(b byte) *byte
- func Complex128(c complex128) *complex128
- func Complex64(c complex64) *complex64
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int16(i int16) *int16
- func Int32(i int32) *int32
- func Int64(i int64) *int64
- func Int8(i int8) *int8
- func MustParseDate(date string) time.Time
- func MustParseDateTime(datetime string) time.Time
- func Rune(r rune) *rune
- func String(s string) *string
- func Time(t time.Time) *time.Time
- func UUID(u uuid.UUID) *uuid.UUID
- func Uint(u uint) *uint
- func Uint16(u uint16) *uint16
- func Uint32(u uint32) *uint32
- func Uint64(u uint64) *uint64
- func Uint8(u uint8) *uint8
- func Uintptr(u uintptr) *uintptr
- type AcceptDisputeResponse
- type AcceptDisputesRequest
- type AcceptedPaymentMethods
- func (a *AcceptedPaymentMethods) GetAfterpayClearpay() *bool
- func (a *AcceptedPaymentMethods) GetApplePay() *bool
- func (a *AcceptedPaymentMethods) GetCashAppPay() *bool
- func (a *AcceptedPaymentMethods) GetExtraProperties() map[string]interface{}
- func (a *AcceptedPaymentMethods) GetGooglePay() *bool
- func (a *AcceptedPaymentMethods) String() string
- func (a *AcceptedPaymentMethods) UnmarshalJSON(data []byte) error
- type AccumulateLoyaltyPointsResponse
- func (a *AccumulateLoyaltyPointsResponse) GetErrors() []*Error
- func (a *AccumulateLoyaltyPointsResponse) GetEvent() *LoyaltyEvent
- func (a *AccumulateLoyaltyPointsResponse) GetEvents() []*LoyaltyEvent
- func (a *AccumulateLoyaltyPointsResponse) GetExtraProperties() map[string]interface{}
- func (a *AccumulateLoyaltyPointsResponse) String() string
- func (a *AccumulateLoyaltyPointsResponse) UnmarshalJSON(data []byte) error
- type AchDetails
- func (a *AchDetails) GetAccountNumberSuffix() *string
- func (a *AchDetails) GetAccountType() *string
- func (a *AchDetails) GetExtraProperties() map[string]interface{}
- func (a *AchDetails) GetRoutingNumber() *string
- func (a *AchDetails) String() string
- func (a *AchDetails) UnmarshalJSON(data []byte) error
- type ActionCancelReason
- type ActivityType
- type AddGroupToCustomerResponse
- type AdditionalRecipient
- func (a *AdditionalRecipient) GetAmountMoney() *Money
- func (a *AdditionalRecipient) GetDescription() *string
- func (a *AdditionalRecipient) GetExtraProperties() map[string]interface{}
- func (a *AdditionalRecipient) GetLocationID() string
- func (a *AdditionalRecipient) GetReceivableID() *string
- func (a *AdditionalRecipient) String() string
- func (a *AdditionalRecipient) UnmarshalJSON(data []byte) error
- type Address
- func (a *Address) GetAddressLine1() *string
- func (a *Address) GetAddressLine2() *string
- func (a *Address) GetAddressLine3() *string
- func (a *Address) GetAdministrativeDistrictLevel1() *string
- func (a *Address) GetAdministrativeDistrictLevel2() *string
- func (a *Address) GetAdministrativeDistrictLevel3() *string
- func (a *Address) GetCountry() *Country
- func (a *Address) GetExtraProperties() map[string]interface{}
- func (a *Address) GetFirstName() *string
- func (a *Address) GetLastName() *string
- func (a *Address) GetLocality() *string
- func (a *Address) GetPostalCode() *string
- func (a *Address) GetSublocality() *string
- func (a *Address) GetSublocality2() *string
- func (a *Address) GetSublocality3() *string
- func (a *Address) String() string
- func (a *Address) UnmarshalJSON(data []byte) error
- type AdjustLoyaltyPointsResponse
- func (a *AdjustLoyaltyPointsResponse) GetErrors() []*Error
- func (a *AdjustLoyaltyPointsResponse) GetEvent() *LoyaltyEvent
- func (a *AdjustLoyaltyPointsResponse) GetExtraProperties() map[string]interface{}
- func (a *AdjustLoyaltyPointsResponse) String() string
- func (a *AdjustLoyaltyPointsResponse) UnmarshalJSON(data []byte) error
- type AfterpayDetails
- type ApplicationDetails
- func (a *ApplicationDetails) GetApplicationID() *string
- func (a *ApplicationDetails) GetExtraProperties() map[string]interface{}
- func (a *ApplicationDetails) GetSquareProduct() *ApplicationDetailsExternalSquareProduct
- func (a *ApplicationDetails) String() string
- func (a *ApplicationDetails) UnmarshalJSON(data []byte) error
- type ApplicationDetailsExternalSquareProduct
- type ApplicationType
- type AppointmentSegment
- func (a *AppointmentSegment) GetAnyTeamMember() *bool
- func (a *AppointmentSegment) GetDurationMinutes() *int
- func (a *AppointmentSegment) GetExtraProperties() map[string]interface{}
- func (a *AppointmentSegment) GetIntermissionMinutes() *int
- func (a *AppointmentSegment) GetResourceIDs() []string
- func (a *AppointmentSegment) GetServiceVariationID() *string
- func (a *AppointmentSegment) GetServiceVariationVersion() *int64
- func (a *AppointmentSegment) GetTeamMemberID() string
- func (a *AppointmentSegment) String() string
- func (a *AppointmentSegment) UnmarshalJSON(data []byte) error
- type ArchivedState
- type Availability
- func (a *Availability) GetAppointmentSegments() []*AppointmentSegment
- func (a *Availability) GetExtraProperties() map[string]interface{}
- func (a *Availability) GetLocationID() *string
- func (a *Availability) GetStartAt() *string
- func (a *Availability) String() string
- func (a *Availability) UnmarshalJSON(data []byte) error
- type BankAccount
- func (b *BankAccount) GetAccountNumberSuffix() string
- func (b *BankAccount) GetAccountType() BankAccountType
- func (b *BankAccount) GetBankName() *string
- func (b *BankAccount) GetCountry() Country
- func (b *BankAccount) GetCreditable() bool
- func (b *BankAccount) GetCurrency() Currency
- func (b *BankAccount) GetDebitMandateReferenceID() *string
- func (b *BankAccount) GetDebitable() bool
- func (b *BankAccount) GetExtraProperties() map[string]interface{}
- func (b *BankAccount) GetFingerprint() *string
- func (b *BankAccount) GetHolderName() string
- func (b *BankAccount) GetID() string
- func (b *BankAccount) GetLocationID() *string
- func (b *BankAccount) GetPrimaryBankIdentificationNumber() string
- func (b *BankAccount) GetReferenceID() *string
- func (b *BankAccount) GetSecondaryBankIdentificationNumber() *string
- func (b *BankAccount) GetStatus() BankAccountStatus
- func (b *BankAccount) GetVersion() *int
- func (b *BankAccount) String() string
- func (b *BankAccount) UnmarshalJSON(data []byte) error
- type BankAccountPaymentDetails
- func (b *BankAccountPaymentDetails) GetAccountOwnershipType() *string
- func (b *BankAccountPaymentDetails) GetAchDetails() *AchDetails
- func (b *BankAccountPaymentDetails) GetBankName() *string
- func (b *BankAccountPaymentDetails) GetCountry() *string
- func (b *BankAccountPaymentDetails) GetErrors() []*Error
- func (b *BankAccountPaymentDetails) GetExtraProperties() map[string]interface{}
- func (b *BankAccountPaymentDetails) GetFingerprint() *string
- func (b *BankAccountPaymentDetails) GetStatementDescription() *string
- func (b *BankAccountPaymentDetails) GetTransferType() *string
- func (b *BankAccountPaymentDetails) String() string
- func (b *BankAccountPaymentDetails) UnmarshalJSON(data []byte) error
- type BankAccountStatus
- type BankAccountType
- type BatchChangeInventoryRequest
- func (b *BatchChangeInventoryRequest) GetChanges() []*InventoryChange
- func (b *BatchChangeInventoryRequest) GetExtraProperties() map[string]interface{}
- func (b *BatchChangeInventoryRequest) GetIdempotencyKey() string
- func (b *BatchChangeInventoryRequest) GetIgnoreUnchangedCounts() *bool
- func (b *BatchChangeInventoryRequest) String() string
- func (b *BatchChangeInventoryRequest) UnmarshalJSON(data []byte) error
- type BatchChangeInventoryResponse
- func (b *BatchChangeInventoryResponse) GetChanges() []*InventoryChange
- func (b *BatchChangeInventoryResponse) GetCounts() []*InventoryCount
- func (b *BatchChangeInventoryResponse) GetErrors() []*Error
- func (b *BatchChangeInventoryResponse) GetExtraProperties() map[string]interface{}
- func (b *BatchChangeInventoryResponse) String() string
- func (b *BatchChangeInventoryResponse) UnmarshalJSON(data []byte) error
- type BatchCreateTeamMembersRequest
- type BatchCreateTeamMembersResponse
- func (b *BatchCreateTeamMembersResponse) GetErrors() []*Error
- func (b *BatchCreateTeamMembersResponse) GetExtraProperties() map[string]interface{}
- func (b *BatchCreateTeamMembersResponse) GetTeamMembers() map[string]*CreateTeamMemberResponse
- func (b *BatchCreateTeamMembersResponse) String() string
- func (b *BatchCreateTeamMembersResponse) UnmarshalJSON(data []byte) error
- type BatchCreateVendorsRequest
- type BatchCreateVendorsResponse
- func (b *BatchCreateVendorsResponse) GetErrors() []*Error
- func (b *BatchCreateVendorsResponse) GetExtraProperties() map[string]interface{}
- func (b *BatchCreateVendorsResponse) GetResponses() map[string]*CreateVendorResponse
- func (b *BatchCreateVendorsResponse) String() string
- func (b *BatchCreateVendorsResponse) UnmarshalJSON(data []byte) error
- type BatchDeleteCatalogObjectsRequest
- type BatchDeleteCatalogObjectsResponse
- func (b *BatchDeleteCatalogObjectsResponse) GetDeletedAt() *string
- func (b *BatchDeleteCatalogObjectsResponse) GetDeletedObjectIDs() []string
- func (b *BatchDeleteCatalogObjectsResponse) GetErrors() []*Error
- func (b *BatchDeleteCatalogObjectsResponse) GetExtraProperties() map[string]interface{}
- func (b *BatchDeleteCatalogObjectsResponse) String() string
- func (b *BatchDeleteCatalogObjectsResponse) UnmarshalJSON(data []byte) error
- type BatchGetCatalogObjectsRequest
- type BatchGetCatalogObjectsResponse
- func (b *BatchGetCatalogObjectsResponse) GetErrors() []*Error
- func (b *BatchGetCatalogObjectsResponse) GetExtraProperties() map[string]interface{}
- func (b *BatchGetCatalogObjectsResponse) GetObjects() []*CatalogObject
- func (b *BatchGetCatalogObjectsResponse) GetRelatedObjects() []*CatalogObject
- func (b *BatchGetCatalogObjectsResponse) String() string
- func (b *BatchGetCatalogObjectsResponse) UnmarshalJSON(data []byte) error
- type BatchGetInventoryChangesResponse
- func (b *BatchGetInventoryChangesResponse) GetChanges() []*InventoryChange
- func (b *BatchGetInventoryChangesResponse) GetCursor() *string
- func (b *BatchGetInventoryChangesResponse) GetErrors() []*Error
- func (b *BatchGetInventoryChangesResponse) GetExtraProperties() map[string]interface{}
- func (b *BatchGetInventoryChangesResponse) String() string
- func (b *BatchGetInventoryChangesResponse) UnmarshalJSON(data []byte) error
- type BatchGetInventoryCountsRequest
- func (b *BatchGetInventoryCountsRequest) GetCatalogObjectIDs() []string
- func (b *BatchGetInventoryCountsRequest) GetCursor() *string
- func (b *BatchGetInventoryCountsRequest) GetExtraProperties() map[string]interface{}
- func (b *BatchGetInventoryCountsRequest) GetLimit() *int
- func (b *BatchGetInventoryCountsRequest) GetLocationIDs() []string
- func (b *BatchGetInventoryCountsRequest) GetStates() []InventoryState
- func (b *BatchGetInventoryCountsRequest) GetUpdatedAfter() *string
- func (b *BatchGetInventoryCountsRequest) String() string
- func (b *BatchGetInventoryCountsRequest) UnmarshalJSON(data []byte) error
- type BatchGetInventoryCountsResponse
- func (b *BatchGetInventoryCountsResponse) GetCounts() []*InventoryCount
- func (b *BatchGetInventoryCountsResponse) GetCursor() *string
- func (b *BatchGetInventoryCountsResponse) GetErrors() []*Error
- func (b *BatchGetInventoryCountsResponse) GetExtraProperties() map[string]interface{}
- func (b *BatchGetInventoryCountsResponse) String() string
- func (b *BatchGetInventoryCountsResponse) UnmarshalJSON(data []byte) error
- type BatchGetOrdersRequest
- type BatchGetOrdersResponse
- type BatchGetVendorsRequest
- type BatchGetVendorsResponse
- func (b *BatchGetVendorsResponse) GetErrors() []*Error
- func (b *BatchGetVendorsResponse) GetExtraProperties() map[string]interface{}
- func (b *BatchGetVendorsResponse) GetResponses() map[string]*GetVendorResponse
- func (b *BatchGetVendorsResponse) String() string
- func (b *BatchGetVendorsResponse) UnmarshalJSON(data []byte) error
- type BatchRetrieveInventoryChangesRequest
- func (b *BatchRetrieveInventoryChangesRequest) GetCatalogObjectIDs() []string
- func (b *BatchRetrieveInventoryChangesRequest) GetCursor() *string
- func (b *BatchRetrieveInventoryChangesRequest) GetExtraProperties() map[string]interface{}
- func (b *BatchRetrieveInventoryChangesRequest) GetLimit() *int
- func (b *BatchRetrieveInventoryChangesRequest) GetLocationIDs() []string
- func (b *BatchRetrieveInventoryChangesRequest) GetStates() []InventoryState
- func (b *BatchRetrieveInventoryChangesRequest) GetTypes() []InventoryChangeType
- func (b *BatchRetrieveInventoryChangesRequest) GetUpdatedAfter() *string
- func (b *BatchRetrieveInventoryChangesRequest) GetUpdatedBefore() *string
- func (b *BatchRetrieveInventoryChangesRequest) String() string
- func (b *BatchRetrieveInventoryChangesRequest) UnmarshalJSON(data []byte) error
- type BatchUpdateTeamMembersRequest
- type BatchUpdateTeamMembersResponse
- func (b *BatchUpdateTeamMembersResponse) GetErrors() []*Error
- func (b *BatchUpdateTeamMembersResponse) GetExtraProperties() map[string]interface{}
- func (b *BatchUpdateTeamMembersResponse) GetTeamMembers() map[string]*UpdateTeamMemberResponse
- func (b *BatchUpdateTeamMembersResponse) String() string
- func (b *BatchUpdateTeamMembersResponse) UnmarshalJSON(data []byte) error
- type BatchUpdateVendorsRequest
- type BatchUpdateVendorsResponse
- func (b *BatchUpdateVendorsResponse) GetErrors() []*Error
- func (b *BatchUpdateVendorsResponse) GetExtraProperties() map[string]interface{}
- func (b *BatchUpdateVendorsResponse) GetResponses() map[string]*UpdateVendorResponse
- func (b *BatchUpdateVendorsResponse) String() string
- func (b *BatchUpdateVendorsResponse) UnmarshalJSON(data []byte) error
- type BatchUpsertCatalogObjectsRequest
- type BatchUpsertCatalogObjectsResponse
- func (b *BatchUpsertCatalogObjectsResponse) GetErrors() []*Error
- func (b *BatchUpsertCatalogObjectsResponse) GetExtraProperties() map[string]interface{}
- func (b *BatchUpsertCatalogObjectsResponse) GetIDMappings() []*CatalogIDMapping
- func (b *BatchUpsertCatalogObjectsResponse) GetObjects() []*CatalogObject
- func (b *BatchUpsertCatalogObjectsResponse) GetUpdatedAt() *string
- func (b *BatchUpsertCatalogObjectsResponse) String() string
- func (b *BatchUpsertCatalogObjectsResponse) UnmarshalJSON(data []byte) error
- type BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest
- func (b *BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest) GetCustomAttribute() *CustomAttribute
- func (b *BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest) GetCustomerID() string
- func (b *BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest) GetExtraProperties() map[string]interface{}
- func (b *BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest) GetIdempotencyKey() *string
- func (b *BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest) String() string
- func (b *BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest) UnmarshalJSON(data []byte) error
- type BatchUpsertCustomerCustomAttributesResponse
- func (b *BatchUpsertCustomerCustomAttributesResponse) GetErrors() []*Error
- func (b *BatchUpsertCustomerCustomAttributesResponse) GetExtraProperties() map[string]interface{}
- func (b *BatchUpsertCustomerCustomAttributesResponse) GetValues() ...
- func (b *BatchUpsertCustomerCustomAttributesResponse) String() string
- func (b *BatchUpsertCustomerCustomAttributesResponse) UnmarshalJSON(data []byte) error
- type BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse
- func (b *BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse) GetCustomAttribute() *CustomAttribute
- func (b *BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse) GetCustomerID() *string
- func (b *BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse) GetErrors() []*Error
- func (b *BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse) GetExtraProperties() map[string]interface{}
- func (b *BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse) String() string
- func (b *BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse) UnmarshalJSON(data []byte) error
- type Booking
- func (b *Booking) GetAddress() *Address
- func (b *Booking) GetAllDay() *bool
- func (b *Booking) GetAppointmentSegments() []*AppointmentSegment
- func (b *Booking) GetCreatedAt() *string
- func (b *Booking) GetCreatorDetails() *BookingCreatorDetails
- func (b *Booking) GetCustomerID() *string
- func (b *Booking) GetCustomerNote() *string
- func (b *Booking) GetExtraProperties() map[string]interface{}
- func (b *Booking) GetID() *string
- func (b *Booking) GetLocationID() *string
- func (b *Booking) GetLocationType() *BusinessAppointmentSettingsBookingLocationType
- func (b *Booking) GetSellerNote() *string
- func (b *Booking) GetSource() *BookingBookingSource
- func (b *Booking) GetStartAt() *string
- func (b *Booking) GetStatus() *BookingStatus
- func (b *Booking) GetTransitionTimeMinutes() *int
- func (b *Booking) GetUpdatedAt() *string
- func (b *Booking) GetVersion() *int
- func (b *Booking) String() string
- func (b *Booking) UnmarshalJSON(data []byte) error
- type BookingBookingSource
- type BookingCreatorDetails
- func (b *BookingCreatorDetails) GetCreatorType() *BookingCreatorDetailsCreatorType
- func (b *BookingCreatorDetails) GetCustomerID() *string
- func (b *BookingCreatorDetails) GetExtraProperties() map[string]interface{}
- func (b *BookingCreatorDetails) GetTeamMemberID() *string
- func (b *BookingCreatorDetails) String() string
- func (b *BookingCreatorDetails) UnmarshalJSON(data []byte) error
- type BookingCreatorDetailsCreatorType
- type BookingCustomAttributeDeleteRequest
- func (b *BookingCustomAttributeDeleteRequest) GetBookingID() string
- func (b *BookingCustomAttributeDeleteRequest) GetExtraProperties() map[string]interface{}
- func (b *BookingCustomAttributeDeleteRequest) GetKey() string
- func (b *BookingCustomAttributeDeleteRequest) String() string
- func (b *BookingCustomAttributeDeleteRequest) UnmarshalJSON(data []byte) error
- type BookingCustomAttributeDeleteResponse
- func (b *BookingCustomAttributeDeleteResponse) GetBookingID() *string
- func (b *BookingCustomAttributeDeleteResponse) GetErrors() []*Error
- func (b *BookingCustomAttributeDeleteResponse) GetExtraProperties() map[string]interface{}
- func (b *BookingCustomAttributeDeleteResponse) String() string
- func (b *BookingCustomAttributeDeleteResponse) UnmarshalJSON(data []byte) error
- type BookingCustomAttributeUpsertRequest
- func (b *BookingCustomAttributeUpsertRequest) GetBookingID() string
- func (b *BookingCustomAttributeUpsertRequest) GetCustomAttribute() *CustomAttribute
- func (b *BookingCustomAttributeUpsertRequest) GetExtraProperties() map[string]interface{}
- func (b *BookingCustomAttributeUpsertRequest) GetIdempotencyKey() *string
- func (b *BookingCustomAttributeUpsertRequest) String() string
- func (b *BookingCustomAttributeUpsertRequest) UnmarshalJSON(data []byte) error
- type BookingCustomAttributeUpsertResponse
- func (b *BookingCustomAttributeUpsertResponse) GetBookingID() *string
- func (b *BookingCustomAttributeUpsertResponse) GetCustomAttribute() *CustomAttribute
- func (b *BookingCustomAttributeUpsertResponse) GetErrors() []*Error
- func (b *BookingCustomAttributeUpsertResponse) GetExtraProperties() map[string]interface{}
- func (b *BookingCustomAttributeUpsertResponse) String() string
- func (b *BookingCustomAttributeUpsertResponse) UnmarshalJSON(data []byte) error
- type BookingStatus
- type Break
- func (b *Break) GetBreakTypeID() string
- func (b *Break) GetEndAt() *string
- func (b *Break) GetExpectedDuration() string
- func (b *Break) GetExtraProperties() map[string]interface{}
- func (b *Break) GetID() *string
- func (b *Break) GetIsPaid() bool
- func (b *Break) GetName() string
- func (b *Break) GetStartAt() string
- func (b *Break) String() string
- func (b *Break) UnmarshalJSON(data []byte) error
- type BreakType
- func (b *BreakType) GetBreakName() string
- func (b *BreakType) GetCreatedAt() *string
- func (b *BreakType) GetExpectedDuration() string
- func (b *BreakType) GetExtraProperties() map[string]interface{}
- func (b *BreakType) GetID() *string
- func (b *BreakType) GetIsPaid() bool
- func (b *BreakType) GetLocationID() string
- func (b *BreakType) GetUpdatedAt() *string
- func (b *BreakType) GetVersion() *int
- func (b *BreakType) String() string
- func (b *BreakType) UnmarshalJSON(data []byte) error
- type BulkCreateCustomerData
- func (b *BulkCreateCustomerData) GetAddress() *Address
- func (b *BulkCreateCustomerData) GetBirthday() *string
- func (b *BulkCreateCustomerData) GetCompanyName() *string
- func (b *BulkCreateCustomerData) GetEmailAddress() *string
- func (b *BulkCreateCustomerData) GetExtraProperties() map[string]interface{}
- func (b *BulkCreateCustomerData) GetFamilyName() *string
- func (b *BulkCreateCustomerData) GetGivenName() *string
- func (b *BulkCreateCustomerData) GetNickname() *string
- func (b *BulkCreateCustomerData) GetNote() *string
- func (b *BulkCreateCustomerData) GetPhoneNumber() *string
- func (b *BulkCreateCustomerData) GetReferenceID() *string
- func (b *BulkCreateCustomerData) GetTaxIDs() *CustomerTaxIDs
- func (b *BulkCreateCustomerData) String() string
- func (b *BulkCreateCustomerData) UnmarshalJSON(data []byte) error
- type BulkCreateCustomersRequest
- type BulkCreateCustomersResponse
- func (b *BulkCreateCustomersResponse) GetErrors() []*Error
- func (b *BulkCreateCustomersResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkCreateCustomersResponse) GetResponses() map[string]*CreateCustomerResponse
- func (b *BulkCreateCustomersResponse) String() string
- func (b *BulkCreateCustomersResponse) UnmarshalJSON(data []byte) error
- type BulkDeleteBookingCustomAttributesResponse
- func (b *BulkDeleteBookingCustomAttributesResponse) GetErrors() []*Error
- func (b *BulkDeleteBookingCustomAttributesResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkDeleteBookingCustomAttributesResponse) GetValues() map[string]*BookingCustomAttributeDeleteResponse
- func (b *BulkDeleteBookingCustomAttributesResponse) String() string
- func (b *BulkDeleteBookingCustomAttributesResponse) UnmarshalJSON(data []byte) error
- type BulkDeleteCustomersRequest
- type BulkDeleteCustomersResponse
- func (b *BulkDeleteCustomersResponse) GetErrors() []*Error
- func (b *BulkDeleteCustomersResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkDeleteCustomersResponse) GetResponses() map[string]*DeleteCustomerResponse
- func (b *BulkDeleteCustomersResponse) String() string
- func (b *BulkDeleteCustomersResponse) UnmarshalJSON(data []byte) error
- type BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest
- func (b *BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest) GetExtraProperties() map[string]interface{}
- func (b *BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest) GetKey() *string
- func (b *BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest) String() string
- func (b *BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest) UnmarshalJSON(data []byte) error
- type BulkDeleteLocationCustomAttributesResponse
- func (b *BulkDeleteLocationCustomAttributesResponse) GetErrors() []*Error
- func (b *BulkDeleteLocationCustomAttributesResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkDeleteLocationCustomAttributesResponse) GetValues() ...
- func (b *BulkDeleteLocationCustomAttributesResponse) String() string
- func (b *BulkDeleteLocationCustomAttributesResponse) UnmarshalJSON(data []byte) error
- type BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse
- func (b *BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse) GetErrors() []*Error
- func (b *BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse) GetLocationID() *string
- func (b *BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse) String() string
- func (b *BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse) UnmarshalJSON(data []byte) error
- type BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest
- func (b *BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest) GetExtraProperties() map[string]interface{}
- func (b *BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest) GetKey() *string
- func (b *BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest) String() string
- func (b *BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest) UnmarshalJSON(data []byte) error
- type BulkDeleteMerchantCustomAttributesResponse
- func (b *BulkDeleteMerchantCustomAttributesResponse) GetErrors() []*Error
- func (b *BulkDeleteMerchantCustomAttributesResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkDeleteMerchantCustomAttributesResponse) GetValues() ...
- func (b *BulkDeleteMerchantCustomAttributesResponse) String() string
- func (b *BulkDeleteMerchantCustomAttributesResponse) UnmarshalJSON(data []byte) error
- type BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse
- func (b *BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse) GetErrors() []*Error
- func (b *BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse) String() string
- func (b *BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse) UnmarshalJSON(data []byte) error
- type BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute
- func (b *BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute) GetExtraProperties() map[string]interface{}
- func (b *BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute) GetKey() *string
- func (b *BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute) GetOrderID() string
- func (b *BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute) String() string
- func (b *BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute) UnmarshalJSON(data []byte) error
- type BulkDeleteOrderCustomAttributesResponse
- func (b *BulkDeleteOrderCustomAttributesResponse) GetErrors() []*Error
- func (b *BulkDeleteOrderCustomAttributesResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkDeleteOrderCustomAttributesResponse) GetValues() map[string]*DeleteOrderCustomAttributeResponse
- func (b *BulkDeleteOrderCustomAttributesResponse) String() string
- func (b *BulkDeleteOrderCustomAttributesResponse) UnmarshalJSON(data []byte) error
- type BulkPublishScheduledShiftsData
- type BulkPublishScheduledShiftsRequest
- type BulkPublishScheduledShiftsResponse
- func (b *BulkPublishScheduledShiftsResponse) GetErrors() []*Error
- func (b *BulkPublishScheduledShiftsResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkPublishScheduledShiftsResponse) GetResponses() map[string]*PublishScheduledShiftResponse
- func (b *BulkPublishScheduledShiftsResponse) String() string
- func (b *BulkPublishScheduledShiftsResponse) UnmarshalJSON(data []byte) error
- type BulkRetrieveBookingsRequest
- type BulkRetrieveBookingsResponse
- func (b *BulkRetrieveBookingsResponse) GetBookings() map[string]*GetBookingResponse
- func (b *BulkRetrieveBookingsResponse) GetErrors() []*Error
- func (b *BulkRetrieveBookingsResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkRetrieveBookingsResponse) String() string
- func (b *BulkRetrieveBookingsResponse) UnmarshalJSON(data []byte) error
- type BulkRetrieveCustomersRequest
- type BulkRetrieveCustomersResponse
- func (b *BulkRetrieveCustomersResponse) GetErrors() []*Error
- func (b *BulkRetrieveCustomersResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkRetrieveCustomersResponse) GetResponses() map[string]*GetCustomerResponse
- func (b *BulkRetrieveCustomersResponse) String() string
- func (b *BulkRetrieveCustomersResponse) UnmarshalJSON(data []byte) error
- type BulkRetrieveTeamMemberBookingProfilesRequest
- type BulkRetrieveTeamMemberBookingProfilesResponse
- func (b *BulkRetrieveTeamMemberBookingProfilesResponse) GetErrors() []*Error
- func (b *BulkRetrieveTeamMemberBookingProfilesResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkRetrieveTeamMemberBookingProfilesResponse) GetTeamMemberBookingProfiles() map[string]*GetTeamMemberBookingProfileResponse
- func (b *BulkRetrieveTeamMemberBookingProfilesResponse) String() string
- func (b *BulkRetrieveTeamMemberBookingProfilesResponse) UnmarshalJSON(data []byte) error
- type BulkSwapPlanRequest
- type BulkSwapPlanResponse
- func (b *BulkSwapPlanResponse) GetAffectedSubscriptions() *int
- func (b *BulkSwapPlanResponse) GetErrors() []*Error
- func (b *BulkSwapPlanResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkSwapPlanResponse) String() string
- func (b *BulkSwapPlanResponse) UnmarshalJSON(data []byte) error
- type BulkUpdateCustomerData
- func (b *BulkUpdateCustomerData) GetAddress() *Address
- func (b *BulkUpdateCustomerData) GetBirthday() *string
- func (b *BulkUpdateCustomerData) GetCompanyName() *string
- func (b *BulkUpdateCustomerData) GetEmailAddress() *string
- func (b *BulkUpdateCustomerData) GetExtraProperties() map[string]interface{}
- func (b *BulkUpdateCustomerData) GetFamilyName() *string
- func (b *BulkUpdateCustomerData) GetGivenName() *string
- func (b *BulkUpdateCustomerData) GetNickname() *string
- func (b *BulkUpdateCustomerData) GetNote() *string
- func (b *BulkUpdateCustomerData) GetPhoneNumber() *string
- func (b *BulkUpdateCustomerData) GetReferenceID() *string
- func (b *BulkUpdateCustomerData) GetTaxIDs() *CustomerTaxIDs
- func (b *BulkUpdateCustomerData) GetVersion() *int64
- func (b *BulkUpdateCustomerData) String() string
- func (b *BulkUpdateCustomerData) UnmarshalJSON(data []byte) error
- type BulkUpdateCustomersRequest
- type BulkUpdateCustomersResponse
- func (b *BulkUpdateCustomersResponse) GetErrors() []*Error
- func (b *BulkUpdateCustomersResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkUpdateCustomersResponse) GetResponses() map[string]*UpdateCustomerResponse
- func (b *BulkUpdateCustomersResponse) String() string
- func (b *BulkUpdateCustomersResponse) UnmarshalJSON(data []byte) error
- type BulkUpsertBookingCustomAttributesResponse
- func (b *BulkUpsertBookingCustomAttributesResponse) GetErrors() []*Error
- func (b *BulkUpsertBookingCustomAttributesResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkUpsertBookingCustomAttributesResponse) GetValues() map[string]*BookingCustomAttributeUpsertResponse
- func (b *BulkUpsertBookingCustomAttributesResponse) String() string
- func (b *BulkUpsertBookingCustomAttributesResponse) UnmarshalJSON(data []byte) error
- type BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest
- func (b *BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest) GetCustomAttribute() *CustomAttribute
- func (b *BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest) GetExtraProperties() map[string]interface{}
- func (b *BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest) GetIdempotencyKey() *string
- func (b *BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest) GetLocationID() string
- func (b *BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest) String() string
- func (b *BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest) UnmarshalJSON(data []byte) error
- type BulkUpsertLocationCustomAttributesResponse
- func (b *BulkUpsertLocationCustomAttributesResponse) GetErrors() []*Error
- func (b *BulkUpsertLocationCustomAttributesResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkUpsertLocationCustomAttributesResponse) GetValues() ...
- func (b *BulkUpsertLocationCustomAttributesResponse) String() string
- func (b *BulkUpsertLocationCustomAttributesResponse) UnmarshalJSON(data []byte) error
- type BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse
- func (b *BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse) GetCustomAttribute() *CustomAttribute
- func (b *BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse) GetErrors() []*Error
- func (b *BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse) GetLocationID() *string
- func (b *BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse) String() string
- func (b *BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse) UnmarshalJSON(data []byte) error
- type BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest
- func (b *BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest) GetCustomAttribute() *CustomAttribute
- func (b *BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest) GetExtraProperties() map[string]interface{}
- func (b *BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest) GetIdempotencyKey() *string
- func (b *BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest) GetMerchantID() string
- func (b *BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest) String() string
- func (b *BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest) UnmarshalJSON(data []byte) error
- type BulkUpsertMerchantCustomAttributesResponse
- func (b *BulkUpsertMerchantCustomAttributesResponse) GetErrors() []*Error
- func (b *BulkUpsertMerchantCustomAttributesResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkUpsertMerchantCustomAttributesResponse) GetValues() ...
- func (b *BulkUpsertMerchantCustomAttributesResponse) String() string
- func (b *BulkUpsertMerchantCustomAttributesResponse) UnmarshalJSON(data []byte) error
- type BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse
- func (b *BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse) GetCustomAttribute() *CustomAttribute
- func (b *BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse) GetErrors() []*Error
- func (b *BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse) GetMerchantID() *string
- func (b *BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse) String() string
- func (b *BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse) UnmarshalJSON(data []byte) error
- type BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute
- func (b *BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute) GetCustomAttribute() *CustomAttribute
- func (b *BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute) GetExtraProperties() map[string]interface{}
- func (b *BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute) GetIdempotencyKey() *string
- func (b *BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute) GetOrderID() string
- func (b *BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute) String() string
- func (b *BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute) UnmarshalJSON(data []byte) error
- type BulkUpsertOrderCustomAttributesResponse
- func (b *BulkUpsertOrderCustomAttributesResponse) GetErrors() []*Error
- func (b *BulkUpsertOrderCustomAttributesResponse) GetExtraProperties() map[string]interface{}
- func (b *BulkUpsertOrderCustomAttributesResponse) GetValues() map[string]*UpsertOrderCustomAttributeResponse
- func (b *BulkUpsertOrderCustomAttributesResponse) String() string
- func (b *BulkUpsertOrderCustomAttributesResponse) UnmarshalJSON(data []byte) error
- type BusinessAppointmentSettings
- func (b *BusinessAppointmentSettings) GetAlignmentTime() *BusinessAppointmentSettingsAlignmentTime
- func (b *BusinessAppointmentSettings) GetAnyTeamMemberBookingEnabled() *bool
- func (b *BusinessAppointmentSettings) GetCancellationFeeMoney() *Money
- func (b *BusinessAppointmentSettings) GetCancellationPolicy() *BusinessAppointmentSettingsCancellationPolicy
- func (b *BusinessAppointmentSettings) GetCancellationPolicyText() *string
- func (b *BusinessAppointmentSettings) GetCancellationWindowSeconds() *int
- func (b *BusinessAppointmentSettings) GetExtraProperties() map[string]interface{}
- func (b *BusinessAppointmentSettings) GetLocationTypes() []BusinessAppointmentSettingsBookingLocationType
- func (b *BusinessAppointmentSettings) GetMaxAppointmentsPerDayLimit() *int
- func (b *BusinessAppointmentSettings) GetMaxAppointmentsPerDayLimitType() *BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType
- func (b *BusinessAppointmentSettings) GetMaxBookingLeadTimeSeconds() *int
- func (b *BusinessAppointmentSettings) GetMinBookingLeadTimeSeconds() *int
- func (b *BusinessAppointmentSettings) GetMultipleServiceBookingEnabled() *bool
- func (b *BusinessAppointmentSettings) GetSkipBookingFlowStaffSelection() *bool
- func (b *BusinessAppointmentSettings) String() string
- func (b *BusinessAppointmentSettings) UnmarshalJSON(data []byte) error
- type BusinessAppointmentSettingsAlignmentTime
- type BusinessAppointmentSettingsBookingLocationType
- type BusinessAppointmentSettingsCancellationPolicy
- type BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType
- type BusinessBookingProfile
- func (b *BusinessBookingProfile) GetAllowUserCancel() *bool
- func (b *BusinessBookingProfile) GetBookingEnabled() *bool
- func (b *BusinessBookingProfile) GetBookingPolicy() *BusinessBookingProfileBookingPolicy
- func (b *BusinessBookingProfile) GetBusinessAppointmentSettings() *BusinessAppointmentSettings
- func (b *BusinessBookingProfile) GetCreatedAt() *string
- func (b *BusinessBookingProfile) GetCustomerTimezoneChoice() *BusinessBookingProfileCustomerTimezoneChoice
- func (b *BusinessBookingProfile) GetExtraProperties() map[string]interface{}
- func (b *BusinessBookingProfile) GetSellerID() *string
- func (b *BusinessBookingProfile) GetSupportSellerLevelWrites() *bool
- func (b *BusinessBookingProfile) String() string
- func (b *BusinessBookingProfile) UnmarshalJSON(data []byte) error
- type BusinessBookingProfileBookingPolicy
- type BusinessBookingProfileCustomerTimezoneChoice
- type BusinessHours
- type BusinessHoursPeriod
- func (b *BusinessHoursPeriod) GetDayOfWeek() *DayOfWeek
- func (b *BusinessHoursPeriod) GetEndLocalTime() *string
- func (b *BusinessHoursPeriod) GetExtraProperties() map[string]interface{}
- func (b *BusinessHoursPeriod) GetStartLocalTime() *string
- func (b *BusinessHoursPeriod) String() string
- func (b *BusinessHoursPeriod) UnmarshalJSON(data []byte) error
- type BuyNowPayLaterDetails
- func (b *BuyNowPayLaterDetails) GetAfterpayDetails() *AfterpayDetails
- func (b *BuyNowPayLaterDetails) GetBrand() *string
- func (b *BuyNowPayLaterDetails) GetClearpayDetails() *ClearpayDetails
- func (b *BuyNowPayLaterDetails) GetExtraProperties() map[string]interface{}
- func (b *BuyNowPayLaterDetails) String() string
- func (b *BuyNowPayLaterDetails) UnmarshalJSON(data []byte) error
- type CalculateLoyaltyPointsResponse
- func (c *CalculateLoyaltyPointsResponse) GetErrors() []*Error
- func (c *CalculateLoyaltyPointsResponse) GetExtraProperties() map[string]interface{}
- func (c *CalculateLoyaltyPointsResponse) GetPoints() *int
- func (c *CalculateLoyaltyPointsResponse) GetPromotionPoints() *int
- func (c *CalculateLoyaltyPointsResponse) String() string
- func (c *CalculateLoyaltyPointsResponse) UnmarshalJSON(data []byte) error
- type CalculateOrderRequest
- type CalculateOrderResponse
- type CancelBookingRequest
- type CancelBookingResponse
- type CancelInvoiceRequest
- type CancelInvoiceResponse
- type CancelLoyaltyPromotionResponse
- func (c *CancelLoyaltyPromotionResponse) GetErrors() []*Error
- func (c *CancelLoyaltyPromotionResponse) GetExtraProperties() map[string]interface{}
- func (c *CancelLoyaltyPromotionResponse) GetLoyaltyPromotion() *LoyaltyPromotion
- func (c *CancelLoyaltyPromotionResponse) String() string
- func (c *CancelLoyaltyPromotionResponse) UnmarshalJSON(data []byte) error
- type CancelPaymentByIdempotencyKeyRequest
- type CancelPaymentByIdempotencyKeyResponse
- func (c *CancelPaymentByIdempotencyKeyResponse) GetErrors() []*Error
- func (c *CancelPaymentByIdempotencyKeyResponse) GetExtraProperties() map[string]interface{}
- func (c *CancelPaymentByIdempotencyKeyResponse) String() string
- func (c *CancelPaymentByIdempotencyKeyResponse) UnmarshalJSON(data []byte) error
- type CancelPaymentResponse
- type CancelPaymentsRequest
- type CancelSubscriptionResponse
- func (c *CancelSubscriptionResponse) GetActions() []*SubscriptionAction
- func (c *CancelSubscriptionResponse) GetErrors() []*Error
- func (c *CancelSubscriptionResponse) GetExtraProperties() map[string]interface{}
- func (c *CancelSubscriptionResponse) GetSubscription() *Subscription
- func (c *CancelSubscriptionResponse) String() string
- func (c *CancelSubscriptionResponse) UnmarshalJSON(data []byte) error
- type CancelSubscriptionsRequest
- type CancelTerminalActionResponse
- func (c *CancelTerminalActionResponse) GetAction() *TerminalAction
- func (c *CancelTerminalActionResponse) GetErrors() []*Error
- func (c *CancelTerminalActionResponse) GetExtraProperties() map[string]interface{}
- func (c *CancelTerminalActionResponse) String() string
- func (c *CancelTerminalActionResponse) UnmarshalJSON(data []byte) error
- type CancelTerminalCheckoutResponse
- func (c *CancelTerminalCheckoutResponse) GetCheckout() *TerminalCheckout
- func (c *CancelTerminalCheckoutResponse) GetErrors() []*Error
- func (c *CancelTerminalCheckoutResponse) GetExtraProperties() map[string]interface{}
- func (c *CancelTerminalCheckoutResponse) String() string
- func (c *CancelTerminalCheckoutResponse) UnmarshalJSON(data []byte) error
- type CancelTerminalRefundResponse
- func (c *CancelTerminalRefundResponse) GetErrors() []*Error
- func (c *CancelTerminalRefundResponse) GetExtraProperties() map[string]interface{}
- func (c *CancelTerminalRefundResponse) GetRefund() *TerminalRefund
- func (c *CancelTerminalRefundResponse) String() string
- func (c *CancelTerminalRefundResponse) UnmarshalJSON(data []byte) error
- type CaptureTransactionResponse
- type Card
- func (c *Card) GetBillingAddress() *Address
- func (c *Card) GetBin() *string
- func (c *Card) GetCardBrand() *CardBrand
- func (c *Card) GetCardCoBrand() *CardCoBrand
- func (c *Card) GetCardType() *CardType
- func (c *Card) GetCardholderName() *string
- func (c *Card) GetCustomerID() *string
- func (c *Card) GetEnabled() *bool
- func (c *Card) GetExpMonth() *int64
- func (c *Card) GetExpYear() *int64
- func (c *Card) GetExtraProperties() map[string]interface{}
- func (c *Card) GetFingerprint() *string
- func (c *Card) GetHsaFsa() *bool
- func (c *Card) GetID() *string
- func (c *Card) GetIssuerAlertAt() *string
- func (c *Card) GetLast4() *string
- func (c *Card) GetMerchantID() *string
- func (c *Card) GetPrepaidType() *CardPrepaidType
- func (c *Card) GetReferenceID() *string
- func (c *Card) GetVersion() *int64
- func (c *Card) String() string
- func (c *Card) UnmarshalJSON(data []byte) error
- type CardBrand
- type CardCoBrand
- type CardIssuerAlert
- type CardPaymentDetails
- func (c *CardPaymentDetails) GetApplicationCryptogram() *string
- func (c *CardPaymentDetails) GetApplicationIdentifier() *string
- func (c *CardPaymentDetails) GetApplicationName() *string
- func (c *CardPaymentDetails) GetAuthResultCode() *string
- func (c *CardPaymentDetails) GetAvsStatus() *string
- func (c *CardPaymentDetails) GetCard() *Card
- func (c *CardPaymentDetails) GetCardPaymentTimeline() *CardPaymentTimeline
- func (c *CardPaymentDetails) GetCvvStatus() *string
- func (c *CardPaymentDetails) GetDeviceDetails() *DeviceDetails
- func (c *CardPaymentDetails) GetEntryMethod() *string
- func (c *CardPaymentDetails) GetErrors() []*Error
- func (c *CardPaymentDetails) GetExtraProperties() map[string]interface{}
- func (c *CardPaymentDetails) GetRefundRequiresCardPresence() *bool
- func (c *CardPaymentDetails) GetStatementDescription() *string
- func (c *CardPaymentDetails) GetStatus() *string
- func (c *CardPaymentDetails) GetVerificationMethod() *string
- func (c *CardPaymentDetails) GetVerificationResults() *string
- func (c *CardPaymentDetails) String() string
- func (c *CardPaymentDetails) UnmarshalJSON(data []byte) error
- type CardPaymentTimeline
- func (c *CardPaymentTimeline) GetAuthorizedAt() *string
- func (c *CardPaymentTimeline) GetCapturedAt() *string
- func (c *CardPaymentTimeline) GetExtraProperties() map[string]interface{}
- func (c *CardPaymentTimeline) GetVoidedAt() *string
- func (c *CardPaymentTimeline) String() string
- func (c *CardPaymentTimeline) UnmarshalJSON(data []byte) error
- type CardPrepaidType
- type CardType
- type CardsDisableRequest
- type CardsGetRequest
- type CardsListRequest
- type CashAppDetails
- func (c *CashAppDetails) GetBuyerCashtag() *string
- func (c *CashAppDetails) GetBuyerCountryCode() *string
- func (c *CashAppDetails) GetBuyerFullName() *string
- func (c *CashAppDetails) GetExtraProperties() map[string]interface{}
- func (c *CashAppDetails) String() string
- func (c *CashAppDetails) UnmarshalJSON(data []byte) error
- type CashDrawerDevice
- type CashDrawerEventType
- type CashDrawerShift
- func (c *CashDrawerShift) GetCashPaidInMoney() *Money
- func (c *CashDrawerShift) GetCashPaidOutMoney() *Money
- func (c *CashDrawerShift) GetCashPaymentMoney() *Money
- func (c *CashDrawerShift) GetCashRefundsMoney() *Money
- func (c *CashDrawerShift) GetClosedAt() *string
- func (c *CashDrawerShift) GetClosedCashMoney() *Money
- func (c *CashDrawerShift) GetClosingTeamMemberID() *string
- func (c *CashDrawerShift) GetCreatedAt() *string
- func (c *CashDrawerShift) GetDescription() *string
- func (c *CashDrawerShift) GetDevice() *CashDrawerDevice
- func (c *CashDrawerShift) GetEndedAt() *string
- func (c *CashDrawerShift) GetEndingTeamMemberID() *string
- func (c *CashDrawerShift) GetExpectedCashMoney() *Money
- func (c *CashDrawerShift) GetExtraProperties() map[string]interface{}
- func (c *CashDrawerShift) GetID() *string
- func (c *CashDrawerShift) GetLocationID() *string
- func (c *CashDrawerShift) GetOpenedAt() *string
- func (c *CashDrawerShift) GetOpenedCashMoney() *Money
- func (c *CashDrawerShift) GetOpeningTeamMemberID() *string
- func (c *CashDrawerShift) GetState() *CashDrawerShiftState
- func (c *CashDrawerShift) GetTeamMemberIDs() []string
- func (c *CashDrawerShift) GetUpdatedAt() *string
- func (c *CashDrawerShift) String() string
- func (c *CashDrawerShift) UnmarshalJSON(data []byte) error
- type CashDrawerShiftEvent
- func (c *CashDrawerShiftEvent) GetCreatedAt() *string
- func (c *CashDrawerShiftEvent) GetDescription() *string
- func (c *CashDrawerShiftEvent) GetEventMoney() *Money
- func (c *CashDrawerShiftEvent) GetEventType() *CashDrawerEventType
- func (c *CashDrawerShiftEvent) GetExtraProperties() map[string]interface{}
- func (c *CashDrawerShiftEvent) GetID() *string
- func (c *CashDrawerShiftEvent) GetTeamMemberID() *string
- func (c *CashDrawerShiftEvent) String() string
- func (c *CashDrawerShiftEvent) UnmarshalJSON(data []byte) error
- type CashDrawerShiftState
- type CashDrawerShiftSummary
- func (c *CashDrawerShiftSummary) GetClosedAt() *string
- func (c *CashDrawerShiftSummary) GetClosedCashMoney() *Money
- func (c *CashDrawerShiftSummary) GetCreatedAt() *string
- func (c *CashDrawerShiftSummary) GetDescription() *string
- func (c *CashDrawerShiftSummary) GetEndedAt() *string
- func (c *CashDrawerShiftSummary) GetExpectedCashMoney() *Money
- func (c *CashDrawerShiftSummary) GetExtraProperties() map[string]interface{}
- func (c *CashDrawerShiftSummary) GetID() *string
- func (c *CashDrawerShiftSummary) GetLocationID() *string
- func (c *CashDrawerShiftSummary) GetOpenedAt() *string
- func (c *CashDrawerShiftSummary) GetOpenedCashMoney() *Money
- func (c *CashDrawerShiftSummary) GetState() *CashDrawerShiftState
- func (c *CashDrawerShiftSummary) GetUpdatedAt() *string
- func (c *CashDrawerShiftSummary) String() string
- func (c *CashDrawerShiftSummary) UnmarshalJSON(data []byte) error
- type CashPaymentDetails
- type CatalogAvailabilityPeriod
- func (c *CatalogAvailabilityPeriod) GetDayOfWeek() *DayOfWeek
- func (c *CatalogAvailabilityPeriod) GetEndLocalTime() *string
- func (c *CatalogAvailabilityPeriod) GetExtraProperties() map[string]interface{}
- func (c *CatalogAvailabilityPeriod) GetStartLocalTime() *string
- func (c *CatalogAvailabilityPeriod) String() string
- func (c *CatalogAvailabilityPeriod) UnmarshalJSON(data []byte) error
- type CatalogCategory
- func (c *CatalogCategory) GetAvailabilityPeriodIDs() []string
- func (c *CatalogCategory) GetCategoryType() *CatalogCategoryType
- func (c *CatalogCategory) GetChannels() []string
- func (c *CatalogCategory) GetEcomSeoData() *CatalogEcomSeoData
- func (c *CatalogCategory) GetExtraProperties() map[string]interface{}
- func (c *CatalogCategory) GetImageIDs() []string
- func (c *CatalogCategory) GetIsTopLevel() *bool
- func (c *CatalogCategory) GetName() *string
- func (c *CatalogCategory) GetOnlineVisibility() *bool
- func (c *CatalogCategory) GetParentCategory() *CatalogObjectCategory
- func (c *CatalogCategory) GetPathToRoot() []*CategoryPathToRootNode
- func (c *CatalogCategory) GetRootCategory() *string
- func (c *CatalogCategory) String() string
- func (c *CatalogCategory) UnmarshalJSON(data []byte) error
- type CatalogCategoryType
- type CatalogCustomAttributeDefinition
- func (c *CatalogCustomAttributeDefinition) GetAllowedObjectTypes() []CatalogObjectType
- func (c *CatalogCustomAttributeDefinition) GetAppVisibility() *CatalogCustomAttributeDefinitionAppVisibility
- func (c *CatalogCustomAttributeDefinition) GetCustomAttributeUsageCount() *int
- func (c *CatalogCustomAttributeDefinition) GetDescription() *string
- func (c *CatalogCustomAttributeDefinition) GetExtraProperties() map[string]interface{}
- func (c *CatalogCustomAttributeDefinition) GetKey() *string
- func (c *CatalogCustomAttributeDefinition) GetName() string
- func (c *CatalogCustomAttributeDefinition) GetNumberConfig() *CatalogCustomAttributeDefinitionNumberConfig
- func (c *CatalogCustomAttributeDefinition) GetSelectionConfig() *CatalogCustomAttributeDefinitionSelectionConfig
- func (c *CatalogCustomAttributeDefinition) GetSellerVisibility() *CatalogCustomAttributeDefinitionSellerVisibility
- func (c *CatalogCustomAttributeDefinition) GetSourceApplication() *SourceApplication
- func (c *CatalogCustomAttributeDefinition) GetStringConfig() *CatalogCustomAttributeDefinitionStringConfig
- func (c *CatalogCustomAttributeDefinition) GetType() CatalogCustomAttributeDefinitionType
- func (c *CatalogCustomAttributeDefinition) String() string
- func (c *CatalogCustomAttributeDefinition) UnmarshalJSON(data []byte) error
- type CatalogCustomAttributeDefinitionAppVisibility
- type CatalogCustomAttributeDefinitionNumberConfig
- func (c *CatalogCustomAttributeDefinitionNumberConfig) GetExtraProperties() map[string]interface{}
- func (c *CatalogCustomAttributeDefinitionNumberConfig) GetPrecision() *int
- func (c *CatalogCustomAttributeDefinitionNumberConfig) String() string
- func (c *CatalogCustomAttributeDefinitionNumberConfig) UnmarshalJSON(data []byte) error
- type CatalogCustomAttributeDefinitionSelectionConfig
- func (c *CatalogCustomAttributeDefinitionSelectionConfig) GetAllowedSelections() []*CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection
- func (c *CatalogCustomAttributeDefinitionSelectionConfig) GetExtraProperties() map[string]interface{}
- func (c *CatalogCustomAttributeDefinitionSelectionConfig) GetMaxAllowedSelections() *int
- func (c *CatalogCustomAttributeDefinitionSelectionConfig) String() string
- func (c *CatalogCustomAttributeDefinitionSelectionConfig) UnmarshalJSON(data []byte) error
- type CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection
- func (c *CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection) GetExtraProperties() map[string]interface{}
- func (c *CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection) GetName() string
- func (c *CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection) GetUID() *string
- func (c *CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection) String() string
- func (c *CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection) UnmarshalJSON(data []byte) error
- type CatalogCustomAttributeDefinitionSellerVisibility
- type CatalogCustomAttributeDefinitionStringConfig
- func (c *CatalogCustomAttributeDefinitionStringConfig) GetEnforceUniqueness() *bool
- func (c *CatalogCustomAttributeDefinitionStringConfig) GetExtraProperties() map[string]interface{}
- func (c *CatalogCustomAttributeDefinitionStringConfig) String() string
- func (c *CatalogCustomAttributeDefinitionStringConfig) UnmarshalJSON(data []byte) error
- type CatalogCustomAttributeDefinitionType
- type CatalogCustomAttributeValue
- func (c *CatalogCustomAttributeValue) GetBooleanValue() *bool
- func (c *CatalogCustomAttributeValue) GetCustomAttributeDefinitionID() *string
- func (c *CatalogCustomAttributeValue) GetExtraProperties() map[string]interface{}
- func (c *CatalogCustomAttributeValue) GetKey() *string
- func (c *CatalogCustomAttributeValue) GetName() *string
- func (c *CatalogCustomAttributeValue) GetNumberValue() *string
- func (c *CatalogCustomAttributeValue) GetSelectionUIDValues() []string
- func (c *CatalogCustomAttributeValue) GetStringValue() *string
- func (c *CatalogCustomAttributeValue) GetType() *CatalogCustomAttributeDefinitionType
- func (c *CatalogCustomAttributeValue) String() string
- func (c *CatalogCustomAttributeValue) UnmarshalJSON(data []byte) error
- type CatalogDiscount
- func (c *CatalogDiscount) GetAmountMoney() *Money
- func (c *CatalogDiscount) GetDiscountType() *CatalogDiscountType
- func (c *CatalogDiscount) GetExtraProperties() map[string]interface{}
- func (c *CatalogDiscount) GetLabelColor() *string
- func (c *CatalogDiscount) GetMaximumAmountMoney() *Money
- func (c *CatalogDiscount) GetModifyTaxBasis() *CatalogDiscountModifyTaxBasis
- func (c *CatalogDiscount) GetName() *string
- func (c *CatalogDiscount) GetPercentage() *string
- func (c *CatalogDiscount) GetPinRequired() *bool
- func (c *CatalogDiscount) String() string
- func (c *CatalogDiscount) UnmarshalJSON(data []byte) error
- type CatalogDiscountModifyTaxBasis
- type CatalogDiscountType
- type CatalogEcomSeoData
- func (c *CatalogEcomSeoData) GetExtraProperties() map[string]interface{}
- func (c *CatalogEcomSeoData) GetPageDescription() *string
- func (c *CatalogEcomSeoData) GetPageTitle() *string
- func (c *CatalogEcomSeoData) GetPermalink() *string
- func (c *CatalogEcomSeoData) String() string
- func (c *CatalogEcomSeoData) UnmarshalJSON(data []byte) error
- type CatalogIDMapping
- type CatalogImage
- func (c *CatalogImage) GetCaption() *string
- func (c *CatalogImage) GetExtraProperties() map[string]interface{}
- func (c *CatalogImage) GetName() *string
- func (c *CatalogImage) GetPhotoStudioOrderID() *string
- func (c *CatalogImage) GetURL() *string
- func (c *CatalogImage) String() string
- func (c *CatalogImage) UnmarshalJSON(data []byte) error
- type CatalogInfoResponse
- func (c *CatalogInfoResponse) GetErrors() []*Error
- func (c *CatalogInfoResponse) GetExtraProperties() map[string]interface{}
- func (c *CatalogInfoResponse) GetLimits() *CatalogInfoResponseLimits
- func (c *CatalogInfoResponse) GetStandardUnitDescriptionGroup() *StandardUnitDescriptionGroup
- func (c *CatalogInfoResponse) String() string
- func (c *CatalogInfoResponse) UnmarshalJSON(data []byte) error
- type CatalogInfoResponseLimits
- func (c *CatalogInfoResponseLimits) GetBatchDeleteMaxObjectIDs() *int
- func (c *CatalogInfoResponseLimits) GetBatchRetrieveMaxObjectIDs() *int
- func (c *CatalogInfoResponseLimits) GetBatchUpsertMaxObjectsPerBatch() *int
- func (c *CatalogInfoResponseLimits) GetBatchUpsertMaxTotalObjects() *int
- func (c *CatalogInfoResponseLimits) GetExtraProperties() map[string]interface{}
- func (c *CatalogInfoResponseLimits) GetSearchMaxPageLimit() *int
- func (c *CatalogInfoResponseLimits) GetUpdateItemModifierListsMaxItemIDs() *int
- func (c *CatalogInfoResponseLimits) GetUpdateItemModifierListsMaxModifierListsToDisable() *int
- func (c *CatalogInfoResponseLimits) GetUpdateItemModifierListsMaxModifierListsToEnable() *int
- func (c *CatalogInfoResponseLimits) GetUpdateItemTaxesMaxItemIDs() *int
- func (c *CatalogInfoResponseLimits) GetUpdateItemTaxesMaxTaxesToDisable() *int
- func (c *CatalogInfoResponseLimits) GetUpdateItemTaxesMaxTaxesToEnable() *int
- func (c *CatalogInfoResponseLimits) String() string
- func (c *CatalogInfoResponseLimits) UnmarshalJSON(data []byte) error
- type CatalogItem
- func (c *CatalogItem) GetAbbreviation() *string
- func (c *CatalogItem) GetCategories() []*CatalogObjectCategory
- func (c *CatalogItem) GetCategoryID() *string
- func (c *CatalogItem) GetChannels() []string
- func (c *CatalogItem) GetDescription() *string
- func (c *CatalogItem) GetDescriptionHTML() *string
- func (c *CatalogItem) GetDescriptionPlaintext() *string
- func (c *CatalogItem) GetEcomImageURIs() []string
- func (c *CatalogItem) GetEcomSeoData() *CatalogEcomSeoData
- func (c *CatalogItem) GetEcomURI() *string
- func (c *CatalogItem) GetExtraProperties() map[string]interface{}
- func (c *CatalogItem) GetFoodAndBeverageDetails() *CatalogItemFoodAndBeverageDetails
- func (c *CatalogItem) GetImageIDs() []string
- func (c *CatalogItem) GetIsAlcoholic() *bool
- func (c *CatalogItem) GetIsArchived() *bool
- func (c *CatalogItem) GetIsTaxable() *bool
- func (c *CatalogItem) GetItemOptions() []*CatalogItemOptionForItem
- func (c *CatalogItem) GetLabelColor() *string
- func (c *CatalogItem) GetModifierListInfo() []*CatalogItemModifierListInfo
- func (c *CatalogItem) GetName() *string
- func (c *CatalogItem) GetProductType() *CatalogItemProductType
- func (c *CatalogItem) GetReportingCategory() *CatalogObjectCategory
- func (c *CatalogItem) GetSkipModifierScreen() *bool
- func (c *CatalogItem) GetSortName() *string
- func (c *CatalogItem) GetTaxIDs() []string
- func (c *CatalogItem) GetVariations() []*CatalogObject
- func (c *CatalogItem) String() string
- func (c *CatalogItem) UnmarshalJSON(data []byte) error
- type CatalogItemFoodAndBeverageDetails
- func (c *CatalogItemFoodAndBeverageDetails) GetCalorieCount() *int
- func (c *CatalogItemFoodAndBeverageDetails) GetDietaryPreferences() []*CatalogItemFoodAndBeverageDetailsDietaryPreference
- func (c *CatalogItemFoodAndBeverageDetails) GetExtraProperties() map[string]interface{}
- func (c *CatalogItemFoodAndBeverageDetails) GetIngredients() []*CatalogItemFoodAndBeverageDetailsIngredient
- func (c *CatalogItemFoodAndBeverageDetails) String() string
- func (c *CatalogItemFoodAndBeverageDetails) UnmarshalJSON(data []byte) error
- type CatalogItemFoodAndBeverageDetailsDietaryPreference
- func (c *CatalogItemFoodAndBeverageDetailsDietaryPreference) GetCustomName() *string
- func (c *CatalogItemFoodAndBeverageDetailsDietaryPreference) GetExtraProperties() map[string]interface{}
- func (c *CatalogItemFoodAndBeverageDetailsDietaryPreference) GetStandardName() *CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference
- func (c *CatalogItemFoodAndBeverageDetailsDietaryPreference) GetType() *CatalogItemFoodAndBeverageDetailsDietaryPreferenceType
- func (c *CatalogItemFoodAndBeverageDetailsDietaryPreference) String() string
- func (c *CatalogItemFoodAndBeverageDetailsDietaryPreference) UnmarshalJSON(data []byte) error
- type CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference
- type CatalogItemFoodAndBeverageDetailsDietaryPreferenceType
- type CatalogItemFoodAndBeverageDetailsIngredient
- func (c *CatalogItemFoodAndBeverageDetailsIngredient) GetCustomName() *string
- func (c *CatalogItemFoodAndBeverageDetailsIngredient) GetExtraProperties() map[string]interface{}
- func (c *CatalogItemFoodAndBeverageDetailsIngredient) GetStandardName() *CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient
- func (c *CatalogItemFoodAndBeverageDetailsIngredient) GetType() *CatalogItemFoodAndBeverageDetailsDietaryPreferenceType
- func (c *CatalogItemFoodAndBeverageDetailsIngredient) String() string
- func (c *CatalogItemFoodAndBeverageDetailsIngredient) UnmarshalJSON(data []byte) error
- type CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient
- type CatalogItemModifierListInfo
- func (c *CatalogItemModifierListInfo) GetAllowQuantities() interface{}
- func (c *CatalogItemModifierListInfo) GetEnabled() *bool
- func (c *CatalogItemModifierListInfo) GetExtraProperties() map[string]interface{}
- func (c *CatalogItemModifierListInfo) GetHiddenFromCustomerOverride() interface{}
- func (c *CatalogItemModifierListInfo) GetIsConversational() interface{}
- func (c *CatalogItemModifierListInfo) GetMaxSelectedModifiers() *int
- func (c *CatalogItemModifierListInfo) GetMinSelectedModifiers() *int
- func (c *CatalogItemModifierListInfo) GetModifierListID() string
- func (c *CatalogItemModifierListInfo) GetModifierOverrides() []*CatalogModifierOverride
- func (c *CatalogItemModifierListInfo) GetOrdinal() *int
- func (c *CatalogItemModifierListInfo) String() string
- func (c *CatalogItemModifierListInfo) UnmarshalJSON(data []byte) error
- type CatalogItemOption
- func (c *CatalogItemOption) GetDescription() *string
- func (c *CatalogItemOption) GetDisplayName() *string
- func (c *CatalogItemOption) GetExtraProperties() map[string]interface{}
- func (c *CatalogItemOption) GetName() *string
- func (c *CatalogItemOption) GetShowColors() *bool
- func (c *CatalogItemOption) GetValues() []*CatalogObject
- func (c *CatalogItemOption) String() string
- func (c *CatalogItemOption) UnmarshalJSON(data []byte) error
- type CatalogItemOptionForItem
- type CatalogItemOptionValue
- func (c *CatalogItemOptionValue) GetColor() *string
- func (c *CatalogItemOptionValue) GetDescription() *string
- func (c *CatalogItemOptionValue) GetExtraProperties() map[string]interface{}
- func (c *CatalogItemOptionValue) GetItemOptionID() *string
- func (c *CatalogItemOptionValue) GetName() *string
- func (c *CatalogItemOptionValue) GetOrdinal() *int
- func (c *CatalogItemOptionValue) String() string
- func (c *CatalogItemOptionValue) UnmarshalJSON(data []byte) error
- type CatalogItemOptionValueForItemVariation
- func (c *CatalogItemOptionValueForItemVariation) GetExtraProperties() map[string]interface{}
- func (c *CatalogItemOptionValueForItemVariation) GetItemOptionID() *string
- func (c *CatalogItemOptionValueForItemVariation) GetItemOptionValueID() *string
- func (c *CatalogItemOptionValueForItemVariation) String() string
- func (c *CatalogItemOptionValueForItemVariation) UnmarshalJSON(data []byte) error
- type CatalogItemProductType
- type CatalogItemVariation
- func (c *CatalogItemVariation) GetAvailableForBooking() *bool
- func (c *CatalogItemVariation) GetExtraProperties() map[string]interface{}
- func (c *CatalogItemVariation) GetImageIDs() []string
- func (c *CatalogItemVariation) GetInventoryAlertThreshold() *int64
- func (c *CatalogItemVariation) GetInventoryAlertType() *InventoryAlertType
- func (c *CatalogItemVariation) GetItemID() *string
- func (c *CatalogItemVariation) GetItemOptionValues() []*CatalogItemOptionValueForItemVariation
- func (c *CatalogItemVariation) GetLocationOverrides() []*ItemVariationLocationOverrides
- func (c *CatalogItemVariation) GetMeasurementUnitID() *string
- func (c *CatalogItemVariation) GetName() *string
- func (c *CatalogItemVariation) GetOrdinal() *int
- func (c *CatalogItemVariation) GetPriceMoney() *Money
- func (c *CatalogItemVariation) GetPricingType() *CatalogPricingType
- func (c *CatalogItemVariation) GetSellable() *bool
- func (c *CatalogItemVariation) GetServiceDuration() *int64
- func (c *CatalogItemVariation) GetSku() *string
- func (c *CatalogItemVariation) GetStockable() *bool
- func (c *CatalogItemVariation) GetStockableConversion() *CatalogStockConversion
- func (c *CatalogItemVariation) GetTeamMemberIDs() []string
- func (c *CatalogItemVariation) GetTrackInventory() *bool
- func (c *CatalogItemVariation) GetUpc() *string
- func (c *CatalogItemVariation) GetUserData() *string
- func (c *CatalogItemVariation) String() string
- func (c *CatalogItemVariation) UnmarshalJSON(data []byte) error
- type CatalogListRequest
- type CatalogMeasurementUnit
- func (c *CatalogMeasurementUnit) GetExtraProperties() map[string]interface{}
- func (c *CatalogMeasurementUnit) GetMeasurementUnit() *MeasurementUnit
- func (c *CatalogMeasurementUnit) GetPrecision() *int
- func (c *CatalogMeasurementUnit) String() string
- func (c *CatalogMeasurementUnit) UnmarshalJSON(data []byte) error
- type CatalogModifier
- func (c *CatalogModifier) GetExtraProperties() map[string]interface{}
- func (c *CatalogModifier) GetHiddenOnline() *bool
- func (c *CatalogModifier) GetImageID() *string
- func (c *CatalogModifier) GetLocationOverrides() []*ModifierLocationOverrides
- func (c *CatalogModifier) GetModifierListID() *string
- func (c *CatalogModifier) GetName() *string
- func (c *CatalogModifier) GetOnByDefault() *bool
- func (c *CatalogModifier) GetOrdinal() *int
- func (c *CatalogModifier) GetPriceMoney() *Money
- func (c *CatalogModifier) String() string
- func (c *CatalogModifier) UnmarshalJSON(data []byte) error
- type CatalogModifierList
- func (c *CatalogModifierList) GetAllowQuantities() *bool
- func (c *CatalogModifierList) GetExtraProperties() map[string]interface{}
- func (c *CatalogModifierList) GetHiddenFromCustomer() *bool
- func (c *CatalogModifierList) GetImageIDs() []string
- func (c *CatalogModifierList) GetInternalName() *string
- func (c *CatalogModifierList) GetIsConversational() *bool
- func (c *CatalogModifierList) GetMaxLength() *int
- func (c *CatalogModifierList) GetMaxSelectedModifiers() *int64
- func (c *CatalogModifierList) GetMinSelectedModifiers() *int64
- func (c *CatalogModifierList) GetModifierType() *CatalogModifierListModifierType
- func (c *CatalogModifierList) GetModifiers() []*CatalogObject
- func (c *CatalogModifierList) GetName() *string
- func (c *CatalogModifierList) GetOrdinal() *int
- func (c *CatalogModifierList) GetSelectionType() *CatalogModifierListSelectionType
- func (c *CatalogModifierList) GetTextRequired() *bool
- func (c *CatalogModifierList) String() string
- func (c *CatalogModifierList) UnmarshalJSON(data []byte) error
- type CatalogModifierListModifierType
- type CatalogModifierListSelectionType
- type CatalogModifierOverride
- func (c *CatalogModifierOverride) GetExtraProperties() map[string]interface{}
- func (c *CatalogModifierOverride) GetHiddenOnlineOverride() interface{}
- func (c *CatalogModifierOverride) GetModifierID() string
- func (c *CatalogModifierOverride) GetOnByDefault() *bool
- func (c *CatalogModifierOverride) GetOnByDefaultOverride() interface{}
- func (c *CatalogModifierOverride) String() string
- func (c *CatalogModifierOverride) UnmarshalJSON(data []byte) error
- type CatalogObject
- func (c *CatalogObject) Accept(visitor CatalogObjectVisitor) error
- func (c *CatalogObject) GetAvailabilityPeriod() *CatalogObjectAvailabilityPeriod
- func (c *CatalogObject) GetCategory() *CatalogObjectCategory
- func (c *CatalogObject) GetCustomAttributeDefinition() *CatalogObjectCustomAttributeDefinition
- func (c *CatalogObject) GetDiscount() *CatalogObjectDiscount
- func (c *CatalogObject) GetImage() *CatalogObjectImage
- func (c *CatalogObject) GetItem() *CatalogObjectItem
- func (c *CatalogObject) GetItemOption() *CatalogObjectItemOption
- func (c *CatalogObject) GetItemOptionVal() *CatalogObjectItemOptionValue
- func (c *CatalogObject) GetItemVariation() *CatalogObjectItemVariation
- func (c *CatalogObject) GetMeasurementUnit() *CatalogObjectMeasurementUnit
- func (c *CatalogObject) GetModifier() *CatalogObjectModifier
- func (c *CatalogObject) GetModifierList() *CatalogObjectModifierList
- func (c *CatalogObject) GetPricingRule() *CatalogObjectPricingRule
- func (c *CatalogObject) GetProductSet() *CatalogObjectProductSet
- func (c *CatalogObject) GetQuickAmountsSettings() *CatalogObjectQuickAmountsSettings
- func (c *CatalogObject) GetSubscriptionPlan() *CatalogObjectSubscriptionPlan
- func (c *CatalogObject) GetSubscriptionPlanVariation() *CatalogObjectSubscriptionPlanVariation
- func (c *CatalogObject) GetTax() *CatalogObjectTax
- func (c *CatalogObject) GetTimePeriod() *CatalogObjectTimePeriod
- func (c *CatalogObject) GetType() string
- func (c CatalogObject) MarshalJSON() ([]byte, error)
- func (c *CatalogObject) UnmarshalJSON(data []byte) error
- type CatalogObjectAvailabilityPeriod
- func (c *CatalogObjectAvailabilityPeriod) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectAvailabilityPeriod) GetAvailabilityPeriodData() *CatalogAvailabilityPeriod
- func (c *CatalogObjectAvailabilityPeriod) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectAvailabilityPeriod) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectAvailabilityPeriod) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectAvailabilityPeriod) GetID() string
- func (c *CatalogObjectAvailabilityPeriod) GetImageID() *string
- func (c *CatalogObjectAvailabilityPeriod) GetIsDeleted() *bool
- func (c *CatalogObjectAvailabilityPeriod) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectAvailabilityPeriod) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectAvailabilityPeriod) GetUpdatedAt() *string
- func (c *CatalogObjectAvailabilityPeriod) GetVersion() *int64
- func (c *CatalogObjectAvailabilityPeriod) String() string
- func (c *CatalogObjectAvailabilityPeriod) UnmarshalJSON(data []byte) error
- type CatalogObjectBase
- func (c *CatalogObjectBase) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectBase) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectBase) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectBase) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectBase) GetID() string
- func (c *CatalogObjectBase) GetImageID() *string
- func (c *CatalogObjectBase) GetIsDeleted() *bool
- func (c *CatalogObjectBase) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectBase) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectBase) GetUpdatedAt() *string
- func (c *CatalogObjectBase) GetVersion() *int64
- func (c *CatalogObjectBase) String() string
- func (c *CatalogObjectBase) UnmarshalJSON(data []byte) error
- type CatalogObjectBatch
- type CatalogObjectCategory
- func (c *CatalogObjectCategory) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectCategory) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectCategory) GetCategoryData() *CatalogCategory
- func (c *CatalogObjectCategory) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectCategory) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectCategory) GetID() *string
- func (c *CatalogObjectCategory) GetImageID() *string
- func (c *CatalogObjectCategory) GetIsDeleted() *bool
- func (c *CatalogObjectCategory) GetOrdinal() *int64
- func (c *CatalogObjectCategory) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectCategory) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectCategory) GetUpdatedAt() *string
- func (c *CatalogObjectCategory) GetVersion() *int64
- func (c *CatalogObjectCategory) String() string
- func (c *CatalogObjectCategory) UnmarshalJSON(data []byte) error
- type CatalogObjectCustomAttributeDefinition
- func (c *CatalogObjectCustomAttributeDefinition) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectCustomAttributeDefinition) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectCustomAttributeDefinition) GetCustomAttributeDefinitionData() *CatalogCustomAttributeDefinition
- func (c *CatalogObjectCustomAttributeDefinition) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectCustomAttributeDefinition) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectCustomAttributeDefinition) GetID() string
- func (c *CatalogObjectCustomAttributeDefinition) GetImageID() *string
- func (c *CatalogObjectCustomAttributeDefinition) GetIsDeleted() *bool
- func (c *CatalogObjectCustomAttributeDefinition) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectCustomAttributeDefinition) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectCustomAttributeDefinition) GetUpdatedAt() *string
- func (c *CatalogObjectCustomAttributeDefinition) GetVersion() *int64
- func (c *CatalogObjectCustomAttributeDefinition) String() string
- func (c *CatalogObjectCustomAttributeDefinition) UnmarshalJSON(data []byte) error
- type CatalogObjectDiscount
- func (c *CatalogObjectDiscount) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectDiscount) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectDiscount) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectDiscount) GetDiscountData() *CatalogDiscount
- func (c *CatalogObjectDiscount) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectDiscount) GetID() string
- func (c *CatalogObjectDiscount) GetImageID() *string
- func (c *CatalogObjectDiscount) GetIsDeleted() *bool
- func (c *CatalogObjectDiscount) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectDiscount) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectDiscount) GetUpdatedAt() *string
- func (c *CatalogObjectDiscount) GetVersion() *int64
- func (c *CatalogObjectDiscount) String() string
- func (c *CatalogObjectDiscount) UnmarshalJSON(data []byte) error
- type CatalogObjectImage
- func (c *CatalogObjectImage) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectImage) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectImage) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectImage) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectImage) GetID() string
- func (c *CatalogObjectImage) GetImageData() *CatalogImage
- func (c *CatalogObjectImage) GetImageID() *string
- func (c *CatalogObjectImage) GetIsDeleted() *bool
- func (c *CatalogObjectImage) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectImage) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectImage) GetUpdatedAt() *string
- func (c *CatalogObjectImage) GetVersion() *int64
- func (c *CatalogObjectImage) String() string
- func (c *CatalogObjectImage) UnmarshalJSON(data []byte) error
- type CatalogObjectItem
- func (c *CatalogObjectItem) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectItem) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectItem) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectItem) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectItem) GetID() string
- func (c *CatalogObjectItem) GetImageID() *string
- func (c *CatalogObjectItem) GetIsDeleted() *bool
- func (c *CatalogObjectItem) GetItemData() *CatalogItem
- func (c *CatalogObjectItem) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectItem) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectItem) GetUpdatedAt() *string
- func (c *CatalogObjectItem) GetVersion() *int64
- func (c *CatalogObjectItem) String() string
- func (c *CatalogObjectItem) UnmarshalJSON(data []byte) error
- type CatalogObjectItemOption
- func (c *CatalogObjectItemOption) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectItemOption) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectItemOption) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectItemOption) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectItemOption) GetID() string
- func (c *CatalogObjectItemOption) GetImageID() *string
- func (c *CatalogObjectItemOption) GetIsDeleted() *bool
- func (c *CatalogObjectItemOption) GetItemOptionData() *CatalogItemOption
- func (c *CatalogObjectItemOption) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectItemOption) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectItemOption) GetUpdatedAt() *string
- func (c *CatalogObjectItemOption) GetVersion() *int64
- func (c *CatalogObjectItemOption) String() string
- func (c *CatalogObjectItemOption) UnmarshalJSON(data []byte) error
- type CatalogObjectItemOptionValue
- func (c *CatalogObjectItemOptionValue) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectItemOptionValue) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectItemOptionValue) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectItemOptionValue) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectItemOptionValue) GetID() string
- func (c *CatalogObjectItemOptionValue) GetImageID() *string
- func (c *CatalogObjectItemOptionValue) GetIsDeleted() *bool
- func (c *CatalogObjectItemOptionValue) GetItemOptionValueData() *CatalogItemOptionValue
- func (c *CatalogObjectItemOptionValue) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectItemOptionValue) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectItemOptionValue) GetUpdatedAt() *string
- func (c *CatalogObjectItemOptionValue) GetVersion() *int64
- func (c *CatalogObjectItemOptionValue) String() string
- func (c *CatalogObjectItemOptionValue) UnmarshalJSON(data []byte) error
- type CatalogObjectItemVariation
- func (c *CatalogObjectItemVariation) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectItemVariation) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectItemVariation) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectItemVariation) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectItemVariation) GetID() string
- func (c *CatalogObjectItemVariation) GetImageID() *string
- func (c *CatalogObjectItemVariation) GetIsDeleted() *bool
- func (c *CatalogObjectItemVariation) GetItemVariationData() *CatalogItemVariation
- func (c *CatalogObjectItemVariation) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectItemVariation) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectItemVariation) GetUpdatedAt() *string
- func (c *CatalogObjectItemVariation) GetVersion() *int64
- func (c *CatalogObjectItemVariation) String() string
- func (c *CatalogObjectItemVariation) UnmarshalJSON(data []byte) error
- type CatalogObjectMeasurementUnit
- func (c *CatalogObjectMeasurementUnit) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectMeasurementUnit) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectMeasurementUnit) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectMeasurementUnit) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectMeasurementUnit) GetID() string
- func (c *CatalogObjectMeasurementUnit) GetImageID() *string
- func (c *CatalogObjectMeasurementUnit) GetIsDeleted() *bool
- func (c *CatalogObjectMeasurementUnit) GetMeasurementUnitData() *CatalogMeasurementUnit
- func (c *CatalogObjectMeasurementUnit) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectMeasurementUnit) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectMeasurementUnit) GetUpdatedAt() *string
- func (c *CatalogObjectMeasurementUnit) GetVersion() *int64
- func (c *CatalogObjectMeasurementUnit) String() string
- func (c *CatalogObjectMeasurementUnit) UnmarshalJSON(data []byte) error
- type CatalogObjectModifier
- func (c *CatalogObjectModifier) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectModifier) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectModifier) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectModifier) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectModifier) GetID() string
- func (c *CatalogObjectModifier) GetImageID() *string
- func (c *CatalogObjectModifier) GetIsDeleted() *bool
- func (c *CatalogObjectModifier) GetModifierData() *CatalogModifier
- func (c *CatalogObjectModifier) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectModifier) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectModifier) GetUpdatedAt() *string
- func (c *CatalogObjectModifier) GetVersion() *int64
- func (c *CatalogObjectModifier) String() string
- func (c *CatalogObjectModifier) UnmarshalJSON(data []byte) error
- type CatalogObjectModifierList
- func (c *CatalogObjectModifierList) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectModifierList) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectModifierList) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectModifierList) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectModifierList) GetID() string
- func (c *CatalogObjectModifierList) GetImageID() *string
- func (c *CatalogObjectModifierList) GetIsDeleted() *bool
- func (c *CatalogObjectModifierList) GetModifierListData() *CatalogModifierList
- func (c *CatalogObjectModifierList) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectModifierList) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectModifierList) GetUpdatedAt() *string
- func (c *CatalogObjectModifierList) GetVersion() *int64
- func (c *CatalogObjectModifierList) String() string
- func (c *CatalogObjectModifierList) UnmarshalJSON(data []byte) error
- type CatalogObjectPricingRule
- func (c *CatalogObjectPricingRule) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectPricingRule) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectPricingRule) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectPricingRule) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectPricingRule) GetID() string
- func (c *CatalogObjectPricingRule) GetImageID() *string
- func (c *CatalogObjectPricingRule) GetIsDeleted() *bool
- func (c *CatalogObjectPricingRule) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectPricingRule) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectPricingRule) GetPricingRuleData() *CatalogPricingRule
- func (c *CatalogObjectPricingRule) GetUpdatedAt() *string
- func (c *CatalogObjectPricingRule) GetVersion() *int64
- func (c *CatalogObjectPricingRule) String() string
- func (c *CatalogObjectPricingRule) UnmarshalJSON(data []byte) error
- type CatalogObjectProductSet
- func (c *CatalogObjectProductSet) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectProductSet) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectProductSet) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectProductSet) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectProductSet) GetID() string
- func (c *CatalogObjectProductSet) GetImageID() *string
- func (c *CatalogObjectProductSet) GetIsDeleted() *bool
- func (c *CatalogObjectProductSet) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectProductSet) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectProductSet) GetProductSetData() *CatalogProductSet
- func (c *CatalogObjectProductSet) GetUpdatedAt() *string
- func (c *CatalogObjectProductSet) GetVersion() *int64
- func (c *CatalogObjectProductSet) String() string
- func (c *CatalogObjectProductSet) UnmarshalJSON(data []byte) error
- type CatalogObjectQuickAmountsSettings
- func (c *CatalogObjectQuickAmountsSettings) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectQuickAmountsSettings) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectQuickAmountsSettings) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectQuickAmountsSettings) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectQuickAmountsSettings) GetID() string
- func (c *CatalogObjectQuickAmountsSettings) GetImageID() *string
- func (c *CatalogObjectQuickAmountsSettings) GetIsDeleted() *bool
- func (c *CatalogObjectQuickAmountsSettings) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectQuickAmountsSettings) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectQuickAmountsSettings) GetQuickAmountsSettingsData() *CatalogQuickAmountsSettings
- func (c *CatalogObjectQuickAmountsSettings) GetUpdatedAt() *string
- func (c *CatalogObjectQuickAmountsSettings) GetVersion() *int64
- func (c *CatalogObjectQuickAmountsSettings) String() string
- func (c *CatalogObjectQuickAmountsSettings) UnmarshalJSON(data []byte) error
- type CatalogObjectReference
- func (c *CatalogObjectReference) GetCatalogVersion() *int64
- func (c *CatalogObjectReference) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectReference) GetObjectID() *string
- func (c *CatalogObjectReference) String() string
- func (c *CatalogObjectReference) UnmarshalJSON(data []byte) error
- type CatalogObjectSubscriptionPlan
- func (c *CatalogObjectSubscriptionPlan) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectSubscriptionPlan) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectSubscriptionPlan) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectSubscriptionPlan) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectSubscriptionPlan) GetID() string
- func (c *CatalogObjectSubscriptionPlan) GetImageID() *string
- func (c *CatalogObjectSubscriptionPlan) GetIsDeleted() *bool
- func (c *CatalogObjectSubscriptionPlan) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectSubscriptionPlan) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectSubscriptionPlan) GetSubscriptionPlanData() *CatalogSubscriptionPlan
- func (c *CatalogObjectSubscriptionPlan) GetUpdatedAt() *string
- func (c *CatalogObjectSubscriptionPlan) GetVersion() *int64
- func (c *CatalogObjectSubscriptionPlan) String() string
- func (c *CatalogObjectSubscriptionPlan) UnmarshalJSON(data []byte) error
- type CatalogObjectSubscriptionPlanVariation
- func (c *CatalogObjectSubscriptionPlanVariation) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectSubscriptionPlanVariation) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectSubscriptionPlanVariation) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectSubscriptionPlanVariation) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectSubscriptionPlanVariation) GetID() string
- func (c *CatalogObjectSubscriptionPlanVariation) GetImageID() *string
- func (c *CatalogObjectSubscriptionPlanVariation) GetIsDeleted() *bool
- func (c *CatalogObjectSubscriptionPlanVariation) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectSubscriptionPlanVariation) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectSubscriptionPlanVariation) GetSubscriptionPlanVariationData() *CatalogSubscriptionPlanVariation
- func (c *CatalogObjectSubscriptionPlanVariation) GetUpdatedAt() *string
- func (c *CatalogObjectSubscriptionPlanVariation) GetVersion() *int64
- func (c *CatalogObjectSubscriptionPlanVariation) String() string
- func (c *CatalogObjectSubscriptionPlanVariation) UnmarshalJSON(data []byte) error
- type CatalogObjectTax
- func (c *CatalogObjectTax) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectTax) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectTax) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectTax) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectTax) GetID() string
- func (c *CatalogObjectTax) GetImageID() *string
- func (c *CatalogObjectTax) GetIsDeleted() *bool
- func (c *CatalogObjectTax) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectTax) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectTax) GetTaxData() *CatalogTax
- func (c *CatalogObjectTax) GetUpdatedAt() *string
- func (c *CatalogObjectTax) GetVersion() *int64
- func (c *CatalogObjectTax) String() string
- func (c *CatalogObjectTax) UnmarshalJSON(data []byte) error
- type CatalogObjectTimePeriod
- func (c *CatalogObjectTimePeriod) GetAbsentAtLocationIDs() []string
- func (c *CatalogObjectTimePeriod) GetCatalogV1IDs() []*CatalogV1ID
- func (c *CatalogObjectTimePeriod) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
- func (c *CatalogObjectTimePeriod) GetExtraProperties() map[string]interface{}
- func (c *CatalogObjectTimePeriod) GetID() string
- func (c *CatalogObjectTimePeriod) GetImageID() *string
- func (c *CatalogObjectTimePeriod) GetIsDeleted() *bool
- func (c *CatalogObjectTimePeriod) GetPresentAtAllLocations() *bool
- func (c *CatalogObjectTimePeriod) GetPresentAtLocationIDs() []string
- func (c *CatalogObjectTimePeriod) GetTimePeriodData() *CatalogTimePeriod
- func (c *CatalogObjectTimePeriod) GetUpdatedAt() *string
- func (c *CatalogObjectTimePeriod) GetVersion() *int64
- func (c *CatalogObjectTimePeriod) String() string
- func (c *CatalogObjectTimePeriod) UnmarshalJSON(data []byte) error
- type CatalogObjectType
- type CatalogObjectVisitor
- type CatalogPricingRule
- func (c *CatalogPricingRule) GetApplyProductsID() *string
- func (c *CatalogPricingRule) GetCustomerGroupIDsAny() []string
- func (c *CatalogPricingRule) GetDiscountID() *string
- func (c *CatalogPricingRule) GetExcludeProductsID() *string
- func (c *CatalogPricingRule) GetExcludeStrategy() *ExcludeStrategy
- func (c *CatalogPricingRule) GetExtraProperties() map[string]interface{}
- func (c *CatalogPricingRule) GetMatchProductsID() *string
- func (c *CatalogPricingRule) GetMinimumOrderSubtotalMoney() *Money
- func (c *CatalogPricingRule) GetName() *string
- func (c *CatalogPricingRule) GetTimePeriodIDs() []string
- func (c *CatalogPricingRule) GetValidFromDate() *string
- func (c *CatalogPricingRule) GetValidFromLocalTime() *string
- func (c *CatalogPricingRule) GetValidUntilDate() *string
- func (c *CatalogPricingRule) GetValidUntilLocalTime() *string
- func (c *CatalogPricingRule) String() string
- func (c *CatalogPricingRule) UnmarshalJSON(data []byte) error
- type CatalogPricingType
- type CatalogProductSet
- func (c *CatalogProductSet) GetAllProducts() *bool
- func (c *CatalogProductSet) GetExtraProperties() map[string]interface{}
- func (c *CatalogProductSet) GetName() *string
- func (c *CatalogProductSet) GetProductIDsAll() []string
- func (c *CatalogProductSet) GetProductIDsAny() []string
- func (c *CatalogProductSet) GetQuantityExact() *int64
- func (c *CatalogProductSet) GetQuantityMax() *int64
- func (c *CatalogProductSet) GetQuantityMin() *int64
- func (c *CatalogProductSet) String() string
- func (c *CatalogProductSet) UnmarshalJSON(data []byte) error
- type CatalogQuery
- func (c *CatalogQuery) GetExactQuery() *CatalogQueryExact
- func (c *CatalogQuery) GetExtraProperties() map[string]interface{}
- func (c *CatalogQuery) GetItemVariationsForItemOptionValuesQuery() *CatalogQueryItemVariationsForItemOptionValues
- func (c *CatalogQuery) GetItemsForItemOptionsQuery() *CatalogQueryItemsForItemOptions
- func (c *CatalogQuery) GetItemsForModifierListQuery() *CatalogQueryItemsForModifierList
- func (c *CatalogQuery) GetItemsForTaxQuery() *CatalogQueryItemsForTax
- func (c *CatalogQuery) GetPrefixQuery() *CatalogQueryPrefix
- func (c *CatalogQuery) GetRangeQuery() *CatalogQueryRange
- func (c *CatalogQuery) GetSetQuery() *CatalogQuerySet
- func (c *CatalogQuery) GetSortedAttributeQuery() *CatalogQuerySortedAttribute
- func (c *CatalogQuery) GetTextQuery() *CatalogQueryText
- func (c *CatalogQuery) String() string
- func (c *CatalogQuery) UnmarshalJSON(data []byte) error
- type CatalogQueryExact
- type CatalogQueryItemVariationsForItemOptionValues
- func (c *CatalogQueryItemVariationsForItemOptionValues) GetExtraProperties() map[string]interface{}
- func (c *CatalogQueryItemVariationsForItemOptionValues) GetItemOptionValueIDs() []string
- func (c *CatalogQueryItemVariationsForItemOptionValues) String() string
- func (c *CatalogQueryItemVariationsForItemOptionValues) UnmarshalJSON(data []byte) error
- type CatalogQueryItemsForItemOptions
- type CatalogQueryItemsForModifierList
- type CatalogQueryItemsForTax
- type CatalogQueryPrefix
- type CatalogQueryRange
- func (c *CatalogQueryRange) GetAttributeMaxValue() *int64
- func (c *CatalogQueryRange) GetAttributeMinValue() *int64
- func (c *CatalogQueryRange) GetAttributeName() string
- func (c *CatalogQueryRange) GetExtraProperties() map[string]interface{}
- func (c *CatalogQueryRange) String() string
- func (c *CatalogQueryRange) UnmarshalJSON(data []byte) error
- type CatalogQuerySet
- type CatalogQuerySortedAttribute
- func (c *CatalogQuerySortedAttribute) GetAttributeName() string
- func (c *CatalogQuerySortedAttribute) GetExtraProperties() map[string]interface{}
- func (c *CatalogQuerySortedAttribute) GetInitialAttributeValue() *string
- func (c *CatalogQuerySortedAttribute) GetSortOrder() *SortOrder
- func (c *CatalogQuerySortedAttribute) String() string
- func (c *CatalogQuerySortedAttribute) UnmarshalJSON(data []byte) error
- type CatalogQueryText
- type CatalogQuickAmount
- func (c *CatalogQuickAmount) GetAmount() *Money
- func (c *CatalogQuickAmount) GetExtraProperties() map[string]interface{}
- func (c *CatalogQuickAmount) GetOrdinal() *int64
- func (c *CatalogQuickAmount) GetScore() *int64
- func (c *CatalogQuickAmount) GetType() CatalogQuickAmountType
- func (c *CatalogQuickAmount) String() string
- func (c *CatalogQuickAmount) UnmarshalJSON(data []byte) error
- type CatalogQuickAmountType
- type CatalogQuickAmountsSettings
- func (c *CatalogQuickAmountsSettings) GetAmounts() []*CatalogQuickAmount
- func (c *CatalogQuickAmountsSettings) GetEligibleForAutoAmounts() *bool
- func (c *CatalogQuickAmountsSettings) GetExtraProperties() map[string]interface{}
- func (c *CatalogQuickAmountsSettings) GetOption() CatalogQuickAmountsSettingsOption
- func (c *CatalogQuickAmountsSettings) String() string
- func (c *CatalogQuickAmountsSettings) UnmarshalJSON(data []byte) error
- type CatalogQuickAmountsSettingsOption
- type CatalogStockConversion
- func (c *CatalogStockConversion) GetExtraProperties() map[string]interface{}
- func (c *CatalogStockConversion) GetNonstockableQuantity() string
- func (c *CatalogStockConversion) GetStockableItemVariationID() string
- func (c *CatalogStockConversion) GetStockableQuantity() string
- func (c *CatalogStockConversion) String() string
- func (c *CatalogStockConversion) UnmarshalJSON(data []byte) error
- type CatalogSubscriptionPlan
- func (c *CatalogSubscriptionPlan) GetAllItems() *bool
- func (c *CatalogSubscriptionPlan) GetEligibleCategoryIDs() []string
- func (c *CatalogSubscriptionPlan) GetEligibleItemIDs() []string
- func (c *CatalogSubscriptionPlan) GetExtraProperties() map[string]interface{}
- func (c *CatalogSubscriptionPlan) GetName() string
- func (c *CatalogSubscriptionPlan) GetPhases() []*SubscriptionPhase
- func (c *CatalogSubscriptionPlan) GetSubscriptionPlanVariations() []*CatalogObject
- func (c *CatalogSubscriptionPlan) String() string
- func (c *CatalogSubscriptionPlan) UnmarshalJSON(data []byte) error
- type CatalogSubscriptionPlanVariation
- func (c *CatalogSubscriptionPlanVariation) GetCanProrate() *bool
- func (c *CatalogSubscriptionPlanVariation) GetExtraProperties() map[string]interface{}
- func (c *CatalogSubscriptionPlanVariation) GetMonthlyBillingAnchorDate() *int64
- func (c *CatalogSubscriptionPlanVariation) GetName() string
- func (c *CatalogSubscriptionPlanVariation) GetPhases() []*SubscriptionPhase
- func (c *CatalogSubscriptionPlanVariation) GetSubscriptionPlanID() *string
- func (c *CatalogSubscriptionPlanVariation) GetSuccessorPlanVariationID() *string
- func (c *CatalogSubscriptionPlanVariation) String() string
- func (c *CatalogSubscriptionPlanVariation) UnmarshalJSON(data []byte) error
- type CatalogTax
- func (c *CatalogTax) GetAppliesToCustomAmounts() *bool
- func (c *CatalogTax) GetAppliesToProductSetID() *string
- func (c *CatalogTax) GetCalculationPhase() *TaxCalculationPhase
- func (c *CatalogTax) GetEnabled() *bool
- func (c *CatalogTax) GetExtraProperties() map[string]interface{}
- func (c *CatalogTax) GetInclusionType() *TaxInclusionType
- func (c *CatalogTax) GetName() *string
- func (c *CatalogTax) GetPercentage() *string
- func (c *CatalogTax) String() string
- func (c *CatalogTax) UnmarshalJSON(data []byte) error
- type CatalogTimePeriod
- type CatalogV1ID
- type CategoryPathToRootNode
- func (c *CategoryPathToRootNode) GetCategoryID() *string
- func (c *CategoryPathToRootNode) GetCategoryName() *string
- func (c *CategoryPathToRootNode) GetExtraProperties() map[string]interface{}
- func (c *CategoryPathToRootNode) String() string
- func (c *CategoryPathToRootNode) UnmarshalJSON(data []byte) error
- type ChangeBillingAnchorDateRequest
- type ChangeBillingAnchorDateResponse
- func (c *ChangeBillingAnchorDateResponse) GetActions() []*SubscriptionAction
- func (c *ChangeBillingAnchorDateResponse) GetErrors() []*Error
- func (c *ChangeBillingAnchorDateResponse) GetExtraProperties() map[string]interface{}
- func (c *ChangeBillingAnchorDateResponse) GetSubscription() *Subscription
- func (c *ChangeBillingAnchorDateResponse) String() string
- func (c *ChangeBillingAnchorDateResponse) UnmarshalJSON(data []byte) error
- type ChangeTiming
- type ChangesInventoryRequest
- type ChargeRequestAdditionalRecipient
- func (c *ChargeRequestAdditionalRecipient) GetAmountMoney() *Money
- func (c *ChargeRequestAdditionalRecipient) GetDescription() string
- func (c *ChargeRequestAdditionalRecipient) GetExtraProperties() map[string]interface{}
- func (c *ChargeRequestAdditionalRecipient) GetLocationID() string
- func (c *ChargeRequestAdditionalRecipient) String() string
- func (c *ChargeRequestAdditionalRecipient) UnmarshalJSON(data []byte) error
- type Checkout
- func (c *Checkout) GetAdditionalRecipients() []*AdditionalRecipient
- func (c *Checkout) GetAskForShippingAddress() *bool
- func (c *Checkout) GetCheckoutPageURL() *string
- func (c *Checkout) GetCreatedAt() *string
- func (c *Checkout) GetExtraProperties() map[string]interface{}
- func (c *Checkout) GetID() *string
- func (c *Checkout) GetMerchantSupportEmail() *string
- func (c *Checkout) GetOrder() *Order
- func (c *Checkout) GetPrePopulateBuyerEmail() *string
- func (c *Checkout) GetPrePopulateShippingAddress() *Address
- func (c *Checkout) GetRedirectURL() *string
- func (c *Checkout) String() string
- func (c *Checkout) UnmarshalJSON(data []byte) error
- type CheckoutLocationSettings
- func (c *CheckoutLocationSettings) GetBranding() *CheckoutLocationSettingsBranding
- func (c *CheckoutLocationSettings) GetCoupons() *CheckoutLocationSettingsCoupons
- func (c *CheckoutLocationSettings) GetCustomerNotesEnabled() *bool
- func (c *CheckoutLocationSettings) GetExtraProperties() map[string]interface{}
- func (c *CheckoutLocationSettings) GetLocationID() *string
- func (c *CheckoutLocationSettings) GetPolicies() []*CheckoutLocationSettingsPolicy
- func (c *CheckoutLocationSettings) GetTipping() *CheckoutLocationSettingsTipping
- func (c *CheckoutLocationSettings) GetUpdatedAt() *string
- func (c *CheckoutLocationSettings) String() string
- func (c *CheckoutLocationSettings) UnmarshalJSON(data []byte) error
- type CheckoutLocationSettingsBranding
- func (c *CheckoutLocationSettingsBranding) GetButtonColor() *string
- func (c *CheckoutLocationSettingsBranding) GetButtonShape() *CheckoutLocationSettingsBrandingButtonShape
- func (c *CheckoutLocationSettingsBranding) GetExtraProperties() map[string]interface{}
- func (c *CheckoutLocationSettingsBranding) GetHeaderType() *CheckoutLocationSettingsBrandingHeaderType
- func (c *CheckoutLocationSettingsBranding) String() string
- func (c *CheckoutLocationSettingsBranding) UnmarshalJSON(data []byte) error
- type CheckoutLocationSettingsBrandingButtonShape
- type CheckoutLocationSettingsBrandingHeaderType
- type CheckoutLocationSettingsCoupons
- type CheckoutLocationSettingsPolicy
- func (c *CheckoutLocationSettingsPolicy) GetDescription() *string
- func (c *CheckoutLocationSettingsPolicy) GetExtraProperties() map[string]interface{}
- func (c *CheckoutLocationSettingsPolicy) GetTitle() *string
- func (c *CheckoutLocationSettingsPolicy) GetUID() *string
- func (c *CheckoutLocationSettingsPolicy) String() string
- func (c *CheckoutLocationSettingsPolicy) UnmarshalJSON(data []byte) error
- type CheckoutLocationSettingsTipping
- func (c *CheckoutLocationSettingsTipping) GetDefaultPercent() *int
- func (c *CheckoutLocationSettingsTipping) GetDefaultSmartTip() *Money
- func (c *CheckoutLocationSettingsTipping) GetExtraProperties() map[string]interface{}
- func (c *CheckoutLocationSettingsTipping) GetPercentages() []int
- func (c *CheckoutLocationSettingsTipping) GetSmartTippingEnabled() *bool
- func (c *CheckoutLocationSettingsTipping) GetSmartTips() []*Money
- func (c *CheckoutLocationSettingsTipping) String() string
- func (c *CheckoutLocationSettingsTipping) UnmarshalJSON(data []byte) error
- type CheckoutMerchantSettings
- func (c *CheckoutMerchantSettings) GetExtraProperties() map[string]interface{}
- func (c *CheckoutMerchantSettings) GetPaymentMethods() *CheckoutMerchantSettingsPaymentMethods
- func (c *CheckoutMerchantSettings) GetUpdatedAt() *string
- func (c *CheckoutMerchantSettings) String() string
- func (c *CheckoutMerchantSettings) UnmarshalJSON(data []byte) error
- type CheckoutMerchantSettingsPaymentMethods
- func (c *CheckoutMerchantSettingsPaymentMethods) GetAfterpayClearpay() *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay
- func (c *CheckoutMerchantSettingsPaymentMethods) GetApplePay() *CheckoutMerchantSettingsPaymentMethodsPaymentMethod
- func (c *CheckoutMerchantSettingsPaymentMethods) GetCashApp() *CheckoutMerchantSettingsPaymentMethodsPaymentMethod
- func (c *CheckoutMerchantSettingsPaymentMethods) GetExtraProperties() map[string]interface{}
- func (c *CheckoutMerchantSettingsPaymentMethods) GetGooglePay() *CheckoutMerchantSettingsPaymentMethodsPaymentMethod
- func (c *CheckoutMerchantSettingsPaymentMethods) String() string
- func (c *CheckoutMerchantSettingsPaymentMethods) UnmarshalJSON(data []byte) error
- type CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay
- func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay) GetEnabled() *bool
- func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay) GetExtraProperties() map[string]interface{}
- func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay) GetItemEligibilityRange() *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange
- func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay) GetOrderEligibilityRange() *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange
- func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay) String() string
- func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay) UnmarshalJSON(data []byte) error
- type CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange
- func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange) GetExtraProperties() map[string]interface{}
- func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange) GetMax() *Money
- func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange) GetMin() *Money
- func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange) String() string
- func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange) UnmarshalJSON(data []byte) error
- type CheckoutMerchantSettingsPaymentMethodsPaymentMethod
- func (c *CheckoutMerchantSettingsPaymentMethodsPaymentMethod) GetEnabled() *bool
- func (c *CheckoutMerchantSettingsPaymentMethodsPaymentMethod) GetExtraProperties() map[string]interface{}
- func (c *CheckoutMerchantSettingsPaymentMethodsPaymentMethod) String() string
- func (c *CheckoutMerchantSettingsPaymentMethodsPaymentMethod) UnmarshalJSON(data []byte) error
- type CheckoutOptions
- func (c *CheckoutOptions) GetAcceptedPaymentMethods() *AcceptedPaymentMethods
- func (c *CheckoutOptions) GetAllowTipping() *bool
- func (c *CheckoutOptions) GetAppFeeMoney() *Money
- func (c *CheckoutOptions) GetAskForShippingAddress() *bool
- func (c *CheckoutOptions) GetCustomFields() []*CustomField
- func (c *CheckoutOptions) GetEnableCoupon() *bool
- func (c *CheckoutOptions) GetEnableLoyalty() *bool
- func (c *CheckoutOptions) GetExtraProperties() map[string]interface{}
- func (c *CheckoutOptions) GetMerchantSupportEmail() *string
- func (c *CheckoutOptions) GetRedirectURL() *string
- func (c *CheckoutOptions) GetShippingFee() *ShippingFee
- func (c *CheckoutOptions) GetSubscriptionPlanID() *string
- func (c *CheckoutOptions) String() string
- func (c *CheckoutOptions) UnmarshalJSON(data []byte) error
- type CheckoutOptionsPaymentType
- type ClearpayDetails
- type CloneOrderRequest
- type CloneOrderResponse
- type CollectedData
- type CompletePaymentRequest
- type CompletePaymentResponse
- func (c *CompletePaymentResponse) GetErrors() []*Error
- func (c *CompletePaymentResponse) GetExtraProperties() map[string]interface{}
- func (c *CompletePaymentResponse) GetPayment() *Payment
- func (c *CompletePaymentResponse) String() string
- func (c *CompletePaymentResponse) UnmarshalJSON(data []byte) error
- type Component
- func (c *Component) GetApplicationDetails() *DeviceComponentDetailsApplicationDetails
- func (c *Component) GetBatteryDetails() *DeviceComponentDetailsBatteryDetails
- func (c *Component) GetCardReaderDetails() *DeviceComponentDetailsCardReaderDetails
- func (c *Component) GetEthernetDetails() *DeviceComponentDetailsEthernetDetails
- func (c *Component) GetExtraProperties() map[string]interface{}
- func (c *Component) GetType() ComponentComponentType
- func (c *Component) GetWifiDetails() *DeviceComponentDetailsWiFiDetails
- func (c *Component) String() string
- func (c *Component) UnmarshalJSON(data []byte) error
- type ComponentComponentType
- type ConfirmationDecision
- type ConfirmationOptions
- func (c *ConfirmationOptions) GetAgreeButtonText() string
- func (c *ConfirmationOptions) GetBody() string
- func (c *ConfirmationOptions) GetDecision() *ConfirmationDecision
- func (c *ConfirmationOptions) GetDisagreeButtonText() *string
- func (c *ConfirmationOptions) GetExtraProperties() map[string]interface{}
- func (c *ConfirmationOptions) GetTitle() string
- func (c *ConfirmationOptions) String() string
- func (c *ConfirmationOptions) UnmarshalJSON(data []byte) error
- type Coordinates
- type Country
- type CreateBookingCustomAttributeDefinitionResponse
- func (c *CreateBookingCustomAttributeDefinitionResponse) GetCustomAttributeDefinition() *CustomAttributeDefinition
- func (c *CreateBookingCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (c *CreateBookingCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateBookingCustomAttributeDefinitionResponse) String() string
- func (c *CreateBookingCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type CreateBookingRequest
- type CreateBookingResponse
- type CreateBreakTypeResponse
- func (c *CreateBreakTypeResponse) GetBreakType() *BreakType
- func (c *CreateBreakTypeResponse) GetErrors() []*Error
- func (c *CreateBreakTypeResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateBreakTypeResponse) String() string
- func (c *CreateBreakTypeResponse) UnmarshalJSON(data []byte) error
- type CreateCardRequest
- type CreateCardResponse
- type CreateCatalogImageRequest
- func (c *CreateCatalogImageRequest) GetExtraProperties() map[string]interface{}
- func (c *CreateCatalogImageRequest) GetIdempotencyKey() string
- func (c *CreateCatalogImageRequest) GetImage() *CatalogObject
- func (c *CreateCatalogImageRequest) GetIsPrimary() *bool
- func (c *CreateCatalogImageRequest) GetObjectID() *string
- func (c *CreateCatalogImageRequest) String() string
- func (c *CreateCatalogImageRequest) UnmarshalJSON(data []byte) error
- type CreateCatalogImageResponse
- func (c *CreateCatalogImageResponse) GetErrors() []*Error
- func (c *CreateCatalogImageResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateCatalogImageResponse) GetImage() *CatalogObject
- func (c *CreateCatalogImageResponse) String() string
- func (c *CreateCatalogImageResponse) UnmarshalJSON(data []byte) error
- type CreateCheckoutRequest
- type CreateCheckoutResponse
- func (c *CreateCheckoutResponse) GetCheckout() *Checkout
- func (c *CreateCheckoutResponse) GetErrors() []*Error
- func (c *CreateCheckoutResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateCheckoutResponse) String() string
- func (c *CreateCheckoutResponse) UnmarshalJSON(data []byte) error
- type CreateCustomerCardResponse
- func (c *CreateCustomerCardResponse) GetCard() *Card
- func (c *CreateCustomerCardResponse) GetErrors() []*Error
- func (c *CreateCustomerCardResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateCustomerCardResponse) String() string
- func (c *CreateCustomerCardResponse) UnmarshalJSON(data []byte) error
- type CreateCustomerCustomAttributeDefinitionResponse
- func (c *CreateCustomerCustomAttributeDefinitionResponse) GetCustomAttributeDefinition() *CustomAttributeDefinition
- func (c *CreateCustomerCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (c *CreateCustomerCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateCustomerCustomAttributeDefinitionResponse) String() string
- func (c *CreateCustomerCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type CreateCustomerGroupResponse
- func (c *CreateCustomerGroupResponse) GetErrors() []*Error
- func (c *CreateCustomerGroupResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateCustomerGroupResponse) GetGroup() *CustomerGroup
- func (c *CreateCustomerGroupResponse) String() string
- func (c *CreateCustomerGroupResponse) UnmarshalJSON(data []byte) error
- type CreateCustomerRequest
- type CreateCustomerResponse
- func (c *CreateCustomerResponse) GetCustomer() *Customer
- func (c *CreateCustomerResponse) GetErrors() []*Error
- func (c *CreateCustomerResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateCustomerResponse) String() string
- func (c *CreateCustomerResponse) UnmarshalJSON(data []byte) error
- type CreateDeviceCodeResponse
- func (c *CreateDeviceCodeResponse) GetDeviceCode() *DeviceCode
- func (c *CreateDeviceCodeResponse) GetErrors() []*Error
- func (c *CreateDeviceCodeResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateDeviceCodeResponse) String() string
- func (c *CreateDeviceCodeResponse) UnmarshalJSON(data []byte) error
- type CreateDisputeEvidenceFileRequest
- func (c *CreateDisputeEvidenceFileRequest) GetContentType() *string
- func (c *CreateDisputeEvidenceFileRequest) GetEvidenceType() *DisputeEvidenceType
- func (c *CreateDisputeEvidenceFileRequest) GetExtraProperties() map[string]interface{}
- func (c *CreateDisputeEvidenceFileRequest) GetIdempotencyKey() string
- func (c *CreateDisputeEvidenceFileRequest) String() string
- func (c *CreateDisputeEvidenceFileRequest) UnmarshalJSON(data []byte) error
- type CreateDisputeEvidenceFileResponse
- func (c *CreateDisputeEvidenceFileResponse) GetErrors() []*Error
- func (c *CreateDisputeEvidenceFileResponse) GetEvidence() *DisputeEvidence
- func (c *CreateDisputeEvidenceFileResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateDisputeEvidenceFileResponse) String() string
- func (c *CreateDisputeEvidenceFileResponse) UnmarshalJSON(data []byte) error
- type CreateDisputeEvidenceTextRequest
- type CreateDisputeEvidenceTextResponse
- func (c *CreateDisputeEvidenceTextResponse) GetErrors() []*Error
- func (c *CreateDisputeEvidenceTextResponse) GetEvidence() *DisputeEvidence
- func (c *CreateDisputeEvidenceTextResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateDisputeEvidenceTextResponse) String() string
- func (c *CreateDisputeEvidenceTextResponse) UnmarshalJSON(data []byte) error
- type CreateEvidenceFileDisputesRequest
- type CreateGiftCardActivityResponse
- func (c *CreateGiftCardActivityResponse) GetErrors() []*Error
- func (c *CreateGiftCardActivityResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateGiftCardActivityResponse) GetGiftCardActivity() *GiftCardActivity
- func (c *CreateGiftCardActivityResponse) String() string
- func (c *CreateGiftCardActivityResponse) UnmarshalJSON(data []byte) error
- type CreateGiftCardRequest
- type CreateGiftCardResponse
- func (c *CreateGiftCardResponse) GetErrors() []*Error
- func (c *CreateGiftCardResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateGiftCardResponse) GetGiftCard() *GiftCard
- func (c *CreateGiftCardResponse) String() string
- func (c *CreateGiftCardResponse) UnmarshalJSON(data []byte) error
- type CreateInvoiceAttachmentRequest
- type CreateInvoiceAttachmentRequestData
- func (c *CreateInvoiceAttachmentRequestData) GetDescription() *string
- func (c *CreateInvoiceAttachmentRequestData) GetExtraProperties() map[string]interface{}
- func (c *CreateInvoiceAttachmentRequestData) GetIdempotencyKey() *string
- func (c *CreateInvoiceAttachmentRequestData) String() string
- func (c *CreateInvoiceAttachmentRequestData) UnmarshalJSON(data []byte) error
- type CreateInvoiceAttachmentResponse
- func (c *CreateInvoiceAttachmentResponse) GetAttachment() *InvoiceAttachment
- func (c *CreateInvoiceAttachmentResponse) GetErrors() []*Error
- func (c *CreateInvoiceAttachmentResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateInvoiceAttachmentResponse) String() string
- func (c *CreateInvoiceAttachmentResponse) UnmarshalJSON(data []byte) error
- type CreateInvoiceRequest
- type CreateInvoiceResponse
- type CreateJobRequest
- type CreateJobResponse
- type CreateLocationCustomAttributeDefinitionResponse
- func (c *CreateLocationCustomAttributeDefinitionResponse) GetCustomAttributeDefinition() *CustomAttributeDefinition
- func (c *CreateLocationCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (c *CreateLocationCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateLocationCustomAttributeDefinitionResponse) String() string
- func (c *CreateLocationCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type CreateLocationRequest
- type CreateLocationResponse
- func (c *CreateLocationResponse) GetErrors() []*Error
- func (c *CreateLocationResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateLocationResponse) GetLocation() *Location
- func (c *CreateLocationResponse) String() string
- func (c *CreateLocationResponse) UnmarshalJSON(data []byte) error
- type CreateLoyaltyAccountResponse
- func (c *CreateLoyaltyAccountResponse) GetErrors() []*Error
- func (c *CreateLoyaltyAccountResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateLoyaltyAccountResponse) GetLoyaltyAccount() *LoyaltyAccount
- func (c *CreateLoyaltyAccountResponse) String() string
- func (c *CreateLoyaltyAccountResponse) UnmarshalJSON(data []byte) error
- type CreateLoyaltyPromotionResponse
- func (c *CreateLoyaltyPromotionResponse) GetErrors() []*Error
- func (c *CreateLoyaltyPromotionResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateLoyaltyPromotionResponse) GetLoyaltyPromotion() *LoyaltyPromotion
- func (c *CreateLoyaltyPromotionResponse) String() string
- func (c *CreateLoyaltyPromotionResponse) UnmarshalJSON(data []byte) error
- type CreateLoyaltyRewardResponse
- func (c *CreateLoyaltyRewardResponse) GetErrors() []*Error
- func (c *CreateLoyaltyRewardResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateLoyaltyRewardResponse) GetReward() *LoyaltyReward
- func (c *CreateLoyaltyRewardResponse) String() string
- func (c *CreateLoyaltyRewardResponse) UnmarshalJSON(data []byte) error
- type CreateMerchantCustomAttributeDefinitionResponse
- func (c *CreateMerchantCustomAttributeDefinitionResponse) GetCustomAttributeDefinition() *CustomAttributeDefinition
- func (c *CreateMerchantCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (c *CreateMerchantCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateMerchantCustomAttributeDefinitionResponse) String() string
- func (c *CreateMerchantCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type CreateMobileAuthorizationCodeRequest
- type CreateMobileAuthorizationCodeResponse
- func (c *CreateMobileAuthorizationCodeResponse) GetAuthorizationCode() *string
- func (c *CreateMobileAuthorizationCodeResponse) GetErrors() []*Error
- func (c *CreateMobileAuthorizationCodeResponse) GetExpiresAt() *string
- func (c *CreateMobileAuthorizationCodeResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateMobileAuthorizationCodeResponse) String() string
- func (c *CreateMobileAuthorizationCodeResponse) UnmarshalJSON(data []byte) error
- type CreateOrderCustomAttributeDefinitionResponse
- func (c *CreateOrderCustomAttributeDefinitionResponse) GetCustomAttributeDefinition() *CustomAttributeDefinition
- func (c *CreateOrderCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (c *CreateOrderCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateOrderCustomAttributeDefinitionResponse) String() string
- func (c *CreateOrderCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type CreateOrderRequest
- type CreateOrderResponse
- type CreatePaymentLinkResponse
- func (c *CreatePaymentLinkResponse) GetErrors() []*Error
- func (c *CreatePaymentLinkResponse) GetExtraProperties() map[string]interface{}
- func (c *CreatePaymentLinkResponse) GetPaymentLink() *PaymentLink
- func (c *CreatePaymentLinkResponse) GetRelatedResources() *PaymentLinkRelatedResources
- func (c *CreatePaymentLinkResponse) String() string
- func (c *CreatePaymentLinkResponse) UnmarshalJSON(data []byte) error
- type CreatePaymentRequest
- type CreatePaymentResponse
- type CreateScheduledShiftRequest
- type CreateScheduledShiftResponse
- func (c *CreateScheduledShiftResponse) GetErrors() []*Error
- func (c *CreateScheduledShiftResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateScheduledShiftResponse) GetScheduledShift() *ScheduledShift
- func (c *CreateScheduledShiftResponse) String() string
- func (c *CreateScheduledShiftResponse) UnmarshalJSON(data []byte) error
- type CreateShiftResponse
- type CreateSubscriptionRequest
- type CreateSubscriptionResponse
- func (c *CreateSubscriptionResponse) GetErrors() []*Error
- func (c *CreateSubscriptionResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateSubscriptionResponse) GetSubscription() *Subscription
- func (c *CreateSubscriptionResponse) String() string
- func (c *CreateSubscriptionResponse) UnmarshalJSON(data []byte) error
- type CreateTeamMemberRequest
- func (c *CreateTeamMemberRequest) GetExtraProperties() map[string]interface{}
- func (c *CreateTeamMemberRequest) GetIdempotencyKey() *string
- func (c *CreateTeamMemberRequest) GetTeamMember() *TeamMember
- func (c *CreateTeamMemberRequest) String() string
- func (c *CreateTeamMemberRequest) UnmarshalJSON(data []byte) error
- type CreateTeamMemberResponse
- func (c *CreateTeamMemberResponse) GetErrors() []*Error
- func (c *CreateTeamMemberResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateTeamMemberResponse) GetTeamMember() *TeamMember
- func (c *CreateTeamMemberResponse) String() string
- func (c *CreateTeamMemberResponse) UnmarshalJSON(data []byte) error
- type CreateTerminalActionResponse
- func (c *CreateTerminalActionResponse) GetAction() *TerminalAction
- func (c *CreateTerminalActionResponse) GetErrors() []*Error
- func (c *CreateTerminalActionResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateTerminalActionResponse) String() string
- func (c *CreateTerminalActionResponse) UnmarshalJSON(data []byte) error
- type CreateTerminalCheckoutResponse
- func (c *CreateTerminalCheckoutResponse) GetCheckout() *TerminalCheckout
- func (c *CreateTerminalCheckoutResponse) GetErrors() []*Error
- func (c *CreateTerminalCheckoutResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateTerminalCheckoutResponse) String() string
- func (c *CreateTerminalCheckoutResponse) UnmarshalJSON(data []byte) error
- type CreateTerminalRefundResponse
- func (c *CreateTerminalRefundResponse) GetErrors() []*Error
- func (c *CreateTerminalRefundResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateTerminalRefundResponse) GetRefund() *TerminalRefund
- func (c *CreateTerminalRefundResponse) String() string
- func (c *CreateTerminalRefundResponse) UnmarshalJSON(data []byte) error
- type CreateTimecardRequest
- type CreateTimecardResponse
- func (c *CreateTimecardResponse) GetErrors() []*Error
- func (c *CreateTimecardResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateTimecardResponse) GetTimecard() *Timecard
- func (c *CreateTimecardResponse) String() string
- func (c *CreateTimecardResponse) UnmarshalJSON(data []byte) error
- type CreateVendorRequest
- type CreateVendorResponse
- type CreateWebhookSubscriptionResponse
- func (c *CreateWebhookSubscriptionResponse) GetErrors() []*Error
- func (c *CreateWebhookSubscriptionResponse) GetExtraProperties() map[string]interface{}
- func (c *CreateWebhookSubscriptionResponse) GetSubscription() *WebhookSubscription
- func (c *CreateWebhookSubscriptionResponse) String() string
- func (c *CreateWebhookSubscriptionResponse) UnmarshalJSON(data []byte) error
- type Currency
- type CustomAttribute
- func (c *CustomAttribute) GetCreatedAt() *string
- func (c *CustomAttribute) GetDefinition() *CustomAttributeDefinition
- func (c *CustomAttribute) GetExtraProperties() map[string]interface{}
- func (c *CustomAttribute) GetKey() *string
- func (c *CustomAttribute) GetUpdatedAt() *string
- func (c *CustomAttribute) GetValue() interface{}
- func (c *CustomAttribute) GetVersion() *int
- func (c *CustomAttribute) GetVisibility() *CustomAttributeDefinitionVisibility
- func (c *CustomAttribute) String() string
- func (c *CustomAttribute) UnmarshalJSON(data []byte) error
- type CustomAttributeDefinition
- func (c *CustomAttributeDefinition) GetCreatedAt() *string
- func (c *CustomAttributeDefinition) GetDescription() *string
- func (c *CustomAttributeDefinition) GetExtraProperties() map[string]interface{}
- func (c *CustomAttributeDefinition) GetKey() *string
- func (c *CustomAttributeDefinition) GetName() *string
- func (c *CustomAttributeDefinition) GetSchema() map[string]interface{}
- func (c *CustomAttributeDefinition) GetUpdatedAt() *string
- func (c *CustomAttributeDefinition) GetVersion() *int
- func (c *CustomAttributeDefinition) GetVisibility() *CustomAttributeDefinitionVisibility
- func (c *CustomAttributeDefinition) String() string
- func (c *CustomAttributeDefinition) UnmarshalJSON(data []byte) error
- type CustomAttributeDefinitionVisibility
- type CustomAttributeFilter
- func (c *CustomAttributeFilter) GetBoolFilter() *bool
- func (c *CustomAttributeFilter) GetCustomAttributeDefinitionID() *string
- func (c *CustomAttributeFilter) GetExtraProperties() map[string]interface{}
- func (c *CustomAttributeFilter) GetKey() *string
- func (c *CustomAttributeFilter) GetNumberFilter() *Range
- func (c *CustomAttributeFilter) GetSelectionUIDsFilter() []string
- func (c *CustomAttributeFilter) GetStringFilter() *string
- func (c *CustomAttributeFilter) String() string
- func (c *CustomAttributeFilter) UnmarshalJSON(data []byte) error
- type CustomField
- type Customer
- func (c *Customer) GetAddress() *Address
- func (c *Customer) GetBirthday() *string
- func (c *Customer) GetCompanyName() *string
- func (c *Customer) GetCreatedAt() *string
- func (c *Customer) GetCreationSource() *CustomerCreationSource
- func (c *Customer) GetEmailAddress() *string
- func (c *Customer) GetExtraProperties() map[string]interface{}
- func (c *Customer) GetFamilyName() *string
- func (c *Customer) GetGivenName() *string
- func (c *Customer) GetGroupIDs() []string
- func (c *Customer) GetID() *string
- func (c *Customer) GetNickname() *string
- func (c *Customer) GetNote() *string
- func (c *Customer) GetPhoneNumber() *string
- func (c *Customer) GetPreferences() *CustomerPreferences
- func (c *Customer) GetReferenceID() *string
- func (c *Customer) GetSegmentIDs() []string
- func (c *Customer) GetTaxIDs() *CustomerTaxIDs
- func (c *Customer) GetUpdatedAt() *string
- func (c *Customer) GetVersion() *int64
- func (c *Customer) String() string
- func (c *Customer) UnmarshalJSON(data []byte) error
- type CustomerAddressFilter
- func (c *CustomerAddressFilter) GetCountry() *Country
- func (c *CustomerAddressFilter) GetExtraProperties() map[string]interface{}
- func (c *CustomerAddressFilter) GetPostalCode() *CustomerTextFilter
- func (c *CustomerAddressFilter) String() string
- func (c *CustomerAddressFilter) UnmarshalJSON(data []byte) error
- type CustomerCreationSource
- type CustomerCreationSourceFilter
- func (c *CustomerCreationSourceFilter) GetExtraProperties() map[string]interface{}
- func (c *CustomerCreationSourceFilter) GetRule() *CustomerInclusionExclusion
- func (c *CustomerCreationSourceFilter) GetValues() []CustomerCreationSource
- func (c *CustomerCreationSourceFilter) String() string
- func (c *CustomerCreationSourceFilter) UnmarshalJSON(data []byte) error
- type CustomerCustomAttributeFilter
- func (c *CustomerCustomAttributeFilter) GetExtraProperties() map[string]interface{}
- func (c *CustomerCustomAttributeFilter) GetFilter() *CustomerCustomAttributeFilterValue
- func (c *CustomerCustomAttributeFilter) GetKey() string
- func (c *CustomerCustomAttributeFilter) GetUpdatedAt() *TimeRange
- func (c *CustomerCustomAttributeFilter) String() string
- func (c *CustomerCustomAttributeFilter) UnmarshalJSON(data []byte) error
- type CustomerCustomAttributeFilterValue
- func (c *CustomerCustomAttributeFilterValue) GetAddress() *CustomerAddressFilter
- func (c *CustomerCustomAttributeFilterValue) GetBoolean() *bool
- func (c *CustomerCustomAttributeFilterValue) GetDate() *TimeRange
- func (c *CustomerCustomAttributeFilterValue) GetEmail() *CustomerTextFilter
- func (c *CustomerCustomAttributeFilterValue) GetExtraProperties() map[string]interface{}
- func (c *CustomerCustomAttributeFilterValue) GetNumber() *FloatNumberRange
- func (c *CustomerCustomAttributeFilterValue) GetPhone() *CustomerTextFilter
- func (c *CustomerCustomAttributeFilterValue) GetSelection() *FilterValue
- func (c *CustomerCustomAttributeFilterValue) GetText() *CustomerTextFilter
- func (c *CustomerCustomAttributeFilterValue) String() string
- func (c *CustomerCustomAttributeFilterValue) UnmarshalJSON(data []byte) error
- type CustomerCustomAttributeFilters
- func (c *CustomerCustomAttributeFilters) GetExtraProperties() map[string]interface{}
- func (c *CustomerCustomAttributeFilters) GetFilters() []*CustomerCustomAttributeFilter
- func (c *CustomerCustomAttributeFilters) String() string
- func (c *CustomerCustomAttributeFilters) UnmarshalJSON(data []byte) error
- type CustomerDetails
- type CustomerFilter
- func (c *CustomerFilter) GetCreatedAt() *TimeRange
- func (c *CustomerFilter) GetCreationSource() *CustomerCreationSourceFilter
- func (c *CustomerFilter) GetCustomAttribute() *CustomerCustomAttributeFilters
- func (c *CustomerFilter) GetEmailAddress() *CustomerTextFilter
- func (c *CustomerFilter) GetExtraProperties() map[string]interface{}
- func (c *CustomerFilter) GetGroupIDs() *FilterValue
- func (c *CustomerFilter) GetPhoneNumber() *CustomerTextFilter
- func (c *CustomerFilter) GetReferenceID() *CustomerTextFilter
- func (c *CustomerFilter) GetSegmentIDs() *FilterValue
- func (c *CustomerFilter) GetUpdatedAt() *TimeRange
- func (c *CustomerFilter) String() string
- func (c *CustomerFilter) UnmarshalJSON(data []byte) error
- type CustomerGroup
- func (c *CustomerGroup) GetCreatedAt() *string
- func (c *CustomerGroup) GetExtraProperties() map[string]interface{}
- func (c *CustomerGroup) GetID() *string
- func (c *CustomerGroup) GetName() string
- func (c *CustomerGroup) GetUpdatedAt() *string
- func (c *CustomerGroup) String() string
- func (c *CustomerGroup) UnmarshalJSON(data []byte) error
- type CustomerInclusionExclusion
- type CustomerPreferences
- type CustomerQuery
- type CustomerSegment
- func (c *CustomerSegment) GetCreatedAt() *string
- func (c *CustomerSegment) GetExtraProperties() map[string]interface{}
- func (c *CustomerSegment) GetID() *string
- func (c *CustomerSegment) GetName() string
- func (c *CustomerSegment) GetUpdatedAt() *string
- func (c *CustomerSegment) String() string
- func (c *CustomerSegment) UnmarshalJSON(data []byte) error
- type CustomerSort
- type CustomerSortField
- type CustomerTaxIDs
- type CustomerTextFilter
- type CustomersDeleteRequest
- type CustomersGetRequest
- type CustomersListRequest
- type DataCollectionOptions
- func (d *DataCollectionOptions) GetBody() string
- func (d *DataCollectionOptions) GetCollectedData() *CollectedData
- func (d *DataCollectionOptions) GetExtraProperties() map[string]interface{}
- func (d *DataCollectionOptions) GetInputType() DataCollectionOptionsInputType
- func (d *DataCollectionOptions) GetTitle() string
- func (d *DataCollectionOptions) String() string
- func (d *DataCollectionOptions) UnmarshalJSON(data []byte) error
- type DataCollectionOptionsInputType
- type DateRange
- type DayOfWeek
- type DeleteActionSubscriptionsRequest
- type DeleteBookingCustomAttributeDefinitionResponse
- func (d *DeleteBookingCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (d *DeleteBookingCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (d *DeleteBookingCustomAttributeDefinitionResponse) String() string
- func (d *DeleteBookingCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type DeleteBookingCustomAttributeResponse
- func (d *DeleteBookingCustomAttributeResponse) GetErrors() []*Error
- func (d *DeleteBookingCustomAttributeResponse) GetExtraProperties() map[string]interface{}
- func (d *DeleteBookingCustomAttributeResponse) String() string
- func (d *DeleteBookingCustomAttributeResponse) UnmarshalJSON(data []byte) error
- type DeleteBreakTypeResponse
- type DeleteCatalogObjectResponse
- func (d *DeleteCatalogObjectResponse) GetDeletedAt() *string
- func (d *DeleteCatalogObjectResponse) GetDeletedObjectIDs() []string
- func (d *DeleteCatalogObjectResponse) GetErrors() []*Error
- func (d *DeleteCatalogObjectResponse) GetExtraProperties() map[string]interface{}
- func (d *DeleteCatalogObjectResponse) String() string
- func (d *DeleteCatalogObjectResponse) UnmarshalJSON(data []byte) error
- type DeleteCustomerCardResponse
- type DeleteCustomerCustomAttributeDefinitionResponse
- func (d *DeleteCustomerCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (d *DeleteCustomerCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (d *DeleteCustomerCustomAttributeDefinitionResponse) String() string
- func (d *DeleteCustomerCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type DeleteCustomerCustomAttributeResponse
- func (d *DeleteCustomerCustomAttributeResponse) GetErrors() []*Error
- func (d *DeleteCustomerCustomAttributeResponse) GetExtraProperties() map[string]interface{}
- func (d *DeleteCustomerCustomAttributeResponse) String() string
- func (d *DeleteCustomerCustomAttributeResponse) UnmarshalJSON(data []byte) error
- type DeleteCustomerGroupResponse
- type DeleteCustomerResponse
- type DeleteCustomersRequest
- type DeleteDisputeEvidenceResponse
- type DeleteInvoiceAttachmentRequest
- type DeleteInvoiceAttachmentResponse
- type DeleteInvoiceResponse
- type DeleteInvoicesRequest
- type DeleteLocationCustomAttributeDefinitionResponse
- func (d *DeleteLocationCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (d *DeleteLocationCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (d *DeleteLocationCustomAttributeDefinitionResponse) String() string
- func (d *DeleteLocationCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type DeleteLocationCustomAttributeResponse
- func (d *DeleteLocationCustomAttributeResponse) GetErrors() []*Error
- func (d *DeleteLocationCustomAttributeResponse) GetExtraProperties() map[string]interface{}
- func (d *DeleteLocationCustomAttributeResponse) String() string
- func (d *DeleteLocationCustomAttributeResponse) UnmarshalJSON(data []byte) error
- type DeleteLoyaltyRewardResponse
- type DeleteMerchantCustomAttributeDefinitionResponse
- func (d *DeleteMerchantCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (d *DeleteMerchantCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (d *DeleteMerchantCustomAttributeDefinitionResponse) String() string
- func (d *DeleteMerchantCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type DeleteMerchantCustomAttributeResponse
- func (d *DeleteMerchantCustomAttributeResponse) GetErrors() []*Error
- func (d *DeleteMerchantCustomAttributeResponse) GetExtraProperties() map[string]interface{}
- func (d *DeleteMerchantCustomAttributeResponse) String() string
- func (d *DeleteMerchantCustomAttributeResponse) UnmarshalJSON(data []byte) error
- type DeleteOrderCustomAttributeDefinitionResponse
- func (d *DeleteOrderCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (d *DeleteOrderCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (d *DeleteOrderCustomAttributeDefinitionResponse) String() string
- func (d *DeleteOrderCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type DeleteOrderCustomAttributeResponse
- type DeletePaymentLinkResponse
- func (d *DeletePaymentLinkResponse) GetCancelledOrderID() *string
- func (d *DeletePaymentLinkResponse) GetErrors() []*Error
- func (d *DeletePaymentLinkResponse) GetExtraProperties() map[string]interface{}
- func (d *DeletePaymentLinkResponse) GetID() *string
- func (d *DeletePaymentLinkResponse) String() string
- func (d *DeletePaymentLinkResponse) UnmarshalJSON(data []byte) error
- type DeleteShiftResponse
- type DeleteSnippetResponse
- type DeleteSnippetsRequest
- type DeleteSubscriptionActionResponse
- func (d *DeleteSubscriptionActionResponse) GetErrors() []*Error
- func (d *DeleteSubscriptionActionResponse) GetExtraProperties() map[string]interface{}
- func (d *DeleteSubscriptionActionResponse) GetSubscription() *Subscription
- func (d *DeleteSubscriptionActionResponse) String() string
- func (d *DeleteSubscriptionActionResponse) UnmarshalJSON(data []byte) error
- type DeleteTimecardRequest
- type DeleteTimecardResponse
- type DeleteWebhookSubscriptionResponse
- type DeprecatedGetAdjustmentInventoryRequest
- type DeprecatedGetPhysicalCountInventoryRequest
- type Destination
- type DestinationDetails
- func (d *DestinationDetails) GetCardDetails() *DestinationDetailsCardRefundDetails
- func (d *DestinationDetails) GetCashDetails() *DestinationDetailsCashRefundDetails
- func (d *DestinationDetails) GetExternalDetails() *DestinationDetailsExternalRefundDetails
- func (d *DestinationDetails) GetExtraProperties() map[string]interface{}
- func (d *DestinationDetails) String() string
- func (d *DestinationDetails) UnmarshalJSON(data []byte) error
- type DestinationDetailsCardRefundDetails
- func (d *DestinationDetailsCardRefundDetails) GetAuthResultCode() *string
- func (d *DestinationDetailsCardRefundDetails) GetCard() *Card
- func (d *DestinationDetailsCardRefundDetails) GetEntryMethod() *string
- func (d *DestinationDetailsCardRefundDetails) GetExtraProperties() map[string]interface{}
- func (d *DestinationDetailsCardRefundDetails) String() string
- func (d *DestinationDetailsCardRefundDetails) UnmarshalJSON(data []byte) error
- type DestinationDetailsCashRefundDetails
- func (d *DestinationDetailsCashRefundDetails) GetChangeBackMoney() *Money
- func (d *DestinationDetailsCashRefundDetails) GetExtraProperties() map[string]interface{}
- func (d *DestinationDetailsCashRefundDetails) GetSellerSuppliedMoney() *Money
- func (d *DestinationDetailsCashRefundDetails) String() string
- func (d *DestinationDetailsCashRefundDetails) UnmarshalJSON(data []byte) error
- type DestinationDetailsExternalRefundDetails
- func (d *DestinationDetailsExternalRefundDetails) GetExtraProperties() map[string]interface{}
- func (d *DestinationDetailsExternalRefundDetails) GetSource() string
- func (d *DestinationDetailsExternalRefundDetails) GetSourceID() *string
- func (d *DestinationDetailsExternalRefundDetails) GetType() string
- func (d *DestinationDetailsExternalRefundDetails) String() string
- func (d *DestinationDetailsExternalRefundDetails) UnmarshalJSON(data []byte) error
- type DestinationType
- type Device
- func (d *Device) GetAttributes() *DeviceAttributes
- func (d *Device) GetComponents() []*Component
- func (d *Device) GetExtraProperties() map[string]interface{}
- func (d *Device) GetID() *string
- func (d *Device) GetStatus() *DeviceStatus
- func (d *Device) String() string
- func (d *Device) UnmarshalJSON(data []byte) error
- type DeviceAttributes
- func (d *DeviceAttributes) GetExtraProperties() map[string]interface{}
- func (d *DeviceAttributes) GetManufacturer() string
- func (d *DeviceAttributes) GetManufacturersID() *string
- func (d *DeviceAttributes) GetMerchantToken() *string
- func (d *DeviceAttributes) GetModel() *string
- func (d *DeviceAttributes) GetName() *string
- func (d *DeviceAttributes) GetUpdatedAt() *string
- func (d *DeviceAttributes) GetVersion() *string
- func (d *DeviceAttributes) String() string
- func (d *DeviceAttributes) UnmarshalJSON(data []byte) error
- type DeviceAttributesDeviceType
- type DeviceCheckoutOptions
- func (d *DeviceCheckoutOptions) GetCollectSignature() *bool
- func (d *DeviceCheckoutOptions) GetDeviceID() string
- func (d *DeviceCheckoutOptions) GetExtraProperties() map[string]interface{}
- func (d *DeviceCheckoutOptions) GetShowItemizedCart() *bool
- func (d *DeviceCheckoutOptions) GetSkipReceiptScreen() *bool
- func (d *DeviceCheckoutOptions) GetTipSettings() *TipSettings
- func (d *DeviceCheckoutOptions) String() string
- func (d *DeviceCheckoutOptions) UnmarshalJSON(data []byte) error
- type DeviceCode
- func (d *DeviceCode) GetCode() *string
- func (d *DeviceCode) GetCreatedAt() *string
- func (d *DeviceCode) GetDeviceID() *string
- func (d *DeviceCode) GetExtraProperties() map[string]interface{}
- func (d *DeviceCode) GetID() *string
- func (d *DeviceCode) GetLocationID() *string
- func (d *DeviceCode) GetName() *string
- func (d *DeviceCode) GetPairBy() *string
- func (d *DeviceCode) GetPairedAt() *string
- func (d *DeviceCode) GetStatus() *DeviceCodeStatus
- func (d *DeviceCode) GetStatusChangedAt() *string
- func (d *DeviceCode) String() string
- func (d *DeviceCode) UnmarshalJSON(data []byte) error
- type DeviceCodeStatus
- type DeviceComponentDetailsApplicationDetails
- func (d *DeviceComponentDetailsApplicationDetails) GetDeviceCodeID() *string
- func (d *DeviceComponentDetailsApplicationDetails) GetExtraProperties() map[string]interface{}
- func (d *DeviceComponentDetailsApplicationDetails) GetSessionLocation() *string
- func (d *DeviceComponentDetailsApplicationDetails) GetVersion() *string
- func (d *DeviceComponentDetailsApplicationDetails) String() string
- func (d *DeviceComponentDetailsApplicationDetails) UnmarshalJSON(data []byte) error
- type DeviceComponentDetailsBatteryDetails
- func (d *DeviceComponentDetailsBatteryDetails) GetExternalPower() *DeviceComponentDetailsExternalPower
- func (d *DeviceComponentDetailsBatteryDetails) GetExtraProperties() map[string]interface{}
- func (d *DeviceComponentDetailsBatteryDetails) GetVisiblePercent() *int
- func (d *DeviceComponentDetailsBatteryDetails) String() string
- func (d *DeviceComponentDetailsBatteryDetails) UnmarshalJSON(data []byte) error
- type DeviceComponentDetailsCardReaderDetails
- func (d *DeviceComponentDetailsCardReaderDetails) GetExtraProperties() map[string]interface{}
- func (d *DeviceComponentDetailsCardReaderDetails) GetVersion() *string
- func (d *DeviceComponentDetailsCardReaderDetails) String() string
- func (d *DeviceComponentDetailsCardReaderDetails) UnmarshalJSON(data []byte) error
- type DeviceComponentDetailsEthernetDetails
- func (d *DeviceComponentDetailsEthernetDetails) GetActive() *bool
- func (d *DeviceComponentDetailsEthernetDetails) GetExtraProperties() map[string]interface{}
- func (d *DeviceComponentDetailsEthernetDetails) GetIPAddressV4() *string
- func (d *DeviceComponentDetailsEthernetDetails) String() string
- func (d *DeviceComponentDetailsEthernetDetails) UnmarshalJSON(data []byte) error
- type DeviceComponentDetailsExternalPower
- type DeviceComponentDetailsMeasurement
- type DeviceComponentDetailsWiFiDetails
- func (d *DeviceComponentDetailsWiFiDetails) GetActive() *bool
- func (d *DeviceComponentDetailsWiFiDetails) GetExtraProperties() map[string]interface{}
- func (d *DeviceComponentDetailsWiFiDetails) GetIPAddressV4() *string
- func (d *DeviceComponentDetailsWiFiDetails) GetSecureConnection() *string
- func (d *DeviceComponentDetailsWiFiDetails) GetSignalStrength() *DeviceComponentDetailsMeasurement
- func (d *DeviceComponentDetailsWiFiDetails) GetSsid() *string
- func (d *DeviceComponentDetailsWiFiDetails) String() string
- func (d *DeviceComponentDetailsWiFiDetails) UnmarshalJSON(data []byte) error
- type DeviceDetails
- func (d *DeviceDetails) GetDeviceID() *string
- func (d *DeviceDetails) GetDeviceInstallationID() *string
- func (d *DeviceDetails) GetDeviceName() *string
- func (d *DeviceDetails) GetExtraProperties() map[string]interface{}
- func (d *DeviceDetails) String() string
- func (d *DeviceDetails) UnmarshalJSON(data []byte) error
- type DeviceMetadata
- func (d *DeviceMetadata) GetAppVersion() *string
- func (d *DeviceMetadata) GetBatteryPercentage() *string
- func (d *DeviceMetadata) GetChargingState() *string
- func (d *DeviceMetadata) GetExtraProperties() map[string]interface{}
- func (d *DeviceMetadata) GetIPAddress() *string
- func (d *DeviceMetadata) GetLocationID() *string
- func (d *DeviceMetadata) GetMerchantID() *string
- func (d *DeviceMetadata) GetNetworkConnectionType() *string
- func (d *DeviceMetadata) GetOsVersion() *string
- func (d *DeviceMetadata) GetPaymentRegion() *string
- func (d *DeviceMetadata) GetSerialNumber() *string
- func (d *DeviceMetadata) GetWifiNetworkName() *string
- func (d *DeviceMetadata) GetWifiNetworkStrength() *string
- func (d *DeviceMetadata) String() string
- func (d *DeviceMetadata) UnmarshalJSON(data []byte) error
- type DeviceStatus
- type DeviceStatusCategory
- type DevicesGetRequest
- type DevicesListRequest
- type DigitalWalletDetails
- func (d *DigitalWalletDetails) GetBrand() *string
- func (d *DigitalWalletDetails) GetCashAppDetails() *CashAppDetails
- func (d *DigitalWalletDetails) GetExtraProperties() map[string]interface{}
- func (d *DigitalWalletDetails) GetStatus() *string
- func (d *DigitalWalletDetails) String() string
- func (d *DigitalWalletDetails) UnmarshalJSON(data []byte) error
- type DisableCardResponse
- type DisableCardsRequest
- type DisableEventsResponse
- type DismissTerminalActionRequest
- type DismissTerminalActionResponse
- func (d *DismissTerminalActionResponse) GetAction() *TerminalAction
- func (d *DismissTerminalActionResponse) GetErrors() []*Error
- func (d *DismissTerminalActionResponse) GetExtraProperties() map[string]interface{}
- func (d *DismissTerminalActionResponse) String() string
- func (d *DismissTerminalActionResponse) UnmarshalJSON(data []byte) error
- type DismissTerminalCheckoutRequest
- type DismissTerminalCheckoutResponse
- func (d *DismissTerminalCheckoutResponse) GetCheckout() *TerminalCheckout
- func (d *DismissTerminalCheckoutResponse) GetErrors() []*Error
- func (d *DismissTerminalCheckoutResponse) GetExtraProperties() map[string]interface{}
- func (d *DismissTerminalCheckoutResponse) String() string
- func (d *DismissTerminalCheckoutResponse) UnmarshalJSON(data []byte) error
- type DismissTerminalRefundRequest
- type DismissTerminalRefundResponse
- func (d *DismissTerminalRefundResponse) GetErrors() []*Error
- func (d *DismissTerminalRefundResponse) GetExtraProperties() map[string]interface{}
- func (d *DismissTerminalRefundResponse) GetRefund() *TerminalRefund
- func (d *DismissTerminalRefundResponse) String() string
- func (d *DismissTerminalRefundResponse) UnmarshalJSON(data []byte) error
- type Dispute
- func (d *Dispute) GetAmountMoney() *Money
- func (d *Dispute) GetBrandDisputeID() *string
- func (d *Dispute) GetCardBrand() *CardBrand
- func (d *Dispute) GetCreatedAt() *string
- func (d *Dispute) GetDisputeID() *string
- func (d *Dispute) GetDisputedPayment() *DisputedPayment
- func (d *Dispute) GetDueAt() *string
- func (d *Dispute) GetEvidenceIDs() []string
- func (d *Dispute) GetExtraProperties() map[string]interface{}
- func (d *Dispute) GetID() *string
- func (d *Dispute) GetLocationID() *string
- func (d *Dispute) GetReason() *DisputeReason
- func (d *Dispute) GetReportedAt() *string
- func (d *Dispute) GetReportedDate() *string
- func (d *Dispute) GetState() *DisputeState
- func (d *Dispute) GetUpdatedAt() *string
- func (d *Dispute) GetVersion() *int
- func (d *Dispute) String() string
- func (d *Dispute) UnmarshalJSON(data []byte) error
- type DisputeEvidence
- func (d *DisputeEvidence) GetDisputeID() *string
- func (d *DisputeEvidence) GetEvidenceFile() *DisputeEvidenceFile
- func (d *DisputeEvidence) GetEvidenceID() *string
- func (d *DisputeEvidence) GetEvidenceText() *string
- func (d *DisputeEvidence) GetEvidenceType() *DisputeEvidenceType
- func (d *DisputeEvidence) GetExtraProperties() map[string]interface{}
- func (d *DisputeEvidence) GetID() *string
- func (d *DisputeEvidence) GetUploadedAt() *string
- func (d *DisputeEvidence) String() string
- func (d *DisputeEvidence) UnmarshalJSON(data []byte) error
- type DisputeEvidenceFile
- type DisputeEvidenceType
- type DisputeReason
- type DisputeState
- type DisputedPayment
- type DisputesAcceptRequest
- type DisputesCreateEvidenceFileRequest
- type DisputesGetRequest
- type DisputesListRequest
- type DisputesSubmitEvidenceRequest
- type Employee
- func (e *Employee) GetCreatedAt() *string
- func (e *Employee) GetEmail() *string
- func (e *Employee) GetExtraProperties() map[string]interface{}
- func (e *Employee) GetFirstName() *string
- func (e *Employee) GetID() *string
- func (e *Employee) GetIsOwner() *bool
- func (e *Employee) GetLastName() *string
- func (e *Employee) GetLocationIDs() []string
- func (e *Employee) GetPhoneNumber() *string
- func (e *Employee) GetStatus() *EmployeeStatus
- func (e *Employee) GetUpdatedAt() *string
- func (e *Employee) String() string
- func (e *Employee) UnmarshalJSON(data []byte) error
- type EmployeeStatus
- type EmployeeWage
- func (e *EmployeeWage) GetEmployeeID() *string
- func (e *EmployeeWage) GetExtraProperties() map[string]interface{}
- func (e *EmployeeWage) GetHourlyRate() *Money
- func (e *EmployeeWage) GetID() *string
- func (e *EmployeeWage) GetTitle() *string
- func (e *EmployeeWage) String() string
- func (e *EmployeeWage) UnmarshalJSON(data []byte) error
- type EmployeesGetRequest
- type EmployeesListRequest
- type EnableEventsResponse
- type Error
- type ErrorCategory
- type ErrorCode
- type Event
- func (e *Event) GetCreatedAt() *string
- func (e *Event) GetData() *EventData
- func (e *Event) GetEventID() *string
- func (e *Event) GetExtraProperties() map[string]interface{}
- func (e *Event) GetLocationID() *string
- func (e *Event) GetMerchantID() *string
- func (e *Event) GetType() *string
- func (e *Event) String() string
- func (e *Event) UnmarshalJSON(data []byte) error
- type EventData
- func (e *EventData) GetDeleted() *bool
- func (e *EventData) GetExtraProperties() map[string]interface{}
- func (e *EventData) GetID() *string
- func (e *EventData) GetObject() map[string]interface{}
- func (e *EventData) GetType() *string
- func (e *EventData) String() string
- func (e *EventData) UnmarshalJSON(data []byte) error
- type EventMetadata
- type EventTypeMetadata
- func (e *EventTypeMetadata) GetAPIVersionIntroduced() *string
- func (e *EventTypeMetadata) GetEventType() *string
- func (e *EventTypeMetadata) GetExtraProperties() map[string]interface{}
- func (e *EventTypeMetadata) GetReleaseStatus() *string
- func (e *EventTypeMetadata) String() string
- func (e *EventTypeMetadata) UnmarshalJSON(data []byte) error
- type ExcludeStrategy
- type ExternalPaymentDetails
- func (e *ExternalPaymentDetails) GetExtraProperties() map[string]interface{}
- func (e *ExternalPaymentDetails) GetSource() string
- func (e *ExternalPaymentDetails) GetSourceFeeMoney() *Money
- func (e *ExternalPaymentDetails) GetSourceID() *string
- func (e *ExternalPaymentDetails) GetType() string
- func (e *ExternalPaymentDetails) String() string
- func (e *ExternalPaymentDetails) UnmarshalJSON(data []byte) error
- type FileParam
- type FileParamOption
- type FilterValue
- type FloatNumberRange
- type Fulfillment
- func (f *Fulfillment) GetDeliveryDetails() *FulfillmentDeliveryDetails
- func (f *Fulfillment) GetEntries() []*FulfillmentFulfillmentEntry
- func (f *Fulfillment) GetExtraProperties() map[string]interface{}
- func (f *Fulfillment) GetLineItemApplication() *FulfillmentFulfillmentLineItemApplication
- func (f *Fulfillment) GetMetadata() map[string]*string
- func (f *Fulfillment) GetPickupDetails() *FulfillmentPickupDetails
- func (f *Fulfillment) GetShipmentDetails() *FulfillmentShipmentDetails
- func (f *Fulfillment) GetState() *FulfillmentState
- func (f *Fulfillment) GetType() *FulfillmentType
- func (f *Fulfillment) GetUID() *string
- func (f *Fulfillment) String() string
- func (f *Fulfillment) UnmarshalJSON(data []byte) error
- type FulfillmentDeliveryDetails
- func (f *FulfillmentDeliveryDetails) GetCancelReason() *string
- func (f *FulfillmentDeliveryDetails) GetCanceledAt() *string
- func (f *FulfillmentDeliveryDetails) GetCompletedAt() *string
- func (f *FulfillmentDeliveryDetails) GetCourierPickupAt() *string
- func (f *FulfillmentDeliveryDetails) GetCourierPickupWindowDuration() *string
- func (f *FulfillmentDeliveryDetails) GetCourierProviderName() *string
- func (f *FulfillmentDeliveryDetails) GetCourierSupportPhoneNumber() *string
- func (f *FulfillmentDeliveryDetails) GetDeliverAt() *string
- func (f *FulfillmentDeliveryDetails) GetDeliveredAt() *string
- func (f *FulfillmentDeliveryDetails) GetDeliveryWindowDuration() *string
- func (f *FulfillmentDeliveryDetails) GetDropoffNotes() *string
- func (f *FulfillmentDeliveryDetails) GetExternalDeliveryID() *string
- func (f *FulfillmentDeliveryDetails) GetExtraProperties() map[string]interface{}
- func (f *FulfillmentDeliveryDetails) GetInProgressAt() *string
- func (f *FulfillmentDeliveryDetails) GetIsNoContactDelivery() *bool
- func (f *FulfillmentDeliveryDetails) GetManagedDelivery() *bool
- func (f *FulfillmentDeliveryDetails) GetNote() *string
- func (f *FulfillmentDeliveryDetails) GetPlacedAt() *string
- func (f *FulfillmentDeliveryDetails) GetPrepTimeDuration() *string
- func (f *FulfillmentDeliveryDetails) GetReadyAt() *string
- func (f *FulfillmentDeliveryDetails) GetRecipient() *FulfillmentRecipient
- func (f *FulfillmentDeliveryDetails) GetRejectedAt() *string
- func (f *FulfillmentDeliveryDetails) GetScheduleType() *FulfillmentDeliveryDetailsOrderFulfillmentDeliveryDetailsScheduleType
- func (f *FulfillmentDeliveryDetails) GetSquareDeliveryID() *string
- func (f *FulfillmentDeliveryDetails) String() string
- func (f *FulfillmentDeliveryDetails) UnmarshalJSON(data []byte) error
- type FulfillmentDeliveryDetailsOrderFulfillmentDeliveryDetailsScheduleType
- type FulfillmentFulfillmentEntry
- func (f *FulfillmentFulfillmentEntry) GetExtraProperties() map[string]interface{}
- func (f *FulfillmentFulfillmentEntry) GetLineItemUID() string
- func (f *FulfillmentFulfillmentEntry) GetMetadata() map[string]*string
- func (f *FulfillmentFulfillmentEntry) GetQuantity() string
- func (f *FulfillmentFulfillmentEntry) GetUID() *string
- func (f *FulfillmentFulfillmentEntry) String() string
- func (f *FulfillmentFulfillmentEntry) UnmarshalJSON(data []byte) error
- type FulfillmentFulfillmentLineItemApplication
- type FulfillmentPickupDetails
- func (f *FulfillmentPickupDetails) GetAcceptedAt() *string
- func (f *FulfillmentPickupDetails) GetAutoCompleteDuration() *string
- func (f *FulfillmentPickupDetails) GetCancelReason() *string
- func (f *FulfillmentPickupDetails) GetCanceledAt() *string
- func (f *FulfillmentPickupDetails) GetCurbsidePickupDetails() *FulfillmentPickupDetailsCurbsidePickupDetails
- func (f *FulfillmentPickupDetails) GetExpiredAt() *string
- func (f *FulfillmentPickupDetails) GetExpiresAt() *string
- func (f *FulfillmentPickupDetails) GetExtraProperties() map[string]interface{}
- func (f *FulfillmentPickupDetails) GetIsCurbsidePickup() *bool
- func (f *FulfillmentPickupDetails) GetNote() *string
- func (f *FulfillmentPickupDetails) GetPickedUpAt() *string
- func (f *FulfillmentPickupDetails) GetPickupAt() *string
- func (f *FulfillmentPickupDetails) GetPickupWindowDuration() *string
- func (f *FulfillmentPickupDetails) GetPlacedAt() *string
- func (f *FulfillmentPickupDetails) GetPrepTimeDuration() *string
- func (f *FulfillmentPickupDetails) GetReadyAt() *string
- func (f *FulfillmentPickupDetails) GetRecipient() *FulfillmentRecipient
- func (f *FulfillmentPickupDetails) GetRejectedAt() *string
- func (f *FulfillmentPickupDetails) GetScheduleType() *FulfillmentPickupDetailsScheduleType
- func (f *FulfillmentPickupDetails) String() string
- func (f *FulfillmentPickupDetails) UnmarshalJSON(data []byte) error
- type FulfillmentPickupDetailsCurbsidePickupDetails
- func (f *FulfillmentPickupDetailsCurbsidePickupDetails) GetBuyerArrivedAt() *string
- func (f *FulfillmentPickupDetailsCurbsidePickupDetails) GetCurbsideDetails() *string
- func (f *FulfillmentPickupDetailsCurbsidePickupDetails) GetExtraProperties() map[string]interface{}
- func (f *FulfillmentPickupDetailsCurbsidePickupDetails) String() string
- func (f *FulfillmentPickupDetailsCurbsidePickupDetails) UnmarshalJSON(data []byte) error
- type FulfillmentPickupDetailsScheduleType
- type FulfillmentRecipient
- func (f *FulfillmentRecipient) GetAddress() *Address
- func (f *FulfillmentRecipient) GetCustomerID() *string
- func (f *FulfillmentRecipient) GetDisplayName() *string
- func (f *FulfillmentRecipient) GetEmailAddress() *string
- func (f *FulfillmentRecipient) GetExtraProperties() map[string]interface{}
- func (f *FulfillmentRecipient) GetPhoneNumber() *string
- func (f *FulfillmentRecipient) String() string
- func (f *FulfillmentRecipient) UnmarshalJSON(data []byte) error
- type FulfillmentShipmentDetails
- func (f *FulfillmentShipmentDetails) GetCancelReason() *string
- func (f *FulfillmentShipmentDetails) GetCanceledAt() *string
- func (f *FulfillmentShipmentDetails) GetCarrier() *string
- func (f *FulfillmentShipmentDetails) GetExpectedShippedAt() *string
- func (f *FulfillmentShipmentDetails) GetExtraProperties() map[string]interface{}
- func (f *FulfillmentShipmentDetails) GetFailedAt() *string
- func (f *FulfillmentShipmentDetails) GetFailureReason() *string
- func (f *FulfillmentShipmentDetails) GetInProgressAt() *string
- func (f *FulfillmentShipmentDetails) GetPackagedAt() *string
- func (f *FulfillmentShipmentDetails) GetPlacedAt() *string
- func (f *FulfillmentShipmentDetails) GetRecipient() *FulfillmentRecipient
- func (f *FulfillmentShipmentDetails) GetShippedAt() *string
- func (f *FulfillmentShipmentDetails) GetShippingNote() *string
- func (f *FulfillmentShipmentDetails) GetShippingType() *string
- func (f *FulfillmentShipmentDetails) GetTrackingNumber() *string
- func (f *FulfillmentShipmentDetails) GetTrackingURL() *string
- func (f *FulfillmentShipmentDetails) String() string
- func (f *FulfillmentShipmentDetails) UnmarshalJSON(data []byte) error
- type FulfillmentState
- type FulfillmentType
- type GetAdjustmentInventoryRequest
- type GetBankAccountByV1IDResponse
- func (g *GetBankAccountByV1IDResponse) GetBankAccount() *BankAccount
- func (g *GetBankAccountByV1IDResponse) GetErrors() []*Error
- func (g *GetBankAccountByV1IDResponse) GetExtraProperties() map[string]interface{}
- func (g *GetBankAccountByV1IDResponse) String() string
- func (g *GetBankAccountByV1IDResponse) UnmarshalJSON(data []byte) error
- type GetBankAccountResponse
- func (g *GetBankAccountResponse) GetBankAccount() *BankAccount
- func (g *GetBankAccountResponse) GetErrors() []*Error
- func (g *GetBankAccountResponse) GetExtraProperties() map[string]interface{}
- func (g *GetBankAccountResponse) String() string
- func (g *GetBankAccountResponse) UnmarshalJSON(data []byte) error
- type GetBankAccountsRequest
- type GetBookingResponse
- type GetBookingsRequest
- type GetBreakTypeResponse
- type GetBusinessBookingProfileResponse
- func (g *GetBusinessBookingProfileResponse) GetBusinessBookingProfile() *BusinessBookingProfile
- func (g *GetBusinessBookingProfileResponse) GetErrors() []*Error
- func (g *GetBusinessBookingProfileResponse) GetExtraProperties() map[string]interface{}
- func (g *GetBusinessBookingProfileResponse) String() string
- func (g *GetBusinessBookingProfileResponse) UnmarshalJSON(data []byte) error
- type GetByV1IDBankAccountsRequest
- type GetCardResponse
- type GetCardsRequest
- type GetCashDrawerShiftResponse
- func (g *GetCashDrawerShiftResponse) GetCashDrawerShift() *CashDrawerShift
- func (g *GetCashDrawerShiftResponse) GetErrors() []*Error
- func (g *GetCashDrawerShiftResponse) GetExtraProperties() map[string]interface{}
- func (g *GetCashDrawerShiftResponse) String() string
- func (g *GetCashDrawerShiftResponse) UnmarshalJSON(data []byte) error
- type GetCatalogObjectResponse
- func (g *GetCatalogObjectResponse) GetErrors() []*Error
- func (g *GetCatalogObjectResponse) GetExtraProperties() map[string]interface{}
- func (g *GetCatalogObjectResponse) GetObject() *CatalogObject
- func (g *GetCatalogObjectResponse) GetRelatedObjects() []*CatalogObject
- func (g *GetCatalogObjectResponse) String() string
- func (g *GetCatalogObjectResponse) UnmarshalJSON(data []byte) error
- type GetCustomerCustomAttributeDefinitionResponse
- func (g *GetCustomerCustomAttributeDefinitionResponse) GetCustomAttributeDefinition() *CustomAttributeDefinition
- func (g *GetCustomerCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (g *GetCustomerCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (g *GetCustomerCustomAttributeDefinitionResponse) String() string
- func (g *GetCustomerCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type GetCustomerCustomAttributeResponse
- func (g *GetCustomerCustomAttributeResponse) GetCustomAttribute() *CustomAttribute
- func (g *GetCustomerCustomAttributeResponse) GetErrors() []*Error
- func (g *GetCustomerCustomAttributeResponse) GetExtraProperties() map[string]interface{}
- func (g *GetCustomerCustomAttributeResponse) String() string
- func (g *GetCustomerCustomAttributeResponse) UnmarshalJSON(data []byte) error
- type GetCustomerGroupResponse
- func (g *GetCustomerGroupResponse) GetErrors() []*Error
- func (g *GetCustomerGroupResponse) GetExtraProperties() map[string]interface{}
- func (g *GetCustomerGroupResponse) GetGroup() *CustomerGroup
- func (g *GetCustomerGroupResponse) String() string
- func (g *GetCustomerGroupResponse) UnmarshalJSON(data []byte) error
- type GetCustomerResponse
- type GetCustomerSegmentResponse
- func (g *GetCustomerSegmentResponse) GetErrors() []*Error
- func (g *GetCustomerSegmentResponse) GetExtraProperties() map[string]interface{}
- func (g *GetCustomerSegmentResponse) GetSegment() *CustomerSegment
- func (g *GetCustomerSegmentResponse) String() string
- func (g *GetCustomerSegmentResponse) UnmarshalJSON(data []byte) error
- type GetCustomersRequest
- type GetDeviceCodeResponse
- func (g *GetDeviceCodeResponse) GetDeviceCode() *DeviceCode
- func (g *GetDeviceCodeResponse) GetErrors() []*Error
- func (g *GetDeviceCodeResponse) GetExtraProperties() map[string]interface{}
- func (g *GetDeviceCodeResponse) String() string
- func (g *GetDeviceCodeResponse) UnmarshalJSON(data []byte) error
- type GetDeviceResponse
- type GetDevicesRequest
- type GetDisputeEvidenceResponse
- func (g *GetDisputeEvidenceResponse) GetErrors() []*Error
- func (g *GetDisputeEvidenceResponse) GetEvidence() *DisputeEvidence
- func (g *GetDisputeEvidenceResponse) GetExtraProperties() map[string]interface{}
- func (g *GetDisputeEvidenceResponse) String() string
- func (g *GetDisputeEvidenceResponse) UnmarshalJSON(data []byte) error
- type GetDisputeResponse
- type GetDisputesRequest
- type GetEmployeeResponse
- type GetEmployeeWageResponse
- func (g *GetEmployeeWageResponse) GetEmployeeWage() *EmployeeWage
- func (g *GetEmployeeWageResponse) GetErrors() []*Error
- func (g *GetEmployeeWageResponse) GetExtraProperties() map[string]interface{}
- func (g *GetEmployeeWageResponse) String() string
- func (g *GetEmployeeWageResponse) UnmarshalJSON(data []byte) error
- type GetEmployeesRequest
- type GetGiftCardFromGanRequest
- type GetGiftCardFromGanResponse
- func (g *GetGiftCardFromGanResponse) GetErrors() []*Error
- func (g *GetGiftCardFromGanResponse) GetExtraProperties() map[string]interface{}
- func (g *GetGiftCardFromGanResponse) GetGiftCard() *GiftCard
- func (g *GetGiftCardFromGanResponse) String() string
- func (g *GetGiftCardFromGanResponse) UnmarshalJSON(data []byte) error
- type GetGiftCardFromNonceRequest
- type GetGiftCardFromNonceResponse
- func (g *GetGiftCardFromNonceResponse) GetErrors() []*Error
- func (g *GetGiftCardFromNonceResponse) GetExtraProperties() map[string]interface{}
- func (g *GetGiftCardFromNonceResponse) GetGiftCard() *GiftCard
- func (g *GetGiftCardFromNonceResponse) String() string
- func (g *GetGiftCardFromNonceResponse) UnmarshalJSON(data []byte) error
- type GetGiftCardResponse
- type GetGiftCardsRequest
- type GetInventoryAdjustmentResponse
- func (g *GetInventoryAdjustmentResponse) GetAdjustment() *InventoryAdjustment
- func (g *GetInventoryAdjustmentResponse) GetErrors() []*Error
- func (g *GetInventoryAdjustmentResponse) GetExtraProperties() map[string]interface{}
- func (g *GetInventoryAdjustmentResponse) String() string
- func (g *GetInventoryAdjustmentResponse) UnmarshalJSON(data []byte) error
- type GetInventoryChangesResponse
- func (g *GetInventoryChangesResponse) GetChanges() []*InventoryChange
- func (g *GetInventoryChangesResponse) GetCursor() *string
- func (g *GetInventoryChangesResponse) GetErrors() []*Error
- func (g *GetInventoryChangesResponse) GetExtraProperties() map[string]interface{}
- func (g *GetInventoryChangesResponse) String() string
- func (g *GetInventoryChangesResponse) UnmarshalJSON(data []byte) error
- type GetInventoryCountResponse
- func (g *GetInventoryCountResponse) GetCounts() []*InventoryCount
- func (g *GetInventoryCountResponse) GetCursor() *string
- func (g *GetInventoryCountResponse) GetErrors() []*Error
- func (g *GetInventoryCountResponse) GetExtraProperties() map[string]interface{}
- func (g *GetInventoryCountResponse) String() string
- func (g *GetInventoryCountResponse) UnmarshalJSON(data []byte) error
- type GetInventoryPhysicalCountResponse
- func (g *GetInventoryPhysicalCountResponse) GetCount() *InventoryPhysicalCount
- func (g *GetInventoryPhysicalCountResponse) GetErrors() []*Error
- func (g *GetInventoryPhysicalCountResponse) GetExtraProperties() map[string]interface{}
- func (g *GetInventoryPhysicalCountResponse) String() string
- func (g *GetInventoryPhysicalCountResponse) UnmarshalJSON(data []byte) error
- type GetInventoryRequest
- type GetInventoryTransferResponse
- func (g *GetInventoryTransferResponse) GetErrors() []*Error
- func (g *GetInventoryTransferResponse) GetExtraProperties() map[string]interface{}
- func (g *GetInventoryTransferResponse) GetTransfer() *InventoryTransfer
- func (g *GetInventoryTransferResponse) String() string
- func (g *GetInventoryTransferResponse) UnmarshalJSON(data []byte) error
- type GetInvoiceResponse
- type GetInvoicesRequest
- type GetLocationResponse
- type GetLocationsRequest
- type GetLoyaltyAccountResponse
- func (g *GetLoyaltyAccountResponse) GetErrors() []*Error
- func (g *GetLoyaltyAccountResponse) GetExtraProperties() map[string]interface{}
- func (g *GetLoyaltyAccountResponse) GetLoyaltyAccount() *LoyaltyAccount
- func (g *GetLoyaltyAccountResponse) String() string
- func (g *GetLoyaltyAccountResponse) UnmarshalJSON(data []byte) error
- type GetLoyaltyProgramResponse
- func (g *GetLoyaltyProgramResponse) GetErrors() []*Error
- func (g *GetLoyaltyProgramResponse) GetExtraProperties() map[string]interface{}
- func (g *GetLoyaltyProgramResponse) GetProgram() *LoyaltyProgram
- func (g *GetLoyaltyProgramResponse) String() string
- func (g *GetLoyaltyProgramResponse) UnmarshalJSON(data []byte) error
- type GetLoyaltyPromotionResponse
- func (g *GetLoyaltyPromotionResponse) GetErrors() []*Error
- func (g *GetLoyaltyPromotionResponse) GetExtraProperties() map[string]interface{}
- func (g *GetLoyaltyPromotionResponse) GetLoyaltyPromotion() *LoyaltyPromotion
- func (g *GetLoyaltyPromotionResponse) String() string
- func (g *GetLoyaltyPromotionResponse) UnmarshalJSON(data []byte) error
- type GetLoyaltyRewardResponse
- func (g *GetLoyaltyRewardResponse) GetErrors() []*Error
- func (g *GetLoyaltyRewardResponse) GetExtraProperties() map[string]interface{}
- func (g *GetLoyaltyRewardResponse) GetReward() *LoyaltyReward
- func (g *GetLoyaltyRewardResponse) String() string
- func (g *GetLoyaltyRewardResponse) UnmarshalJSON(data []byte) error
- type GetMerchantResponse
- type GetMerchantsRequest
- type GetOrderResponse
- type GetOrdersRequest
- type GetPaymentLinkResponse
- func (g *GetPaymentLinkResponse) GetErrors() []*Error
- func (g *GetPaymentLinkResponse) GetExtraProperties() map[string]interface{}
- func (g *GetPaymentLinkResponse) GetPaymentLink() *PaymentLink
- func (g *GetPaymentLinkResponse) String() string
- func (g *GetPaymentLinkResponse) UnmarshalJSON(data []byte) error
- type GetPaymentRefundResponse
- func (g *GetPaymentRefundResponse) GetErrors() []*Error
- func (g *GetPaymentRefundResponse) GetExtraProperties() map[string]interface{}
- func (g *GetPaymentRefundResponse) GetRefund() *PaymentRefund
- func (g *GetPaymentRefundResponse) String() string
- func (g *GetPaymentRefundResponse) UnmarshalJSON(data []byte) error
- type GetPaymentResponse
- type GetPaymentsRequest
- type GetPayoutResponse
- type GetPayoutsRequest
- type GetPhysicalCountInventoryRequest
- type GetRefundsRequest
- type GetShiftResponse
- type GetSnippetResponse
- type GetSnippetsRequest
- type GetSubscriptionResponse
- func (g *GetSubscriptionResponse) GetErrors() []*Error
- func (g *GetSubscriptionResponse) GetExtraProperties() map[string]interface{}
- func (g *GetSubscriptionResponse) GetSubscription() *Subscription
- func (g *GetSubscriptionResponse) String() string
- func (g *GetSubscriptionResponse) UnmarshalJSON(data []byte) error
- type GetSubscriptionsRequest
- type GetTeamMemberBookingProfileResponse
- func (g *GetTeamMemberBookingProfileResponse) GetErrors() []*Error
- func (g *GetTeamMemberBookingProfileResponse) GetExtraProperties() map[string]interface{}
- func (g *GetTeamMemberBookingProfileResponse) GetTeamMemberBookingProfile() *TeamMemberBookingProfile
- func (g *GetTeamMemberBookingProfileResponse) String() string
- func (g *GetTeamMemberBookingProfileResponse) UnmarshalJSON(data []byte) error
- type GetTeamMemberResponse
- func (g *GetTeamMemberResponse) GetErrors() []*Error
- func (g *GetTeamMemberResponse) GetExtraProperties() map[string]interface{}
- func (g *GetTeamMemberResponse) GetTeamMember() *TeamMember
- func (g *GetTeamMemberResponse) String() string
- func (g *GetTeamMemberResponse) UnmarshalJSON(data []byte) error
- type GetTeamMemberWageResponse
- func (g *GetTeamMemberWageResponse) GetErrors() []*Error
- func (g *GetTeamMemberWageResponse) GetExtraProperties() map[string]interface{}
- func (g *GetTeamMemberWageResponse) GetTeamMemberWage() *TeamMemberWage
- func (g *GetTeamMemberWageResponse) String() string
- func (g *GetTeamMemberWageResponse) UnmarshalJSON(data []byte) error
- type GetTeamMembersRequest
- type GetTerminalActionResponse
- func (g *GetTerminalActionResponse) GetAction() *TerminalAction
- func (g *GetTerminalActionResponse) GetErrors() []*Error
- func (g *GetTerminalActionResponse) GetExtraProperties() map[string]interface{}
- func (g *GetTerminalActionResponse) String() string
- func (g *GetTerminalActionResponse) UnmarshalJSON(data []byte) error
- type GetTerminalCheckoutResponse
- func (g *GetTerminalCheckoutResponse) GetCheckout() *TerminalCheckout
- func (g *GetTerminalCheckoutResponse) GetErrors() []*Error
- func (g *GetTerminalCheckoutResponse) GetExtraProperties() map[string]interface{}
- func (g *GetTerminalCheckoutResponse) String() string
- func (g *GetTerminalCheckoutResponse) UnmarshalJSON(data []byte) error
- type GetTerminalRefundResponse
- func (g *GetTerminalRefundResponse) GetErrors() []*Error
- func (g *GetTerminalRefundResponse) GetExtraProperties() map[string]interface{}
- func (g *GetTerminalRefundResponse) GetRefund() *TerminalRefund
- func (g *GetTerminalRefundResponse) String() string
- func (g *GetTerminalRefundResponse) UnmarshalJSON(data []byte) error
- type GetTransactionResponse
- func (g *GetTransactionResponse) GetErrors() []*Error
- func (g *GetTransactionResponse) GetExtraProperties() map[string]interface{}
- func (g *GetTransactionResponse) GetTransaction() *Transaction
- func (g *GetTransactionResponse) String() string
- func (g *GetTransactionResponse) UnmarshalJSON(data []byte) error
- type GetTransferInventoryRequest
- type GetVendorResponse
- type GetVendorsRequest
- type GetWageSettingResponse
- func (g *GetWageSettingResponse) GetErrors() []*Error
- func (g *GetWageSettingResponse) GetExtraProperties() map[string]interface{}
- func (g *GetWageSettingResponse) GetWageSetting() *WageSetting
- func (g *GetWageSettingResponse) String() string
- func (g *GetWageSettingResponse) UnmarshalJSON(data []byte) error
- type GetWebhookSubscriptionResponse
- func (g *GetWebhookSubscriptionResponse) GetErrors() []*Error
- func (g *GetWebhookSubscriptionResponse) GetExtraProperties() map[string]interface{}
- func (g *GetWebhookSubscriptionResponse) GetSubscription() *WebhookSubscription
- func (g *GetWebhookSubscriptionResponse) String() string
- func (g *GetWebhookSubscriptionResponse) UnmarshalJSON(data []byte) error
- type GiftCard
- func (g *GiftCard) GetBalanceMoney() *Money
- func (g *GiftCard) GetCreatedAt() *string
- func (g *GiftCard) GetCustomerIDs() []string
- func (g *GiftCard) GetExtraProperties() map[string]interface{}
- func (g *GiftCard) GetGan() *string
- func (g *GiftCard) GetGanSource() *GiftCardGanSource
- func (g *GiftCard) GetID() *string
- func (g *GiftCard) GetState() *GiftCardStatus
- func (g *GiftCard) GetType() GiftCardType
- func (g *GiftCard) String() string
- func (g *GiftCard) UnmarshalJSON(data []byte) error
- type GiftCardActivity
- func (g *GiftCardActivity) GetActivateActivityDetails() *GiftCardActivityActivate
- func (g *GiftCardActivity) GetAdjustDecrementActivityDetails() *GiftCardActivityAdjustDecrement
- func (g *GiftCardActivity) GetAdjustIncrementActivityDetails() *GiftCardActivityAdjustIncrement
- func (g *GiftCardActivity) GetBlockActivityDetails() *GiftCardActivityBlock
- func (g *GiftCardActivity) GetClearBalanceActivityDetails() *GiftCardActivityClearBalance
- func (g *GiftCardActivity) GetCreatedAt() *string
- func (g *GiftCardActivity) GetDeactivateActivityDetails() *GiftCardActivityDeactivate
- func (g *GiftCardActivity) GetExtraProperties() map[string]interface{}
- func (g *GiftCardActivity) GetGiftCardBalanceMoney() *Money
- func (g *GiftCardActivity) GetGiftCardGan() *string
- func (g *GiftCardActivity) GetGiftCardID() *string
- func (g *GiftCardActivity) GetID() *string
- func (g *GiftCardActivity) GetImportActivityDetails() *GiftCardActivityImport
- func (g *GiftCardActivity) GetImportReversalActivityDetails() *GiftCardActivityImportReversal
- func (g *GiftCardActivity) GetLoadActivityDetails() *GiftCardActivityLoad
- func (g *GiftCardActivity) GetLocationID() string
- func (g *GiftCardActivity) GetRedeemActivityDetails() *GiftCardActivityRedeem
- func (g *GiftCardActivity) GetRefundActivityDetails() *GiftCardActivityRefund
- func (g *GiftCardActivity) GetTransferBalanceFromActivityDetails() *GiftCardActivityTransferBalanceFrom
- func (g *GiftCardActivity) GetTransferBalanceToActivityDetails() *GiftCardActivityTransferBalanceTo
- func (g *GiftCardActivity) GetType() GiftCardActivityType
- func (g *GiftCardActivity) GetUnblockActivityDetails() *GiftCardActivityUnblock
- func (g *GiftCardActivity) GetUnlinkedActivityRefundActivityDetails() *GiftCardActivityUnlinkedActivityRefund
- func (g *GiftCardActivity) String() string
- func (g *GiftCardActivity) UnmarshalJSON(data []byte) error
- type GiftCardActivityActivate
- func (g *GiftCardActivityActivate) GetAmountMoney() *Money
- func (g *GiftCardActivityActivate) GetBuyerPaymentInstrumentIDs() []string
- func (g *GiftCardActivityActivate) GetExtraProperties() map[string]interface{}
- func (g *GiftCardActivityActivate) GetLineItemUID() *string
- func (g *GiftCardActivityActivate) GetOrderID() *string
- func (g *GiftCardActivityActivate) GetReferenceID() *string
- func (g *GiftCardActivityActivate) String() string
- func (g *GiftCardActivityActivate) UnmarshalJSON(data []byte) error
- type GiftCardActivityAdjustDecrement
- func (g *GiftCardActivityAdjustDecrement) GetAmountMoney() *Money
- func (g *GiftCardActivityAdjustDecrement) GetExtraProperties() map[string]interface{}
- func (g *GiftCardActivityAdjustDecrement) GetReason() GiftCardActivityAdjustDecrementReason
- func (g *GiftCardActivityAdjustDecrement) String() string
- func (g *GiftCardActivityAdjustDecrement) UnmarshalJSON(data []byte) error
- type GiftCardActivityAdjustDecrementReason
- type GiftCardActivityAdjustIncrement
- func (g *GiftCardActivityAdjustIncrement) GetAmountMoney() *Money
- func (g *GiftCardActivityAdjustIncrement) GetExtraProperties() map[string]interface{}
- func (g *GiftCardActivityAdjustIncrement) GetReason() GiftCardActivityAdjustIncrementReason
- func (g *GiftCardActivityAdjustIncrement) String() string
- func (g *GiftCardActivityAdjustIncrement) UnmarshalJSON(data []byte) error
- type GiftCardActivityAdjustIncrementReason
- type GiftCardActivityBlock
- type GiftCardActivityBlockReason
- type GiftCardActivityClearBalance
- type GiftCardActivityClearBalanceReason
- type GiftCardActivityDeactivate
- type GiftCardActivityDeactivateReason
- type GiftCardActivityImport
- type GiftCardActivityImportReversal
- type GiftCardActivityLoad
- func (g *GiftCardActivityLoad) GetAmountMoney() *Money
- func (g *GiftCardActivityLoad) GetBuyerPaymentInstrumentIDs() []string
- func (g *GiftCardActivityLoad) GetExtraProperties() map[string]interface{}
- func (g *GiftCardActivityLoad) GetLineItemUID() *string
- func (g *GiftCardActivityLoad) GetOrderID() *string
- func (g *GiftCardActivityLoad) GetReferenceID() *string
- func (g *GiftCardActivityLoad) String() string
- func (g *GiftCardActivityLoad) UnmarshalJSON(data []byte) error
- type GiftCardActivityRedeem
- func (g *GiftCardActivityRedeem) GetAmountMoney() *Money
- func (g *GiftCardActivityRedeem) GetExtraProperties() map[string]interface{}
- func (g *GiftCardActivityRedeem) GetPaymentID() *string
- func (g *GiftCardActivityRedeem) GetReferenceID() *string
- func (g *GiftCardActivityRedeem) GetStatus() *GiftCardActivityRedeemStatus
- func (g *GiftCardActivityRedeem) String() string
- func (g *GiftCardActivityRedeem) UnmarshalJSON(data []byte) error
- type GiftCardActivityRedeemStatus
- type GiftCardActivityRefund
- func (g *GiftCardActivityRefund) GetAmountMoney() *Money
- func (g *GiftCardActivityRefund) GetExtraProperties() map[string]interface{}
- func (g *GiftCardActivityRefund) GetPaymentID() *string
- func (g *GiftCardActivityRefund) GetRedeemActivityID() *string
- func (g *GiftCardActivityRefund) GetReferenceID() *string
- func (g *GiftCardActivityRefund) String() string
- func (g *GiftCardActivityRefund) UnmarshalJSON(data []byte) error
- type GiftCardActivityTransferBalanceFrom
- func (g *GiftCardActivityTransferBalanceFrom) GetAmountMoney() *Money
- func (g *GiftCardActivityTransferBalanceFrom) GetExtraProperties() map[string]interface{}
- func (g *GiftCardActivityTransferBalanceFrom) GetTransferToGiftCardID() string
- func (g *GiftCardActivityTransferBalanceFrom) String() string
- func (g *GiftCardActivityTransferBalanceFrom) UnmarshalJSON(data []byte) error
- type GiftCardActivityTransferBalanceTo
- func (g *GiftCardActivityTransferBalanceTo) GetAmountMoney() *Money
- func (g *GiftCardActivityTransferBalanceTo) GetExtraProperties() map[string]interface{}
- func (g *GiftCardActivityTransferBalanceTo) GetTransferFromGiftCardID() string
- func (g *GiftCardActivityTransferBalanceTo) String() string
- func (g *GiftCardActivityTransferBalanceTo) UnmarshalJSON(data []byte) error
- type GiftCardActivityType
- type GiftCardActivityUnblock
- type GiftCardActivityUnblockReason
- type GiftCardActivityUnlinkedActivityRefund
- func (g *GiftCardActivityUnlinkedActivityRefund) GetAmountMoney() *Money
- func (g *GiftCardActivityUnlinkedActivityRefund) GetExtraProperties() map[string]interface{}
- func (g *GiftCardActivityUnlinkedActivityRefund) GetPaymentID() *string
- func (g *GiftCardActivityUnlinkedActivityRefund) GetReferenceID() *string
- func (g *GiftCardActivityUnlinkedActivityRefund) String() string
- func (g *GiftCardActivityUnlinkedActivityRefund) UnmarshalJSON(data []byte) error
- type GiftCardGanSource
- type GiftCardStatus
- type GiftCardType
- type GiftCardsGetRequest
- type GiftCardsListRequest
- type InventoryAdjustment
- func (i *InventoryAdjustment) GetAdjustmentGroup() *InventoryAdjustmentGroup
- func (i *InventoryAdjustment) GetCatalogObjectID() *string
- func (i *InventoryAdjustment) GetCatalogObjectType() *string
- func (i *InventoryAdjustment) GetCreatedAt() *string
- func (i *InventoryAdjustment) GetEmployeeID() *string
- func (i *InventoryAdjustment) GetExtraProperties() map[string]interface{}
- func (i *InventoryAdjustment) GetFromState() *InventoryState
- func (i *InventoryAdjustment) GetGoodsReceiptID() *string
- func (i *InventoryAdjustment) GetID() *string
- func (i *InventoryAdjustment) GetLocationID() *string
- func (i *InventoryAdjustment) GetOccurredAt() *string
- func (i *InventoryAdjustment) GetPurchaseOrderID() *string
- func (i *InventoryAdjustment) GetQuantity() *string
- func (i *InventoryAdjustment) GetReferenceID() *string
- func (i *InventoryAdjustment) GetRefundID() *string
- func (i *InventoryAdjustment) GetSource() *SourceApplication
- func (i *InventoryAdjustment) GetTeamMemberID() *string
- func (i *InventoryAdjustment) GetToState() *InventoryState
- func (i *InventoryAdjustment) GetTotalPriceMoney() *Money
- func (i *InventoryAdjustment) GetTransactionID() *string
- func (i *InventoryAdjustment) String() string
- func (i *InventoryAdjustment) UnmarshalJSON(data []byte) error
- type InventoryAdjustmentGroup
- func (i *InventoryAdjustmentGroup) GetExtraProperties() map[string]interface{}
- func (i *InventoryAdjustmentGroup) GetFromState() *InventoryState
- func (i *InventoryAdjustmentGroup) GetID() *string
- func (i *InventoryAdjustmentGroup) GetRootAdjustmentID() *string
- func (i *InventoryAdjustmentGroup) GetToState() *InventoryState
- func (i *InventoryAdjustmentGroup) String() string
- func (i *InventoryAdjustmentGroup) UnmarshalJSON(data []byte) error
- type InventoryAlertType
- type InventoryChange
- func (i *InventoryChange) GetAdjustment() *InventoryAdjustment
- func (i *InventoryChange) GetExtraProperties() map[string]interface{}
- func (i *InventoryChange) GetMeasurementUnit() *CatalogMeasurementUnit
- func (i *InventoryChange) GetMeasurementUnitID() *string
- func (i *InventoryChange) GetPhysicalCount() *InventoryPhysicalCount
- func (i *InventoryChange) GetTransfer() *InventoryTransfer
- func (i *InventoryChange) GetType() *InventoryChangeType
- func (i *InventoryChange) String() string
- func (i *InventoryChange) UnmarshalJSON(data []byte) error
- type InventoryChangeType
- type InventoryChangesRequest
- type InventoryCount
- func (i *InventoryCount) GetCalculatedAt() *string
- func (i *InventoryCount) GetCatalogObjectID() *string
- func (i *InventoryCount) GetCatalogObjectType() *string
- func (i *InventoryCount) GetExtraProperties() map[string]interface{}
- func (i *InventoryCount) GetIsEstimated() *bool
- func (i *InventoryCount) GetLocationID() *string
- func (i *InventoryCount) GetQuantity() *string
- func (i *InventoryCount) GetState() *InventoryState
- func (i *InventoryCount) String() string
- func (i *InventoryCount) UnmarshalJSON(data []byte) error
- type InventoryDeprecatedGetAdjustmentRequest
- type InventoryDeprecatedGetPhysicalCountRequest
- type InventoryGetAdjustmentRequest
- type InventoryGetPhysicalCountRequest
- type InventoryGetRequest
- type InventoryGetTransferRequest
- type InventoryPhysicalCount
- func (i *InventoryPhysicalCount) GetCatalogObjectID() *string
- func (i *InventoryPhysicalCount) GetCatalogObjectType() *string
- func (i *InventoryPhysicalCount) GetCreatedAt() *string
- func (i *InventoryPhysicalCount) GetEmployeeID() *string
- func (i *InventoryPhysicalCount) GetExtraProperties() map[string]interface{}
- func (i *InventoryPhysicalCount) GetID() *string
- func (i *InventoryPhysicalCount) GetLocationID() *string
- func (i *InventoryPhysicalCount) GetOccurredAt() *string
- func (i *InventoryPhysicalCount) GetQuantity() *string
- func (i *InventoryPhysicalCount) GetReferenceID() *string
- func (i *InventoryPhysicalCount) GetSource() *SourceApplication
- func (i *InventoryPhysicalCount) GetState() *InventoryState
- func (i *InventoryPhysicalCount) GetTeamMemberID() *string
- func (i *InventoryPhysicalCount) String() string
- func (i *InventoryPhysicalCount) UnmarshalJSON(data []byte) error
- type InventoryState
- type InventoryTransfer
- func (i *InventoryTransfer) GetCatalogObjectID() *string
- func (i *InventoryTransfer) GetCatalogObjectType() *string
- func (i *InventoryTransfer) GetCreatedAt() *string
- func (i *InventoryTransfer) GetEmployeeID() *string
- func (i *InventoryTransfer) GetExtraProperties() map[string]interface{}
- func (i *InventoryTransfer) GetFromLocationID() *string
- func (i *InventoryTransfer) GetID() *string
- func (i *InventoryTransfer) GetOccurredAt() *string
- func (i *InventoryTransfer) GetQuantity() *string
- func (i *InventoryTransfer) GetReferenceID() *string
- func (i *InventoryTransfer) GetSource() *SourceApplication
- func (i *InventoryTransfer) GetState() *InventoryState
- func (i *InventoryTransfer) GetTeamMemberID() *string
- func (i *InventoryTransfer) GetToLocationID() *string
- func (i *InventoryTransfer) String() string
- func (i *InventoryTransfer) UnmarshalJSON(data []byte) error
- type Invoice
- func (i *Invoice) GetAcceptedPaymentMethods() *InvoiceAcceptedPaymentMethods
- func (i *Invoice) GetAttachments() []*InvoiceAttachment
- func (i *Invoice) GetCreatedAt() *string
- func (i *Invoice) GetCreatorTeamMemberID() *string
- func (i *Invoice) GetCustomFields() []*InvoiceCustomField
- func (i *Invoice) GetDeliveryMethod() *InvoiceDeliveryMethod
- func (i *Invoice) GetDescription() *string
- func (i *Invoice) GetExtraProperties() map[string]interface{}
- func (i *Invoice) GetID() *string
- func (i *Invoice) GetInvoiceNumber() *string
- func (i *Invoice) GetLocationID() *string
- func (i *Invoice) GetNextPaymentAmountMoney() *Money
- func (i *Invoice) GetOrderID() *string
- func (i *Invoice) GetPaymentConditions() *string
- func (i *Invoice) GetPaymentRequests() []*InvoicePaymentRequest
- func (i *Invoice) GetPrimaryRecipient() *InvoiceRecipient
- func (i *Invoice) GetPublicURL() *string
- func (i *Invoice) GetSaleOrServiceDate() *string
- func (i *Invoice) GetScheduledAt() *string
- func (i *Invoice) GetStatus() *InvoiceStatus
- func (i *Invoice) GetStorePaymentMethodEnabled() *bool
- func (i *Invoice) GetSubscriptionID() *string
- func (i *Invoice) GetTimezone() *string
- func (i *Invoice) GetTitle() *string
- func (i *Invoice) GetUpdatedAt() *string
- func (i *Invoice) GetVersion() *int
- func (i *Invoice) String() string
- func (i *Invoice) UnmarshalJSON(data []byte) error
- type InvoiceAcceptedPaymentMethods
- func (i *InvoiceAcceptedPaymentMethods) GetBankAccount() *bool
- func (i *InvoiceAcceptedPaymentMethods) GetBuyNowPayLater() *bool
- func (i *InvoiceAcceptedPaymentMethods) GetCard() *bool
- func (i *InvoiceAcceptedPaymentMethods) GetCashAppPay() *bool
- func (i *InvoiceAcceptedPaymentMethods) GetExtraProperties() map[string]interface{}
- func (i *InvoiceAcceptedPaymentMethods) GetSquareGiftCard() *bool
- func (i *InvoiceAcceptedPaymentMethods) String() string
- func (i *InvoiceAcceptedPaymentMethods) UnmarshalJSON(data []byte) error
- type InvoiceAttachment
- func (i *InvoiceAttachment) GetDescription() *string
- func (i *InvoiceAttachment) GetExtraProperties() map[string]interface{}
- func (i *InvoiceAttachment) GetFilename() *string
- func (i *InvoiceAttachment) GetFilesize() *int
- func (i *InvoiceAttachment) GetHash() *string
- func (i *InvoiceAttachment) GetID() *string
- func (i *InvoiceAttachment) GetMimeType() *string
- func (i *InvoiceAttachment) GetUploadedAt() *string
- func (i *InvoiceAttachment) String() string
- func (i *InvoiceAttachment) UnmarshalJSON(data []byte) error
- type InvoiceAutomaticPaymentSource
- type InvoiceCustomField
- func (i *InvoiceCustomField) GetExtraProperties() map[string]interface{}
- func (i *InvoiceCustomField) GetLabel() *string
- func (i *InvoiceCustomField) GetPlacement() *InvoiceCustomFieldPlacement
- func (i *InvoiceCustomField) GetValue() *string
- func (i *InvoiceCustomField) String() string
- func (i *InvoiceCustomField) UnmarshalJSON(data []byte) error
- type InvoiceCustomFieldPlacement
- type InvoiceDeliveryMethod
- type InvoiceFilter
- type InvoicePaymentReminder
- func (i *InvoicePaymentReminder) GetExtraProperties() map[string]interface{}
- func (i *InvoicePaymentReminder) GetMessage() *string
- func (i *InvoicePaymentReminder) GetRelativeScheduledDays() *int
- func (i *InvoicePaymentReminder) GetSentAt() *string
- func (i *InvoicePaymentReminder) GetStatus() *InvoicePaymentReminderStatus
- func (i *InvoicePaymentReminder) GetUID() *string
- func (i *InvoicePaymentReminder) String() string
- func (i *InvoicePaymentReminder) UnmarshalJSON(data []byte) error
- type InvoicePaymentReminderStatus
- type InvoicePaymentRequest
- func (i *InvoicePaymentRequest) GetAutomaticPaymentSource() *InvoiceAutomaticPaymentSource
- func (i *InvoicePaymentRequest) GetCardID() *string
- func (i *InvoicePaymentRequest) GetComputedAmountMoney() *Money
- func (i *InvoicePaymentRequest) GetDueDate() *string
- func (i *InvoicePaymentRequest) GetExtraProperties() map[string]interface{}
- func (i *InvoicePaymentRequest) GetFixedAmountRequestedMoney() *Money
- func (i *InvoicePaymentRequest) GetPercentageRequested() *string
- func (i *InvoicePaymentRequest) GetReminders() []*InvoicePaymentReminder
- func (i *InvoicePaymentRequest) GetRequestMethod() *InvoiceRequestMethod
- func (i *InvoicePaymentRequest) GetRequestType() *InvoiceRequestType
- func (i *InvoicePaymentRequest) GetRoundingAdjustmentIncludedMoney() *Money
- func (i *InvoicePaymentRequest) GetTippingEnabled() *bool
- func (i *InvoicePaymentRequest) GetTotalCompletedAmountMoney() *Money
- func (i *InvoicePaymentRequest) GetUID() *string
- func (i *InvoicePaymentRequest) String() string
- func (i *InvoicePaymentRequest) UnmarshalJSON(data []byte) error
- type InvoiceQuery
- type InvoiceRecipient
- func (i *InvoiceRecipient) GetAddress() *Address
- func (i *InvoiceRecipient) GetCompanyName() *string
- func (i *InvoiceRecipient) GetCustomerID() *string
- func (i *InvoiceRecipient) GetEmailAddress() *string
- func (i *InvoiceRecipient) GetExtraProperties() map[string]interface{}
- func (i *InvoiceRecipient) GetFamilyName() *string
- func (i *InvoiceRecipient) GetGivenName() *string
- func (i *InvoiceRecipient) GetPhoneNumber() *string
- func (i *InvoiceRecipient) GetTaxIDs() *InvoiceRecipientTaxIDs
- func (i *InvoiceRecipient) String() string
- func (i *InvoiceRecipient) UnmarshalJSON(data []byte) error
- type InvoiceRecipientTaxIDs
- type InvoiceRequestMethod
- type InvoiceRequestType
- type InvoiceSort
- type InvoiceSortField
- type InvoiceStatus
- type InvoicesDeleteRequest
- type InvoicesGetRequest
- type InvoicesListRequest
- type ItemVariationLocationOverrides
- func (i *ItemVariationLocationOverrides) GetExtraProperties() map[string]interface{}
- func (i *ItemVariationLocationOverrides) GetInventoryAlertThreshold() *int64
- func (i *ItemVariationLocationOverrides) GetInventoryAlertType() *InventoryAlertType
- func (i *ItemVariationLocationOverrides) GetLocationID() *string
- func (i *ItemVariationLocationOverrides) GetPriceMoney() *Money
- func (i *ItemVariationLocationOverrides) GetPricingType() *CatalogPricingType
- func (i *ItemVariationLocationOverrides) GetSoldOut() *bool
- func (i *ItemVariationLocationOverrides) GetSoldOutValidUntil() *string
- func (i *ItemVariationLocationOverrides) GetTrackInventory() *bool
- func (i *ItemVariationLocationOverrides) String() string
- func (i *ItemVariationLocationOverrides) UnmarshalJSON(data []byte) error
- type Job
- func (j *Job) GetCreatedAt() *string
- func (j *Job) GetExtraProperties() map[string]interface{}
- func (j *Job) GetID() *string
- func (j *Job) GetIsTipEligible() *bool
- func (j *Job) GetTitle() *string
- func (j *Job) GetUpdatedAt() *string
- func (j *Job) GetVersion() *int
- func (j *Job) String() string
- func (j *Job) UnmarshalJSON(data []byte) error
- type JobAssignment
- func (j *JobAssignment) GetAnnualRate() *Money
- func (j *JobAssignment) GetExtraProperties() map[string]interface{}
- func (j *JobAssignment) GetHourlyRate() *Money
- func (j *JobAssignment) GetJobID() *string
- func (j *JobAssignment) GetJobTitle() *string
- func (j *JobAssignment) GetPayType() JobAssignmentPayType
- func (j *JobAssignment) GetWeeklyHours() *int
- func (j *JobAssignment) String() string
- func (j *JobAssignment) UnmarshalJSON(data []byte) error
- type JobAssignmentPayType
- type LinkCustomerToGiftCardRequest
- type LinkCustomerToGiftCardResponse
- func (l *LinkCustomerToGiftCardResponse) GetErrors() []*Error
- func (l *LinkCustomerToGiftCardResponse) GetExtraProperties() map[string]interface{}
- func (l *LinkCustomerToGiftCardResponse) GetGiftCard() *GiftCard
- func (l *LinkCustomerToGiftCardResponse) String() string
- func (l *LinkCustomerToGiftCardResponse) UnmarshalJSON(data []byte) error
- type ListBankAccountsRequest
- type ListBankAccountsResponse
- func (l *ListBankAccountsResponse) GetBankAccounts() []*BankAccount
- func (l *ListBankAccountsResponse) GetCursor() *string
- func (l *ListBankAccountsResponse) GetErrors() []*Error
- func (l *ListBankAccountsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListBankAccountsResponse) String() string
- func (l *ListBankAccountsResponse) UnmarshalJSON(data []byte) error
- type ListBookingCustomAttributeDefinitionsResponse
- func (l *ListBookingCustomAttributeDefinitionsResponse) GetCursor() *string
- func (l *ListBookingCustomAttributeDefinitionsResponse) GetCustomAttributeDefinitions() []*CustomAttributeDefinition
- func (l *ListBookingCustomAttributeDefinitionsResponse) GetErrors() []*Error
- func (l *ListBookingCustomAttributeDefinitionsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListBookingCustomAttributeDefinitionsResponse) String() string
- func (l *ListBookingCustomAttributeDefinitionsResponse) UnmarshalJSON(data []byte) error
- type ListBookingCustomAttributesResponse
- func (l *ListBookingCustomAttributesResponse) GetCursor() *string
- func (l *ListBookingCustomAttributesResponse) GetCustomAttributes() []*CustomAttribute
- func (l *ListBookingCustomAttributesResponse) GetErrors() []*Error
- func (l *ListBookingCustomAttributesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListBookingCustomAttributesResponse) String() string
- func (l *ListBookingCustomAttributesResponse) UnmarshalJSON(data []byte) error
- type ListBookingsRequest
- type ListBookingsResponse
- func (l *ListBookingsResponse) GetBookings() []*Booking
- func (l *ListBookingsResponse) GetCursor() *string
- func (l *ListBookingsResponse) GetErrors() []*Error
- func (l *ListBookingsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListBookingsResponse) String() string
- func (l *ListBookingsResponse) UnmarshalJSON(data []byte) error
- type ListBreakTypesResponse
- func (l *ListBreakTypesResponse) GetBreakTypes() []*BreakType
- func (l *ListBreakTypesResponse) GetCursor() *string
- func (l *ListBreakTypesResponse) GetErrors() []*Error
- func (l *ListBreakTypesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListBreakTypesResponse) String() string
- func (l *ListBreakTypesResponse) UnmarshalJSON(data []byte) error
- type ListCardsRequest
- type ListCardsResponse
- func (l *ListCardsResponse) GetCards() []*Card
- func (l *ListCardsResponse) GetCursor() *string
- func (l *ListCardsResponse) GetErrors() []*Error
- func (l *ListCardsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListCardsResponse) String() string
- func (l *ListCardsResponse) UnmarshalJSON(data []byte) error
- type ListCashDrawerShiftEventsResponse
- func (l *ListCashDrawerShiftEventsResponse) GetCashDrawerShiftEvents() []*CashDrawerShiftEvent
- func (l *ListCashDrawerShiftEventsResponse) GetCursor() *string
- func (l *ListCashDrawerShiftEventsResponse) GetErrors() []*Error
- func (l *ListCashDrawerShiftEventsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListCashDrawerShiftEventsResponse) String() string
- func (l *ListCashDrawerShiftEventsResponse) UnmarshalJSON(data []byte) error
- type ListCashDrawerShiftsResponse
- func (l *ListCashDrawerShiftsResponse) GetCashDrawerShifts() []*CashDrawerShiftSummary
- func (l *ListCashDrawerShiftsResponse) GetCursor() *string
- func (l *ListCashDrawerShiftsResponse) GetErrors() []*Error
- func (l *ListCashDrawerShiftsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListCashDrawerShiftsResponse) String() string
- func (l *ListCashDrawerShiftsResponse) UnmarshalJSON(data []byte) error
- type ListCatalogRequest
- type ListCatalogResponse
- func (l *ListCatalogResponse) GetCursor() *string
- func (l *ListCatalogResponse) GetErrors() []*Error
- func (l *ListCatalogResponse) GetExtraProperties() map[string]interface{}
- func (l *ListCatalogResponse) GetObjects() []*CatalogObject
- func (l *ListCatalogResponse) String() string
- func (l *ListCatalogResponse) UnmarshalJSON(data []byte) error
- type ListCustomerCustomAttributeDefinitionsResponse
- func (l *ListCustomerCustomAttributeDefinitionsResponse) GetCursor() *string
- func (l *ListCustomerCustomAttributeDefinitionsResponse) GetCustomAttributeDefinitions() []*CustomAttributeDefinition
- func (l *ListCustomerCustomAttributeDefinitionsResponse) GetErrors() []*Error
- func (l *ListCustomerCustomAttributeDefinitionsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListCustomerCustomAttributeDefinitionsResponse) String() string
- func (l *ListCustomerCustomAttributeDefinitionsResponse) UnmarshalJSON(data []byte) error
- type ListCustomerCustomAttributesResponse
- func (l *ListCustomerCustomAttributesResponse) GetCursor() *string
- func (l *ListCustomerCustomAttributesResponse) GetCustomAttributes() []*CustomAttribute
- func (l *ListCustomerCustomAttributesResponse) GetErrors() []*Error
- func (l *ListCustomerCustomAttributesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListCustomerCustomAttributesResponse) String() string
- func (l *ListCustomerCustomAttributesResponse) UnmarshalJSON(data []byte) error
- type ListCustomerGroupsResponse
- func (l *ListCustomerGroupsResponse) GetCursor() *string
- func (l *ListCustomerGroupsResponse) GetErrors() []*Error
- func (l *ListCustomerGroupsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListCustomerGroupsResponse) GetGroups() []*CustomerGroup
- func (l *ListCustomerGroupsResponse) String() string
- func (l *ListCustomerGroupsResponse) UnmarshalJSON(data []byte) error
- type ListCustomerSegmentsResponse
- func (l *ListCustomerSegmentsResponse) GetCursor() *string
- func (l *ListCustomerSegmentsResponse) GetErrors() []*Error
- func (l *ListCustomerSegmentsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListCustomerSegmentsResponse) GetSegments() []*CustomerSegment
- func (l *ListCustomerSegmentsResponse) String() string
- func (l *ListCustomerSegmentsResponse) UnmarshalJSON(data []byte) error
- type ListCustomersRequest
- type ListCustomersResponse
- func (l *ListCustomersResponse) GetCount() *int64
- func (l *ListCustomersResponse) GetCursor() *string
- func (l *ListCustomersResponse) GetCustomers() []*Customer
- func (l *ListCustomersResponse) GetErrors() []*Error
- func (l *ListCustomersResponse) GetExtraProperties() map[string]interface{}
- func (l *ListCustomersResponse) String() string
- func (l *ListCustomersResponse) UnmarshalJSON(data []byte) error
- type ListDeviceCodesResponse
- func (l *ListDeviceCodesResponse) GetCursor() *string
- func (l *ListDeviceCodesResponse) GetDeviceCodes() []*DeviceCode
- func (l *ListDeviceCodesResponse) GetErrors() []*Error
- func (l *ListDeviceCodesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListDeviceCodesResponse) String() string
- func (l *ListDeviceCodesResponse) UnmarshalJSON(data []byte) error
- type ListDevicesRequest
- type ListDevicesResponse
- func (l *ListDevicesResponse) GetCursor() *string
- func (l *ListDevicesResponse) GetDevices() []*Device
- func (l *ListDevicesResponse) GetErrors() []*Error
- func (l *ListDevicesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListDevicesResponse) String() string
- func (l *ListDevicesResponse) UnmarshalJSON(data []byte) error
- type ListDisputeEvidenceResponse
- func (l *ListDisputeEvidenceResponse) GetCursor() *string
- func (l *ListDisputeEvidenceResponse) GetErrors() []*Error
- func (l *ListDisputeEvidenceResponse) GetEvidence() []*DisputeEvidence
- func (l *ListDisputeEvidenceResponse) GetExtraProperties() map[string]interface{}
- func (l *ListDisputeEvidenceResponse) String() string
- func (l *ListDisputeEvidenceResponse) UnmarshalJSON(data []byte) error
- type ListDisputesRequest
- type ListDisputesResponse
- func (l *ListDisputesResponse) GetCursor() *string
- func (l *ListDisputesResponse) GetDisputes() []*Dispute
- func (l *ListDisputesResponse) GetErrors() []*Error
- func (l *ListDisputesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListDisputesResponse) String() string
- func (l *ListDisputesResponse) UnmarshalJSON(data []byte) error
- type ListEmployeeWagesResponse
- func (l *ListEmployeeWagesResponse) GetCursor() *string
- func (l *ListEmployeeWagesResponse) GetEmployeeWages() []*EmployeeWage
- func (l *ListEmployeeWagesResponse) GetErrors() []*Error
- func (l *ListEmployeeWagesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListEmployeeWagesResponse) String() string
- func (l *ListEmployeeWagesResponse) UnmarshalJSON(data []byte) error
- type ListEmployeesRequest
- type ListEmployeesResponse
- func (l *ListEmployeesResponse) GetCursor() *string
- func (l *ListEmployeesResponse) GetEmployees() []*Employee
- func (l *ListEmployeesResponse) GetErrors() []*Error
- func (l *ListEmployeesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListEmployeesResponse) String() string
- func (l *ListEmployeesResponse) UnmarshalJSON(data []byte) error
- type ListEntriesPayoutsRequest
- type ListEventTypesRequest
- type ListEventTypesResponse
- func (l *ListEventTypesResponse) GetErrors() []*Error
- func (l *ListEventTypesResponse) GetEventTypes() []string
- func (l *ListEventTypesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListEventTypesResponse) GetMetadata() []*EventTypeMetadata
- func (l *ListEventTypesResponse) String() string
- func (l *ListEventTypesResponse) UnmarshalJSON(data []byte) error
- type ListEventsSubscriptionsRequest
- type ListGiftCardActivitiesResponse
- func (l *ListGiftCardActivitiesResponse) GetCursor() *string
- func (l *ListGiftCardActivitiesResponse) GetErrors() []*Error
- func (l *ListGiftCardActivitiesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListGiftCardActivitiesResponse) GetGiftCardActivities() []*GiftCardActivity
- func (l *ListGiftCardActivitiesResponse) String() string
- func (l *ListGiftCardActivitiesResponse) UnmarshalJSON(data []byte) error
- type ListGiftCardsRequest
- type ListGiftCardsResponse
- func (l *ListGiftCardsResponse) GetCursor() *string
- func (l *ListGiftCardsResponse) GetErrors() []*Error
- func (l *ListGiftCardsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListGiftCardsResponse) GetGiftCards() []*GiftCard
- func (l *ListGiftCardsResponse) String() string
- func (l *ListGiftCardsResponse) UnmarshalJSON(data []byte) error
- type ListInvoicesRequest
- type ListInvoicesResponse
- func (l *ListInvoicesResponse) GetCursor() *string
- func (l *ListInvoicesResponse) GetErrors() []*Error
- func (l *ListInvoicesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListInvoicesResponse) GetInvoices() []*Invoice
- func (l *ListInvoicesResponse) String() string
- func (l *ListInvoicesResponse) UnmarshalJSON(data []byte) error
- type ListJobsRequest
- type ListJobsResponse
- func (l *ListJobsResponse) GetCursor() *string
- func (l *ListJobsResponse) GetErrors() []*Error
- func (l *ListJobsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListJobsResponse) GetJobs() []*Job
- func (l *ListJobsResponse) String() string
- func (l *ListJobsResponse) UnmarshalJSON(data []byte) error
- type ListLocationBookingProfilesResponse
- func (l *ListLocationBookingProfilesResponse) GetCursor() *string
- func (l *ListLocationBookingProfilesResponse) GetErrors() []*Error
- func (l *ListLocationBookingProfilesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListLocationBookingProfilesResponse) GetLocationBookingProfiles() []*LocationBookingProfile
- func (l *ListLocationBookingProfilesResponse) String() string
- func (l *ListLocationBookingProfilesResponse) UnmarshalJSON(data []byte) error
- type ListLocationCustomAttributeDefinitionsResponse
- func (l *ListLocationCustomAttributeDefinitionsResponse) GetCursor() *string
- func (l *ListLocationCustomAttributeDefinitionsResponse) GetCustomAttributeDefinitions() []*CustomAttributeDefinition
- func (l *ListLocationCustomAttributeDefinitionsResponse) GetErrors() []*Error
- func (l *ListLocationCustomAttributeDefinitionsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListLocationCustomAttributeDefinitionsResponse) String() string
- func (l *ListLocationCustomAttributeDefinitionsResponse) UnmarshalJSON(data []byte) error
- type ListLocationCustomAttributesResponse
- func (l *ListLocationCustomAttributesResponse) GetCursor() *string
- func (l *ListLocationCustomAttributesResponse) GetCustomAttributes() []*CustomAttribute
- func (l *ListLocationCustomAttributesResponse) GetErrors() []*Error
- func (l *ListLocationCustomAttributesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListLocationCustomAttributesResponse) String() string
- func (l *ListLocationCustomAttributesResponse) UnmarshalJSON(data []byte) error
- type ListLocationsResponse
- func (l *ListLocationsResponse) GetErrors() []*Error
- func (l *ListLocationsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListLocationsResponse) GetLocations() []*Location
- func (l *ListLocationsResponse) String() string
- func (l *ListLocationsResponse) UnmarshalJSON(data []byte) error
- type ListLoyaltyProgramsResponse
- func (l *ListLoyaltyProgramsResponse) GetErrors() []*Error
- func (l *ListLoyaltyProgramsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListLoyaltyProgramsResponse) GetPrograms() []*LoyaltyProgram
- func (l *ListLoyaltyProgramsResponse) String() string
- func (l *ListLoyaltyProgramsResponse) UnmarshalJSON(data []byte) error
- type ListLoyaltyPromotionsResponse
- func (l *ListLoyaltyPromotionsResponse) GetCursor() *string
- func (l *ListLoyaltyPromotionsResponse) GetErrors() []*Error
- func (l *ListLoyaltyPromotionsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListLoyaltyPromotionsResponse) GetLoyaltyPromotions() []*LoyaltyPromotion
- func (l *ListLoyaltyPromotionsResponse) String() string
- func (l *ListLoyaltyPromotionsResponse) UnmarshalJSON(data []byte) error
- type ListMerchantCustomAttributeDefinitionsResponse
- func (l *ListMerchantCustomAttributeDefinitionsResponse) GetCursor() *string
- func (l *ListMerchantCustomAttributeDefinitionsResponse) GetCustomAttributeDefinitions() []*CustomAttributeDefinition
- func (l *ListMerchantCustomAttributeDefinitionsResponse) GetErrors() []*Error
- func (l *ListMerchantCustomAttributeDefinitionsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListMerchantCustomAttributeDefinitionsResponse) String() string
- func (l *ListMerchantCustomAttributeDefinitionsResponse) UnmarshalJSON(data []byte) error
- type ListMerchantCustomAttributesResponse
- func (l *ListMerchantCustomAttributesResponse) GetCursor() *string
- func (l *ListMerchantCustomAttributesResponse) GetCustomAttributes() []*CustomAttribute
- func (l *ListMerchantCustomAttributesResponse) GetErrors() []*Error
- func (l *ListMerchantCustomAttributesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListMerchantCustomAttributesResponse) String() string
- func (l *ListMerchantCustomAttributesResponse) UnmarshalJSON(data []byte) error
- type ListMerchantsRequest
- type ListMerchantsResponse
- func (l *ListMerchantsResponse) GetCursor() *int
- func (l *ListMerchantsResponse) GetErrors() []*Error
- func (l *ListMerchantsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListMerchantsResponse) GetMerchant() []*Merchant
- func (l *ListMerchantsResponse) String() string
- func (l *ListMerchantsResponse) UnmarshalJSON(data []byte) error
- type ListOrderCustomAttributeDefinitionsResponse
- func (l *ListOrderCustomAttributeDefinitionsResponse) GetCursor() *string
- func (l *ListOrderCustomAttributeDefinitionsResponse) GetCustomAttributeDefinitions() []*CustomAttributeDefinition
- func (l *ListOrderCustomAttributeDefinitionsResponse) GetErrors() []*Error
- func (l *ListOrderCustomAttributeDefinitionsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListOrderCustomAttributeDefinitionsResponse) String() string
- func (l *ListOrderCustomAttributeDefinitionsResponse) UnmarshalJSON(data []byte) error
- type ListOrderCustomAttributesResponse
- func (l *ListOrderCustomAttributesResponse) GetCursor() *string
- func (l *ListOrderCustomAttributesResponse) GetCustomAttributes() []*CustomAttribute
- func (l *ListOrderCustomAttributesResponse) GetErrors() []*Error
- func (l *ListOrderCustomAttributesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListOrderCustomAttributesResponse) String() string
- func (l *ListOrderCustomAttributesResponse) UnmarshalJSON(data []byte) error
- type ListPaymentLinksResponse
- func (l *ListPaymentLinksResponse) GetCursor() *string
- func (l *ListPaymentLinksResponse) GetErrors() []*Error
- func (l *ListPaymentLinksResponse) GetExtraProperties() map[string]interface{}
- func (l *ListPaymentLinksResponse) GetPaymentLinks() []*PaymentLink
- func (l *ListPaymentLinksResponse) String() string
- func (l *ListPaymentLinksResponse) UnmarshalJSON(data []byte) error
- type ListPaymentRefundsRequestSortField
- type ListPaymentRefundsResponse
- func (l *ListPaymentRefundsResponse) GetCursor() *string
- func (l *ListPaymentRefundsResponse) GetErrors() []*Error
- func (l *ListPaymentRefundsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListPaymentRefundsResponse) GetRefunds() []*PaymentRefund
- func (l *ListPaymentRefundsResponse) String() string
- func (l *ListPaymentRefundsResponse) UnmarshalJSON(data []byte) error
- type ListPaymentsRequest
- type ListPaymentsRequestSortField
- type ListPaymentsResponse
- func (l *ListPaymentsResponse) GetCursor() *string
- func (l *ListPaymentsResponse) GetErrors() []*Error
- func (l *ListPaymentsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListPaymentsResponse) GetPayments() []*Payment
- func (l *ListPaymentsResponse) String() string
- func (l *ListPaymentsResponse) UnmarshalJSON(data []byte) error
- type ListPayoutEntriesResponse
- func (l *ListPayoutEntriesResponse) GetCursor() *string
- func (l *ListPayoutEntriesResponse) GetErrors() []*Error
- func (l *ListPayoutEntriesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListPayoutEntriesResponse) GetPayoutEntries() []*PayoutEntry
- func (l *ListPayoutEntriesResponse) String() string
- func (l *ListPayoutEntriesResponse) UnmarshalJSON(data []byte) error
- type ListPayoutsRequest
- type ListPayoutsResponse
- func (l *ListPayoutsResponse) GetCursor() *string
- func (l *ListPayoutsResponse) GetErrors() []*Error
- func (l *ListPayoutsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListPayoutsResponse) GetPayouts() []*Payout
- func (l *ListPayoutsResponse) String() string
- func (l *ListPayoutsResponse) UnmarshalJSON(data []byte) error
- type ListRefundsRequest
- type ListSitesResponse
- type ListSubscriptionEventsResponse
- func (l *ListSubscriptionEventsResponse) GetCursor() *string
- func (l *ListSubscriptionEventsResponse) GetErrors() []*Error
- func (l *ListSubscriptionEventsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListSubscriptionEventsResponse) GetSubscriptionEvents() []*SubscriptionEvent
- func (l *ListSubscriptionEventsResponse) String() string
- func (l *ListSubscriptionEventsResponse) UnmarshalJSON(data []byte) error
- type ListTeamMemberBookingProfilesResponse
- func (l *ListTeamMemberBookingProfilesResponse) GetCursor() *string
- func (l *ListTeamMemberBookingProfilesResponse) GetErrors() []*Error
- func (l *ListTeamMemberBookingProfilesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListTeamMemberBookingProfilesResponse) GetTeamMemberBookingProfiles() []*TeamMemberBookingProfile
- func (l *ListTeamMemberBookingProfilesResponse) String() string
- func (l *ListTeamMemberBookingProfilesResponse) UnmarshalJSON(data []byte) error
- type ListTeamMemberWagesResponse
- func (l *ListTeamMemberWagesResponse) GetCursor() *string
- func (l *ListTeamMemberWagesResponse) GetErrors() []*Error
- func (l *ListTeamMemberWagesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListTeamMemberWagesResponse) GetTeamMemberWages() []*TeamMemberWage
- func (l *ListTeamMemberWagesResponse) String() string
- func (l *ListTeamMemberWagesResponse) UnmarshalJSON(data []byte) error
- type ListTransactionsResponse
- func (l *ListTransactionsResponse) GetCursor() *string
- func (l *ListTransactionsResponse) GetErrors() []*Error
- func (l *ListTransactionsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListTransactionsResponse) GetTransactions() []*Transaction
- func (l *ListTransactionsResponse) String() string
- func (l *ListTransactionsResponse) UnmarshalJSON(data []byte) error
- type ListWebhookEventTypesResponse
- func (l *ListWebhookEventTypesResponse) GetErrors() []*Error
- func (l *ListWebhookEventTypesResponse) GetEventTypes() []string
- func (l *ListWebhookEventTypesResponse) GetExtraProperties() map[string]interface{}
- func (l *ListWebhookEventTypesResponse) GetMetadata() []*EventTypeMetadata
- func (l *ListWebhookEventTypesResponse) String() string
- func (l *ListWebhookEventTypesResponse) UnmarshalJSON(data []byte) error
- type ListWebhookSubscriptionsResponse
- func (l *ListWebhookSubscriptionsResponse) GetCursor() *string
- func (l *ListWebhookSubscriptionsResponse) GetErrors() []*Error
- func (l *ListWebhookSubscriptionsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListWebhookSubscriptionsResponse) GetSubscriptions() []*WebhookSubscription
- func (l *ListWebhookSubscriptionsResponse) String() string
- func (l *ListWebhookSubscriptionsResponse) UnmarshalJSON(data []byte) error
- type ListWorkweekConfigsResponse
- func (l *ListWorkweekConfigsResponse) GetCursor() *string
- func (l *ListWorkweekConfigsResponse) GetErrors() []*Error
- func (l *ListWorkweekConfigsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListWorkweekConfigsResponse) GetWorkweekConfigs() []*WorkweekConfig
- func (l *ListWorkweekConfigsResponse) String() string
- func (l *ListWorkweekConfigsResponse) UnmarshalJSON(data []byte) error
- type Location
- func (l *Location) GetAddress() *Address
- func (l *Location) GetBusinessEmail() *string
- func (l *Location) GetBusinessHours() *BusinessHours
- func (l *Location) GetBusinessName() *string
- func (l *Location) GetCapabilities() []LocationCapability
- func (l *Location) GetCoordinates() *Coordinates
- func (l *Location) GetCountry() *Country
- func (l *Location) GetCreatedAt() *string
- func (l *Location) GetCurrency() *Currency
- func (l *Location) GetDescription() *string
- func (l *Location) GetExtraProperties() map[string]interface{}
- func (l *Location) GetFacebookURL() *string
- func (l *Location) GetFullFormatLogoURL() *string
- func (l *Location) GetID() *string
- func (l *Location) GetInstagramUsername() *string
- func (l *Location) GetLanguageCode() *string
- func (l *Location) GetLogoURL() *string
- func (l *Location) GetMcc() *string
- func (l *Location) GetMerchantID() *string
- func (l *Location) GetName() *string
- func (l *Location) GetPhoneNumber() *string
- func (l *Location) GetPosBackgroundURL() *string
- func (l *Location) GetStatus() *LocationStatus
- func (l *Location) GetTaxIDs() *TaxIDs
- func (l *Location) GetTimezone() *string
- func (l *Location) GetTwitterUsername() *string
- func (l *Location) GetType() *LocationType
- func (l *Location) GetWebsiteURL() *string
- func (l *Location) String() string
- func (l *Location) UnmarshalJSON(data []byte) error
- type LocationBookingProfile
- func (l *LocationBookingProfile) GetBookingSiteURL() *string
- func (l *LocationBookingProfile) GetExtraProperties() map[string]interface{}
- func (l *LocationBookingProfile) GetLocationID() *string
- func (l *LocationBookingProfile) GetOnlineBookingEnabled() *bool
- func (l *LocationBookingProfile) String() string
- func (l *LocationBookingProfile) UnmarshalJSON(data []byte) error
- type LocationCapability
- type LocationStatus
- type LocationType
- type LocationsGetRequest
- type LoyaltyAccount
- func (l *LoyaltyAccount) GetBalance() *int
- func (l *LoyaltyAccount) GetCreatedAt() *string
- func (l *LoyaltyAccount) GetCustomerID() *string
- func (l *LoyaltyAccount) GetEnrolledAt() *string
- func (l *LoyaltyAccount) GetExpiringPointDeadlines() []*LoyaltyAccountExpiringPointDeadline
- func (l *LoyaltyAccount) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyAccount) GetID() *string
- func (l *LoyaltyAccount) GetLifetimePoints() *int
- func (l *LoyaltyAccount) GetMapping() *LoyaltyAccountMapping
- func (l *LoyaltyAccount) GetProgramID() string
- func (l *LoyaltyAccount) GetUpdatedAt() *string
- func (l *LoyaltyAccount) String() string
- func (l *LoyaltyAccount) UnmarshalJSON(data []byte) error
- type LoyaltyAccountExpiringPointDeadline
- func (l *LoyaltyAccountExpiringPointDeadline) GetExpiresAt() string
- func (l *LoyaltyAccountExpiringPointDeadline) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyAccountExpiringPointDeadline) GetPoints() int
- func (l *LoyaltyAccountExpiringPointDeadline) String() string
- func (l *LoyaltyAccountExpiringPointDeadline) UnmarshalJSON(data []byte) error
- type LoyaltyAccountMapping
- func (l *LoyaltyAccountMapping) GetCreatedAt() *string
- func (l *LoyaltyAccountMapping) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyAccountMapping) GetID() *string
- func (l *LoyaltyAccountMapping) GetPhoneNumber() *string
- func (l *LoyaltyAccountMapping) String() string
- func (l *LoyaltyAccountMapping) UnmarshalJSON(data []byte) error
- type LoyaltyEvent
- func (l *LoyaltyEvent) GetAccumulatePoints() *LoyaltyEventAccumulatePoints
- func (l *LoyaltyEvent) GetAccumulatePromotionPoints() *LoyaltyEventAccumulatePromotionPoints
- func (l *LoyaltyEvent) GetAdjustPoints() *LoyaltyEventAdjustPoints
- func (l *LoyaltyEvent) GetCreateReward() *LoyaltyEventCreateReward
- func (l *LoyaltyEvent) GetCreatedAt() string
- func (l *LoyaltyEvent) GetDeleteReward() *LoyaltyEventDeleteReward
- func (l *LoyaltyEvent) GetExpirePoints() *LoyaltyEventExpirePoints
- func (l *LoyaltyEvent) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyEvent) GetID() string
- func (l *LoyaltyEvent) GetLocationID() *string
- func (l *LoyaltyEvent) GetLoyaltyAccountID() string
- func (l *LoyaltyEvent) GetOtherEvent() *LoyaltyEventOther
- func (l *LoyaltyEvent) GetRedeemReward() *LoyaltyEventRedeemReward
- func (l *LoyaltyEvent) GetSource() LoyaltyEventSource
- func (l *LoyaltyEvent) GetType() LoyaltyEventType
- func (l *LoyaltyEvent) String() string
- func (l *LoyaltyEvent) UnmarshalJSON(data []byte) error
- type LoyaltyEventAccumulatePoints
- func (l *LoyaltyEventAccumulatePoints) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyEventAccumulatePoints) GetLoyaltyProgramID() *string
- func (l *LoyaltyEventAccumulatePoints) GetOrderID() *string
- func (l *LoyaltyEventAccumulatePoints) GetPoints() *int
- func (l *LoyaltyEventAccumulatePoints) String() string
- func (l *LoyaltyEventAccumulatePoints) UnmarshalJSON(data []byte) error
- type LoyaltyEventAccumulatePromotionPoints
- func (l *LoyaltyEventAccumulatePromotionPoints) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyEventAccumulatePromotionPoints) GetLoyaltyProgramID() *string
- func (l *LoyaltyEventAccumulatePromotionPoints) GetLoyaltyPromotionID() *string
- func (l *LoyaltyEventAccumulatePromotionPoints) GetOrderID() string
- func (l *LoyaltyEventAccumulatePromotionPoints) GetPoints() int
- func (l *LoyaltyEventAccumulatePromotionPoints) String() string
- func (l *LoyaltyEventAccumulatePromotionPoints) UnmarshalJSON(data []byte) error
- type LoyaltyEventAdjustPoints
- func (l *LoyaltyEventAdjustPoints) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyEventAdjustPoints) GetLoyaltyProgramID() *string
- func (l *LoyaltyEventAdjustPoints) GetPoints() int
- func (l *LoyaltyEventAdjustPoints) GetReason() *string
- func (l *LoyaltyEventAdjustPoints) String() string
- func (l *LoyaltyEventAdjustPoints) UnmarshalJSON(data []byte) error
- type LoyaltyEventCreateReward
- func (l *LoyaltyEventCreateReward) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyEventCreateReward) GetLoyaltyProgramID() string
- func (l *LoyaltyEventCreateReward) GetPoints() int
- func (l *LoyaltyEventCreateReward) GetRewardID() *string
- func (l *LoyaltyEventCreateReward) String() string
- func (l *LoyaltyEventCreateReward) UnmarshalJSON(data []byte) error
- type LoyaltyEventDateTimeFilter
- type LoyaltyEventDeleteReward
- func (l *LoyaltyEventDeleteReward) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyEventDeleteReward) GetLoyaltyProgramID() string
- func (l *LoyaltyEventDeleteReward) GetPoints() int
- func (l *LoyaltyEventDeleteReward) GetRewardID() *string
- func (l *LoyaltyEventDeleteReward) String() string
- func (l *LoyaltyEventDeleteReward) UnmarshalJSON(data []byte) error
- type LoyaltyEventExpirePoints
- func (l *LoyaltyEventExpirePoints) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyEventExpirePoints) GetLoyaltyProgramID() string
- func (l *LoyaltyEventExpirePoints) GetPoints() int
- func (l *LoyaltyEventExpirePoints) String() string
- func (l *LoyaltyEventExpirePoints) UnmarshalJSON(data []byte) error
- type LoyaltyEventFilter
- func (l *LoyaltyEventFilter) GetDateTimeFilter() *LoyaltyEventDateTimeFilter
- func (l *LoyaltyEventFilter) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyEventFilter) GetLocationFilter() *LoyaltyEventLocationFilter
- func (l *LoyaltyEventFilter) GetLoyaltyAccountFilter() *LoyaltyEventLoyaltyAccountFilter
- func (l *LoyaltyEventFilter) GetOrderFilter() *LoyaltyEventOrderFilter
- func (l *LoyaltyEventFilter) GetTypeFilter() *LoyaltyEventTypeFilter
- func (l *LoyaltyEventFilter) String() string
- func (l *LoyaltyEventFilter) UnmarshalJSON(data []byte) error
- type LoyaltyEventLocationFilter
- type LoyaltyEventLoyaltyAccountFilter
- type LoyaltyEventOrderFilter
- type LoyaltyEventOther
- type LoyaltyEventQuery
- type LoyaltyEventRedeemReward
- func (l *LoyaltyEventRedeemReward) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyEventRedeemReward) GetLoyaltyProgramID() string
- func (l *LoyaltyEventRedeemReward) GetOrderID() *string
- func (l *LoyaltyEventRedeemReward) GetRewardID() *string
- func (l *LoyaltyEventRedeemReward) String() string
- func (l *LoyaltyEventRedeemReward) UnmarshalJSON(data []byte) error
- type LoyaltyEventSource
- type LoyaltyEventType
- type LoyaltyEventTypeFilter
- type LoyaltyProgram
- func (l *LoyaltyProgram) GetAccrualRules() []*LoyaltyProgramAccrualRule
- func (l *LoyaltyProgram) GetCreatedAt() *string
- func (l *LoyaltyProgram) GetExpirationPolicy() *LoyaltyProgramExpirationPolicy
- func (l *LoyaltyProgram) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyProgram) GetID() *string
- func (l *LoyaltyProgram) GetLocationIDs() []string
- func (l *LoyaltyProgram) GetRewardTiers() []*LoyaltyProgramRewardTier
- func (l *LoyaltyProgram) GetStatus() *LoyaltyProgramStatus
- func (l *LoyaltyProgram) GetTerminology() *LoyaltyProgramTerminology
- func (l *LoyaltyProgram) GetUpdatedAt() *string
- func (l *LoyaltyProgram) String() string
- func (l *LoyaltyProgram) UnmarshalJSON(data []byte) error
- type LoyaltyProgramAccrualRule
- func (l *LoyaltyProgramAccrualRule) GetAccrualType() LoyaltyProgramAccrualRuleType
- func (l *LoyaltyProgramAccrualRule) GetCategoryData() *LoyaltyProgramAccrualRuleCategoryData
- func (l *LoyaltyProgramAccrualRule) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyProgramAccrualRule) GetItemVariationData() *LoyaltyProgramAccrualRuleItemVariationData
- func (l *LoyaltyProgramAccrualRule) GetPoints() *int
- func (l *LoyaltyProgramAccrualRule) GetSpendData() *LoyaltyProgramAccrualRuleSpendData
- func (l *LoyaltyProgramAccrualRule) GetVisitData() *LoyaltyProgramAccrualRuleVisitData
- func (l *LoyaltyProgramAccrualRule) String() string
- func (l *LoyaltyProgramAccrualRule) UnmarshalJSON(data []byte) error
- type LoyaltyProgramAccrualRuleCategoryData
- func (l *LoyaltyProgramAccrualRuleCategoryData) GetCategoryID() string
- func (l *LoyaltyProgramAccrualRuleCategoryData) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyProgramAccrualRuleCategoryData) String() string
- func (l *LoyaltyProgramAccrualRuleCategoryData) UnmarshalJSON(data []byte) error
- type LoyaltyProgramAccrualRuleItemVariationData
- func (l *LoyaltyProgramAccrualRuleItemVariationData) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyProgramAccrualRuleItemVariationData) GetItemVariationID() string
- func (l *LoyaltyProgramAccrualRuleItemVariationData) String() string
- func (l *LoyaltyProgramAccrualRuleItemVariationData) UnmarshalJSON(data []byte) error
- type LoyaltyProgramAccrualRuleSpendData
- func (l *LoyaltyProgramAccrualRuleSpendData) GetAmountMoney() *Money
- func (l *LoyaltyProgramAccrualRuleSpendData) GetExcludedCategoryIDs() []string
- func (l *LoyaltyProgramAccrualRuleSpendData) GetExcludedItemVariationIDs() []string
- func (l *LoyaltyProgramAccrualRuleSpendData) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyProgramAccrualRuleSpendData) GetTaxMode() LoyaltyProgramAccrualRuleTaxMode
- func (l *LoyaltyProgramAccrualRuleSpendData) String() string
- func (l *LoyaltyProgramAccrualRuleSpendData) UnmarshalJSON(data []byte) error
- type LoyaltyProgramAccrualRuleTaxMode
- type LoyaltyProgramAccrualRuleType
- type LoyaltyProgramAccrualRuleVisitData
- func (l *LoyaltyProgramAccrualRuleVisitData) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyProgramAccrualRuleVisitData) GetMinimumAmountMoney() *Money
- func (l *LoyaltyProgramAccrualRuleVisitData) GetTaxMode() LoyaltyProgramAccrualRuleTaxMode
- func (l *LoyaltyProgramAccrualRuleVisitData) String() string
- func (l *LoyaltyProgramAccrualRuleVisitData) UnmarshalJSON(data []byte) error
- type LoyaltyProgramExpirationPolicy
- type LoyaltyProgramRewardDefinition
- func (l *LoyaltyProgramRewardDefinition) GetCatalogObjectIDs() []string
- func (l *LoyaltyProgramRewardDefinition) GetDiscountType() LoyaltyProgramRewardDefinitionType
- func (l *LoyaltyProgramRewardDefinition) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyProgramRewardDefinition) GetFixedDiscountMoney() *Money
- func (l *LoyaltyProgramRewardDefinition) GetMaxDiscountMoney() *Money
- func (l *LoyaltyProgramRewardDefinition) GetPercentageDiscount() *string
- func (l *LoyaltyProgramRewardDefinition) GetScope() LoyaltyProgramRewardDefinitionScope
- func (l *LoyaltyProgramRewardDefinition) String() string
- func (l *LoyaltyProgramRewardDefinition) UnmarshalJSON(data []byte) error
- type LoyaltyProgramRewardDefinitionScope
- type LoyaltyProgramRewardDefinitionType
- type LoyaltyProgramRewardTier
- func (l *LoyaltyProgramRewardTier) GetCreatedAt() *string
- func (l *LoyaltyProgramRewardTier) GetDefinition() *LoyaltyProgramRewardDefinition
- func (l *LoyaltyProgramRewardTier) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyProgramRewardTier) GetID() *string
- func (l *LoyaltyProgramRewardTier) GetName() *string
- func (l *LoyaltyProgramRewardTier) GetPoints() int
- func (l *LoyaltyProgramRewardTier) GetPricingRuleReference() *CatalogObjectReference
- func (l *LoyaltyProgramRewardTier) String() string
- func (l *LoyaltyProgramRewardTier) UnmarshalJSON(data []byte) error
- type LoyaltyProgramStatus
- type LoyaltyProgramTerminology
- func (l *LoyaltyProgramTerminology) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyProgramTerminology) GetOne() string
- func (l *LoyaltyProgramTerminology) GetOther() string
- func (l *LoyaltyProgramTerminology) String() string
- func (l *LoyaltyProgramTerminology) UnmarshalJSON(data []byte) error
- type LoyaltyPromotion
- func (l *LoyaltyPromotion) GetAvailableTime() *LoyaltyPromotionAvailableTimeData
- func (l *LoyaltyPromotion) GetCanceledAt() *string
- func (l *LoyaltyPromotion) GetCreatedAt() *string
- func (l *LoyaltyPromotion) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyPromotion) GetID() *string
- func (l *LoyaltyPromotion) GetIncentive() *LoyaltyPromotionIncentive
- func (l *LoyaltyPromotion) GetLoyaltyProgramID() *string
- func (l *LoyaltyPromotion) GetMinimumSpendAmountMoney() *Money
- func (l *LoyaltyPromotion) GetName() string
- func (l *LoyaltyPromotion) GetQualifyingCategoryIDs() []string
- func (l *LoyaltyPromotion) GetQualifyingItemVariationIDs() []string
- func (l *LoyaltyPromotion) GetStatus() *LoyaltyPromotionStatus
- func (l *LoyaltyPromotion) GetTriggerLimit() *LoyaltyPromotionTriggerLimit
- func (l *LoyaltyPromotion) GetUpdatedAt() *string
- func (l *LoyaltyPromotion) String() string
- func (l *LoyaltyPromotion) UnmarshalJSON(data []byte) error
- type LoyaltyPromotionAvailableTimeData
- func (l *LoyaltyPromotionAvailableTimeData) GetEndDate() *string
- func (l *LoyaltyPromotionAvailableTimeData) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyPromotionAvailableTimeData) GetStartDate() *string
- func (l *LoyaltyPromotionAvailableTimeData) GetTimePeriods() []string
- func (l *LoyaltyPromotionAvailableTimeData) String() string
- func (l *LoyaltyPromotionAvailableTimeData) UnmarshalJSON(data []byte) error
- type LoyaltyPromotionIncentive
- func (l *LoyaltyPromotionIncentive) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyPromotionIncentive) GetPointsAdditionData() *LoyaltyPromotionIncentivePointsAdditionData
- func (l *LoyaltyPromotionIncentive) GetPointsMultiplierData() *LoyaltyPromotionIncentivePointsMultiplierData
- func (l *LoyaltyPromotionIncentive) GetType() LoyaltyPromotionIncentiveType
- func (l *LoyaltyPromotionIncentive) String() string
- func (l *LoyaltyPromotionIncentive) UnmarshalJSON(data []byte) error
- type LoyaltyPromotionIncentivePointsAdditionData
- func (l *LoyaltyPromotionIncentivePointsAdditionData) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyPromotionIncentivePointsAdditionData) GetPointsAddition() int
- func (l *LoyaltyPromotionIncentivePointsAdditionData) String() string
- func (l *LoyaltyPromotionIncentivePointsAdditionData) UnmarshalJSON(data []byte) error
- type LoyaltyPromotionIncentivePointsMultiplierData
- func (l *LoyaltyPromotionIncentivePointsMultiplierData) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyPromotionIncentivePointsMultiplierData) GetMultiplier() *string
- func (l *LoyaltyPromotionIncentivePointsMultiplierData) GetPointsMultiplier() *int
- func (l *LoyaltyPromotionIncentivePointsMultiplierData) String() string
- func (l *LoyaltyPromotionIncentivePointsMultiplierData) UnmarshalJSON(data []byte) error
- type LoyaltyPromotionIncentiveType
- type LoyaltyPromotionStatus
- type LoyaltyPromotionTriggerLimit
- func (l *LoyaltyPromotionTriggerLimit) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyPromotionTriggerLimit) GetInterval() *LoyaltyPromotionTriggerLimitInterval
- func (l *LoyaltyPromotionTriggerLimit) GetTimes() int
- func (l *LoyaltyPromotionTriggerLimit) String() string
- func (l *LoyaltyPromotionTriggerLimit) UnmarshalJSON(data []byte) error
- type LoyaltyPromotionTriggerLimitInterval
- type LoyaltyReward
- func (l *LoyaltyReward) GetCreatedAt() *string
- func (l *LoyaltyReward) GetExtraProperties() map[string]interface{}
- func (l *LoyaltyReward) GetID() *string
- func (l *LoyaltyReward) GetLoyaltyAccountID() string
- func (l *LoyaltyReward) GetOrderID() *string
- func (l *LoyaltyReward) GetPoints() *int
- func (l *LoyaltyReward) GetRedeemedAt() *string
- func (l *LoyaltyReward) GetRewardTierID() string
- func (l *LoyaltyReward) GetStatus() *LoyaltyRewardStatus
- func (l *LoyaltyReward) GetUpdatedAt() *string
- func (l *LoyaltyReward) String() string
- func (l *LoyaltyReward) UnmarshalJSON(data []byte) error
- type LoyaltyRewardStatus
- type MeasurementUnit
- func (m *MeasurementUnit) GetAreaUnit() *MeasurementUnitArea
- func (m *MeasurementUnit) GetCustomUnit() *MeasurementUnitCustom
- func (m *MeasurementUnit) GetExtraProperties() map[string]interface{}
- func (m *MeasurementUnit) GetLengthUnit() *MeasurementUnitLength
- func (m *MeasurementUnit) GetTimeUnit() *MeasurementUnitTime
- func (m *MeasurementUnit) GetType() *MeasurementUnitUnitType
- func (m *MeasurementUnit) GetVolumeUnit() *MeasurementUnitVolume
- func (m *MeasurementUnit) GetWeightUnit() *MeasurementUnitWeight
- func (m *MeasurementUnit) String() string
- func (m *MeasurementUnit) UnmarshalJSON(data []byte) error
- type MeasurementUnitArea
- type MeasurementUnitCustom
- type MeasurementUnitGeneric
- type MeasurementUnitLength
- type MeasurementUnitTime
- type MeasurementUnitUnitType
- type MeasurementUnitVolume
- type MeasurementUnitWeight
- type Merchant
- func (m *Merchant) GetBusinessName() *string
- func (m *Merchant) GetCountry() Country
- func (m *Merchant) GetCreatedAt() *string
- func (m *Merchant) GetCurrency() *Currency
- func (m *Merchant) GetExtraProperties() map[string]interface{}
- func (m *Merchant) GetID() *string
- func (m *Merchant) GetLanguageCode() *string
- func (m *Merchant) GetMainLocationID() *string
- func (m *Merchant) GetStatus() *MerchantStatus
- func (m *Merchant) String() string
- func (m *Merchant) UnmarshalJSON(data []byte) error
- type MerchantStatus
- type MerchantsGetRequest
- type MerchantsListRequest
- type ModifierLocationOverrides
- func (m *ModifierLocationOverrides) GetExtraProperties() map[string]interface{}
- func (m *ModifierLocationOverrides) GetLocationID() *string
- func (m *ModifierLocationOverrides) GetPriceMoney() *Money
- func (m *ModifierLocationOverrides) GetSoldOut() *bool
- func (m *ModifierLocationOverrides) String() string
- func (m *ModifierLocationOverrides) UnmarshalJSON(data []byte) error
- type Money
- type ObtainTokenRequest
- type ObtainTokenResponse
- func (o *ObtainTokenResponse) GetAccessToken() *string
- func (o *ObtainTokenResponse) GetErrors() []*Error
- func (o *ObtainTokenResponse) GetExpiresAt() *string
- func (o *ObtainTokenResponse) GetExtraProperties() map[string]interface{}
- func (o *ObtainTokenResponse) GetIDToken() *string
- func (o *ObtainTokenResponse) GetMerchantID() *string
- func (o *ObtainTokenResponse) GetPlanID() *string
- func (o *ObtainTokenResponse) GetRefreshToken() *string
- func (o *ObtainTokenResponse) GetRefreshTokenExpiresAt() *string
- func (o *ObtainTokenResponse) GetShortLived() *bool
- func (o *ObtainTokenResponse) GetSubscriptionID() *string
- func (o *ObtainTokenResponse) GetTokenType() *string
- func (o *ObtainTokenResponse) String() string
- func (o *ObtainTokenResponse) UnmarshalJSON(data []byte) error
- type OfflinePaymentDetails
- type Order
- func (o *Order) GetClosedAt() *string
- func (o *Order) GetCreatedAt() *string
- func (o *Order) GetCustomerID() *string
- func (o *Order) GetDiscounts() []*OrderLineItemDiscount
- func (o *Order) GetExtraProperties() map[string]interface{}
- func (o *Order) GetFulfillments() []*Fulfillment
- func (o *Order) GetID() *string
- func (o *Order) GetLineItems() []*OrderLineItem
- func (o *Order) GetLocationID() string
- func (o *Order) GetMetadata() map[string]*string
- func (o *Order) GetNetAmountDueMoney() *Money
- func (o *Order) GetNetAmounts() *OrderMoneyAmounts
- func (o *Order) GetPricingOptions() *OrderPricingOptions
- func (o *Order) GetReferenceID() *string
- func (o *Order) GetRefunds() []*Refund
- func (o *Order) GetReturnAmounts() *OrderMoneyAmounts
- func (o *Order) GetReturns() []*OrderReturn
- func (o *Order) GetRewards() []*OrderReward
- func (o *Order) GetRoundingAdjustment() *OrderRoundingAdjustment
- func (o *Order) GetServiceCharges() []*OrderServiceCharge
- func (o *Order) GetSource() *OrderSource
- func (o *Order) GetState() *OrderState
- func (o *Order) GetTaxes() []*OrderLineItemTax
- func (o *Order) GetTenders() []*Tender
- func (o *Order) GetTicketName() *string
- func (o *Order) GetTotalDiscountMoney() *Money
- func (o *Order) GetTotalMoney() *Money
- func (o *Order) GetTotalServiceChargeMoney() *Money
- func (o *Order) GetTotalTaxMoney() *Money
- func (o *Order) GetTotalTipMoney() *Money
- func (o *Order) GetUpdatedAt() *string
- func (o *Order) GetVersion() *int
- func (o *Order) String() string
- func (o *Order) UnmarshalJSON(data []byte) error
- type OrderEntry
- type OrderLineItem
- func (o *OrderLineItem) GetAppliedDiscounts() []*OrderLineItemAppliedDiscount
- func (o *OrderLineItem) GetAppliedServiceCharges() []*OrderLineItemAppliedServiceCharge
- func (o *OrderLineItem) GetAppliedTaxes() []*OrderLineItemAppliedTax
- func (o *OrderLineItem) GetBasePriceMoney() *Money
- func (o *OrderLineItem) GetCatalogObjectID() *string
- func (o *OrderLineItem) GetCatalogVersion() *int64
- func (o *OrderLineItem) GetExtraProperties() map[string]interface{}
- func (o *OrderLineItem) GetGrossSalesMoney() *Money
- func (o *OrderLineItem) GetItemType() *OrderLineItemItemType
- func (o *OrderLineItem) GetMetadata() map[string]*string
- func (o *OrderLineItem) GetModifiers() []*OrderLineItemModifier
- func (o *OrderLineItem) GetName() *string
- func (o *OrderLineItem) GetNote() *string
- func (o *OrderLineItem) GetPricingBlocklists() *OrderLineItemPricingBlocklists
- func (o *OrderLineItem) GetQuantity() string
- func (o *OrderLineItem) GetQuantityUnit() *OrderQuantityUnit
- func (o *OrderLineItem) GetTotalDiscountMoney() *Money
- func (o *OrderLineItem) GetTotalMoney() *Money
- func (o *OrderLineItem) GetTotalServiceChargeMoney() *Money
- func (o *OrderLineItem) GetTotalTaxMoney() *Money
- func (o *OrderLineItem) GetUID() *string
- func (o *OrderLineItem) GetVariationName() *string
- func (o *OrderLineItem) GetVariationTotalPriceMoney() *Money
- func (o *OrderLineItem) String() string
- func (o *OrderLineItem) UnmarshalJSON(data []byte) error
- type OrderLineItemAppliedDiscount
- func (o *OrderLineItemAppliedDiscount) GetAppliedMoney() *Money
- func (o *OrderLineItemAppliedDiscount) GetDiscountUID() string
- func (o *OrderLineItemAppliedDiscount) GetExtraProperties() map[string]interface{}
- func (o *OrderLineItemAppliedDiscount) GetUID() *string
- func (o *OrderLineItemAppliedDiscount) String() string
- func (o *OrderLineItemAppliedDiscount) UnmarshalJSON(data []byte) error
- type OrderLineItemAppliedServiceCharge
- func (o *OrderLineItemAppliedServiceCharge) GetAppliedMoney() *Money
- func (o *OrderLineItemAppliedServiceCharge) GetExtraProperties() map[string]interface{}
- func (o *OrderLineItemAppliedServiceCharge) GetServiceChargeUID() string
- func (o *OrderLineItemAppliedServiceCharge) GetUID() *string
- func (o *OrderLineItemAppliedServiceCharge) String() string
- func (o *OrderLineItemAppliedServiceCharge) UnmarshalJSON(data []byte) error
- type OrderLineItemAppliedTax
- func (o *OrderLineItemAppliedTax) GetAppliedMoney() *Money
- func (o *OrderLineItemAppliedTax) GetExtraProperties() map[string]interface{}
- func (o *OrderLineItemAppliedTax) GetTaxUID() string
- func (o *OrderLineItemAppliedTax) GetUID() *string
- func (o *OrderLineItemAppliedTax) String() string
- func (o *OrderLineItemAppliedTax) UnmarshalJSON(data []byte) error
- type OrderLineItemDiscount
- func (o *OrderLineItemDiscount) GetAmountMoney() *Money
- func (o *OrderLineItemDiscount) GetAppliedMoney() *Money
- func (o *OrderLineItemDiscount) GetCatalogObjectID() *string
- func (o *OrderLineItemDiscount) GetCatalogVersion() *int64
- func (o *OrderLineItemDiscount) GetExtraProperties() map[string]interface{}
- func (o *OrderLineItemDiscount) GetMetadata() map[string]*string
- func (o *OrderLineItemDiscount) GetName() *string
- func (o *OrderLineItemDiscount) GetPercentage() *string
- func (o *OrderLineItemDiscount) GetPricingRuleID() *string
- func (o *OrderLineItemDiscount) GetRewardIDs() []string
- func (o *OrderLineItemDiscount) GetScope() *OrderLineItemDiscountScope
- func (o *OrderLineItemDiscount) GetType() *OrderLineItemDiscountType
- func (o *OrderLineItemDiscount) GetUID() *string
- func (o *OrderLineItemDiscount) String() string
- func (o *OrderLineItemDiscount) UnmarshalJSON(data []byte) error
- type OrderLineItemDiscountScope
- type OrderLineItemDiscountType
- type OrderLineItemItemType
- type OrderLineItemModifier
- func (o *OrderLineItemModifier) GetBasePriceMoney() *Money
- func (o *OrderLineItemModifier) GetCatalogObjectID() *string
- func (o *OrderLineItemModifier) GetCatalogVersion() *int64
- func (o *OrderLineItemModifier) GetExtraProperties() map[string]interface{}
- func (o *OrderLineItemModifier) GetMetadata() map[string]*string
- func (o *OrderLineItemModifier) GetName() *string
- func (o *OrderLineItemModifier) GetQuantity() *string
- func (o *OrderLineItemModifier) GetTotalPriceMoney() *Money
- func (o *OrderLineItemModifier) GetUID() *string
- func (o *OrderLineItemModifier) String() string
- func (o *OrderLineItemModifier) UnmarshalJSON(data []byte) error
- type OrderLineItemPricingBlocklists
- func (o *OrderLineItemPricingBlocklists) GetBlockedDiscounts() []*OrderLineItemPricingBlocklistsBlockedDiscount
- func (o *OrderLineItemPricingBlocklists) GetBlockedTaxes() []*OrderLineItemPricingBlocklistsBlockedTax
- func (o *OrderLineItemPricingBlocklists) GetExtraProperties() map[string]interface{}
- func (o *OrderLineItemPricingBlocklists) String() string
- func (o *OrderLineItemPricingBlocklists) UnmarshalJSON(data []byte) error
- type OrderLineItemPricingBlocklistsBlockedDiscount
- func (o *OrderLineItemPricingBlocklistsBlockedDiscount) GetDiscountCatalogObjectID() *string
- func (o *OrderLineItemPricingBlocklistsBlockedDiscount) GetDiscountUID() *string
- func (o *OrderLineItemPricingBlocklistsBlockedDiscount) GetExtraProperties() map[string]interface{}
- func (o *OrderLineItemPricingBlocklistsBlockedDiscount) GetUID() *string
- func (o *OrderLineItemPricingBlocklistsBlockedDiscount) String() string
- func (o *OrderLineItemPricingBlocklistsBlockedDiscount) UnmarshalJSON(data []byte) error
- type OrderLineItemPricingBlocklistsBlockedTax
- func (o *OrderLineItemPricingBlocklistsBlockedTax) GetExtraProperties() map[string]interface{}
- func (o *OrderLineItemPricingBlocklistsBlockedTax) GetTaxCatalogObjectID() *string
- func (o *OrderLineItemPricingBlocklistsBlockedTax) GetTaxUID() *string
- func (o *OrderLineItemPricingBlocklistsBlockedTax) GetUID() *string
- func (o *OrderLineItemPricingBlocklistsBlockedTax) String() string
- func (o *OrderLineItemPricingBlocklistsBlockedTax) UnmarshalJSON(data []byte) error
- type OrderLineItemTax
- func (o *OrderLineItemTax) GetAppliedMoney() *Money
- func (o *OrderLineItemTax) GetAutoApplied() *bool
- func (o *OrderLineItemTax) GetCatalogObjectID() *string
- func (o *OrderLineItemTax) GetCatalogVersion() *int64
- func (o *OrderLineItemTax) GetExtraProperties() map[string]interface{}
- func (o *OrderLineItemTax) GetMetadata() map[string]*string
- func (o *OrderLineItemTax) GetName() *string
- func (o *OrderLineItemTax) GetPercentage() *string
- func (o *OrderLineItemTax) GetScope() *OrderLineItemTaxScope
- func (o *OrderLineItemTax) GetType() *OrderLineItemTaxType
- func (o *OrderLineItemTax) GetUID() *string
- func (o *OrderLineItemTax) String() string
- func (o *OrderLineItemTax) UnmarshalJSON(data []byte) error
- type OrderLineItemTaxScope
- type OrderLineItemTaxType
- type OrderMoneyAmounts
- func (o *OrderMoneyAmounts) GetDiscountMoney() *Money
- func (o *OrderMoneyAmounts) GetExtraProperties() map[string]interface{}
- func (o *OrderMoneyAmounts) GetServiceChargeMoney() *Money
- func (o *OrderMoneyAmounts) GetTaxMoney() *Money
- func (o *OrderMoneyAmounts) GetTipMoney() *Money
- func (o *OrderMoneyAmounts) GetTotalMoney() *Money
- func (o *OrderMoneyAmounts) String() string
- func (o *OrderMoneyAmounts) UnmarshalJSON(data []byte) error
- type OrderPricingOptions
- type OrderQuantityUnit
- func (o *OrderQuantityUnit) GetCatalogObjectID() *string
- func (o *OrderQuantityUnit) GetCatalogVersion() *int64
- func (o *OrderQuantityUnit) GetExtraProperties() map[string]interface{}
- func (o *OrderQuantityUnit) GetMeasurementUnit() *MeasurementUnit
- func (o *OrderQuantityUnit) GetPrecision() *int
- func (o *OrderQuantityUnit) String() string
- func (o *OrderQuantityUnit) UnmarshalJSON(data []byte) error
- type OrderReturn
- func (o *OrderReturn) GetExtraProperties() map[string]interface{}
- func (o *OrderReturn) GetReturnAmounts() *OrderMoneyAmounts
- func (o *OrderReturn) GetReturnDiscounts() []*OrderReturnDiscount
- func (o *OrderReturn) GetReturnLineItems() []*OrderReturnLineItem
- func (o *OrderReturn) GetReturnServiceCharges() []*OrderReturnServiceCharge
- func (o *OrderReturn) GetReturnTaxes() []*OrderReturnTax
- func (o *OrderReturn) GetReturnTips() []*OrderReturnTip
- func (o *OrderReturn) GetRoundingAdjustment() *OrderRoundingAdjustment
- func (o *OrderReturn) GetSourceOrderID() *string
- func (o *OrderReturn) GetUID() *string
- func (o *OrderReturn) String() string
- func (o *OrderReturn) UnmarshalJSON(data []byte) error
- type OrderReturnDiscount
- func (o *OrderReturnDiscount) GetAmountMoney() *Money
- func (o *OrderReturnDiscount) GetAppliedMoney() *Money
- func (o *OrderReturnDiscount) GetCatalogObjectID() *string
- func (o *OrderReturnDiscount) GetCatalogVersion() *int64
- func (o *OrderReturnDiscount) GetExtraProperties() map[string]interface{}
- func (o *OrderReturnDiscount) GetName() *string
- func (o *OrderReturnDiscount) GetPercentage() *string
- func (o *OrderReturnDiscount) GetScope() *OrderLineItemDiscountScope
- func (o *OrderReturnDiscount) GetSourceDiscountUID() *string
- func (o *OrderReturnDiscount) GetType() *OrderLineItemDiscountType
- func (o *OrderReturnDiscount) GetUID() *string
- func (o *OrderReturnDiscount) String() string
- func (o *OrderReturnDiscount) UnmarshalJSON(data []byte) error
- type OrderReturnLineItem
- func (o *OrderReturnLineItem) GetAppliedDiscounts() []*OrderLineItemAppliedDiscount
- func (o *OrderReturnLineItem) GetAppliedServiceCharges() []*OrderLineItemAppliedServiceCharge
- func (o *OrderReturnLineItem) GetAppliedTaxes() []*OrderLineItemAppliedTax
- func (o *OrderReturnLineItem) GetBasePriceMoney() *Money
- func (o *OrderReturnLineItem) GetCatalogObjectID() *string
- func (o *OrderReturnLineItem) GetCatalogVersion() *int64
- func (o *OrderReturnLineItem) GetExtraProperties() map[string]interface{}
- func (o *OrderReturnLineItem) GetGrossReturnMoney() *Money
- func (o *OrderReturnLineItem) GetItemType() *OrderLineItemItemType
- func (o *OrderReturnLineItem) GetName() *string
- func (o *OrderReturnLineItem) GetNote() *string
- func (o *OrderReturnLineItem) GetQuantity() string
- func (o *OrderReturnLineItem) GetQuantityUnit() *OrderQuantityUnit
- func (o *OrderReturnLineItem) GetReturnModifiers() []*OrderReturnLineItemModifier
- func (o *OrderReturnLineItem) GetSourceLineItemUID() *string
- func (o *OrderReturnLineItem) GetTotalDiscountMoney() *Money
- func (o *OrderReturnLineItem) GetTotalMoney() *Money
- func (o *OrderReturnLineItem) GetTotalServiceChargeMoney() *Money
- func (o *OrderReturnLineItem) GetTotalTaxMoney() *Money
- func (o *OrderReturnLineItem) GetUID() *string
- func (o *OrderReturnLineItem) GetVariationName() *string
- func (o *OrderReturnLineItem) GetVariationTotalPriceMoney() *Money
- func (o *OrderReturnLineItem) String() string
- func (o *OrderReturnLineItem) UnmarshalJSON(data []byte) error
- type OrderReturnLineItemModifier
- func (o *OrderReturnLineItemModifier) GetBasePriceMoney() *Money
- func (o *OrderReturnLineItemModifier) GetCatalogObjectID() *string
- func (o *OrderReturnLineItemModifier) GetCatalogVersion() *int64
- func (o *OrderReturnLineItemModifier) GetExtraProperties() map[string]interface{}
- func (o *OrderReturnLineItemModifier) GetName() *string
- func (o *OrderReturnLineItemModifier) GetQuantity() *string
- func (o *OrderReturnLineItemModifier) GetSourceModifierUID() *string
- func (o *OrderReturnLineItemModifier) GetTotalPriceMoney() *Money
- func (o *OrderReturnLineItemModifier) GetUID() *string
- func (o *OrderReturnLineItemModifier) String() string
- func (o *OrderReturnLineItemModifier) UnmarshalJSON(data []byte) error
- type OrderReturnServiceCharge
- func (o *OrderReturnServiceCharge) GetAmountMoney() *Money
- func (o *OrderReturnServiceCharge) GetAppliedMoney() *Money
- func (o *OrderReturnServiceCharge) GetAppliedTaxes() []*OrderLineItemAppliedTax
- func (o *OrderReturnServiceCharge) GetCalculationPhase() *OrderServiceChargeCalculationPhase
- func (o *OrderReturnServiceCharge) GetCatalogObjectID() *string
- func (o *OrderReturnServiceCharge) GetCatalogVersion() *int64
- func (o *OrderReturnServiceCharge) GetExtraProperties() map[string]interface{}
- func (o *OrderReturnServiceCharge) GetName() *string
- func (o *OrderReturnServiceCharge) GetPercentage() *string
- func (o *OrderReturnServiceCharge) GetScope() *OrderServiceChargeScope
- func (o *OrderReturnServiceCharge) GetSourceServiceChargeUID() *string
- func (o *OrderReturnServiceCharge) GetTaxable() *bool
- func (o *OrderReturnServiceCharge) GetTotalMoney() *Money
- func (o *OrderReturnServiceCharge) GetTotalTaxMoney() *Money
- func (o *OrderReturnServiceCharge) GetTreatmentType() *OrderServiceChargeTreatmentType
- func (o *OrderReturnServiceCharge) GetUID() *string
- func (o *OrderReturnServiceCharge) String() string
- func (o *OrderReturnServiceCharge) UnmarshalJSON(data []byte) error
- type OrderReturnTax
- func (o *OrderReturnTax) GetAppliedMoney() *Money
- func (o *OrderReturnTax) GetCatalogObjectID() *string
- func (o *OrderReturnTax) GetCatalogVersion() *int64
- func (o *OrderReturnTax) GetExtraProperties() map[string]interface{}
- func (o *OrderReturnTax) GetName() *string
- func (o *OrderReturnTax) GetPercentage() *string
- func (o *OrderReturnTax) GetScope() *OrderLineItemTaxScope
- func (o *OrderReturnTax) GetSourceTaxUID() *string
- func (o *OrderReturnTax) GetType() *OrderLineItemTaxType
- func (o *OrderReturnTax) GetUID() *string
- func (o *OrderReturnTax) String() string
- func (o *OrderReturnTax) UnmarshalJSON(data []byte) error
- type OrderReturnTip
- func (o *OrderReturnTip) GetAppliedMoney() *Money
- func (o *OrderReturnTip) GetExtraProperties() map[string]interface{}
- func (o *OrderReturnTip) GetSourceTenderID() *string
- func (o *OrderReturnTip) GetSourceTenderUID() *string
- func (o *OrderReturnTip) GetUID() *string
- func (o *OrderReturnTip) String() string
- func (o *OrderReturnTip) UnmarshalJSON(data []byte) error
- type OrderReward
- type OrderRoundingAdjustment
- func (o *OrderRoundingAdjustment) GetAmountMoney() *Money
- func (o *OrderRoundingAdjustment) GetExtraProperties() map[string]interface{}
- func (o *OrderRoundingAdjustment) GetName() *string
- func (o *OrderRoundingAdjustment) GetUID() *string
- func (o *OrderRoundingAdjustment) String() string
- func (o *OrderRoundingAdjustment) UnmarshalJSON(data []byte) error
- type OrderServiceCharge
- func (o *OrderServiceCharge) GetAmountMoney() *Money
- func (o *OrderServiceCharge) GetAppliedMoney() *Money
- func (o *OrderServiceCharge) GetAppliedTaxes() []*OrderLineItemAppliedTax
- func (o *OrderServiceCharge) GetCalculationPhase() *OrderServiceChargeCalculationPhase
- func (o *OrderServiceCharge) GetCatalogObjectID() *string
- func (o *OrderServiceCharge) GetCatalogVersion() *int64
- func (o *OrderServiceCharge) GetExtraProperties() map[string]interface{}
- func (o *OrderServiceCharge) GetMetadata() map[string]*string
- func (o *OrderServiceCharge) GetName() *string
- func (o *OrderServiceCharge) GetPercentage() *string
- func (o *OrderServiceCharge) GetScope() *OrderServiceChargeScope
- func (o *OrderServiceCharge) GetTaxable() *bool
- func (o *OrderServiceCharge) GetTotalMoney() *Money
- func (o *OrderServiceCharge) GetTotalTaxMoney() *Money
- func (o *OrderServiceCharge) GetTreatmentType() *OrderServiceChargeTreatmentType
- func (o *OrderServiceCharge) GetType() *OrderServiceChargeType
- func (o *OrderServiceCharge) GetUID() *string
- func (o *OrderServiceCharge) String() string
- func (o *OrderServiceCharge) UnmarshalJSON(data []byte) error
- type OrderServiceChargeCalculationPhase
- type OrderServiceChargeScope
- type OrderServiceChargeTreatmentType
- type OrderServiceChargeType
- type OrderSource
- type OrderState
- type OrdersGetRequest
- type PauseSubscriptionRequest
- type PauseSubscriptionResponse
- func (p *PauseSubscriptionResponse) GetActions() []*SubscriptionAction
- func (p *PauseSubscriptionResponse) GetErrors() []*Error
- func (p *PauseSubscriptionResponse) GetExtraProperties() map[string]interface{}
- func (p *PauseSubscriptionResponse) GetSubscription() *Subscription
- func (p *PauseSubscriptionResponse) String() string
- func (p *PauseSubscriptionResponse) UnmarshalJSON(data []byte) error
- type PayOrderRequest
- type PayOrderResponse
- type Payment
- func (p *Payment) GetAmountMoney() *Money
- func (p *Payment) GetAppFeeMoney() *Money
- func (p *Payment) GetApplicationDetails() *ApplicationDetails
- func (p *Payment) GetApprovedMoney() *Money
- func (p *Payment) GetBankAccountDetails() *BankAccountPaymentDetails
- func (p *Payment) GetBillingAddress() *Address
- func (p *Payment) GetBuyNowPayLaterDetails() *BuyNowPayLaterDetails
- func (p *Payment) GetBuyerEmailAddress() *string
- func (p *Payment) GetCapabilities() []string
- func (p *Payment) GetCardDetails() *CardPaymentDetails
- func (p *Payment) GetCashDetails() *CashPaymentDetails
- func (p *Payment) GetCreatedAt() *string
- func (p *Payment) GetCustomerID() *string
- func (p *Payment) GetDelayAction() *string
- func (p *Payment) GetDelayDuration() *string
- func (p *Payment) GetDelayedUntil() *string
- func (p *Payment) GetDeviceDetails() *DeviceDetails
- func (p *Payment) GetEmployeeID() *string
- func (p *Payment) GetExternalDetails() *ExternalPaymentDetails
- func (p *Payment) GetExtraProperties() map[string]interface{}
- func (p *Payment) GetID() *string
- func (p *Payment) GetIsOfflinePayment() *bool
- func (p *Payment) GetLocationID() *string
- func (p *Payment) GetNote() *string
- func (p *Payment) GetOfflinePaymentDetails() *OfflinePaymentDetails
- func (p *Payment) GetOrderID() *string
- func (p *Payment) GetProcessingFee() []*ProcessingFee
- func (p *Payment) GetReceiptNumber() *string
- func (p *Payment) GetReceiptURL() *string
- func (p *Payment) GetReferenceID() *string
- func (p *Payment) GetRefundIDs() []string
- func (p *Payment) GetRefundedMoney() *Money
- func (p *Payment) GetRiskEvaluation() *RiskEvaluation
- func (p *Payment) GetShippingAddress() *Address
- func (p *Payment) GetSourceType() *string
- func (p *Payment) GetSquareAccountDetails() *SquareAccountDetails
- func (p *Payment) GetStatementDescriptionIdentifier() *string
- func (p *Payment) GetStatus() *string
- func (p *Payment) GetTeamMemberID() *string
- func (p *Payment) GetTerminalCheckoutID() *string
- func (p *Payment) GetTipMoney() *Money
- func (p *Payment) GetTotalMoney() *Money
- func (p *Payment) GetUpdatedAt() *string
- func (p *Payment) GetVersionToken() *string
- func (p *Payment) GetWalletDetails() *DigitalWalletDetails
- func (p *Payment) String() string
- func (p *Payment) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivityAppFeeRefundDetail
- func (p *PaymentBalanceActivityAppFeeRefundDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivityAppFeeRefundDetail) GetLocationID() *string
- func (p *PaymentBalanceActivityAppFeeRefundDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivityAppFeeRefundDetail) GetRefundID() *string
- func (p *PaymentBalanceActivityAppFeeRefundDetail) String() string
- func (p *PaymentBalanceActivityAppFeeRefundDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivityAppFeeRevenueDetail
- func (p *PaymentBalanceActivityAppFeeRevenueDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivityAppFeeRevenueDetail) GetLocationID() *string
- func (p *PaymentBalanceActivityAppFeeRevenueDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivityAppFeeRevenueDetail) String() string
- func (p *PaymentBalanceActivityAppFeeRevenueDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivityAutomaticSavingsDetail
- func (p *PaymentBalanceActivityAutomaticSavingsDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivityAutomaticSavingsDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivityAutomaticSavingsDetail) GetPayoutID() *string
- func (p *PaymentBalanceActivityAutomaticSavingsDetail) String() string
- func (p *PaymentBalanceActivityAutomaticSavingsDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivityAutomaticSavingsReversedDetail
- func (p *PaymentBalanceActivityAutomaticSavingsReversedDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivityAutomaticSavingsReversedDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivityAutomaticSavingsReversedDetail) GetPayoutID() *string
- func (p *PaymentBalanceActivityAutomaticSavingsReversedDetail) String() string
- func (p *PaymentBalanceActivityAutomaticSavingsReversedDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivityChargeDetail
- type PaymentBalanceActivityDepositFeeDetail
- func (p *PaymentBalanceActivityDepositFeeDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivityDepositFeeDetail) GetPayoutID() *string
- func (p *PaymentBalanceActivityDepositFeeDetail) String() string
- func (p *PaymentBalanceActivityDepositFeeDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivityDepositFeeReversedDetail
- func (p *PaymentBalanceActivityDepositFeeReversedDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivityDepositFeeReversedDetail) GetPayoutID() *string
- func (p *PaymentBalanceActivityDepositFeeReversedDetail) String() string
- func (p *PaymentBalanceActivityDepositFeeReversedDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivityDisputeDetail
- func (p *PaymentBalanceActivityDisputeDetail) GetDisputeID() *string
- func (p *PaymentBalanceActivityDisputeDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivityDisputeDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivityDisputeDetail) String() string
- func (p *PaymentBalanceActivityDisputeDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivityFeeDetail
- type PaymentBalanceActivityFreeProcessingDetail
- func (p *PaymentBalanceActivityFreeProcessingDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivityFreeProcessingDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivityFreeProcessingDetail) String() string
- func (p *PaymentBalanceActivityFreeProcessingDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivityHoldAdjustmentDetail
- func (p *PaymentBalanceActivityHoldAdjustmentDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivityHoldAdjustmentDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivityHoldAdjustmentDetail) String() string
- func (p *PaymentBalanceActivityHoldAdjustmentDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivityOpenDisputeDetail
- func (p *PaymentBalanceActivityOpenDisputeDetail) GetDisputeID() *string
- func (p *PaymentBalanceActivityOpenDisputeDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivityOpenDisputeDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivityOpenDisputeDetail) String() string
- func (p *PaymentBalanceActivityOpenDisputeDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivityOtherAdjustmentDetail
- func (p *PaymentBalanceActivityOtherAdjustmentDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivityOtherAdjustmentDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivityOtherAdjustmentDetail) String() string
- func (p *PaymentBalanceActivityOtherAdjustmentDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivityOtherDetail
- type PaymentBalanceActivityRefundDetail
- func (p *PaymentBalanceActivityRefundDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivityRefundDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivityRefundDetail) GetRefundID() *string
- func (p *PaymentBalanceActivityRefundDetail) String() string
- func (p *PaymentBalanceActivityRefundDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivityReleaseAdjustmentDetail
- func (p *PaymentBalanceActivityReleaseAdjustmentDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivityReleaseAdjustmentDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivityReleaseAdjustmentDetail) String() string
- func (p *PaymentBalanceActivityReleaseAdjustmentDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivityReserveHoldDetail
- func (p *PaymentBalanceActivityReserveHoldDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivityReserveHoldDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivityReserveHoldDetail) String() string
- func (p *PaymentBalanceActivityReserveHoldDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivityReserveReleaseDetail
- func (p *PaymentBalanceActivityReserveReleaseDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivityReserveReleaseDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivityReserveReleaseDetail) String() string
- func (p *PaymentBalanceActivityReserveReleaseDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivitySquareCapitalPaymentDetail
- func (p *PaymentBalanceActivitySquareCapitalPaymentDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivitySquareCapitalPaymentDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivitySquareCapitalPaymentDetail) String() string
- func (p *PaymentBalanceActivitySquareCapitalPaymentDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivitySquareCapitalReversedPaymentDetail
- func (p *PaymentBalanceActivitySquareCapitalReversedPaymentDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivitySquareCapitalReversedPaymentDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivitySquareCapitalReversedPaymentDetail) String() string
- func (p *PaymentBalanceActivitySquareCapitalReversedPaymentDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivitySquarePayrollTransferDetail
- func (p *PaymentBalanceActivitySquarePayrollTransferDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivitySquarePayrollTransferDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivitySquarePayrollTransferDetail) String() string
- func (p *PaymentBalanceActivitySquarePayrollTransferDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivitySquarePayrollTransferReversedDetail
- func (p *PaymentBalanceActivitySquarePayrollTransferReversedDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivitySquarePayrollTransferReversedDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivitySquarePayrollTransferReversedDetail) String() string
- func (p *PaymentBalanceActivitySquarePayrollTransferReversedDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivityTaxOnFeeDetail
- func (p *PaymentBalanceActivityTaxOnFeeDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivityTaxOnFeeDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivityTaxOnFeeDetail) GetTaxRateDescription() *string
- func (p *PaymentBalanceActivityTaxOnFeeDetail) String() string
- func (p *PaymentBalanceActivityTaxOnFeeDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivityThirdPartyFeeDetail
- func (p *PaymentBalanceActivityThirdPartyFeeDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivityThirdPartyFeeDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivityThirdPartyFeeDetail) String() string
- func (p *PaymentBalanceActivityThirdPartyFeeDetail) UnmarshalJSON(data []byte) error
- type PaymentBalanceActivityThirdPartyFeeRefundDetail
- func (p *PaymentBalanceActivityThirdPartyFeeRefundDetail) GetExtraProperties() map[string]interface{}
- func (p *PaymentBalanceActivityThirdPartyFeeRefundDetail) GetPaymentID() *string
- func (p *PaymentBalanceActivityThirdPartyFeeRefundDetail) GetRefundID() *string
- func (p *PaymentBalanceActivityThirdPartyFeeRefundDetail) String() string
- func (p *PaymentBalanceActivityThirdPartyFeeRefundDetail) UnmarshalJSON(data []byte) error
- type PaymentLink
- func (p *PaymentLink) GetCheckoutOptions() *CheckoutOptions
- func (p *PaymentLink) GetCreatedAt() *string
- func (p *PaymentLink) GetDescription() *string
- func (p *PaymentLink) GetExtraProperties() map[string]interface{}
- func (p *PaymentLink) GetID() *string
- func (p *PaymentLink) GetLongURL() *string
- func (p *PaymentLink) GetOrderID() *string
- func (p *PaymentLink) GetPaymentNote() *string
- func (p *PaymentLink) GetPrePopulatedData() *PrePopulatedData
- func (p *PaymentLink) GetURL() *string
- func (p *PaymentLink) GetUpdatedAt() *string
- func (p *PaymentLink) GetVersion() int
- func (p *PaymentLink) String() string
- func (p *PaymentLink) UnmarshalJSON(data []byte) error
- type PaymentLinkRelatedResources
- func (p *PaymentLinkRelatedResources) GetExtraProperties() map[string]interface{}
- func (p *PaymentLinkRelatedResources) GetOrders() []*Order
- func (p *PaymentLinkRelatedResources) GetSubscriptionPlans() []*CatalogObject
- func (p *PaymentLinkRelatedResources) String() string
- func (p *PaymentLinkRelatedResources) UnmarshalJSON(data []byte) error
- type PaymentOptions
- func (p *PaymentOptions) GetAcceptPartialAuthorization() *bool
- func (p *PaymentOptions) GetAutocomplete() *bool
- func (p *PaymentOptions) GetDelayAction() *PaymentOptionsDelayAction
- func (p *PaymentOptions) GetDelayDuration() *string
- func (p *PaymentOptions) GetExtraProperties() map[string]interface{}
- func (p *PaymentOptions) String() string
- func (p *PaymentOptions) UnmarshalJSON(data []byte) error
- type PaymentOptionsDelayAction
- type PaymentRefund
- func (p *PaymentRefund) GetAmountMoney() *Money
- func (p *PaymentRefund) GetAppFeeMoney() *Money
- func (p *PaymentRefund) GetCreatedAt() *string
- func (p *PaymentRefund) GetDestinationDetails() *DestinationDetails
- func (p *PaymentRefund) GetDestinationType() *string
- func (p *PaymentRefund) GetExtraProperties() map[string]interface{}
- func (p *PaymentRefund) GetID() string
- func (p *PaymentRefund) GetLocationID() *string
- func (p *PaymentRefund) GetOrderID() *string
- func (p *PaymentRefund) GetPaymentID() *string
- func (p *PaymentRefund) GetProcessingFee() []*ProcessingFee
- func (p *PaymentRefund) GetReason() *string
- func (p *PaymentRefund) GetStatus() *string
- func (p *PaymentRefund) GetTeamMemberID() *string
- func (p *PaymentRefund) GetTerminalRefundID() *string
- func (p *PaymentRefund) GetUnlinked() *bool
- func (p *PaymentRefund) GetUpdatedAt() *string
- func (p *PaymentRefund) String() string
- func (p *PaymentRefund) UnmarshalJSON(data []byte) error
- type PaymentsCancelRequest
- type PaymentsGetRequest
- type PaymentsListRequest
- type Payout
- func (p *Payout) GetAmountMoney() *Money
- func (p *Payout) GetArrivalDate() *string
- func (p *Payout) GetCreatedAt() *string
- func (p *Payout) GetDestination() *Destination
- func (p *Payout) GetEndToEndID() *string
- func (p *Payout) GetExtraProperties() map[string]interface{}
- func (p *Payout) GetID() string
- func (p *Payout) GetLocationID() string
- func (p *Payout) GetPayoutFee() []*PayoutFee
- func (p *Payout) GetStatus() *PayoutStatus
- func (p *Payout) GetType() *PayoutType
- func (p *Payout) GetUpdatedAt() *string
- func (p *Payout) GetVersion() *int
- func (p *Payout) String() string
- func (p *Payout) UnmarshalJSON(data []byte) error
- type PayoutEntry
- func (p *PayoutEntry) GetEffectiveAt() *string
- func (p *PayoutEntry) GetExtraProperties() map[string]interface{}
- func (p *PayoutEntry) GetFeeAmountMoney() *Money
- func (p *PayoutEntry) GetGrossAmountMoney() *Money
- func (p *PayoutEntry) GetID() string
- func (p *PayoutEntry) GetNetAmountMoney() *Money
- func (p *PayoutEntry) GetPayoutID() string
- func (p *PayoutEntry) GetType() *ActivityType
- func (p *PayoutEntry) GetTypeAppFeeRefundDetails() *PaymentBalanceActivityAppFeeRefundDetail
- func (p *PayoutEntry) GetTypeAppFeeRevenueDetails() *PaymentBalanceActivityAppFeeRevenueDetail
- func (p *PayoutEntry) GetTypeAutomaticSavingsDetails() *PaymentBalanceActivityAutomaticSavingsDetail
- func (p *PayoutEntry) GetTypeAutomaticSavingsReversedDetails() *PaymentBalanceActivityAutomaticSavingsReversedDetail
- func (p *PayoutEntry) GetTypeChargeDetails() *PaymentBalanceActivityChargeDetail
- func (p *PayoutEntry) GetTypeDepositFeeDetails() *PaymentBalanceActivityDepositFeeDetail
- func (p *PayoutEntry) GetTypeDepositFeeReversedDetails() *PaymentBalanceActivityDepositFeeReversedDetail
- func (p *PayoutEntry) GetTypeDisputeDetails() *PaymentBalanceActivityDisputeDetail
- func (p *PayoutEntry) GetTypeFeeDetails() *PaymentBalanceActivityFeeDetail
- func (p *PayoutEntry) GetTypeFreeProcessingDetails() *PaymentBalanceActivityFreeProcessingDetail
- func (p *PayoutEntry) GetTypeHoldAdjustmentDetails() *PaymentBalanceActivityHoldAdjustmentDetail
- func (p *PayoutEntry) GetTypeOpenDisputeDetails() *PaymentBalanceActivityOpenDisputeDetail
- func (p *PayoutEntry) GetTypeOtherAdjustmentDetails() *PaymentBalanceActivityOtherAdjustmentDetail
- func (p *PayoutEntry) GetTypeOtherDetails() *PaymentBalanceActivityOtherDetail
- func (p *PayoutEntry) GetTypeRefundDetails() *PaymentBalanceActivityRefundDetail
- func (p *PayoutEntry) GetTypeReleaseAdjustmentDetails() *PaymentBalanceActivityReleaseAdjustmentDetail
- func (p *PayoutEntry) GetTypeReserveHoldDetails() *PaymentBalanceActivityReserveHoldDetail
- func (p *PayoutEntry) GetTypeReserveReleaseDetails() *PaymentBalanceActivityReserveReleaseDetail
- func (p *PayoutEntry) GetTypeSquareCapitalPaymentDetails() *PaymentBalanceActivitySquareCapitalPaymentDetail
- func (p *PayoutEntry) GetTypeSquareCapitalReversedPaymentDetails() *PaymentBalanceActivitySquareCapitalReversedPaymentDetail
- func (p *PayoutEntry) GetTypeSquarePayrollTransferDetails() *PaymentBalanceActivitySquarePayrollTransferDetail
- func (p *PayoutEntry) GetTypeSquarePayrollTransferReversedDetails() *PaymentBalanceActivitySquarePayrollTransferReversedDetail
- func (p *PayoutEntry) GetTypeTaxOnFeeDetails() *PaymentBalanceActivityTaxOnFeeDetail
- func (p *PayoutEntry) GetTypeThirdPartyFeeDetails() *PaymentBalanceActivityThirdPartyFeeDetail
- func (p *PayoutEntry) GetTypeThirdPartyFeeRefundDetails() *PaymentBalanceActivityThirdPartyFeeRefundDetail
- func (p *PayoutEntry) String() string
- func (p *PayoutEntry) UnmarshalJSON(data []byte) error
- type PayoutFee
- type PayoutFeeType
- type PayoutStatus
- type PayoutType
- type PayoutsGetRequest
- type PayoutsListEntriesRequest
- type PayoutsListRequest
- type Phase
- type PhaseInput
- type PrePopulatedData
- func (p *PrePopulatedData) GetBuyerAddress() *Address
- func (p *PrePopulatedData) GetBuyerEmail() *string
- func (p *PrePopulatedData) GetBuyerPhoneNumber() *string
- func (p *PrePopulatedData) GetExtraProperties() map[string]interface{}
- func (p *PrePopulatedData) String() string
- func (p *PrePopulatedData) UnmarshalJSON(data []byte) error
- type ProcessingFee
- func (p *ProcessingFee) GetAmountMoney() *Money
- func (p *ProcessingFee) GetEffectiveAt() *string
- func (p *ProcessingFee) GetExtraProperties() map[string]interface{}
- func (p *ProcessingFee) GetType() *string
- func (p *ProcessingFee) String() string
- func (p *ProcessingFee) UnmarshalJSON(data []byte) error
- type Product
- type ProductType
- type PublishInvoiceRequest
- type PublishInvoiceResponse
- func (p *PublishInvoiceResponse) GetErrors() []*Error
- func (p *PublishInvoiceResponse) GetExtraProperties() map[string]interface{}
- func (p *PublishInvoiceResponse) GetInvoice() *Invoice
- func (p *PublishInvoiceResponse) String() string
- func (p *PublishInvoiceResponse) UnmarshalJSON(data []byte) error
- type PublishScheduledShiftRequest
- type PublishScheduledShiftResponse
- func (p *PublishScheduledShiftResponse) GetErrors() []*Error
- func (p *PublishScheduledShiftResponse) GetExtraProperties() map[string]interface{}
- func (p *PublishScheduledShiftResponse) GetScheduledShift() *ScheduledShift
- func (p *PublishScheduledShiftResponse) String() string
- func (p *PublishScheduledShiftResponse) UnmarshalJSON(data []byte) error
- type QrCodeOptions
- type QuickPay
- type Range
- type ReceiptOptions
- func (r *ReceiptOptions) GetExtraProperties() map[string]interface{}
- func (r *ReceiptOptions) GetIsDuplicate() *bool
- func (r *ReceiptOptions) GetPaymentID() string
- func (r *ReceiptOptions) GetPrintOnly() *bool
- func (r *ReceiptOptions) String() string
- func (r *ReceiptOptions) UnmarshalJSON(data []byte) error
- type RedeemLoyaltyRewardResponse
- func (r *RedeemLoyaltyRewardResponse) GetErrors() []*Error
- func (r *RedeemLoyaltyRewardResponse) GetEvent() *LoyaltyEvent
- func (r *RedeemLoyaltyRewardResponse) GetExtraProperties() map[string]interface{}
- func (r *RedeemLoyaltyRewardResponse) String() string
- func (r *RedeemLoyaltyRewardResponse) UnmarshalJSON(data []byte) error
- type Refund
- func (r *Refund) GetAdditionalRecipients() []*AdditionalRecipient
- func (r *Refund) GetAmountMoney() *Money
- func (r *Refund) GetCreatedAt() *string
- func (r *Refund) GetExtraProperties() map[string]interface{}
- func (r *Refund) GetID() string
- func (r *Refund) GetLocationID() string
- func (r *Refund) GetProcessingFeeMoney() *Money
- func (r *Refund) GetReason() string
- func (r *Refund) GetStatus() RefundStatus
- func (r *Refund) GetTenderID() string
- func (r *Refund) GetTransactionID() *string
- func (r *Refund) String() string
- func (r *Refund) UnmarshalJSON(data []byte) error
- type RefundPaymentRequest
- type RefundPaymentResponse
- func (r *RefundPaymentResponse) GetErrors() []*Error
- func (r *RefundPaymentResponse) GetExtraProperties() map[string]interface{}
- func (r *RefundPaymentResponse) GetRefund() *PaymentRefund
- func (r *RefundPaymentResponse) String() string
- func (r *RefundPaymentResponse) UnmarshalJSON(data []byte) error
- type RefundStatus
- type RefundsGetRequest
- type RefundsListRequest
- type RegisterDomainRequest
- type RegisterDomainResponse
- func (r *RegisterDomainResponse) GetErrors() []*Error
- func (r *RegisterDomainResponse) GetExtraProperties() map[string]interface{}
- func (r *RegisterDomainResponse) GetStatus() *RegisterDomainResponseStatus
- func (r *RegisterDomainResponse) String() string
- func (r *RegisterDomainResponse) UnmarshalJSON(data []byte) error
- type RegisterDomainResponseStatus
- type RemoveGroupFromCustomerResponse
- type ResumeSubscriptionRequest
- type ResumeSubscriptionResponse
- func (r *ResumeSubscriptionResponse) GetActions() []*SubscriptionAction
- func (r *ResumeSubscriptionResponse) GetErrors() []*Error
- func (r *ResumeSubscriptionResponse) GetExtraProperties() map[string]interface{}
- func (r *ResumeSubscriptionResponse) GetSubscription() *Subscription
- func (r *ResumeSubscriptionResponse) String() string
- func (r *ResumeSubscriptionResponse) UnmarshalJSON(data []byte) error
- type RetrieveBookingCustomAttributeDefinitionResponse
- func (r *RetrieveBookingCustomAttributeDefinitionResponse) GetCustomAttributeDefinition() *CustomAttributeDefinition
- func (r *RetrieveBookingCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (r *RetrieveBookingCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (r *RetrieveBookingCustomAttributeDefinitionResponse) String() string
- func (r *RetrieveBookingCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type RetrieveBookingCustomAttributeResponse
- func (r *RetrieveBookingCustomAttributeResponse) GetCustomAttribute() *CustomAttribute
- func (r *RetrieveBookingCustomAttributeResponse) GetErrors() []*Error
- func (r *RetrieveBookingCustomAttributeResponse) GetExtraProperties() map[string]interface{}
- func (r *RetrieveBookingCustomAttributeResponse) String() string
- func (r *RetrieveBookingCustomAttributeResponse) UnmarshalJSON(data []byte) error
- type RetrieveJobRequest
- type RetrieveJobResponse
- type RetrieveLocationBookingProfileRequest
- type RetrieveLocationBookingProfileResponse
- func (r *RetrieveLocationBookingProfileResponse) GetErrors() []*Error
- func (r *RetrieveLocationBookingProfileResponse) GetExtraProperties() map[string]interface{}
- func (r *RetrieveLocationBookingProfileResponse) GetLocationBookingProfile() *LocationBookingProfile
- func (r *RetrieveLocationBookingProfileResponse) String() string
- func (r *RetrieveLocationBookingProfileResponse) UnmarshalJSON(data []byte) error
- type RetrieveLocationCustomAttributeDefinitionResponse
- func (r *RetrieveLocationCustomAttributeDefinitionResponse) GetCustomAttributeDefinition() *CustomAttributeDefinition
- func (r *RetrieveLocationCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (r *RetrieveLocationCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (r *RetrieveLocationCustomAttributeDefinitionResponse) String() string
- func (r *RetrieveLocationCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type RetrieveLocationCustomAttributeResponse
- func (r *RetrieveLocationCustomAttributeResponse) GetCustomAttribute() *CustomAttribute
- func (r *RetrieveLocationCustomAttributeResponse) GetErrors() []*Error
- func (r *RetrieveLocationCustomAttributeResponse) GetExtraProperties() map[string]interface{}
- func (r *RetrieveLocationCustomAttributeResponse) String() string
- func (r *RetrieveLocationCustomAttributeResponse) UnmarshalJSON(data []byte) error
- type RetrieveLocationSettingsRequest
- type RetrieveLocationSettingsResponse
- func (r *RetrieveLocationSettingsResponse) GetErrors() []*Error
- func (r *RetrieveLocationSettingsResponse) GetExtraProperties() map[string]interface{}
- func (r *RetrieveLocationSettingsResponse) GetLocationSettings() *CheckoutLocationSettings
- func (r *RetrieveLocationSettingsResponse) String() string
- func (r *RetrieveLocationSettingsResponse) UnmarshalJSON(data []byte) error
- type RetrieveMerchantCustomAttributeDefinitionResponse
- func (r *RetrieveMerchantCustomAttributeDefinitionResponse) GetCustomAttributeDefinition() *CustomAttributeDefinition
- func (r *RetrieveMerchantCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (r *RetrieveMerchantCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (r *RetrieveMerchantCustomAttributeDefinitionResponse) String() string
- func (r *RetrieveMerchantCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type RetrieveMerchantCustomAttributeResponse
- func (r *RetrieveMerchantCustomAttributeResponse) GetCustomAttribute() *CustomAttribute
- func (r *RetrieveMerchantCustomAttributeResponse) GetErrors() []*Error
- func (r *RetrieveMerchantCustomAttributeResponse) GetExtraProperties() map[string]interface{}
- func (r *RetrieveMerchantCustomAttributeResponse) String() string
- func (r *RetrieveMerchantCustomAttributeResponse) UnmarshalJSON(data []byte) error
- type RetrieveMerchantSettingsResponse
- func (r *RetrieveMerchantSettingsResponse) GetErrors() []*Error
- func (r *RetrieveMerchantSettingsResponse) GetExtraProperties() map[string]interface{}
- func (r *RetrieveMerchantSettingsResponse) GetMerchantSettings() *CheckoutMerchantSettings
- func (r *RetrieveMerchantSettingsResponse) String() string
- func (r *RetrieveMerchantSettingsResponse) UnmarshalJSON(data []byte) error
- type RetrieveOrderCustomAttributeDefinitionResponse
- func (r *RetrieveOrderCustomAttributeDefinitionResponse) GetCustomAttributeDefinition() *CustomAttributeDefinition
- func (r *RetrieveOrderCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (r *RetrieveOrderCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (r *RetrieveOrderCustomAttributeDefinitionResponse) String() string
- func (r *RetrieveOrderCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type RetrieveOrderCustomAttributeResponse
- func (r *RetrieveOrderCustomAttributeResponse) GetCustomAttribute() *CustomAttribute
- func (r *RetrieveOrderCustomAttributeResponse) GetErrors() []*Error
- func (r *RetrieveOrderCustomAttributeResponse) GetExtraProperties() map[string]interface{}
- func (r *RetrieveOrderCustomAttributeResponse) String() string
- func (r *RetrieveOrderCustomAttributeResponse) UnmarshalJSON(data []byte) error
- type RetrieveScheduledShiftRequest
- type RetrieveScheduledShiftResponse
- func (r *RetrieveScheduledShiftResponse) GetErrors() []*Error
- func (r *RetrieveScheduledShiftResponse) GetExtraProperties() map[string]interface{}
- func (r *RetrieveScheduledShiftResponse) GetScheduledShift() *ScheduledShift
- func (r *RetrieveScheduledShiftResponse) String() string
- func (r *RetrieveScheduledShiftResponse) UnmarshalJSON(data []byte) error
- type RetrieveTimecardRequest
- type RetrieveTimecardResponse
- func (r *RetrieveTimecardResponse) GetErrors() []*Error
- func (r *RetrieveTimecardResponse) GetExtraProperties() map[string]interface{}
- func (r *RetrieveTimecardResponse) GetTimecard() *Timecard
- func (r *RetrieveTimecardResponse) String() string
- func (r *RetrieveTimecardResponse) UnmarshalJSON(data []byte) error
- type RetrieveTokenStatusResponse
- func (r *RetrieveTokenStatusResponse) GetClientID() *string
- func (r *RetrieveTokenStatusResponse) GetErrors() []*Error
- func (r *RetrieveTokenStatusResponse) GetExpiresAt() *string
- func (r *RetrieveTokenStatusResponse) GetExtraProperties() map[string]interface{}
- func (r *RetrieveTokenStatusResponse) GetMerchantID() *string
- func (r *RetrieveTokenStatusResponse) GetScopes() []string
- func (r *RetrieveTokenStatusResponse) String() string
- func (r *RetrieveTokenStatusResponse) UnmarshalJSON(data []byte) error
- type RevokeTokenRequest
- type RevokeTokenResponse
- type RiskEvaluation
- type RiskEvaluationRiskLevel
- type SaveCardOptions
- func (s *SaveCardOptions) GetCardID() *string
- func (s *SaveCardOptions) GetCustomerID() string
- func (s *SaveCardOptions) GetExtraProperties() map[string]interface{}
- func (s *SaveCardOptions) GetReferenceID() *string
- func (s *SaveCardOptions) String() string
- func (s *SaveCardOptions) UnmarshalJSON(data []byte) error
- type ScheduledShift
- func (s *ScheduledShift) GetCreatedAt() *string
- func (s *ScheduledShift) GetDraftShiftDetails() *ScheduledShiftDetails
- func (s *ScheduledShift) GetExtraProperties() map[string]interface{}
- func (s *ScheduledShift) GetID() *string
- func (s *ScheduledShift) GetPublishedShiftDetails() *ScheduledShiftDetails
- func (s *ScheduledShift) GetUpdatedAt() *string
- func (s *ScheduledShift) GetVersion() *int
- func (s *ScheduledShift) String() string
- func (s *ScheduledShift) UnmarshalJSON(data []byte) error
- type ScheduledShiftDetails
- func (s *ScheduledShiftDetails) GetEndAt() *string
- func (s *ScheduledShiftDetails) GetExtraProperties() map[string]interface{}
- func (s *ScheduledShiftDetails) GetIsDeleted() *bool
- func (s *ScheduledShiftDetails) GetJobID() *string
- func (s *ScheduledShiftDetails) GetLocationID() *string
- func (s *ScheduledShiftDetails) GetNotes() *string
- func (s *ScheduledShiftDetails) GetStartAt() *string
- func (s *ScheduledShiftDetails) GetTeamMemberID() *string
- func (s *ScheduledShiftDetails) GetTimezone() *string
- func (s *ScheduledShiftDetails) String() string
- func (s *ScheduledShiftDetails) UnmarshalJSON(data []byte) error
- type ScheduledShiftFilter
- func (s *ScheduledShiftFilter) GetAssignmentStatus() *ScheduledShiftFilterAssignmentStatus
- func (s *ScheduledShiftFilter) GetEnd() *TimeRange
- func (s *ScheduledShiftFilter) GetExtraProperties() map[string]interface{}
- func (s *ScheduledShiftFilter) GetLocationIDs() []string
- func (s *ScheduledShiftFilter) GetScheduledShiftStatuses() []ScheduledShiftFilterScheduledShiftStatus
- func (s *ScheduledShiftFilter) GetStart() *TimeRange
- func (s *ScheduledShiftFilter) GetTeamMemberIDs() []string
- func (s *ScheduledShiftFilter) GetWorkday() *ScheduledShiftWorkday
- func (s *ScheduledShiftFilter) String() string
- func (s *ScheduledShiftFilter) UnmarshalJSON(data []byte) error
- type ScheduledShiftFilterAssignmentStatus
- type ScheduledShiftFilterScheduledShiftStatus
- type ScheduledShiftNotificationAudience
- type ScheduledShiftQuery
- func (s *ScheduledShiftQuery) GetExtraProperties() map[string]interface{}
- func (s *ScheduledShiftQuery) GetFilter() *ScheduledShiftFilter
- func (s *ScheduledShiftQuery) GetSort() *ScheduledShiftSort
- func (s *ScheduledShiftQuery) String() string
- func (s *ScheduledShiftQuery) UnmarshalJSON(data []byte) error
- type ScheduledShiftSort
- type ScheduledShiftSortField
- type ScheduledShiftWorkday
- func (s *ScheduledShiftWorkday) GetDateRange() *DateRange
- func (s *ScheduledShiftWorkday) GetDefaultTimezone() *string
- func (s *ScheduledShiftWorkday) GetExtraProperties() map[string]interface{}
- func (s *ScheduledShiftWorkday) GetMatchScheduledShiftsBy() *ScheduledShiftWorkdayMatcher
- func (s *ScheduledShiftWorkday) String() string
- func (s *ScheduledShiftWorkday) UnmarshalJSON(data []byte) error
- type ScheduledShiftWorkdayMatcher
- type SearchAvailabilityFilter
- func (s *SearchAvailabilityFilter) GetBookingID() *string
- func (s *SearchAvailabilityFilter) GetExtraProperties() map[string]interface{}
- func (s *SearchAvailabilityFilter) GetLocationID() *string
- func (s *SearchAvailabilityFilter) GetSegmentFilters() []*SegmentFilter
- func (s *SearchAvailabilityFilter) GetStartAtRange() *TimeRange
- func (s *SearchAvailabilityFilter) String() string
- func (s *SearchAvailabilityFilter) UnmarshalJSON(data []byte) error
- type SearchAvailabilityQuery
- type SearchAvailabilityRequest
- type SearchAvailabilityResponse
- func (s *SearchAvailabilityResponse) GetAvailabilities() []*Availability
- func (s *SearchAvailabilityResponse) GetErrors() []*Error
- func (s *SearchAvailabilityResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchAvailabilityResponse) String() string
- func (s *SearchAvailabilityResponse) UnmarshalJSON(data []byte) error
- type SearchCatalogItemsRequest
- type SearchCatalogItemsRequestStockLevel
- type SearchCatalogItemsResponse
- func (s *SearchCatalogItemsResponse) GetCursor() *string
- func (s *SearchCatalogItemsResponse) GetErrors() []*Error
- func (s *SearchCatalogItemsResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchCatalogItemsResponse) GetItems() []*CatalogObject
- func (s *SearchCatalogItemsResponse) GetMatchedVariationIDs() []string
- func (s *SearchCatalogItemsResponse) String() string
- func (s *SearchCatalogItemsResponse) UnmarshalJSON(data []byte) error
- type SearchCatalogObjectsRequest
- type SearchCatalogObjectsResponse
- func (s *SearchCatalogObjectsResponse) GetCursor() *string
- func (s *SearchCatalogObjectsResponse) GetErrors() []*Error
- func (s *SearchCatalogObjectsResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchCatalogObjectsResponse) GetLatestTime() *string
- func (s *SearchCatalogObjectsResponse) GetObjects() []*CatalogObject
- func (s *SearchCatalogObjectsResponse) GetRelatedObjects() []*CatalogObject
- func (s *SearchCatalogObjectsResponse) String() string
- func (s *SearchCatalogObjectsResponse) UnmarshalJSON(data []byte) error
- type SearchCustomersRequest
- type SearchCustomersResponse
- func (s *SearchCustomersResponse) GetCount() *int64
- func (s *SearchCustomersResponse) GetCursor() *string
- func (s *SearchCustomersResponse) GetCustomers() []*Customer
- func (s *SearchCustomersResponse) GetErrors() []*Error
- func (s *SearchCustomersResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchCustomersResponse) String() string
- func (s *SearchCustomersResponse) UnmarshalJSON(data []byte) error
- type SearchEventsFilter
- func (s *SearchEventsFilter) GetCreatedAt() *TimeRange
- func (s *SearchEventsFilter) GetEventTypes() []string
- func (s *SearchEventsFilter) GetExtraProperties() map[string]interface{}
- func (s *SearchEventsFilter) GetLocationIDs() []string
- func (s *SearchEventsFilter) GetMerchantIDs() []string
- func (s *SearchEventsFilter) String() string
- func (s *SearchEventsFilter) UnmarshalJSON(data []byte) error
- type SearchEventsQuery
- type SearchEventsRequest
- type SearchEventsResponse
- func (s *SearchEventsResponse) GetCursor() *string
- func (s *SearchEventsResponse) GetErrors() []*Error
- func (s *SearchEventsResponse) GetEvents() []*Event
- func (s *SearchEventsResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchEventsResponse) GetMetadata() []*EventMetadata
- func (s *SearchEventsResponse) String() string
- func (s *SearchEventsResponse) UnmarshalJSON(data []byte) error
- type SearchEventsSort
- type SearchEventsSortField
- type SearchInvoicesRequest
- type SearchInvoicesResponse
- func (s *SearchInvoicesResponse) GetCursor() *string
- func (s *SearchInvoicesResponse) GetErrors() []*Error
- func (s *SearchInvoicesResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchInvoicesResponse) GetInvoices() []*Invoice
- func (s *SearchInvoicesResponse) String() string
- func (s *SearchInvoicesResponse) UnmarshalJSON(data []byte) error
- type SearchLoyaltyAccountsRequestLoyaltyAccountQuery
- func (s *SearchLoyaltyAccountsRequestLoyaltyAccountQuery) GetCustomerIDs() []string
- func (s *SearchLoyaltyAccountsRequestLoyaltyAccountQuery) GetExtraProperties() map[string]interface{}
- func (s *SearchLoyaltyAccountsRequestLoyaltyAccountQuery) GetMappings() []*LoyaltyAccountMapping
- func (s *SearchLoyaltyAccountsRequestLoyaltyAccountQuery) String() string
- func (s *SearchLoyaltyAccountsRequestLoyaltyAccountQuery) UnmarshalJSON(data []byte) error
- type SearchLoyaltyAccountsResponse
- func (s *SearchLoyaltyAccountsResponse) GetCursor() *string
- func (s *SearchLoyaltyAccountsResponse) GetErrors() []*Error
- func (s *SearchLoyaltyAccountsResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchLoyaltyAccountsResponse) GetLoyaltyAccounts() []*LoyaltyAccount
- func (s *SearchLoyaltyAccountsResponse) String() string
- func (s *SearchLoyaltyAccountsResponse) UnmarshalJSON(data []byte) error
- type SearchLoyaltyEventsRequest
- type SearchLoyaltyEventsResponse
- func (s *SearchLoyaltyEventsResponse) GetCursor() *string
- func (s *SearchLoyaltyEventsResponse) GetErrors() []*Error
- func (s *SearchLoyaltyEventsResponse) GetEvents() []*LoyaltyEvent
- func (s *SearchLoyaltyEventsResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchLoyaltyEventsResponse) String() string
- func (s *SearchLoyaltyEventsResponse) UnmarshalJSON(data []byte) error
- type SearchLoyaltyRewardsRequestLoyaltyRewardQuery
- func (s *SearchLoyaltyRewardsRequestLoyaltyRewardQuery) GetExtraProperties() map[string]interface{}
- func (s *SearchLoyaltyRewardsRequestLoyaltyRewardQuery) GetLoyaltyAccountID() string
- func (s *SearchLoyaltyRewardsRequestLoyaltyRewardQuery) GetStatus() *LoyaltyRewardStatus
- func (s *SearchLoyaltyRewardsRequestLoyaltyRewardQuery) String() string
- func (s *SearchLoyaltyRewardsRequestLoyaltyRewardQuery) UnmarshalJSON(data []byte) error
- type SearchLoyaltyRewardsResponse
- func (s *SearchLoyaltyRewardsResponse) GetCursor() *string
- func (s *SearchLoyaltyRewardsResponse) GetErrors() []*Error
- func (s *SearchLoyaltyRewardsResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchLoyaltyRewardsResponse) GetRewards() []*LoyaltyReward
- func (s *SearchLoyaltyRewardsResponse) String() string
- func (s *SearchLoyaltyRewardsResponse) UnmarshalJSON(data []byte) error
- type SearchOrdersCustomerFilter
- type SearchOrdersDateTimeFilter
- func (s *SearchOrdersDateTimeFilter) GetClosedAt() *TimeRange
- func (s *SearchOrdersDateTimeFilter) GetCreatedAt() *TimeRange
- func (s *SearchOrdersDateTimeFilter) GetExtraProperties() map[string]interface{}
- func (s *SearchOrdersDateTimeFilter) GetUpdatedAt() *TimeRange
- func (s *SearchOrdersDateTimeFilter) String() string
- func (s *SearchOrdersDateTimeFilter) UnmarshalJSON(data []byte) error
- type SearchOrdersFilter
- func (s *SearchOrdersFilter) GetCustomerFilter() *SearchOrdersCustomerFilter
- func (s *SearchOrdersFilter) GetDateTimeFilter() *SearchOrdersDateTimeFilter
- func (s *SearchOrdersFilter) GetExtraProperties() map[string]interface{}
- func (s *SearchOrdersFilter) GetFulfillmentFilter() *SearchOrdersFulfillmentFilter
- func (s *SearchOrdersFilter) GetSourceFilter() *SearchOrdersSourceFilter
- func (s *SearchOrdersFilter) GetStateFilter() *SearchOrdersStateFilter
- func (s *SearchOrdersFilter) String() string
- func (s *SearchOrdersFilter) UnmarshalJSON(data []byte) error
- type SearchOrdersFulfillmentFilter
- func (s *SearchOrdersFulfillmentFilter) GetExtraProperties() map[string]interface{}
- func (s *SearchOrdersFulfillmentFilter) GetFulfillmentStates() []FulfillmentState
- func (s *SearchOrdersFulfillmentFilter) GetFulfillmentTypes() []FulfillmentType
- func (s *SearchOrdersFulfillmentFilter) String() string
- func (s *SearchOrdersFulfillmentFilter) UnmarshalJSON(data []byte) error
- type SearchOrdersQuery
- type SearchOrdersRequest
- type SearchOrdersResponse
- func (s *SearchOrdersResponse) GetCursor() *string
- func (s *SearchOrdersResponse) GetErrors() []*Error
- func (s *SearchOrdersResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchOrdersResponse) GetOrderEntries() []*OrderEntry
- func (s *SearchOrdersResponse) GetOrders() []*Order
- func (s *SearchOrdersResponse) String() string
- func (s *SearchOrdersResponse) UnmarshalJSON(data []byte) error
- type SearchOrdersSort
- type SearchOrdersSortField
- type SearchOrdersSourceFilter
- type SearchOrdersStateFilter
- type SearchScheduledShiftsRequest
- type SearchScheduledShiftsResponse
- func (s *SearchScheduledShiftsResponse) GetCursor() *string
- func (s *SearchScheduledShiftsResponse) GetErrors() []*Error
- func (s *SearchScheduledShiftsResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchScheduledShiftsResponse) GetScheduledShifts() []*ScheduledShift
- func (s *SearchScheduledShiftsResponse) String() string
- func (s *SearchScheduledShiftsResponse) UnmarshalJSON(data []byte) error
- type SearchShiftsResponse
- func (s *SearchShiftsResponse) GetCursor() *string
- func (s *SearchShiftsResponse) GetErrors() []*Error
- func (s *SearchShiftsResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchShiftsResponse) GetShifts() []*Shift
- func (s *SearchShiftsResponse) String() string
- func (s *SearchShiftsResponse) UnmarshalJSON(data []byte) error
- type SearchSubscriptionsFilter
- func (s *SearchSubscriptionsFilter) GetCustomerIDs() []string
- func (s *SearchSubscriptionsFilter) GetExtraProperties() map[string]interface{}
- func (s *SearchSubscriptionsFilter) GetLocationIDs() []string
- func (s *SearchSubscriptionsFilter) GetSourceNames() []string
- func (s *SearchSubscriptionsFilter) String() string
- func (s *SearchSubscriptionsFilter) UnmarshalJSON(data []byte) error
- type SearchSubscriptionsQuery
- type SearchSubscriptionsRequest
- type SearchSubscriptionsResponse
- func (s *SearchSubscriptionsResponse) GetCursor() *string
- func (s *SearchSubscriptionsResponse) GetErrors() []*Error
- func (s *SearchSubscriptionsResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchSubscriptionsResponse) GetSubscriptions() []*Subscription
- func (s *SearchSubscriptionsResponse) String() string
- func (s *SearchSubscriptionsResponse) UnmarshalJSON(data []byte) error
- type SearchTeamMembersFilter
- func (s *SearchTeamMembersFilter) GetExtraProperties() map[string]interface{}
- func (s *SearchTeamMembersFilter) GetIsOwner() *bool
- func (s *SearchTeamMembersFilter) GetLocationIDs() []string
- func (s *SearchTeamMembersFilter) GetStatus() *TeamMemberStatus
- func (s *SearchTeamMembersFilter) String() string
- func (s *SearchTeamMembersFilter) UnmarshalJSON(data []byte) error
- type SearchTeamMembersQuery
- type SearchTeamMembersRequest
- type SearchTeamMembersResponse
- func (s *SearchTeamMembersResponse) GetCursor() *string
- func (s *SearchTeamMembersResponse) GetErrors() []*Error
- func (s *SearchTeamMembersResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchTeamMembersResponse) GetTeamMembers() []*TeamMember
- func (s *SearchTeamMembersResponse) String() string
- func (s *SearchTeamMembersResponse) UnmarshalJSON(data []byte) error
- type SearchTerminalActionsResponse
- func (s *SearchTerminalActionsResponse) GetAction() []*TerminalAction
- func (s *SearchTerminalActionsResponse) GetCursor() *string
- func (s *SearchTerminalActionsResponse) GetErrors() []*Error
- func (s *SearchTerminalActionsResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchTerminalActionsResponse) String() string
- func (s *SearchTerminalActionsResponse) UnmarshalJSON(data []byte) error
- type SearchTerminalCheckoutsResponse
- func (s *SearchTerminalCheckoutsResponse) GetCheckouts() []*TerminalCheckout
- func (s *SearchTerminalCheckoutsResponse) GetCursor() *string
- func (s *SearchTerminalCheckoutsResponse) GetErrors() []*Error
- func (s *SearchTerminalCheckoutsResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchTerminalCheckoutsResponse) String() string
- func (s *SearchTerminalCheckoutsResponse) UnmarshalJSON(data []byte) error
- type SearchTerminalRefundsResponse
- func (s *SearchTerminalRefundsResponse) GetCursor() *string
- func (s *SearchTerminalRefundsResponse) GetErrors() []*Error
- func (s *SearchTerminalRefundsResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchTerminalRefundsResponse) GetRefunds() []*TerminalRefund
- func (s *SearchTerminalRefundsResponse) String() string
- func (s *SearchTerminalRefundsResponse) UnmarshalJSON(data []byte) error
- type SearchTimecardsRequest
- type SearchTimecardsResponse
- func (s *SearchTimecardsResponse) GetCursor() *string
- func (s *SearchTimecardsResponse) GetErrors() []*Error
- func (s *SearchTimecardsResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchTimecardsResponse) GetTimecards() []*Timecard
- func (s *SearchTimecardsResponse) String() string
- func (s *SearchTimecardsResponse) UnmarshalJSON(data []byte) error
- type SearchVendorsRequest
- type SearchVendorsRequestFilter
- func (s *SearchVendorsRequestFilter) GetExtraProperties() map[string]interface{}
- func (s *SearchVendorsRequestFilter) GetName() []string
- func (s *SearchVendorsRequestFilter) GetStatus() []VendorStatus
- func (s *SearchVendorsRequestFilter) String() string
- func (s *SearchVendorsRequestFilter) UnmarshalJSON(data []byte) error
- type SearchVendorsRequestSort
- func (s *SearchVendorsRequestSort) GetExtraProperties() map[string]interface{}
- func (s *SearchVendorsRequestSort) GetField() *SearchVendorsRequestSortField
- func (s *SearchVendorsRequestSort) GetOrder() *SortOrder
- func (s *SearchVendorsRequestSort) String() string
- func (s *SearchVendorsRequestSort) UnmarshalJSON(data []byte) error
- type SearchVendorsRequestSortField
- type SearchVendorsResponse
- func (s *SearchVendorsResponse) GetCursor() *string
- func (s *SearchVendorsResponse) GetErrors() []*Error
- func (s *SearchVendorsResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchVendorsResponse) GetVendors() []*Vendor
- func (s *SearchVendorsResponse) String() string
- func (s *SearchVendorsResponse) UnmarshalJSON(data []byte) error
- type SegmentFilter
- type SelectOption
- type SelectOptions
- func (s *SelectOptions) GetBody() string
- func (s *SelectOptions) GetExtraProperties() map[string]interface{}
- func (s *SelectOptions) GetOptions() []*SelectOption
- func (s *SelectOptions) GetSelectedOption() *SelectOption
- func (s *SelectOptions) GetTitle() string
- func (s *SelectOptions) String() string
- func (s *SelectOptions) UnmarshalJSON(data []byte) error
- type Shift
- func (s *Shift) GetBreaks() []*Break
- func (s *Shift) GetCreatedAt() *string
- func (s *Shift) GetDeclaredCashTipMoney() *Money
- func (s *Shift) GetEmployeeID() *string
- func (s *Shift) GetEndAt() *string
- func (s *Shift) GetExtraProperties() map[string]interface{}
- func (s *Shift) GetID() *string
- func (s *Shift) GetLocationID() string
- func (s *Shift) GetStartAt() string
- func (s *Shift) GetStatus() *ShiftStatus
- func (s *Shift) GetTeamMemberID() *string
- func (s *Shift) GetTimezone() *string
- func (s *Shift) GetUpdatedAt() *string
- func (s *Shift) GetVersion() *int
- func (s *Shift) GetWage() *ShiftWage
- func (s *Shift) String() string
- func (s *Shift) UnmarshalJSON(data []byte) error
- type ShiftFilter
- func (s *ShiftFilter) GetEmployeeIDs() []string
- func (s *ShiftFilter) GetEnd() *TimeRange
- func (s *ShiftFilter) GetExtraProperties() map[string]interface{}
- func (s *ShiftFilter) GetLocationIDs() []string
- func (s *ShiftFilter) GetStart() *TimeRange
- func (s *ShiftFilter) GetStatus() *ShiftFilterStatus
- func (s *ShiftFilter) GetTeamMemberIDs() []string
- func (s *ShiftFilter) GetWorkday() *ShiftWorkday
- func (s *ShiftFilter) String() string
- func (s *ShiftFilter) UnmarshalJSON(data []byte) error
- type ShiftFilterStatus
- type ShiftQuery
- type ShiftSort
- type ShiftSortField
- type ShiftStatus
- type ShiftWage
- func (s *ShiftWage) GetExtraProperties() map[string]interface{}
- func (s *ShiftWage) GetHourlyRate() *Money
- func (s *ShiftWage) GetJobID() *string
- func (s *ShiftWage) GetTipEligible() *bool
- func (s *ShiftWage) GetTitle() *string
- func (s *ShiftWage) String() string
- func (s *ShiftWage) UnmarshalJSON(data []byte) error
- type ShiftWorkday
- func (s *ShiftWorkday) GetDateRange() *DateRange
- func (s *ShiftWorkday) GetDefaultTimezone() *string
- func (s *ShiftWorkday) GetExtraProperties() map[string]interface{}
- func (s *ShiftWorkday) GetMatchShiftsBy() *ShiftWorkdayMatcher
- func (s *ShiftWorkday) String() string
- func (s *ShiftWorkday) UnmarshalJSON(data []byte) error
- type ShiftWorkdayMatcher
- type ShippingFee
- type SignatureImage
- type SignatureOptions
- func (s *SignatureOptions) GetBody() string
- func (s *SignatureOptions) GetExtraProperties() map[string]interface{}
- func (s *SignatureOptions) GetSignature() []*SignatureImage
- func (s *SignatureOptions) GetTitle() string
- func (s *SignatureOptions) String() string
- func (s *SignatureOptions) UnmarshalJSON(data []byte) error
- type Site
- func (s *Site) GetCreatedAt() *string
- func (s *Site) GetDomain() *string
- func (s *Site) GetExtraProperties() map[string]interface{}
- func (s *Site) GetID() *string
- func (s *Site) GetIsPublished() *bool
- func (s *Site) GetSiteTitle() *string
- func (s *Site) GetUpdatedAt() *string
- func (s *Site) String() string
- func (s *Site) UnmarshalJSON(data []byte) error
- type Snippet
- func (s *Snippet) GetContent() string
- func (s *Snippet) GetCreatedAt() *string
- func (s *Snippet) GetExtraProperties() map[string]interface{}
- func (s *Snippet) GetID() *string
- func (s *Snippet) GetSiteID() *string
- func (s *Snippet) GetUpdatedAt() *string
- func (s *Snippet) String() string
- func (s *Snippet) UnmarshalJSON(data []byte) error
- type SnippetsDeleteRequest
- type SnippetsGetRequest
- type SortOrder
- type SourceApplication
- func (s *SourceApplication) GetApplicationID() *string
- func (s *SourceApplication) GetExtraProperties() map[string]interface{}
- func (s *SourceApplication) GetName() *string
- func (s *SourceApplication) GetProduct() *Product
- func (s *SourceApplication) String() string
- func (s *SourceApplication) UnmarshalJSON(data []byte) error
- type SquareAccountDetails
- func (s *SquareAccountDetails) GetErrors() []*Error
- func (s *SquareAccountDetails) GetExtraProperties() map[string]interface{}
- func (s *SquareAccountDetails) GetPaymentSourceToken() *string
- func (s *SquareAccountDetails) String() string
- func (s *SquareAccountDetails) UnmarshalJSON(data []byte) error
- type StandardUnitDescription
- func (s *StandardUnitDescription) GetAbbreviation() *string
- func (s *StandardUnitDescription) GetExtraProperties() map[string]interface{}
- func (s *StandardUnitDescription) GetName() *string
- func (s *StandardUnitDescription) GetUnit() *MeasurementUnit
- func (s *StandardUnitDescription) String() string
- func (s *StandardUnitDescription) UnmarshalJSON(data []byte) error
- type StandardUnitDescriptionGroup
- func (s *StandardUnitDescriptionGroup) GetExtraProperties() map[string]interface{}
- func (s *StandardUnitDescriptionGroup) GetLanguageCode() *string
- func (s *StandardUnitDescriptionGroup) GetStandardUnitDescriptions() []*StandardUnitDescription
- func (s *StandardUnitDescriptionGroup) String() string
- func (s *StandardUnitDescriptionGroup) UnmarshalJSON(data []byte) error
- type SubmitEvidenceDisputesRequest
- type SubmitEvidenceResponse
- func (s *SubmitEvidenceResponse) GetDispute() *Dispute
- func (s *SubmitEvidenceResponse) GetErrors() []*Error
- func (s *SubmitEvidenceResponse) GetExtraProperties() map[string]interface{}
- func (s *SubmitEvidenceResponse) String() string
- func (s *SubmitEvidenceResponse) UnmarshalJSON(data []byte) error
- type Subscription
- func (s *Subscription) GetActions() []*SubscriptionAction
- func (s *Subscription) GetCanceledDate() *string
- func (s *Subscription) GetCardID() *string
- func (s *Subscription) GetChargedThroughDate() *string
- func (s *Subscription) GetCreatedAt() *string
- func (s *Subscription) GetCustomerID() *string
- func (s *Subscription) GetExtraProperties() map[string]interface{}
- func (s *Subscription) GetID() *string
- func (s *Subscription) GetInvoiceIDs() []string
- func (s *Subscription) GetLocationID() *string
- func (s *Subscription) GetMonthlyBillingAnchorDate() *int
- func (s *Subscription) GetPhases() []*Phase
- func (s *Subscription) GetPlanVariationID() *string
- func (s *Subscription) GetPriceOverrideMoney() *Money
- func (s *Subscription) GetSource() *SubscriptionSource
- func (s *Subscription) GetStartDate() *string
- func (s *Subscription) GetStatus() *SubscriptionStatus
- func (s *Subscription) GetTaxPercentage() *string
- func (s *Subscription) GetTimezone() *string
- func (s *Subscription) GetVersion() *int64
- func (s *Subscription) String() string
- func (s *Subscription) UnmarshalJSON(data []byte) error
- type SubscriptionAction
- func (s *SubscriptionAction) GetEffectiveDate() *string
- func (s *SubscriptionAction) GetExtraProperties() map[string]interface{}
- func (s *SubscriptionAction) GetID() *string
- func (s *SubscriptionAction) GetMonthlyBillingAnchorDate() *int
- func (s *SubscriptionAction) GetNewPlanVariationID() *string
- func (s *SubscriptionAction) GetPhases() []*Phase
- func (s *SubscriptionAction) GetType() *SubscriptionActionType
- func (s *SubscriptionAction) String() string
- func (s *SubscriptionAction) UnmarshalJSON(data []byte) error
- type SubscriptionActionType
- type SubscriptionCadence
- type SubscriptionEvent
- func (s *SubscriptionEvent) GetEffectiveDate() string
- func (s *SubscriptionEvent) GetExtraProperties() map[string]interface{}
- func (s *SubscriptionEvent) GetID() string
- func (s *SubscriptionEvent) GetInfo() *SubscriptionEventInfo
- func (s *SubscriptionEvent) GetMonthlyBillingAnchorDate() *int
- func (s *SubscriptionEvent) GetPhases() []*Phase
- func (s *SubscriptionEvent) GetPlanVariationID() string
- func (s *SubscriptionEvent) GetSubscriptionEventType() SubscriptionEventSubscriptionEventType
- func (s *SubscriptionEvent) String() string
- func (s *SubscriptionEvent) UnmarshalJSON(data []byte) error
- type SubscriptionEventInfo
- func (s *SubscriptionEventInfo) GetCode() *SubscriptionEventInfoCode
- func (s *SubscriptionEventInfo) GetDetail() *string
- func (s *SubscriptionEventInfo) GetExtraProperties() map[string]interface{}
- func (s *SubscriptionEventInfo) String() string
- func (s *SubscriptionEventInfo) UnmarshalJSON(data []byte) error
- type SubscriptionEventInfoCode
- type SubscriptionEventSubscriptionEventType
- type SubscriptionPhase
- func (s *SubscriptionPhase) GetCadence() SubscriptionCadence
- func (s *SubscriptionPhase) GetExtraProperties() map[string]interface{}
- func (s *SubscriptionPhase) GetOrdinal() *int64
- func (s *SubscriptionPhase) GetPeriods() *int
- func (s *SubscriptionPhase) GetPricing() *SubscriptionPricing
- func (s *SubscriptionPhase) GetRecurringPriceMoney() *Money
- func (s *SubscriptionPhase) GetUID() *string
- func (s *SubscriptionPhase) String() string
- func (s *SubscriptionPhase) UnmarshalJSON(data []byte) error
- type SubscriptionPricing
- func (s *SubscriptionPricing) GetDiscountIDs() []string
- func (s *SubscriptionPricing) GetExtraProperties() map[string]interface{}
- func (s *SubscriptionPricing) GetPriceMoney() *Money
- func (s *SubscriptionPricing) GetType() *SubscriptionPricingType
- func (s *SubscriptionPricing) String() string
- func (s *SubscriptionPricing) UnmarshalJSON(data []byte) error
- type SubscriptionPricingType
- type SubscriptionSource
- type SubscriptionStatus
- type SubscriptionTestResult
- func (s *SubscriptionTestResult) GetCreatedAt() *string
- func (s *SubscriptionTestResult) GetExtraProperties() map[string]interface{}
- func (s *SubscriptionTestResult) GetID() *string
- func (s *SubscriptionTestResult) GetPayload() *string
- func (s *SubscriptionTestResult) GetStatusCode() *int
- func (s *SubscriptionTestResult) GetUpdatedAt() *string
- func (s *SubscriptionTestResult) String() string
- func (s *SubscriptionTestResult) UnmarshalJSON(data []byte) error
- type SubscriptionsCancelRequest
- type SubscriptionsDeleteActionRequest
- type SubscriptionsGetRequest
- type SubscriptionsListEventsRequest
- type SwapPlanRequest
- type SwapPlanResponse
- func (s *SwapPlanResponse) GetActions() []*SubscriptionAction
- func (s *SwapPlanResponse) GetErrors() []*Error
- func (s *SwapPlanResponse) GetExtraProperties() map[string]interface{}
- func (s *SwapPlanResponse) GetSubscription() *Subscription
- func (s *SwapPlanResponse) String() string
- func (s *SwapPlanResponse) UnmarshalJSON(data []byte) error
- type TaxCalculationPhase
- type TaxIDs
- func (t *TaxIDs) GetEsNif() *string
- func (t *TaxIDs) GetEuVat() *string
- func (t *TaxIDs) GetExtraProperties() map[string]interface{}
- func (t *TaxIDs) GetFrNaf() *string
- func (t *TaxIDs) GetFrSiret() *string
- func (t *TaxIDs) GetJpQii() *string
- func (t *TaxIDs) String() string
- func (t *TaxIDs) UnmarshalJSON(data []byte) error
- type TaxInclusionType
- type TeamMember
- func (t *TeamMember) GetAssignedLocations() *TeamMemberAssignedLocations
- func (t *TeamMember) GetCreatedAt() *string
- func (t *TeamMember) GetEmailAddress() *string
- func (t *TeamMember) GetExtraProperties() map[string]interface{}
- func (t *TeamMember) GetFamilyName() *string
- func (t *TeamMember) GetGivenName() *string
- func (t *TeamMember) GetID() *string
- func (t *TeamMember) GetIsOwner() *bool
- func (t *TeamMember) GetPhoneNumber() *string
- func (t *TeamMember) GetReferenceID() *string
- func (t *TeamMember) GetStatus() *TeamMemberStatus
- func (t *TeamMember) GetUpdatedAt() *string
- func (t *TeamMember) GetWageSetting() *WageSetting
- func (t *TeamMember) String() string
- func (t *TeamMember) UnmarshalJSON(data []byte) error
- type TeamMemberAssignedLocations
- func (t *TeamMemberAssignedLocations) GetAssignmentType() *TeamMemberAssignedLocationsAssignmentType
- func (t *TeamMemberAssignedLocations) GetExtraProperties() map[string]interface{}
- func (t *TeamMemberAssignedLocations) GetLocationIDs() []string
- func (t *TeamMemberAssignedLocations) String() string
- func (t *TeamMemberAssignedLocations) UnmarshalJSON(data []byte) error
- type TeamMemberAssignedLocationsAssignmentType
- type TeamMemberBookingProfile
- func (t *TeamMemberBookingProfile) GetDescription() *string
- func (t *TeamMemberBookingProfile) GetDisplayName() *string
- func (t *TeamMemberBookingProfile) GetExtraProperties() map[string]interface{}
- func (t *TeamMemberBookingProfile) GetIsBookable() *bool
- func (t *TeamMemberBookingProfile) GetProfileImageURL() *string
- func (t *TeamMemberBookingProfile) GetTeamMemberID() *string
- func (t *TeamMemberBookingProfile) String() string
- func (t *TeamMemberBookingProfile) UnmarshalJSON(data []byte) error
- type TeamMemberStatus
- type TeamMemberWage
- func (t *TeamMemberWage) GetExtraProperties() map[string]interface{}
- func (t *TeamMemberWage) GetHourlyRate() *Money
- func (t *TeamMemberWage) GetID() *string
- func (t *TeamMemberWage) GetJobID() *string
- func (t *TeamMemberWage) GetTeamMemberID() *string
- func (t *TeamMemberWage) GetTipEligible() *bool
- func (t *TeamMemberWage) GetTitle() *string
- func (t *TeamMemberWage) String() string
- func (t *TeamMemberWage) UnmarshalJSON(data []byte) error
- type TeamMembersGetRequest
- type TeamMembersUpdateRequest
- type Tender
- func (t *Tender) GetAdditionalRecipients() []*AdditionalRecipient
- func (t *Tender) GetAmountMoney() *Money
- func (t *Tender) GetBankAccountDetails() *TenderBankAccountDetails
- func (t *Tender) GetBuyNowPayLaterDetails() *TenderBuyNowPayLaterDetails
- func (t *Tender) GetCardDetails() *TenderCardDetails
- func (t *Tender) GetCashDetails() *TenderCashDetails
- func (t *Tender) GetCreatedAt() *string
- func (t *Tender) GetCustomerID() *string
- func (t *Tender) GetExtraProperties() map[string]interface{}
- func (t *Tender) GetID() *string
- func (t *Tender) GetLocationID() *string
- func (t *Tender) GetNote() *string
- func (t *Tender) GetPaymentID() *string
- func (t *Tender) GetProcessingFeeMoney() *Money
- func (t *Tender) GetSquareAccountDetails() *TenderSquareAccountDetails
- func (t *Tender) GetTipMoney() *Money
- func (t *Tender) GetTransactionID() *string
- func (t *Tender) GetType() TenderType
- func (t *Tender) String() string
- func (t *Tender) UnmarshalJSON(data []byte) error
- type TenderBankAccountDetails
- type TenderBankAccountDetailsStatus
- type TenderBuyNowPayLaterDetails
- func (t *TenderBuyNowPayLaterDetails) GetBuyNowPayLaterBrand() *TenderBuyNowPayLaterDetailsBrand
- func (t *TenderBuyNowPayLaterDetails) GetExtraProperties() map[string]interface{}
- func (t *TenderBuyNowPayLaterDetails) GetStatus() *TenderBuyNowPayLaterDetailsStatus
- func (t *TenderBuyNowPayLaterDetails) String() string
- func (t *TenderBuyNowPayLaterDetails) UnmarshalJSON(data []byte) error
- type TenderBuyNowPayLaterDetailsBrand
- type TenderBuyNowPayLaterDetailsStatus
- type TenderCardDetails
- func (t *TenderCardDetails) GetCard() *Card
- func (t *TenderCardDetails) GetEntryMethod() *TenderCardDetailsEntryMethod
- func (t *TenderCardDetails) GetExtraProperties() map[string]interface{}
- func (t *TenderCardDetails) GetStatus() *TenderCardDetailsStatus
- func (t *TenderCardDetails) String() string
- func (t *TenderCardDetails) UnmarshalJSON(data []byte) error
- type TenderCardDetailsEntryMethod
- type TenderCardDetailsStatus
- type TenderCashDetails
- type TenderSquareAccountDetails
- type TenderSquareAccountDetailsStatus
- type TenderType
- type TerminalAction
- func (t *TerminalAction) GetAppID() *string
- func (t *TerminalAction) GetAwaitNextAction() *bool
- func (t *TerminalAction) GetAwaitNextActionDuration() *string
- func (t *TerminalAction) GetCancelReason() *ActionCancelReason
- func (t *TerminalAction) GetConfirmationOptions() *ConfirmationOptions
- func (t *TerminalAction) GetCreatedAt() *string
- func (t *TerminalAction) GetDataCollectionOptions() *DataCollectionOptions
- func (t *TerminalAction) GetDeadlineDuration() *string
- func (t *TerminalAction) GetDeviceID() *string
- func (t *TerminalAction) GetDeviceMetadata() *DeviceMetadata
- func (t *TerminalAction) GetExtraProperties() map[string]interface{}
- func (t *TerminalAction) GetID() *string
- func (t *TerminalAction) GetLocationID() *string
- func (t *TerminalAction) GetQrCodeOptions() *QrCodeOptions
- func (t *TerminalAction) GetReceiptOptions() *ReceiptOptions
- func (t *TerminalAction) GetSaveCardOptions() *SaveCardOptions
- func (t *TerminalAction) GetSelectOptions() *SelectOptions
- func (t *TerminalAction) GetSignatureOptions() *SignatureOptions
- func (t *TerminalAction) GetStatus() *string
- func (t *TerminalAction) GetType() *TerminalActionActionType
- func (t *TerminalAction) GetUpdatedAt() *string
- func (t *TerminalAction) String() string
- func (t *TerminalAction) UnmarshalJSON(data []byte) error
- type TerminalActionActionType
- type TerminalActionQuery
- func (t *TerminalActionQuery) GetExtraProperties() map[string]interface{}
- func (t *TerminalActionQuery) GetFilter() *TerminalActionQueryFilter
- func (t *TerminalActionQuery) GetSort() *TerminalActionQuerySort
- func (t *TerminalActionQuery) String() string
- func (t *TerminalActionQuery) UnmarshalJSON(data []byte) error
- type TerminalActionQueryFilter
- func (t *TerminalActionQueryFilter) GetCreatedAt() *TimeRange
- func (t *TerminalActionQueryFilter) GetDeviceID() *string
- func (t *TerminalActionQueryFilter) GetExtraProperties() map[string]interface{}
- func (t *TerminalActionQueryFilter) GetStatus() *string
- func (t *TerminalActionQueryFilter) GetType() *TerminalActionActionType
- func (t *TerminalActionQueryFilter) String() string
- func (t *TerminalActionQueryFilter) UnmarshalJSON(data []byte) error
- type TerminalActionQuerySort
- type TerminalCheckout
- func (t *TerminalCheckout) GetAmountMoney() *Money
- func (t *TerminalCheckout) GetAppFeeMoney() *Money
- func (t *TerminalCheckout) GetAppID() *string
- func (t *TerminalCheckout) GetCancelReason() *ActionCancelReason
- func (t *TerminalCheckout) GetCreatedAt() *string
- func (t *TerminalCheckout) GetCustomerID() *string
- func (t *TerminalCheckout) GetDeadlineDuration() *string
- func (t *TerminalCheckout) GetDeviceOptions() *DeviceCheckoutOptions
- func (t *TerminalCheckout) GetExtraProperties() map[string]interface{}
- func (t *TerminalCheckout) GetID() *string
- func (t *TerminalCheckout) GetLocationID() *string
- func (t *TerminalCheckout) GetNote() *string
- func (t *TerminalCheckout) GetOrderID() *string
- func (t *TerminalCheckout) GetPaymentIDs() []string
- func (t *TerminalCheckout) GetPaymentOptions() *PaymentOptions
- func (t *TerminalCheckout) GetPaymentType() *CheckoutOptionsPaymentType
- func (t *TerminalCheckout) GetReferenceID() *string
- func (t *TerminalCheckout) GetStatementDescriptionIdentifier() *string
- func (t *TerminalCheckout) GetStatus() *string
- func (t *TerminalCheckout) GetTeamMemberID() *string
- func (t *TerminalCheckout) GetTipMoney() *Money
- func (t *TerminalCheckout) GetUpdatedAt() *string
- func (t *TerminalCheckout) String() string
- func (t *TerminalCheckout) UnmarshalJSON(data []byte) error
- type TerminalCheckoutQuery
- func (t *TerminalCheckoutQuery) GetExtraProperties() map[string]interface{}
- func (t *TerminalCheckoutQuery) GetFilter() *TerminalCheckoutQueryFilter
- func (t *TerminalCheckoutQuery) GetSort() *TerminalCheckoutQuerySort
- func (t *TerminalCheckoutQuery) String() string
- func (t *TerminalCheckoutQuery) UnmarshalJSON(data []byte) error
- type TerminalCheckoutQueryFilter
- func (t *TerminalCheckoutQueryFilter) GetCreatedAt() *TimeRange
- func (t *TerminalCheckoutQueryFilter) GetDeviceID() *string
- func (t *TerminalCheckoutQueryFilter) GetExtraProperties() map[string]interface{}
- func (t *TerminalCheckoutQueryFilter) GetStatus() *string
- func (t *TerminalCheckoutQueryFilter) String() string
- func (t *TerminalCheckoutQueryFilter) UnmarshalJSON(data []byte) error
- type TerminalCheckoutQuerySort
- type TerminalRefund
- func (t *TerminalRefund) GetAmountMoney() *Money
- func (t *TerminalRefund) GetAppID() *string
- func (t *TerminalRefund) GetCancelReason() *ActionCancelReason
- func (t *TerminalRefund) GetCreatedAt() *string
- func (t *TerminalRefund) GetDeadlineDuration() *string
- func (t *TerminalRefund) GetDeviceID() string
- func (t *TerminalRefund) GetExtraProperties() map[string]interface{}
- func (t *TerminalRefund) GetID() *string
- func (t *TerminalRefund) GetLocationID() *string
- func (t *TerminalRefund) GetOrderID() *string
- func (t *TerminalRefund) GetPaymentID() string
- func (t *TerminalRefund) GetReason() string
- func (t *TerminalRefund) GetRefundID() *string
- func (t *TerminalRefund) GetStatus() *string
- func (t *TerminalRefund) GetUpdatedAt() *string
- func (t *TerminalRefund) String() string
- func (t *TerminalRefund) UnmarshalJSON(data []byte) error
- type TerminalRefundQuery
- func (t *TerminalRefundQuery) GetExtraProperties() map[string]interface{}
- func (t *TerminalRefundQuery) GetFilter() *TerminalRefundQueryFilter
- func (t *TerminalRefundQuery) GetSort() *TerminalRefundQuerySort
- func (t *TerminalRefundQuery) String() string
- func (t *TerminalRefundQuery) UnmarshalJSON(data []byte) error
- type TerminalRefundQueryFilter
- func (t *TerminalRefundQueryFilter) GetCreatedAt() *TimeRange
- func (t *TerminalRefundQueryFilter) GetDeviceID() *string
- func (t *TerminalRefundQueryFilter) GetExtraProperties() map[string]interface{}
- func (t *TerminalRefundQueryFilter) GetStatus() *string
- func (t *TerminalRefundQueryFilter) String() string
- func (t *TerminalRefundQueryFilter) UnmarshalJSON(data []byte) error
- type TerminalRefundQuerySort
- type TestWebhookSubscriptionResponse
- func (t *TestWebhookSubscriptionResponse) GetErrors() []*Error
- func (t *TestWebhookSubscriptionResponse) GetExtraProperties() map[string]interface{}
- func (t *TestWebhookSubscriptionResponse) GetSubscriptionTestResult() *SubscriptionTestResult
- func (t *TestWebhookSubscriptionResponse) String() string
- func (t *TestWebhookSubscriptionResponse) UnmarshalJSON(data []byte) error
- type TimeRange
- type Timecard
- func (t *Timecard) GetBreaks() []*Break
- func (t *Timecard) GetCreatedAt() *string
- func (t *Timecard) GetDeclaredCashTipMoney() *Money
- func (t *Timecard) GetEndAt() *string
- func (t *Timecard) GetExtraProperties() map[string]interface{}
- func (t *Timecard) GetID() *string
- func (t *Timecard) GetLocationID() string
- func (t *Timecard) GetStartAt() string
- func (t *Timecard) GetStatus() *TimecardStatus
- func (t *Timecard) GetTeamMemberID() string
- func (t *Timecard) GetTimezone() *string
- func (t *Timecard) GetUpdatedAt() *string
- func (t *Timecard) GetVersion() *int
- func (t *Timecard) GetWage() *TimecardWage
- func (t *Timecard) String() string
- func (t *Timecard) UnmarshalJSON(data []byte) error
- type TimecardFilter
- func (t *TimecardFilter) GetEnd() *TimeRange
- func (t *TimecardFilter) GetExtraProperties() map[string]interface{}
- func (t *TimecardFilter) GetLocationIDs() []string
- func (t *TimecardFilter) GetStart() *TimeRange
- func (t *TimecardFilter) GetStatus() *TimecardFilterStatus
- func (t *TimecardFilter) GetTeamMemberIDs() []string
- func (t *TimecardFilter) GetWorkday() *TimecardWorkday
- func (t *TimecardFilter) String() string
- func (t *TimecardFilter) UnmarshalJSON(data []byte) error
- type TimecardFilterStatus
- type TimecardQuery
- type TimecardSort
- type TimecardSortField
- type TimecardStatus
- type TimecardWage
- func (t *TimecardWage) GetExtraProperties() map[string]interface{}
- func (t *TimecardWage) GetHourlyRate() *Money
- func (t *TimecardWage) GetJobID() *string
- func (t *TimecardWage) GetTipEligible() *bool
- func (t *TimecardWage) GetTitle() *string
- func (t *TimecardWage) String() string
- func (t *TimecardWage) UnmarshalJSON(data []byte) error
- type TimecardWorkday
- func (t *TimecardWorkday) GetDateRange() *DateRange
- func (t *TimecardWorkday) GetDefaultTimezone() *string
- func (t *TimecardWorkday) GetExtraProperties() map[string]interface{}
- func (t *TimecardWorkday) GetMatchTimecardsBy() *TimecardWorkdayMatcher
- func (t *TimecardWorkday) String() string
- func (t *TimecardWorkday) UnmarshalJSON(data []byte) error
- type TimecardWorkdayMatcher
- type TipSettings
- func (t *TipSettings) GetAllowTipping() *bool
- func (t *TipSettings) GetCustomTipField() *bool
- func (t *TipSettings) GetExtraProperties() map[string]interface{}
- func (t *TipSettings) GetSeparateTipScreen() *bool
- func (t *TipSettings) GetSmartTipping() *bool
- func (t *TipSettings) GetTipPercentages() []int
- func (t *TipSettings) String() string
- func (t *TipSettings) UnmarshalJSON(data []byte) error
- type Transaction
- func (t *Transaction) GetClientID() *string
- func (t *Transaction) GetCreatedAt() *string
- func (t *Transaction) GetExtraProperties() map[string]interface{}
- func (t *Transaction) GetID() *string
- func (t *Transaction) GetLocationID() *string
- func (t *Transaction) GetOrderID() *string
- func (t *Transaction) GetProduct() *TransactionProduct
- func (t *Transaction) GetReferenceID() *string
- func (t *Transaction) GetRefunds() []*Refund
- func (t *Transaction) GetShippingAddress() *Address
- func (t *Transaction) GetTenders() []*Tender
- func (t *Transaction) String() string
- func (t *Transaction) UnmarshalJSON(data []byte) error
- type TransactionProduct
- type UnlinkCustomerFromGiftCardRequest
- type UnlinkCustomerFromGiftCardResponse
- func (u *UnlinkCustomerFromGiftCardResponse) GetErrors() []*Error
- func (u *UnlinkCustomerFromGiftCardResponse) GetExtraProperties() map[string]interface{}
- func (u *UnlinkCustomerFromGiftCardResponse) GetGiftCard() *GiftCard
- func (u *UnlinkCustomerFromGiftCardResponse) String() string
- func (u *UnlinkCustomerFromGiftCardResponse) UnmarshalJSON(data []byte) error
- type UpdateBookingCustomAttributeDefinitionResponse
- func (u *UpdateBookingCustomAttributeDefinitionResponse) GetCustomAttributeDefinition() *CustomAttributeDefinition
- func (u *UpdateBookingCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (u *UpdateBookingCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateBookingCustomAttributeDefinitionResponse) String() string
- func (u *UpdateBookingCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type UpdateBookingRequest
- type UpdateBookingResponse
- type UpdateBreakTypeResponse
- func (u *UpdateBreakTypeResponse) GetBreakType() *BreakType
- func (u *UpdateBreakTypeResponse) GetErrors() []*Error
- func (u *UpdateBreakTypeResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateBreakTypeResponse) String() string
- func (u *UpdateBreakTypeResponse) UnmarshalJSON(data []byte) error
- type UpdateCatalogImageRequest
- type UpdateCatalogImageResponse
- func (u *UpdateCatalogImageResponse) GetErrors() []*Error
- func (u *UpdateCatalogImageResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateCatalogImageResponse) GetImage() *CatalogObject
- func (u *UpdateCatalogImageResponse) String() string
- func (u *UpdateCatalogImageResponse) UnmarshalJSON(data []byte) error
- type UpdateCustomerCustomAttributeDefinitionResponse
- func (u *UpdateCustomerCustomAttributeDefinitionResponse) GetCustomAttributeDefinition() *CustomAttributeDefinition
- func (u *UpdateCustomerCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (u *UpdateCustomerCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateCustomerCustomAttributeDefinitionResponse) String() string
- func (u *UpdateCustomerCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type UpdateCustomerGroupResponse
- func (u *UpdateCustomerGroupResponse) GetErrors() []*Error
- func (u *UpdateCustomerGroupResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateCustomerGroupResponse) GetGroup() *CustomerGroup
- func (u *UpdateCustomerGroupResponse) String() string
- func (u *UpdateCustomerGroupResponse) UnmarshalJSON(data []byte) error
- type UpdateCustomerRequest
- type UpdateCustomerResponse
- func (u *UpdateCustomerResponse) GetCustomer() *Customer
- func (u *UpdateCustomerResponse) GetErrors() []*Error
- func (u *UpdateCustomerResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateCustomerResponse) String() string
- func (u *UpdateCustomerResponse) UnmarshalJSON(data []byte) error
- type UpdateInvoiceRequest
- type UpdateInvoiceResponse
- type UpdateItemModifierListsRequest
- type UpdateItemModifierListsResponse
- func (u *UpdateItemModifierListsResponse) GetErrors() []*Error
- func (u *UpdateItemModifierListsResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateItemModifierListsResponse) GetUpdatedAt() *string
- func (u *UpdateItemModifierListsResponse) String() string
- func (u *UpdateItemModifierListsResponse) UnmarshalJSON(data []byte) error
- type UpdateItemTaxesRequest
- type UpdateItemTaxesResponse
- func (u *UpdateItemTaxesResponse) GetErrors() []*Error
- func (u *UpdateItemTaxesResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateItemTaxesResponse) GetUpdatedAt() *string
- func (u *UpdateItemTaxesResponse) String() string
- func (u *UpdateItemTaxesResponse) UnmarshalJSON(data []byte) error
- type UpdateJobRequest
- type UpdateJobResponse
- type UpdateLocationCustomAttributeDefinitionResponse
- func (u *UpdateLocationCustomAttributeDefinitionResponse) GetCustomAttributeDefinition() *CustomAttributeDefinition
- func (u *UpdateLocationCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (u *UpdateLocationCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateLocationCustomAttributeDefinitionResponse) String() string
- func (u *UpdateLocationCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type UpdateLocationRequest
- type UpdateLocationResponse
- func (u *UpdateLocationResponse) GetErrors() []*Error
- func (u *UpdateLocationResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateLocationResponse) GetLocation() *Location
- func (u *UpdateLocationResponse) String() string
- func (u *UpdateLocationResponse) UnmarshalJSON(data []byte) error
- type UpdateLocationSettingsRequest
- type UpdateLocationSettingsResponse
- func (u *UpdateLocationSettingsResponse) GetErrors() []*Error
- func (u *UpdateLocationSettingsResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateLocationSettingsResponse) GetLocationSettings() *CheckoutLocationSettings
- func (u *UpdateLocationSettingsResponse) String() string
- func (u *UpdateLocationSettingsResponse) UnmarshalJSON(data []byte) error
- type UpdateMerchantCustomAttributeDefinitionResponse
- func (u *UpdateMerchantCustomAttributeDefinitionResponse) GetCustomAttributeDefinition() *CustomAttributeDefinition
- func (u *UpdateMerchantCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (u *UpdateMerchantCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateMerchantCustomAttributeDefinitionResponse) String() string
- func (u *UpdateMerchantCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type UpdateMerchantSettingsRequest
- type UpdateMerchantSettingsResponse
- func (u *UpdateMerchantSettingsResponse) GetErrors() []*Error
- func (u *UpdateMerchantSettingsResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateMerchantSettingsResponse) GetMerchantSettings() *CheckoutMerchantSettings
- func (u *UpdateMerchantSettingsResponse) String() string
- func (u *UpdateMerchantSettingsResponse) UnmarshalJSON(data []byte) error
- type UpdateOrderCustomAttributeDefinitionResponse
- func (u *UpdateOrderCustomAttributeDefinitionResponse) GetCustomAttributeDefinition() *CustomAttributeDefinition
- func (u *UpdateOrderCustomAttributeDefinitionResponse) GetErrors() []*Error
- func (u *UpdateOrderCustomAttributeDefinitionResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateOrderCustomAttributeDefinitionResponse) String() string
- func (u *UpdateOrderCustomAttributeDefinitionResponse) UnmarshalJSON(data []byte) error
- type UpdateOrderRequest
- type UpdateOrderResponse
- type UpdatePaymentLinkResponse
- func (u *UpdatePaymentLinkResponse) GetErrors() []*Error
- func (u *UpdatePaymentLinkResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdatePaymentLinkResponse) GetPaymentLink() *PaymentLink
- func (u *UpdatePaymentLinkResponse) String() string
- func (u *UpdatePaymentLinkResponse) UnmarshalJSON(data []byte) error
- type UpdatePaymentRequest
- type UpdatePaymentResponse
- type UpdateScheduledShiftRequest
- type UpdateScheduledShiftResponse
- func (u *UpdateScheduledShiftResponse) GetErrors() []*Error
- func (u *UpdateScheduledShiftResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateScheduledShiftResponse) GetScheduledShift() *ScheduledShift
- func (u *UpdateScheduledShiftResponse) String() string
- func (u *UpdateScheduledShiftResponse) UnmarshalJSON(data []byte) error
- type UpdateShiftResponse
- type UpdateSubscriptionRequest
- type UpdateSubscriptionResponse
- func (u *UpdateSubscriptionResponse) GetErrors() []*Error
- func (u *UpdateSubscriptionResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateSubscriptionResponse) GetSubscription() *Subscription
- func (u *UpdateSubscriptionResponse) String() string
- func (u *UpdateSubscriptionResponse) UnmarshalJSON(data []byte) error
- type UpdateTeamMemberRequest
- type UpdateTeamMemberResponse
- func (u *UpdateTeamMemberResponse) GetErrors() []*Error
- func (u *UpdateTeamMemberResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateTeamMemberResponse) GetTeamMember() *TeamMember
- func (u *UpdateTeamMemberResponse) String() string
- func (u *UpdateTeamMemberResponse) UnmarshalJSON(data []byte) error
- type UpdateTeamMembersRequest
- type UpdateTimecardRequest
- type UpdateTimecardResponse
- func (u *UpdateTimecardResponse) GetErrors() []*Error
- func (u *UpdateTimecardResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateTimecardResponse) GetTimecard() *Timecard
- func (u *UpdateTimecardResponse) String() string
- func (u *UpdateTimecardResponse) UnmarshalJSON(data []byte) error
- type UpdateVendorRequest
- type UpdateVendorResponse
- type UpdateVendorsRequest
- type UpdateWageSettingResponse
- func (u *UpdateWageSettingResponse) GetErrors() []*Error
- func (u *UpdateWageSettingResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateWageSettingResponse) GetWageSetting() *WageSetting
- func (u *UpdateWageSettingResponse) String() string
- func (u *UpdateWageSettingResponse) UnmarshalJSON(data []byte) error
- type UpdateWebhookSubscriptionResponse
- func (u *UpdateWebhookSubscriptionResponse) GetErrors() []*Error
- func (u *UpdateWebhookSubscriptionResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateWebhookSubscriptionResponse) GetSubscription() *WebhookSubscription
- func (u *UpdateWebhookSubscriptionResponse) String() string
- func (u *UpdateWebhookSubscriptionResponse) UnmarshalJSON(data []byte) error
- type UpdateWebhookSubscriptionSignatureKeyResponse
- func (u *UpdateWebhookSubscriptionSignatureKeyResponse) GetErrors() []*Error
- func (u *UpdateWebhookSubscriptionSignatureKeyResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateWebhookSubscriptionSignatureKeyResponse) GetSignatureKey() *string
- func (u *UpdateWebhookSubscriptionSignatureKeyResponse) String() string
- func (u *UpdateWebhookSubscriptionSignatureKeyResponse) UnmarshalJSON(data []byte) error
- type UpdateWorkweekConfigResponse
- func (u *UpdateWorkweekConfigResponse) GetErrors() []*Error
- func (u *UpdateWorkweekConfigResponse) GetExtraProperties() map[string]interface{}
- func (u *UpdateWorkweekConfigResponse) GetWorkweekConfig() *WorkweekConfig
- func (u *UpdateWorkweekConfigResponse) String() string
- func (u *UpdateWorkweekConfigResponse) UnmarshalJSON(data []byte) error
- type UpsertBookingCustomAttributeResponse
- func (u *UpsertBookingCustomAttributeResponse) GetCustomAttribute() *CustomAttribute
- func (u *UpsertBookingCustomAttributeResponse) GetErrors() []*Error
- func (u *UpsertBookingCustomAttributeResponse) GetExtraProperties() map[string]interface{}
- func (u *UpsertBookingCustomAttributeResponse) String() string
- func (u *UpsertBookingCustomAttributeResponse) UnmarshalJSON(data []byte) error
- type UpsertCatalogObjectResponse
- func (u *UpsertCatalogObjectResponse) GetCatalogObject() *CatalogObject
- func (u *UpsertCatalogObjectResponse) GetErrors() []*Error
- func (u *UpsertCatalogObjectResponse) GetExtraProperties() map[string]interface{}
- func (u *UpsertCatalogObjectResponse) GetIDMappings() []*CatalogIDMapping
- func (u *UpsertCatalogObjectResponse) String() string
- func (u *UpsertCatalogObjectResponse) UnmarshalJSON(data []byte) error
- type UpsertCustomerCustomAttributeResponse
- func (u *UpsertCustomerCustomAttributeResponse) GetCustomAttribute() *CustomAttribute
- func (u *UpsertCustomerCustomAttributeResponse) GetErrors() []*Error
- func (u *UpsertCustomerCustomAttributeResponse) GetExtraProperties() map[string]interface{}
- func (u *UpsertCustomerCustomAttributeResponse) String() string
- func (u *UpsertCustomerCustomAttributeResponse) UnmarshalJSON(data []byte) error
- type UpsertLocationCustomAttributeResponse
- func (u *UpsertLocationCustomAttributeResponse) GetCustomAttribute() *CustomAttribute
- func (u *UpsertLocationCustomAttributeResponse) GetErrors() []*Error
- func (u *UpsertLocationCustomAttributeResponse) GetExtraProperties() map[string]interface{}
- func (u *UpsertLocationCustomAttributeResponse) String() string
- func (u *UpsertLocationCustomAttributeResponse) UnmarshalJSON(data []byte) error
- type UpsertMerchantCustomAttributeResponse
- func (u *UpsertMerchantCustomAttributeResponse) GetCustomAttribute() *CustomAttribute
- func (u *UpsertMerchantCustomAttributeResponse) GetErrors() []*Error
- func (u *UpsertMerchantCustomAttributeResponse) GetExtraProperties() map[string]interface{}
- func (u *UpsertMerchantCustomAttributeResponse) String() string
- func (u *UpsertMerchantCustomAttributeResponse) UnmarshalJSON(data []byte) error
- type UpsertOrderCustomAttributeResponse
- func (u *UpsertOrderCustomAttributeResponse) GetCustomAttribute() *CustomAttribute
- func (u *UpsertOrderCustomAttributeResponse) GetErrors() []*Error
- func (u *UpsertOrderCustomAttributeResponse) GetExtraProperties() map[string]interface{}
- func (u *UpsertOrderCustomAttributeResponse) String() string
- func (u *UpsertOrderCustomAttributeResponse) UnmarshalJSON(data []byte) error
- type UpsertSnippetRequest
- type UpsertSnippetResponse
- type V1ListOrdersRequest
- type V1Money
- type V1Order
- func (v *V1Order) GetBtcPriceSatoshi() *float64
- func (v *V1Order) GetBtcReceiveAddress() *string
- func (v *V1Order) GetBuyerEmail() *string
- func (v *V1Order) GetBuyerNote() *string
- func (v *V1Order) GetCanceledNote() *string
- func (v *V1Order) GetCompletedNote() *string
- func (v *V1Order) GetCreatedAt() *string
- func (v *V1Order) GetErrors() []*Error
- func (v *V1Order) GetExpiresAt() *string
- func (v *V1Order) GetExtraProperties() map[string]interface{}
- func (v *V1Order) GetID() *string
- func (v *V1Order) GetOrderHistory() []*V1OrderHistoryEntry
- func (v *V1Order) GetPaymentID() *string
- func (v *V1Order) GetPromoCode() *string
- func (v *V1Order) GetRecipientName() *string
- func (v *V1Order) GetRecipientPhoneNumber() *string
- func (v *V1Order) GetRefundedNote() *string
- func (v *V1Order) GetShippingAddress() *Address
- func (v *V1Order) GetState() *V1OrderState
- func (v *V1Order) GetSubtotalMoney() *V1Money
- func (v *V1Order) GetTender() *V1Tender
- func (v *V1Order) GetTotalDiscountMoney() *V1Money
- func (v *V1Order) GetTotalPriceMoney() *V1Money
- func (v *V1Order) GetTotalShippingMoney() *V1Money
- func (v *V1Order) GetTotalTaxMoney() *V1Money
- func (v *V1Order) GetUpdatedAt() *string
- func (v *V1Order) String() string
- func (v *V1Order) UnmarshalJSON(data []byte) error
- type V1OrderHistoryEntry
- func (v *V1OrderHistoryEntry) GetAction() *V1OrderHistoryEntryAction
- func (v *V1OrderHistoryEntry) GetCreatedAt() *string
- func (v *V1OrderHistoryEntry) GetExtraProperties() map[string]interface{}
- func (v *V1OrderHistoryEntry) String() string
- func (v *V1OrderHistoryEntry) UnmarshalJSON(data []byte) error
- type V1OrderHistoryEntryAction
- type V1OrderState
- type V1RetrieveOrderRequest
- type V1Tender
- func (v *V1Tender) GetCardBrand() *V1TenderCardBrand
- func (v *V1Tender) GetChangeBackMoney() *V1Money
- func (v *V1Tender) GetEmployeeID() *string
- func (v *V1Tender) GetEntryMethod() *V1TenderEntryMethod
- func (v *V1Tender) GetExtraProperties() map[string]interface{}
- func (v *V1Tender) GetID() *string
- func (v *V1Tender) GetIsExchange() *bool
- func (v *V1Tender) GetName() *string
- func (v *V1Tender) GetPanSuffix() *string
- func (v *V1Tender) GetPaymentNote() *string
- func (v *V1Tender) GetReceiptURL() *string
- func (v *V1Tender) GetRefundedMoney() *V1Money
- func (v *V1Tender) GetSettledAt() *string
- func (v *V1Tender) GetTenderedAt() *string
- func (v *V1Tender) GetTenderedMoney() *V1Money
- func (v *V1Tender) GetTotalMoney() *V1Money
- func (v *V1Tender) GetType() *V1TenderType
- func (v *V1Tender) String() string
- func (v *V1Tender) UnmarshalJSON(data []byte) error
- type V1TenderCardBrand
- type V1TenderEntryMethod
- type V1TenderType
- type V1UpdateOrderRequest
- type V1UpdateOrderRequestAction
- type Vendor
- func (v *Vendor) GetAccountNumber() *string
- func (v *Vendor) GetAddress() *Address
- func (v *Vendor) GetContacts() []*VendorContact
- func (v *Vendor) GetCreatedAt() *string
- func (v *Vendor) GetExtraProperties() map[string]interface{}
- func (v *Vendor) GetID() *string
- func (v *Vendor) GetName() *string
- func (v *Vendor) GetNote() *string
- func (v *Vendor) GetStatus() *VendorStatus
- func (v *Vendor) GetUpdatedAt() *string
- func (v *Vendor) GetVersion() *int
- func (v *Vendor) String() string
- func (v *Vendor) UnmarshalJSON(data []byte) error
- type VendorContact
- func (v *VendorContact) GetEmailAddress() *string
- func (v *VendorContact) GetExtraProperties() map[string]interface{}
- func (v *VendorContact) GetID() *string
- func (v *VendorContact) GetName() *string
- func (v *VendorContact) GetOrdinal() int
- func (v *VendorContact) GetPhoneNumber() *string
- func (v *VendorContact) GetRemoved() *bool
- func (v *VendorContact) String() string
- func (v *VendorContact) UnmarshalJSON(data []byte) error
- type VendorStatus
- type VendorsGetRequest
- type VendorsUpdateRequest
- type VerifySignatureRequest
- type VisibilityFilter
- type VoidTransactionResponse
- type WageSetting
- func (w *WageSetting) GetCreatedAt() *string
- func (w *WageSetting) GetExtraProperties() map[string]interface{}
- func (w *WageSetting) GetIsOvertimeExempt() *bool
- func (w *WageSetting) GetJobAssignments() []*JobAssignment
- func (w *WageSetting) GetTeamMemberID() *string
- func (w *WageSetting) GetUpdatedAt() *string
- func (w *WageSetting) GetVersion() *int
- func (w *WageSetting) String() string
- func (w *WageSetting) UnmarshalJSON(data []byte) error
- type WebhookSubscription
- func (w *WebhookSubscription) GetAPIVersion() *string
- func (w *WebhookSubscription) GetCreatedAt() *string
- func (w *WebhookSubscription) GetEnabled() *bool
- func (w *WebhookSubscription) GetEventTypes() []string
- func (w *WebhookSubscription) GetExtraProperties() map[string]interface{}
- func (w *WebhookSubscription) GetID() *string
- func (w *WebhookSubscription) GetName() *string
- func (w *WebhookSubscription) GetNotificationURL() *string
- func (w *WebhookSubscription) GetSignatureKey() *string
- func (w *WebhookSubscription) GetUpdatedAt() *string
- func (w *WebhookSubscription) String() string
- func (w *WebhookSubscription) UnmarshalJSON(data []byte) error
- type Weekday
- type WorkweekConfig
- func (w *WorkweekConfig) GetCreatedAt() *string
- func (w *WorkweekConfig) GetExtraProperties() map[string]interface{}
- func (w *WorkweekConfig) GetID() *string
- func (w *WorkweekConfig) GetStartOfDayLocalTime() string
- func (w *WorkweekConfig) GetStartOfWeek() Weekday
- func (w *WorkweekConfig) GetUpdatedAt() *string
- func (w *WorkweekConfig) GetVersion() *int
- func (w *WorkweekConfig) String() string
- func (w *WorkweekConfig) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
var Environments = struct { Production string Sandbox string }{ Production: "https://connect.squareup.com", Sandbox: "https://connect.squareupsandbox.com", }
Environments defines all of the API environments. These values can be used with the WithBaseURL RequestOption to override the client's default environment, if any.
Functions ¶
func Complex128 ¶
func Complex128(c complex128) *complex128
Complex128 returns a pointer to the given complex128 value.
func MustParseDate ¶
MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.
func MustParseDateTime ¶
MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.
Types ¶
type AcceptDisputeResponse ¶
type AcceptDisputeResponse struct {
// Information about errors encountered during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// Details about the accepted dispute.
Dispute *Dispute `json:"dispute,omitempty" url:"dispute,omitempty"`
// contains filtered or unexported fields
}
Defines the fields in an `AcceptDispute` response.
func (*AcceptDisputeResponse) GetDispute ¶
func (a *AcceptDisputeResponse) GetDispute() *Dispute
func (*AcceptDisputeResponse) GetErrors ¶
func (a *AcceptDisputeResponse) GetErrors() []*Error
func (*AcceptDisputeResponse) GetExtraProperties ¶
func (a *AcceptDisputeResponse) GetExtraProperties() map[string]interface{}
func (*AcceptDisputeResponse) String ¶
func (a *AcceptDisputeResponse) String() string
func (*AcceptDisputeResponse) UnmarshalJSON ¶
func (a *AcceptDisputeResponse) UnmarshalJSON(data []byte) error
type AcceptDisputesRequest ¶ added in v1.2.0
type AcceptDisputesRequest struct {
// The ID of the dispute you want to accept.
DisputeID string `json:"-" url:"-"`
}
type AcceptedPaymentMethods ¶
type AcceptedPaymentMethods struct {
// Whether Apple Pay is accepted at checkout.
ApplePay *bool `json:"apple_pay,omitempty" url:"apple_pay,omitempty"`
// Whether Google Pay is accepted at checkout.
GooglePay *bool `json:"google_pay,omitempty" url:"google_pay,omitempty"`
// Whether Cash App Pay is accepted at checkout.
CashAppPay *bool `json:"cash_app_pay,omitempty" url:"cash_app_pay,omitempty"`
// Whether Afterpay/Clearpay is accepted at checkout.
AfterpayClearpay *bool `json:"afterpay_clearpay,omitempty" url:"afterpay_clearpay,omitempty"`
// contains filtered or unexported fields
}
func (*AcceptedPaymentMethods) GetAfterpayClearpay ¶
func (a *AcceptedPaymentMethods) GetAfterpayClearpay() *bool
func (*AcceptedPaymentMethods) GetApplePay ¶
func (a *AcceptedPaymentMethods) GetApplePay() *bool
func (*AcceptedPaymentMethods) GetCashAppPay ¶
func (a *AcceptedPaymentMethods) GetCashAppPay() *bool
func (*AcceptedPaymentMethods) GetExtraProperties ¶
func (a *AcceptedPaymentMethods) GetExtraProperties() map[string]interface{}
func (*AcceptedPaymentMethods) GetGooglePay ¶
func (a *AcceptedPaymentMethods) GetGooglePay() *bool
func (*AcceptedPaymentMethods) String ¶
func (a *AcceptedPaymentMethods) String() string
func (*AcceptedPaymentMethods) UnmarshalJSON ¶
func (a *AcceptedPaymentMethods) UnmarshalJSON(data []byte) error
type AccumulateLoyaltyPointsResponse ¶
type AccumulateLoyaltyPointsResponse struct {
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// The resulting loyalty event. Starting in Square version 2022-08-17, this field is no longer returned.
Event *LoyaltyEvent `json:"event,omitempty" url:"event,omitempty"`
// The resulting loyalty events. If the purchase qualifies for points, the `ACCUMULATE_POINTS` event
// is always included. When using the Orders API, the `ACCUMULATE_PROMOTION_POINTS` event is included
// if the purchase also qualifies for a loyalty promotion.
Events []*LoyaltyEvent `json:"events,omitempty" url:"events,omitempty"`
// contains filtered or unexported fields
}
Represents an [AccumulateLoyaltyPoints](api-endpoint:Loyalty-AccumulateLoyaltyPoints) response.
func (*AccumulateLoyaltyPointsResponse) GetErrors ¶
func (a *AccumulateLoyaltyPointsResponse) GetErrors() []*Error
func (*AccumulateLoyaltyPointsResponse) GetEvent ¶
func (a *AccumulateLoyaltyPointsResponse) GetEvent() *LoyaltyEvent
func (*AccumulateLoyaltyPointsResponse) GetEvents ¶
func (a *AccumulateLoyaltyPointsResponse) GetEvents() []*LoyaltyEvent
func (*AccumulateLoyaltyPointsResponse) GetExtraProperties ¶
func (a *AccumulateLoyaltyPointsResponse) GetExtraProperties() map[string]interface{}
func (*AccumulateLoyaltyPointsResponse) String ¶
func (a *AccumulateLoyaltyPointsResponse) String() string
func (*AccumulateLoyaltyPointsResponse) UnmarshalJSON ¶
func (a *AccumulateLoyaltyPointsResponse) UnmarshalJSON(data []byte) error
type AchDetails ¶
type AchDetails struct {
// The routing number for the bank account.
RoutingNumber *string `json:"routing_number,omitempty" url:"routing_number,omitempty"`
// The last few digits of the bank account number.
AccountNumberSuffix *string `json:"account_number_suffix,omitempty" url:"account_number_suffix,omitempty"`
// The type of the bank account performing the transfer. The account type can be `CHECKING`,
// `SAVINGS`, or `UNKNOWN`.
AccountType *string `json:"account_type,omitempty" url:"account_type,omitempty"`
// contains filtered or unexported fields
}
ACH-specific details about `BANK_ACCOUNT` type payments with the `transfer_type` of `ACH`.
func (*AchDetails) GetAccountNumberSuffix ¶
func (a *AchDetails) GetAccountNumberSuffix() *string
func (*AchDetails) GetAccountType ¶
func (a *AchDetails) GetAccountType() *string
func (*AchDetails) GetExtraProperties ¶
func (a *AchDetails) GetExtraProperties() map[string]interface{}
func (*AchDetails) GetRoutingNumber ¶
func (a *AchDetails) GetRoutingNumber() *string
func (*AchDetails) String ¶
func (a *AchDetails) String() string
func (*AchDetails) UnmarshalJSON ¶
func (a *AchDetails) UnmarshalJSON(data []byte) error
type ActionCancelReason ¶
type ActionCancelReason string
const ( ActionCancelReasonBuyerCanceled ActionCancelReason = "BUYER_CANCELED" ActionCancelReasonSellerCanceled ActionCancelReason = "SELLER_CANCELED" ActionCancelReasonTimedOut ActionCancelReason = "TIMED_OUT" )
func NewActionCancelReasonFromString ¶
func NewActionCancelReasonFromString(s string) (ActionCancelReason, error)
func (ActionCancelReason) Ptr ¶
func (a ActionCancelReason) Ptr() *ActionCancelReason
type ActivityType ¶
type ActivityType string
const ( ActivityTypeAdjustment ActivityType = "ADJUSTMENT" ActivityTypeAppFeeRefund ActivityType = "APP_FEE_REFUND" ActivityTypeAppFeeRevenue ActivityType = "APP_FEE_REVENUE" ActivityTypeAutomaticSavings ActivityType = "AUTOMATIC_SAVINGS" ActivityTypeAutomaticSavingsReversed ActivityType = "AUTOMATIC_SAVINGS_REVERSED" ActivityTypeCharge ActivityType = "CHARGE" ActivityTypeDepositFee ActivityType = "DEPOSIT_FEE" ActivityTypeDepositFeeReversed ActivityType = "DEPOSIT_FEE_REVERSED" ActivityTypeDispute ActivityType = "DISPUTE" ActivityTypeEscheatment ActivityType = "ESCHEATMENT" ActivityTypeFee ActivityType = "FEE" ActivityTypeFreeProcessing ActivityType = "FREE_PROCESSING" ActivityTypeHoldAdjustment ActivityType = "HOLD_ADJUSTMENT" ActivityTypeInitialBalanceChange ActivityType = "INITIAL_BALANCE_CHANGE" ActivityTypeMoneyTransfer ActivityType = "MONEY_TRANSFER" ActivityTypeMoneyTransferReversal ActivityType = "MONEY_TRANSFER_REVERSAL" ActivityTypeOpenDispute ActivityType = "OPEN_DISPUTE" ActivityTypeOther ActivityType = "OTHER" ActivityTypeOtherAdjustment ActivityType = "OTHER_ADJUSTMENT" ActivityTypePaidServiceFee ActivityType = "PAID_SERVICE_FEE" ActivityTypePaidServiceFeeRefund ActivityType = "PAID_SERVICE_FEE_REFUND" ActivityTypeRedemptionCode ActivityType = "REDEMPTION_CODE" ActivityTypeRefund ActivityType = "REFUND" ActivityTypeReleaseAdjustment ActivityType = "RELEASE_ADJUSTMENT" ActivityTypeReserveHold ActivityType = "RESERVE_HOLD" ActivityTypeReserveRelease ActivityType = "RESERVE_RELEASE" ActivityTypeReturnedPayout ActivityType = "RETURNED_PAYOUT" ActivityTypeSquareCapitalPayment ActivityType = "SQUARE_CAPITAL_PAYMENT" ActivityTypeSquareCapitalReversedPayment ActivityType = "SQUARE_CAPITAL_REVERSED_PAYMENT" ActivityTypeSubscriptionFee ActivityType = "SUBSCRIPTION_FEE" ActivityTypeSubscriptionFeePaidRefund ActivityType = "SUBSCRIPTION_FEE_PAID_REFUND" ActivityTypeSubscriptionFeeRefund ActivityType = "SUBSCRIPTION_FEE_REFUND" ActivityTypeTaxOnFee ActivityType = "TAX_ON_FEE" ActivityTypeThirdPartyFee ActivityType = "THIRD_PARTY_FEE" ActivityTypeThirdPartyFeeRefund ActivityType = "THIRD_PARTY_FEE_REFUND" ActivityTypePayout ActivityType = "PAYOUT" ActivityTypeAutomaticBitcoinConversions ActivityType = "AUTOMATIC_BITCOIN_CONVERSIONS" ActivityTypeAutomaticBitcoinConversionsReversed ActivityType = "AUTOMATIC_BITCOIN_CONVERSIONS_REVERSED" ActivityTypeCreditCardRepayment ActivityType = "CREDIT_CARD_REPAYMENT" ActivityTypeCreditCardRepaymentReversed ActivityType = "CREDIT_CARD_REPAYMENT_REVERSED" ActivityTypeLocalOffersCashback ActivityType = "LOCAL_OFFERS_CASHBACK" ActivityTypeLocalOffersFee ActivityType = "LOCAL_OFFERS_FEE" ActivityTypePercentageProcessingEnrollment ActivityType = "PERCENTAGE_PROCESSING_ENROLLMENT" ActivityTypePercentageProcessingDeactivation ActivityType = "PERCENTAGE_PROCESSING_DEACTIVATION" ActivityTypePercentageProcessingRepayment ActivityType = "PERCENTAGE_PROCESSING_REPAYMENT" ActivityTypePercentageProcessingRepaymentReversed ActivityType = "PERCENTAGE_PROCESSING_REPAYMENT_REVERSED" ActivityTypeProcessingFee ActivityType = "PROCESSING_FEE" ActivityTypeProcessingFeeRefund ActivityType = "PROCESSING_FEE_REFUND" ActivityTypeUndoProcessingFeeRefund ActivityType = "UNDO_PROCESSING_FEE_REFUND" ActivityTypeGiftCardLoadFee ActivityType = "GIFT_CARD_LOAD_FEE" ActivityTypeGiftCardLoadFeeRefund ActivityType = "GIFT_CARD_LOAD_FEE_REFUND" ActivityTypeUndoGiftCardLoadFeeRefund ActivityType = "UNDO_GIFT_CARD_LOAD_FEE_REFUND" ActivityTypeBalanceFoldersTransfer ActivityType = "BALANCE_FOLDERS_TRANSFER" ActivityTypeBalanceFoldersTransferReversed ActivityType = "BALANCE_FOLDERS_TRANSFER_REVERSED" ActivityTypeGiftCardPoolTransfer ActivityType = "GIFT_CARD_POOL_TRANSFER" ActivityTypeGiftCardPoolTransferReversed ActivityType = "GIFT_CARD_POOL_TRANSFER_REVERSED" ActivityTypeSquarePayrollTransfer ActivityType = "SQUARE_PAYROLL_TRANSFER" ActivityTypeSquarePayrollTransferReversed ActivityType = "SQUARE_PAYROLL_TRANSFER_REVERSED" )
func NewActivityTypeFromString ¶
func NewActivityTypeFromString(s string) (ActivityType, error)
func (ActivityType) Ptr ¶
func (a ActivityType) Ptr() *ActivityType
type AddGroupToCustomerResponse ¶
type AddGroupToCustomerResponse struct {
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Defines the fields that are included in the response body of a request to the [AddGroupToCustomer](api-endpoint:Customers-AddGroupToCustomer) endpoint.
func (*AddGroupToCustomerResponse) GetErrors ¶
func (a *AddGroupToCustomerResponse) GetErrors() []*Error
func (*AddGroupToCustomerResponse) GetExtraProperties ¶
func (a *AddGroupToCustomerResponse) GetExtraProperties() map[string]interface{}
func (*AddGroupToCustomerResponse) String ¶
func (a *AddGroupToCustomerResponse) String() string
func (*AddGroupToCustomerResponse) UnmarshalJSON ¶
func (a *AddGroupToCustomerResponse) UnmarshalJSON(data []byte) error
type AdditionalRecipient ¶
type AdditionalRecipient struct {
// The location ID for a recipient (other than the merchant) receiving a portion of this tender.
LocationID string `json:"location_id" url:"location_id"`
// The description of the additional recipient.
Description *string `json:"description,omitempty" url:"description,omitempty"`
// The amount of money distributed to the recipient.
AmountMoney *Money `json:"amount_money,omitempty" url:"amount_money,omitempty"`
// The unique ID for the RETIRED `AdditionalRecipientReceivable` object. This field should be empty for any `AdditionalRecipient` objects created after the retirement.
ReceivableID *string `json:"receivable_id,omitempty" url:"receivable_id,omitempty"`
// contains filtered or unexported fields
}
Represents an additional recipient (other than the merchant) receiving a portion of this tender.
func (*AdditionalRecipient) GetAmountMoney ¶
func (a *AdditionalRecipient) GetAmountMoney() *Money
func (*AdditionalRecipient) GetDescription ¶
func (a *AdditionalRecipient) GetDescription() *string
func (*AdditionalRecipient) GetExtraProperties ¶
func (a *AdditionalRecipient) GetExtraProperties() map[string]interface{}
func (*AdditionalRecipient) GetLocationID ¶
func (a *AdditionalRecipient) GetLocationID() string
func (*AdditionalRecipient) GetReceivableID ¶
func (a *AdditionalRecipient) GetReceivableID() *string
func (*AdditionalRecipient) String ¶
func (a *AdditionalRecipient) String() string
func (*AdditionalRecipient) UnmarshalJSON ¶
func (a *AdditionalRecipient) UnmarshalJSON(data []byte) error
type Address ¶
type Address struct {
// The first line of the address.
//
// Fields that start with `address_line` provide the address's most specific
// details, like street number, street name, and building name. They do *not*
// provide less specific details like city, state/province, or country (these
// details are provided in other fields).
AddressLine1 *string `json:"address_line_1,omitempty" url:"address_line_1,omitempty"`
// The second line of the address, if any.
AddressLine2 *string `json:"address_line_2,omitempty" url:"address_line_2,omitempty"`
// The third line of the address, if any.
AddressLine3 *string `json:"address_line_3,omitempty" url:"address_line_3,omitempty"`
// The city or town of the address. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).
Locality *string `json:"locality,omitempty" url:"locality,omitempty"`
// A civil region within the address's `locality`, if any.
Sublocality *string `json:"sublocality,omitempty" url:"sublocality,omitempty"`
// A civil region within the address's `sublocality`, if any.
Sublocality2 *string `json:"sublocality_2,omitempty" url:"sublocality_2,omitempty"`
// A civil region within the address's `sublocality_2`, if any.
Sublocality3 *string `json:"sublocality_3,omitempty" url:"sublocality_3,omitempty"`
// A civil entity within the address's country. In the US, this
// is the state. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).
AdministrativeDistrictLevel1 *string `json:"administrative_district_level_1,omitempty" url:"administrative_district_level_1,omitempty"`
// A civil entity within the address's `administrative_district_level_1`.
// In the US, this is the county.
AdministrativeDistrictLevel2 *string `json:"administrative_district_level_2,omitempty" url:"administrative_district_level_2,omitempty"`
// A civil entity within the address's `administrative_district_level_2`,
// if any.
AdministrativeDistrictLevel3 *string `json:"administrative_district_level_3,omitempty" url:"administrative_district_level_3,omitempty"`
// The address's postal code. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).
PostalCode *string `json:"postal_code,omitempty" url:"postal_code,omitempty"`
// The address's country, in the two-letter format of ISO 3166. For example, `US` or `FR`.
// See [Country](#type-country) for possible values
Country *Country `json:"country,omitempty" url:"country,omitempty"`
// Optional first name when it's representing recipient.
FirstName *string `json:"first_name,omitempty" url:"first_name,omitempty"`
// Optional last name when it's representing recipient.
LastName *string `json:"last_name,omitempty" url:"last_name,omitempty"`
// contains filtered or unexported fields
}
Represents a postal address in a country. For more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).
func (*Address) GetAddressLine1 ¶
func (*Address) GetAddressLine2 ¶
func (*Address) GetAddressLine3 ¶
func (*Address) GetAdministrativeDistrictLevel1 ¶
func (*Address) GetAdministrativeDistrictLevel2 ¶
func (*Address) GetAdministrativeDistrictLevel3 ¶
func (*Address) GetCountry ¶
func (*Address) GetExtraProperties ¶
func (*Address) GetFirstName ¶
func (*Address) GetLastName ¶
func (*Address) GetLocality ¶
func (*Address) GetPostalCode ¶
func (*Address) GetSublocality ¶
func (*Address) GetSublocality2 ¶
func (*Address) GetSublocality3 ¶
func (*Address) UnmarshalJSON ¶
type AdjustLoyaltyPointsResponse ¶
type AdjustLoyaltyPointsResponse struct {
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// The resulting event data for the adjustment.
Event *LoyaltyEvent `json:"event,omitempty" url:"event,omitempty"`
// contains filtered or unexported fields
}
Represents an [AdjustLoyaltyPoints](api-endpoint:Loyalty-AdjustLoyaltyPoints) request.
func (*AdjustLoyaltyPointsResponse) GetErrors ¶
func (a *AdjustLoyaltyPointsResponse) GetErrors() []*Error
func (*AdjustLoyaltyPointsResponse) GetEvent ¶
func (a *AdjustLoyaltyPointsResponse) GetEvent() *LoyaltyEvent
func (*AdjustLoyaltyPointsResponse) GetExtraProperties ¶
func (a *AdjustLoyaltyPointsResponse) GetExtraProperties() map[string]interface{}
func (*AdjustLoyaltyPointsResponse) String ¶
func (a *AdjustLoyaltyPointsResponse) String() string
func (*AdjustLoyaltyPointsResponse) UnmarshalJSON ¶
func (a *AdjustLoyaltyPointsResponse) UnmarshalJSON(data []byte) error
type AfterpayDetails ¶
type AfterpayDetails struct {
// Email address on the buyer's Afterpay account.
EmailAddress *string `json:"email_address,omitempty" url:"email_address,omitempty"`
// contains filtered or unexported fields
}
Additional details about Afterpay payments.
func (*AfterpayDetails) GetEmailAddress ¶
func (a *AfterpayDetails) GetEmailAddress() *string
func (*AfterpayDetails) GetExtraProperties ¶
func (a *AfterpayDetails) GetExtraProperties() map[string]interface{}
func (*AfterpayDetails) String ¶
func (a *AfterpayDetails) String() string
func (*AfterpayDetails) UnmarshalJSON ¶
func (a *AfterpayDetails) UnmarshalJSON(data []byte) error
type ApplicationDetails ¶
type ApplicationDetails struct {
// The Square product, such as Square Point of Sale (POS),
// Square Invoices, or Square Virtual Terminal.
// See [ExternalSquareProduct](#type-externalsquareproduct) for possible values
SquareProduct *ApplicationDetailsExternalSquareProduct `json:"square_product,omitempty" url:"square_product,omitempty"`
// The Square ID assigned to the application used to take the payment.
// Application developers can use this information to identify payments that
// their application processed.
// For example, if a developer uses a custom application to process payments,
// this field contains the application ID from the Developer Dashboard.
// If a seller uses a [Square App Marketplace](https://developer.squareup.com/docs/app-marketplace)
// application to process payments, the field contains the corresponding application ID.
ApplicationID *string `json:"application_id,omitempty" url:"application_id,omitempty"`
// contains filtered or unexported fields
}
Details about the application that took the payment.
func (*ApplicationDetails) GetApplicationID ¶
func (a *ApplicationDetails) GetApplicationID() *string
func (*ApplicationDetails) GetExtraProperties ¶
func (a *ApplicationDetails) GetExtraProperties() map[string]interface{}
func (*ApplicationDetails) GetSquareProduct ¶
func (a *ApplicationDetails) GetSquareProduct() *ApplicationDetailsExternalSquareProduct
func (*ApplicationDetails) String ¶
func (a *ApplicationDetails) String() string
func (*ApplicationDetails) UnmarshalJSON ¶
func (a *ApplicationDetails) UnmarshalJSON(data []byte) error
type ApplicationDetailsExternalSquareProduct ¶
type ApplicationDetailsExternalSquareProduct string
A list of products to return to external callers.
const ( ApplicationDetailsExternalSquareProductAppointments ApplicationDetailsExternalSquareProduct = "APPOINTMENTS" ApplicationDetailsExternalSquareProductEcommerceAPI ApplicationDetailsExternalSquareProduct = "ECOMMERCE_API" ApplicationDetailsExternalSquareProductInvoices ApplicationDetailsExternalSquareProduct = "INVOICES" ApplicationDetailsExternalSquareProductOnlineStore ApplicationDetailsExternalSquareProduct = "ONLINE_STORE" ApplicationDetailsExternalSquareProductOther ApplicationDetailsExternalSquareProduct = "OTHER" ApplicationDetailsExternalSquareProductRestaurants ApplicationDetailsExternalSquareProduct = "RESTAURANTS" ApplicationDetailsExternalSquareProductRetail ApplicationDetailsExternalSquareProduct = "RETAIL" ApplicationDetailsExternalSquareProductSquarePos ApplicationDetailsExternalSquareProduct = "SQUARE_POS" ApplicationDetailsExternalSquareProductTerminalAPI ApplicationDetailsExternalSquareProduct = "TERMINAL_API" ApplicationDetailsExternalSquareProductVirtualTerminal ApplicationDetailsExternalSquareProduct = "VIRTUAL_TERMINAL" )
func NewApplicationDetailsExternalSquareProductFromString ¶
func NewApplicationDetailsExternalSquareProductFromString(s string) (ApplicationDetailsExternalSquareProduct, error)
type ApplicationType ¶
type ApplicationType = string
type AppointmentSegment ¶
type AppointmentSegment struct {
// The time span in minutes of an appointment segment.
DurationMinutes *int `json:"duration_minutes,omitempty" url:"duration_minutes,omitempty"`
// The ID of the [CatalogItemVariation](entity:CatalogItemVariation) object representing the service booked in this segment.
ServiceVariationID *string `json:"service_variation_id,omitempty" url:"service_variation_id,omitempty"`
// The ID of the [TeamMember](entity:TeamMember) object representing the team member booked in this segment.
TeamMemberID string `json:"team_member_id" url:"team_member_id"`
// The current version of the item variation representing the service booked in this segment.
ServiceVariationVersion *int64 `json:"service_variation_version,omitempty" url:"service_variation_version,omitempty"`
// Time between the end of this segment and the beginning of the subsequent segment.
IntermissionMinutes *int `json:"intermission_minutes,omitempty" url:"intermission_minutes,omitempty"`
// Whether the customer accepts any team member, instead of a specific one, to serve this segment.
AnyTeamMember *bool `json:"any_team_member,omitempty" url:"any_team_member,omitempty"`
// The IDs of the seller-accessible resources used for this appointment segment.
ResourceIDs []string `json:"resource_ids,omitempty" url:"resource_ids,omitempty"`
// contains filtered or unexported fields
}
Defines an appointment segment of a booking.
func (*AppointmentSegment) GetAnyTeamMember ¶
func (a *AppointmentSegment) GetAnyTeamMember() *bool
func (*AppointmentSegment) GetDurationMinutes ¶
func (a *AppointmentSegment) GetDurationMinutes() *int
func (*AppointmentSegment) GetExtraProperties ¶
func (a *AppointmentSegment) GetExtraProperties() map[string]interface{}
func (*AppointmentSegment) GetIntermissionMinutes ¶
func (a *AppointmentSegment) GetIntermissionMinutes() *int
func (*AppointmentSegment) GetResourceIDs ¶
func (a *AppointmentSegment) GetResourceIDs() []string
func (*AppointmentSegment) GetServiceVariationID ¶
func (a *AppointmentSegment) GetServiceVariationID() *string
func (*AppointmentSegment) GetServiceVariationVersion ¶
func (a *AppointmentSegment) GetServiceVariationVersion() *int64
func (*AppointmentSegment) GetTeamMemberID ¶
func (a *AppointmentSegment) GetTeamMemberID() string
func (*AppointmentSegment) String ¶
func (a *AppointmentSegment) String() string
func (*AppointmentSegment) UnmarshalJSON ¶
func (a *AppointmentSegment) UnmarshalJSON(data []byte) error
type ArchivedState ¶
type ArchivedState string
Defines the values for the `archived_state` query expression used in [SearchCatalogItems](api-endpoint:Catalog-SearchCatalogItems) to return the archived, not archived or either type of catalog items.
const ( ArchivedStateArchivedStateNotArchived ArchivedState = "ARCHIVED_STATE_NOT_ARCHIVED" ArchivedStateArchivedStateArchived ArchivedState = "ARCHIVED_STATE_ARCHIVED" ArchivedStateArchivedStateAll ArchivedState = "ARCHIVED_STATE_ALL" )
func NewArchivedStateFromString ¶
func NewArchivedStateFromString(s string) (ArchivedState, error)
func (ArchivedState) Ptr ¶
func (a ArchivedState) Ptr() *ArchivedState
type Availability ¶
type Availability struct {
// The RFC 3339 timestamp specifying the beginning time of the slot available for booking.
StartAt *string `json:"start_at,omitempty" url:"start_at,omitempty"`
// The ID of the location available for booking.
LocationID *string `json:"location_id,omitempty" url:"location_id,omitempty"`
// The list of appointment segments available for booking
AppointmentSegments []*AppointmentSegment `json:"appointment_segments,omitempty" url:"appointment_segments,omitempty"`
// contains filtered or unexported fields
}
Defines an appointment slot that encapsulates the appointment segments, location and starting time available for booking.
func (*Availability) GetAppointmentSegments ¶
func (a *Availability) GetAppointmentSegments() []*AppointmentSegment
func (*Availability) GetExtraProperties ¶
func (a *Availability) GetExtraProperties() map[string]interface{}
func (*Availability) GetLocationID ¶
func (a *Availability) GetLocationID() *string
func (*Availability) GetStartAt ¶
func (a *Availability) GetStartAt() *string
func (*Availability) String ¶
func (a *Availability) String() string
func (*Availability) UnmarshalJSON ¶
func (a *Availability) UnmarshalJSON(data []byte) error
type BankAccount ¶
type BankAccount struct {
// The unique, Square-issued identifier for the bank account.
ID string `json:"id" url:"id"`
// The last few digits of the account number.
AccountNumberSuffix string `json:"account_number_suffix" url:"account_number_suffix"`
// The ISO 3166 Alpha-2 country code where the bank account is based.
// See [Country](#type-country) for possible values
Country Country `json:"country" url:"country"`
// The 3-character ISO 4217 currency code indicating the operating
// currency of the bank account. For example, the currency code for US dollars
// is `USD`.
// See [Currency](#type-currency) for possible values
Currency Currency `json:"currency" url:"currency"`
// The financial purpose of the associated bank account.
// See [BankAccountType](#type-bankaccounttype) for possible values
AccountType BankAccountType `json:"account_type" url:"account_type"`
// Name of the account holder. This name must match the name
// on the targeted bank account record.
HolderName string `json:"holder_name" url:"holder_name"`
// Primary identifier for the bank. For more information, see
// [Bank Accounts API](https://developer.squareup.com/docs/bank-accounts-api).
PrimaryBankIdentificationNumber string `json:"primary_bank_identification_number" url:"primary_bank_identification_number"`
// Secondary identifier for the bank. For more information, see
// [Bank Accounts API](https://developer.squareup.com/docs/bank-accounts-api).
SecondaryBankIdentificationNumber *string `json:"secondary_bank_identification_number,omitempty" url:"secondary_bank_identification_number,omitempty"`
// Reference identifier that will be displayed to UK bank account owners
// when collecting direct debit authorization. Only required for UK bank accounts.
DebitMandateReferenceID *string `json:"debit_mandate_reference_id,omitempty" url:"debit_mandate_reference_id,omitempty"`
// Client-provided identifier for linking the banking account to an entity
// in a third-party system (for example, a bank account number or a user identifier).
ReferenceID *string `json:"reference_id,omitempty" url:"reference_id,omitempty"`
// The location to which the bank account belongs.
LocationID *string `json:"location_id,omitempty" url:"location_id,omitempty"`
// Read-only. The current verification status of this BankAccount object.
// See [BankAccountStatus](#type-bankaccountstatus) for possible values
Status BankAccountStatus `json:"status" url:"status"`
// Indicates whether it is possible for Square to send money to this bank account.
Creditable bool `json:"creditable" url:"creditable"`
// Indicates whether it is possible for Square to take money from this
// bank account.
Debitable bool `json:"debitable" url:"debitable"`
// A Square-assigned, unique identifier for the bank account based on the
// account information. The account fingerprint can be used to compare account
// entries and determine if the they represent the same real-world bank account.
Fingerprint *string `json:"fingerprint,omitempty" url:"fingerprint,omitempty"`
// The current version of the `BankAccount`.
Version *int `json:"version,omitempty" url:"version,omitempty"`
// Read only. Name of actual financial institution.
// For example "Bank of America".
BankName *string `json:"bank_name,omitempty" url:"bank_name,omitempty"`
// contains filtered or unexported fields
}
Represents a bank account. For more information about linking a bank account to a Square account, see [Bank Accounts API](https://developer.squareup.com/docs/bank-accounts-api).
func (*BankAccount) GetAccountNumberSuffix ¶
func (b *BankAccount) GetAccountNumberSuffix() string
func (*BankAccount) GetAccountType ¶
func (b *BankAccount) GetAccountType() BankAccountType
func (*BankAccount) GetBankName ¶
func (b *BankAccount) GetBankName() *string
func (*BankAccount) GetCountry ¶
func (b *BankAccount) GetCountry() Country
func (*BankAccount) GetCreditable ¶
func (b *BankAccount) GetCreditable() bool
func (*BankAccount) GetCurrency ¶
func (b *BankAccount) GetCurrency() Currency
func (*BankAccount) GetDebitMandateReferenceID ¶
func (b *BankAccount) GetDebitMandateReferenceID() *string
func (*BankAccount) GetDebitable ¶
func (b *BankAccount) GetDebitable() bool
func (*BankAccount) GetExtraProperties ¶
func (b *BankAccount) GetExtraProperties() map[string]interface{}
func (*BankAccount) GetFingerprint ¶
func (b *BankAccount) GetFingerprint() *string
func (*BankAccount) GetHolderName ¶
func (b *BankAccount) GetHolderName() string
func (*BankAccount) GetID ¶
func (b *BankAccount) GetID() string
func (*BankAccount) GetLocationID ¶
func (b *BankAccount) GetLocationID() *string
func (*BankAccount) GetPrimaryBankIdentificationNumber ¶
func (b *BankAccount) GetPrimaryBankIdentificationNumber() string
func (*BankAccount) GetReferenceID ¶
func (b *BankAccount) GetReferenceID() *string
func (*BankAccount) GetSecondaryBankIdentificationNumber ¶
func (b *BankAccount) GetSecondaryBankIdentificationNumber() *string
func (*BankAccount) GetStatus ¶
func (b *BankAccount) GetStatus() BankAccountStatus
func (*BankAccount) GetVersion ¶
func (b *BankAccount) GetVersion() *int
func (*BankAccount) String ¶
func (b *BankAccount) String() string
func (*BankAccount) UnmarshalJSON ¶
func (b *BankAccount) UnmarshalJSON(data []byte) error
type BankAccountPaymentDetails ¶
type BankAccountPaymentDetails struct {
// The name of the bank associated with the bank account.
BankName *string `json:"bank_name,omitempty" url:"bank_name,omitempty"`
// The type of the bank transfer. The type can be `ACH` or `UNKNOWN`.
TransferType *string `json:"transfer_type,omitempty" url:"transfer_type,omitempty"`
// The ownership type of the bank account performing the transfer.
// The type can be `INDIVIDUAL`, `COMPANY`, or `ACCOUNT_TYPE_UNKNOWN`.
AccountOwnershipType *string `json:"account_ownership_type,omitempty" url:"account_ownership_type,omitempty"`
// Uniquely identifies the bank account for this seller and can be used
// to determine if payments are from the same bank account.
Fingerprint *string `json:"fingerprint,omitempty" url:"fingerprint,omitempty"`
// The two-letter ISO code representing the country the bank account is located in.
Country *string `json:"country,omitempty" url:"country,omitempty"`
// The statement description as sent to the bank.
StatementDescription *string `json:"statement_description,omitempty" url:"statement_description,omitempty"`
// ACH-specific information about the transfer. The information is only populated
// if the `transfer_type` is `ACH`.
AchDetails *AchDetails `json:"ach_details,omitempty" url:"ach_details,omitempty"`
// Information about errors encountered during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Additional details about BANK_ACCOUNT type payments.
func (*BankAccountPaymentDetails) GetAccountOwnershipType ¶
func (b *BankAccountPaymentDetails) GetAccountOwnershipType() *string
func (*BankAccountPaymentDetails) GetAchDetails ¶
func (b *BankAccountPaymentDetails) GetAchDetails() *AchDetails
func (*BankAccountPaymentDetails) GetBankName ¶
func (b *BankAccountPaymentDetails) GetBankName() *string
func (*BankAccountPaymentDetails) GetCountry ¶
func (b *BankAccountPaymentDetails) GetCountry() *string
func (*BankAccountPaymentDetails) GetErrors ¶
func (b *BankAccountPaymentDetails) GetErrors() []*Error
func (*BankAccountPaymentDetails) GetExtraProperties ¶
func (b *BankAccountPaymentDetails) GetExtraProperties() map[string]interface{}
func (*BankAccountPaymentDetails) GetFingerprint ¶
func (b *BankAccountPaymentDetails) GetFingerprint() *string
func (*BankAccountPaymentDetails) GetStatementDescription ¶
func (b *BankAccountPaymentDetails) GetStatementDescription() *string
func (*BankAccountPaymentDetails) GetTransferType ¶
func (b *BankAccountPaymentDetails) GetTransferType() *string
func (*BankAccountPaymentDetails) String ¶
func (b *BankAccountPaymentDetails) String() string
func (*BankAccountPaymentDetails) UnmarshalJSON ¶
func (b *BankAccountPaymentDetails) UnmarshalJSON(data []byte) error
type BankAccountStatus ¶
type BankAccountStatus string
Indicates the current verification status of a `BankAccount` object.
const ( BankAccountStatusVerificationInProgress BankAccountStatus = "VERIFICATION_IN_PROGRESS" BankAccountStatusVerified BankAccountStatus = "VERIFIED" BankAccountStatusDisabled BankAccountStatus = "DISABLED" )
func NewBankAccountStatusFromString ¶
func NewBankAccountStatusFromString(s string) (BankAccountStatus, error)
func (BankAccountStatus) Ptr ¶
func (b BankAccountStatus) Ptr() *BankAccountStatus
type BankAccountType ¶
type BankAccountType string
Indicates the financial purpose of the bank account.
const ( BankAccountTypeChecking BankAccountType = "CHECKING" BankAccountTypeSavings BankAccountType = "SAVINGS" BankAccountTypeInvestment BankAccountType = "INVESTMENT" BankAccountTypeOther BankAccountType = "OTHER" BankAccountTypeBusinessChecking BankAccountType = "BUSINESS_CHECKING" )
func NewBankAccountTypeFromString ¶
func NewBankAccountTypeFromString(s string) (BankAccountType, error)
func (BankAccountType) Ptr ¶
func (b BankAccountType) Ptr() *BankAccountType
type BatchChangeInventoryRequest ¶
type BatchChangeInventoryRequest struct {
// A client-supplied, universally unique identifier (UUID) for the
// request.
//
// See [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) in the
// [API Development 101](https://developer.squareup.com/docs/buildbasics) section for more
// information.
IdempotencyKey string `json:"idempotency_key" url:"idempotency_key"`
// The set of physical counts and inventory adjustments to be made.
// Changes are applied based on the client-supplied timestamp and may be sent
// out of order.
Changes []*InventoryChange `json:"changes,omitempty" url:"changes,omitempty"`
// Indicates whether the current physical count should be ignored if
// the quantity is unchanged since the last physical count. Default: `true`.
IgnoreUnchangedCounts *bool `json:"ignore_unchanged_counts,omitempty" url:"ignore_unchanged_counts,omitempty"`
// contains filtered or unexported fields
}
func (*BatchChangeInventoryRequest) GetChanges ¶
func (b *BatchChangeInventoryRequest) GetChanges() []*InventoryChange
func (*BatchChangeInventoryRequest) GetExtraProperties ¶
func (b *BatchChangeInventoryRequest) GetExtraProperties() map[string]interface{}
func (*BatchChangeInventoryRequest) GetIdempotencyKey ¶
func (b *BatchChangeInventoryRequest) GetIdempotencyKey() string
func (*BatchChangeInventoryRequest) GetIgnoreUnchangedCounts ¶
func (b *BatchChangeInventoryRequest) GetIgnoreUnchangedCounts() *bool
func (*BatchChangeInventoryRequest) String ¶
func (b *BatchChangeInventoryRequest) String() string
func (*BatchChangeInventoryRequest) UnmarshalJSON ¶
func (b *BatchChangeInventoryRequest) UnmarshalJSON(data []byte) error
type BatchChangeInventoryResponse ¶
type BatchChangeInventoryResponse struct {
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// The current counts for all objects referenced in the request.
Counts []*InventoryCount `json:"counts,omitempty" url:"counts,omitempty"`
// Changes created for the request.
Changes []*InventoryChange `json:"changes,omitempty" url:"changes,omitempty"`
// contains filtered or unexported fields
}
func (*BatchChangeInventoryResponse) GetChanges ¶
func (b *BatchChangeInventoryResponse) GetChanges() []*InventoryChange
func (*BatchChangeInventoryResponse) GetCounts ¶
func (b *BatchChangeInventoryResponse) GetCounts() []*InventoryCount
func (*BatchChangeInventoryResponse) GetErrors ¶
func (b *BatchChangeInventoryResponse) GetErrors() []*Error
func (*BatchChangeInventoryResponse) GetExtraProperties ¶
func (b *BatchChangeInventoryResponse) GetExtraProperties() map[string]interface{}
func (*BatchChangeInventoryResponse) String ¶
func (b *BatchChangeInventoryResponse) String() string
func (*BatchChangeInventoryResponse) UnmarshalJSON ¶
func (b *BatchChangeInventoryResponse) UnmarshalJSON(data []byte) error
type BatchCreateTeamMembersRequest ¶
type BatchCreateTeamMembersRequest struct {
// The data used to create the `TeamMember` objects. Each key is the `idempotency_key` that maps to the `CreateTeamMemberRequest`.
// The maximum number of create objects is 25.
//
// If you include a team member's `wage_setting`, you must provide `job_id` for each job assignment. To get job IDs,
// call [ListJobs](api-endpoint:Team-ListJobs).
TeamMembers map[string]*CreateTeamMemberRequest `json:"team_members,omitempty" url:"-"`
}
type BatchCreateTeamMembersResponse ¶
type BatchCreateTeamMembersResponse struct {
// The successfully created `TeamMember` objects. Each key is the `idempotency_key` that maps to the `CreateTeamMemberRequest`.
TeamMembers map[string]*CreateTeamMemberResponse `json:"team_members,omitempty" url:"team_members,omitempty"`
// The errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Represents a response from a bulk create request containing the created `TeamMember` objects or error messages.
func (*BatchCreateTeamMembersResponse) GetErrors ¶
func (b *BatchCreateTeamMembersResponse) GetErrors() []*Error
func (*BatchCreateTeamMembersResponse) GetExtraProperties ¶
func (b *BatchCreateTeamMembersResponse) GetExtraProperties() map[string]interface{}
func (*BatchCreateTeamMembersResponse) GetTeamMembers ¶
func (b *BatchCreateTeamMembersResponse) GetTeamMembers() map[string]*CreateTeamMemberResponse
func (*BatchCreateTeamMembersResponse) String ¶
func (b *BatchCreateTeamMembersResponse) String() string
func (*BatchCreateTeamMembersResponse) UnmarshalJSON ¶
func (b *BatchCreateTeamMembersResponse) UnmarshalJSON(data []byte) error
type BatchCreateVendorsResponse ¶
type BatchCreateVendorsResponse struct {
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// A set of [CreateVendorResponse](entity:CreateVendorResponse) objects encapsulating successfully created [Vendor](entity:Vendor)
// objects or error responses for failed attempts. The set is represented by
// a collection of idempotency-key/`Vendor`-object or idempotency-key/error-object pairs. The idempotency keys correspond to those specified
// in the input.
Responses map[string]*CreateVendorResponse `json:"responses,omitempty" url:"responses,omitempty"`
// contains filtered or unexported fields
}
Represents an output from a call to [BulkCreateVendors](api-endpoint:Vendors-BulkCreateVendors).
func (*BatchCreateVendorsResponse) GetErrors ¶
func (b *BatchCreateVendorsResponse) GetErrors() []*Error
func (*BatchCreateVendorsResponse) GetExtraProperties ¶
func (b *BatchCreateVendorsResponse) GetExtraProperties() map[string]interface{}
func (*BatchCreateVendorsResponse) GetResponses ¶
func (b *BatchCreateVendorsResponse) GetResponses() map[string]*CreateVendorResponse
func (*BatchCreateVendorsResponse) String ¶
func (b *BatchCreateVendorsResponse) String() string
func (*BatchCreateVendorsResponse) UnmarshalJSON ¶
func (b *BatchCreateVendorsResponse) UnmarshalJSON(data []byte) error
type BatchDeleteCatalogObjectsRequest ¶
type BatchDeleteCatalogObjectsRequest struct {
// The IDs of the CatalogObjects to be deleted. When an object is deleted, other objects
// in the graph that depend on that object will be deleted as well (for example, deleting a
// CatalogItem will delete its CatalogItemVariation.
ObjectIDs []string `json:"object_ids,omitempty" url:"-"`
}
type BatchDeleteCatalogObjectsResponse ¶
type BatchDeleteCatalogObjectsResponse struct {
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// The IDs of all CatalogObjects deleted by this request.
DeletedObjectIDs []string `json:"deleted_object_ids,omitempty" url:"deleted_object_ids,omitempty"`
// The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this deletion in RFC 3339 format, e.g., "2016-09-04T23:59:33.123Z".
DeletedAt *string `json:"deleted_at,omitempty" url:"deleted_at,omitempty"`
// contains filtered or unexported fields
}
func (*BatchDeleteCatalogObjectsResponse) GetDeletedAt ¶
func (b *BatchDeleteCatalogObjectsResponse) GetDeletedAt() *string
func (*BatchDeleteCatalogObjectsResponse) GetDeletedObjectIDs ¶
func (b *BatchDeleteCatalogObjectsResponse) GetDeletedObjectIDs() []string
func (*BatchDeleteCatalogObjectsResponse) GetErrors ¶
func (b *BatchDeleteCatalogObjectsResponse) GetErrors() []*Error
func (*BatchDeleteCatalogObjectsResponse) GetExtraProperties ¶
func (b *BatchDeleteCatalogObjectsResponse) GetExtraProperties() map[string]interface{}
func (*BatchDeleteCatalogObjectsResponse) String ¶
func (b *BatchDeleteCatalogObjectsResponse) String() string
func (*BatchDeleteCatalogObjectsResponse) UnmarshalJSON ¶
func (b *BatchDeleteCatalogObjectsResponse) UnmarshalJSON(data []byte) error
type BatchGetCatalogObjectsRequest ¶
type BatchGetCatalogObjectsRequest struct {
// The IDs of the CatalogObjects to be retrieved.
ObjectIDs []string `json:"object_ids,omitempty" url:"-"`
// If `true`, the response will include additional objects that are related to the
// requested objects. Related objects are defined as any objects referenced by ID by the results in the `objects` field
// of the response. These objects are put in the `related_objects` field. Setting this to `true` is
// helpful when the objects are needed for immediate display to a user.
// This process only goes one level deep. Objects referenced by the related objects will not be included. For example,
//
// if the `objects` field of the response contains a CatalogItem, its associated
// CatalogCategory objects, CatalogTax objects, CatalogImage objects and
// CatalogModifierLists will be returned in the `related_objects` field of the
// response. If the `objects` field of the response contains a CatalogItemVariation,
// its parent CatalogItem will be returned in the `related_objects` field of
// the response.
//
// Default value: `false`
IncludeRelatedObjects *bool `json:"include_related_objects,omitempty" url:"-"`
// The specific version of the catalog objects to be included in the response.
// This allows you to retrieve historical versions of objects. The specified version value is matched against
// the [CatalogObject](entity:CatalogObject)s' `version` attribute. If not included, results will
// be from the current version of the catalog.
CatalogVersion *int64 `json:"catalog_version,omitempty" url:"-"`
// Indicates whether to include (`true`) or not (`false`) in the response deleted objects, namely, those with the `is_deleted` attribute set to `true`.
IncludeDeletedObjects *bool `json:"include_deleted_objects,omitempty" url:"-"`
// Specifies whether or not to include the `path_to_root` list for each returned category instance. The `path_to_root` list consists
// of `CategoryPathToRootNode` objects and specifies the path that starts with the immediate parent category of the returned category
// and ends with its root category. If the returned category is a top-level category, the `path_to_root` list is empty and is not returned
// in the response payload.
IncludeCategoryPathToRoot *bool `json:"include_category_path_to_root,omitempty" url:"-"`
}
type BatchGetCatalogObjectsResponse ¶
type BatchGetCatalogObjectsResponse struct {
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// A list of [CatalogObject](entity:CatalogObject)s returned.
Objects []*CatalogObject `json:"objects,omitempty" url:"objects,omitempty"`
// A list of [CatalogObject](entity:CatalogObject)s referenced by the object in the `objects` field.
RelatedObjects []*CatalogObject `json:"related_objects,omitempty" url:"related_objects,omitempty"`
// contains filtered or unexported fields
}
func (*BatchGetCatalogObjectsResponse) GetErrors ¶
func (b *BatchGetCatalogObjectsResponse) GetErrors() []*Error
func (*BatchGetCatalogObjectsResponse) GetExtraProperties ¶
func (b *BatchGetCatalogObjectsResponse) GetExtraProperties() map[string]interface{}
func (*BatchGetCatalogObjectsResponse) GetObjects ¶
func (b *BatchGetCatalogObjectsResponse) GetObjects() []*CatalogObject
func (*BatchGetCatalogObjectsResponse) GetRelatedObjects ¶
func (b *BatchGetCatalogObjectsResponse) GetRelatedObjects() []*CatalogObject
func (*BatchGetCatalogObjectsResponse) String ¶
func (b *BatchGetCatalogObjectsResponse) String() string
func (*BatchGetCatalogObjectsResponse) UnmarshalJSON ¶
func (b *BatchGetCatalogObjectsResponse) UnmarshalJSON(data []byte) error
type BatchGetInventoryChangesResponse ¶
type BatchGetInventoryChangesResponse struct {
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// The current calculated inventory changes for the requested objects
// and locations.
Changes []*InventoryChange `json:"changes,omitempty" url:"changes,omitempty"`
// The pagination cursor to be used in a subsequent request. If unset,
// this is the final response.
// See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information.
Cursor *string `json:"cursor,omitempty" url:"cursor,omitempty"`
// contains filtered or unexported fields
}
func (*BatchGetInventoryChangesResponse) GetChanges ¶
func (b *BatchGetInventoryChangesResponse) GetChanges() []*InventoryChange
func (*BatchGetInventoryChangesResponse) GetCursor ¶
func (b *BatchGetInventoryChangesResponse) GetCursor() *string
func (*BatchGetInventoryChangesResponse) GetErrors ¶
func (b *BatchGetInventoryChangesResponse) GetErrors() []*Error
func (*BatchGetInventoryChangesResponse) GetExtraProperties ¶
func (b *BatchGetInventoryChangesResponse) GetExtraProperties() map[string]interface{}
func (*BatchGetInventoryChangesResponse) String ¶
func (b *BatchGetInventoryChangesResponse) String() string
func (*BatchGetInventoryChangesResponse) UnmarshalJSON ¶
func (b *BatchGetInventoryChangesResponse) UnmarshalJSON(data []byte) error
type BatchGetInventoryCountsRequest ¶
type BatchGetInventoryCountsRequest struct {
// The filter to return results by `CatalogObject` ID.
// The filter is applicable only when set. The default is null.
CatalogObjectIDs []string `json:"catalog_object_ids,omitempty" url:"catalog_object_ids,omitempty"`
// The filter to return results by `Location` ID.
// This filter is applicable only when set. The default is null.
LocationIDs []string `json:"location_ids,omitempty" url:"location_ids,omitempty"`
// The filter to return results with their `calculated_at` value
// after the given time as specified in an RFC 3339 timestamp.
// The default value is the UNIX epoch of (`1970-01-01T00:00:00Z`).
UpdatedAfter *string `json:"updated_after,omitempty" url:"updated_after,omitempty"`
// A pagination cursor returned by a previous call to this endpoint.
// Provide this to retrieve the next set of results for the original query.
//
// See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information.
Cursor *string `json:"cursor,omitempty" url:"cursor,omitempty"`
// The filter to return results by `InventoryState`. The filter is only applicable when set.
// Ignored are untracked states of `NONE`, `SOLD`, and `UNLINKED_RETURN`.
// The default is null.
States []InventoryState `json:"states,omitempty" url:"states,omitempty"`
// The number of [records](entity:InventoryCount) to return.
Limit *int `json:"limit,omitempty" url:"limit,omitempty"`
// contains filtered or unexported fields
}
func (*BatchGetInventoryCountsRequest) GetCatalogObjectIDs ¶
func (b *BatchGetInventoryCountsRequest) GetCatalogObjectIDs() []string
func (*BatchGetInventoryCountsRequest) GetCursor ¶
func (b *BatchGetInventoryCountsRequest) GetCursor() *string
func (*BatchGetInventoryCountsRequest) GetExtraProperties ¶
func (b *BatchGetInventoryCountsRequest) GetExtraProperties() map[string]interface{}
func (*BatchGetInventoryCountsRequest) GetLimit ¶
func (b *BatchGetInventoryCountsRequest) GetLimit() *int
func (*BatchGetInventoryCountsRequest) GetLocationIDs ¶
func (b *BatchGetInventoryCountsRequest) GetLocationIDs() []string
func (*BatchGetInventoryCountsRequest) GetStates ¶
func (b *BatchGetInventoryCountsRequest) GetStates() []InventoryState
func (*BatchGetInventoryCountsRequest) GetUpdatedAfter ¶
func (b *BatchGetInventoryCountsRequest) GetUpdatedAfter() *string
func (*BatchGetInventoryCountsRequest) String ¶
func (b *BatchGetInventoryCountsRequest) String() string
func (*BatchGetInventoryCountsRequest) UnmarshalJSON ¶
func (b *BatchGetInventoryCountsRequest) UnmarshalJSON(data []byte) error
type BatchGetInventoryCountsResponse ¶
type BatchGetInventoryCountsResponse struct {
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// The current calculated inventory counts for the requested objects
// and locations.
Counts []*InventoryCount `json:"counts,omitempty" url:"counts,omitempty"`
// The pagination cursor to be used in a subsequent request. If unset,
// this is the final response.
//
// See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information.
Cursor *string `json:"cursor,omitempty" url:"cursor,omitempty"`
// contains filtered or unexported fields
}
func (*BatchGetInventoryCountsResponse) GetCounts ¶
func (b *BatchGetInventoryCountsResponse) GetCounts() []*InventoryCount
func (*BatchGetInventoryCountsResponse) GetCursor ¶
func (b *BatchGetInventoryCountsResponse) GetCursor() *string
func (*BatchGetInventoryCountsResponse) GetErrors ¶
func (b *BatchGetInventoryCountsResponse) GetErrors() []*Error
func (*BatchGetInventoryCountsResponse) GetExtraProperties ¶
func (b *BatchGetInventoryCountsResponse) GetExtraProperties() map[string]interface{}
func (*BatchGetInventoryCountsResponse) String ¶
func (b *BatchGetInventoryCountsResponse) String() string
func (*BatchGetInventoryCountsResponse) UnmarshalJSON ¶
func (b *BatchGetInventoryCountsResponse) UnmarshalJSON(data []byte) error
type BatchGetOrdersRequest ¶
type BatchGetOrdersRequest struct {
// The ID of the location for these orders. This field is optional: omit it to retrieve
// orders within the scope of the current authorization's merchant ID.
LocationID *string `json:"location_id,omitempty" url:"-"`
// The IDs of the orders to retrieve. A maximum of 100 orders can be retrieved per request.
OrderIDs []string `json:"order_ids,omitempty" url:"-"`
}
type BatchGetOrdersResponse ¶
type BatchGetOrdersResponse struct {
// The requested orders. This will omit any requested orders that do not exist.
Orders []*Order `json:"orders,omitempty" url:"orders,omitempty"`
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Defines the fields that are included in the response body of a request to the `BatchRetrieveOrders` endpoint.
func (*BatchGetOrdersResponse) GetErrors ¶
func (b *BatchGetOrdersResponse) GetErrors() []*Error
func (*BatchGetOrdersResponse) GetExtraProperties ¶
func (b *BatchGetOrdersResponse) GetExtraProperties() map[string]interface{}
func (*BatchGetOrdersResponse) GetOrders ¶
func (b *BatchGetOrdersResponse) GetOrders() []*Order
func (*BatchGetOrdersResponse) String ¶
func (b *BatchGetOrdersResponse) String() string
func (*BatchGetOrdersResponse) UnmarshalJSON ¶
func (b *BatchGetOrdersResponse) UnmarshalJSON(data []byte) error
type BatchGetVendorsRequest ¶
type BatchGetVendorsRequest struct {
// IDs of the [Vendor](entity:Vendor) objects to retrieve.
VendorIDs []string `json:"vendor_ids,omitempty" url:"-"`
}
type BatchGetVendorsResponse ¶
type BatchGetVendorsResponse struct {
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// The set of [RetrieveVendorResponse](entity:RetrieveVendorResponse) objects encapsulating successfully retrieved [Vendor](entity:Vendor)
// objects or error responses for failed attempts. The set is represented by
// a collection of `Vendor`-ID/`Vendor`-object or `Vendor`-ID/error-object pairs.
Responses map[string]*GetVendorResponse `json:"responses,omitempty" url:"responses,omitempty"`
// contains filtered or unexported fields
}
Represents an output from a call to [BulkRetrieveVendors](api-endpoint:Vendors-BulkRetrieveVendors).
func (*BatchGetVendorsResponse) GetErrors ¶
func (b *BatchGetVendorsResponse) GetErrors() []*Error
func (*BatchGetVendorsResponse) GetExtraProperties ¶
func (b *BatchGetVendorsResponse) GetExtraProperties() map[string]interface{}
func (*BatchGetVendorsResponse) GetResponses ¶
func (b *BatchGetVendorsResponse) GetResponses() map[string]*GetVendorResponse
func (*BatchGetVendorsResponse) String ¶
func (b *BatchGetVendorsResponse) String() string
func (*BatchGetVendorsResponse) UnmarshalJSON ¶
func (b *BatchGetVendorsResponse) UnmarshalJSON(data []byte) error
type BatchRetrieveInventoryChangesRequest ¶
type BatchRetrieveInventoryChangesRequest struct {
// The filter to return results by `CatalogObject` ID.
// The filter is only applicable when set. The default value is null.
CatalogObjectIDs []string `json:"catalog_object_ids,omitempty" url:"catalog_object_ids,omitempty"`
// The filter to return results by `Location` ID.
// The filter is only applicable when set. The default value is null.
LocationIDs []string `json:"location_ids,omitempty" url:"location_ids,omitempty"`
// The filter to return results by `InventoryChangeType` values other than `TRANSFER`.
// The default value is `[PHYSICAL_COUNT, ADJUSTMENT]`.
Types []InventoryChangeType `json:"types,omitempty" url:"types,omitempty"`
// The filter to return `ADJUSTMENT` query results by
// `InventoryState`. This filter is only applied when set.
// The default value is null.
States []InventoryState `json:"states,omitempty" url:"states,omitempty"`
// The filter to return results with their `calculated_at` value
// after the given time as specified in an RFC 3339 timestamp.
// The default value is the UNIX epoch of (`1970-01-01T00:00:00Z`).
UpdatedAfter *string `json:"updated_after,omitempty" url:"updated_after,omitempty"`
// The filter to return results with their `created_at` or `calculated_at` value
// strictly before the given time as specified in an RFC 3339 timestamp.
// The default value is the UNIX epoch of (`1970-01-01T00:00:00Z`).
UpdatedBefore *string `json:"updated_before,omitempty" url:"updated_before,omitempty"`
// A pagination cursor returned by a previous call to this endpoint.
// Provide this to retrieve the next set of results for the original query.
//
// See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information.
Cursor *string `json:"cursor,omitempty" url:"cursor,omitempty"`
// The number of [records](entity:InventoryChange) to return.
Limit *int `json:"limit,omitempty" url:"limit,omitempty"`
// contains filtered or unexported fields
}
func (*BatchRetrieveInventoryChangesRequest) GetCatalogObjectIDs ¶
func (b *BatchRetrieveInventoryChangesRequest) GetCatalogObjectIDs() []string
func (*BatchRetrieveInventoryChangesRequest) GetCursor ¶
func (b *BatchRetrieveInventoryChangesRequest) GetCursor() *string
func (*BatchRetrieveInventoryChangesRequest) GetExtraProperties ¶
func (b *BatchRetrieveInventoryChangesRequest) GetExtraProperties() map[string]interface{}
func (*BatchRetrieveInventoryChangesRequest) GetLimit ¶
func (b *BatchRetrieveInventoryChangesRequest) GetLimit() *int
func (*BatchRetrieveInventoryChangesRequest) GetLocationIDs ¶
func (b *BatchRetrieveInventoryChangesRequest) GetLocationIDs() []string
func (*BatchRetrieveInventoryChangesRequest) GetStates ¶
func (b *BatchRetrieveInventoryChangesRequest) GetStates() []InventoryState
func (*BatchRetrieveInventoryChangesRequest) GetTypes ¶
func (b *BatchRetrieveInventoryChangesRequest) GetTypes() []InventoryChangeType
func (*BatchRetrieveInventoryChangesRequest) GetUpdatedAfter ¶
func (b *BatchRetrieveInventoryChangesRequest) GetUpdatedAfter() *string
func (*BatchRetrieveInventoryChangesRequest) GetUpdatedBefore ¶
func (b *BatchRetrieveInventoryChangesRequest) GetUpdatedBefore() *string
func (*BatchRetrieveInventoryChangesRequest) String ¶
func (b *BatchRetrieveInventoryChangesRequest) String() string
func (*BatchRetrieveInventoryChangesRequest) UnmarshalJSON ¶
func (b *BatchRetrieveInventoryChangesRequest) UnmarshalJSON(data []byte) error
type BatchUpdateTeamMembersRequest ¶
type BatchUpdateTeamMembersRequest struct {
// The data used to update the `TeamMember` objects. Each key is the `team_member_id` that maps to the `UpdateTeamMemberRequest`.
// The maximum number of update objects is 25.
//
// For each team member, include the fields to add, change, or clear. Fields can be cleared using a null value.
// To update `wage_setting.job_assignments`, you must provide the complete list of job assignments. If needed,
// call [ListJobs](api-endpoint:Team-ListJobs) to get the required `job_id` values.
TeamMembers map[string]*UpdateTeamMemberRequest `json:"team_members,omitempty" url:"-"`
}
type BatchUpdateTeamMembersResponse ¶
type BatchUpdateTeamMembersResponse struct {
// The successfully updated `TeamMember` objects. Each key is the `team_member_id` that maps to the `UpdateTeamMemberRequest`.
TeamMembers map[string]*UpdateTeamMemberResponse `json:"team_members,omitempty" url:"team_members,omitempty"`
// The errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Represents a response from a bulk update request containing the updated `TeamMember` objects or error messages.
func (*BatchUpdateTeamMembersResponse) GetErrors ¶
func (b *BatchUpdateTeamMembersResponse) GetErrors() []*Error
func (*BatchUpdateTeamMembersResponse) GetExtraProperties ¶
func (b *BatchUpdateTeamMembersResponse) GetExtraProperties() map[string]interface{}
func (*BatchUpdateTeamMembersResponse) GetTeamMembers ¶
func (b *BatchUpdateTeamMembersResponse) GetTeamMembers() map[string]*UpdateTeamMemberResponse
func (*BatchUpdateTeamMembersResponse) String ¶
func (b *BatchUpdateTeamMembersResponse) String() string
func (*BatchUpdateTeamMembersResponse) UnmarshalJSON ¶
func (b *BatchUpdateTeamMembersResponse) UnmarshalJSON(data []byte) error
type BatchUpdateVendorsRequest ¶
type BatchUpdateVendorsRequest struct {
// A set of [UpdateVendorRequest](entity:UpdateVendorRequest) objects encapsulating to-be-updated [Vendor](entity:Vendor)
// objects. The set is represented by a collection of `Vendor`-ID/`UpdateVendorRequest`-object pairs.
Vendors map[string]*UpdateVendorRequest `json:"vendors,omitempty" url:"-"`
}
type BatchUpdateVendorsResponse ¶
type BatchUpdateVendorsResponse struct {
// Errors encountered when the request fails.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// A set of [UpdateVendorResponse](entity:UpdateVendorResponse) objects encapsulating successfully created [Vendor](entity:Vendor)
// objects or error responses for failed attempts. The set is represented by a collection of `Vendor`-ID/`UpdateVendorResponse`-object or
// `Vendor`-ID/error-object pairs.
Responses map[string]*UpdateVendorResponse `json:"responses,omitempty" url:"responses,omitempty"`
// contains filtered or unexported fields
}
Represents an output from a call to [BulkUpdateVendors](api-endpoint:Vendors-BulkUpdateVendors).
func (*BatchUpdateVendorsResponse) GetErrors ¶
func (b *BatchUpdateVendorsResponse) GetErrors() []*Error
func (*BatchUpdateVendorsResponse) GetExtraProperties ¶
func (b *BatchUpdateVendorsResponse) GetExtraProperties() map[string]interface{}
func (*BatchUpdateVendorsResponse) GetResponses ¶
func (b *BatchUpdateVendorsResponse) GetResponses() map[string]*UpdateVendorResponse
func (*BatchUpdateVendorsResponse) String ¶
func (b *BatchUpdateVendorsResponse) String() string
func (*BatchUpdateVendorsResponse) UnmarshalJSON ¶
func (b *BatchUpdateVendorsResponse) UnmarshalJSON(data []byte) error
type BatchUpsertCatalogObjectsRequest ¶
type BatchUpsertCatalogObjectsRequest struct {
// A value you specify that uniquely identifies this
// request among all your requests. A common way to create
// a valid idempotency key is to use a Universally unique
// identifier (UUID).
//
// If you're unsure whether a particular request was successful,
// you can reattempt it with the same idempotency key without
// worrying about creating duplicate objects.
//
// See [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency) for more information.
IdempotencyKey string `json:"idempotency_key" url:"-"`
// A batch of CatalogObjects to be inserted/updated atomically.
// The objects within a batch will be inserted in an all-or-nothing fashion, i.e., if an error occurs
// attempting to insert or update an object within a batch, the entire batch will be rejected. However, an error
// in one batch will not affect other batches within the same request.
//
// For each object, its `updated_at` field is ignored and replaced with a current [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates), and its
// `is_deleted` field must not be set to `true`.
//
// To modify an existing object, supply its ID. To create a new object, use an ID starting
// with `#`. These IDs may be used to create relationships between an object and attributes of
// other objects that reference it. For example, you can create a CatalogItem with
// ID `#ABC` and a CatalogItemVariation with its `item_id` attribute set to
// `#ABC` in order to associate the CatalogItemVariation with its parent
// CatalogItem.
//
// Any `#`-prefixed IDs are valid only within a single atomic batch, and will be replaced by server-generated IDs.
//
// Each batch may contain up to 1,000 objects. The total number of objects across all batches for a single request
// may not exceed 10,000. If either of these limits is violated, an error will be returned and no objects will
// be inserted or updated.
Batches []*CatalogObjectBatch `json:"batches,omitempty" url:"-"`
}
type BatchUpsertCatalogObjectsResponse ¶
type BatchUpsertCatalogObjectsResponse struct {
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// The created successfully created CatalogObjects.
Objects []*CatalogObject `json:"objects,omitempty" url:"objects,omitempty"`
// The database [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) of this update in RFC 3339 format, e.g., "2016-09-04T23:59:33.123Z".
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The mapping between client and server IDs for this upsert.
IDMappings []*CatalogIDMapping `json:"id_mappings,omitempty" url:"id_mappings,omitempty"`
// contains filtered or unexported fields
}
func (*BatchUpsertCatalogObjectsResponse) GetErrors ¶
func (b *BatchUpsertCatalogObjectsResponse) GetErrors() []*Error
func (*BatchUpsertCatalogObjectsResponse) GetExtraProperties ¶
func (b *BatchUpsertCatalogObjectsResponse) GetExtraProperties() map[string]interface{}
func (*BatchUpsertCatalogObjectsResponse) GetIDMappings ¶
func (b *BatchUpsertCatalogObjectsResponse) GetIDMappings() []*CatalogIDMapping
func (*BatchUpsertCatalogObjectsResponse) GetObjects ¶
func (b *BatchUpsertCatalogObjectsResponse) GetObjects() []*CatalogObject
func (*BatchUpsertCatalogObjectsResponse) GetUpdatedAt ¶
func (b *BatchUpsertCatalogObjectsResponse) GetUpdatedAt() *string
func (*BatchUpsertCatalogObjectsResponse) String ¶
func (b *BatchUpsertCatalogObjectsResponse) String() string
func (*BatchUpsertCatalogObjectsResponse) UnmarshalJSON ¶
func (b *BatchUpsertCatalogObjectsResponse) UnmarshalJSON(data []byte) error
type BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest ¶
type BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest struct {
// The ID of the target [customer profile](entity:Customer).
CustomerID string `json:"customer_id" url:"customer_id"`
// The custom attribute to create or update, with following fields:
//
// - `key`. This key must match the `key` of a custom attribute definition in the Square seller
// account. If the requesting application is not the definition owner, you must provide the qualified key.
//
// - `value`. This value must conform to the `schema` specified by the definition.
// For more information, see [Value data types](https://developer.squareup.com/docs/customer-custom-attributes-api/custom-attributes#value-data-types).
//
// - `version`. To enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)
// control for update operations, include this optional field in the request and set the
// value to the current version of the custom attribute.
CustomAttribute *CustomAttribute `json:"custom_attribute,omitempty" url:"custom_attribute,omitempty"`
// A unique identifier for this individual upsert request, used to ensure idempotency.
// For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).
IdempotencyKey *string `json:"idempotency_key,omitempty" url:"idempotency_key,omitempty"`
// contains filtered or unexported fields
}
Represents an individual upsert request in a [BulkUpsertCustomerCustomAttributes](api-endpoint:CustomerCustomAttributes-BulkUpsertCustomerCustomAttributes) request. An individual request contains a customer ID, the custom attribute to create or update, and an optional idempotency key.
func (*BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest) GetCustomAttribute ¶
func (b *BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest) GetCustomAttribute() *CustomAttribute
func (*BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest) GetCustomerID ¶
func (b *BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest) GetCustomerID() string
func (*BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest) GetExtraProperties ¶
func (b *BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest) GetExtraProperties() map[string]interface{}
func (*BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest) GetIdempotencyKey ¶
func (b *BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest) GetIdempotencyKey() *string
func (*BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest) UnmarshalJSON ¶
func (b *BatchUpsertCustomerCustomAttributesRequestCustomerCustomAttributeUpsertRequest) UnmarshalJSON(data []byte) error
type BatchUpsertCustomerCustomAttributesResponse ¶
type BatchUpsertCustomerCustomAttributesResponse struct {
// A map of responses that correspond to individual upsert requests. Each response has the
// same ID as the corresponding request and contains either a `customer_id` and `custom_attribute` or an `errors` field.
Values map[string]*BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse `json:"values,omitempty" url:"values,omitempty"`
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Represents a [BulkUpsertCustomerCustomAttributes](api-endpoint:CustomerCustomAttributes-BulkUpsertCustomerCustomAttributes) response, which contains a map of responses that each corresponds to an individual upsert request.
func (*BatchUpsertCustomerCustomAttributesResponse) GetErrors ¶
func (b *BatchUpsertCustomerCustomAttributesResponse) GetErrors() []*Error
func (*BatchUpsertCustomerCustomAttributesResponse) GetExtraProperties ¶
func (b *BatchUpsertCustomerCustomAttributesResponse) GetExtraProperties() map[string]interface{}
func (*BatchUpsertCustomerCustomAttributesResponse) String ¶
func (b *BatchUpsertCustomerCustomAttributesResponse) String() string
func (*BatchUpsertCustomerCustomAttributesResponse) UnmarshalJSON ¶
func (b *BatchUpsertCustomerCustomAttributesResponse) UnmarshalJSON(data []byte) error
type BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse ¶
type BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse struct {
// The ID of the customer profile associated with the custom attribute.
CustomerID *string `json:"customer_id,omitempty" url:"customer_id,omitempty"`
// The new or updated custom attribute.
CustomAttribute *CustomAttribute `json:"custom_attribute,omitempty" url:"custom_attribute,omitempty"`
// Any errors that occurred while processing the individual request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Represents a response for an individual upsert request in a [BulkUpsertCustomerCustomAttributes](api-endpoint:CustomerCustomAttributes-BulkUpsertCustomerCustomAttributes) operation.
func (*BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse) GetCustomAttribute ¶
func (b *BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse) GetCustomAttribute() *CustomAttribute
func (*BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse) GetCustomerID ¶
func (b *BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse) GetCustomerID() *string
func (*BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse) GetErrors ¶
func (b *BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse) GetErrors() []*Error
func (*BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse) GetExtraProperties ¶
func (b *BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse) GetExtraProperties() map[string]interface{}
func (*BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse) UnmarshalJSON ¶
func (b *BatchUpsertCustomerCustomAttributesResponseCustomerCustomAttributeUpsertResponse) UnmarshalJSON(data []byte) error
type Booking ¶
type Booking struct {
// A unique ID of this object representing a booking.
ID *string `json:"id,omitempty" url:"id,omitempty"`
// The revision number for the booking used for optimistic concurrency.
Version *int `json:"version,omitempty" url:"version,omitempty"`
// The status of the booking, describing where the booking stands with respect to the booking state machine.
// See [BookingStatus](#type-bookingstatus) for possible values
Status *BookingStatus `json:"status,omitempty" url:"status,omitempty"`
// The RFC 3339 timestamp specifying the creation time of this booking.
CreatedAt *string `json:"created_at,omitempty" url:"created_at,omitempty"`
// The RFC 3339 timestamp specifying the most recent update time of this booking.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The RFC 3339 timestamp specifying the starting time of this booking.
StartAt *string `json:"start_at,omitempty" url:"start_at,omitempty"`
// The ID of the [Location](entity:Location) object representing the location where the booked service is provided. Once set when the booking is created, its value cannot be changed.
LocationID *string `json:"location_id,omitempty" url:"location_id,omitempty"`
// The ID of the [Customer](entity:Customer) object representing the customer receiving the booked service.
CustomerID *string `json:"customer_id,omitempty" url:"customer_id,omitempty"`
// The free-text field for the customer to supply notes about the booking. For example, the note can be preferences that cannot be expressed by supported attributes of a relevant [CatalogObject](entity:CatalogObject) instance.
CustomerNote *string `json:"customer_note,omitempty" url:"customer_note,omitempty"`
// The free-text field for the seller to supply notes about the booking. For example, the note can be preferences that cannot be expressed by supported attributes of a specific [CatalogObject](entity:CatalogObject) instance.
// This field should not be visible to customers.
SellerNote *string `json:"seller_note,omitempty" url:"seller_note,omitempty"`
// A list of appointment segments for this booking.
AppointmentSegments []*AppointmentSegment `json:"appointment_segments,omitempty" url:"appointment_segments,omitempty"`
// Additional time at the end of a booking.
// Applications should not make this field visible to customers of a seller.
TransitionTimeMinutes *int `json:"transition_time_minutes,omitempty" url:"transition_time_minutes,omitempty"`
// Whether the booking is of a full business day.
AllDay *bool `json:"all_day,omitempty" url:"all_day,omitempty"`
// The type of location where the booking is held.
// See [BusinessAppointmentSettingsBookingLocationType](#type-businessappointmentsettingsbookinglocationtype) for possible values
LocationType *BusinessAppointmentSettingsBookingLocationType `json:"location_type,omitempty" url:"location_type,omitempty"`
// Information about the booking creator.
CreatorDetails *BookingCreatorDetails `json:"creator_details,omitempty" url:"creator_details,omitempty"`
// The source of the booking.
// Access to this field requires seller-level permissions.
// See [BookingBookingSource](#type-bookingbookingsource) for possible values
Source *BookingBookingSource `json:"source,omitempty" url:"source,omitempty"`
// Stores a customer address if the location type is `CUSTOMER_LOCATION`.
Address *Address `json:"address,omitempty" url:"address,omitempty"`
// contains filtered or unexported fields
}
Represents a booking as a time-bound service contract for a seller's staff member to provide a specified service at a given location to a requesting customer in one or more appointment segments.
func (*Booking) GetAddress ¶
func (*Booking) GetAppointmentSegments ¶
func (b *Booking) GetAppointmentSegments() []*AppointmentSegment
func (*Booking) GetCreatedAt ¶
func (*Booking) GetCreatorDetails ¶
func (b *Booking) GetCreatorDetails() *BookingCreatorDetails
func (*Booking) GetCustomerID ¶
func (*Booking) GetCustomerNote ¶
func (*Booking) GetExtraProperties ¶
func (*Booking) GetLocationID ¶
func (*Booking) GetLocationType ¶
func (b *Booking) GetLocationType() *BusinessAppointmentSettingsBookingLocationType
func (*Booking) GetSellerNote ¶
func (*Booking) GetSource ¶
func (b *Booking) GetSource() *BookingBookingSource
func (*Booking) GetStartAt ¶
func (*Booking) GetStatus ¶
func (b *Booking) GetStatus() *BookingStatus
func (*Booking) GetTransitionTimeMinutes ¶
func (*Booking) GetUpdatedAt ¶
func (*Booking) GetVersion ¶
func (*Booking) UnmarshalJSON ¶
type BookingBookingSource ¶
type BookingBookingSource string
Supported sources a booking was created from.
const ( BookingBookingSourceFirstPartyMerchant BookingBookingSource = "FIRST_PARTY_MERCHANT" BookingBookingSourceFirstPartyBuyer BookingBookingSource = "FIRST_PARTY_BUYER" BookingBookingSourceThirdPartyBuyer BookingBookingSource = "THIRD_PARTY_BUYER" BookingBookingSourceAPI BookingBookingSource = "API" )
func NewBookingBookingSourceFromString ¶
func NewBookingBookingSourceFromString(s string) (BookingBookingSource, error)
func (BookingBookingSource) Ptr ¶
func (b BookingBookingSource) Ptr() *BookingBookingSource
type BookingCreatorDetails ¶
type BookingCreatorDetails struct {
// The seller-accessible type of the creator of the booking.
// See [BookingCreatorDetailsCreatorType](#type-bookingcreatordetailscreatortype) for possible values
CreatorType *BookingCreatorDetailsCreatorType `json:"creator_type,omitempty" url:"creator_type,omitempty"`
// The ID of the team member who created the booking, when the booking creator is of the `TEAM_MEMBER` type.
// Access to this field requires seller-level permissions.
TeamMemberID *string `json:"team_member_id,omitempty" url:"team_member_id,omitempty"`
// The ID of the customer who created the booking, when the booking creator is of the `CUSTOMER` type.
// Access to this field requires seller-level permissions.
CustomerID *string `json:"customer_id,omitempty" url:"customer_id,omitempty"`
// contains filtered or unexported fields
}
Information about a booking creator.
func (*BookingCreatorDetails) GetCreatorType ¶
func (b *BookingCreatorDetails) GetCreatorType() *BookingCreatorDetailsCreatorType
func (*BookingCreatorDetails) GetCustomerID ¶
func (b *BookingCreatorDetails) GetCustomerID() *string
func (*BookingCreatorDetails) GetExtraProperties ¶
func (b *BookingCreatorDetails) GetExtraProperties() map[string]interface{}
func (*BookingCreatorDetails) GetTeamMemberID ¶
func (b *BookingCreatorDetails) GetTeamMemberID() *string
func (*BookingCreatorDetails) String ¶
func (b *BookingCreatorDetails) String() string
func (*BookingCreatorDetails) UnmarshalJSON ¶
func (b *BookingCreatorDetails) UnmarshalJSON(data []byte) error
type BookingCreatorDetailsCreatorType ¶
type BookingCreatorDetailsCreatorType string
Supported types of a booking creator.
const ( BookingCreatorDetailsCreatorTypeTeamMember BookingCreatorDetailsCreatorType = "TEAM_MEMBER" BookingCreatorDetailsCreatorTypeCustomer BookingCreatorDetailsCreatorType = "CUSTOMER" )
func NewBookingCreatorDetailsCreatorTypeFromString ¶
func NewBookingCreatorDetailsCreatorTypeFromString(s string) (BookingCreatorDetailsCreatorType, error)
func (BookingCreatorDetailsCreatorType) Ptr ¶
func (b BookingCreatorDetailsCreatorType) Ptr() *BookingCreatorDetailsCreatorType
type BookingCustomAttributeDeleteRequest ¶
type BookingCustomAttributeDeleteRequest struct {
// The ID of the target [booking](entity:Booking).
BookingID string `json:"booking_id" url:"booking_id"`
// The key of the custom attribute to delete. This key must match the `key` of a
// custom attribute definition in the Square seller account. If the requesting application is not
// the definition owner, you must use the qualified key.
Key string `json:"key" url:"key"`
// contains filtered or unexported fields
}
Represents an individual delete request in a [BulkDeleteBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkDeleteBookingCustomAttributes) request. An individual request contains a booking ID, the custom attribute to delete, and an optional idempotency key.
func (*BookingCustomAttributeDeleteRequest) GetBookingID ¶
func (b *BookingCustomAttributeDeleteRequest) GetBookingID() string
func (*BookingCustomAttributeDeleteRequest) GetExtraProperties ¶
func (b *BookingCustomAttributeDeleteRequest) GetExtraProperties() map[string]interface{}
func (*BookingCustomAttributeDeleteRequest) GetKey ¶
func (b *BookingCustomAttributeDeleteRequest) GetKey() string
func (*BookingCustomAttributeDeleteRequest) String ¶
func (b *BookingCustomAttributeDeleteRequest) String() string
func (*BookingCustomAttributeDeleteRequest) UnmarshalJSON ¶
func (b *BookingCustomAttributeDeleteRequest) UnmarshalJSON(data []byte) error
type BookingCustomAttributeDeleteResponse ¶
type BookingCustomAttributeDeleteResponse struct {
// The ID of the [booking](entity:Booking) associated with the custom attribute.
BookingID *string `json:"booking_id,omitempty" url:"booking_id,omitempty"`
// Any errors that occurred while processing the individual request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Represents a response for an individual upsert request in a [BulkDeleteBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkDeleteBookingCustomAttributes) operation.
func (*BookingCustomAttributeDeleteResponse) GetBookingID ¶
func (b *BookingCustomAttributeDeleteResponse) GetBookingID() *string
func (*BookingCustomAttributeDeleteResponse) GetErrors ¶
func (b *BookingCustomAttributeDeleteResponse) GetErrors() []*Error
func (*BookingCustomAttributeDeleteResponse) GetExtraProperties ¶
func (b *BookingCustomAttributeDeleteResponse) GetExtraProperties() map[string]interface{}
func (*BookingCustomAttributeDeleteResponse) String ¶
func (b *BookingCustomAttributeDeleteResponse) String() string
func (*BookingCustomAttributeDeleteResponse) UnmarshalJSON ¶
func (b *BookingCustomAttributeDeleteResponse) UnmarshalJSON(data []byte) error
type BookingCustomAttributeUpsertRequest ¶
type BookingCustomAttributeUpsertRequest struct {
// The ID of the target [booking](entity:Booking).
BookingID string `json:"booking_id" url:"booking_id"`
// The custom attribute to create or update, with following fields:
//
// - `key`. This key must match the `key` of a custom attribute definition in the Square seller
// account. If the requesting application is not the definition owner, you must provide the qualified key.
//
// - `value`. This value must conform to the `schema` specified by the definition.
// For more information, see [Value data types](https://developer.squareup.com/docs/booking-custom-attributes-api/custom-attributes#value-data-types).
//
// - `version`. To enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)
// control for update operations, include this optional field in the request and set the
// value to the current version of the custom attribute.
CustomAttribute *CustomAttribute `json:"custom_attribute,omitempty" url:"custom_attribute,omitempty"`
// A unique identifier for this individual upsert request, used to ensure idempotency.
// For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).
IdempotencyKey *string `json:"idempotency_key,omitempty" url:"idempotency_key,omitempty"`
// contains filtered or unexported fields
}
Represents an individual upsert request in a [BulkUpsertBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkUpsertBookingCustomAttributes) request. An individual request contains a booking ID, the custom attribute to create or update, and an optional idempotency key.
func (*BookingCustomAttributeUpsertRequest) GetBookingID ¶
func (b *BookingCustomAttributeUpsertRequest) GetBookingID() string
func (*BookingCustomAttributeUpsertRequest) GetCustomAttribute ¶
func (b *BookingCustomAttributeUpsertRequest) GetCustomAttribute() *CustomAttribute
func (*BookingCustomAttributeUpsertRequest) GetExtraProperties ¶
func (b *BookingCustomAttributeUpsertRequest) GetExtraProperties() map[string]interface{}
func (*BookingCustomAttributeUpsertRequest) GetIdempotencyKey ¶
func (b *BookingCustomAttributeUpsertRequest) GetIdempotencyKey() *string
func (*BookingCustomAttributeUpsertRequest) String ¶
func (b *BookingCustomAttributeUpsertRequest) String() string
func (*BookingCustomAttributeUpsertRequest) UnmarshalJSON ¶
func (b *BookingCustomAttributeUpsertRequest) UnmarshalJSON(data []byte) error
type BookingCustomAttributeUpsertResponse ¶
type BookingCustomAttributeUpsertResponse struct {
// The ID of the [booking](entity:Booking) associated with the custom attribute.
BookingID *string `json:"booking_id,omitempty" url:"booking_id,omitempty"`
// The new or updated custom attribute.
CustomAttribute *CustomAttribute `json:"custom_attribute,omitempty" url:"custom_attribute,omitempty"`
// Any errors that occurred while processing the individual request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Represents a response for an individual upsert request in a [BulkUpsertBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkUpsertBookingCustomAttributes) operation.
func (*BookingCustomAttributeUpsertResponse) GetBookingID ¶
func (b *BookingCustomAttributeUpsertResponse) GetBookingID() *string
func (*BookingCustomAttributeUpsertResponse) GetCustomAttribute ¶
func (b *BookingCustomAttributeUpsertResponse) GetCustomAttribute() *CustomAttribute
func (*BookingCustomAttributeUpsertResponse) GetErrors ¶
func (b *BookingCustomAttributeUpsertResponse) GetErrors() []*Error
func (*BookingCustomAttributeUpsertResponse) GetExtraProperties ¶
func (b *BookingCustomAttributeUpsertResponse) GetExtraProperties() map[string]interface{}
func (*BookingCustomAttributeUpsertResponse) String ¶
func (b *BookingCustomAttributeUpsertResponse) String() string
func (*BookingCustomAttributeUpsertResponse) UnmarshalJSON ¶
func (b *BookingCustomAttributeUpsertResponse) UnmarshalJSON(data []byte) error
type BookingStatus ¶
type BookingStatus string
Supported booking statuses.
const ( BookingStatusPending BookingStatus = "PENDING" BookingStatusCancelledByCustomer BookingStatus = "CANCELLED_BY_CUSTOMER" BookingStatusCancelledBySeller BookingStatus = "CANCELLED_BY_SELLER" BookingStatusDeclined BookingStatus = "DECLINED" BookingStatusAccepted BookingStatus = "ACCEPTED" BookingStatusNoShow BookingStatus = "NO_SHOW" )
func NewBookingStatusFromString ¶
func NewBookingStatusFromString(s string) (BookingStatus, error)
func (BookingStatus) Ptr ¶
func (b BookingStatus) Ptr() *BookingStatus
type Break ¶
type Break struct {
// The UUID for this object.
ID *string `json:"id,omitempty" url:"id,omitempty"`
// RFC 3339; follows the same timezone information as the [timecard](entity:Timecard). Precision up to
// the minute is respected; seconds are truncated.
StartAt string `json:"start_at" url:"start_at"`
// RFC 3339; follows the same timezone information as the [timecard](entity:Timecard). Precision up to
// the minute is respected; seconds are truncated.
EndAt *string `json:"end_at,omitempty" url:"end_at,omitempty"`
// The [BreakType](entity:BreakType) that this break was templated on.
BreakTypeID string `json:"break_type_id" url:"break_type_id"`
// A human-readable name.
Name string `json:"name" url:"name"`
// Format: RFC-3339 P[n]Y[n]M[n]DT[n]H[n]M[n]S. The expected length of
// the break.
//
// Example for break expected duration of 15 minutes: PT15M
ExpectedDuration string `json:"expected_duration" url:"expected_duration"`
// Whether this break counts towards time worked for compensation
// purposes.
IsPaid bool `json:"is_paid" url:"is_paid"`
// contains filtered or unexported fields
}
A record of a team member's break on a [timecard](entity:Timecard).
func (*Break) GetBreakTypeID ¶
func (*Break) GetExpectedDuration ¶
func (*Break) GetExtraProperties ¶
func (*Break) GetStartAt ¶
func (*Break) UnmarshalJSON ¶
type BreakType ¶
type BreakType struct {
// The UUID for this object.
ID *string `json:"id,omitempty" url:"id,omitempty"`
// The ID of the business location this type of break applies to.
LocationID string `json:"location_id" url:"location_id"`
// A human-readable name for this type of break. The name is displayed to
// team members in Square products.
BreakName string `json:"break_name" url:"break_name"`
// Format: RFC-3339 P[n]Y[n]M[n]DT[n]H[n]M[n]S. The expected length of
// this break. Precision less than minutes is truncated.
//
// Example for break expected duration of 15 minutes: PT15M
ExpectedDuration string `json:"expected_duration" url:"expected_duration"`
// Whether this break counts towards time worked for compensation
// purposes.
IsPaid bool `json:"is_paid" url:"is_paid"`
// Used for resolving concurrency issues. The request fails if the version
// provided does not match the server version at the time of the request. If a value is not
// provided, Square's servers execute a "blind" write; potentially
// overwriting another writer's data.
Version *int `json:"version,omitempty" url:"version,omitempty"`
// A read-only timestamp in RFC 3339 format.
CreatedAt *string `json:"created_at,omitempty" url:"created_at,omitempty"`
// A read-only timestamp in RFC 3339 format.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// contains filtered or unexported fields
}
A template for a type of [break](entity:Break) that can be added to a [timecard](entity:Timecard), including the expected duration and paid status.
func (*BreakType) GetBreakName ¶
func (*BreakType) GetCreatedAt ¶
func (*BreakType) GetExpectedDuration ¶
func (*BreakType) GetExtraProperties ¶
func (*BreakType) GetLocationID ¶
func (*BreakType) GetUpdatedAt ¶
func (*BreakType) GetVersion ¶
func (*BreakType) UnmarshalJSON ¶
type BulkCreateCustomerData ¶
type BulkCreateCustomerData struct {
// The given name (that is, the first name) associated with the customer profile.
GivenName *string `json:"given_name,omitempty" url:"given_name,omitempty"`
// The family name (that is, the last name) associated with the customer profile.
FamilyName *string `json:"family_name,omitempty" url:"family_name,omitempty"`
// A business name associated with the customer profile.
CompanyName *string `json:"company_name,omitempty" url:"company_name,omitempty"`
// A nickname for the customer profile.
Nickname *string `json:"nickname,omitempty" url:"nickname,omitempty"`
// The email address associated with the customer profile.
EmailAddress *string `json:"email_address,omitempty" url:"email_address,omitempty"`
// The physical address associated with the customer profile. For maximum length constraints,
// see [Customer addresses](https://developer.squareup.com/docs/customers-api/use-the-api/keep-records#address).
// The `first_name` and `last_name` fields are ignored if they are present in the request.
Address *Address `json:"address,omitempty" url:"address,omitempty"`
// The phone number associated with the customer profile. The phone number must be valid
// and can contain 9–16 digits, with an optional `+` prefix and country code. For more information,
// see [Customer phone numbers](https://developer.squareup.com/docs/customers-api/use-the-api/keep-records#phone-number).
PhoneNumber *string `json:"phone_number,omitempty" url:"phone_number,omitempty"`
// An optional second ID used to associate the customer profile with an
// entity in another system.
ReferenceID *string `json:"reference_id,omitempty" url:"reference_id,omitempty"`
// A custom note associated with the customer profile.
Note *string `json:"note,omitempty" url:"note,omitempty"`
// The birthday associated with the customer profile, in `YYYY-MM-DD` or `MM-DD` format.
// For example, specify `1998-09-21` for September 21, 1998, or `09-21` for September 21.
// Birthdays are returned in `YYYY-MM-DD` format, where `YYYY` is the specified birth year or
// `0000` if a birth year is not specified.
Birthday *string `json:"birthday,omitempty" url:"birthday,omitempty"`
// The tax ID associated with the customer profile. This field is available only for
// customers of sellers in EU countries or the United Kingdom. For more information, see
// [Customer tax IDs](https://developer.squareup.com/docs/customers-api/what-it-does#customer-tax-ids).
TaxIDs *CustomerTaxIDs `json:"tax_ids,omitempty" url:"tax_ids,omitempty"`
// contains filtered or unexported fields
}
Defines the customer data provided in individual create requests for a [BulkCreateCustomers](api-endpoint:Customers-BulkCreateCustomers) operation.
func (*BulkCreateCustomerData) GetAddress ¶
func (b *BulkCreateCustomerData) GetAddress() *Address
func (*BulkCreateCustomerData) GetBirthday ¶
func (b *BulkCreateCustomerData) GetBirthday() *string
func (*BulkCreateCustomerData) GetCompanyName ¶
func (b *BulkCreateCustomerData) GetCompanyName() *string
func (*BulkCreateCustomerData) GetEmailAddress ¶
func (b *BulkCreateCustomerData) GetEmailAddress() *string
func (*BulkCreateCustomerData) GetExtraProperties ¶
func (b *BulkCreateCustomerData) GetExtraProperties() map[string]interface{}
func (*BulkCreateCustomerData) GetFamilyName ¶
func (b *BulkCreateCustomerData) GetFamilyName() *string
func (*BulkCreateCustomerData) GetGivenName ¶
func (b *BulkCreateCustomerData) GetGivenName() *string
func (*BulkCreateCustomerData) GetNickname ¶
func (b *BulkCreateCustomerData) GetNickname() *string
func (*BulkCreateCustomerData) GetNote ¶
func (b *BulkCreateCustomerData) GetNote() *string
func (*BulkCreateCustomerData) GetPhoneNumber ¶
func (b *BulkCreateCustomerData) GetPhoneNumber() *string
func (*BulkCreateCustomerData) GetReferenceID ¶
func (b *BulkCreateCustomerData) GetReferenceID() *string
func (*BulkCreateCustomerData) GetTaxIDs ¶
func (b *BulkCreateCustomerData) GetTaxIDs() *CustomerTaxIDs
func (*BulkCreateCustomerData) String ¶
func (b *BulkCreateCustomerData) String() string
func (*BulkCreateCustomerData) UnmarshalJSON ¶
func (b *BulkCreateCustomerData) UnmarshalJSON(data []byte) error
type BulkCreateCustomersRequest ¶
type BulkCreateCustomersRequest struct {
// A map of 1 to 100 individual create requests, represented by `idempotency key: { customer data }`
// key-value pairs.
//
// Each key is an [idempotency key](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency)
// that uniquely identifies the create request. Each value contains the customer data used to create the
// customer profile.
Customers map[string]*BulkCreateCustomerData `json:"customers,omitempty" url:"-"`
}
type BulkCreateCustomersResponse ¶
type BulkCreateCustomersResponse struct {
// A map of responses that correspond to individual create requests, represented by
// key-value pairs.
//
// Each key is the idempotency key that was provided for a create request and each value
// is the corresponding response.
// If the request succeeds, the value is the new customer profile.
// If the request fails, the value contains any errors that occurred during the request.
Responses map[string]*CreateCustomerResponse `json:"responses,omitempty" url:"responses,omitempty"`
// Any top-level errors that prevented the bulk operation from running.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Defines the fields included in the response body from the [BulkCreateCustomers](api-endpoint:Customers-BulkCreateCustomers) endpoint.
func (*BulkCreateCustomersResponse) GetErrors ¶
func (b *BulkCreateCustomersResponse) GetErrors() []*Error
func (*BulkCreateCustomersResponse) GetExtraProperties ¶
func (b *BulkCreateCustomersResponse) GetExtraProperties() map[string]interface{}
func (*BulkCreateCustomersResponse) GetResponses ¶
func (b *BulkCreateCustomersResponse) GetResponses() map[string]*CreateCustomerResponse
func (*BulkCreateCustomersResponse) String ¶
func (b *BulkCreateCustomersResponse) String() string
func (*BulkCreateCustomersResponse) UnmarshalJSON ¶
func (b *BulkCreateCustomersResponse) UnmarshalJSON(data []byte) error
type BulkDeleteBookingCustomAttributesResponse ¶
type BulkDeleteBookingCustomAttributesResponse struct {
// A map of responses that correspond to individual delete requests. Each response has the
// same ID as the corresponding request and contains `booking_id` and `errors` field.
Values map[string]*BookingCustomAttributeDeleteResponse `json:"values,omitempty" url:"values,omitempty"`
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Represents a [BulkDeleteBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkDeleteBookingCustomAttributes) response, which contains a map of responses that each corresponds to an individual delete request.
func (*BulkDeleteBookingCustomAttributesResponse) GetErrors ¶
func (b *BulkDeleteBookingCustomAttributesResponse) GetErrors() []*Error
func (*BulkDeleteBookingCustomAttributesResponse) GetExtraProperties ¶
func (b *BulkDeleteBookingCustomAttributesResponse) GetExtraProperties() map[string]interface{}
func (*BulkDeleteBookingCustomAttributesResponse) GetValues ¶
func (b *BulkDeleteBookingCustomAttributesResponse) GetValues() map[string]*BookingCustomAttributeDeleteResponse
func (*BulkDeleteBookingCustomAttributesResponse) String ¶
func (b *BulkDeleteBookingCustomAttributesResponse) String() string
func (*BulkDeleteBookingCustomAttributesResponse) UnmarshalJSON ¶
func (b *BulkDeleteBookingCustomAttributesResponse) UnmarshalJSON(data []byte) error
type BulkDeleteCustomersRequest ¶
type BulkDeleteCustomersRequest struct {
// The IDs of the [customer profiles](entity:Customer) to delete.
CustomerIDs []string `json:"customer_ids,omitempty" url:"-"`
}
type BulkDeleteCustomersResponse ¶
type BulkDeleteCustomersResponse struct {
// A map of responses that correspond to individual delete requests, represented by
// key-value pairs.
//
// Each key is the customer ID that was specified for a delete request and each value
// is the corresponding response.
// If the request succeeds, the value is an empty object (`{ }`).
// If the request fails, the value contains any errors that occurred during the request.
Responses map[string]*DeleteCustomerResponse `json:"responses,omitempty" url:"responses,omitempty"`
// Any top-level errors that prevented the bulk operation from running.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Defines the fields included in the response body from the [BulkDeleteCustomers](api-endpoint:Customers-BulkDeleteCustomers) endpoint.
func (*BulkDeleteCustomersResponse) GetErrors ¶
func (b *BulkDeleteCustomersResponse) GetErrors() []*Error
func (*BulkDeleteCustomersResponse) GetExtraProperties ¶
func (b *BulkDeleteCustomersResponse) GetExtraProperties() map[string]interface{}
func (*BulkDeleteCustomersResponse) GetResponses ¶
func (b *BulkDeleteCustomersResponse) GetResponses() map[string]*DeleteCustomerResponse
func (*BulkDeleteCustomersResponse) String ¶
func (b *BulkDeleteCustomersResponse) String() string
func (*BulkDeleteCustomersResponse) UnmarshalJSON ¶
func (b *BulkDeleteCustomersResponse) UnmarshalJSON(data []byte) error
type BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest ¶
type BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest struct {
// The key of the associated custom attribute definition.
// Represented as a qualified key if the requesting app is not the definition owner.
Key *string `json:"key,omitempty" url:"key,omitempty"`
// contains filtered or unexported fields
}
Represents an individual delete request in a [BulkDeleteLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkDeleteLocationCustomAttributes) request. An individual request contains an optional ID of the associated custom attribute definition and optional key of the associated custom attribute definition.
func (*BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest) GetExtraProperties ¶
func (b *BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest) GetExtraProperties() map[string]interface{}
func (*BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest) GetKey ¶
func (b *BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest) GetKey() *string
func (*BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest) UnmarshalJSON ¶
func (b *BulkDeleteLocationCustomAttributesRequestLocationCustomAttributeDeleteRequest) UnmarshalJSON(data []byte) error
type BulkDeleteLocationCustomAttributesResponse ¶
type BulkDeleteLocationCustomAttributesResponse struct {
// A map of responses that correspond to individual delete requests. Each response has the
// same key as the corresponding request.
Values map[string]*BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse `json:"values,omitempty" url:"values,omitempty"`
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Represents a [BulkDeleteLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkDeleteLocationCustomAttributes) response, which contains a map of responses that each corresponds to an individual delete request.
func (*BulkDeleteLocationCustomAttributesResponse) GetErrors ¶
func (b *BulkDeleteLocationCustomAttributesResponse) GetErrors() []*Error
func (*BulkDeleteLocationCustomAttributesResponse) GetExtraProperties ¶
func (b *BulkDeleteLocationCustomAttributesResponse) GetExtraProperties() map[string]interface{}
func (*BulkDeleteLocationCustomAttributesResponse) String ¶
func (b *BulkDeleteLocationCustomAttributesResponse) String() string
func (*BulkDeleteLocationCustomAttributesResponse) UnmarshalJSON ¶
func (b *BulkDeleteLocationCustomAttributesResponse) UnmarshalJSON(data []byte) error
type BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse ¶
type BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse struct {
// The ID of the location associated with the custom attribute.
LocationID *string `json:"location_id,omitempty" url:"location_id,omitempty"`
// Errors that occurred while processing the individual LocationCustomAttributeDeleteRequest request
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Represents an individual delete response in a [BulkDeleteLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkDeleteLocationCustomAttributes) request.
func (*BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse) GetErrors ¶
func (b *BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse) GetErrors() []*Error
func (*BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse) GetExtraProperties ¶
func (b *BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse) GetExtraProperties() map[string]interface{}
func (*BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse) GetLocationID ¶
func (b *BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse) GetLocationID() *string
func (*BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse) UnmarshalJSON ¶
func (b *BulkDeleteLocationCustomAttributesResponseLocationCustomAttributeDeleteResponse) UnmarshalJSON(data []byte) error
type BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest ¶
type BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest struct {
// The key of the associated custom attribute definition.
// Represented as a qualified key if the requesting app is not the definition owner.
Key *string `json:"key,omitempty" url:"key,omitempty"`
// contains filtered or unexported fields
}
Represents an individual delete request in a [BulkDeleteMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkDeleteMerchantCustomAttributes) request. An individual request contains an optional ID of the associated custom attribute definition and optional key of the associated custom attribute definition.
func (*BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest) GetExtraProperties ¶
func (b *BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest) GetExtraProperties() map[string]interface{}
func (*BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest) GetKey ¶
func (b *BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest) GetKey() *string
func (*BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest) UnmarshalJSON ¶
func (b *BulkDeleteMerchantCustomAttributesRequestMerchantCustomAttributeDeleteRequest) UnmarshalJSON(data []byte) error
type BulkDeleteMerchantCustomAttributesResponse ¶
type BulkDeleteMerchantCustomAttributesResponse struct {
// A map of responses that correspond to individual delete requests. Each response has the
// same key as the corresponding request.
Values map[string]*BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse `json:"values,omitempty" url:"values,omitempty"`
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Represents a [BulkDeleteMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkDeleteMerchantCustomAttributes) response, which contains a map of responses that each corresponds to an individual delete request.
func (*BulkDeleteMerchantCustomAttributesResponse) GetErrors ¶
func (b *BulkDeleteMerchantCustomAttributesResponse) GetErrors() []*Error
func (*BulkDeleteMerchantCustomAttributesResponse) GetExtraProperties ¶
func (b *BulkDeleteMerchantCustomAttributesResponse) GetExtraProperties() map[string]interface{}
func (*BulkDeleteMerchantCustomAttributesResponse) String ¶
func (b *BulkDeleteMerchantCustomAttributesResponse) String() string
func (*BulkDeleteMerchantCustomAttributesResponse) UnmarshalJSON ¶
func (b *BulkDeleteMerchantCustomAttributesResponse) UnmarshalJSON(data []byte) error
type BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse ¶
type BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse struct {
// Errors that occurred while processing the individual MerchantCustomAttributeDeleteRequest request
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Represents an individual delete response in a [BulkDeleteMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkDeleteMerchantCustomAttributes) request.
func (*BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse) GetErrors ¶
func (b *BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse) GetErrors() []*Error
func (*BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse) GetExtraProperties ¶
func (b *BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse) GetExtraProperties() map[string]interface{}
func (*BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse) UnmarshalJSON ¶
func (b *BulkDeleteMerchantCustomAttributesResponseMerchantCustomAttributeDeleteResponse) UnmarshalJSON(data []byte) error
type BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute ¶
type BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute struct {
// The key of the custom attribute to delete. This key must match the key
// of an existing custom attribute definition.
Key *string `json:"key,omitempty" url:"key,omitempty"`
// The ID of the target [order](entity:Order).
OrderID string `json:"order_id" url:"order_id"`
// contains filtered or unexported fields
}
Represents one delete within the bulk operation.
func (*BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute) GetExtraProperties ¶
func (b *BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute) GetExtraProperties() map[string]interface{}
func (*BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute) GetKey ¶
func (b *BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute) GetKey() *string
func (*BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute) GetOrderID ¶
func (b *BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute) GetOrderID() string
func (*BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute) String ¶
func (b *BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute) String() string
func (*BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute) UnmarshalJSON ¶
func (b *BulkDeleteOrderCustomAttributesRequestDeleteCustomAttribute) UnmarshalJSON(data []byte) error
type BulkDeleteOrderCustomAttributesResponse ¶
type BulkDeleteOrderCustomAttributesResponse struct {
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// A map of responses that correspond to individual delete requests. Each response has the same ID
//
// as the corresponding request and contains either a `custom_attribute` or an `errors` field.
Values map[string]*DeleteOrderCustomAttributeResponse `json:"values,omitempty" url:"values,omitempty"`
// contains filtered or unexported fields
}
Represents a response from deleting one or more order custom attributes.
func (*BulkDeleteOrderCustomAttributesResponse) GetErrors ¶
func (b *BulkDeleteOrderCustomAttributesResponse) GetErrors() []*Error
func (*BulkDeleteOrderCustomAttributesResponse) GetExtraProperties ¶
func (b *BulkDeleteOrderCustomAttributesResponse) GetExtraProperties() map[string]interface{}
func (*BulkDeleteOrderCustomAttributesResponse) GetValues ¶
func (b *BulkDeleteOrderCustomAttributesResponse) GetValues() map[string]*DeleteOrderCustomAttributeResponse
func (*BulkDeleteOrderCustomAttributesResponse) String ¶
func (b *BulkDeleteOrderCustomAttributesResponse) String() string
func (*BulkDeleteOrderCustomAttributesResponse) UnmarshalJSON ¶
func (b *BulkDeleteOrderCustomAttributesResponse) UnmarshalJSON(data []byte) error
type BulkPublishScheduledShiftsData ¶ added in v1.5.0
type BulkPublishScheduledShiftsData struct {
// The current version of the scheduled shift, used to enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)
// control. If the provided version doesn't match the server version, the request fails.
// If omitted, Square executes a blind write, potentially overwriting data from another publish request.
Version *int `json:"version,omitempty" url:"version,omitempty"`
// contains filtered or unexported fields
}
Represents options for an individual publish request in a [BulkPublishScheduledShifts](api-endpoint:Labor-BulkPublishScheduledShifts) operation, provided as the value in a key-value pair.
func (*BulkPublishScheduledShiftsData) GetExtraProperties ¶ added in v1.5.0
func (b *BulkPublishScheduledShiftsData) GetExtraProperties() map[string]interface{}
func (*BulkPublishScheduledShiftsData) GetVersion ¶ added in v1.5.0
func (b *BulkPublishScheduledShiftsData) GetVersion() *int
func (*BulkPublishScheduledShiftsData) String ¶ added in v1.5.0
func (b *BulkPublishScheduledShiftsData) String() string
func (*BulkPublishScheduledShiftsData) UnmarshalJSON ¶ added in v1.5.0
func (b *BulkPublishScheduledShiftsData) UnmarshalJSON(data []byte) error
type BulkPublishScheduledShiftsRequest ¶ added in v1.5.0
type BulkPublishScheduledShiftsRequest struct {
// A map of 1 to 100 key-value pairs that represent individual publish requests.
//
// - Each key is the ID of a scheduled shift you want to publish.
// - Each value is a `BulkPublishScheduledShiftsData` object that contains the
// `version` field or is an empty object.
ScheduledShifts map[string]*BulkPublishScheduledShiftsData `json:"scheduled_shifts,omitempty" url:"-"`
// Indicates whether Square should send email notifications to team members and
// which team members should receive the notifications. This setting applies to all shifts
// specified in the bulk operation. The default value is `AFFECTED`.
// See [ScheduledShiftNotificationAudience](#type-scheduledshiftnotificationaudience) for possible values
ScheduledShiftNotificationAudience *ScheduledShiftNotificationAudience `json:"scheduled_shift_notification_audience,omitempty" url:"-"`
}
type BulkPublishScheduledShiftsResponse ¶ added in v1.5.0
type BulkPublishScheduledShiftsResponse struct {
// A map of key-value pairs that represent responses for individual publish requests.
// The order of responses might differ from the order in which the requests were provided.
//
// - Each key is the scheduled shift ID that was specified for a publish request.
// - Each value is the corresponding response. If the request succeeds, the value is the
// published scheduled shift. If the request fails, the value is an `errors` array containing
// any errors that occurred while processing the request.
Responses map[string]*PublishScheduledShiftResponse `json:"responses,omitempty" url:"responses,omitempty"`
// Any top-level errors that prevented the bulk operation from succeeding.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Represents a [BulkPublishScheduledShifts](api-endpoint:Labor-BulkPublishScheduledShifts) response. Either `scheduled_shifts` or `errors` is present in the response.
func (*BulkPublishScheduledShiftsResponse) GetErrors ¶ added in v1.5.0
func (b *BulkPublishScheduledShiftsResponse) GetErrors() []*Error
func (*BulkPublishScheduledShiftsResponse) GetExtraProperties ¶ added in v1.5.0
func (b *BulkPublishScheduledShiftsResponse) GetExtraProperties() map[string]interface{}
func (*BulkPublishScheduledShiftsResponse) GetResponses ¶ added in v1.5.0
func (b *BulkPublishScheduledShiftsResponse) GetResponses() map[string]*PublishScheduledShiftResponse
func (*BulkPublishScheduledShiftsResponse) String ¶ added in v1.5.0
func (b *BulkPublishScheduledShiftsResponse) String() string
func (*BulkPublishScheduledShiftsResponse) UnmarshalJSON ¶ added in v1.5.0
func (b *BulkPublishScheduledShiftsResponse) UnmarshalJSON(data []byte) error
type BulkRetrieveBookingsRequest ¶
type BulkRetrieveBookingsRequest struct {
// A non-empty list of [Booking](entity:Booking) IDs specifying bookings to retrieve.
BookingIDs []string `json:"booking_ids,omitempty" url:"-"`
}
type BulkRetrieveBookingsResponse ¶
type BulkRetrieveBookingsResponse struct {
// Requested bookings returned as a map containing `booking_id` as the key and `RetrieveBookingResponse` as the value.
Bookings map[string]*GetBookingResponse `json:"bookings,omitempty" url:"bookings,omitempty"`
// Errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Response payload for bulk retrieval of bookings.
func (*BulkRetrieveBookingsResponse) GetBookings ¶
func (b *BulkRetrieveBookingsResponse) GetBookings() map[string]*GetBookingResponse
func (*BulkRetrieveBookingsResponse) GetErrors ¶
func (b *BulkRetrieveBookingsResponse) GetErrors() []*Error
func (*BulkRetrieveBookingsResponse) GetExtraProperties ¶
func (b *BulkRetrieveBookingsResponse) GetExtraProperties() map[string]interface{}
func (*BulkRetrieveBookingsResponse) String ¶
func (b *BulkRetrieveBookingsResponse) String() string
func (*BulkRetrieveBookingsResponse) UnmarshalJSON ¶
func (b *BulkRetrieveBookingsResponse) UnmarshalJSON(data []byte) error
type BulkRetrieveCustomersRequest ¶
type BulkRetrieveCustomersRequest struct {
// The IDs of the [customer profiles](entity:Customer) to retrieve.
CustomerIDs []string `json:"customer_ids,omitempty" url:"-"`
}
type BulkRetrieveCustomersResponse ¶
type BulkRetrieveCustomersResponse struct {
// A map of responses that correspond to individual retrieve requests, represented by
// key-value pairs.
//
// Each key is the customer ID that was specified for a retrieve request and each value
// is the corresponding response.
// If the request succeeds, the value is the requested customer profile.
// If the request fails, the value contains any errors that occurred during the request.
Responses map[string]*GetCustomerResponse `json:"responses,omitempty" url:"responses,omitempty"`
// Any top-level errors that prevented the bulk operation from running.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Defines the fields included in the response body from the [BulkRetrieveCustomers](api-endpoint:Customers-BulkRetrieveCustomers) endpoint.
func (*BulkRetrieveCustomersResponse) GetErrors ¶
func (b *BulkRetrieveCustomersResponse) GetErrors() []*Error
func (*BulkRetrieveCustomersResponse) GetExtraProperties ¶
func (b *BulkRetrieveCustomersResponse) GetExtraProperties() map[string]interface{}
func (*BulkRetrieveCustomersResponse) GetResponses ¶
func (b *BulkRetrieveCustomersResponse) GetResponses() map[string]*GetCustomerResponse
func (*BulkRetrieveCustomersResponse) String ¶
func (b *BulkRetrieveCustomersResponse) String() string
func (*BulkRetrieveCustomersResponse) UnmarshalJSON ¶
func (b *BulkRetrieveCustomersResponse) UnmarshalJSON(data []byte) error
type BulkRetrieveTeamMemberBookingProfilesRequest ¶
type BulkRetrieveTeamMemberBookingProfilesRequest struct {
// A non-empty list of IDs of team members whose booking profiles you want to retrieve.
TeamMemberIDs []string `json:"team_member_ids,omitempty" url:"-"`
}
type BulkRetrieveTeamMemberBookingProfilesResponse ¶
type BulkRetrieveTeamMemberBookingProfilesResponse struct {
// The returned team members' booking profiles, as a map with `team_member_id` as the key and [TeamMemberBookingProfile](entity:TeamMemberBookingProfile) the value.
TeamMemberBookingProfiles map[string]*GetTeamMemberBookingProfileResponse `json:"team_member_booking_profiles,omitempty" url:"team_member_booking_profiles,omitempty"`
// Errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Response payload for the [BulkRetrieveTeamMemberBookingProfiles](api-endpoint:Bookings-BulkRetrieveTeamMemberBookingProfiles) endpoint.
func (*BulkRetrieveTeamMemberBookingProfilesResponse) GetErrors ¶
func (b *BulkRetrieveTeamMemberBookingProfilesResponse) GetErrors() []*Error
func (*BulkRetrieveTeamMemberBookingProfilesResponse) GetExtraProperties ¶
func (b *BulkRetrieveTeamMemberBookingProfilesResponse) GetExtraProperties() map[string]interface{}
func (*BulkRetrieveTeamMemberBookingProfilesResponse) GetTeamMemberBookingProfiles ¶
func (b *BulkRetrieveTeamMemberBookingProfilesResponse) GetTeamMemberBookingProfiles() map[string]*GetTeamMemberBookingProfileResponse
func (*BulkRetrieveTeamMemberBookingProfilesResponse) String ¶
func (b *BulkRetrieveTeamMemberBookingProfilesResponse) String() string
func (*BulkRetrieveTeamMemberBookingProfilesResponse) UnmarshalJSON ¶
func (b *BulkRetrieveTeamMemberBookingProfilesResponse) UnmarshalJSON(data []byte) error
type BulkSwapPlanRequest ¶
type BulkSwapPlanRequest struct {
// The ID of the new subscription plan variation.
//
// This field is required.
NewPlanVariationID string `json:"new_plan_variation_id" url:"-"`
// The ID of the plan variation whose subscriptions should be swapped. Active subscriptions
// using this plan variation will be subscribed to the new plan variation on their next billing
// day.
OldPlanVariationID string `json:"old_plan_variation_id" url:"-"`
// The ID of the location to associate with the swapped subscriptions.
LocationID string `json:"location_id" url:"-"`
}
type BulkSwapPlanResponse ¶
type BulkSwapPlanResponse struct {
// Errors encountered during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// The number of affected subscriptions.
AffectedSubscriptions *int `json:"affected_subscriptions,omitempty" url:"affected_subscriptions,omitempty"`
// contains filtered or unexported fields
}
Defines output parameters in a response of the [BulkSwapPlan](api-endpoint:Subscriptions-BulkSwapPlan) endpoint.
func (*BulkSwapPlanResponse) GetAffectedSubscriptions ¶
func (b *BulkSwapPlanResponse) GetAffectedSubscriptions() *int
func (*BulkSwapPlanResponse) GetErrors ¶
func (b *BulkSwapPlanResponse) GetErrors() []*Error
func (*BulkSwapPlanResponse) GetExtraProperties ¶
func (b *BulkSwapPlanResponse) GetExtraProperties() map[string]interface{}
func (*BulkSwapPlanResponse) String ¶
func (b *BulkSwapPlanResponse) String() string
func (*BulkSwapPlanResponse) UnmarshalJSON ¶
func (b *BulkSwapPlanResponse) UnmarshalJSON(data []byte) error
type BulkUpdateCustomerData ¶
type BulkUpdateCustomerData struct {
// The given name (that is, the first name) associated with the customer profile.
GivenName *string `json:"given_name,omitempty" url:"given_name,omitempty"`
// The family name (that is, the last name) associated with the customer profile.
FamilyName *string `json:"family_name,omitempty" url:"family_name,omitempty"`
// A business name associated with the customer profile.
CompanyName *string `json:"company_name,omitempty" url:"company_name,omitempty"`
// A nickname for the customer profile.
Nickname *string `json:"nickname,omitempty" url:"nickname,omitempty"`
// The email address associated with the customer profile.
EmailAddress *string `json:"email_address,omitempty" url:"email_address,omitempty"`
// The physical address associated with the customer profile. For maximum length constraints,
// see [Customer addresses](https://developer.squareup.com/docs/customers-api/use-the-api/keep-records#address).
// The `first_name` and `last_name` fields are ignored if they are present in the request.
Address *Address `json:"address,omitempty" url:"address,omitempty"`
// The phone number associated with the customer profile. The phone number must be valid
// and can contain 9–16 digits, with an optional `+` prefix and country code. For more information,
// see [Customer phone numbers](https://developer.squareup.com/docs/customers-api/use-the-api/keep-records#phone-number).
PhoneNumber *string `json:"phone_number,omitempty" url:"phone_number,omitempty"`
// An optional second ID used to associate the customer profile with an
// entity in another system.
ReferenceID *string `json:"reference_id,omitempty" url:"reference_id,omitempty"`
// An custom note associates with the customer profile.
Note *string `json:"note,omitempty" url:"note,omitempty"`
// The birthday associated with the customer profile, in `YYYY-MM-DD` or `MM-DD` format.
// For example, specify `1998-09-21` for September 21, 1998, or `09-21` for September 21.
// Birthdays are returned in `YYYY-MM-DD` format, where `YYYY` is the specified birth year or
// `0000` if a birth year is not specified.
Birthday *string `json:"birthday,omitempty" url:"birthday,omitempty"`
// The tax ID associated with the customer profile. This field is available only for
// customers of sellers in EU countries or the United Kingdom. For more information, see
// [Customer tax IDs](https://developer.squareup.com/docs/customers-api/what-it-does#customer-tax-ids).
TaxIDs *CustomerTaxIDs `json:"tax_ids,omitempty" url:"tax_ids,omitempty"`
// The current version of the customer profile.
//
// As a best practice, you should include this field to enable
// [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)
// control.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// contains filtered or unexported fields
}
Defines the customer data provided in individual update requests for a [BulkUpdateCustomers](api-endpoint:Customers-BulkUpdateCustomers) operation.
func (*BulkUpdateCustomerData) GetAddress ¶
func (b *BulkUpdateCustomerData) GetAddress() *Address
func (*BulkUpdateCustomerData) GetBirthday ¶
func (b *BulkUpdateCustomerData) GetBirthday() *string
func (*BulkUpdateCustomerData) GetCompanyName ¶
func (b *BulkUpdateCustomerData) GetCompanyName() *string
func (*BulkUpdateCustomerData) GetEmailAddress ¶
func (b *BulkUpdateCustomerData) GetEmailAddress() *string
func (*BulkUpdateCustomerData) GetExtraProperties ¶
func (b *BulkUpdateCustomerData) GetExtraProperties() map[string]interface{}
func (*BulkUpdateCustomerData) GetFamilyName ¶
func (b *BulkUpdateCustomerData) GetFamilyName() *string
func (*BulkUpdateCustomerData) GetGivenName ¶
func (b *BulkUpdateCustomerData) GetGivenName() *string
func (*BulkUpdateCustomerData) GetNickname ¶
func (b *BulkUpdateCustomerData) GetNickname() *string
func (*BulkUpdateCustomerData) GetNote ¶
func (b *BulkUpdateCustomerData) GetNote() *string
func (*BulkUpdateCustomerData) GetPhoneNumber ¶
func (b *BulkUpdateCustomerData) GetPhoneNumber() *string
func (*BulkUpdateCustomerData) GetReferenceID ¶
func (b *BulkUpdateCustomerData) GetReferenceID() *string
func (*BulkUpdateCustomerData) GetTaxIDs ¶
func (b *BulkUpdateCustomerData) GetTaxIDs() *CustomerTaxIDs
func (*BulkUpdateCustomerData) GetVersion ¶
func (b *BulkUpdateCustomerData) GetVersion() *int64
func (*BulkUpdateCustomerData) String ¶
func (b *BulkUpdateCustomerData) String() string
func (*BulkUpdateCustomerData) UnmarshalJSON ¶
func (b *BulkUpdateCustomerData) UnmarshalJSON(data []byte) error
type BulkUpdateCustomersRequest ¶
type BulkUpdateCustomersRequest struct {
// A map of 1 to 100 individual update requests, represented by `customer ID: { customer data }`
// key-value pairs.
//
// Each key is the ID of the [customer profile](entity:Customer) to update. To update a customer profile
// that was created by merging existing profiles, provide the ID of the newly created profile.
//
// Each value contains the updated customer data. Only new or changed fields are required. To add or
// update a field, specify the new value. To remove a field, specify `null`.
Customers map[string]*BulkUpdateCustomerData `json:"customers,omitempty" url:"-"`
}
type BulkUpdateCustomersResponse ¶
type BulkUpdateCustomersResponse struct {
// A map of responses that correspond to individual update requests, represented by
// key-value pairs.
//
// Each key is the customer ID that was specified for an update request and each value
// is the corresponding response.
// If the request succeeds, the value is the updated customer profile.
// If the request fails, the value contains any errors that occurred during the request.
Responses map[string]*UpdateCustomerResponse `json:"responses,omitempty" url:"responses,omitempty"`
// Any top-level errors that prevented the bulk operation from running.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Defines the fields included in the response body from the [BulkUpdateCustomers](api-endpoint:Customers-BulkUpdateCustomers) endpoint.
func (*BulkUpdateCustomersResponse) GetErrors ¶
func (b *BulkUpdateCustomersResponse) GetErrors() []*Error
func (*BulkUpdateCustomersResponse) GetExtraProperties ¶
func (b *BulkUpdateCustomersResponse) GetExtraProperties() map[string]interface{}
func (*BulkUpdateCustomersResponse) GetResponses ¶
func (b *BulkUpdateCustomersResponse) GetResponses() map[string]*UpdateCustomerResponse
func (*BulkUpdateCustomersResponse) String ¶
func (b *BulkUpdateCustomersResponse) String() string
func (*BulkUpdateCustomersResponse) UnmarshalJSON ¶
func (b *BulkUpdateCustomersResponse) UnmarshalJSON(data []byte) error
type BulkUpsertBookingCustomAttributesResponse ¶
type BulkUpsertBookingCustomAttributesResponse struct {
// A map of responses that correspond to individual upsert requests. Each response has the
// same ID as the corresponding request and contains either a `booking_id` and `custom_attribute` or an `errors` field.
Values map[string]*BookingCustomAttributeUpsertResponse `json:"values,omitempty" url:"values,omitempty"`
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Represents a [BulkUpsertBookingCustomAttributes](api-endpoint:BookingCustomAttributes-BulkUpsertBookingCustomAttributes) response, which contains a map of responses that each corresponds to an individual upsert request.
func (*BulkUpsertBookingCustomAttributesResponse) GetErrors ¶
func (b *BulkUpsertBookingCustomAttributesResponse) GetErrors() []*Error
func (*BulkUpsertBookingCustomAttributesResponse) GetExtraProperties ¶
func (b *BulkUpsertBookingCustomAttributesResponse) GetExtraProperties() map[string]interface{}
func (*BulkUpsertBookingCustomAttributesResponse) GetValues ¶
func (b *BulkUpsertBookingCustomAttributesResponse) GetValues() map[string]*BookingCustomAttributeUpsertResponse
func (*BulkUpsertBookingCustomAttributesResponse) String ¶
func (b *BulkUpsertBookingCustomAttributesResponse) String() string
func (*BulkUpsertBookingCustomAttributesResponse) UnmarshalJSON ¶
func (b *BulkUpsertBookingCustomAttributesResponse) UnmarshalJSON(data []byte) error
type BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest ¶
type BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest struct {
// The ID of the target [location](entity:Location).
LocationID string `json:"location_id" url:"location_id"`
// The custom attribute to create or update, with following fields:
// - `key`. This key must match the `key` of a custom attribute definition in the Square seller
// account. If the requesting application is not the definition owner, you must provide the qualified key.
// - `value`. This value must conform to the `schema` specified by the definition.
// For more information, see [Supported data types](https://developer.squareup.com/docs/devtools/customattributes/overview#supported-data-types)..
// - `version`. To enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)
// control, specify the current version of the custom attribute.
// If this is not important for your application, `version` can be set to -1.
CustomAttribute *CustomAttribute `json:"custom_attribute,omitempty" url:"custom_attribute,omitempty"`
// A unique identifier for this individual upsert request, used to ensure idempotency.
// For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).
IdempotencyKey *string `json:"idempotency_key,omitempty" url:"idempotency_key,omitempty"`
// contains filtered or unexported fields
}
Represents an individual upsert request in a [BulkUpsertLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkUpsertLocationCustomAttributes) request. An individual request contains a location ID, the custom attribute to create or update, and an optional idempotency key.
func (*BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest) GetCustomAttribute ¶
func (b *BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest) GetCustomAttribute() *CustomAttribute
func (*BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest) GetExtraProperties ¶
func (b *BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest) GetExtraProperties() map[string]interface{}
func (*BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest) GetIdempotencyKey ¶
func (b *BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest) GetIdempotencyKey() *string
func (*BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest) GetLocationID ¶
func (b *BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest) GetLocationID() string
func (*BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest) UnmarshalJSON ¶
func (b *BulkUpsertLocationCustomAttributesRequestLocationCustomAttributeUpsertRequest) UnmarshalJSON(data []byte) error
type BulkUpsertLocationCustomAttributesResponse ¶
type BulkUpsertLocationCustomAttributesResponse struct {
// A map of responses that correspond to individual upsert requests. Each response has the
// same ID as the corresponding request and contains either a `location_id` and `custom_attribute` or an `errors` field.
Values map[string]*BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse `json:"values,omitempty" url:"values,omitempty"`
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Represents a [BulkUpsertLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkUpsertLocationCustomAttributes) response, which contains a map of responses that each corresponds to an individual upsert request.
func (*BulkUpsertLocationCustomAttributesResponse) GetErrors ¶
func (b *BulkUpsertLocationCustomAttributesResponse) GetErrors() []*Error
func (*BulkUpsertLocationCustomAttributesResponse) GetExtraProperties ¶
func (b *BulkUpsertLocationCustomAttributesResponse) GetExtraProperties() map[string]interface{}
func (*BulkUpsertLocationCustomAttributesResponse) String ¶
func (b *BulkUpsertLocationCustomAttributesResponse) String() string
func (*BulkUpsertLocationCustomAttributesResponse) UnmarshalJSON ¶
func (b *BulkUpsertLocationCustomAttributesResponse) UnmarshalJSON(data []byte) error
type BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse ¶
type BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse struct {
// The ID of the location associated with the custom attribute.
LocationID *string `json:"location_id,omitempty" url:"location_id,omitempty"`
// The new or updated custom attribute.
CustomAttribute *CustomAttribute `json:"custom_attribute,omitempty" url:"custom_attribute,omitempty"`
// Any errors that occurred while processing the individual request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Represents a response for an individual upsert request in a [BulkUpsertLocationCustomAttributes](api-endpoint:LocationCustomAttributes-BulkUpsertLocationCustomAttributes) operation.
func (*BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse) GetCustomAttribute ¶
func (b *BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse) GetCustomAttribute() *CustomAttribute
func (*BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse) GetErrors ¶
func (b *BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse) GetErrors() []*Error
func (*BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse) GetExtraProperties ¶
func (b *BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse) GetExtraProperties() map[string]interface{}
func (*BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse) GetLocationID ¶
func (b *BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse) GetLocationID() *string
func (*BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse) UnmarshalJSON ¶
func (b *BulkUpsertLocationCustomAttributesResponseLocationCustomAttributeUpsertResponse) UnmarshalJSON(data []byte) error
type BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest ¶
type BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest struct {
// The ID of the target [merchant](entity:Merchant).
MerchantID string `json:"merchant_id" url:"merchant_id"`
// The custom attribute to create or update, with following fields:
// - `key`. This key must match the `key` of a custom attribute definition in the Square seller
// account. If the requesting application is not the definition owner, you must provide the qualified key.
// - `value`. This value must conform to the `schema` specified by the definition.
// For more information, see [Supported data types](https://developer.squareup.com/docs/devtools/customattributes/overview#supported-data-types).
// - The version field must match the current version of the custom attribute definition to enable
// [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)
// If this is not important for your application, version can be set to -1. For any other values, the request fails with a BAD_REQUEST error.
CustomAttribute *CustomAttribute `json:"custom_attribute,omitempty" url:"custom_attribute,omitempty"`
// A unique identifier for this individual upsert request, used to ensure idempotency.
// For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).
IdempotencyKey *string `json:"idempotency_key,omitempty" url:"idempotency_key,omitempty"`
// contains filtered or unexported fields
}
Represents an individual upsert request in a [BulkUpsertMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkUpsertMerchantCustomAttributes) request. An individual request contains a merchant ID, the custom attribute to create or update, and an optional idempotency key.
func (*BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest) GetCustomAttribute ¶
func (b *BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest) GetCustomAttribute() *CustomAttribute
func (*BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest) GetExtraProperties ¶
func (b *BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest) GetExtraProperties() map[string]interface{}
func (*BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest) GetIdempotencyKey ¶
func (b *BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest) GetIdempotencyKey() *string
func (*BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest) GetMerchantID ¶
func (b *BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest) GetMerchantID() string
func (*BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest) UnmarshalJSON ¶
func (b *BulkUpsertMerchantCustomAttributesRequestMerchantCustomAttributeUpsertRequest) UnmarshalJSON(data []byte) error
type BulkUpsertMerchantCustomAttributesResponse ¶
type BulkUpsertMerchantCustomAttributesResponse struct {
// A map of responses that correspond to individual upsert requests. Each response has the
// same ID as the corresponding request and contains either a `merchant_id` and `custom_attribute` or an `errors` field.
Values map[string]*BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse `json:"values,omitempty" url:"values,omitempty"`
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Represents a [BulkUpsertMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkUpsertMerchantCustomAttributes) response, which contains a map of responses that each corresponds to an individual upsert request.
func (*BulkUpsertMerchantCustomAttributesResponse) GetErrors ¶
func (b *BulkUpsertMerchantCustomAttributesResponse) GetErrors() []*Error
func (*BulkUpsertMerchantCustomAttributesResponse) GetExtraProperties ¶
func (b *BulkUpsertMerchantCustomAttributesResponse) GetExtraProperties() map[string]interface{}
func (*BulkUpsertMerchantCustomAttributesResponse) String ¶
func (b *BulkUpsertMerchantCustomAttributesResponse) String() string
func (*BulkUpsertMerchantCustomAttributesResponse) UnmarshalJSON ¶
func (b *BulkUpsertMerchantCustomAttributesResponse) UnmarshalJSON(data []byte) error
type BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse ¶
type BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse struct {
// The ID of the merchant associated with the custom attribute.
MerchantID *string `json:"merchant_id,omitempty" url:"merchant_id,omitempty"`
// The new or updated custom attribute.
CustomAttribute *CustomAttribute `json:"custom_attribute,omitempty" url:"custom_attribute,omitempty"`
// Any errors that occurred while processing the individual request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Represents a response for an individual upsert request in a [BulkUpsertMerchantCustomAttributes](api-endpoint:MerchantCustomAttributes-BulkUpsertMerchantCustomAttributes) operation.
func (*BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse) GetCustomAttribute ¶
func (b *BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse) GetCustomAttribute() *CustomAttribute
func (*BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse) GetErrors ¶
func (b *BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse) GetErrors() []*Error
func (*BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse) GetExtraProperties ¶
func (b *BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse) GetExtraProperties() map[string]interface{}
func (*BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse) GetMerchantID ¶
func (b *BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse) GetMerchantID() *string
func (*BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse) UnmarshalJSON ¶
func (b *BulkUpsertMerchantCustomAttributesResponseMerchantCustomAttributeUpsertResponse) UnmarshalJSON(data []byte) error
type BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute ¶
type BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute struct {
// The custom attribute to create or update, with the following fields:
//
// - `value`. This value must conform to the `schema` specified by the definition.
// For more information, see [Value data types](https://developer.squareup.com/docs/customer-custom-attributes-api/custom-attributes#value-data-types).
//
// - `version`. To enable [optimistic concurrency](https://developer.squareup.com/docs/build-basics/common-api-patterns/optimistic-concurrency)
// control, include this optional field and specify the current version of the custom attribute.
CustomAttribute *CustomAttribute `json:"custom_attribute,omitempty" url:"custom_attribute,omitempty"`
// A unique identifier for this request, used to ensure idempotency.
// For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).
IdempotencyKey *string `json:"idempotency_key,omitempty" url:"idempotency_key,omitempty"`
// The ID of the target [order](entity:Order).
OrderID string `json:"order_id" url:"order_id"`
// contains filtered or unexported fields
}
Represents one upsert within the bulk operation.
func (*BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute) GetCustomAttribute ¶
func (b *BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute) GetCustomAttribute() *CustomAttribute
func (*BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute) GetExtraProperties ¶
func (b *BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute) GetExtraProperties() map[string]interface{}
func (*BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute) GetIdempotencyKey ¶
func (b *BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute) GetIdempotencyKey() *string
func (*BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute) GetOrderID ¶
func (b *BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute) GetOrderID() string
func (*BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute) String ¶
func (b *BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute) String() string
func (*BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute) UnmarshalJSON ¶
func (b *BulkUpsertOrderCustomAttributesRequestUpsertCustomAttribute) UnmarshalJSON(data []byte) error
type BulkUpsertOrderCustomAttributesResponse ¶
type BulkUpsertOrderCustomAttributesResponse struct {
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// A map of responses that correspond to individual upsert operations for custom attributes.
Values map[string]*UpsertOrderCustomAttributeResponse `json:"values,omitempty" url:"values,omitempty"`
// contains filtered or unexported fields
}
Represents a response from a bulk upsert of order custom attributes.
func (*BulkUpsertOrderCustomAttributesResponse) GetErrors ¶
func (b *BulkUpsertOrderCustomAttributesResponse) GetErrors() []*Error
func (*BulkUpsertOrderCustomAttributesResponse) GetExtraProperties ¶
func (b *BulkUpsertOrderCustomAttributesResponse) GetExtraProperties() map[string]interface{}
func (*BulkUpsertOrderCustomAttributesResponse) GetValues ¶
func (b *BulkUpsertOrderCustomAttributesResponse) GetValues() map[string]*UpsertOrderCustomAttributeResponse
func (*BulkUpsertOrderCustomAttributesResponse) String ¶
func (b *BulkUpsertOrderCustomAttributesResponse) String() string
func (*BulkUpsertOrderCustomAttributesResponse) UnmarshalJSON ¶
func (b *BulkUpsertOrderCustomAttributesResponse) UnmarshalJSON(data []byte) error
type BusinessAppointmentSettings ¶
type BusinessAppointmentSettings struct {
// Types of the location allowed for bookings.
// See [BusinessAppointmentSettingsBookingLocationType](#type-businessappointmentsettingsbookinglocationtype) for possible values
LocationTypes []BusinessAppointmentSettingsBookingLocationType `json:"location_types,omitempty" url:"location_types,omitempty"`
// The time unit of the service duration for bookings.
// See [BusinessAppointmentSettingsAlignmentTime](#type-businessappointmentsettingsalignmenttime) for possible values
AlignmentTime *BusinessAppointmentSettingsAlignmentTime `json:"alignment_time,omitempty" url:"alignment_time,omitempty"`
// The minimum lead time in seconds before a service can be booked. A booking must be created at least this amount of time before its starting time.
MinBookingLeadTimeSeconds *int `json:"min_booking_lead_time_seconds,omitempty" url:"min_booking_lead_time_seconds,omitempty"`
// The maximum lead time in seconds before a service can be booked. A booking must be created at most this amount of time before its starting time.
MaxBookingLeadTimeSeconds *int `json:"max_booking_lead_time_seconds,omitempty" url:"max_booking_lead_time_seconds,omitempty"`
// Indicates whether a customer can choose from all available time slots and have a staff member assigned
// automatically (`true`) or not (`false`).
AnyTeamMemberBookingEnabled *bool `json:"any_team_member_booking_enabled,omitempty" url:"any_team_member_booking_enabled,omitempty"`
// Indicates whether a customer can book multiple services in a single online booking.
MultipleServiceBookingEnabled *bool `json:"multiple_service_booking_enabled,omitempty" url:"multiple_service_booking_enabled,omitempty"`
// Indicates whether the daily appointment limit applies to team members or to
// business locations.
// See [BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType](#type-businessappointmentsettingsmaxappointmentsperdaylimittype) for possible values
MaxAppointmentsPerDayLimitType *BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType `json:"max_appointments_per_day_limit_type,omitempty" url:"max_appointments_per_day_limit_type,omitempty"`
// The maximum number of daily appointments per team member or per location.
MaxAppointmentsPerDayLimit *int `json:"max_appointments_per_day_limit,omitempty" url:"max_appointments_per_day_limit,omitempty"`
// The cut-off time in seconds for allowing clients to cancel or reschedule an appointment.
CancellationWindowSeconds *int `json:"cancellation_window_seconds,omitempty" url:"cancellation_window_seconds,omitempty"`
// The flat-fee amount charged for a no-show booking.
CancellationFeeMoney *Money `json:"cancellation_fee_money,omitempty" url:"cancellation_fee_money,omitempty"`
// The cancellation policy adopted by the seller.
// See [BusinessAppointmentSettingsCancellationPolicy](#type-businessappointmentsettingscancellationpolicy) for possible values
CancellationPolicy *BusinessAppointmentSettingsCancellationPolicy `json:"cancellation_policy,omitempty" url:"cancellation_policy,omitempty"`
// The free-form text of the seller's cancellation policy.
CancellationPolicyText *string `json:"cancellation_policy_text,omitempty" url:"cancellation_policy_text,omitempty"`
// Indicates whether customers has an assigned staff member (`true`) or can select s staff member of their choice (`false`).
SkipBookingFlowStaffSelection *bool `json:"skip_booking_flow_staff_selection,omitempty" url:"skip_booking_flow_staff_selection,omitempty"`
// contains filtered or unexported fields
}
The service appointment settings, including where and how the service is provided.
func (*BusinessAppointmentSettings) GetAlignmentTime ¶
func (b *BusinessAppointmentSettings) GetAlignmentTime() *BusinessAppointmentSettingsAlignmentTime
func (*BusinessAppointmentSettings) GetAnyTeamMemberBookingEnabled ¶
func (b *BusinessAppointmentSettings) GetAnyTeamMemberBookingEnabled() *bool
func (*BusinessAppointmentSettings) GetCancellationFeeMoney ¶
func (b *BusinessAppointmentSettings) GetCancellationFeeMoney() *Money
func (*BusinessAppointmentSettings) GetCancellationPolicy ¶
func (b *BusinessAppointmentSettings) GetCancellationPolicy() *BusinessAppointmentSettingsCancellationPolicy
func (*BusinessAppointmentSettings) GetCancellationPolicyText ¶
func (b *BusinessAppointmentSettings) GetCancellationPolicyText() *string
func (*BusinessAppointmentSettings) GetCancellationWindowSeconds ¶
func (b *BusinessAppointmentSettings) GetCancellationWindowSeconds() *int
func (*BusinessAppointmentSettings) GetExtraProperties ¶
func (b *BusinessAppointmentSettings) GetExtraProperties() map[string]interface{}
func (*BusinessAppointmentSettings) GetLocationTypes ¶
func (b *BusinessAppointmentSettings) GetLocationTypes() []BusinessAppointmentSettingsBookingLocationType
func (*BusinessAppointmentSettings) GetMaxAppointmentsPerDayLimit ¶
func (b *BusinessAppointmentSettings) GetMaxAppointmentsPerDayLimit() *int
func (*BusinessAppointmentSettings) GetMaxAppointmentsPerDayLimitType ¶
func (b *BusinessAppointmentSettings) GetMaxAppointmentsPerDayLimitType() *BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType
func (*BusinessAppointmentSettings) GetMaxBookingLeadTimeSeconds ¶
func (b *BusinessAppointmentSettings) GetMaxBookingLeadTimeSeconds() *int
func (*BusinessAppointmentSettings) GetMinBookingLeadTimeSeconds ¶
func (b *BusinessAppointmentSettings) GetMinBookingLeadTimeSeconds() *int
func (*BusinessAppointmentSettings) GetMultipleServiceBookingEnabled ¶
func (b *BusinessAppointmentSettings) GetMultipleServiceBookingEnabled() *bool
func (*BusinessAppointmentSettings) GetSkipBookingFlowStaffSelection ¶
func (b *BusinessAppointmentSettings) GetSkipBookingFlowStaffSelection() *bool
func (*BusinessAppointmentSettings) String ¶
func (b *BusinessAppointmentSettings) String() string
func (*BusinessAppointmentSettings) UnmarshalJSON ¶
func (b *BusinessAppointmentSettings) UnmarshalJSON(data []byte) error
type BusinessAppointmentSettingsAlignmentTime ¶
type BusinessAppointmentSettingsAlignmentTime string
Time units of a service duration for bookings.
const ( BusinessAppointmentSettingsAlignmentTimeServiceDuration BusinessAppointmentSettingsAlignmentTime = "SERVICE_DURATION" BusinessAppointmentSettingsAlignmentTimeQuarterHourly BusinessAppointmentSettingsAlignmentTime = "QUARTER_HOURLY" BusinessAppointmentSettingsAlignmentTimeHalfHourly BusinessAppointmentSettingsAlignmentTime = "HALF_HOURLY" BusinessAppointmentSettingsAlignmentTimeHourly BusinessAppointmentSettingsAlignmentTime = "HOURLY" )
func NewBusinessAppointmentSettingsAlignmentTimeFromString ¶
func NewBusinessAppointmentSettingsAlignmentTimeFromString(s string) (BusinessAppointmentSettingsAlignmentTime, error)
type BusinessAppointmentSettingsBookingLocationType ¶
type BusinessAppointmentSettingsBookingLocationType string
Supported types of location where service is provided.
const ( BusinessAppointmentSettingsBookingLocationTypeBusinessLocation BusinessAppointmentSettingsBookingLocationType = "BUSINESS_LOCATION" BusinessAppointmentSettingsBookingLocationTypeCustomerLocation BusinessAppointmentSettingsBookingLocationType = "CUSTOMER_LOCATION" BusinessAppointmentSettingsBookingLocationTypePhone BusinessAppointmentSettingsBookingLocationType = "PHONE" )
func NewBusinessAppointmentSettingsBookingLocationTypeFromString ¶
func NewBusinessAppointmentSettingsBookingLocationTypeFromString(s string) (BusinessAppointmentSettingsBookingLocationType, error)
type BusinessAppointmentSettingsCancellationPolicy ¶
type BusinessAppointmentSettingsCancellationPolicy string
The category of the seller’s cancellation policy.
const ( BusinessAppointmentSettingsCancellationPolicyCancellationTreatedAsNoShow BusinessAppointmentSettingsCancellationPolicy = "CANCELLATION_TREATED_AS_NO_SHOW" BusinessAppointmentSettingsCancellationPolicyCustomPolicy BusinessAppointmentSettingsCancellationPolicy = "CUSTOM_POLICY" )
func NewBusinessAppointmentSettingsCancellationPolicyFromString ¶
func NewBusinessAppointmentSettingsCancellationPolicyFromString(s string) (BusinessAppointmentSettingsCancellationPolicy, error)
type BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType ¶
type BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType string
Types of daily appointment limits.
const ( BusinessAppointmentSettingsMaxAppointmentsPerDayLimitTypePerTeamMember BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType = "PER_TEAM_MEMBER" BusinessAppointmentSettingsMaxAppointmentsPerDayLimitTypePerLocation BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType = "PER_LOCATION" )
func NewBusinessAppointmentSettingsMaxAppointmentsPerDayLimitTypeFromString ¶
func NewBusinessAppointmentSettingsMaxAppointmentsPerDayLimitTypeFromString(s string) (BusinessAppointmentSettingsMaxAppointmentsPerDayLimitType, error)
type BusinessBookingProfile ¶
type BusinessBookingProfile struct {
// The ID of the seller, obtainable using the Merchants API.
SellerID *string `json:"seller_id,omitempty" url:"seller_id,omitempty"`
// The RFC 3339 timestamp specifying the booking's creation time.
CreatedAt *string `json:"created_at,omitempty" url:"created_at,omitempty"`
// Indicates whether the seller is open for booking.
BookingEnabled *bool `json:"booking_enabled,omitempty" url:"booking_enabled,omitempty"`
// The choice of customer's time zone information of a booking.
// The Square online booking site and all notifications to customers uses either the seller location’s time zone
// or the time zone the customer chooses at booking.
// See [BusinessBookingProfileCustomerTimezoneChoice](#type-businessbookingprofilecustomertimezonechoice) for possible values
CustomerTimezoneChoice *BusinessBookingProfileCustomerTimezoneChoice `json:"customer_timezone_choice,omitempty" url:"customer_timezone_choice,omitempty"`
// The policy for the seller to automatically accept booking requests (`ACCEPT_ALL`) or not (`REQUIRES_ACCEPTANCE`).
// See [BusinessBookingProfileBookingPolicy](#type-businessbookingprofilebookingpolicy) for possible values
BookingPolicy *BusinessBookingProfileBookingPolicy `json:"booking_policy,omitempty" url:"booking_policy,omitempty"`
// Indicates whether customers can cancel or reschedule their own bookings (`true`) or not (`false`).
AllowUserCancel *bool `json:"allow_user_cancel,omitempty" url:"allow_user_cancel,omitempty"`
// Settings for appointment-type bookings.
BusinessAppointmentSettings *BusinessAppointmentSettings `json:"business_appointment_settings,omitempty" url:"business_appointment_settings,omitempty"`
// Indicates whether the seller's subscription to Square Appointments supports creating, updating or canceling an appointment through the API (`true`) or not (`false`) using seller permission.
SupportSellerLevelWrites *bool `json:"support_seller_level_writes,omitempty" url:"support_seller_level_writes,omitempty"`
// contains filtered or unexported fields
}
A seller's business booking profile, including booking policy, appointment settings, etc.
func (*BusinessBookingProfile) GetAllowUserCancel ¶
func (b *BusinessBookingProfile) GetAllowUserCancel() *bool
func (*BusinessBookingProfile) GetBookingEnabled ¶
func (b *BusinessBookingProfile) GetBookingEnabled() *bool
func (*BusinessBookingProfile) GetBookingPolicy ¶
func (b *BusinessBookingProfile) GetBookingPolicy() *BusinessBookingProfileBookingPolicy
func (*BusinessBookingProfile) GetBusinessAppointmentSettings ¶
func (b *BusinessBookingProfile) GetBusinessAppointmentSettings() *BusinessAppointmentSettings
func (*BusinessBookingProfile) GetCreatedAt ¶
func (b *BusinessBookingProfile) GetCreatedAt() *string
func (*BusinessBookingProfile) GetCustomerTimezoneChoice ¶
func (b *BusinessBookingProfile) GetCustomerTimezoneChoice() *BusinessBookingProfileCustomerTimezoneChoice
func (*BusinessBookingProfile) GetExtraProperties ¶
func (b *BusinessBookingProfile) GetExtraProperties() map[string]interface{}
func (*BusinessBookingProfile) GetSellerID ¶
func (b *BusinessBookingProfile) GetSellerID() *string
func (*BusinessBookingProfile) GetSupportSellerLevelWrites ¶
func (b *BusinessBookingProfile) GetSupportSellerLevelWrites() *bool
func (*BusinessBookingProfile) String ¶
func (b *BusinessBookingProfile) String() string
func (*BusinessBookingProfile) UnmarshalJSON ¶
func (b *BusinessBookingProfile) UnmarshalJSON(data []byte) error
type BusinessBookingProfileBookingPolicy ¶
type BusinessBookingProfileBookingPolicy string
Policies for accepting bookings.
const ( BusinessBookingProfileBookingPolicyAcceptAll BusinessBookingProfileBookingPolicy = "ACCEPT_ALL" BusinessBookingProfileBookingPolicyRequiresAcceptance BusinessBookingProfileBookingPolicy = "REQUIRES_ACCEPTANCE" )
func NewBusinessBookingProfileBookingPolicyFromString ¶
func NewBusinessBookingProfileBookingPolicyFromString(s string) (BusinessBookingProfileBookingPolicy, error)
type BusinessBookingProfileCustomerTimezoneChoice ¶
type BusinessBookingProfileCustomerTimezoneChoice string
Choices of customer-facing time zone used for bookings.
const ( BusinessBookingProfileCustomerTimezoneChoiceBusinessLocationTimezone BusinessBookingProfileCustomerTimezoneChoice = "BUSINESS_LOCATION_TIMEZONE" BusinessBookingProfileCustomerTimezoneChoiceCustomerChoice BusinessBookingProfileCustomerTimezoneChoice = "CUSTOMER_CHOICE" )
func NewBusinessBookingProfileCustomerTimezoneChoiceFromString ¶
func NewBusinessBookingProfileCustomerTimezoneChoiceFromString(s string) (BusinessBookingProfileCustomerTimezoneChoice, error)
type BusinessHours ¶
type BusinessHours struct {
// The list of time periods during which the business is open. There can be at most 10 periods per day.
Periods []*BusinessHoursPeriod `json:"periods,omitempty" url:"periods,omitempty"`
// contains filtered or unexported fields
}
The hours of operation for a location.
func (*BusinessHours) GetExtraProperties ¶
func (b *BusinessHours) GetExtraProperties() map[string]interface{}
func (*BusinessHours) GetPeriods ¶
func (b *BusinessHours) GetPeriods() []*BusinessHoursPeriod
func (*BusinessHours) String ¶
func (b *BusinessHours) String() string
func (*BusinessHours) UnmarshalJSON ¶
func (b *BusinessHours) UnmarshalJSON(data []byte) error
type BusinessHoursPeriod ¶
type BusinessHoursPeriod struct {
// The day of the week for this time period.
// See [DayOfWeek](#type-dayofweek) for possible values
DayOfWeek *DayOfWeek `json:"day_of_week,omitempty" url:"day_of_week,omitempty"`
// The start time of a business hours period, specified in local time using partial-time
// RFC 3339 format. For example, `8:30:00` for a period starting at 8:30 in the morning.
// Note that the seconds value is always :00, but it is appended for conformance to the RFC.
StartLocalTime *string `json:"start_local_time,omitempty" url:"start_local_time,omitempty"`
// The end time of a business hours period, specified in local time using partial-time
// RFC 3339 format. For example, `21:00:00` for a period ending at 9:00 in the evening.
// Note that the seconds value is always :00, but it is appended for conformance to the RFC.
EndLocalTime *string `json:"end_local_time,omitempty" url:"end_local_time,omitempty"`
// contains filtered or unexported fields
}
Represents a period of time during which a business location is open.
func (*BusinessHoursPeriod) GetDayOfWeek ¶
func (b *BusinessHoursPeriod) GetDayOfWeek() *DayOfWeek
func (*BusinessHoursPeriod) GetEndLocalTime ¶
func (b *BusinessHoursPeriod) GetEndLocalTime() *string
func (*BusinessHoursPeriod) GetExtraProperties ¶
func (b *BusinessHoursPeriod) GetExtraProperties() map[string]interface{}
func (*BusinessHoursPeriod) GetStartLocalTime ¶
func (b *BusinessHoursPeriod) GetStartLocalTime() *string
func (*BusinessHoursPeriod) String ¶
func (b *BusinessHoursPeriod) String() string
func (*BusinessHoursPeriod) UnmarshalJSON ¶
func (b *BusinessHoursPeriod) UnmarshalJSON(data []byte) error
type BuyNowPayLaterDetails ¶
type BuyNowPayLaterDetails struct {
// The brand used for the Buy Now Pay Later payment.
// The brand can be `AFTERPAY`, `CLEARPAY` or `UNKNOWN`.
Brand *string `json:"brand,omitempty" url:"brand,omitempty"`
// Details about an Afterpay payment. These details are only populated if the `brand` is
// `AFTERPAY`.
AfterpayDetails *AfterpayDetails `json:"afterpay_details,omitempty" url:"afterpay_details,omitempty"`
// Details about a Clearpay payment. These details are only populated if the `brand` is
// `CLEARPAY`.
ClearpayDetails *ClearpayDetails `json:"clearpay_details,omitempty" url:"clearpay_details,omitempty"`
// contains filtered or unexported fields
}
Additional details about a Buy Now Pay Later payment type.
func (*BuyNowPayLaterDetails) GetAfterpayDetails ¶
func (b *BuyNowPayLaterDetails) GetAfterpayDetails() *AfterpayDetails
func (*BuyNowPayLaterDetails) GetBrand ¶
func (b *BuyNowPayLaterDetails) GetBrand() *string
func (*BuyNowPayLaterDetails) GetClearpayDetails ¶
func (b *BuyNowPayLaterDetails) GetClearpayDetails() *ClearpayDetails
func (*BuyNowPayLaterDetails) GetExtraProperties ¶
func (b *BuyNowPayLaterDetails) GetExtraProperties() map[string]interface{}
func (*BuyNowPayLaterDetails) String ¶
func (b *BuyNowPayLaterDetails) String() string
func (*BuyNowPayLaterDetails) UnmarshalJSON ¶
func (b *BuyNowPayLaterDetails) UnmarshalJSON(data []byte) error
type CalculateLoyaltyPointsResponse ¶
type CalculateLoyaltyPointsResponse struct {
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// The number of points that the buyer can earn from the base loyalty program.
Points *int `json:"points,omitempty" url:"points,omitempty"`
// The number of points that the buyer can earn from a loyalty promotion. To be eligible
// to earn promotion points, the purchase must first qualify for program points. When `order_id`
// is not provided in the request, this value is always 0.
PromotionPoints *int `json:"promotion_points,omitempty" url:"promotion_points,omitempty"`
// contains filtered or unexported fields
}
Represents a [CalculateLoyaltyPoints](api-endpoint:Loyalty-CalculateLoyaltyPoints) response.
func (*CalculateLoyaltyPointsResponse) GetErrors ¶
func (c *CalculateLoyaltyPointsResponse) GetErrors() []*Error
func (*CalculateLoyaltyPointsResponse) GetExtraProperties ¶
func (c *CalculateLoyaltyPointsResponse) GetExtraProperties() map[string]interface{}
func (*CalculateLoyaltyPointsResponse) GetPoints ¶
func (c *CalculateLoyaltyPointsResponse) GetPoints() *int
func (*CalculateLoyaltyPointsResponse) GetPromotionPoints ¶
func (c *CalculateLoyaltyPointsResponse) GetPromotionPoints() *int
func (*CalculateLoyaltyPointsResponse) String ¶
func (c *CalculateLoyaltyPointsResponse) String() string
func (*CalculateLoyaltyPointsResponse) UnmarshalJSON ¶
func (c *CalculateLoyaltyPointsResponse) UnmarshalJSON(data []byte) error
type CalculateOrderRequest ¶
type CalculateOrderRequest struct {
// The order to be calculated. Expects the entire order, not a sparse update.
Order *Order `json:"order,omitempty" url:"-"`
// Identifies one or more loyalty reward tiers to apply during the order calculation.
// The discounts defined by the reward tiers are added to the order only to preview the
// effect of applying the specified rewards. The rewards do not correspond to actual
// redemptions; that is, no `reward`s are created. Therefore, the reward `id`s are
// random strings used only to reference the reward tier.
ProposedRewards []*OrderReward `json:"proposed_rewards,omitempty" url:"-"`
}
type CalculateOrderResponse ¶
type CalculateOrderResponse struct {
// The calculated version of the order provided in the request.
Order *Order `json:"order,omitempty" url:"order,omitempty"`
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
func (*CalculateOrderResponse) GetErrors ¶
func (c *CalculateOrderResponse) GetErrors() []*Error
func (*CalculateOrderResponse) GetExtraProperties ¶
func (c *CalculateOrderResponse) GetExtraProperties() map[string]interface{}
func (*CalculateOrderResponse) GetOrder ¶
func (c *CalculateOrderResponse) GetOrder() *Order
func (*CalculateOrderResponse) String ¶
func (c *CalculateOrderResponse) String() string
func (*CalculateOrderResponse) UnmarshalJSON ¶
func (c *CalculateOrderResponse) UnmarshalJSON(data []byte) error
type CancelBookingRequest ¶
type CancelBookingRequest struct {
// The ID of the [Booking](entity:Booking) object representing the to-be-cancelled booking.
BookingID string `json:"-" url:"-"`
// A unique key to make this request an idempotent operation.
IdempotencyKey *string `json:"idempotency_key,omitempty" url:"-"`
// The revision number for the booking used for optimistic concurrency.
BookingVersion *int `json:"booking_version,omitempty" url:"-"`
}
type CancelBookingResponse ¶
type CancelBookingResponse struct {
// The booking that was cancelled.
Booking *Booking `json:"booking,omitempty" url:"booking,omitempty"`
// Errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
func (*CancelBookingResponse) GetBooking ¶
func (c *CancelBookingResponse) GetBooking() *Booking
func (*CancelBookingResponse) GetErrors ¶
func (c *CancelBookingResponse) GetErrors() []*Error
func (*CancelBookingResponse) GetExtraProperties ¶
func (c *CancelBookingResponse) GetExtraProperties() map[string]interface{}
func (*CancelBookingResponse) String ¶
func (c *CancelBookingResponse) String() string
func (*CancelBookingResponse) UnmarshalJSON ¶
func (c *CancelBookingResponse) UnmarshalJSON(data []byte) error
type CancelInvoiceRequest ¶
type CancelInvoiceRequest struct {
// The ID of the [invoice](entity:Invoice) to cancel.
InvoiceID string `json:"-" url:"-"`
// The version of the [invoice](entity:Invoice) to cancel.
// If you do not know the version, you can call
// [GetInvoice](api-endpoint:Invoices-GetInvoice) or [ListInvoices](api-endpoint:Invoices-ListInvoices).
Version int `json:"version" url:"-"`
}
type CancelInvoiceResponse ¶
type CancelInvoiceResponse struct {
// The canceled invoice.
Invoice *Invoice `json:"invoice,omitempty" url:"invoice,omitempty"`
// Information about errors encountered during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
The response returned by the `CancelInvoice` request.
func (*CancelInvoiceResponse) GetErrors ¶
func (c *CancelInvoiceResponse) GetErrors() []*Error
func (*CancelInvoiceResponse) GetExtraProperties ¶
func (c *CancelInvoiceResponse) GetExtraProperties() map[string]interface{}
func (*CancelInvoiceResponse) GetInvoice ¶
func (c *CancelInvoiceResponse) GetInvoice() *Invoice
func (*CancelInvoiceResponse) String ¶
func (c *CancelInvoiceResponse) String() string
func (*CancelInvoiceResponse) UnmarshalJSON ¶
func (c *CancelInvoiceResponse) UnmarshalJSON(data []byte) error
type CancelLoyaltyPromotionResponse ¶
type CancelLoyaltyPromotionResponse struct {
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// The canceled loyalty promotion.
LoyaltyPromotion *LoyaltyPromotion `json:"loyalty_promotion,omitempty" url:"loyalty_promotion,omitempty"`
// contains filtered or unexported fields
}
Represents a [CancelLoyaltyPromotion](api-endpoint:Loyalty-CancelLoyaltyPromotion) response. Either `loyalty_promotion` or `errors` is present in the response.
func (*CancelLoyaltyPromotionResponse) GetErrors ¶
func (c *CancelLoyaltyPromotionResponse) GetErrors() []*Error
func (*CancelLoyaltyPromotionResponse) GetExtraProperties ¶
func (c *CancelLoyaltyPromotionResponse) GetExtraProperties() map[string]interface{}
func (*CancelLoyaltyPromotionResponse) GetLoyaltyPromotion ¶
func (c *CancelLoyaltyPromotionResponse) GetLoyaltyPromotion() *LoyaltyPromotion
func (*CancelLoyaltyPromotionResponse) String ¶
func (c *CancelLoyaltyPromotionResponse) String() string
func (*CancelLoyaltyPromotionResponse) UnmarshalJSON ¶
func (c *CancelLoyaltyPromotionResponse) UnmarshalJSON(data []byte) error
type CancelPaymentByIdempotencyKeyRequest ¶ added in v1.1.0
type CancelPaymentByIdempotencyKeyRequest struct {
// The `idempotency_key` identifying the payment to be canceled.
IdempotencyKey string `json:"idempotency_key" url:"-"`
}
type CancelPaymentByIdempotencyKeyResponse ¶
type CancelPaymentByIdempotencyKeyResponse struct {
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Defines the response returned by [CancelPaymentByIdempotencyKey](api-endpoint:Payments-CancelPaymentByIdempotencyKey). On success, `errors` is empty.
func (*CancelPaymentByIdempotencyKeyResponse) GetErrors ¶
func (c *CancelPaymentByIdempotencyKeyResponse) GetErrors() []*Error
func (*CancelPaymentByIdempotencyKeyResponse) GetExtraProperties ¶
func (c *CancelPaymentByIdempotencyKeyResponse) GetExtraProperties() map[string]interface{}
func (*CancelPaymentByIdempotencyKeyResponse) String ¶
func (c *CancelPaymentByIdempotencyKeyResponse) String() string
func (*CancelPaymentByIdempotencyKeyResponse) UnmarshalJSON ¶
func (c *CancelPaymentByIdempotencyKeyResponse) UnmarshalJSON(data []byte) error
type CancelPaymentResponse ¶
type CancelPaymentResponse struct {
// Information about errors encountered during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// The successfully canceled `Payment` object.
Payment *Payment `json:"payment,omitempty" url:"payment,omitempty"`
// contains filtered or unexported fields
}
Defines the response returned by [CancelPayment](api-endpoint:Payments-CancelPayment).
func (*CancelPaymentResponse) GetErrors ¶
func (c *CancelPaymentResponse) GetErrors() []*Error
func (*CancelPaymentResponse) GetExtraProperties ¶
func (c *CancelPaymentResponse) GetExtraProperties() map[string]interface{}
func (*CancelPaymentResponse) GetPayment ¶
func (c *CancelPaymentResponse) GetPayment() *Payment
func (*CancelPaymentResponse) String ¶
func (c *CancelPaymentResponse) String() string
func (*CancelPaymentResponse) UnmarshalJSON ¶
func (c *CancelPaymentResponse) UnmarshalJSON(data []byte) error
type CancelPaymentsRequest ¶ added in v1.2.0
type CancelPaymentsRequest struct {
// The ID of the payment to cancel.
PaymentID string `json:"-" url:"-"`
}
type CancelSubscriptionResponse ¶
type CancelSubscriptionResponse struct {
// Errors encountered during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// The specified subscription scheduled for cancellation according to the action created by the request.
Subscription *Subscription `json:"subscription,omitempty" url:"subscription,omitempty"`
// A list of a single `CANCEL` action scheduled for the subscription.
Actions []*SubscriptionAction `json:"actions,omitempty" url:"actions,omitempty"`
// contains filtered or unexported fields
}
Defines output parameters in a response from the [CancelSubscription](api-endpoint:Subscriptions-CancelSubscription) endpoint.
func (*CancelSubscriptionResponse) GetActions ¶
func (c *CancelSubscriptionResponse) GetActions() []*SubscriptionAction
func (*CancelSubscriptionResponse) GetErrors ¶
func (c *CancelSubscriptionResponse) GetErrors() []*Error
func (*CancelSubscriptionResponse) GetExtraProperties ¶
func (c *CancelSubscriptionResponse) GetExtraProperties() map[string]interface{}
func (*CancelSubscriptionResponse) GetSubscription ¶
func (c *CancelSubscriptionResponse) GetSubscription() *Subscription
func (*CancelSubscriptionResponse) String ¶
func (c *CancelSubscriptionResponse) String() string
func (*CancelSubscriptionResponse) UnmarshalJSON ¶
func (c *CancelSubscriptionResponse) UnmarshalJSON(data []byte) error
type CancelSubscriptionsRequest ¶ added in v1.2.0
type CancelSubscriptionsRequest struct {
// The ID of the subscription to cancel.
SubscriptionID string `json:"-" url:"-"`
}
type CancelTerminalActionResponse ¶
type CancelTerminalActionResponse struct {
// Information on errors encountered during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// The canceled `TerminalAction`
Action *TerminalAction `json:"action,omitempty" url:"action,omitempty"`
// contains filtered or unexported fields
}
func (*CancelTerminalActionResponse) GetAction ¶
func (c *CancelTerminalActionResponse) GetAction() *TerminalAction
func (*CancelTerminalActionResponse) GetErrors ¶
func (c *CancelTerminalActionResponse) GetErrors() []*Error
func (*CancelTerminalActionResponse) GetExtraProperties ¶
func (c *CancelTerminalActionResponse) GetExtraProperties() map[string]interface{}
func (*CancelTerminalActionResponse) String ¶
func (c *CancelTerminalActionResponse) String() string
func (*CancelTerminalActionResponse) UnmarshalJSON ¶
func (c *CancelTerminalActionResponse) UnmarshalJSON(data []byte) error
type CancelTerminalCheckoutResponse ¶
type CancelTerminalCheckoutResponse struct {
// Information about errors encountered during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// The canceled `TerminalCheckout`.
Checkout *TerminalCheckout `json:"checkout,omitempty" url:"checkout,omitempty"`
// contains filtered or unexported fields
}
func (*CancelTerminalCheckoutResponse) GetCheckout ¶
func (c *CancelTerminalCheckoutResponse) GetCheckout() *TerminalCheckout
func (*CancelTerminalCheckoutResponse) GetErrors ¶
func (c *CancelTerminalCheckoutResponse) GetErrors() []*Error
func (*CancelTerminalCheckoutResponse) GetExtraProperties ¶
func (c *CancelTerminalCheckoutResponse) GetExtraProperties() map[string]interface{}
func (*CancelTerminalCheckoutResponse) String ¶
func (c *CancelTerminalCheckoutResponse) String() string
func (*CancelTerminalCheckoutResponse) UnmarshalJSON ¶
func (c *CancelTerminalCheckoutResponse) UnmarshalJSON(data []byte) error
type CancelTerminalRefundResponse ¶
type CancelTerminalRefundResponse struct {
// Information about errors encountered during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// The updated `TerminalRefund`.
Refund *TerminalRefund `json:"refund,omitempty" url:"refund,omitempty"`
// contains filtered or unexported fields
}
func (*CancelTerminalRefundResponse) GetErrors ¶
func (c *CancelTerminalRefundResponse) GetErrors() []*Error
func (*CancelTerminalRefundResponse) GetExtraProperties ¶
func (c *CancelTerminalRefundResponse) GetExtraProperties() map[string]interface{}
func (*CancelTerminalRefundResponse) GetRefund ¶
func (c *CancelTerminalRefundResponse) GetRefund() *TerminalRefund
func (*CancelTerminalRefundResponse) String ¶
func (c *CancelTerminalRefundResponse) String() string
func (*CancelTerminalRefundResponse) UnmarshalJSON ¶
func (c *CancelTerminalRefundResponse) UnmarshalJSON(data []byte) error
type CaptureTransactionResponse ¶
type CaptureTransactionResponse struct {
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Defines the fields that are included in the response body of a request to the [CaptureTransaction](api-endpoint:Transactions-CaptureTransaction) endpoint.
func (*CaptureTransactionResponse) GetErrors ¶
func (c *CaptureTransactionResponse) GetErrors() []*Error
func (*CaptureTransactionResponse) GetExtraProperties ¶
func (c *CaptureTransactionResponse) GetExtraProperties() map[string]interface{}
func (*CaptureTransactionResponse) String ¶
func (c *CaptureTransactionResponse) String() string
func (*CaptureTransactionResponse) UnmarshalJSON ¶
func (c *CaptureTransactionResponse) UnmarshalJSON(data []byte) error
type Card ¶
type Card struct {
// Unique ID for this card. Generated by Square.
ID *string `json:"id,omitempty" url:"id,omitempty"`
// The card's brand.
// See [CardBrand](#type-cardbrand) for possible values
CardBrand *CardBrand `json:"card_brand,omitempty" url:"card_brand,omitempty"`
// The last 4 digits of the card number.
Last4 *string `json:"last_4,omitempty" url:"last_4,omitempty"`
// The expiration month of the associated card as an integer between 1 and 12.
ExpMonth *int64 `json:"exp_month,omitempty" url:"exp_month,omitempty"`
// The four-digit year of the card's expiration date.
ExpYear *int64 `json:"exp_year,omitempty" url:"exp_year,omitempty"`
// The name of the cardholder.
CardholderName *string `json:"cardholder_name,omitempty" url:"cardholder_name,omitempty"`
// The billing address for this card. `US` postal codes can be provided as a 5-digit zip code
// or 9-digit ZIP+4 (example: `12345-6789`). For a full list of field meanings by country, see
// [Working with Addresses](https://developer.squareup.com/docs/build-basics/common-data-types/working-with-addresses).
BillingAddress *Address `json:"billing_address,omitempty" url:"billing_address,omitempty"`
// Intended as a Square-assigned identifier, based
// on the card number, to identify the card across multiple locations within a
// single application.
Fingerprint *string `json:"fingerprint,omitempty" url:"fingerprint,omitempty"`
// **Required** The ID of a [customer](entity:Customer) to be associated with the card.
CustomerID *string `json:"customer_id,omitempty" url:"customer_id,omitempty"`
// The ID of the merchant associated with the card.
MerchantID *string `json:"merchant_id,omitempty" url:"merchant_id,omitempty"`
// An optional user-defined reference ID that associates this card with
// another entity in an external system. For example, a customer ID from an
// external customer management system.
ReferenceID *string `json:"reference_id,omitempty" url:"reference_id,omitempty"`
// Indicates whether or not a card can be used for payments.
Enabled *bool `json:"enabled,omitempty" url:"enabled,omitempty"`
// The type of the card.
// The Card object includes this field only in response to Payments API calls.
// See [CardType](#type-cardtype) for possible values
CardType *CardType `json:"card_type,omitempty" url:"card_type,omitempty"`
// Indicates whether the card is prepaid or not.
// See [CardPrepaidType](#type-cardprepaidtype) for possible values
PrepaidType *CardPrepaidType `json:"prepaid_type,omitempty" url:"prepaid_type,omitempty"`
// The first six digits of the card number, known as the Bank Identification Number (BIN). Only the Payments API
// returns this field.
Bin *string `json:"bin,omitempty" url:"bin,omitempty"`
// Current version number of the card. Increments with each card update. Requests to update an
// existing Card object will be rejected unless the version in the request matches the current
// version for the Card.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// The card's co-brand if available. For example, an Afterpay virtual card would have a
// co-brand of AFTERPAY.
// See [CardCoBrand](#type-cardcobrand) for possible values
CardCoBrand *CardCoBrand `json:"card_co_brand,omitempty" url:"card_co_brand,omitempty"`
// An alert from the issuing bank about the card status. Alerts can indicate whether
// future charges to the card are likely to fail. For more information, see
// [Manage Card on File Declines](https://developer.squareup.com/docs/cards-api/manage-card-on-file-declines).
//
// This field is present only if there's an active issuer alert.
// See [IssuerAlert](#type-issueralert) for possible values
IssuerAlert *CardIssuerAlert `json:"issuer_alert,omitempty" url:"issuer_alert,omitempty"`
// The timestamp of when the current issuer alert was received and processed, in
// RFC 3339 format.
//
// This field is present only if there's an active issuer alert.
IssuerAlertAt *string `json:"issuer_alert_at,omitempty" url:"issuer_alert_at,omitempty"`
// Indicates whether the card is linked to a Health Savings Account (HSA) or Flexible
// Spending Account (FSA), based on the card BIN.
HsaFsa *bool `json:"hsa_fsa,omitempty" url:"hsa_fsa,omitempty"`
// contains filtered or unexported fields
}
Represents the payment details of a card to be used for payments. These details are determined by the payment token generated by Web Payments SDK.
func (*Card) GetBillingAddress ¶
func (*Card) GetCardBrand ¶
func (*Card) GetCardCoBrand ¶
func (c *Card) GetCardCoBrand() *CardCoBrand
func (*Card) GetCardType ¶
func (*Card) GetCardholderName ¶
func (*Card) GetCustomerID ¶
func (*Card) GetEnabled ¶
func (*Card) GetExpMonth ¶
func (*Card) GetExpYear ¶
func (*Card) GetExtraProperties ¶
func (*Card) GetFingerprint ¶
func (*Card) GetIssuerAlertAt ¶ added in v1.3.0
func (*Card) GetMerchantID ¶
func (*Card) GetPrepaidType ¶
func (c *Card) GetPrepaidType() *CardPrepaidType
func (*Card) GetReferenceID ¶
func (*Card) GetVersion ¶
func (*Card) UnmarshalJSON ¶
type CardBrand ¶
type CardBrand string
Indicates a card's brand, such as `VISA` or `MASTERCARD`.
const ( CardBrandOtherBrand CardBrand = "OTHER_BRAND" CardBrandVisa CardBrand = "VISA" CardBrandMastercard CardBrand = "MASTERCARD" CardBrandAmericanExpress CardBrand = "AMERICAN_EXPRESS" CardBrandDiscover CardBrand = "DISCOVER" CardBrandDiscoverDiners CardBrand = "DISCOVER_DINERS" CardBrandJcb CardBrand = "JCB" CardBrandChinaUnionpay CardBrand = "CHINA_UNIONPAY" CardBrandSquareGiftCard CardBrand = "SQUARE_GIFT_CARD" CardBrandSquareCapitalCard CardBrand = "SQUARE_CAPITAL_CARD" CardBrandInterac CardBrand = "INTERAC" CardBrandEftpos CardBrand = "EFTPOS" CardBrandFelica CardBrand = "FELICA" CardBrandEbt CardBrand = "EBT" )
func NewCardBrandFromString ¶
type CardCoBrand ¶
type CardCoBrand string
Indicates the brand for a co-branded card.
const ( CardCoBrandUnknown CardCoBrand = "UNKNOWN" CardCoBrandAfterpay CardCoBrand = "AFTERPAY" CardCoBrandClearpay CardCoBrand = "CLEARPAY" )
func NewCardCoBrandFromString ¶
func NewCardCoBrandFromString(s string) (CardCoBrand, error)
func (CardCoBrand) Ptr ¶
func (c CardCoBrand) Ptr() *CardCoBrand
type CardIssuerAlert ¶ added in v1.3.0
type CardIssuerAlert = string
Indicates the type of issuer alert for a [card on file](entity:Card).
type CardPaymentDetails ¶
type CardPaymentDetails struct {
// The card payment's current state. The state can be AUTHORIZED, CAPTURED, VOIDED, or
// FAILED.
Status *string `json:"status,omitempty" url:"status,omitempty"`
// The credit card's non-confidential details.
Card *Card `json:"card,omitempty" url:"card,omitempty"`
// The method used to enter the card's details for the payment. The method can be
// `KEYED`, `SWIPED`, `EMV`, `ON_FILE`, or `CONTACTLESS`.
EntryMethod *string `json:"entry_method,omitempty" url:"entry_method,omitempty"`
// The status code returned from the Card Verification Value (CVV) check. The code can be
// `CVV_ACCEPTED`, `CVV_REJECTED`, or `CVV_NOT_CHECKED`.
CvvStatus *string `json:"cvv_status,omitempty" url:"cvv_status,omitempty"`
// The status code returned from the Address Verification System (AVS) check. The code can be
// `AVS_ACCEPTED`, `AVS_REJECTED`, or `AVS_NOT_CHECKED`.
AvsStatus *string `json:"avs_status,omitempty" url:"avs_status,omitempty"`
// The status code returned by the card issuer that describes the payment's
// authorization status.
AuthResultCode *string `json:"auth_result_code,omitempty" url:"auth_result_code,omitempty"`
// For EMV payments, the application ID identifies the EMV application used for the payment.
ApplicationIdentifier *string `json:"application_identifier,omitempty" url:"application_identifier,omitempty"`
// For EMV payments, the human-readable name of the EMV application used for the payment.
ApplicationName *string `json:"application_name,omitempty" url:"application_name,omitempty"`
// For EMV payments, the cryptogram generated for the payment.
ApplicationCryptogram *string `json:"application_cryptogram,omitempty" url:"application_cryptogram,omitempty"`
// For EMV payments, the method used to verify the cardholder's identity. The method can be
// `PIN`, `SIGNATURE`, `PIN_AND_SIGNATURE`, `ON_DEVICE`, or `NONE`.
VerificationMethod *string `json:"verification_method,omitempty" url:"verification_method,omitempty"`
// For EMV payments, the results of the cardholder verification. The result can be
// `SUCCESS`, `FAILURE`, or `UNKNOWN`.
VerificationResults *string `json:"verification_results,omitempty" url:"verification_results,omitempty"`
// The statement description sent to the card networks.
//
// Note: The actual statement description varies and is likely to be truncated and appended with
// additional information on a per issuer basis.
StatementDescription *string `json:"statement_description,omitempty" url:"statement_description,omitempty"`
// __Deprecated__: Use `Payment.device_details` instead.
//
// Details about the device that took the payment.
DeviceDetails *DeviceDetails `json:"device_details,omitempty" url:"device_details,omitempty"`
// The timeline for card payments.
CardPaymentTimeline *CardPaymentTimeline `json:"card_payment_timeline,omitempty" url:"card_payment_timeline,omitempty"`
// Whether the card must be physically present for the payment to
// be refunded. If set to `true`, the card must be present.
RefundRequiresCardPresence *bool `json:"refund_requires_card_presence,omitempty" url:"refund_requires_card_presence,omitempty"`
// Information about errors encountered during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Reflects the current status of a card payment. Contains only non-confidential information.
func (*CardPaymentDetails) GetApplicationCryptogram ¶
func (c *CardPaymentDetails) GetApplicationCryptogram() *string
func (*CardPaymentDetails) GetApplicationIdentifier ¶
func (c *CardPaymentDetails) GetApplicationIdentifier() *string
func (*CardPaymentDetails) GetApplicationName ¶
func (c *CardPaymentDetails) GetApplicationName() *string
func (*CardPaymentDetails) GetAuthResultCode ¶
func (c *CardPaymentDetails) GetAuthResultCode() *string
func (*CardPaymentDetails) GetAvsStatus ¶
func (c *CardPaymentDetails) GetAvsStatus() *string
func (*CardPaymentDetails) GetCard ¶
func (c *CardPaymentDetails) GetCard() *Card
func (*CardPaymentDetails) GetCardPaymentTimeline ¶
func (c *CardPaymentDetails) GetCardPaymentTimeline() *CardPaymentTimeline
func (*CardPaymentDetails) GetCvvStatus ¶
func (c *CardPaymentDetails) GetCvvStatus() *string
func (*CardPaymentDetails) GetDeviceDetails ¶
func (c *CardPaymentDetails) GetDeviceDetails() *DeviceDetails
func (*CardPaymentDetails) GetEntryMethod ¶
func (c *CardPaymentDetails) GetEntryMethod() *string
func (*CardPaymentDetails) GetErrors ¶
func (c *CardPaymentDetails) GetErrors() []*Error
func (*CardPaymentDetails) GetExtraProperties ¶
func (c *CardPaymentDetails) GetExtraProperties() map[string]interface{}
func (*CardPaymentDetails) GetRefundRequiresCardPresence ¶
func (c *CardPaymentDetails) GetRefundRequiresCardPresence() *bool
func (*CardPaymentDetails) GetStatementDescription ¶
func (c *CardPaymentDetails) GetStatementDescription() *string
func (*CardPaymentDetails) GetStatus ¶
func (c *CardPaymentDetails) GetStatus() *string
func (*CardPaymentDetails) GetVerificationMethod ¶
func (c *CardPaymentDetails) GetVerificationMethod() *string
func (*CardPaymentDetails) GetVerificationResults ¶
func (c *CardPaymentDetails) GetVerificationResults() *string
func (*CardPaymentDetails) String ¶
func (c *CardPaymentDetails) String() string
func (*CardPaymentDetails) UnmarshalJSON ¶
func (c *CardPaymentDetails) UnmarshalJSON(data []byte) error
type CardPaymentTimeline ¶
type CardPaymentTimeline struct {
// The timestamp when the payment was authorized, in RFC 3339 format.
AuthorizedAt *string `json:"authorized_at,omitempty" url:"authorized_at,omitempty"`
// The timestamp when the payment was captured, in RFC 3339 format.
CapturedAt *string `json:"captured_at,omitempty" url:"captured_at,omitempty"`
// The timestamp when the payment was voided, in RFC 3339 format.
VoidedAt *string `json:"voided_at,omitempty" url:"voided_at,omitempty"`
// contains filtered or unexported fields
}
The timeline for card payments.
func (*CardPaymentTimeline) GetAuthorizedAt ¶
func (c *CardPaymentTimeline) GetAuthorizedAt() *string
func (*CardPaymentTimeline) GetCapturedAt ¶
func (c *CardPaymentTimeline) GetCapturedAt() *string
func (*CardPaymentTimeline) GetExtraProperties ¶
func (c *CardPaymentTimeline) GetExtraProperties() map[string]interface{}
func (*CardPaymentTimeline) GetVoidedAt ¶
func (c *CardPaymentTimeline) GetVoidedAt() *string
func (*CardPaymentTimeline) String ¶
func (c *CardPaymentTimeline) String() string
func (*CardPaymentTimeline) UnmarshalJSON ¶
func (c *CardPaymentTimeline) UnmarshalJSON(data []byte) error
type CardPrepaidType ¶
type CardPrepaidType string
Indicates a card's prepaid type, such as `NOT_PREPAID` or `PREPAID`.
const ( CardPrepaidTypeUnknownPrepaidType CardPrepaidType = "UNKNOWN_PREPAID_TYPE" CardPrepaidTypeNotPrepaid CardPrepaidType = "NOT_PREPAID" CardPrepaidTypePrepaid CardPrepaidType = "PREPAID" )
func NewCardPrepaidTypeFromString ¶
func NewCardPrepaidTypeFromString(s string) (CardPrepaidType, error)
func (CardPrepaidType) Ptr ¶
func (c CardPrepaidType) Ptr() *CardPrepaidType
type CardType ¶
type CardType string
Indicates a card's type, such as `CREDIT` or `DEBIT`.
func NewCardTypeFromString ¶
type CardsDisableRequest ¶
type CardsDisableRequest = DisableCardsRequest
CardsDisableRequest is an alias for DisableCardsRequest.
type CardsGetRequest ¶
type CardsGetRequest = GetCardsRequest
CardsGetRequest is an alias for GetCardsRequest.
type CardsListRequest ¶
type CardsListRequest = ListCardsRequest
CardsListRequest is an alias for ListCardsRequest.
type CashAppDetails ¶
type CashAppDetails struct {
// The name of the Cash App account holder.
BuyerFullName *string `json:"buyer_full_name,omitempty" url:"buyer_full_name,omitempty"`
// The country of the Cash App account holder, in ISO 3166-1-alpha-2 format.
//
// For possible values, see [Country](entity:Country).
BuyerCountryCode *string `json:"buyer_country_code,omitempty" url:"buyer_country_code,omitempty"`
// $Cashtag of the Cash App account holder.
BuyerCashtag *string `json:"buyer_cashtag,omitempty" url:"buyer_cashtag,omitempty"`
// contains filtered or unexported fields
}
Additional details about `WALLET` type payments with the `brand` of `CASH_APP`.
func (*CashAppDetails) GetBuyerCashtag ¶
func (c *CashAppDetails) GetBuyerCashtag() *string
func (*CashAppDetails) GetBuyerCountryCode ¶
func (c *CashAppDetails) GetBuyerCountryCode() *string
func (*CashAppDetails) GetBuyerFullName ¶
func (c *CashAppDetails) GetBuyerFullName() *string
func (*CashAppDetails) GetExtraProperties ¶
func (c *CashAppDetails) GetExtraProperties() map[string]interface{}
func (*CashAppDetails) String ¶
func (c *CashAppDetails) String() string
func (*CashAppDetails) UnmarshalJSON ¶
func (c *CashAppDetails) UnmarshalJSON(data []byte) error
type CashDrawerDevice ¶
type CashDrawerDevice struct {
// The device Square-issued ID
ID *string `json:"id,omitempty" url:"id,omitempty"`
// The device merchant-specified name.
Name *string `json:"name,omitempty" url:"name,omitempty"`
// contains filtered or unexported fields
}
func (*CashDrawerDevice) GetExtraProperties ¶
func (c *CashDrawerDevice) GetExtraProperties() map[string]interface{}
func (*CashDrawerDevice) GetID ¶
func (c *CashDrawerDevice) GetID() *string
func (*CashDrawerDevice) GetName ¶
func (c *CashDrawerDevice) GetName() *string
func (*CashDrawerDevice) String ¶
func (c *CashDrawerDevice) String() string
func (*CashDrawerDevice) UnmarshalJSON ¶
func (c *CashDrawerDevice) UnmarshalJSON(data []byte) error
type CashDrawerEventType ¶
type CashDrawerEventType string
The types of events on a CashDrawerShift. Each event type represents an employee action on the actual cash drawer represented by a CashDrawerShift.
const ( CashDrawerEventTypeNoSale CashDrawerEventType = "NO_SALE" CashDrawerEventTypeCashTenderPayment CashDrawerEventType = "CASH_TENDER_PAYMENT" CashDrawerEventTypeOtherTenderPayment CashDrawerEventType = "OTHER_TENDER_PAYMENT" CashDrawerEventTypeCashTenderCancelledPayment CashDrawerEventType = "CASH_TENDER_CANCELLED_PAYMENT" CashDrawerEventTypeOtherTenderCancelledPayment CashDrawerEventType = "OTHER_TENDER_CANCELLED_PAYMENT" CashDrawerEventTypeCashTenderRefund CashDrawerEventType = "CASH_TENDER_REFUND" CashDrawerEventTypeOtherTenderRefund CashDrawerEventType = "OTHER_TENDER_REFUND" CashDrawerEventTypePaidIn CashDrawerEventType = "PAID_IN" CashDrawerEventTypePaidOut CashDrawerEventType = "PAID_OUT" )
func NewCashDrawerEventTypeFromString ¶
func NewCashDrawerEventTypeFromString(s string) (CashDrawerEventType, error)
func (CashDrawerEventType) Ptr ¶
func (c CashDrawerEventType) Ptr() *CashDrawerEventType
type CashDrawerShift ¶
type CashDrawerShift struct {
// The shift unique ID.
ID *string `json:"id,omitempty" url:"id,omitempty"`
// The shift current state.
// See [CashDrawerShiftState](#type-cashdrawershiftstate) for possible values
State *CashDrawerShiftState `json:"state,omitempty" url:"state,omitempty"`
// The time when the shift began, in ISO 8601 format.
OpenedAt *string `json:"opened_at,omitempty" url:"opened_at,omitempty"`
// The time when the shift ended, in ISO 8601 format.
EndedAt *string `json:"ended_at,omitempty" url:"ended_at,omitempty"`
// The time when the shift was closed, in ISO 8601 format.
ClosedAt *string `json:"closed_at,omitempty" url:"closed_at,omitempty"`
// The free-form text description of a cash drawer by an employee.
Description *string `json:"description,omitempty" url:"description,omitempty"`
// The amount of money in the cash drawer at the start of the shift.
// The amount must be greater than or equal to zero.
OpenedCashMoney *Money `json:"opened_cash_money,omitempty" url:"opened_cash_money,omitempty"`
// The amount of money added to the cash drawer from cash payments.
// This is computed by summing all events with the types CASH_TENDER_PAYMENT and
// CASH_TENDER_CANCELED_PAYMENT. The amount is always greater than or equal to
// zero.
CashPaymentMoney *Money `json:"cash_payment_money,omitempty" url:"cash_payment_money,omitempty"`
// The amount of money removed from the cash drawer from cash refunds.
// It is computed by summing the events of type CASH_TENDER_REFUND. The amount
// is always greater than or equal to zero.
CashRefundsMoney *Money `json:"cash_refunds_money,omitempty" url:"cash_refunds_money,omitempty"`
// The amount of money added to the cash drawer for reasons other than cash
// payments. It is computed by summing the events of type PAID_IN. The amount is
// always greater than or equal to zero.
CashPaidInMoney *Money `json:"cash_paid_in_money,omitempty" url:"cash_paid_in_money,omitempty"`
// The amount of money removed from the cash drawer for reasons other than
// cash refunds. It is computed by summing the events of type PAID_OUT. The amount
// is always greater than or equal to zero.
CashPaidOutMoney *Money `json:"cash_paid_out_money,omitempty" url:"cash_paid_out_money,omitempty"`
// The amount of money that should be in the cash drawer at the end of the
// shift, based on the shift's other money amounts.
// This can be negative if employees have not correctly recorded all the events
// on the cash drawer.
// cash_paid_out_money is a summation of amounts from cash_payment_money (zero
// or positive), cash_refunds_money (zero or negative), cash_paid_in_money (zero
// or positive), and cash_paid_out_money (zero or negative) event types.
ExpectedCashMoney *Money `json:"expected_cash_money,omitempty" url:"expected_cash_money,omitempty"`
// The amount of money found in the cash drawer at the end of the shift
// by an auditing employee. The amount should be positive.
ClosedCashMoney *Money `json:"closed_cash_money,omitempty" url:"closed_cash_money,omitempty"`
// The device running Square Point of Sale that was connected to the cash drawer.
Device *CashDrawerDevice `json:"device,omitempty" url:"device,omitempty"`
// The shift start time in RFC 3339 format.
CreatedAt *string `json:"created_at,omitempty" url:"created_at,omitempty"`
// The shift updated at time in RFC 3339 format.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The ID of the location the cash drawer shift belongs to.
LocationID *string `json:"location_id,omitempty" url:"location_id,omitempty"`
// The IDs of all team members that were logged into Square Point of Sale at any
// point while the cash drawer shift was open.
TeamMemberIDs []string `json:"team_member_ids,omitempty" url:"team_member_ids,omitempty"`
// The ID of the team member that started the cash drawer shift.
OpeningTeamMemberID *string `json:"opening_team_member_id,omitempty" url:"opening_team_member_id,omitempty"`
// The ID of the team member that ended the cash drawer shift.
EndingTeamMemberID *string `json:"ending_team_member_id,omitempty" url:"ending_team_member_id,omitempty"`
// The ID of the team member that closed the cash drawer shift by auditing
// the cash drawer contents.
ClosingTeamMemberID *string `json:"closing_team_member_id,omitempty" url:"closing_team_member_id,omitempty"`
// contains filtered or unexported fields
}
This model gives the details of a cash drawer shift. The cash_payment_money, cash_refund_money, cash_paid_in_money, and cash_paid_out_money fields are all computed by summing their respective event types.
func (*CashDrawerShift) GetCashPaidInMoney ¶
func (c *CashDrawerShift) GetCashPaidInMoney() *Money
func (*CashDrawerShift) GetCashPaidOutMoney ¶
func (c *CashDrawerShift) GetCashPaidOutMoney() *Money
func (*CashDrawerShift) GetCashPaymentMoney ¶
func (c *CashDrawerShift) GetCashPaymentMoney() *Money
func (*CashDrawerShift) GetCashRefundsMoney ¶
func (c *CashDrawerShift) GetCashRefundsMoney() *Money
func (*CashDrawerShift) GetClosedAt ¶
func (c *CashDrawerShift) GetClosedAt() *string
func (*CashDrawerShift) GetClosedCashMoney ¶
func (c *CashDrawerShift) GetClosedCashMoney() *Money
func (*CashDrawerShift) GetClosingTeamMemberID ¶
func (c *CashDrawerShift) GetClosingTeamMemberID() *string
func (*CashDrawerShift) GetCreatedAt ¶
func (c *CashDrawerShift) GetCreatedAt() *string
func (*CashDrawerShift) GetDescription ¶
func (c *CashDrawerShift) GetDescription() *string
func (*CashDrawerShift) GetDevice ¶
func (c *CashDrawerShift) GetDevice() *CashDrawerDevice
func (*CashDrawerShift) GetEndedAt ¶
func (c *CashDrawerShift) GetEndedAt() *string
func (*CashDrawerShift) GetEndingTeamMemberID ¶
func (c *CashDrawerShift) GetEndingTeamMemberID() *string
func (*CashDrawerShift) GetExpectedCashMoney ¶
func (c *CashDrawerShift) GetExpectedCashMoney() *Money
func (*CashDrawerShift) GetExtraProperties ¶
func (c *CashDrawerShift) GetExtraProperties() map[string]interface{}
func (*CashDrawerShift) GetID ¶
func (c *CashDrawerShift) GetID() *string
func (*CashDrawerShift) GetLocationID ¶
func (c *CashDrawerShift) GetLocationID() *string
func (*CashDrawerShift) GetOpenedAt ¶
func (c *CashDrawerShift) GetOpenedAt() *string
func (*CashDrawerShift) GetOpenedCashMoney ¶
func (c *CashDrawerShift) GetOpenedCashMoney() *Money
func (*CashDrawerShift) GetOpeningTeamMemberID ¶
func (c *CashDrawerShift) GetOpeningTeamMemberID() *string
func (*CashDrawerShift) GetState ¶
func (c *CashDrawerShift) GetState() *CashDrawerShiftState
func (*CashDrawerShift) GetTeamMemberIDs ¶
func (c *CashDrawerShift) GetTeamMemberIDs() []string
func (*CashDrawerShift) GetUpdatedAt ¶
func (c *CashDrawerShift) GetUpdatedAt() *string
func (*CashDrawerShift) String ¶
func (c *CashDrawerShift) String() string
func (*CashDrawerShift) UnmarshalJSON ¶
func (c *CashDrawerShift) UnmarshalJSON(data []byte) error
type CashDrawerShiftEvent ¶
type CashDrawerShiftEvent struct {
// The unique ID of the event.
ID *string `json:"id,omitempty" url:"id,omitempty"`
// The type of cash drawer shift event.
// See [CashDrawerEventType](#type-cashdrawereventtype) for possible values
EventType *CashDrawerEventType `json:"event_type,omitempty" url:"event_type,omitempty"`
// The amount of money that was added to or removed from the cash drawer
// in the event. The amount can be positive (for added money)
// or zero (for other tender type payments). The addition or removal of money can be determined by
// by the event type.
EventMoney *Money `json:"event_money,omitempty" url:"event_money,omitempty"`
// The event time in RFC 3339 format.
CreatedAt *string `json:"created_at,omitempty" url:"created_at,omitempty"`
// An optional description of the event, entered by the employee that
// created the event.
Description *string `json:"description,omitempty" url:"description,omitempty"`
// The ID of the team member that created the event.
TeamMemberID *string `json:"team_member_id,omitempty" url:"team_member_id,omitempty"`
// contains filtered or unexported fields
}
func (*CashDrawerShiftEvent) GetCreatedAt ¶
func (c *CashDrawerShiftEvent) GetCreatedAt() *string
func (*CashDrawerShiftEvent) GetDescription ¶
func (c *CashDrawerShiftEvent) GetDescription() *string
func (*CashDrawerShiftEvent) GetEventMoney ¶
func (c *CashDrawerShiftEvent) GetEventMoney() *Money
func (*CashDrawerShiftEvent) GetEventType ¶
func (c *CashDrawerShiftEvent) GetEventType() *CashDrawerEventType
func (*CashDrawerShiftEvent) GetExtraProperties ¶
func (c *CashDrawerShiftEvent) GetExtraProperties() map[string]interface{}
func (*CashDrawerShiftEvent) GetID ¶
func (c *CashDrawerShiftEvent) GetID() *string
func (*CashDrawerShiftEvent) GetTeamMemberID ¶
func (c *CashDrawerShiftEvent) GetTeamMemberID() *string
func (*CashDrawerShiftEvent) String ¶
func (c *CashDrawerShiftEvent) String() string
func (*CashDrawerShiftEvent) UnmarshalJSON ¶
func (c *CashDrawerShiftEvent) UnmarshalJSON(data []byte) error
type CashDrawerShiftState ¶
type CashDrawerShiftState string
The current state of a cash drawer shift.
const ( CashDrawerShiftStateOpen CashDrawerShiftState = "OPEN" CashDrawerShiftStateEnded CashDrawerShiftState = "ENDED" CashDrawerShiftStateClosed CashDrawerShiftState = "CLOSED" )
func NewCashDrawerShiftStateFromString ¶
func NewCashDrawerShiftStateFromString(s string) (CashDrawerShiftState, error)
func (CashDrawerShiftState) Ptr ¶
func (c CashDrawerShiftState) Ptr() *CashDrawerShiftState
type CashDrawerShiftSummary ¶
type CashDrawerShiftSummary struct {
// The shift unique ID.
ID *string `json:"id,omitempty" url:"id,omitempty"`
// The shift current state.
// See [CashDrawerShiftState](#type-cashdrawershiftstate) for possible values
State *CashDrawerShiftState `json:"state,omitempty" url:"state,omitempty"`
// The shift start time in ISO 8601 format.
OpenedAt *string `json:"opened_at,omitempty" url:"opened_at,omitempty"`
// The shift end time in ISO 8601 format.
EndedAt *string `json:"ended_at,omitempty" url:"ended_at,omitempty"`
// The shift close time in ISO 8601 format.
ClosedAt *string `json:"closed_at,omitempty" url:"closed_at,omitempty"`
// An employee free-text description of a cash drawer shift.
Description *string `json:"description,omitempty" url:"description,omitempty"`
// The amount of money in the cash drawer at the start of the shift. This
// must be a positive amount.
OpenedCashMoney *Money `json:"opened_cash_money,omitempty" url:"opened_cash_money,omitempty"`
// The amount of money that should be in the cash drawer at the end of the
// shift, based on the cash drawer events on the shift.
// The amount is correct if all shift employees accurately recorded their
// cash drawer shift events. Unrecorded events and events with the wrong amount
// result in an incorrect expected_cash_money amount that can be negative.
ExpectedCashMoney *Money `json:"expected_cash_money,omitempty" url:"expected_cash_money,omitempty"`
// The amount of money found in the cash drawer at the end of the shift by
// an auditing employee. The amount must be greater than or equal to zero.
ClosedCashMoney *Money `json:"closed_cash_money,omitempty" url:"closed_cash_money,omitempty"`
// The shift start time in RFC 3339 format.
CreatedAt *string `json:"created_at,omitempty" url:"created_at,omitempty"`
// The shift updated at time in RFC 3339 format.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The ID of the location the cash drawer shift belongs to.
LocationID *string `json:"location_id,omitempty" url:"location_id,omitempty"`
// contains filtered or unexported fields
}
The summary of a closed cash drawer shift. This model contains only the money counted to start a cash drawer shift, counted at the end of the shift, and the amount that should be in the drawer at shift end based on summing all cash drawer shift events.
func (*CashDrawerShiftSummary) GetClosedAt ¶
func (c *CashDrawerShiftSummary) GetClosedAt() *string
func (*CashDrawerShiftSummary) GetClosedCashMoney ¶
func (c *CashDrawerShiftSummary) GetClosedCashMoney() *Money
func (*CashDrawerShiftSummary) GetCreatedAt ¶
func (c *CashDrawerShiftSummary) GetCreatedAt() *string
func (*CashDrawerShiftSummary) GetDescription ¶
func (c *CashDrawerShiftSummary) GetDescription() *string
func (*CashDrawerShiftSummary) GetEndedAt ¶
func (c *CashDrawerShiftSummary) GetEndedAt() *string
func (*CashDrawerShiftSummary) GetExpectedCashMoney ¶
func (c *CashDrawerShiftSummary) GetExpectedCashMoney() *Money
func (*CashDrawerShiftSummary) GetExtraProperties ¶
func (c *CashDrawerShiftSummary) GetExtraProperties() map[string]interface{}
func (*CashDrawerShiftSummary) GetID ¶
func (c *CashDrawerShiftSummary) GetID() *string
func (*CashDrawerShiftSummary) GetLocationID ¶
func (c *CashDrawerShiftSummary) GetLocationID() *string
func (*CashDrawerShiftSummary) GetOpenedAt ¶
func (c *CashDrawerShiftSummary) GetOpenedAt() *string
func (*CashDrawerShiftSummary) GetOpenedCashMoney ¶
func (c *CashDrawerShiftSummary) GetOpenedCashMoney() *Money
func (*CashDrawerShiftSummary) GetState ¶
func (c *CashDrawerShiftSummary) GetState() *CashDrawerShiftState
func (*CashDrawerShiftSummary) GetUpdatedAt ¶
func (c *CashDrawerShiftSummary) GetUpdatedAt() *string
func (*CashDrawerShiftSummary) String ¶
func (c *CashDrawerShiftSummary) String() string
func (*CashDrawerShiftSummary) UnmarshalJSON ¶
func (c *CashDrawerShiftSummary) UnmarshalJSON(data []byte) error
type CashPaymentDetails ¶
type CashPaymentDetails struct {
// The amount and currency of the money supplied by the buyer.
BuyerSuppliedMoney *Money `json:"buyer_supplied_money,omitempty" url:"buyer_supplied_money,omitempty"`
// The amount of change due back to the buyer.
// This read-only field is calculated
// from the `amount_money` and `buyer_supplied_money` fields.
ChangeBackMoney *Money `json:"change_back_money,omitempty" url:"change_back_money,omitempty"`
// contains filtered or unexported fields
}
Stores details about a cash payment. Contains only non-confidential information. For more information, see [Take Cash Payments](https://developer.squareup.com/docs/payments-api/take-payments/cash-payments).
func (*CashPaymentDetails) GetBuyerSuppliedMoney ¶
func (c *CashPaymentDetails) GetBuyerSuppliedMoney() *Money
func (*CashPaymentDetails) GetChangeBackMoney ¶
func (c *CashPaymentDetails) GetChangeBackMoney() *Money
func (*CashPaymentDetails) GetExtraProperties ¶
func (c *CashPaymentDetails) GetExtraProperties() map[string]interface{}
func (*CashPaymentDetails) String ¶
func (c *CashPaymentDetails) String() string
func (*CashPaymentDetails) UnmarshalJSON ¶
func (c *CashPaymentDetails) UnmarshalJSON(data []byte) error
type CatalogAvailabilityPeriod ¶ added in v1.4.0
type CatalogAvailabilityPeriod struct {
// The start time of an availability period, specified in local time using partial-time
// RFC 3339 format. For example, `8:30:00` for a period starting at 8:30 in the morning.
// Note that the seconds value is always :00, but it is appended for conformance to the RFC.
StartLocalTime *string `json:"start_local_time,omitempty" url:"start_local_time,omitempty"`
// The end time of an availability period, specified in local time using partial-time
// RFC 3339 format. For example, `21:00:00` for a period ending at 9:00 in the evening.
// Note that the seconds value is always :00, but it is appended for conformance to the RFC.
EndLocalTime *string `json:"end_local_time,omitempty" url:"end_local_time,omitempty"`
// The day of the week for this availability period.
// See [DayOfWeek](#type-dayofweek) for possible values
DayOfWeek *DayOfWeek `json:"day_of_week,omitempty" url:"day_of_week,omitempty"`
// contains filtered or unexported fields
}
Represents a time period of availability.
func (*CatalogAvailabilityPeriod) GetDayOfWeek ¶ added in v1.4.0
func (c *CatalogAvailabilityPeriod) GetDayOfWeek() *DayOfWeek
func (*CatalogAvailabilityPeriod) GetEndLocalTime ¶ added in v1.4.0
func (c *CatalogAvailabilityPeriod) GetEndLocalTime() *string
func (*CatalogAvailabilityPeriod) GetExtraProperties ¶ added in v1.4.0
func (c *CatalogAvailabilityPeriod) GetExtraProperties() map[string]interface{}
func (*CatalogAvailabilityPeriod) GetStartLocalTime ¶ added in v1.4.0
func (c *CatalogAvailabilityPeriod) GetStartLocalTime() *string
func (*CatalogAvailabilityPeriod) String ¶ added in v1.4.0
func (c *CatalogAvailabilityPeriod) String() string
func (*CatalogAvailabilityPeriod) UnmarshalJSON ¶ added in v1.4.0
func (c *CatalogAvailabilityPeriod) UnmarshalJSON(data []byte) error
type CatalogCategory ¶
type CatalogCategory struct {
// The category name. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points.
Name *string `json:"name,omitempty" url:"name,omitempty"`
// The IDs of images associated with this `CatalogCategory` instance.
// Currently these images are not displayed by Square, but are free to be displayed in 3rd party applications.
ImageIDs []string `json:"image_ids,omitempty" url:"image_ids,omitempty"`
// The type of the category.
// See [CatalogCategoryType](#type-catalogcategorytype) for possible values
CategoryType *CatalogCategoryType `json:"category_type,omitempty" url:"category_type,omitempty"`
// The ID of the parent category of this category instance.
ParentCategory *CatalogObjectCategory `json:"parent_category,omitempty" url:"parent_category,omitempty"`
// Indicates whether a category is a top level category, which does not have any parent_category.
IsTopLevel *bool `json:"is_top_level,omitempty" url:"is_top_level,omitempty"`
// A list of IDs representing channels, such as a Square Online site, where the category can be made visible.
Channels []string `json:"channels,omitempty" url:"channels,omitempty"`
// The IDs of the `CatalogAvailabilityPeriod` objects associated with the category.
AvailabilityPeriodIDs []string `json:"availability_period_ids,omitempty" url:"availability_period_ids,omitempty"`
// Indicates whether the category is visible (`true`) or hidden (`false`) on all of the seller's Square Online sites.
OnlineVisibility *bool `json:"online_visibility,omitempty" url:"online_visibility,omitempty"`
// The top-level category in a category hierarchy.
RootCategory *string `json:"root_category,omitempty" url:"root_category,omitempty"`
// The SEO data for a seller's Square Online store.
EcomSeoData *CatalogEcomSeoData `json:"ecom_seo_data,omitempty" url:"ecom_seo_data,omitempty"`
// The path from the category to its root category. The first node of the path is the parent of the category
// and the last is the root category. The path is empty if the category is a root category.
PathToRoot []*CategoryPathToRootNode `json:"path_to_root,omitempty" url:"path_to_root,omitempty"`
// contains filtered or unexported fields
}
A category to which a `CatalogItem` instance belongs.
func (*CatalogCategory) GetAvailabilityPeriodIDs ¶
func (c *CatalogCategory) GetAvailabilityPeriodIDs() []string
func (*CatalogCategory) GetCategoryType ¶
func (c *CatalogCategory) GetCategoryType() *CatalogCategoryType
func (*CatalogCategory) GetChannels ¶
func (c *CatalogCategory) GetChannels() []string
func (*CatalogCategory) GetEcomSeoData ¶
func (c *CatalogCategory) GetEcomSeoData() *CatalogEcomSeoData
func (*CatalogCategory) GetExtraProperties ¶
func (c *CatalogCategory) GetExtraProperties() map[string]interface{}
func (*CatalogCategory) GetImageIDs ¶
func (c *CatalogCategory) GetImageIDs() []string
func (*CatalogCategory) GetIsTopLevel ¶
func (c *CatalogCategory) GetIsTopLevel() *bool
func (*CatalogCategory) GetName ¶
func (c *CatalogCategory) GetName() *string
func (*CatalogCategory) GetOnlineVisibility ¶
func (c *CatalogCategory) GetOnlineVisibility() *bool
func (*CatalogCategory) GetParentCategory ¶
func (c *CatalogCategory) GetParentCategory() *CatalogObjectCategory
func (*CatalogCategory) GetPathToRoot ¶
func (c *CatalogCategory) GetPathToRoot() []*CategoryPathToRootNode
func (*CatalogCategory) GetRootCategory ¶
func (c *CatalogCategory) GetRootCategory() *string
func (*CatalogCategory) String ¶
func (c *CatalogCategory) String() string
func (*CatalogCategory) UnmarshalJSON ¶
func (c *CatalogCategory) UnmarshalJSON(data []byte) error
type CatalogCategoryType ¶
type CatalogCategoryType string
Indicates the type of a category.
const ( CatalogCategoryTypeRegularCategory CatalogCategoryType = "REGULAR_CATEGORY" CatalogCategoryTypeMenuCategory CatalogCategoryType = "MENU_CATEGORY" CatalogCategoryTypeKitchenCategory CatalogCategoryType = "KITCHEN_CATEGORY" )
func NewCatalogCategoryTypeFromString ¶
func NewCatalogCategoryTypeFromString(s string) (CatalogCategoryType, error)
func (CatalogCategoryType) Ptr ¶
func (c CatalogCategoryType) Ptr() *CatalogCategoryType
type CatalogCustomAttributeDefinition ¶
type CatalogCustomAttributeDefinition struct {
// The type of this custom attribute. Cannot be modified after creation.
// Required.
// See [CatalogCustomAttributeDefinitionType](#type-catalogcustomattributedefinitiontype) for possible values
Type CatalogCustomAttributeDefinitionType `json:"type" url:"type"`
// The name of this definition for API and seller-facing UI purposes.
//
// The name must be unique within the (merchant, application) pair. Required.
// May not be empty and may not exceed 255 characters. Can be modified after creation.
Name string `json:"name" url:"name"`
// Seller-oriented description of the meaning of this Custom Attribute,
// any constraints that the seller should observe, etc. May be displayed as a tooltip in Square UIs.
Description *string `json:"description,omitempty" url:"description,omitempty"`
// __Read only.__ Contains information about the application that
// created this custom attribute definition.
SourceApplication *SourceApplication `json:"source_application,omitempty" url:"source_application,omitempty"`
// The set of `CatalogObject` types that this custom atttribute may be applied to.
// Currently, only `ITEM`, `ITEM_VARIATION`, `MODIFIER`, `MODIFIER_LIST`, and `CATEGORY` are allowed. At least one type must be included.
// See [CatalogObjectType](#type-catalogobjecttype) for possible values
AllowedObjectTypes []CatalogObjectType `json:"allowed_object_types,omitempty" url:"allowed_object_types,omitempty"`
// The visibility of a custom attribute in seller-facing UIs (including Square Point
// of Sale applications and Square Dashboard). May be modified.
// See [CatalogCustomAttributeDefinitionSellerVisibility](#type-catalogcustomattributedefinitionsellervisibility) for possible values
SellerVisibility *CatalogCustomAttributeDefinitionSellerVisibility `json:"seller_visibility,omitempty" url:"seller_visibility,omitempty"`
// The visibility of a custom attribute to applications other than the application
// that created the attribute.
// See [CatalogCustomAttributeDefinitionAppVisibility](#type-catalogcustomattributedefinitionappvisibility) for possible values
AppVisibility *CatalogCustomAttributeDefinitionAppVisibility `json:"app_visibility,omitempty" url:"app_visibility,omitempty"`
// Optionally, populated when `type` = `STRING`, unset otherwise.
StringConfig *CatalogCustomAttributeDefinitionStringConfig `json:"string_config,omitempty" url:"string_config,omitempty"`
// Optionally, populated when `type` = `NUMBER`, unset otherwise.
NumberConfig *CatalogCustomAttributeDefinitionNumberConfig `json:"number_config,omitempty" url:"number_config,omitempty"`
// Populated when `type` is set to `SELECTION`, unset otherwise.
SelectionConfig *CatalogCustomAttributeDefinitionSelectionConfig `json:"selection_config,omitempty" url:"selection_config,omitempty"`
// The number of custom attributes that reference this
// custom attribute definition. Set by the server in response to a ListCatalog
// request with `include_counts` set to `true`. If the actual count is greater
// than 100, `custom_attribute_usage_count` will be set to `100`.
CustomAttributeUsageCount *int `json:"custom_attribute_usage_count,omitempty" url:"custom_attribute_usage_count,omitempty"`
// The name of the desired custom attribute key that can be used to access
// the custom attribute value on catalog objects. Cannot be modified after the
// custom attribute definition has been created.
// Must be between 1 and 60 characters, and may only contain the characters `[a-zA-Z0-9_-]`.
Key *string `json:"key,omitempty" url:"key,omitempty"`
// contains filtered or unexported fields
}
Contains information defining a custom attribute. Custom attributes are intended to store additional information about a catalog object or to associate a catalog object with an entity in another system. Do not use custom attributes to store any sensitive information (personally identifiable information, card details, etc.). [Read more about custom attributes](https://developer.squareup.com/docs/catalog-api/add-custom-attributes)
func (*CatalogCustomAttributeDefinition) GetAllowedObjectTypes ¶
func (c *CatalogCustomAttributeDefinition) GetAllowedObjectTypes() []CatalogObjectType
func (*CatalogCustomAttributeDefinition) GetAppVisibility ¶
func (c *CatalogCustomAttributeDefinition) GetAppVisibility() *CatalogCustomAttributeDefinitionAppVisibility
func (*CatalogCustomAttributeDefinition) GetCustomAttributeUsageCount ¶
func (c *CatalogCustomAttributeDefinition) GetCustomAttributeUsageCount() *int
func (*CatalogCustomAttributeDefinition) GetDescription ¶
func (c *CatalogCustomAttributeDefinition) GetDescription() *string
func (*CatalogCustomAttributeDefinition) GetExtraProperties ¶
func (c *CatalogCustomAttributeDefinition) GetExtraProperties() map[string]interface{}
func (*CatalogCustomAttributeDefinition) GetKey ¶
func (c *CatalogCustomAttributeDefinition) GetKey() *string
func (*CatalogCustomAttributeDefinition) GetName ¶
func (c *CatalogCustomAttributeDefinition) GetName() string
func (*CatalogCustomAttributeDefinition) GetNumberConfig ¶
func (c *CatalogCustomAttributeDefinition) GetNumberConfig() *CatalogCustomAttributeDefinitionNumberConfig
func (*CatalogCustomAttributeDefinition) GetSelectionConfig ¶
func (c *CatalogCustomAttributeDefinition) GetSelectionConfig() *CatalogCustomAttributeDefinitionSelectionConfig
func (*CatalogCustomAttributeDefinition) GetSellerVisibility ¶
func (c *CatalogCustomAttributeDefinition) GetSellerVisibility() *CatalogCustomAttributeDefinitionSellerVisibility
func (*CatalogCustomAttributeDefinition) GetSourceApplication ¶
func (c *CatalogCustomAttributeDefinition) GetSourceApplication() *SourceApplication
func (*CatalogCustomAttributeDefinition) GetStringConfig ¶
func (c *CatalogCustomAttributeDefinition) GetStringConfig() *CatalogCustomAttributeDefinitionStringConfig
func (*CatalogCustomAttributeDefinition) GetType ¶
func (c *CatalogCustomAttributeDefinition) GetType() CatalogCustomAttributeDefinitionType
func (*CatalogCustomAttributeDefinition) String ¶
func (c *CatalogCustomAttributeDefinition) String() string
func (*CatalogCustomAttributeDefinition) UnmarshalJSON ¶
func (c *CatalogCustomAttributeDefinition) UnmarshalJSON(data []byte) error
type CatalogCustomAttributeDefinitionAppVisibility ¶
type CatalogCustomAttributeDefinitionAppVisibility string
Defines the visibility of a custom attribute to applications other than their creating application.
const ( CatalogCustomAttributeDefinitionAppVisibilityAppVisibilityHidden CatalogCustomAttributeDefinitionAppVisibility = "APP_VISIBILITY_HIDDEN" CatalogCustomAttributeDefinitionAppVisibilityAppVisibilityReadOnly CatalogCustomAttributeDefinitionAppVisibility = "APP_VISIBILITY_READ_ONLY" CatalogCustomAttributeDefinitionAppVisibilityAppVisibilityReadWriteValues CatalogCustomAttributeDefinitionAppVisibility = "APP_VISIBILITY_READ_WRITE_VALUES" )
func NewCatalogCustomAttributeDefinitionAppVisibilityFromString ¶
func NewCatalogCustomAttributeDefinitionAppVisibilityFromString(s string) (CatalogCustomAttributeDefinitionAppVisibility, error)
type CatalogCustomAttributeDefinitionNumberConfig ¶
type CatalogCustomAttributeDefinitionNumberConfig struct {
// An integer between 0 and 5 that represents the maximum number of
// positions allowed after the decimal in number custom attribute values
// For example:
//
// - if the precision is 0, the quantity can be 1, 2, 3, etc.
// - if the precision is 1, the quantity can be 0.1, 0.2, etc.
// - if the precision is 2, the quantity can be 0.01, 0.12, etc.
//
// Default: 5
Precision *int `json:"precision,omitempty" url:"precision,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogCustomAttributeDefinitionNumberConfig) GetExtraProperties ¶
func (c *CatalogCustomAttributeDefinitionNumberConfig) GetExtraProperties() map[string]interface{}
func (*CatalogCustomAttributeDefinitionNumberConfig) GetPrecision ¶
func (c *CatalogCustomAttributeDefinitionNumberConfig) GetPrecision() *int
func (*CatalogCustomAttributeDefinitionNumberConfig) String ¶
func (c *CatalogCustomAttributeDefinitionNumberConfig) String() string
func (*CatalogCustomAttributeDefinitionNumberConfig) UnmarshalJSON ¶
func (c *CatalogCustomAttributeDefinitionNumberConfig) UnmarshalJSON(data []byte) error
type CatalogCustomAttributeDefinitionSelectionConfig ¶
type CatalogCustomAttributeDefinitionSelectionConfig struct {
// The maximum number of selections that can be set. The maximum value for this
// attribute is 100. The default value is 1. The value can be modified, but changing the value will not
// affect existing custom attribute values on objects. Clients need to
// handle custom attributes with more selected values than allowed by this limit.
MaxAllowedSelections *int `json:"max_allowed_selections,omitempty" url:"max_allowed_selections,omitempty"`
// The set of valid `CatalogCustomAttributeSelections`. Up to a maximum of 100
// selections can be defined. Can be modified.
AllowedSelections []*CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection `json:"allowed_selections,omitempty" url:"allowed_selections,omitempty"`
// contains filtered or unexported fields
}
Configuration associated with `SELECTION`-type custom attribute definitions.
func (*CatalogCustomAttributeDefinitionSelectionConfig) GetAllowedSelections ¶
func (c *CatalogCustomAttributeDefinitionSelectionConfig) GetAllowedSelections() []*CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection
func (*CatalogCustomAttributeDefinitionSelectionConfig) GetExtraProperties ¶
func (c *CatalogCustomAttributeDefinitionSelectionConfig) GetExtraProperties() map[string]interface{}
func (*CatalogCustomAttributeDefinitionSelectionConfig) GetMaxAllowedSelections ¶
func (c *CatalogCustomAttributeDefinitionSelectionConfig) GetMaxAllowedSelections() *int
func (*CatalogCustomAttributeDefinitionSelectionConfig) String ¶
func (c *CatalogCustomAttributeDefinitionSelectionConfig) String() string
func (*CatalogCustomAttributeDefinitionSelectionConfig) UnmarshalJSON ¶
func (c *CatalogCustomAttributeDefinitionSelectionConfig) UnmarshalJSON(data []byte) error
type CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection ¶
type CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection struct {
// Unique ID set by Square.
UID *string `json:"uid,omitempty" url:"uid,omitempty"`
// Selection name, unique within `allowed_selections`.
Name string `json:"name" url:"name"`
// contains filtered or unexported fields
}
A named selection for this `SELECTION`-type custom attribute definition.
func (*CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection) GetExtraProperties ¶
func (c *CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection) GetExtraProperties() map[string]interface{}
func (*CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection) GetName ¶
func (c *CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection) GetName() string
func (*CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection) GetUID ¶
func (c *CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection) GetUID() *string
func (*CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection) String ¶
func (c *CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection) String() string
func (*CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection) UnmarshalJSON ¶
func (c *CatalogCustomAttributeDefinitionSelectionConfigCustomAttributeSelection) UnmarshalJSON(data []byte) error
type CatalogCustomAttributeDefinitionSellerVisibility ¶
type CatalogCustomAttributeDefinitionSellerVisibility string
Defines the visibility of a custom attribute to sellers in Square client applications, Square APIs or in Square UIs (including Square Point of Sale applications and Square Dashboard).
const ( CatalogCustomAttributeDefinitionSellerVisibilitySellerVisibilityHidden CatalogCustomAttributeDefinitionSellerVisibility = "SELLER_VISIBILITY_HIDDEN" CatalogCustomAttributeDefinitionSellerVisibilitySellerVisibilityReadWriteValues CatalogCustomAttributeDefinitionSellerVisibility = "SELLER_VISIBILITY_READ_WRITE_VALUES" )
func NewCatalogCustomAttributeDefinitionSellerVisibilityFromString ¶
func NewCatalogCustomAttributeDefinitionSellerVisibilityFromString(s string) (CatalogCustomAttributeDefinitionSellerVisibility, error)
type CatalogCustomAttributeDefinitionStringConfig ¶
type CatalogCustomAttributeDefinitionStringConfig struct {
// If true, each Custom Attribute instance associated with this Custom Attribute
// Definition must have a unique value within the seller's catalog. For
// example, this may be used for a value like a SKU that should not be
// duplicated within a seller's catalog. May not be modified after the
// definition has been created.
EnforceUniqueness *bool `json:"enforce_uniqueness,omitempty" url:"enforce_uniqueness,omitempty"`
// contains filtered or unexported fields
}
Configuration associated with Custom Attribute Definitions of type `STRING`.
func (*CatalogCustomAttributeDefinitionStringConfig) GetEnforceUniqueness ¶
func (c *CatalogCustomAttributeDefinitionStringConfig) GetEnforceUniqueness() *bool
func (*CatalogCustomAttributeDefinitionStringConfig) GetExtraProperties ¶
func (c *CatalogCustomAttributeDefinitionStringConfig) GetExtraProperties() map[string]interface{}
func (*CatalogCustomAttributeDefinitionStringConfig) String ¶
func (c *CatalogCustomAttributeDefinitionStringConfig) String() string
func (*CatalogCustomAttributeDefinitionStringConfig) UnmarshalJSON ¶
func (c *CatalogCustomAttributeDefinitionStringConfig) UnmarshalJSON(data []byte) error
type CatalogCustomAttributeDefinitionType ¶
type CatalogCustomAttributeDefinitionType string
Defines the possible types for a custom attribute.
const ( CatalogCustomAttributeDefinitionTypeString CatalogCustomAttributeDefinitionType = "STRING" CatalogCustomAttributeDefinitionTypeBoolean CatalogCustomAttributeDefinitionType = "BOOLEAN" CatalogCustomAttributeDefinitionTypeNumber CatalogCustomAttributeDefinitionType = "NUMBER" CatalogCustomAttributeDefinitionTypeSelection CatalogCustomAttributeDefinitionType = "SELECTION" )
func NewCatalogCustomAttributeDefinitionTypeFromString ¶
func NewCatalogCustomAttributeDefinitionTypeFromString(s string) (CatalogCustomAttributeDefinitionType, error)
type CatalogCustomAttributeValue ¶
type CatalogCustomAttributeValue struct {
// The name of the custom attribute.
Name *string `json:"name,omitempty" url:"name,omitempty"`
// The string value of the custom attribute. Populated if `type` = `STRING`.
StringValue *string `json:"string_value,omitempty" url:"string_value,omitempty"`
// The id of the [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition) this value belongs to.
CustomAttributeDefinitionID *string `json:"custom_attribute_definition_id,omitempty" url:"custom_attribute_definition_id,omitempty"`
// A copy of type from the associated `CatalogCustomAttributeDefinition`.
// See [CatalogCustomAttributeDefinitionType](#type-catalogcustomattributedefinitiontype) for possible values
Type *CatalogCustomAttributeDefinitionType `json:"type,omitempty" url:"type,omitempty"`
// Populated if `type` = `NUMBER`. Contains a string
// representation of a decimal number, using a `.` as the decimal separator.
NumberValue *string `json:"number_value,omitempty" url:"number_value,omitempty"`
// A `true` or `false` value. Populated if `type` = `BOOLEAN`.
BooleanValue *bool `json:"boolean_value,omitempty" url:"boolean_value,omitempty"`
// One or more choices from `allowed_selections`. Populated if `type` = `SELECTION`.
SelectionUIDValues []string `json:"selection_uid_values,omitempty" url:"selection_uid_values,omitempty"`
// If the associated `CatalogCustomAttributeDefinition` object is defined by another application, this key is prefixed by the defining application ID.
// For example, if the CatalogCustomAttributeDefinition has a key attribute of "cocoa_brand" and the defining application ID is "abcd1234", this key is "abcd1234:cocoa_brand"
// when the application making the request is different from the application defining the custom attribute definition. Otherwise, the key is simply "cocoa_brand".
Key *string `json:"key,omitempty" url:"key,omitempty"`
// contains filtered or unexported fields
}
An instance of a custom attribute. Custom attributes can be defined and added to `ITEM` and `ITEM_VARIATION` type catalog objects. [Read more about custom attributes](https://developer.squareup.com/docs/catalog-api/add-custom-attributes).
func (*CatalogCustomAttributeValue) GetBooleanValue ¶
func (c *CatalogCustomAttributeValue) GetBooleanValue() *bool
func (*CatalogCustomAttributeValue) GetCustomAttributeDefinitionID ¶
func (c *CatalogCustomAttributeValue) GetCustomAttributeDefinitionID() *string
func (*CatalogCustomAttributeValue) GetExtraProperties ¶
func (c *CatalogCustomAttributeValue) GetExtraProperties() map[string]interface{}
func (*CatalogCustomAttributeValue) GetKey ¶
func (c *CatalogCustomAttributeValue) GetKey() *string
func (*CatalogCustomAttributeValue) GetName ¶
func (c *CatalogCustomAttributeValue) GetName() *string
func (*CatalogCustomAttributeValue) GetNumberValue ¶
func (c *CatalogCustomAttributeValue) GetNumberValue() *string
func (*CatalogCustomAttributeValue) GetSelectionUIDValues ¶
func (c *CatalogCustomAttributeValue) GetSelectionUIDValues() []string
func (*CatalogCustomAttributeValue) GetStringValue ¶
func (c *CatalogCustomAttributeValue) GetStringValue() *string
func (*CatalogCustomAttributeValue) GetType ¶
func (c *CatalogCustomAttributeValue) GetType() *CatalogCustomAttributeDefinitionType
func (*CatalogCustomAttributeValue) String ¶
func (c *CatalogCustomAttributeValue) String() string
func (*CatalogCustomAttributeValue) UnmarshalJSON ¶
func (c *CatalogCustomAttributeValue) UnmarshalJSON(data []byte) error
type CatalogDiscount ¶
type CatalogDiscount struct {
// The discount name. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points.
Name *string `json:"name,omitempty" url:"name,omitempty"`
// Indicates whether the discount is a fixed amount or percentage, or entered at the time of sale.
// See [CatalogDiscountType](#type-catalogdiscounttype) for possible values
DiscountType *CatalogDiscountType `json:"discount_type,omitempty" url:"discount_type,omitempty"`
// The percentage of the discount as a string representation of a decimal number, using a `.` as the decimal
// separator and without a `%` sign. A value of `7.5` corresponds to `7.5%`. Specify a percentage of `0` if `discount_type`
// is `VARIABLE_PERCENTAGE`.
//
// Do not use this field for amount-based or variable discounts.
Percentage *string `json:"percentage,omitempty" url:"percentage,omitempty"`
// The amount of the discount. Specify an amount of `0` if `discount_type` is `VARIABLE_AMOUNT`.
//
// Do not use this field for percentage-based or variable discounts.
AmountMoney *Money `json:"amount_money,omitempty" url:"amount_money,omitempty"`
// Indicates whether a mobile staff member needs to enter their PIN to apply the
// discount to a payment in the Square Point of Sale app.
PinRequired *bool `json:"pin_required,omitempty" url:"pin_required,omitempty"`
// The color of the discount display label in the Square Point of Sale app. This must be a valid hex color code.
LabelColor *string `json:"label_color,omitempty" url:"label_color,omitempty"`
// Indicates whether this discount should reduce the price used to calculate tax.
//
// Most discounts should use `MODIFY_TAX_BASIS`. However, in some circumstances taxes must
// be calculated based on an item's price, ignoring a particular discount. For example,
// in many US jurisdictions, a manufacturer coupon or instant rebate reduces the price a
// customer pays but does not reduce the sale price used to calculate how much sales tax is
// due. In this case, the discount representing that manufacturer coupon should have
// `DO_NOT_MODIFY_TAX_BASIS` for this field.
//
// If you are unsure whether you need to use this field, consult your tax professional.
// See [CatalogDiscountModifyTaxBasis](#type-catalogdiscountmodifytaxbasis) for possible values
ModifyTaxBasis *CatalogDiscountModifyTaxBasis `json:"modify_tax_basis,omitempty" url:"modify_tax_basis,omitempty"`
// For a percentage discount, the maximum absolute value of the discount. For example, if a
// 50% discount has a `maximum_amount_money` of $20, a $100 purchase will yield a $20 discount,
// not a $50 discount.
MaximumAmountMoney *Money `json:"maximum_amount_money,omitempty" url:"maximum_amount_money,omitempty"`
// contains filtered or unexported fields
}
A discount applicable to items.
func (*CatalogDiscount) GetAmountMoney ¶
func (c *CatalogDiscount) GetAmountMoney() *Money
func (*CatalogDiscount) GetDiscountType ¶
func (c *CatalogDiscount) GetDiscountType() *CatalogDiscountType
func (*CatalogDiscount) GetExtraProperties ¶
func (c *CatalogDiscount) GetExtraProperties() map[string]interface{}
func (*CatalogDiscount) GetLabelColor ¶
func (c *CatalogDiscount) GetLabelColor() *string
func (*CatalogDiscount) GetMaximumAmountMoney ¶
func (c *CatalogDiscount) GetMaximumAmountMoney() *Money
func (*CatalogDiscount) GetModifyTaxBasis ¶
func (c *CatalogDiscount) GetModifyTaxBasis() *CatalogDiscountModifyTaxBasis
func (*CatalogDiscount) GetName ¶
func (c *CatalogDiscount) GetName() *string
func (*CatalogDiscount) GetPercentage ¶
func (c *CatalogDiscount) GetPercentage() *string
func (*CatalogDiscount) GetPinRequired ¶
func (c *CatalogDiscount) GetPinRequired() *bool
func (*CatalogDiscount) String ¶
func (c *CatalogDiscount) String() string
func (*CatalogDiscount) UnmarshalJSON ¶
func (c *CatalogDiscount) UnmarshalJSON(data []byte) error
type CatalogDiscountModifyTaxBasis ¶
type CatalogDiscountModifyTaxBasis string
const ( CatalogDiscountModifyTaxBasisModifyTaxBasis CatalogDiscountModifyTaxBasis = "MODIFY_TAX_BASIS" CatalogDiscountModifyTaxBasisDoNotModifyTaxBasis CatalogDiscountModifyTaxBasis = "DO_NOT_MODIFY_TAX_BASIS" )
func NewCatalogDiscountModifyTaxBasisFromString ¶
func NewCatalogDiscountModifyTaxBasisFromString(s string) (CatalogDiscountModifyTaxBasis, error)
func (CatalogDiscountModifyTaxBasis) Ptr ¶
func (c CatalogDiscountModifyTaxBasis) Ptr() *CatalogDiscountModifyTaxBasis
type CatalogDiscountType ¶
type CatalogDiscountType string
How to apply a CatalogDiscount to a CatalogItem.
const ( CatalogDiscountTypeFixedPercentage CatalogDiscountType = "FIXED_PERCENTAGE" CatalogDiscountTypeFixedAmount CatalogDiscountType = "FIXED_AMOUNT" CatalogDiscountTypeVariablePercentage CatalogDiscountType = "VARIABLE_PERCENTAGE" CatalogDiscountTypeVariableAmount CatalogDiscountType = "VARIABLE_AMOUNT" )
func NewCatalogDiscountTypeFromString ¶
func NewCatalogDiscountTypeFromString(s string) (CatalogDiscountType, error)
func (CatalogDiscountType) Ptr ¶
func (c CatalogDiscountType) Ptr() *CatalogDiscountType
type CatalogEcomSeoData ¶
type CatalogEcomSeoData struct {
// The SEO title used for the Square Online store.
PageTitle *string `json:"page_title,omitempty" url:"page_title,omitempty"`
// The SEO description used for the Square Online store.
PageDescription *string `json:"page_description,omitempty" url:"page_description,omitempty"`
// The SEO permalink used for the Square Online store.
Permalink *string `json:"permalink,omitempty" url:"permalink,omitempty"`
// contains filtered or unexported fields
}
SEO data for for a seller's Square Online store.
func (*CatalogEcomSeoData) GetExtraProperties ¶
func (c *CatalogEcomSeoData) GetExtraProperties() map[string]interface{}
func (*CatalogEcomSeoData) GetPageDescription ¶
func (c *CatalogEcomSeoData) GetPageDescription() *string
func (*CatalogEcomSeoData) GetPageTitle ¶
func (c *CatalogEcomSeoData) GetPageTitle() *string
func (*CatalogEcomSeoData) GetPermalink ¶
func (c *CatalogEcomSeoData) GetPermalink() *string
func (*CatalogEcomSeoData) String ¶
func (c *CatalogEcomSeoData) String() string
func (*CatalogEcomSeoData) UnmarshalJSON ¶
func (c *CatalogEcomSeoData) UnmarshalJSON(data []byte) error
type CatalogIDMapping ¶
type CatalogIDMapping struct {
// The client-supplied temporary `#`-prefixed ID for a new `CatalogObject`.
ClientObjectID *string `json:"client_object_id,omitempty" url:"client_object_id,omitempty"`
// The permanent ID for the CatalogObject created by the server.
ObjectID *string `json:"object_id,omitempty" url:"object_id,omitempty"`
// contains filtered or unexported fields
}
A mapping between a temporary client-supplied ID and a permanent server-generated ID.
When calling [UpsertCatalogObject](api-endpoint:Catalog-UpsertCatalogObject) or [BatchUpsertCatalogObjects](api-endpoint:Catalog-BatchUpsertCatalogObjects) to create a CatalogObject(entity:CatalogObject) instance, you can supply a temporary ID for the to-be-created object, especially when the object is to be referenced elsewhere in the same request body. This temporary ID can be any string unique within the call, but must be prefixed by "#".
After the request is submitted and the object created, a permanent server-generated ID is assigned to the new object. The permanent ID is unique across the Square catalog.
func (*CatalogIDMapping) GetClientObjectID ¶
func (c *CatalogIDMapping) GetClientObjectID() *string
func (*CatalogIDMapping) GetExtraProperties ¶
func (c *CatalogIDMapping) GetExtraProperties() map[string]interface{}
func (*CatalogIDMapping) GetObjectID ¶
func (c *CatalogIDMapping) GetObjectID() *string
func (*CatalogIDMapping) String ¶
func (c *CatalogIDMapping) String() string
func (*CatalogIDMapping) UnmarshalJSON ¶
func (c *CatalogIDMapping) UnmarshalJSON(data []byte) error
type CatalogImage ¶
type CatalogImage struct {
// The internal name to identify this image in calls to the Square API.
// This is a searchable attribute for use in applicable query filters
// using the [SearchCatalogObjects](api-endpoint:Catalog-SearchCatalogObjects).
// It is not unique and should not be shown in a buyer facing context.
Name *string `json:"name,omitempty" url:"name,omitempty"`
// The URL of this image, generated by Square after an image is uploaded
// using the [CreateCatalogImage](api-endpoint:Catalog-CreateCatalogImage) endpoint.
// To modify the image, use the UpdateCatalogImage endpoint. Do not change the URL field.
URL *string `json:"url,omitempty" url:"url,omitempty"`
// A caption that describes what is shown in the image. Displayed in the
// Square Online Store. This is a searchable attribute for use in applicable query filters
// using the [SearchCatalogObjects](api-endpoint:Catalog-SearchCatalogObjects).
Caption *string `json:"caption,omitempty" url:"caption,omitempty"`
// The immutable order ID for this image object created by the Photo Studio service in Square Online Store.
PhotoStudioOrderID *string `json:"photo_studio_order_id,omitempty" url:"photo_studio_order_id,omitempty"`
// contains filtered or unexported fields
}
An image file to use in Square catalogs. It can be associated with `CatalogItem`, `CatalogItemVariation`, `CatalogCategory`, and `CatalogModifierList` objects. Only the images on items and item variations are exposed in Dashboard. Only the first image on an item is displayed in Square Point of Sale (SPOS). Images on items and variations are displayed through Square Online Store. Images on other object types are for use by 3rd party application developers.
func (*CatalogImage) GetCaption ¶
func (c *CatalogImage) GetCaption() *string
func (*CatalogImage) GetExtraProperties ¶
func (c *CatalogImage) GetExtraProperties() map[string]interface{}
func (*CatalogImage) GetName ¶
func (c *CatalogImage) GetName() *string
func (*CatalogImage) GetPhotoStudioOrderID ¶
func (c *CatalogImage) GetPhotoStudioOrderID() *string
func (*CatalogImage) GetURL ¶
func (c *CatalogImage) GetURL() *string
func (*CatalogImage) String ¶
func (c *CatalogImage) String() string
func (*CatalogImage) UnmarshalJSON ¶
func (c *CatalogImage) UnmarshalJSON(data []byte) error
type CatalogInfoResponse ¶
type CatalogInfoResponse struct {
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// Limits that apply to this API.
Limits *CatalogInfoResponseLimits `json:"limits,omitempty" url:"limits,omitempty"`
// Names and abbreviations for standard units.
StandardUnitDescriptionGroup *StandardUnitDescriptionGroup `json:"standard_unit_description_group,omitempty" url:"standard_unit_description_group,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogInfoResponse) GetErrors ¶
func (c *CatalogInfoResponse) GetErrors() []*Error
func (*CatalogInfoResponse) GetExtraProperties ¶
func (c *CatalogInfoResponse) GetExtraProperties() map[string]interface{}
func (*CatalogInfoResponse) GetLimits ¶
func (c *CatalogInfoResponse) GetLimits() *CatalogInfoResponseLimits
func (*CatalogInfoResponse) GetStandardUnitDescriptionGroup ¶
func (c *CatalogInfoResponse) GetStandardUnitDescriptionGroup() *StandardUnitDescriptionGroup
func (*CatalogInfoResponse) String ¶
func (c *CatalogInfoResponse) String() string
func (*CatalogInfoResponse) UnmarshalJSON ¶
func (c *CatalogInfoResponse) UnmarshalJSON(data []byte) error
type CatalogInfoResponseLimits ¶
type CatalogInfoResponseLimits struct {
// The maximum number of objects that may appear within a single batch in a
// `/v2/catalog/batch-upsert` request.
BatchUpsertMaxObjectsPerBatch *int `json:"batch_upsert_max_objects_per_batch,omitempty" url:"batch_upsert_max_objects_per_batch,omitempty"`
// The maximum number of objects that may appear across all batches in a
// `/v2/catalog/batch-upsert` request.
BatchUpsertMaxTotalObjects *int `json:"batch_upsert_max_total_objects,omitempty" url:"batch_upsert_max_total_objects,omitempty"`
// The maximum number of object IDs that may appear in a `/v2/catalog/batch-retrieve`
// request.
BatchRetrieveMaxObjectIDs *int `json:"batch_retrieve_max_object_ids,omitempty" url:"batch_retrieve_max_object_ids,omitempty"`
// The maximum number of results that may be returned in a page of a
// `/v2/catalog/search` response.
SearchMaxPageLimit *int `json:"search_max_page_limit,omitempty" url:"search_max_page_limit,omitempty"`
// The maximum number of object IDs that may be included in a single
// `/v2/catalog/batch-delete` request.
BatchDeleteMaxObjectIDs *int `json:"batch_delete_max_object_ids,omitempty" url:"batch_delete_max_object_ids,omitempty"`
// The maximum number of item IDs that may be included in a single
// `/v2/catalog/update-item-taxes` request.
UpdateItemTaxesMaxItemIDs *int `json:"update_item_taxes_max_item_ids,omitempty" url:"update_item_taxes_max_item_ids,omitempty"`
// The maximum number of tax IDs to be enabled that may be included in a single
// `/v2/catalog/update-item-taxes` request.
UpdateItemTaxesMaxTaxesToEnable *int `json:"update_item_taxes_max_taxes_to_enable,omitempty" url:"update_item_taxes_max_taxes_to_enable,omitempty"`
// The maximum number of tax IDs to be disabled that may be included in a single
// `/v2/catalog/update-item-taxes` request.
UpdateItemTaxesMaxTaxesToDisable *int `json:"update_item_taxes_max_taxes_to_disable,omitempty" url:"update_item_taxes_max_taxes_to_disable,omitempty"`
// The maximum number of item IDs that may be included in a single
// `/v2/catalog/update-item-modifier-lists` request.
UpdateItemModifierListsMaxItemIDs *int `json:"update_item_modifier_lists_max_item_ids,omitempty" url:"update_item_modifier_lists_max_item_ids,omitempty"`
// The maximum number of modifier list IDs to be enabled that may be included in
// a single `/v2/catalog/update-item-modifier-lists` request.
UpdateItemModifierListsMaxModifierListsToEnable *int `` /* 144-byte string literal not displayed */
// The maximum number of modifier list IDs to be disabled that may be included in
// a single `/v2/catalog/update-item-modifier-lists` request.
UpdateItemModifierListsMaxModifierListsToDisable *int `` /* 146-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*CatalogInfoResponseLimits) GetBatchDeleteMaxObjectIDs ¶
func (c *CatalogInfoResponseLimits) GetBatchDeleteMaxObjectIDs() *int
func (*CatalogInfoResponseLimits) GetBatchRetrieveMaxObjectIDs ¶
func (c *CatalogInfoResponseLimits) GetBatchRetrieveMaxObjectIDs() *int
func (*CatalogInfoResponseLimits) GetBatchUpsertMaxObjectsPerBatch ¶
func (c *CatalogInfoResponseLimits) GetBatchUpsertMaxObjectsPerBatch() *int
func (*CatalogInfoResponseLimits) GetBatchUpsertMaxTotalObjects ¶
func (c *CatalogInfoResponseLimits) GetBatchUpsertMaxTotalObjects() *int
func (*CatalogInfoResponseLimits) GetExtraProperties ¶
func (c *CatalogInfoResponseLimits) GetExtraProperties() map[string]interface{}
func (*CatalogInfoResponseLimits) GetSearchMaxPageLimit ¶
func (c *CatalogInfoResponseLimits) GetSearchMaxPageLimit() *int
func (*CatalogInfoResponseLimits) GetUpdateItemModifierListsMaxItemIDs ¶
func (c *CatalogInfoResponseLimits) GetUpdateItemModifierListsMaxItemIDs() *int
func (*CatalogInfoResponseLimits) GetUpdateItemModifierListsMaxModifierListsToDisable ¶
func (c *CatalogInfoResponseLimits) GetUpdateItemModifierListsMaxModifierListsToDisable() *int
func (*CatalogInfoResponseLimits) GetUpdateItemModifierListsMaxModifierListsToEnable ¶
func (c *CatalogInfoResponseLimits) GetUpdateItemModifierListsMaxModifierListsToEnable() *int
func (*CatalogInfoResponseLimits) GetUpdateItemTaxesMaxItemIDs ¶
func (c *CatalogInfoResponseLimits) GetUpdateItemTaxesMaxItemIDs() *int
func (*CatalogInfoResponseLimits) GetUpdateItemTaxesMaxTaxesToDisable ¶
func (c *CatalogInfoResponseLimits) GetUpdateItemTaxesMaxTaxesToDisable() *int
func (*CatalogInfoResponseLimits) GetUpdateItemTaxesMaxTaxesToEnable ¶
func (c *CatalogInfoResponseLimits) GetUpdateItemTaxesMaxTaxesToEnable() *int
func (*CatalogInfoResponseLimits) String ¶
func (c *CatalogInfoResponseLimits) String() string
func (*CatalogInfoResponseLimits) UnmarshalJSON ¶
func (c *CatalogInfoResponseLimits) UnmarshalJSON(data []byte) error
type CatalogItem ¶
type CatalogItem struct {
// The item's name. This is a searchable attribute for use in applicable query filters, its value must not be empty, and the length is of Unicode code points.
Name *string `json:"name,omitempty" url:"name,omitempty"`
// The item's description. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points.
//
// Deprecated at 2022-07-20, this field is planned to retire in 6 months. You should migrate to use `description_html` to set the description
// of the [CatalogItem](entity:CatalogItem) instance. The `description` and `description_html` field values are kept in sync. If you try to
// set the both fields, the `description_html` text value overwrites the `description` value. Updates in one field are also reflected in the other,
// except for when you use an early version before Square API 2022-07-20 and `description_html` is set to blank, setting the `description` value to null
// does not nullify `description_html`.
Description *string `json:"description,omitempty" url:"description,omitempty"`
// The text of the item's display label in the Square Point of Sale app. Only up to the first five characters of the string are used.
// This attribute is searchable, and its value length is of Unicode code points.
Abbreviation *string `json:"abbreviation,omitempty" url:"abbreviation,omitempty"`
// The color of the item's display label in the Square Point of Sale app. This must be a valid hex color code.
LabelColor *string `json:"label_color,omitempty" url:"label_color,omitempty"`
// Indicates whether the item is taxable (`true`) or non-taxable (`false`). Default is `true`.
IsTaxable *bool `json:"is_taxable,omitempty" url:"is_taxable,omitempty"`
// The ID of the item's category, if any. Deprecated since 2023-12-13. Use `CatalogItem.categories`, instead.
CategoryID *string `json:"category_id,omitempty" url:"category_id,omitempty"`
// A set of IDs indicating the taxes enabled for
// this item. When updating an item, any taxes listed here will be added to the item.
// Taxes may also be added to or deleted from an item using `UpdateItemTaxes`.
TaxIDs []string `json:"tax_ids,omitempty" url:"tax_ids,omitempty"`
// A set of `CatalogItemModifierListInfo` objects
// representing the modifier lists that apply to this item, along with the overrides and min
// and max limits that are specific to this item. Modifier lists
// may also be added to or deleted from an item using `UpdateItemModifierLists`.
ModifierListInfo []*CatalogItemModifierListInfo `json:"modifier_list_info,omitempty" url:"modifier_list_info,omitempty"`
// A list of [CatalogItemVariation](entity:CatalogItemVariation) objects for this item. An item must have
// at least one variation.
Variations []*CatalogObject `json:"variations,omitempty" url:"variations,omitempty"`
// The product type of the item. Once set, the `product_type` value cannot be modified.
//
// Items of the `LEGACY_SQUARE_ONLINE_SERVICE` and `LEGACY_SQUARE_ONLINE_MEMBERSHIP` product types can be updated
// but cannot be created using the API.
// See [CatalogItemProductType](#type-catalogitemproducttype) for possible values
ProductType *CatalogItemProductType `json:"product_type,omitempty" url:"product_type,omitempty"`
// If `false`, the Square Point of Sale app will present the `CatalogItem`'s
// details screen immediately, allowing the merchant to choose `CatalogModifier`s
// before adding the item to the cart. This is the default behavior.
//
// If `true`, the Square Point of Sale app will immediately add the item to the cart with the pre-selected
// modifiers, and merchants can edit modifiers by drilling down onto the item's details.
//
// Third-party clients are encouraged to implement similar behaviors.
SkipModifierScreen *bool `json:"skip_modifier_screen,omitempty" url:"skip_modifier_screen,omitempty"`
// List of item options IDs for this item. Used to manage and group item
// variations in a specified order.
//
// Maximum: 6 item options.
ItemOptions []*CatalogItemOptionForItem `json:"item_options,omitempty" url:"item_options,omitempty"`
// Deprecated. A URI pointing to a published e-commerce product page for the Item.
EcomURI *string `json:"ecom_uri,omitempty" url:"ecom_uri,omitempty"`
// Deprecated. A comma-separated list of encoded URIs pointing to a set of published e-commerce images for the Item.
EcomImageURIs []string `json:"ecom_image_uris,omitempty" url:"ecom_image_uris,omitempty"`
// The IDs of images associated with this `CatalogItem` instance.
// These images will be shown to customers in Square Online Store.
// The first image will show up as the icon for this item in POS.
ImageIDs []string `json:"image_ids,omitempty" url:"image_ids,omitempty"`
// A name to sort the item by. If this name is unspecified, namely, the `sort_name` field is absent, the regular `name` field is used for sorting.
// Its value must not be empty.
//
// It is currently supported for sellers of the Japanese locale only.
SortName *string `json:"sort_name,omitempty" url:"sort_name,omitempty"`
// The list of categories.
Categories []*CatalogObjectCategory `json:"categories,omitempty" url:"categories,omitempty"`
// The item's description as expressed in valid HTML elements. The length of this field value, including those of HTML tags,
// is of Unicode points. With application query filters, the text values of the HTML elements and attributes are searchable. Invalid or
// unsupported HTML elements or attributes are ignored.
//
// Supported HTML elements include:
// - `a`: Link. Supports linking to website URLs, email address, and telephone numbers.
// - `b`, `strong`: Bold text
// - `br`: Line break
// - `code`: Computer code
// - `div`: Section
// - `h1-h6`: Headings
// - `i`, `em`: Italics
// - `li`: List element
// - `ol`: Numbered list
// - `p`: Paragraph
// - `ul`: Bullet list
// - `u`: Underline
//
// Supported HTML attributes include:
// - `align`: Alignment of the text content
// - `href`: Link destination
// - `rel`: Relationship between link's target and source
// - `target`: Place to open the linked document
DescriptionHTML *string `json:"description_html,omitempty" url:"description_html,omitempty"`
// A server-generated plaintext version of the `description_html` field, without formatting tags.
DescriptionPlaintext *string `json:"description_plaintext,omitempty" url:"description_plaintext,omitempty"`
// A list of IDs representing channels, such as a Square Online site, where the item can be made visible or available.
// This field is read only and cannot be edited.
Channels []string `json:"channels,omitempty" url:"channels,omitempty"`
// Indicates whether this item is archived (`true`) or not (`false`).
IsArchived *bool `json:"is_archived,omitempty" url:"is_archived,omitempty"`
// The SEO data for a seller's Square Online store.
EcomSeoData *CatalogEcomSeoData `json:"ecom_seo_data,omitempty" url:"ecom_seo_data,omitempty"`
// The food and beverage-specific details for the `FOOD_AND_BEV` item.
FoodAndBeverageDetails *CatalogItemFoodAndBeverageDetails `json:"food_and_beverage_details,omitempty" url:"food_and_beverage_details,omitempty"`
// The item's reporting category.
ReportingCategory *CatalogObjectCategory `json:"reporting_category,omitempty" url:"reporting_category,omitempty"`
// Indicates whether this item is alcoholic (`true`) or not (`false`).
IsAlcoholic *bool `json:"is_alcoholic,omitempty" url:"is_alcoholic,omitempty"`
// contains filtered or unexported fields
}
A CatalogObject(entity:CatalogObject) instance of the `ITEM` type, also referred to as an item, in the catalog.
func (*CatalogItem) GetAbbreviation ¶
func (c *CatalogItem) GetAbbreviation() *string
func (*CatalogItem) GetCategories ¶
func (c *CatalogItem) GetCategories() []*CatalogObjectCategory
func (*CatalogItem) GetCategoryID ¶
func (c *CatalogItem) GetCategoryID() *string
func (*CatalogItem) GetChannels ¶
func (c *CatalogItem) GetChannels() []string
func (*CatalogItem) GetDescription ¶
func (c *CatalogItem) GetDescription() *string
func (*CatalogItem) GetDescriptionHTML ¶
func (c *CatalogItem) GetDescriptionHTML() *string
func (*CatalogItem) GetDescriptionPlaintext ¶
func (c *CatalogItem) GetDescriptionPlaintext() *string
func (*CatalogItem) GetEcomImageURIs ¶ added in v1.4.0
func (c *CatalogItem) GetEcomImageURIs() []string
func (*CatalogItem) GetEcomSeoData ¶
func (c *CatalogItem) GetEcomSeoData() *CatalogEcomSeoData
func (*CatalogItem) GetEcomURI ¶ added in v1.4.0
func (c *CatalogItem) GetEcomURI() *string
func (*CatalogItem) GetExtraProperties ¶
func (c *CatalogItem) GetExtraProperties() map[string]interface{}
func (*CatalogItem) GetFoodAndBeverageDetails ¶
func (c *CatalogItem) GetFoodAndBeverageDetails() *CatalogItemFoodAndBeverageDetails
func (*CatalogItem) GetImageIDs ¶
func (c *CatalogItem) GetImageIDs() []string
func (*CatalogItem) GetIsAlcoholic ¶ added in v1.4.0
func (c *CatalogItem) GetIsAlcoholic() *bool
func (*CatalogItem) GetIsArchived ¶
func (c *CatalogItem) GetIsArchived() *bool
func (*CatalogItem) GetIsTaxable ¶
func (c *CatalogItem) GetIsTaxable() *bool
func (*CatalogItem) GetItemOptions ¶
func (c *CatalogItem) GetItemOptions() []*CatalogItemOptionForItem
func (*CatalogItem) GetLabelColor ¶
func (c *CatalogItem) GetLabelColor() *string
func (*CatalogItem) GetModifierListInfo ¶
func (c *CatalogItem) GetModifierListInfo() []*CatalogItemModifierListInfo
func (*CatalogItem) GetName ¶
func (c *CatalogItem) GetName() *string
func (*CatalogItem) GetProductType ¶
func (c *CatalogItem) GetProductType() *CatalogItemProductType
func (*CatalogItem) GetReportingCategory ¶
func (c *CatalogItem) GetReportingCategory() *CatalogObjectCategory
func (*CatalogItem) GetSkipModifierScreen ¶
func (c *CatalogItem) GetSkipModifierScreen() *bool
func (*CatalogItem) GetSortName ¶
func (c *CatalogItem) GetSortName() *string
func (*CatalogItem) GetTaxIDs ¶
func (c *CatalogItem) GetTaxIDs() []string
func (*CatalogItem) GetVariations ¶
func (c *CatalogItem) GetVariations() []*CatalogObject
func (*CatalogItem) String ¶
func (c *CatalogItem) String() string
func (*CatalogItem) UnmarshalJSON ¶
func (c *CatalogItem) UnmarshalJSON(data []byte) error
type CatalogItemFoodAndBeverageDetails ¶
type CatalogItemFoodAndBeverageDetails struct {
// The calorie count (in the unit of kcal) for the `FOOD_AND_BEV` type of items.
CalorieCount *int `json:"calorie_count,omitempty" url:"calorie_count,omitempty"`
// The dietary preferences for the `FOOD_AND_BEV` item.
DietaryPreferences []*CatalogItemFoodAndBeverageDetailsDietaryPreference `json:"dietary_preferences,omitempty" url:"dietary_preferences,omitempty"`
// The ingredients for the `FOOD_AND_BEV` type item.
Ingredients []*CatalogItemFoodAndBeverageDetailsIngredient `json:"ingredients,omitempty" url:"ingredients,omitempty"`
// contains filtered or unexported fields
}
The food and beverage-specific details of a `FOOD_AND_BEV` item.
func (*CatalogItemFoodAndBeverageDetails) GetCalorieCount ¶
func (c *CatalogItemFoodAndBeverageDetails) GetCalorieCount() *int
func (*CatalogItemFoodAndBeverageDetails) GetDietaryPreferences ¶
func (c *CatalogItemFoodAndBeverageDetails) GetDietaryPreferences() []*CatalogItemFoodAndBeverageDetailsDietaryPreference
func (*CatalogItemFoodAndBeverageDetails) GetExtraProperties ¶
func (c *CatalogItemFoodAndBeverageDetails) GetExtraProperties() map[string]interface{}
func (*CatalogItemFoodAndBeverageDetails) GetIngredients ¶
func (c *CatalogItemFoodAndBeverageDetails) GetIngredients() []*CatalogItemFoodAndBeverageDetailsIngredient
func (*CatalogItemFoodAndBeverageDetails) String ¶
func (c *CatalogItemFoodAndBeverageDetails) String() string
func (*CatalogItemFoodAndBeverageDetails) UnmarshalJSON ¶
func (c *CatalogItemFoodAndBeverageDetails) UnmarshalJSON(data []byte) error
type CatalogItemFoodAndBeverageDetailsDietaryPreference ¶
type CatalogItemFoodAndBeverageDetailsDietaryPreference struct {
// The dietary preference type. Supported values include `STANDARD` and `CUSTOM` as specified in `FoodAndBeverageDetails.DietaryPreferenceType`.
// See [DietaryPreferenceType](#type-dietarypreferencetype) for possible values
Type *CatalogItemFoodAndBeverageDetailsDietaryPreferenceType `json:"type,omitempty" url:"type,omitempty"`
// The name of the dietary preference from a standard pre-defined list. This should be null if it's a custom dietary preference.
// See [StandardDietaryPreference](#type-standarddietarypreference) for possible values
StandardName *CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference `json:"standard_name,omitempty" url:"standard_name,omitempty"`
// The name of a user-defined custom dietary preference. This should be null if it's a standard dietary preference.
CustomName *string `json:"custom_name,omitempty" url:"custom_name,omitempty"`
// contains filtered or unexported fields
}
Dietary preferences that can be assigned to an `FOOD_AND_BEV` item and its ingredients.
func (*CatalogItemFoodAndBeverageDetailsDietaryPreference) GetCustomName ¶
func (c *CatalogItemFoodAndBeverageDetailsDietaryPreference) GetCustomName() *string
func (*CatalogItemFoodAndBeverageDetailsDietaryPreference) GetExtraProperties ¶
func (c *CatalogItemFoodAndBeverageDetailsDietaryPreference) GetExtraProperties() map[string]interface{}
func (*CatalogItemFoodAndBeverageDetailsDietaryPreference) GetStandardName ¶
func (*CatalogItemFoodAndBeverageDetailsDietaryPreference) String ¶
func (c *CatalogItemFoodAndBeverageDetailsDietaryPreference) String() string
func (*CatalogItemFoodAndBeverageDetailsDietaryPreference) UnmarshalJSON ¶
func (c *CatalogItemFoodAndBeverageDetailsDietaryPreference) UnmarshalJSON(data []byte) error
type CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference ¶
type CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference string
Standard dietary preferences for food and beverage items that are recommended on item creation.
const ( CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreferenceDairyFree CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference = "DAIRY_FREE" CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreferenceGlutenFree CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference = "GLUTEN_FREE" CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreferenceHalal CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference = "HALAL" CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreferenceKosher CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference = "KOSHER" CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreferenceNutFree CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference = "NUT_FREE" CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreferenceVegan CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference = "VEGAN" CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreferenceVegetarian CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference = "VEGETARIAN" )
func NewCatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreferenceFromString ¶
func NewCatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreferenceFromString(s string) (CatalogItemFoodAndBeverageDetailsDietaryPreferenceStandardDietaryPreference, error)
type CatalogItemFoodAndBeverageDetailsDietaryPreferenceType ¶
type CatalogItemFoodAndBeverageDetailsDietaryPreferenceType string
The type of dietary preference for the `FOOD_AND_BEV` type of items and integredients.
const ( CatalogItemFoodAndBeverageDetailsDietaryPreferenceTypeStandard CatalogItemFoodAndBeverageDetailsDietaryPreferenceType = "STANDARD" CatalogItemFoodAndBeverageDetailsDietaryPreferenceTypeCustom CatalogItemFoodAndBeverageDetailsDietaryPreferenceType = "CUSTOM" )
func NewCatalogItemFoodAndBeverageDetailsDietaryPreferenceTypeFromString ¶
func NewCatalogItemFoodAndBeverageDetailsDietaryPreferenceTypeFromString(s string) (CatalogItemFoodAndBeverageDetailsDietaryPreferenceType, error)
type CatalogItemFoodAndBeverageDetailsIngredient ¶
type CatalogItemFoodAndBeverageDetailsIngredient struct {
// The dietary preference type of the ingredient. Supported values include `STANDARD` and `CUSTOM` as specified in `FoodAndBeverageDetails.DietaryPreferenceType`.
// See [DietaryPreferenceType](#type-dietarypreferencetype) for possible values
Type *CatalogItemFoodAndBeverageDetailsDietaryPreferenceType `json:"type,omitempty" url:"type,omitempty"`
// The name of the ingredient from a standard pre-defined list. This should be null if it's a custom dietary preference.
// See [StandardIngredient](#type-standardingredient) for possible values
StandardName *CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient `json:"standard_name,omitempty" url:"standard_name,omitempty"`
// The name of a custom user-defined ingredient. This should be null if it's a standard dietary preference.
CustomName *string `json:"custom_name,omitempty" url:"custom_name,omitempty"`
// contains filtered or unexported fields
}
Describes the ingredient used in a `FOOD_AND_BEV` item.
func (*CatalogItemFoodAndBeverageDetailsIngredient) GetCustomName ¶
func (c *CatalogItemFoodAndBeverageDetailsIngredient) GetCustomName() *string
func (*CatalogItemFoodAndBeverageDetailsIngredient) GetExtraProperties ¶
func (c *CatalogItemFoodAndBeverageDetailsIngredient) GetExtraProperties() map[string]interface{}
func (*CatalogItemFoodAndBeverageDetailsIngredient) GetStandardName ¶
func (c *CatalogItemFoodAndBeverageDetailsIngredient) GetStandardName() *CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient
func (*CatalogItemFoodAndBeverageDetailsIngredient) String ¶
func (c *CatalogItemFoodAndBeverageDetailsIngredient) String() string
func (*CatalogItemFoodAndBeverageDetailsIngredient) UnmarshalJSON ¶
func (c *CatalogItemFoodAndBeverageDetailsIngredient) UnmarshalJSON(data []byte) error
type CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient ¶
type CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient string
Standard ingredients for food and beverage items that are recommended on item creation.
const ( CatalogItemFoodAndBeverageDetailsIngredientStandardIngredientCelery CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient = "CELERY" CatalogItemFoodAndBeverageDetailsIngredientStandardIngredientCrustaceans CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient = "CRUSTACEANS" CatalogItemFoodAndBeverageDetailsIngredientStandardIngredientEggs CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient = "EGGS" CatalogItemFoodAndBeverageDetailsIngredientStandardIngredientFish CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient = "FISH" CatalogItemFoodAndBeverageDetailsIngredientStandardIngredientGluten CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient = "GLUTEN" CatalogItemFoodAndBeverageDetailsIngredientStandardIngredientLupin CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient = "LUPIN" CatalogItemFoodAndBeverageDetailsIngredientStandardIngredientMilk CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient = "MILK" CatalogItemFoodAndBeverageDetailsIngredientStandardIngredientMolluscs CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient = "MOLLUSCS" CatalogItemFoodAndBeverageDetailsIngredientStandardIngredientMustard CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient = "MUSTARD" CatalogItemFoodAndBeverageDetailsIngredientStandardIngredientPeanuts CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient = "PEANUTS" CatalogItemFoodAndBeverageDetailsIngredientStandardIngredientSesame CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient = "SESAME" CatalogItemFoodAndBeverageDetailsIngredientStandardIngredientSoy CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient = "SOY" CatalogItemFoodAndBeverageDetailsIngredientStandardIngredientSulphites CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient = "SULPHITES" CatalogItemFoodAndBeverageDetailsIngredientStandardIngredientTreeNuts CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient = "TREE_NUTS" )
func NewCatalogItemFoodAndBeverageDetailsIngredientStandardIngredientFromString ¶
func NewCatalogItemFoodAndBeverageDetailsIngredientStandardIngredientFromString(s string) (CatalogItemFoodAndBeverageDetailsIngredientStandardIngredient, error)
type CatalogItemModifierListInfo ¶
type CatalogItemModifierListInfo struct {
// The ID of the `CatalogModifierList` controlled by this `CatalogModifierListInfo`.
ModifierListID string `json:"modifier_list_id" url:"modifier_list_id"`
// A set of `CatalogModifierOverride` objects that override default modifier settings for this item.
ModifierOverrides []*CatalogModifierOverride `json:"modifier_overrides,omitempty" url:"modifier_overrides,omitempty"`
// The minimum number of modifiers that must be selected from this modifier list.
// Values:
//
// - 0: No selection is required.
// - -1: Default value, the attribute was not set by the client. When `max_selected_modifiers` is
// also -1, use the minimum and maximum selection values set on the `CatalogItemModifierList`.
// - >0: The required minimum modifier selections. This can be larger than the total `CatalogModifiers` when `allow_quantities` is enabled.
// - < -1: Invalid. Treated as no selection required.
MinSelectedModifiers *int `json:"min_selected_modifiers,omitempty" url:"min_selected_modifiers,omitempty"`
// The maximum number of modifiers that can be selected.
// Values:
//
// - 0: No maximum limit.
// - -1: Default value, the attribute was not set by the client. When `min_selected_modifiers` is
// also -1, use the minimum and maximum selection values set on the `CatalogItemModifierList`.
// - >0: The maximum total modifier selections. This can be larger than the total `CatalogModifiers` when `allow_quantities` is enabled.
// - < -1: Invalid. Treated as no maximum limit.
MaxSelectedModifiers *int `json:"max_selected_modifiers,omitempty" url:"max_selected_modifiers,omitempty"`
// If `true`, enable this `CatalogModifierList`. The default value is `true`.
Enabled *bool `json:"enabled,omitempty" url:"enabled,omitempty"`
// The position of this `CatalogItemModifierListInfo` object within the `modifier_list_info` list applied
// to a `CatalogItem` instance.
Ordinal *int `json:"ordinal,omitempty" url:"ordinal,omitempty"`
AllowQuantities interface{} `json:"allow_quantities,omitempty" url:"allow_quantities,omitempty"`
IsConversational interface{} `json:"is_conversational,omitempty" url:"is_conversational,omitempty"`
HiddenFromCustomerOverride interface{} `json:"hidden_from_customer_override,omitempty" url:"hidden_from_customer_override,omitempty"`
// contains filtered or unexported fields
}
Controls how a modifier list is applied to a specific item. This object allows for item-specific customization of modifier list behavior and provides the ability to override global modifier list settings.
func (*CatalogItemModifierListInfo) GetAllowQuantities ¶ added in v1.5.0
func (c *CatalogItemModifierListInfo) GetAllowQuantities() interface{}
func (*CatalogItemModifierListInfo) GetEnabled ¶
func (c *CatalogItemModifierListInfo) GetEnabled() *bool
func (*CatalogItemModifierListInfo) GetExtraProperties ¶
func (c *CatalogItemModifierListInfo) GetExtraProperties() map[string]interface{}
func (*CatalogItemModifierListInfo) GetHiddenFromCustomerOverride ¶ added in v1.5.0
func (c *CatalogItemModifierListInfo) GetHiddenFromCustomerOverride() interface{}
func (*CatalogItemModifierListInfo) GetIsConversational ¶ added in v1.5.0
func (c *CatalogItemModifierListInfo) GetIsConversational() interface{}
func (*CatalogItemModifierListInfo) GetMaxSelectedModifiers ¶
func (c *CatalogItemModifierListInfo) GetMaxSelectedModifiers() *int
func (*CatalogItemModifierListInfo) GetMinSelectedModifiers ¶
func (c *CatalogItemModifierListInfo) GetMinSelectedModifiers() *int
func (*CatalogItemModifierListInfo) GetModifierListID ¶
func (c *CatalogItemModifierListInfo) GetModifierListID() string
func (*CatalogItemModifierListInfo) GetModifierOverrides ¶
func (c *CatalogItemModifierListInfo) GetModifierOverrides() []*CatalogModifierOverride
func (*CatalogItemModifierListInfo) GetOrdinal ¶
func (c *CatalogItemModifierListInfo) GetOrdinal() *int
func (*CatalogItemModifierListInfo) String ¶
func (c *CatalogItemModifierListInfo) String() string
func (*CatalogItemModifierListInfo) UnmarshalJSON ¶
func (c *CatalogItemModifierListInfo) UnmarshalJSON(data []byte) error
type CatalogItemOption ¶
type CatalogItemOption struct {
// The item option's display name for the seller. Must be unique across
// all item options. This is a searchable attribute for use in applicable query filters.
Name *string `json:"name,omitempty" url:"name,omitempty"`
// The item option's display name for the customer. This is a searchable attribute for use in applicable query filters.
DisplayName *string `json:"display_name,omitempty" url:"display_name,omitempty"`
// The item option's human-readable description. Displayed in the Square
// Point of Sale app for the seller and in the Online Store or on receipts for
// the buyer. This is a searchable attribute for use in applicable query filters.
Description *string `json:"description,omitempty" url:"description,omitempty"`
// If true, display colors for entries in `values` when present.
ShowColors *bool `json:"show_colors,omitempty" url:"show_colors,omitempty"`
// A list of CatalogObjects containing the
// `CatalogItemOptionValue`s for this item.
Values []*CatalogObject `json:"values,omitempty" url:"values,omitempty"`
// contains filtered or unexported fields
}
A group of variations for a `CatalogItem`.
func (*CatalogItemOption) GetDescription ¶
func (c *CatalogItemOption) GetDescription() *string
func (*CatalogItemOption) GetDisplayName ¶
func (c *CatalogItemOption) GetDisplayName() *string
func (*CatalogItemOption) GetExtraProperties ¶
func (c *CatalogItemOption) GetExtraProperties() map[string]interface{}
func (*CatalogItemOption) GetName ¶
func (c *CatalogItemOption) GetName() *string
func (*CatalogItemOption) GetShowColors ¶
func (c *CatalogItemOption) GetShowColors() *bool
func (*CatalogItemOption) GetValues ¶
func (c *CatalogItemOption) GetValues() []*CatalogObject
func (*CatalogItemOption) String ¶
func (c *CatalogItemOption) String() string
func (*CatalogItemOption) UnmarshalJSON ¶
func (c *CatalogItemOption) UnmarshalJSON(data []byte) error
type CatalogItemOptionForItem ¶
type CatalogItemOptionForItem struct {
// The unique id of the item option, used to form the dimensions of the item option matrix in a specified order.
ItemOptionID *string `json:"item_option_id,omitempty" url:"item_option_id,omitempty"`
// contains filtered or unexported fields
}
An option that can be assigned to an item.
For example, a t-shirt item may offer a color option or a size option.
func (*CatalogItemOptionForItem) GetExtraProperties ¶
func (c *CatalogItemOptionForItem) GetExtraProperties() map[string]interface{}
func (*CatalogItemOptionForItem) GetItemOptionID ¶
func (c *CatalogItemOptionForItem) GetItemOptionID() *string
func (*CatalogItemOptionForItem) String ¶
func (c *CatalogItemOptionForItem) String() string
func (*CatalogItemOptionForItem) UnmarshalJSON ¶
func (c *CatalogItemOptionForItem) UnmarshalJSON(data []byte) error
type CatalogItemOptionValue ¶
type CatalogItemOptionValue struct {
// Unique ID of the associated item option.
ItemOptionID *string `json:"item_option_id,omitempty" url:"item_option_id,omitempty"`
// Name of this item option value. This is a searchable attribute for use in applicable query filters.
Name *string `json:"name,omitempty" url:"name,omitempty"`
// A human-readable description for the option value. This is a searchable attribute for use in applicable query filters.
Description *string `json:"description,omitempty" url:"description,omitempty"`
// The HTML-supported hex color for the item option (e.g., "#ff8d4e85").
// Only displayed if `show_colors` is enabled on the parent `ItemOption`. When
// left unset, `color` defaults to white ("#ffffff") when `show_colors` is
// enabled on the parent `ItemOption`.
Color *string `json:"color,omitempty" url:"color,omitempty"`
// Determines where this option value appears in a list of option values.
Ordinal *int `json:"ordinal,omitempty" url:"ordinal,omitempty"`
// contains filtered or unexported fields
}
An enumerated value that can link a `CatalogItemVariation` to an item option as one of its item option values.
func (*CatalogItemOptionValue) GetColor ¶
func (c *CatalogItemOptionValue) GetColor() *string
func (*CatalogItemOptionValue) GetDescription ¶
func (c *CatalogItemOptionValue) GetDescription() *string
func (*CatalogItemOptionValue) GetExtraProperties ¶
func (c *CatalogItemOptionValue) GetExtraProperties() map[string]interface{}
func (*CatalogItemOptionValue) GetItemOptionID ¶
func (c *CatalogItemOptionValue) GetItemOptionID() *string
func (*CatalogItemOptionValue) GetName ¶
func (c *CatalogItemOptionValue) GetName() *string
func (*CatalogItemOptionValue) GetOrdinal ¶
func (c *CatalogItemOptionValue) GetOrdinal() *int
func (*CatalogItemOptionValue) String ¶
func (c *CatalogItemOptionValue) String() string
func (*CatalogItemOptionValue) UnmarshalJSON ¶
func (c *CatalogItemOptionValue) UnmarshalJSON(data []byte) error
type CatalogItemOptionValueForItemVariation ¶
type CatalogItemOptionValueForItemVariation struct {
// The unique id of an item option.
ItemOptionID *string `json:"item_option_id,omitempty" url:"item_option_id,omitempty"`
// The unique id of the selected value for the item option.
ItemOptionValueID *string `json:"item_option_value_id,omitempty" url:"item_option_value_id,omitempty"`
// contains filtered or unexported fields
}
A `CatalogItemOptionValue` links an item variation to an item option as an item option value. For example, a t-shirt item may offer a color option and a size option. An item option value would represent each variation of t-shirt: For example, "Color:Red, Size:Small" or "Color:Blue, Size:Medium".
func (*CatalogItemOptionValueForItemVariation) GetExtraProperties ¶
func (c *CatalogItemOptionValueForItemVariation) GetExtraProperties() map[string]interface{}
func (*CatalogItemOptionValueForItemVariation) GetItemOptionID ¶
func (c *CatalogItemOptionValueForItemVariation) GetItemOptionID() *string
func (*CatalogItemOptionValueForItemVariation) GetItemOptionValueID ¶
func (c *CatalogItemOptionValueForItemVariation) GetItemOptionValueID() *string
func (*CatalogItemOptionValueForItemVariation) String ¶
func (c *CatalogItemOptionValueForItemVariation) String() string
func (*CatalogItemOptionValueForItemVariation) UnmarshalJSON ¶
func (c *CatalogItemOptionValueForItemVariation) UnmarshalJSON(data []byte) error
type CatalogItemProductType ¶
type CatalogItemProductType string
The type of a CatalogItem. Connect V2 only allows the creation of `REGULAR` or `APPOINTMENTS_SERVICE` items.
const ( CatalogItemProductTypeRegular CatalogItemProductType = "REGULAR" CatalogItemProductTypeGiftCard CatalogItemProductType = "GIFT_CARD" CatalogItemProductTypeAppointmentsService CatalogItemProductType = "APPOINTMENTS_SERVICE" CatalogItemProductTypeFoodAndBev CatalogItemProductType = "FOOD_AND_BEV" CatalogItemProductTypeEvent CatalogItemProductType = "EVENT" CatalogItemProductTypeDigital CatalogItemProductType = "DIGITAL" CatalogItemProductTypeDonation CatalogItemProductType = "DONATION" CatalogItemProductTypeLegacySquareOnlineService CatalogItemProductType = "LEGACY_SQUARE_ONLINE_SERVICE" CatalogItemProductTypeLegacySquareOnlineMembership CatalogItemProductType = "LEGACY_SQUARE_ONLINE_MEMBERSHIP" )
func NewCatalogItemProductTypeFromString ¶
func NewCatalogItemProductTypeFromString(s string) (CatalogItemProductType, error)
func (CatalogItemProductType) Ptr ¶
func (c CatalogItemProductType) Ptr() *CatalogItemProductType
type CatalogItemVariation ¶
type CatalogItemVariation struct {
// The ID of the `CatalogItem` associated with this item variation.
ItemID *string `json:"item_id,omitempty" url:"item_id,omitempty"`
// The item variation's name. This is a searchable attribute for use in applicable query filters.
//
// Its value has a maximum length of 255 Unicode code points. However, when the parent [item](entity:CatalogItem)
// uses [item options](entity:CatalogItemOption), this attribute is auto-generated, read-only, and can be
// longer than 255 Unicode code points.
Name *string `json:"name,omitempty" url:"name,omitempty"`
// The item variation's SKU, if any. This is a searchable attribute for use in applicable query filters.
Sku *string `json:"sku,omitempty" url:"sku,omitempty"`
// The universal product code (UPC) of the item variation, if any. This is a searchable attribute for use in applicable query filters.
//
// The value of this attribute should be a number of 12-14 digits long. This restriction is enforced on the Square Seller Dashboard,
// Square Point of Sale or Retail Point of Sale apps, where this attribute shows in the GTIN field. If a non-compliant UPC value is assigned
// to this attribute using the API, the value is not editable on the Seller Dashboard, Square Point of Sale or Retail Point of Sale apps
// unless it is updated to fit the expected format.
Upc *string `json:"upc,omitempty" url:"upc,omitempty"`
// The order in which this item variation should be displayed. This value is read-only. On writes, the ordinal
// for each item variation within a parent `CatalogItem` is set according to the item variations's
// position. On reads, the value is not guaranteed to be sequential or unique.
Ordinal *int `json:"ordinal,omitempty" url:"ordinal,omitempty"`
// Indicates whether the item variation's price is fixed or determined at the time
// of sale.
// See [CatalogPricingType](#type-catalogpricingtype) for possible values
PricingType *CatalogPricingType `json:"pricing_type,omitempty" url:"pricing_type,omitempty"`
// The item variation's price, if fixed pricing is used.
PriceMoney *Money `json:"price_money,omitempty" url:"price_money,omitempty"`
// Per-location price and inventory overrides.
LocationOverrides []*ItemVariationLocationOverrides `json:"location_overrides,omitempty" url:"location_overrides,omitempty"`
// If `true`, inventory tracking is active for the variation.
TrackInventory *bool `json:"track_inventory,omitempty" url:"track_inventory,omitempty"`
// Indicates whether the item variation displays an alert when its inventory quantity is less than or equal
// to its `inventory_alert_threshold`.
// See [InventoryAlertType](#type-inventoryalerttype) for possible values
InventoryAlertType *InventoryAlertType `json:"inventory_alert_type,omitempty" url:"inventory_alert_type,omitempty"`
// If the inventory quantity for the variation is less than or equal to this value and `inventory_alert_type`
// is `LOW_QUANTITY`, the variation displays an alert in the merchant dashboard.
//
// This value is always an integer.
InventoryAlertThreshold *int64 `json:"inventory_alert_threshold,omitempty" url:"inventory_alert_threshold,omitempty"`
// Arbitrary user metadata to associate with the item variation. This attribute value length is of Unicode code points.
UserData *string `json:"user_data,omitempty" url:"user_data,omitempty"`
// If the `CatalogItem` that owns this item variation is of type
// `APPOINTMENTS_SERVICE`, then this is the duration of the service in milliseconds. For
// example, a 30 minute appointment would have the value `1800000`, which is equal to
// 30 (minutes) * 60 (seconds per minute) * 1000 (milliseconds per second).
ServiceDuration *int64 `json:"service_duration,omitempty" url:"service_duration,omitempty"`
// If the `CatalogItem` that owns this item variation is of type
// `APPOINTMENTS_SERVICE`, a bool representing whether this service is available for booking.
AvailableForBooking *bool `json:"available_for_booking,omitempty" url:"available_for_booking,omitempty"`
// List of item option values associated with this item variation. Listed
// in the same order as the item options of the parent item.
ItemOptionValues []*CatalogItemOptionValueForItemVariation `json:"item_option_values,omitempty" url:"item_option_values,omitempty"`
// ID of the ‘CatalogMeasurementUnit’ that is used to measure the quantity
// sold of this item variation. If left unset, the item will be sold in
// whole quantities.
MeasurementUnitID *string `json:"measurement_unit_id,omitempty" url:"measurement_unit_id,omitempty"`
// Whether this variation can be sold. The inventory count of a sellable variation indicates
// the number of units available for sale. When a variation is both stockable and sellable,
// its sellable inventory count can be smaller than or equal to its stockable count.
Sellable *bool `json:"sellable,omitempty" url:"sellable,omitempty"`
// Whether stock is counted directly on this variation (TRUE) or only on its components (FALSE).
// When a variation is both stockable and sellable, the inventory count of a stockable variation keeps track of the number of units of this variation in stock
// and is not an indicator of the number of units of the variation that can be sold.
Stockable *bool `json:"stockable,omitempty" url:"stockable,omitempty"`
// The IDs of images associated with this `CatalogItemVariation` instance.
// These images will be shown to customers in Square Online Store.
ImageIDs []string `json:"image_ids,omitempty" url:"image_ids,omitempty"`
// Tokens of employees that can perform the service represented by this variation. Only valid for
// variations of type `APPOINTMENTS_SERVICE`.
TeamMemberIDs []string `json:"team_member_ids,omitempty" url:"team_member_ids,omitempty"`
// The unit conversion rule, as prescribed by the [CatalogStockConversion](entity:CatalogStockConversion) type,
// that describes how this non-stockable (i.e., sellable/receivable) item variation is converted
// to/from the stockable item variation sharing the same parent item. With the stock conversion,
// you can accurately track inventory when an item variation is sold in one unit, but stocked in
// another unit.
StockableConversion *CatalogStockConversion `json:"stockable_conversion,omitempty" url:"stockable_conversion,omitempty"`
// contains filtered or unexported fields
}
An item variation, representing a product for sale, in the Catalog object model. Each [item](entity:CatalogItem) must have at least one item variation and can have at most 250 item variations.
An item variation can be sellable, stockable, or both if it has a unit of measure for its count for the sold number of the variation, the stocked number of the variation, or both. For example, when a variation representing wine is stocked and sold by the bottle, the variation is both stockable and sellable. But when a variation of the wine is sold by the glass, the sold units cannot be used as a measure of the stocked units. This by-the-glass variation is sellable, but not stockable. To accurately keep track of the wine's inventory count at any time, the sellable count must be converted to stockable count. Typically, the seller defines this unit conversion. For example, 1 bottle equals 5 glasses. The Square API exposes the `stockable_conversion` property on the variation to specify the conversion. Thus, when two glasses of the wine are sold, the sellable count decreases by 2, and the stockable count automatically decreases by 0.4 bottle according to the conversion.
func (*CatalogItemVariation) GetAvailableForBooking ¶
func (c *CatalogItemVariation) GetAvailableForBooking() *bool
func (*CatalogItemVariation) GetExtraProperties ¶
func (c *CatalogItemVariation) GetExtraProperties() map[string]interface{}
func (*CatalogItemVariation) GetImageIDs ¶
func (c *CatalogItemVariation) GetImageIDs() []string
func (*CatalogItemVariation) GetInventoryAlertThreshold ¶
func (c *CatalogItemVariation) GetInventoryAlertThreshold() *int64
func (*CatalogItemVariation) GetInventoryAlertType ¶
func (c *CatalogItemVariation) GetInventoryAlertType() *InventoryAlertType
func (*CatalogItemVariation) GetItemID ¶
func (c *CatalogItemVariation) GetItemID() *string
func (*CatalogItemVariation) GetItemOptionValues ¶
func (c *CatalogItemVariation) GetItemOptionValues() []*CatalogItemOptionValueForItemVariation
func (*CatalogItemVariation) GetLocationOverrides ¶
func (c *CatalogItemVariation) GetLocationOverrides() []*ItemVariationLocationOverrides
func (*CatalogItemVariation) GetMeasurementUnitID ¶
func (c *CatalogItemVariation) GetMeasurementUnitID() *string
func (*CatalogItemVariation) GetName ¶
func (c *CatalogItemVariation) GetName() *string
func (*CatalogItemVariation) GetOrdinal ¶
func (c *CatalogItemVariation) GetOrdinal() *int
func (*CatalogItemVariation) GetPriceMoney ¶
func (c *CatalogItemVariation) GetPriceMoney() *Money
func (*CatalogItemVariation) GetPricingType ¶
func (c *CatalogItemVariation) GetPricingType() *CatalogPricingType
func (*CatalogItemVariation) GetSellable ¶
func (c *CatalogItemVariation) GetSellable() *bool
func (*CatalogItemVariation) GetServiceDuration ¶
func (c *CatalogItemVariation) GetServiceDuration() *int64
func (*CatalogItemVariation) GetSku ¶
func (c *CatalogItemVariation) GetSku() *string
func (*CatalogItemVariation) GetStockable ¶
func (c *CatalogItemVariation) GetStockable() *bool
func (*CatalogItemVariation) GetStockableConversion ¶
func (c *CatalogItemVariation) GetStockableConversion() *CatalogStockConversion
func (*CatalogItemVariation) GetTeamMemberIDs ¶
func (c *CatalogItemVariation) GetTeamMemberIDs() []string
func (*CatalogItemVariation) GetTrackInventory ¶
func (c *CatalogItemVariation) GetTrackInventory() *bool
func (*CatalogItemVariation) GetUpc ¶
func (c *CatalogItemVariation) GetUpc() *string
func (*CatalogItemVariation) GetUserData ¶
func (c *CatalogItemVariation) GetUserData() *string
func (*CatalogItemVariation) String ¶
func (c *CatalogItemVariation) String() string
func (*CatalogItemVariation) UnmarshalJSON ¶
func (c *CatalogItemVariation) UnmarshalJSON(data []byte) error
type CatalogListRequest ¶
type CatalogListRequest = ListCatalogRequest
CatalogListRequest is an alias for ListCatalogRequest.
type CatalogMeasurementUnit ¶
type CatalogMeasurementUnit struct {
// Indicates the unit used to measure the quantity of a catalog item variation.
MeasurementUnit *MeasurementUnit `json:"measurement_unit,omitempty" url:"measurement_unit,omitempty"`
// An integer between 0 and 5 that represents the maximum number of
// positions allowed after the decimal in quantities measured with this unit.
// For example:
//
// - if the precision is 0, the quantity can be 1, 2, 3, etc.
// - if the precision is 1, the quantity can be 0.1, 0.2, etc.
// - if the precision is 2, the quantity can be 0.01, 0.12, etc.
//
// Default: 3
Precision *int `json:"precision,omitempty" url:"precision,omitempty"`
// contains filtered or unexported fields
}
Represents the unit used to measure a `CatalogItemVariation` and specifies the precision for decimal quantities.
func (*CatalogMeasurementUnit) GetExtraProperties ¶
func (c *CatalogMeasurementUnit) GetExtraProperties() map[string]interface{}
func (*CatalogMeasurementUnit) GetMeasurementUnit ¶
func (c *CatalogMeasurementUnit) GetMeasurementUnit() *MeasurementUnit
func (*CatalogMeasurementUnit) GetPrecision ¶
func (c *CatalogMeasurementUnit) GetPrecision() *int
func (*CatalogMeasurementUnit) String ¶
func (c *CatalogMeasurementUnit) String() string
func (*CatalogMeasurementUnit) UnmarshalJSON ¶
func (c *CatalogMeasurementUnit) UnmarshalJSON(data []byte) error
type CatalogModifier ¶
type CatalogModifier struct {
// The modifier name. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points.
Name *string `json:"name,omitempty" url:"name,omitempty"`
// The modifier price.
PriceMoney *Money `json:"price_money,omitempty" url:"price_money,omitempty"`
// When `true`, this modifier is selected by default when displaying the modifier list.
// This setting can be overridden at the item level using `CatalogModifierListInfo.modifier_overrides`.
OnByDefault *bool `json:"on_by_default,omitempty" url:"on_by_default,omitempty"`
// Determines where this `CatalogModifier` appears in the `CatalogModifierList`.
Ordinal *int `json:"ordinal,omitempty" url:"ordinal,omitempty"`
// The ID of the `CatalogModifierList` associated with this modifier.
ModifierListID *string `json:"modifier_list_id,omitempty" url:"modifier_list_id,omitempty"`
// Location-specific price overrides.
LocationOverrides []*ModifierLocationOverrides `json:"location_overrides,omitempty" url:"location_overrides,omitempty"`
// The ID of the image associated with this `CatalogModifier` instance.
// Currently this image is not displayed by Square, but is free to be displayed in 3rd party applications.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// When `true`, this modifier is hidden from online ordering channels. This setting can be overridden at the item level using `CatalogModifierListInfo.modifier_overrides`.
HiddenOnline *bool `json:"hidden_online,omitempty" url:"hidden_online,omitempty"`
// contains filtered or unexported fields
}
A modifier that can be applied to items at the time of sale. For example, a cheese modifier for a burger, or a flavor modifier for a serving of ice cream.
func (*CatalogModifier) GetExtraProperties ¶
func (c *CatalogModifier) GetExtraProperties() map[string]interface{}
func (*CatalogModifier) GetHiddenOnline ¶ added in v1.5.0
func (c *CatalogModifier) GetHiddenOnline() *bool
func (*CatalogModifier) GetImageID ¶
func (c *CatalogModifier) GetImageID() *string
func (*CatalogModifier) GetLocationOverrides ¶
func (c *CatalogModifier) GetLocationOverrides() []*ModifierLocationOverrides
func (*CatalogModifier) GetModifierListID ¶
func (c *CatalogModifier) GetModifierListID() *string
func (*CatalogModifier) GetName ¶
func (c *CatalogModifier) GetName() *string
func (*CatalogModifier) GetOnByDefault ¶ added in v1.5.0
func (c *CatalogModifier) GetOnByDefault() *bool
func (*CatalogModifier) GetOrdinal ¶
func (c *CatalogModifier) GetOrdinal() *int
func (*CatalogModifier) GetPriceMoney ¶
func (c *CatalogModifier) GetPriceMoney() *Money
func (*CatalogModifier) String ¶
func (c *CatalogModifier) String() string
func (*CatalogModifier) UnmarshalJSON ¶
func (c *CatalogModifier) UnmarshalJSON(data []byte) error
type CatalogModifierList ¶
type CatalogModifierList struct {
// The name of the `CatalogModifierList` instance. This is a searchable attribute for use in applicable query filters, and its value length is of
// Unicode code points.
Name *string `json:"name,omitempty" url:"name,omitempty"`
// The position of this `CatalogModifierList` within a list of `CatalogModifierList` instances.
Ordinal *int `json:"ordinal,omitempty" url:"ordinal,omitempty"`
// __Deprecated__: Indicates whether a single (`SINGLE`) modifier or multiple (`MULTIPLE`) modifiers can be selected. Use
// `min_selected_modifiers` and `max_selected_modifiers` instead.
// See [CatalogModifierListSelectionType](#type-catalogmodifierlistselectiontype) for possible values
SelectionType *CatalogModifierListSelectionType `json:"selection_type,omitempty" url:"selection_type,omitempty"`
// A non-empty list of `CatalogModifier` objects to be included in the `CatalogModifierList`,
// for non text-based modifiers when the `modifier_type` attribute is `LIST`. Each element of this list
// is a `CatalogObject` instance of the `MODIFIER` type, containing the following attributes:
// “`
// {
// "id": "{{catalog_modifier_id}}",
// "type": "MODIFIER",
// "modifier_data": {{a CatalogModifier instance>}}
// }
// “`
Modifiers []*CatalogObject `json:"modifiers,omitempty" url:"modifiers,omitempty"`
// The IDs of images associated with this `CatalogModifierList` instance.
// Currently these images are not displayed on Square products, but may be displayed in 3rd-party applications.
ImageIDs []string `json:"image_ids,omitempty" url:"image_ids,omitempty"`
// When `true`, allows multiple quantities of the same modifier to be selected.
AllowQuantities *bool `json:"allow_quantities,omitempty" url:"allow_quantities,omitempty"`
// True if modifiers belonging to this list can be used conversationally.
IsConversational *bool `json:"is_conversational,omitempty" url:"is_conversational,omitempty"`
// The type of the modifier.
//
// When this `modifier_type` value is `TEXT`, the `CatalogModifierList` represents a text-based modifier.
// When this `modifier_type` value is `LIST`, the `CatalogModifierList` contains a list of `CatalogModifier` objects.
// See [CatalogModifierListModifierType](#type-catalogmodifierlistmodifiertype) for possible values
ModifierType *CatalogModifierListModifierType `json:"modifier_type,omitempty" url:"modifier_type,omitempty"`
// The maximum length, in Unicode points, of the text string of the text-based modifier as represented by
// this `CatalogModifierList` object with the `modifier_type` set to `TEXT`.
MaxLength *int `json:"max_length,omitempty" url:"max_length,omitempty"`
// Whether the text string must be a non-empty string (`true`) or not (`false`) for a text-based modifier
// as represented by this `CatalogModifierList` object with the `modifier_type` set to `TEXT`.
TextRequired *bool `json:"text_required,omitempty" url:"text_required,omitempty"`
// A note for internal use by the business.
//
// For example, for a text-based modifier applied to a T-shirt item, if the buyer-supplied text of "Hello, Kitty!"
// is to be printed on the T-shirt, this `internal_name` attribute can be "Use italic face" as
// an instruction for the business to follow.
//
// For non text-based modifiers, this `internal_name` attribute can be
// used to include SKUs, internal codes, or supplemental descriptions for internal use.
InternalName *string `json:"internal_name,omitempty" url:"internal_name,omitempty"`
// The minimum number of modifiers that must be selected from this list. The value can be overridden with `CatalogItemModifierListInfo`.
//
// Values:
//
// - 0: No selection is required.
// - -1: Default value, the attribute was not set by the client. Treated as no selection required.
// - >0: The required minimum modifier selections. This can be larger than the total `CatalogModifiers` when `allow_quantities` is enabled.
// - < -1: Invalid. Treated as no selection required.
MinSelectedModifiers *int64 `json:"min_selected_modifiers,omitempty" url:"min_selected_modifiers,omitempty"`
// The maximum number of modifiers that must be selected from this list. The value can be overridden with `CatalogItemModifierListInfo`.
//
// Values:
//
// - 0: No maximum limit.
// - -1: Default value, the attribute was not set by the client. Treated as no maximum limit.
// - >0: The maximum total modifier selections. This can be larger than the total `CatalogModifiers` when `allow_quantities` is enabled.
// - < -1: Invalid. Treated as no maximum limit.
MaxSelectedModifiers *int64 `json:"max_selected_modifiers,omitempty" url:"max_selected_modifiers,omitempty"`
// If `true`, modifiers from this list are hidden from customer receipts. The default value is `false`.
// This setting can be overridden with `CatalogItemModifierListInfo.hidden_from_customer_override`.
HiddenFromCustomer *bool `json:"hidden_from_customer,omitempty" url:"hidden_from_customer,omitempty"`
// contains filtered or unexported fields
}
A container for a list of modifiers, or a text-based modifier. For text-based modifiers, this represents text configuration for an item. (For example, custom text to print on a t-shirt). For non text-based modifiers, this represents a list of modifiers that can be applied to items at the time of sale. (For example, a list of condiments for a hot dog, or a list of ice cream flavors). Each element of the modifier list is a `CatalogObject` instance of the `MODIFIER` type.
func (*CatalogModifierList) GetAllowQuantities ¶ added in v1.5.0
func (c *CatalogModifierList) GetAllowQuantities() *bool
func (*CatalogModifierList) GetExtraProperties ¶
func (c *CatalogModifierList) GetExtraProperties() map[string]interface{}
func (*CatalogModifierList) GetHiddenFromCustomer ¶ added in v1.5.0
func (c *CatalogModifierList) GetHiddenFromCustomer() *bool
func (*CatalogModifierList) GetImageIDs ¶
func (c *CatalogModifierList) GetImageIDs() []string
func (*CatalogModifierList) GetInternalName ¶
func (c *CatalogModifierList) GetInternalName() *string
func (*CatalogModifierList) GetIsConversational ¶ added in v1.5.0
func (c *CatalogModifierList) GetIsConversational() *bool
func (*CatalogModifierList) GetMaxLength ¶
func (c *CatalogModifierList) GetMaxLength() *int
func (*CatalogModifierList) GetMaxSelectedModifiers ¶ added in v1.5.0
func (c *CatalogModifierList) GetMaxSelectedModifiers() *int64
func (*CatalogModifierList) GetMinSelectedModifiers ¶ added in v1.5.0
func (c *CatalogModifierList) GetMinSelectedModifiers() *int64
func (*CatalogModifierList) GetModifierType ¶
func (c *CatalogModifierList) GetModifierType() *CatalogModifierListModifierType
func (*CatalogModifierList) GetModifiers ¶
func (c *CatalogModifierList) GetModifiers() []*CatalogObject
func (*CatalogModifierList) GetName ¶
func (c *CatalogModifierList) GetName() *string
func (*CatalogModifierList) GetOrdinal ¶
func (c *CatalogModifierList) GetOrdinal() *int
func (*CatalogModifierList) GetSelectionType ¶
func (c *CatalogModifierList) GetSelectionType() *CatalogModifierListSelectionType
func (*CatalogModifierList) GetTextRequired ¶
func (c *CatalogModifierList) GetTextRequired() *bool
func (*CatalogModifierList) String ¶
func (c *CatalogModifierList) String() string
func (*CatalogModifierList) UnmarshalJSON ¶
func (c *CatalogModifierList) UnmarshalJSON(data []byte) error
type CatalogModifierListModifierType ¶
type CatalogModifierListModifierType string
Defines the type of `CatalogModifierList`.
const ( CatalogModifierListModifierTypeList CatalogModifierListModifierType = "LIST" CatalogModifierListModifierTypeText CatalogModifierListModifierType = "TEXT" )
func NewCatalogModifierListModifierTypeFromString ¶
func NewCatalogModifierListModifierTypeFromString(s string) (CatalogModifierListModifierType, error)
func (CatalogModifierListModifierType) Ptr ¶
func (c CatalogModifierListModifierType) Ptr() *CatalogModifierListModifierType
type CatalogModifierListSelectionType ¶
type CatalogModifierListSelectionType string
Indicates whether a CatalogModifierList supports multiple selections.
const ( CatalogModifierListSelectionTypeSingle CatalogModifierListSelectionType = "SINGLE" CatalogModifierListSelectionTypeMultiple CatalogModifierListSelectionType = "MULTIPLE" )
func NewCatalogModifierListSelectionTypeFromString ¶
func NewCatalogModifierListSelectionTypeFromString(s string) (CatalogModifierListSelectionType, error)
func (CatalogModifierListSelectionType) Ptr ¶
func (c CatalogModifierListSelectionType) Ptr() *CatalogModifierListSelectionType
type CatalogModifierOverride ¶
type CatalogModifierOverride struct {
// The ID of the `CatalogModifier` whose default behavior is being overridden.
ModifierID string `json:"modifier_id" url:"modifier_id"`
// __Deprecated__: Use `on_by_default_override` instead.
OnByDefault *bool `json:"on_by_default,omitempty" url:"on_by_default,omitempty"`
HiddenOnlineOverride interface{} `json:"hidden_online_override,omitempty" url:"hidden_online_override,omitempty"`
OnByDefaultOverride interface{} `json:"on_by_default_override,omitempty" url:"on_by_default_override,omitempty"`
// contains filtered or unexported fields
}
Options to control how to override the default behavior of the specified modifier.
func (*CatalogModifierOverride) GetExtraProperties ¶
func (c *CatalogModifierOverride) GetExtraProperties() map[string]interface{}
func (*CatalogModifierOverride) GetHiddenOnlineOverride ¶ added in v1.5.0
func (c *CatalogModifierOverride) GetHiddenOnlineOverride() interface{}
func (*CatalogModifierOverride) GetModifierID ¶
func (c *CatalogModifierOverride) GetModifierID() string
func (*CatalogModifierOverride) GetOnByDefault ¶
func (c *CatalogModifierOverride) GetOnByDefault() *bool
func (*CatalogModifierOverride) GetOnByDefaultOverride ¶ added in v1.5.0
func (c *CatalogModifierOverride) GetOnByDefaultOverride() interface{}
func (*CatalogModifierOverride) String ¶
func (c *CatalogModifierOverride) String() string
func (*CatalogModifierOverride) UnmarshalJSON ¶
func (c *CatalogModifierOverride) UnmarshalJSON(data []byte) error
type CatalogObject ¶
type CatalogObject struct {
Type string
Item *CatalogObjectItem
Image *CatalogObjectImage
Category *CatalogObjectCategory
ItemVariation *CatalogObjectItemVariation
Tax *CatalogObjectTax
Discount *CatalogObjectDiscount
ModifierList *CatalogObjectModifierList
Modifier *CatalogObjectModifier
PricingRule *CatalogObjectPricingRule
ProductSet *CatalogObjectProductSet
TimePeriod *CatalogObjectTimePeriod
MeasurementUnit *CatalogObjectMeasurementUnit
SubscriptionPlanVariation *CatalogObjectSubscriptionPlanVariation
ItemOption *CatalogObjectItemOption
ItemOptionVal *CatalogObjectItemOptionValue
CustomAttributeDefinition *CatalogObjectCustomAttributeDefinition
QuickAmountsSettings *CatalogObjectQuickAmountsSettings
SubscriptionPlan *CatalogObjectSubscriptionPlan
AvailabilityPeriod *CatalogObjectAvailabilityPeriod
}
The wrapper object for the catalog entries of a given object type.
Depending on the `type` attribute value, a `CatalogObject` instance assumes a type-specific data to yield the corresponding type of catalog object.
For example, if `type=ITEM`, the `CatalogObject` instance must have the ITEM-specific data set on the `item_data` attribute. The resulting `CatalogObject` instance is also a `CatalogItem` instance.
In general, if `type=<OBJECT_TYPE>`, the `CatalogObject` instance must have the `<OBJECT_TYPE>`-specific data set on the `<object_type>_data` attribute. The resulting `CatalogObject` instance is also a `Catalog<ObjectType>` instance.
For a more detailed discussion of the Catalog data model, please see the [Design a Catalog](https://developer.squareup.com/docs/catalog-api/design-a-catalog) guide.
func (*CatalogObject) Accept ¶
func (c *CatalogObject) Accept(visitor CatalogObjectVisitor) error
func (*CatalogObject) GetAvailabilityPeriod ¶ added in v1.4.0
func (c *CatalogObject) GetAvailabilityPeriod() *CatalogObjectAvailabilityPeriod
func (*CatalogObject) GetCategory ¶
func (c *CatalogObject) GetCategory() *CatalogObjectCategory
func (*CatalogObject) GetCustomAttributeDefinition ¶
func (c *CatalogObject) GetCustomAttributeDefinition() *CatalogObjectCustomAttributeDefinition
func (*CatalogObject) GetDiscount ¶
func (c *CatalogObject) GetDiscount() *CatalogObjectDiscount
func (*CatalogObject) GetImage ¶
func (c *CatalogObject) GetImage() *CatalogObjectImage
func (*CatalogObject) GetItem ¶
func (c *CatalogObject) GetItem() *CatalogObjectItem
func (*CatalogObject) GetItemOption ¶
func (c *CatalogObject) GetItemOption() *CatalogObjectItemOption
func (*CatalogObject) GetItemOptionVal ¶
func (c *CatalogObject) GetItemOptionVal() *CatalogObjectItemOptionValue
func (*CatalogObject) GetItemVariation ¶
func (c *CatalogObject) GetItemVariation() *CatalogObjectItemVariation
func (*CatalogObject) GetMeasurementUnit ¶
func (c *CatalogObject) GetMeasurementUnit() *CatalogObjectMeasurementUnit
func (*CatalogObject) GetModifier ¶
func (c *CatalogObject) GetModifier() *CatalogObjectModifier
func (*CatalogObject) GetModifierList ¶
func (c *CatalogObject) GetModifierList() *CatalogObjectModifierList
func (*CatalogObject) GetPricingRule ¶
func (c *CatalogObject) GetPricingRule() *CatalogObjectPricingRule
func (*CatalogObject) GetProductSet ¶
func (c *CatalogObject) GetProductSet() *CatalogObjectProductSet
func (*CatalogObject) GetQuickAmountsSettings ¶
func (c *CatalogObject) GetQuickAmountsSettings() *CatalogObjectQuickAmountsSettings
func (*CatalogObject) GetSubscriptionPlan ¶
func (c *CatalogObject) GetSubscriptionPlan() *CatalogObjectSubscriptionPlan
func (*CatalogObject) GetSubscriptionPlanVariation ¶ added in v1.4.0
func (c *CatalogObject) GetSubscriptionPlanVariation() *CatalogObjectSubscriptionPlanVariation
func (*CatalogObject) GetTax ¶
func (c *CatalogObject) GetTax() *CatalogObjectTax
func (*CatalogObject) GetTimePeriod ¶
func (c *CatalogObject) GetTimePeriod() *CatalogObjectTimePeriod
func (*CatalogObject) GetType ¶
func (c *CatalogObject) GetType() string
func (CatalogObject) MarshalJSON ¶
func (c CatalogObject) MarshalJSON() ([]byte, error)
func (*CatalogObject) UnmarshalJSON ¶
func (c *CatalogObject) UnmarshalJSON(data []byte) error
type CatalogObjectAvailabilityPeriod ¶ added in v1.4.0
type CatalogObjectAvailabilityPeriod struct {
// An identifier to reference this object in the catalog. When a new `CatalogObject`
// is inserted, the client should set the id to a temporary identifier starting with
// a "`#`" character. Other objects being inserted or updated within the same request
// may use this identifier to refer to the new object.
//
// When the server receives the new object, it will supply a unique identifier that
// replaces the temporary identifier for all future references.
ID string `json:"id" url:"id"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// Structured data for a `CatalogAvailabilityPeriod`, set for CatalogObjects of type `AVAILABILITY_PERIOD`.
AvailabilityPeriodData *CatalogAvailabilityPeriod `json:"availability_period_data,omitempty" url:"availability_period_data,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogObjectAvailabilityPeriod) GetAbsentAtLocationIDs ¶ added in v1.4.0
func (c *CatalogObjectAvailabilityPeriod) GetAbsentAtLocationIDs() []string
func (*CatalogObjectAvailabilityPeriod) GetAvailabilityPeriodData ¶ added in v1.4.0
func (c *CatalogObjectAvailabilityPeriod) GetAvailabilityPeriodData() *CatalogAvailabilityPeriod
func (*CatalogObjectAvailabilityPeriod) GetCatalogV1IDs ¶ added in v1.4.0
func (c *CatalogObjectAvailabilityPeriod) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectAvailabilityPeriod) GetCustomAttributeValues ¶ added in v1.4.0
func (c *CatalogObjectAvailabilityPeriod) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectAvailabilityPeriod) GetExtraProperties ¶ added in v1.4.0
func (c *CatalogObjectAvailabilityPeriod) GetExtraProperties() map[string]interface{}
func (*CatalogObjectAvailabilityPeriod) GetID ¶ added in v1.4.0
func (c *CatalogObjectAvailabilityPeriod) GetID() string
func (*CatalogObjectAvailabilityPeriod) GetImageID ¶ added in v1.4.0
func (c *CatalogObjectAvailabilityPeriod) GetImageID() *string
func (*CatalogObjectAvailabilityPeriod) GetIsDeleted ¶ added in v1.4.0
func (c *CatalogObjectAvailabilityPeriod) GetIsDeleted() *bool
func (*CatalogObjectAvailabilityPeriod) GetPresentAtAllLocations ¶ added in v1.4.0
func (c *CatalogObjectAvailabilityPeriod) GetPresentAtAllLocations() *bool
func (*CatalogObjectAvailabilityPeriod) GetPresentAtLocationIDs ¶ added in v1.4.0
func (c *CatalogObjectAvailabilityPeriod) GetPresentAtLocationIDs() []string
func (*CatalogObjectAvailabilityPeriod) GetUpdatedAt ¶ added in v1.4.0
func (c *CatalogObjectAvailabilityPeriod) GetUpdatedAt() *string
func (*CatalogObjectAvailabilityPeriod) GetVersion ¶ added in v1.4.0
func (c *CatalogObjectAvailabilityPeriod) GetVersion() *int64
func (*CatalogObjectAvailabilityPeriod) String ¶ added in v1.4.0
func (c *CatalogObjectAvailabilityPeriod) String() string
func (*CatalogObjectAvailabilityPeriod) UnmarshalJSON ¶ added in v1.4.0
func (c *CatalogObjectAvailabilityPeriod) UnmarshalJSON(data []byte) error
type CatalogObjectBase ¶
type CatalogObjectBase struct {
// An identifier to reference this object in the catalog. When a new `CatalogObject`
// is inserted, the client should set the id to a temporary identifier starting with
// a "`#`" character. Other objects being inserted or updated within the same request
// may use this identifier to refer to the new object.
//
// When the server receives the new object, it will supply a unique identifier that
// replaces the temporary identifier for all future references.
ID string `json:"id" url:"id"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogObjectBase) GetAbsentAtLocationIDs ¶
func (c *CatalogObjectBase) GetAbsentAtLocationIDs() []string
func (*CatalogObjectBase) GetCatalogV1IDs ¶
func (c *CatalogObjectBase) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectBase) GetCustomAttributeValues ¶
func (c *CatalogObjectBase) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectBase) GetExtraProperties ¶
func (c *CatalogObjectBase) GetExtraProperties() map[string]interface{}
func (*CatalogObjectBase) GetID ¶
func (c *CatalogObjectBase) GetID() string
func (*CatalogObjectBase) GetImageID ¶
func (c *CatalogObjectBase) GetImageID() *string
func (*CatalogObjectBase) GetIsDeleted ¶
func (c *CatalogObjectBase) GetIsDeleted() *bool
func (*CatalogObjectBase) GetPresentAtAllLocations ¶
func (c *CatalogObjectBase) GetPresentAtAllLocations() *bool
func (*CatalogObjectBase) GetPresentAtLocationIDs ¶
func (c *CatalogObjectBase) GetPresentAtLocationIDs() []string
func (*CatalogObjectBase) GetUpdatedAt ¶
func (c *CatalogObjectBase) GetUpdatedAt() *string
func (*CatalogObjectBase) GetVersion ¶
func (c *CatalogObjectBase) GetVersion() *int64
func (*CatalogObjectBase) String ¶
func (c *CatalogObjectBase) String() string
func (*CatalogObjectBase) UnmarshalJSON ¶
func (c *CatalogObjectBase) UnmarshalJSON(data []byte) error
type CatalogObjectBatch ¶
type CatalogObjectBatch struct {
// A list of CatalogObjects belonging to this batch.
Objects []*CatalogObject `json:"objects,omitempty" url:"objects,omitempty"`
// contains filtered or unexported fields
}
A batch of catalog objects.
func (*CatalogObjectBatch) GetExtraProperties ¶
func (c *CatalogObjectBatch) GetExtraProperties() map[string]interface{}
func (*CatalogObjectBatch) GetObjects ¶
func (c *CatalogObjectBatch) GetObjects() []*CatalogObject
func (*CatalogObjectBatch) String ¶
func (c *CatalogObjectBatch) String() string
func (*CatalogObjectBatch) UnmarshalJSON ¶
func (c *CatalogObjectBatch) UnmarshalJSON(data []byte) error
type CatalogObjectCategory ¶
type CatalogObjectCategory struct {
// The ID of the object's category.
ID *string `json:"id,omitempty" url:"id,omitempty"`
// The order of the object within the context of the category.
Ordinal *int64 `json:"ordinal,omitempty" url:"ordinal,omitempty"`
// Structured data for a `CatalogCategory`, set for CatalogObjects of type `CATEGORY`.
CategoryData *CatalogCategory `json:"category_data,omitempty" url:"category_data,omitempty"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// contains filtered or unexported fields
}
A category that can be assigned to an item or a parent category that can be assigned to another category. For example, a clothing category can be assigned to a t-shirt item or be made as the parent category to the pants category.
func (*CatalogObjectCategory) GetAbsentAtLocationIDs ¶
func (c *CatalogObjectCategory) GetAbsentAtLocationIDs() []string
func (*CatalogObjectCategory) GetCatalogV1IDs ¶
func (c *CatalogObjectCategory) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectCategory) GetCategoryData ¶
func (c *CatalogObjectCategory) GetCategoryData() *CatalogCategory
func (*CatalogObjectCategory) GetCustomAttributeValues ¶
func (c *CatalogObjectCategory) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectCategory) GetExtraProperties ¶
func (c *CatalogObjectCategory) GetExtraProperties() map[string]interface{}
func (*CatalogObjectCategory) GetID ¶
func (c *CatalogObjectCategory) GetID() *string
func (*CatalogObjectCategory) GetImageID ¶
func (c *CatalogObjectCategory) GetImageID() *string
func (*CatalogObjectCategory) GetIsDeleted ¶
func (c *CatalogObjectCategory) GetIsDeleted() *bool
func (*CatalogObjectCategory) GetOrdinal ¶
func (c *CatalogObjectCategory) GetOrdinal() *int64
func (*CatalogObjectCategory) GetPresentAtAllLocations ¶
func (c *CatalogObjectCategory) GetPresentAtAllLocations() *bool
func (*CatalogObjectCategory) GetPresentAtLocationIDs ¶
func (c *CatalogObjectCategory) GetPresentAtLocationIDs() []string
func (*CatalogObjectCategory) GetUpdatedAt ¶
func (c *CatalogObjectCategory) GetUpdatedAt() *string
func (*CatalogObjectCategory) GetVersion ¶
func (c *CatalogObjectCategory) GetVersion() *int64
func (*CatalogObjectCategory) String ¶
func (c *CatalogObjectCategory) String() string
func (*CatalogObjectCategory) UnmarshalJSON ¶
func (c *CatalogObjectCategory) UnmarshalJSON(data []byte) error
type CatalogObjectCustomAttributeDefinition ¶
type CatalogObjectCustomAttributeDefinition struct {
// An identifier to reference this object in the catalog. When a new `CatalogObject`
// is inserted, the client should set the id to a temporary identifier starting with
// a "`#`" character. Other objects being inserted or updated within the same request
// may use this identifier to refer to the new object.
//
// When the server receives the new object, it will supply a unique identifier that
// replaces the temporary identifier for all future references.
ID string `json:"id" url:"id"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// Structured data for a `CatalogCustomAttributeDefinition`, set for CatalogObjects of type `CUSTOM_ATTRIBUTE_DEFINITION`.
CustomAttributeDefinitionData *CatalogCustomAttributeDefinition `json:"custom_attribute_definition_data,omitempty" url:"custom_attribute_definition_data,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogObjectCustomAttributeDefinition) GetAbsentAtLocationIDs ¶
func (c *CatalogObjectCustomAttributeDefinition) GetAbsentAtLocationIDs() []string
func (*CatalogObjectCustomAttributeDefinition) GetCatalogV1IDs ¶
func (c *CatalogObjectCustomAttributeDefinition) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectCustomAttributeDefinition) GetCustomAttributeDefinitionData ¶
func (c *CatalogObjectCustomAttributeDefinition) GetCustomAttributeDefinitionData() *CatalogCustomAttributeDefinition
func (*CatalogObjectCustomAttributeDefinition) GetCustomAttributeValues ¶
func (c *CatalogObjectCustomAttributeDefinition) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectCustomAttributeDefinition) GetExtraProperties ¶
func (c *CatalogObjectCustomAttributeDefinition) GetExtraProperties() map[string]interface{}
func (*CatalogObjectCustomAttributeDefinition) GetID ¶
func (c *CatalogObjectCustomAttributeDefinition) GetID() string
func (*CatalogObjectCustomAttributeDefinition) GetImageID ¶
func (c *CatalogObjectCustomAttributeDefinition) GetImageID() *string
func (*CatalogObjectCustomAttributeDefinition) GetIsDeleted ¶
func (c *CatalogObjectCustomAttributeDefinition) GetIsDeleted() *bool
func (*CatalogObjectCustomAttributeDefinition) GetPresentAtAllLocations ¶
func (c *CatalogObjectCustomAttributeDefinition) GetPresentAtAllLocations() *bool
func (*CatalogObjectCustomAttributeDefinition) GetPresentAtLocationIDs ¶
func (c *CatalogObjectCustomAttributeDefinition) GetPresentAtLocationIDs() []string
func (*CatalogObjectCustomAttributeDefinition) GetUpdatedAt ¶
func (c *CatalogObjectCustomAttributeDefinition) GetUpdatedAt() *string
func (*CatalogObjectCustomAttributeDefinition) GetVersion ¶
func (c *CatalogObjectCustomAttributeDefinition) GetVersion() *int64
func (*CatalogObjectCustomAttributeDefinition) String ¶
func (c *CatalogObjectCustomAttributeDefinition) String() string
func (*CatalogObjectCustomAttributeDefinition) UnmarshalJSON ¶
func (c *CatalogObjectCustomAttributeDefinition) UnmarshalJSON(data []byte) error
type CatalogObjectDiscount ¶
type CatalogObjectDiscount struct {
// An identifier to reference this object in the catalog. When a new `CatalogObject`
// is inserted, the client should set the id to a temporary identifier starting with
// a "`#`" character. Other objects being inserted or updated within the same request
// may use this identifier to refer to the new object.
//
// When the server receives the new object, it will supply a unique identifier that
// replaces the temporary identifier for all future references.
ID string `json:"id" url:"id"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// Structured data for a `CatalogDiscount`, set for CatalogObjects of type `DISCOUNT`.
DiscountData *CatalogDiscount `json:"discount_data,omitempty" url:"discount_data,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogObjectDiscount) GetAbsentAtLocationIDs ¶
func (c *CatalogObjectDiscount) GetAbsentAtLocationIDs() []string
func (*CatalogObjectDiscount) GetCatalogV1IDs ¶
func (c *CatalogObjectDiscount) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectDiscount) GetCustomAttributeValues ¶
func (c *CatalogObjectDiscount) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectDiscount) GetDiscountData ¶
func (c *CatalogObjectDiscount) GetDiscountData() *CatalogDiscount
func (*CatalogObjectDiscount) GetExtraProperties ¶
func (c *CatalogObjectDiscount) GetExtraProperties() map[string]interface{}
func (*CatalogObjectDiscount) GetID ¶
func (c *CatalogObjectDiscount) GetID() string
func (*CatalogObjectDiscount) GetImageID ¶
func (c *CatalogObjectDiscount) GetImageID() *string
func (*CatalogObjectDiscount) GetIsDeleted ¶
func (c *CatalogObjectDiscount) GetIsDeleted() *bool
func (*CatalogObjectDiscount) GetPresentAtAllLocations ¶
func (c *CatalogObjectDiscount) GetPresentAtAllLocations() *bool
func (*CatalogObjectDiscount) GetPresentAtLocationIDs ¶
func (c *CatalogObjectDiscount) GetPresentAtLocationIDs() []string
func (*CatalogObjectDiscount) GetUpdatedAt ¶
func (c *CatalogObjectDiscount) GetUpdatedAt() *string
func (*CatalogObjectDiscount) GetVersion ¶
func (c *CatalogObjectDiscount) GetVersion() *int64
func (*CatalogObjectDiscount) String ¶
func (c *CatalogObjectDiscount) String() string
func (*CatalogObjectDiscount) UnmarshalJSON ¶
func (c *CatalogObjectDiscount) UnmarshalJSON(data []byte) error
type CatalogObjectImage ¶
type CatalogObjectImage struct {
// An identifier to reference this object in the catalog. When a new `CatalogObject`
// is inserted, the client should set the id to a temporary identifier starting with
// a "`#`" character. Other objects being inserted or updated within the same request
// may use this identifier to refer to the new object.
//
// When the server receives the new object, it will supply a unique identifier that
// replaces the temporary identifier for all future references.
ID string `json:"id" url:"id"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// Structured data for a `CatalogImage`, set for CatalogObjects of type `IMAGE`.
ImageData *CatalogImage `json:"image_data,omitempty" url:"image_data,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogObjectImage) GetAbsentAtLocationIDs ¶
func (c *CatalogObjectImage) GetAbsentAtLocationIDs() []string
func (*CatalogObjectImage) GetCatalogV1IDs ¶
func (c *CatalogObjectImage) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectImage) GetCustomAttributeValues ¶
func (c *CatalogObjectImage) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectImage) GetExtraProperties ¶
func (c *CatalogObjectImage) GetExtraProperties() map[string]interface{}
func (*CatalogObjectImage) GetID ¶
func (c *CatalogObjectImage) GetID() string
func (*CatalogObjectImage) GetImageData ¶
func (c *CatalogObjectImage) GetImageData() *CatalogImage
func (*CatalogObjectImage) GetImageID ¶
func (c *CatalogObjectImage) GetImageID() *string
func (*CatalogObjectImage) GetIsDeleted ¶
func (c *CatalogObjectImage) GetIsDeleted() *bool
func (*CatalogObjectImage) GetPresentAtAllLocations ¶
func (c *CatalogObjectImage) GetPresentAtAllLocations() *bool
func (*CatalogObjectImage) GetPresentAtLocationIDs ¶
func (c *CatalogObjectImage) GetPresentAtLocationIDs() []string
func (*CatalogObjectImage) GetUpdatedAt ¶
func (c *CatalogObjectImage) GetUpdatedAt() *string
func (*CatalogObjectImage) GetVersion ¶
func (c *CatalogObjectImage) GetVersion() *int64
func (*CatalogObjectImage) String ¶
func (c *CatalogObjectImage) String() string
func (*CatalogObjectImage) UnmarshalJSON ¶
func (c *CatalogObjectImage) UnmarshalJSON(data []byte) error
type CatalogObjectItem ¶
type CatalogObjectItem struct {
// An identifier to reference this object in the catalog. When a new `CatalogObject`
// is inserted, the client should set the id to a temporary identifier starting with
// a "`#`" character. Other objects being inserted or updated within the same request
// may use this identifier to refer to the new object.
//
// When the server receives the new object, it will supply a unique identifier that
// replaces the temporary identifier for all future references.
ID string `json:"id" url:"id"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// Structured data for a `CatalogItem`, set for CatalogObjects of type `ITEM`.
ItemData *CatalogItem `json:"item_data,omitempty" url:"item_data,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogObjectItem) GetAbsentAtLocationIDs ¶
func (c *CatalogObjectItem) GetAbsentAtLocationIDs() []string
func (*CatalogObjectItem) GetCatalogV1IDs ¶
func (c *CatalogObjectItem) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectItem) GetCustomAttributeValues ¶
func (c *CatalogObjectItem) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectItem) GetExtraProperties ¶
func (c *CatalogObjectItem) GetExtraProperties() map[string]interface{}
func (*CatalogObjectItem) GetID ¶
func (c *CatalogObjectItem) GetID() string
func (*CatalogObjectItem) GetImageID ¶
func (c *CatalogObjectItem) GetImageID() *string
func (*CatalogObjectItem) GetIsDeleted ¶
func (c *CatalogObjectItem) GetIsDeleted() *bool
func (*CatalogObjectItem) GetItemData ¶
func (c *CatalogObjectItem) GetItemData() *CatalogItem
func (*CatalogObjectItem) GetPresentAtAllLocations ¶
func (c *CatalogObjectItem) GetPresentAtAllLocations() *bool
func (*CatalogObjectItem) GetPresentAtLocationIDs ¶
func (c *CatalogObjectItem) GetPresentAtLocationIDs() []string
func (*CatalogObjectItem) GetUpdatedAt ¶
func (c *CatalogObjectItem) GetUpdatedAt() *string
func (*CatalogObjectItem) GetVersion ¶
func (c *CatalogObjectItem) GetVersion() *int64
func (*CatalogObjectItem) String ¶
func (c *CatalogObjectItem) String() string
func (*CatalogObjectItem) UnmarshalJSON ¶
func (c *CatalogObjectItem) UnmarshalJSON(data []byte) error
type CatalogObjectItemOption ¶
type CatalogObjectItemOption struct {
// An identifier to reference this object in the catalog. When a new `CatalogObject`
// is inserted, the client should set the id to a temporary identifier starting with
// a "`#`" character. Other objects being inserted or updated within the same request
// may use this identifier to refer to the new object.
//
// When the server receives the new object, it will supply a unique identifier that
// replaces the temporary identifier for all future references.
ID string `json:"id" url:"id"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// Structured data for a `CatalogItemOption`, set for CatalogObjects of type `ITEM_OPTION`.
ItemOptionData *CatalogItemOption `json:"item_option_data,omitempty" url:"item_option_data,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogObjectItemOption) GetAbsentAtLocationIDs ¶
func (c *CatalogObjectItemOption) GetAbsentAtLocationIDs() []string
func (*CatalogObjectItemOption) GetCatalogV1IDs ¶
func (c *CatalogObjectItemOption) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectItemOption) GetCustomAttributeValues ¶
func (c *CatalogObjectItemOption) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectItemOption) GetExtraProperties ¶
func (c *CatalogObjectItemOption) GetExtraProperties() map[string]interface{}
func (*CatalogObjectItemOption) GetID ¶
func (c *CatalogObjectItemOption) GetID() string
func (*CatalogObjectItemOption) GetImageID ¶
func (c *CatalogObjectItemOption) GetImageID() *string
func (*CatalogObjectItemOption) GetIsDeleted ¶
func (c *CatalogObjectItemOption) GetIsDeleted() *bool
func (*CatalogObjectItemOption) GetItemOptionData ¶
func (c *CatalogObjectItemOption) GetItemOptionData() *CatalogItemOption
func (*CatalogObjectItemOption) GetPresentAtAllLocations ¶
func (c *CatalogObjectItemOption) GetPresentAtAllLocations() *bool
func (*CatalogObjectItemOption) GetPresentAtLocationIDs ¶
func (c *CatalogObjectItemOption) GetPresentAtLocationIDs() []string
func (*CatalogObjectItemOption) GetUpdatedAt ¶
func (c *CatalogObjectItemOption) GetUpdatedAt() *string
func (*CatalogObjectItemOption) GetVersion ¶
func (c *CatalogObjectItemOption) GetVersion() *int64
func (*CatalogObjectItemOption) String ¶
func (c *CatalogObjectItemOption) String() string
func (*CatalogObjectItemOption) UnmarshalJSON ¶
func (c *CatalogObjectItemOption) UnmarshalJSON(data []byte) error
type CatalogObjectItemOptionValue ¶
type CatalogObjectItemOptionValue struct {
// An identifier to reference this object in the catalog. When a new `CatalogObject`
// is inserted, the client should set the id to a temporary identifier starting with
// a "`#`" character. Other objects being inserted or updated within the same request
// may use this identifier to refer to the new object.
//
// When the server receives the new object, it will supply a unique identifier that
// replaces the temporary identifier for all future references.
ID string `json:"id" url:"id"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// Structured data for a `CatalogItemOptionValue`, set for CatalogObjects of type `ITEM_OPTION_VAL`.
ItemOptionValueData *CatalogItemOptionValue `json:"item_option_value_data,omitempty" url:"item_option_value_data,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogObjectItemOptionValue) GetAbsentAtLocationIDs ¶
func (c *CatalogObjectItemOptionValue) GetAbsentAtLocationIDs() []string
func (*CatalogObjectItemOptionValue) GetCatalogV1IDs ¶
func (c *CatalogObjectItemOptionValue) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectItemOptionValue) GetCustomAttributeValues ¶
func (c *CatalogObjectItemOptionValue) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectItemOptionValue) GetExtraProperties ¶
func (c *CatalogObjectItemOptionValue) GetExtraProperties() map[string]interface{}
func (*CatalogObjectItemOptionValue) GetID ¶
func (c *CatalogObjectItemOptionValue) GetID() string
func (*CatalogObjectItemOptionValue) GetImageID ¶
func (c *CatalogObjectItemOptionValue) GetImageID() *string
func (*CatalogObjectItemOptionValue) GetIsDeleted ¶
func (c *CatalogObjectItemOptionValue) GetIsDeleted() *bool
func (*CatalogObjectItemOptionValue) GetItemOptionValueData ¶
func (c *CatalogObjectItemOptionValue) GetItemOptionValueData() *CatalogItemOptionValue
func (*CatalogObjectItemOptionValue) GetPresentAtAllLocations ¶
func (c *CatalogObjectItemOptionValue) GetPresentAtAllLocations() *bool
func (*CatalogObjectItemOptionValue) GetPresentAtLocationIDs ¶
func (c *CatalogObjectItemOptionValue) GetPresentAtLocationIDs() []string
func (*CatalogObjectItemOptionValue) GetUpdatedAt ¶
func (c *CatalogObjectItemOptionValue) GetUpdatedAt() *string
func (*CatalogObjectItemOptionValue) GetVersion ¶
func (c *CatalogObjectItemOptionValue) GetVersion() *int64
func (*CatalogObjectItemOptionValue) String ¶
func (c *CatalogObjectItemOptionValue) String() string
func (*CatalogObjectItemOptionValue) UnmarshalJSON ¶
func (c *CatalogObjectItemOptionValue) UnmarshalJSON(data []byte) error
type CatalogObjectItemVariation ¶
type CatalogObjectItemVariation struct {
// An identifier to reference this object in the catalog. When a new `CatalogObject`
// is inserted, the client should set the id to a temporary identifier starting with
// a "`#`" character. Other objects being inserted or updated within the same request
// may use this identifier to refer to the new object.
//
// When the server receives the new object, it will supply a unique identifier that
// replaces the temporary identifier for all future references.
ID string `json:"id" url:"id"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// Structured data for a `CatalogItemVariation`, set for CatalogObjects of type `ITEM_VARIATION`.
ItemVariationData *CatalogItemVariation `json:"item_variation_data,omitempty" url:"item_variation_data,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogObjectItemVariation) GetAbsentAtLocationIDs ¶
func (c *CatalogObjectItemVariation) GetAbsentAtLocationIDs() []string
func (*CatalogObjectItemVariation) GetCatalogV1IDs ¶
func (c *CatalogObjectItemVariation) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectItemVariation) GetCustomAttributeValues ¶
func (c *CatalogObjectItemVariation) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectItemVariation) GetExtraProperties ¶
func (c *CatalogObjectItemVariation) GetExtraProperties() map[string]interface{}
func (*CatalogObjectItemVariation) GetID ¶
func (c *CatalogObjectItemVariation) GetID() string
func (*CatalogObjectItemVariation) GetImageID ¶
func (c *CatalogObjectItemVariation) GetImageID() *string
func (*CatalogObjectItemVariation) GetIsDeleted ¶
func (c *CatalogObjectItemVariation) GetIsDeleted() *bool
func (*CatalogObjectItemVariation) GetItemVariationData ¶
func (c *CatalogObjectItemVariation) GetItemVariationData() *CatalogItemVariation
func (*CatalogObjectItemVariation) GetPresentAtAllLocations ¶
func (c *CatalogObjectItemVariation) GetPresentAtAllLocations() *bool
func (*CatalogObjectItemVariation) GetPresentAtLocationIDs ¶
func (c *CatalogObjectItemVariation) GetPresentAtLocationIDs() []string
func (*CatalogObjectItemVariation) GetUpdatedAt ¶
func (c *CatalogObjectItemVariation) GetUpdatedAt() *string
func (*CatalogObjectItemVariation) GetVersion ¶
func (c *CatalogObjectItemVariation) GetVersion() *int64
func (*CatalogObjectItemVariation) String ¶
func (c *CatalogObjectItemVariation) String() string
func (*CatalogObjectItemVariation) UnmarshalJSON ¶
func (c *CatalogObjectItemVariation) UnmarshalJSON(data []byte) error
type CatalogObjectMeasurementUnit ¶
type CatalogObjectMeasurementUnit struct {
// An identifier to reference this object in the catalog. When a new `CatalogObject`
// is inserted, the client should set the id to a temporary identifier starting with
// a "`#`" character. Other objects being inserted or updated within the same request
// may use this identifier to refer to the new object.
//
// When the server receives the new object, it will supply a unique identifier that
// replaces the temporary identifier for all future references.
ID string `json:"id" url:"id"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// Structured data for a `CatalogMeasurementUnit`, set for CatalogObjects of type `MEASUREMENT_UNIT`.
MeasurementUnitData *CatalogMeasurementUnit `json:"measurement_unit_data,omitempty" url:"measurement_unit_data,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogObjectMeasurementUnit) GetAbsentAtLocationIDs ¶
func (c *CatalogObjectMeasurementUnit) GetAbsentAtLocationIDs() []string
func (*CatalogObjectMeasurementUnit) GetCatalogV1IDs ¶
func (c *CatalogObjectMeasurementUnit) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectMeasurementUnit) GetCustomAttributeValues ¶
func (c *CatalogObjectMeasurementUnit) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectMeasurementUnit) GetExtraProperties ¶
func (c *CatalogObjectMeasurementUnit) GetExtraProperties() map[string]interface{}
func (*CatalogObjectMeasurementUnit) GetID ¶
func (c *CatalogObjectMeasurementUnit) GetID() string
func (*CatalogObjectMeasurementUnit) GetImageID ¶
func (c *CatalogObjectMeasurementUnit) GetImageID() *string
func (*CatalogObjectMeasurementUnit) GetIsDeleted ¶
func (c *CatalogObjectMeasurementUnit) GetIsDeleted() *bool
func (*CatalogObjectMeasurementUnit) GetMeasurementUnitData ¶
func (c *CatalogObjectMeasurementUnit) GetMeasurementUnitData() *CatalogMeasurementUnit
func (*CatalogObjectMeasurementUnit) GetPresentAtAllLocations ¶
func (c *CatalogObjectMeasurementUnit) GetPresentAtAllLocations() *bool
func (*CatalogObjectMeasurementUnit) GetPresentAtLocationIDs ¶
func (c *CatalogObjectMeasurementUnit) GetPresentAtLocationIDs() []string
func (*CatalogObjectMeasurementUnit) GetUpdatedAt ¶
func (c *CatalogObjectMeasurementUnit) GetUpdatedAt() *string
func (*CatalogObjectMeasurementUnit) GetVersion ¶
func (c *CatalogObjectMeasurementUnit) GetVersion() *int64
func (*CatalogObjectMeasurementUnit) String ¶
func (c *CatalogObjectMeasurementUnit) String() string
func (*CatalogObjectMeasurementUnit) UnmarshalJSON ¶
func (c *CatalogObjectMeasurementUnit) UnmarshalJSON(data []byte) error
type CatalogObjectModifier ¶
type CatalogObjectModifier struct {
// An identifier to reference this object in the catalog. When a new `CatalogObject`
// is inserted, the client should set the id to a temporary identifier starting with
// a "`#`" character. Other objects being inserted or updated within the same request
// may use this identifier to refer to the new object.
//
// When the server receives the new object, it will supply a unique identifier that
// replaces the temporary identifier for all future references.
ID string `json:"id" url:"id"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// Structured data for a `CatalogModifier`, set for CatalogObjects of type `MODIFIER`.
ModifierData *CatalogModifier `json:"modifier_data,omitempty" url:"modifier_data,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogObjectModifier) GetAbsentAtLocationIDs ¶
func (c *CatalogObjectModifier) GetAbsentAtLocationIDs() []string
func (*CatalogObjectModifier) GetCatalogV1IDs ¶
func (c *CatalogObjectModifier) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectModifier) GetCustomAttributeValues ¶
func (c *CatalogObjectModifier) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectModifier) GetExtraProperties ¶
func (c *CatalogObjectModifier) GetExtraProperties() map[string]interface{}
func (*CatalogObjectModifier) GetID ¶
func (c *CatalogObjectModifier) GetID() string
func (*CatalogObjectModifier) GetImageID ¶
func (c *CatalogObjectModifier) GetImageID() *string
func (*CatalogObjectModifier) GetIsDeleted ¶
func (c *CatalogObjectModifier) GetIsDeleted() *bool
func (*CatalogObjectModifier) GetModifierData ¶
func (c *CatalogObjectModifier) GetModifierData() *CatalogModifier
func (*CatalogObjectModifier) GetPresentAtAllLocations ¶
func (c *CatalogObjectModifier) GetPresentAtAllLocations() *bool
func (*CatalogObjectModifier) GetPresentAtLocationIDs ¶
func (c *CatalogObjectModifier) GetPresentAtLocationIDs() []string
func (*CatalogObjectModifier) GetUpdatedAt ¶
func (c *CatalogObjectModifier) GetUpdatedAt() *string
func (*CatalogObjectModifier) GetVersion ¶
func (c *CatalogObjectModifier) GetVersion() *int64
func (*CatalogObjectModifier) String ¶
func (c *CatalogObjectModifier) String() string
func (*CatalogObjectModifier) UnmarshalJSON ¶
func (c *CatalogObjectModifier) UnmarshalJSON(data []byte) error
type CatalogObjectModifierList ¶
type CatalogObjectModifierList struct {
// An identifier to reference this object in the catalog. When a new `CatalogObject`
// is inserted, the client should set the id to a temporary identifier starting with
// a "`#`" character. Other objects being inserted or updated within the same request
// may use this identifier to refer to the new object.
//
// When the server receives the new object, it will supply a unique identifier that
// replaces the temporary identifier for all future references.
ID string `json:"id" url:"id"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// Structured data for a `CatalogModifierList`, set for CatalogObjects of type `MODIFIER_LIST`.
ModifierListData *CatalogModifierList `json:"modifier_list_data,omitempty" url:"modifier_list_data,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogObjectModifierList) GetAbsentAtLocationIDs ¶
func (c *CatalogObjectModifierList) GetAbsentAtLocationIDs() []string
func (*CatalogObjectModifierList) GetCatalogV1IDs ¶
func (c *CatalogObjectModifierList) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectModifierList) GetCustomAttributeValues ¶
func (c *CatalogObjectModifierList) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectModifierList) GetExtraProperties ¶
func (c *CatalogObjectModifierList) GetExtraProperties() map[string]interface{}
func (*CatalogObjectModifierList) GetID ¶
func (c *CatalogObjectModifierList) GetID() string
func (*CatalogObjectModifierList) GetImageID ¶
func (c *CatalogObjectModifierList) GetImageID() *string
func (*CatalogObjectModifierList) GetIsDeleted ¶
func (c *CatalogObjectModifierList) GetIsDeleted() *bool
func (*CatalogObjectModifierList) GetModifierListData ¶
func (c *CatalogObjectModifierList) GetModifierListData() *CatalogModifierList
func (*CatalogObjectModifierList) GetPresentAtAllLocations ¶
func (c *CatalogObjectModifierList) GetPresentAtAllLocations() *bool
func (*CatalogObjectModifierList) GetPresentAtLocationIDs ¶
func (c *CatalogObjectModifierList) GetPresentAtLocationIDs() []string
func (*CatalogObjectModifierList) GetUpdatedAt ¶
func (c *CatalogObjectModifierList) GetUpdatedAt() *string
func (*CatalogObjectModifierList) GetVersion ¶
func (c *CatalogObjectModifierList) GetVersion() *int64
func (*CatalogObjectModifierList) String ¶
func (c *CatalogObjectModifierList) String() string
func (*CatalogObjectModifierList) UnmarshalJSON ¶
func (c *CatalogObjectModifierList) UnmarshalJSON(data []byte) error
type CatalogObjectPricingRule ¶
type CatalogObjectPricingRule struct {
// An identifier to reference this object in the catalog. When a new `CatalogObject`
// is inserted, the client should set the id to a temporary identifier starting with
// a "`#`" character. Other objects being inserted or updated within the same request
// may use this identifier to refer to the new object.
//
// When the server receives the new object, it will supply a unique identifier that
// replaces the temporary identifier for all future references.
ID string `json:"id" url:"id"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// Structured data for a `CatalogPricingRule`, set for CatalogObjects of type `PRICING_RULE`.
// A `CatalogPricingRule` object often works with a `CatalogProductSet` object or a `CatalogTimePeriod` object.
PricingRuleData *CatalogPricingRule `json:"pricing_rule_data,omitempty" url:"pricing_rule_data,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogObjectPricingRule) GetAbsentAtLocationIDs ¶
func (c *CatalogObjectPricingRule) GetAbsentAtLocationIDs() []string
func (*CatalogObjectPricingRule) GetCatalogV1IDs ¶
func (c *CatalogObjectPricingRule) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectPricingRule) GetCustomAttributeValues ¶
func (c *CatalogObjectPricingRule) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectPricingRule) GetExtraProperties ¶
func (c *CatalogObjectPricingRule) GetExtraProperties() map[string]interface{}
func (*CatalogObjectPricingRule) GetID ¶
func (c *CatalogObjectPricingRule) GetID() string
func (*CatalogObjectPricingRule) GetImageID ¶
func (c *CatalogObjectPricingRule) GetImageID() *string
func (*CatalogObjectPricingRule) GetIsDeleted ¶
func (c *CatalogObjectPricingRule) GetIsDeleted() *bool
func (*CatalogObjectPricingRule) GetPresentAtAllLocations ¶
func (c *CatalogObjectPricingRule) GetPresentAtAllLocations() *bool
func (*CatalogObjectPricingRule) GetPresentAtLocationIDs ¶
func (c *CatalogObjectPricingRule) GetPresentAtLocationIDs() []string
func (*CatalogObjectPricingRule) GetPricingRuleData ¶
func (c *CatalogObjectPricingRule) GetPricingRuleData() *CatalogPricingRule
func (*CatalogObjectPricingRule) GetUpdatedAt ¶
func (c *CatalogObjectPricingRule) GetUpdatedAt() *string
func (*CatalogObjectPricingRule) GetVersion ¶
func (c *CatalogObjectPricingRule) GetVersion() *int64
func (*CatalogObjectPricingRule) String ¶
func (c *CatalogObjectPricingRule) String() string
func (*CatalogObjectPricingRule) UnmarshalJSON ¶
func (c *CatalogObjectPricingRule) UnmarshalJSON(data []byte) error
type CatalogObjectProductSet ¶
type CatalogObjectProductSet struct {
// An identifier to reference this object in the catalog. When a new `CatalogObject`
// is inserted, the client should set the id to a temporary identifier starting with
// a "`#`" character. Other objects being inserted or updated within the same request
// may use this identifier to refer to the new object.
//
// When the server receives the new object, it will supply a unique identifier that
// replaces the temporary identifier for all future references.
ID string `json:"id" url:"id"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// Structured data for a `CatalogProductSet`, set for CatalogObjects of type `PRODUCT_SET`.
ProductSetData *CatalogProductSet `json:"product_set_data,omitempty" url:"product_set_data,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogObjectProductSet) GetAbsentAtLocationIDs ¶
func (c *CatalogObjectProductSet) GetAbsentAtLocationIDs() []string
func (*CatalogObjectProductSet) GetCatalogV1IDs ¶
func (c *CatalogObjectProductSet) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectProductSet) GetCustomAttributeValues ¶
func (c *CatalogObjectProductSet) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectProductSet) GetExtraProperties ¶
func (c *CatalogObjectProductSet) GetExtraProperties() map[string]interface{}
func (*CatalogObjectProductSet) GetID ¶
func (c *CatalogObjectProductSet) GetID() string
func (*CatalogObjectProductSet) GetImageID ¶
func (c *CatalogObjectProductSet) GetImageID() *string
func (*CatalogObjectProductSet) GetIsDeleted ¶
func (c *CatalogObjectProductSet) GetIsDeleted() *bool
func (*CatalogObjectProductSet) GetPresentAtAllLocations ¶
func (c *CatalogObjectProductSet) GetPresentAtAllLocations() *bool
func (*CatalogObjectProductSet) GetPresentAtLocationIDs ¶
func (c *CatalogObjectProductSet) GetPresentAtLocationIDs() []string
func (*CatalogObjectProductSet) GetProductSetData ¶
func (c *CatalogObjectProductSet) GetProductSetData() *CatalogProductSet
func (*CatalogObjectProductSet) GetUpdatedAt ¶
func (c *CatalogObjectProductSet) GetUpdatedAt() *string
func (*CatalogObjectProductSet) GetVersion ¶
func (c *CatalogObjectProductSet) GetVersion() *int64
func (*CatalogObjectProductSet) String ¶
func (c *CatalogObjectProductSet) String() string
func (*CatalogObjectProductSet) UnmarshalJSON ¶
func (c *CatalogObjectProductSet) UnmarshalJSON(data []byte) error
type CatalogObjectQuickAmountsSettings ¶
type CatalogObjectQuickAmountsSettings struct {
// An identifier to reference this object in the catalog. When a new `CatalogObject`
// is inserted, the client should set the id to a temporary identifier starting with
// a "`#`" character. Other objects being inserted or updated within the same request
// may use this identifier to refer to the new object.
//
// When the server receives the new object, it will supply a unique identifier that
// replaces the temporary identifier for all future references.
ID string `json:"id" url:"id"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// Structured data for a `CatalogQuickAmountsSettings`, set for CatalogObjects of type `QUICK_AMOUNTS_SETTINGS`.
QuickAmountsSettingsData *CatalogQuickAmountsSettings `json:"quick_amounts_settings_data,omitempty" url:"quick_amounts_settings_data,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogObjectQuickAmountsSettings) GetAbsentAtLocationIDs ¶
func (c *CatalogObjectQuickAmountsSettings) GetAbsentAtLocationIDs() []string
func (*CatalogObjectQuickAmountsSettings) GetCatalogV1IDs ¶
func (c *CatalogObjectQuickAmountsSettings) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectQuickAmountsSettings) GetCustomAttributeValues ¶
func (c *CatalogObjectQuickAmountsSettings) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectQuickAmountsSettings) GetExtraProperties ¶
func (c *CatalogObjectQuickAmountsSettings) GetExtraProperties() map[string]interface{}
func (*CatalogObjectQuickAmountsSettings) GetID ¶
func (c *CatalogObjectQuickAmountsSettings) GetID() string
func (*CatalogObjectQuickAmountsSettings) GetImageID ¶
func (c *CatalogObjectQuickAmountsSettings) GetImageID() *string
func (*CatalogObjectQuickAmountsSettings) GetIsDeleted ¶
func (c *CatalogObjectQuickAmountsSettings) GetIsDeleted() *bool
func (*CatalogObjectQuickAmountsSettings) GetPresentAtAllLocations ¶
func (c *CatalogObjectQuickAmountsSettings) GetPresentAtAllLocations() *bool
func (*CatalogObjectQuickAmountsSettings) GetPresentAtLocationIDs ¶
func (c *CatalogObjectQuickAmountsSettings) GetPresentAtLocationIDs() []string
func (*CatalogObjectQuickAmountsSettings) GetQuickAmountsSettingsData ¶
func (c *CatalogObjectQuickAmountsSettings) GetQuickAmountsSettingsData() *CatalogQuickAmountsSettings
func (*CatalogObjectQuickAmountsSettings) GetUpdatedAt ¶
func (c *CatalogObjectQuickAmountsSettings) GetUpdatedAt() *string
func (*CatalogObjectQuickAmountsSettings) GetVersion ¶
func (c *CatalogObjectQuickAmountsSettings) GetVersion() *int64
func (*CatalogObjectQuickAmountsSettings) String ¶
func (c *CatalogObjectQuickAmountsSettings) String() string
func (*CatalogObjectQuickAmountsSettings) UnmarshalJSON ¶
func (c *CatalogObjectQuickAmountsSettings) UnmarshalJSON(data []byte) error
type CatalogObjectReference ¶
type CatalogObjectReference struct {
// The ID of the referenced object.
ObjectID *string `json:"object_id,omitempty" url:"object_id,omitempty"`
// The version of the object.
CatalogVersion *int64 `json:"catalog_version,omitempty" url:"catalog_version,omitempty"`
// contains filtered or unexported fields
}
A reference to a Catalog object at a specific version. In general this is used as an entry point into a graph of catalog objects, where the objects exist at a specific version.
func (*CatalogObjectReference) GetCatalogVersion ¶
func (c *CatalogObjectReference) GetCatalogVersion() *int64
func (*CatalogObjectReference) GetExtraProperties ¶
func (c *CatalogObjectReference) GetExtraProperties() map[string]interface{}
func (*CatalogObjectReference) GetObjectID ¶
func (c *CatalogObjectReference) GetObjectID() *string
func (*CatalogObjectReference) String ¶
func (c *CatalogObjectReference) String() string
func (*CatalogObjectReference) UnmarshalJSON ¶
func (c *CatalogObjectReference) UnmarshalJSON(data []byte) error
type CatalogObjectSubscriptionPlan ¶
type CatalogObjectSubscriptionPlan struct {
// An identifier to reference this object in the catalog. When a new `CatalogObject`
// is inserted, the client should set the id to a temporary identifier starting with
// a "`#`" character. Other objects being inserted or updated within the same request
// may use this identifier to refer to the new object.
//
// When the server receives the new object, it will supply a unique identifier that
// replaces the temporary identifier for all future references.
ID string `json:"id" url:"id"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// Structured data for a `CatalogSubscriptionPlan`, set for CatalogObjects of type `SUBSCRIPTION_PLAN`.
SubscriptionPlanData *CatalogSubscriptionPlan `json:"subscription_plan_data,omitempty" url:"subscription_plan_data,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogObjectSubscriptionPlan) GetAbsentAtLocationIDs ¶
func (c *CatalogObjectSubscriptionPlan) GetAbsentAtLocationIDs() []string
func (*CatalogObjectSubscriptionPlan) GetCatalogV1IDs ¶
func (c *CatalogObjectSubscriptionPlan) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectSubscriptionPlan) GetCustomAttributeValues ¶
func (c *CatalogObjectSubscriptionPlan) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectSubscriptionPlan) GetExtraProperties ¶
func (c *CatalogObjectSubscriptionPlan) GetExtraProperties() map[string]interface{}
func (*CatalogObjectSubscriptionPlan) GetID ¶
func (c *CatalogObjectSubscriptionPlan) GetID() string
func (*CatalogObjectSubscriptionPlan) GetImageID ¶
func (c *CatalogObjectSubscriptionPlan) GetImageID() *string
func (*CatalogObjectSubscriptionPlan) GetIsDeleted ¶
func (c *CatalogObjectSubscriptionPlan) GetIsDeleted() *bool
func (*CatalogObjectSubscriptionPlan) GetPresentAtAllLocations ¶
func (c *CatalogObjectSubscriptionPlan) GetPresentAtAllLocations() *bool
func (*CatalogObjectSubscriptionPlan) GetPresentAtLocationIDs ¶
func (c *CatalogObjectSubscriptionPlan) GetPresentAtLocationIDs() []string
func (*CatalogObjectSubscriptionPlan) GetSubscriptionPlanData ¶
func (c *CatalogObjectSubscriptionPlan) GetSubscriptionPlanData() *CatalogSubscriptionPlan
func (*CatalogObjectSubscriptionPlan) GetUpdatedAt ¶
func (c *CatalogObjectSubscriptionPlan) GetUpdatedAt() *string
func (*CatalogObjectSubscriptionPlan) GetVersion ¶
func (c *CatalogObjectSubscriptionPlan) GetVersion() *int64
func (*CatalogObjectSubscriptionPlan) String ¶
func (c *CatalogObjectSubscriptionPlan) String() string
func (*CatalogObjectSubscriptionPlan) UnmarshalJSON ¶
func (c *CatalogObjectSubscriptionPlan) UnmarshalJSON(data []byte) error
type CatalogObjectSubscriptionPlanVariation ¶ added in v1.4.0
type CatalogObjectSubscriptionPlanVariation struct {
// An identifier to reference this object in the catalog. When a new `CatalogObject`
// is inserted, the client should set the id to a temporary identifier starting with
// a "`#`" character. Other objects being inserted or updated within the same request
// may use this identifier to refer to the new object.
//
// When the server receives the new object, it will supply a unique identifier that
// replaces the temporary identifier for all future references.
ID string `json:"id" url:"id"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// Structured data for a `CatalogSubscriptionPlanVariation`, set for CatalogObjects of type `SUBSCRIPTION_PLAN_VARIATION`.
SubscriptionPlanVariationData *CatalogSubscriptionPlanVariation `json:"subscription_plan_variation_data,omitempty" url:"subscription_plan_variation_data,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogObjectSubscriptionPlanVariation) GetAbsentAtLocationIDs ¶ added in v1.4.0
func (c *CatalogObjectSubscriptionPlanVariation) GetAbsentAtLocationIDs() []string
func (*CatalogObjectSubscriptionPlanVariation) GetCatalogV1IDs ¶ added in v1.4.0
func (c *CatalogObjectSubscriptionPlanVariation) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectSubscriptionPlanVariation) GetCustomAttributeValues ¶ added in v1.4.0
func (c *CatalogObjectSubscriptionPlanVariation) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectSubscriptionPlanVariation) GetExtraProperties ¶ added in v1.4.0
func (c *CatalogObjectSubscriptionPlanVariation) GetExtraProperties() map[string]interface{}
func (*CatalogObjectSubscriptionPlanVariation) GetID ¶ added in v1.4.0
func (c *CatalogObjectSubscriptionPlanVariation) GetID() string
func (*CatalogObjectSubscriptionPlanVariation) GetImageID ¶ added in v1.4.0
func (c *CatalogObjectSubscriptionPlanVariation) GetImageID() *string
func (*CatalogObjectSubscriptionPlanVariation) GetIsDeleted ¶ added in v1.4.0
func (c *CatalogObjectSubscriptionPlanVariation) GetIsDeleted() *bool
func (*CatalogObjectSubscriptionPlanVariation) GetPresentAtAllLocations ¶ added in v1.4.0
func (c *CatalogObjectSubscriptionPlanVariation) GetPresentAtAllLocations() *bool
func (*CatalogObjectSubscriptionPlanVariation) GetPresentAtLocationIDs ¶ added in v1.4.0
func (c *CatalogObjectSubscriptionPlanVariation) GetPresentAtLocationIDs() []string
func (*CatalogObjectSubscriptionPlanVariation) GetSubscriptionPlanVariationData ¶ added in v1.4.0
func (c *CatalogObjectSubscriptionPlanVariation) GetSubscriptionPlanVariationData() *CatalogSubscriptionPlanVariation
func (*CatalogObjectSubscriptionPlanVariation) GetUpdatedAt ¶ added in v1.4.0
func (c *CatalogObjectSubscriptionPlanVariation) GetUpdatedAt() *string
func (*CatalogObjectSubscriptionPlanVariation) GetVersion ¶ added in v1.4.0
func (c *CatalogObjectSubscriptionPlanVariation) GetVersion() *int64
func (*CatalogObjectSubscriptionPlanVariation) String ¶ added in v1.4.0
func (c *CatalogObjectSubscriptionPlanVariation) String() string
func (*CatalogObjectSubscriptionPlanVariation) UnmarshalJSON ¶ added in v1.4.0
func (c *CatalogObjectSubscriptionPlanVariation) UnmarshalJSON(data []byte) error
type CatalogObjectTax ¶
type CatalogObjectTax struct {
// An identifier to reference this object in the catalog. When a new `CatalogObject`
// is inserted, the client should set the id to a temporary identifier starting with
// a "`#`" character. Other objects being inserted or updated within the same request
// may use this identifier to refer to the new object.
//
// When the server receives the new object, it will supply a unique identifier that
// replaces the temporary identifier for all future references.
ID string `json:"id" url:"id"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// Structured data for a `CatalogTax`, set for CatalogObjects of type `TAX`.
TaxData *CatalogTax `json:"tax_data,omitempty" url:"tax_data,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogObjectTax) GetAbsentAtLocationIDs ¶
func (c *CatalogObjectTax) GetAbsentAtLocationIDs() []string
func (*CatalogObjectTax) GetCatalogV1IDs ¶
func (c *CatalogObjectTax) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectTax) GetCustomAttributeValues ¶
func (c *CatalogObjectTax) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectTax) GetExtraProperties ¶
func (c *CatalogObjectTax) GetExtraProperties() map[string]interface{}
func (*CatalogObjectTax) GetID ¶
func (c *CatalogObjectTax) GetID() string
func (*CatalogObjectTax) GetImageID ¶
func (c *CatalogObjectTax) GetImageID() *string
func (*CatalogObjectTax) GetIsDeleted ¶
func (c *CatalogObjectTax) GetIsDeleted() *bool
func (*CatalogObjectTax) GetPresentAtAllLocations ¶
func (c *CatalogObjectTax) GetPresentAtAllLocations() *bool
func (*CatalogObjectTax) GetPresentAtLocationIDs ¶
func (c *CatalogObjectTax) GetPresentAtLocationIDs() []string
func (*CatalogObjectTax) GetTaxData ¶
func (c *CatalogObjectTax) GetTaxData() *CatalogTax
func (*CatalogObjectTax) GetUpdatedAt ¶
func (c *CatalogObjectTax) GetUpdatedAt() *string
func (*CatalogObjectTax) GetVersion ¶
func (c *CatalogObjectTax) GetVersion() *int64
func (*CatalogObjectTax) String ¶
func (c *CatalogObjectTax) String() string
func (*CatalogObjectTax) UnmarshalJSON ¶
func (c *CatalogObjectTax) UnmarshalJSON(data []byte) error
type CatalogObjectTimePeriod ¶
type CatalogObjectTimePeriod struct {
// An identifier to reference this object in the catalog. When a new `CatalogObject`
// is inserted, the client should set the id to a temporary identifier starting with
// a "`#`" character. Other objects being inserted or updated within the same request
// may use this identifier to refer to the new object.
//
// When the server receives the new object, it will supply a unique identifier that
// replaces the temporary identifier for all future references.
ID string `json:"id" url:"id"`
// Last modification [timestamp](https://developer.squareup.com/docs/build-basics/working-with-dates) in RFC 3339 format, e.g., `"2016-08-15T23:59:33.123Z"`
// would indicate the UTC time (denoted by `Z`) of August 15, 2016 at 23:59:33 and 123 milliseconds.
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// The version of the object. When updating an object, the version supplied
// must match the version in the database, otherwise the write will be rejected as conflicting.
Version *int64 `json:"version,omitempty" url:"version,omitempty"`
// If `true`, the object has been deleted from the database. Must be `false` for new objects
// being inserted. When deleted, the `updated_at` field will equal the deletion time.
IsDeleted *bool `json:"is_deleted,omitempty" url:"is_deleted,omitempty"`
// A map (key-value pairs) of application-defined custom attribute values. The value of a key-value pair
// is a [CatalogCustomAttributeValue](entity:CatalogCustomAttributeValue) object. The key is the `key` attribute
// value defined in the associated [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition)
// object defined by the application making the request.
//
// If the `CatalogCustomAttributeDefinition` object is
// defined by another application, the `CatalogCustomAttributeDefinition`'s key attribute value is prefixed by
// the defining application ID. For example, if the `CatalogCustomAttributeDefinition` has a `key` attribute of
// `"cocoa_brand"` and the defining application ID is `"abcd1234"`, the key in the map is `"abcd1234:cocoa_brand"`
// if the application making the request is different from the application defining the custom attribute definition.
// Otherwise, the key used in the map is simply `"cocoa_brand"`.
//
// Application-defined custom attributes are set at a global (location-independent) level.
// Custom attribute values are intended to store additional information about a catalog object
// or associations with an entity in another system. Do not use custom attributes
// to store any sensitive information (personally identifiable information, card details, etc.).
CustomAttributeValues map[string]*CatalogCustomAttributeValue `json:"custom_attribute_values,omitempty" url:"custom_attribute_values,omitempty"`
// The Connect v1 IDs for this object at each location where it is present, where they
// differ from the object's Connect V2 ID. The field will only be present for objects that
// have been created or modified by legacy APIs.
CatalogV1IDs []*CatalogV1ID `json:"catalog_v1_ids,omitempty" url:"catalog_v1_ids,omitempty"`
// If `true`, this object is present at all locations (including future locations), except where specified in
// the `absent_at_location_ids` field. If `false`, this object is not present at any locations (including future locations),
// except where specified in the `present_at_location_ids` field. If not specified, defaults to `true`.
PresentAtAllLocations *bool `json:"present_at_all_locations,omitempty" url:"present_at_all_locations,omitempty"`
// A list of locations where the object is present, even if `present_at_all_locations` is `false`.
// This can include locations that are deactivated.
PresentAtLocationIDs []string `json:"present_at_location_ids,omitempty" url:"present_at_location_ids,omitempty"`
// A list of locations where the object is not present, even if `present_at_all_locations` is `true`.
// This can include locations that are deactivated.
AbsentAtLocationIDs []string `json:"absent_at_location_ids,omitempty" url:"absent_at_location_ids,omitempty"`
// Identifies the `CatalogImage` attached to this `CatalogObject`.
ImageID *string `json:"image_id,omitempty" url:"image_id,omitempty"`
// Structured data for a `CatalogTimePeriod`, set for CatalogObjects of type `TIME_PERIOD`.
TimePeriodData *CatalogTimePeriod `json:"time_period_data,omitempty" url:"time_period_data,omitempty"`
// contains filtered or unexported fields
}
func (*CatalogObjectTimePeriod) GetAbsentAtLocationIDs ¶
func (c *CatalogObjectTimePeriod) GetAbsentAtLocationIDs() []string
func (*CatalogObjectTimePeriod) GetCatalogV1IDs ¶
func (c *CatalogObjectTimePeriod) GetCatalogV1IDs() []*CatalogV1ID
func (*CatalogObjectTimePeriod) GetCustomAttributeValues ¶
func (c *CatalogObjectTimePeriod) GetCustomAttributeValues() map[string]*CatalogCustomAttributeValue
func (*CatalogObjectTimePeriod) GetExtraProperties ¶
func (c *CatalogObjectTimePeriod) GetExtraProperties() map[string]interface{}
func (*CatalogObjectTimePeriod) GetID ¶
func (c *CatalogObjectTimePeriod) GetID() string
func (*CatalogObjectTimePeriod) GetImageID ¶
func (c *CatalogObjectTimePeriod) GetImageID() *string
func (*CatalogObjectTimePeriod) GetIsDeleted ¶
func (c *CatalogObjectTimePeriod) GetIsDeleted() *bool
func (*CatalogObjectTimePeriod) GetPresentAtAllLocations ¶
func (c *CatalogObjectTimePeriod) GetPresentAtAllLocations() *bool
func (*CatalogObjectTimePeriod) GetPresentAtLocationIDs ¶
func (c *CatalogObjectTimePeriod) GetPresentAtLocationIDs() []string
func (*CatalogObjectTimePeriod) GetTimePeriodData ¶
func (c *CatalogObjectTimePeriod) GetTimePeriodData() *CatalogTimePeriod
func (*CatalogObjectTimePeriod) GetUpdatedAt ¶
func (c *CatalogObjectTimePeriod) GetUpdatedAt() *string
func (*CatalogObjectTimePeriod) GetVersion ¶
func (c *CatalogObjectTimePeriod) GetVersion() *int64
func (*CatalogObjectTimePeriod) String ¶
func (c *CatalogObjectTimePeriod) String() string
func (*CatalogObjectTimePeriod) UnmarshalJSON ¶
func (c *CatalogObjectTimePeriod) UnmarshalJSON(data []byte) error
type CatalogObjectType ¶
type CatalogObjectType string
Possible types of CatalogObjects returned from the catalog, each containing type-specific properties in the `*_data` field corresponding to the specified object type.
const ( CatalogObjectTypeItem CatalogObjectType = "ITEM" CatalogObjectTypeImage CatalogObjectType = "IMAGE" CatalogObjectTypeCategory CatalogObjectType = "CATEGORY" CatalogObjectTypeItemVariation CatalogObjectType = "ITEM_VARIATION" CatalogObjectTypeTax CatalogObjectType = "TAX" CatalogObjectTypeDiscount CatalogObjectType = "DISCOUNT" CatalogObjectTypeModifierList CatalogObjectType = "MODIFIER_LIST" CatalogObjectTypeModifier CatalogObjectType = "MODIFIER" CatalogObjectTypePricingRule CatalogObjectType = "PRICING_RULE" CatalogObjectTypeProductSet CatalogObjectType = "PRODUCT_SET" CatalogObjectTypeTimePeriod CatalogObjectType = "TIME_PERIOD" CatalogObjectTypeMeasurementUnit CatalogObjectType = "MEASUREMENT_UNIT" CatalogObjectTypeSubscriptionPlanVariation CatalogObjectType = "SUBSCRIPTION_PLAN_VARIATION" CatalogObjectTypeItemOption CatalogObjectType = "ITEM_OPTION" CatalogObjectTypeItemOptionVal CatalogObjectType = "ITEM_OPTION_VAL" CatalogObjectTypeCustomAttributeDefinition CatalogObjectType = "CUSTOM_ATTRIBUTE_DEFINITION" CatalogObjectTypeQuickAmountsSettings CatalogObjectType = "QUICK_AMOUNTS_SETTINGS" CatalogObjectTypeSubscriptionPlan CatalogObjectType = "SUBSCRIPTION_PLAN" CatalogObjectTypeAvailabilityPeriod CatalogObjectType = "AVAILABILITY_PERIOD" )
func NewCatalogObjectTypeFromString ¶
func NewCatalogObjectTypeFromString(s string) (CatalogObjectType, error)
func (CatalogObjectType) Ptr ¶
func (c CatalogObjectType) Ptr() *CatalogObjectType
type CatalogObjectVisitor ¶
type CatalogObjectVisitor interface {
VisitItem(*CatalogObjectItem) error
VisitImage(*CatalogObjectImage) error
VisitCategory(*CatalogObjectCategory) error
VisitItemVariation(*CatalogObjectItemVariation) error
VisitTax(*CatalogObjectTax) error
VisitDiscount(*CatalogObjectDiscount) error
VisitModifierList(*CatalogObjectModifierList) error
VisitModifier(*CatalogObjectModifier) error
VisitPricingRule(*CatalogObjectPricingRule) error
VisitProductSet(*CatalogObjectProductSet) error
VisitTimePeriod(*CatalogObjectTimePeriod) error
VisitMeasurementUnit(*CatalogObjectMeasurementUnit) error
VisitSubscriptionPlanVariation(*CatalogObjectSubscriptionPlanVariation) error
VisitItemOption(*CatalogObjectItemOption) error
VisitItemOptionVal(*CatalogObjectItemOptionValue) error
VisitCustomAttributeDefinition(*CatalogObjectCustomAttributeDefinition) error
VisitQuickAmountsSettings(*CatalogObjectQuickAmountsSettings) error
VisitSubscriptionPlan(*CatalogObjectSubscriptionPlan) error
VisitAvailabilityPeriod(*CatalogObjectAvailabilityPeriod) error
}
type CatalogPricingRule ¶
type CatalogPricingRule struct {
// User-defined name for the pricing rule. For example, "Buy one get one
// free" or "10% off".
Name *string `json:"name,omitempty" url:"name,omitempty"`
// A list of unique IDs for the catalog time periods when
// this pricing rule is in effect. If left unset, the pricing rule is always
// in effect.
TimePeriodIDs []string `json:"time_period_ids,omitempty" url:"time_period_ids,omitempty"`
// Unique ID for the `CatalogDiscount` to take off
// the price of all matched items.
DiscountID *string `json:"discount_id,omitempty" url:"discount_id,omitempty"`
// Unique ID for the `CatalogProductSet` that will be matched by this rule. A match rule
// matches within the entire cart, and can match multiple times. This field will always be set.
MatchProductsID *string `json:"match_products_id,omitempty" url:"match_products_id,omitempty"`
// __Deprecated__: Please use the `exclude_products_id` field to apply
// an exclude set instead. Exclude sets allow better control over quantity
// ranges and offer more flexibility for which matched items receive a discount.
//
// `CatalogProductSet` to apply the pricing to.
// An apply rule matches within the subset of the cart that fits the match rules (the match set).
// An apply rule can only match once in the match set.
// If not supplied, the pricing will be applied to all products in the match set.
// Other products retain their base price, or a price generated by other rules.
ApplyProductsID *string `json:"apply_products_id,omitempty" url:"apply_products_id,omitempty"`
// `CatalogProductSet` to exclude from the pricing rule.
// An exclude rule matches within the subset of the cart that fits the match rules (the match set).
// An exclude rule can only match once in the match set.
// If not supplied, the pricing will be applied to all products in the match set.
// Other products retain their base price, or a price generated by other rules.
ExcludeProductsID *string `json:"exclude_products_id,omitempty" url:"exclude_products_id,omitempty"`
// Represents the date the Pricing Rule is valid from. Represented in RFC 3339 full-date format (YYYY-MM-DD).
ValidFromDate *string `json:"valid_from_date,omitempty" url:"valid_from_date,omitempty"`
// Represents the local time the pricing rule should be valid from. Represented in RFC 3339 partial-time format
// (HH:MM:SS). Partial seconds will be truncated.
ValidFromLocalTime *string `json:"valid_from_local_time,omitempty" url:"valid_from_local_time,omitempty"`
// Represents the date the Pricing Rule is valid until. Represented in RFC 3339 full-date format (YYYY-MM-DD).
ValidUntilDate *string `json:"valid_until_date,omitempty" url:"valid_until_date,omitempty"`
// Represents the local time the pricing rule should be valid until. Represented in RFC 3339 partial-time format
// (HH:MM:SS). Partial seconds will be truncated.
ValidUntilLocalTime *string `json:"valid_until_local_time,omitempty" url:"valid_until_local_time,omitempty"`
// If an `exclude_products_id` was given, controls which subset of matched
// products is excluded from any discounts.
//
// Default value: `LEAST_EXPENSIVE`
// See [ExcludeStrategy](#type-excludestrategy) for possible values
ExcludeStrategy *ExcludeStrategy `json:"exclude_strategy,omitempty" url:"exclude_strategy,omitempty"`
// The minimum order subtotal (before discounts or taxes are applied)
// that must be met before this rule may be applied.
MinimumOrderSubtotalMoney *Money `json:"minimum_order_subtotal_money,omitempty" url:"minimum_order_subtotal_money,omitempty"`
// A list of IDs of customer groups, the members of which are eligible for discounts specified in this pricing rule.
// Notice that a group ID is generated by the Customers API.
// If this field is not set, the specified discount applies to matched products sold to anyone whether the buyer
// has a customer profile created or not. If this `customer_group_ids_any` field is set, the specified discount
// applies only to matched products sold to customers belonging to the specified customer groups.
CustomerGroupIDsAny []string `json:"customer_group_ids_any,omitempty" url:"customer_group_ids_any,omitempty"`
// contains filtered or unexported fields
}
Defines how discounts are automatically applied to a set of items that match the pricing rule during the active time period.
func (*CatalogPricingRule) GetApplyProductsID ¶
func (c *CatalogPricingRule) GetApplyProductsID() *string
func (*CatalogPricingRule) GetCustomerGroupIDsAny ¶
func (c *CatalogPricingRule) GetCustomerGroupIDsAny() []string
func (*CatalogPricingRule) GetDiscountID ¶
func (c *CatalogPricingRule) GetDiscountID() *string
func (*CatalogPricingRule) GetExcludeProductsID ¶
func (c *CatalogPricingRule) GetExcludeProductsID() *string
func (*CatalogPricingRule) GetExcludeStrategy ¶
func (c *CatalogPricingRule) GetExcludeStrategy() *ExcludeStrategy
func (*CatalogPricingRule) GetExtraProperties ¶
func (c *CatalogPricingRule) GetExtraProperties() map[string]interface{}
func (*CatalogPricingRule) GetMatchProductsID ¶
func (c *CatalogPricingRule) GetMatchProductsID() *string
func (*CatalogPricingRule) GetMinimumOrderSubtotalMoney ¶
func (c *CatalogPricingRule) GetMinimumOrderSubtotalMoney() *Money
func (*CatalogPricingRule) GetName ¶
func (c *CatalogPricingRule) GetName() *string
func (*CatalogPricingRule) GetTimePeriodIDs ¶
func (c *CatalogPricingRule) GetTimePeriodIDs() []string
func (*CatalogPricingRule) GetValidFromDate ¶
func (c *CatalogPricingRule) GetValidFromDate() *string
func (*CatalogPricingRule) GetValidFromLocalTime ¶
func (c *CatalogPricingRule) GetValidFromLocalTime() *string
func (*CatalogPricingRule) GetValidUntilDate ¶
func (c *CatalogPricingRule) GetValidUntilDate() *string
func (*CatalogPricingRule) GetValidUntilLocalTime ¶
func (c *CatalogPricingRule) GetValidUntilLocalTime() *string
func (*CatalogPricingRule) String ¶
func (c *CatalogPricingRule) String() string
func (*CatalogPricingRule) UnmarshalJSON ¶
func (c *CatalogPricingRule) UnmarshalJSON(data []byte) error
type CatalogPricingType ¶
type CatalogPricingType string
Indicates whether the price of a CatalogItemVariation should be entered manually at the time of sale.
const ( CatalogPricingTypeFixedPricing CatalogPricingType = "FIXED_PRICING" CatalogPricingTypeVariablePricing CatalogPricingType = "VARIABLE_PRICING" )
func NewCatalogPricingTypeFromString ¶
func NewCatalogPricingTypeFromString(s string) (CatalogPricingType, error)
func (CatalogPricingType) Ptr ¶
func (c CatalogPricingType) Ptr() *CatalogPricingType
type CatalogProductSet ¶
type CatalogProductSet struct {
// User-defined name for the product set. For example, "Clearance Items"
// or "Winter Sale Items".
Name *string `json:"name,omitempty" url:"name,omitempty"`
// Unique IDs for any `CatalogObject` included in this product set. Any
//
// number of these catalog objects can be in an order for a pricing rule to apply.
//
// This can be used with `product_ids_all` in a parent `CatalogProductSet` to
// match groups of products for a bulk discount, such as a discount for an
// entree and side combo.
//
// Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set.
//
// Max: 500 catalog object IDs.
ProductIDsAny []string `json:"product_ids_any,omitempty" url:"product_ids_any,omitempty"`
// Unique IDs for any `CatalogObject` included in this product set.
// All objects in this set must be included in an order for a pricing rule to apply.
//
// Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set.
//
// Max: 500 catalog object IDs.
ProductIDsAll []string `json:"product_ids_all,omitempty" url:"product_ids_all,omitempty"`
// If set, there must be exactly this many items from `products_any` or `products_all`
// in the cart for the discount to apply.
//
// Cannot be combined with either `quantity_min` or `quantity_max`.
QuantityExact *int64 `json:"quantity_exact,omitempty" url:"quantity_exact,omitempty"`
// If set, there must be at least this many items from `products_any` or `products_all`
// in a cart for the discount to apply. See `quantity_exact`. Defaults to 0 if
// `quantity_exact`, `quantity_min` and `quantity_max` are all unspecified.
QuantityMin *int64 `json:"quantity_min,omitempty" url:"quantity_min,omitempty"`
// If set, the pricing rule will apply to a maximum of this many items from
// `products_any` or `products_all`.
QuantityMax *int64 `json:"quantity_max,omitempty" url:"quantity_max,omitempty"`
// If set to `true`, the product set will include every item in the catalog.
// Only one of `product_ids_all`, `product_ids_any`, or `all_products` can be set.
AllProducts *bool `json:"all_products,omitempty" url:"all_products,omitempty"`
// contains filtered or unexported fields
}
Represents a collection of catalog objects for the purpose of applying a `PricingRule`. Including a catalog object will include all of its subtypes. For example, including a category in a product set will include all of its items and associated item variations in the product set. Including an item in a product set will also include its item variations.
func (*CatalogProductSet) GetAllProducts ¶
func (c *CatalogProductSet) GetAllProducts() *bool
func (*CatalogProductSet) GetExtraProperties ¶
func (c *CatalogProductSet) GetExtraProperties() map[string]interface{}
func (*CatalogProductSet) GetName ¶
func (c *CatalogProductSet) GetName() *string
func (*CatalogProductSet) GetProductIDsAll ¶
func (c *CatalogProductSet) GetProductIDsAll() []string
func (*CatalogProductSet) GetProductIDsAny ¶
func (c *CatalogProductSet) GetProductIDsAny() []string
func (*CatalogProductSet) GetQuantityExact ¶
func (c *CatalogProductSet) GetQuantityExact() *int64
func (*CatalogProductSet) GetQuantityMax ¶
func (c *CatalogProductSet) GetQuantityMax() *int64
func (*CatalogProductSet) GetQuantityMin ¶
func (c *CatalogProductSet) GetQuantityMin() *int64
func (*CatalogProductSet) String ¶
func (c *CatalogProductSet) String() string
func (*CatalogProductSet) UnmarshalJSON ¶
func (c *CatalogProductSet) UnmarshalJSON(data []byte) error
type CatalogQuery ¶
type CatalogQuery struct {
// A query expression to sort returned query result by the given attribute.
SortedAttributeQuery *CatalogQuerySortedAttribute `json:"sorted_attribute_query,omitempty" url:"sorted_attribute_query,omitempty"`
// An exact query expression to return objects with attribute name and value
// matching the specified attribute name and value exactly. Value matching is case insensitive.
ExactQuery *CatalogQueryExact `json:"exact_query,omitempty" url:"exact_query,omitempty"`
// A set query expression to return objects with attribute name and value
// matching the specified attribute name and any of the specified attribute values exactly.
// Value matching is case insensitive.
SetQuery *CatalogQuerySet `json:"set_query,omitempty" url:"set_query,omitempty"`
// A prefix query expression to return objects with attribute values
// that have a prefix matching the specified string value. Value matching is case insensitive.
PrefixQuery *CatalogQueryPrefix `json:"prefix_query,omitempty" url:"prefix_query,omitempty"`
// A range query expression to return objects with numeric values
// that lie in the specified range.
RangeQuery *CatalogQueryRange `json:"range_query,omitempty" url:"range_query,omitempty"`
// A text query expression to return objects whose searchable attributes contain all of the given
// keywords, irrespective of their order. For example, if a `CatalogItem` contains custom attribute values of
// `{"name": "t-shirt"}` and `{"description": "Small, Purple"}`, the query filter of `{"keywords": ["shirt", "sma", "purp"]}`
// returns this item.
TextQuery *CatalogQueryText `json:"text_query,omitempty" url:"text_query,omitempty"`
// A query expression to return items that have any of the specified taxes (as identified by the corresponding `CatalogTax` object IDs) enabled.
ItemsForTaxQuery *CatalogQueryItemsForTax `json:"items_for_tax_query,omitempty" url:"items_for_tax_query,omitempty"`
// A query expression to return items that have any of the given modifier list (as identified by the corresponding `CatalogModifierList`s IDs) enabled.
ItemsForModifierListQuery *CatalogQueryItemsForModifierList `json:"items_for_modifier_list_query,omitempty" url:"items_for_modifier_list_query,omitempty"`
// A query expression to return items that contains the specified item options (as identified the corresponding `CatalogItemOption` IDs).
ItemsForItemOptionsQuery *CatalogQueryItemsForItemOptions `json:"items_for_item_options_query,omitempty" url:"items_for_item_options_query,omitempty"`
// A query expression to return item variations (of the [CatalogItemVariation](entity:CatalogItemVariation) type) that
// contain all of the specified `CatalogItemOption` IDs.
ItemVariationsForItemOptionValuesQuery *CatalogQueryItemVariationsForItemOptionValues `json:"item_variations_for_item_option_values_query,omitempty" url:"item_variations_for_item_option_values_query,omitempty"`
// contains filtered or unexported fields
}
A query composed of one or more different types of filters to narrow the scope of targeted objects when calling the `SearchCatalogObjects` endpoint.
Although a query can have multiple filters, only certain query types can be combined per call to [SearchCatalogObjects](api-endpoint:Catalog-SearchCatalogObjects). Any combination of the following types may be used together: - [exact_query](entity:CatalogQueryExact) - [prefix_query](entity:CatalogQueryPrefix) - [range_query](entity:CatalogQueryRange) - [sorted_attribute_query](entity:CatalogQuerySortedAttribute) - [text_query](entity:CatalogQueryText)
All other query types cannot be combined with any others.
When a query filter is based on an attribute, the attribute must be searchable. Searchable attributes are listed as follows, along their parent types that can be searched for with applicable query filters.
Searchable attribute and objects queryable by searchable attributes: - `name`: `CatalogItem`, `CatalogItemVariation`, `CatalogCategory`, `CatalogTax`, `CatalogDiscount`, `CatalogModifier`, `CatalogModifierList`, `CatalogItemOption`, `CatalogItemOptionValue` - `description`: `CatalogItem`, `CatalogItemOptionValue` - `abbreviation`: `CatalogItem` - `upc`: `CatalogItemVariation` - `sku`: `CatalogItemVariation` - `caption`: `CatalogImage` - `display_name`: `CatalogItemOption`
For example, to search for CatalogItem(entity:CatalogItem) objects by searchable attributes, you can use the `"name"`, `"description"`, or `"abbreviation"` attribute in an applicable query filter.
func (*CatalogQuery) GetExactQuery ¶
func (c *CatalogQuery) GetExactQuery() *CatalogQueryExact
func (*CatalogQuery) GetExtraProperties ¶
func (c *CatalogQuery) GetExtraProperties() map[string]interface{}
func (*CatalogQuery) GetItemVariationsForItemOptionValuesQuery ¶
func (c *CatalogQuery) GetItemVariationsForItemOptionValuesQuery() *CatalogQueryItemVariationsForItemOptionValues
func (*CatalogQuery) GetItemsForItemOptionsQuery ¶
func (c *CatalogQuery) GetItemsForItemOptionsQuery() *CatalogQueryItemsForItemOptions
func (*CatalogQuery) GetItemsForModifierListQuery ¶
func (c *CatalogQuery) GetItemsForModifierListQuery() *CatalogQueryItemsForModifierList
func (*CatalogQuery) GetItemsForTaxQuery ¶
func (c *CatalogQuery) GetItemsForTaxQuery() *CatalogQueryItemsForTax
func (*CatalogQuery) GetPrefixQuery ¶
func (c *CatalogQuery) GetPrefixQuery() *CatalogQueryPrefix
func (*CatalogQuery) GetRangeQuery ¶
func (c *CatalogQuery) GetRangeQuery() *CatalogQueryRange
func (*CatalogQuery) GetSetQuery ¶
func (c *CatalogQuery) GetSetQuery() *CatalogQuerySet
func (*CatalogQuery) GetSortedAttributeQuery ¶
func (c *CatalogQuery) GetSortedAttributeQuery() *CatalogQuerySortedAttribute
func (*CatalogQuery) GetTextQuery ¶
func (c *CatalogQuery) GetTextQuery() *CatalogQueryText
func (*CatalogQuery) String ¶
func (c *CatalogQuery) String() string
func (*CatalogQuery) UnmarshalJSON ¶
func (c *CatalogQuery) UnmarshalJSON(data []byte) error
type CatalogQueryExact ¶
type CatalogQueryExact struct {
// The name of the attribute to be searched. Matching of the attribute name is exact.
AttributeName string `json:"attribute_name" url:"attribute_name"`
// The desired value of the search attribute. Matching of the attribute value is case insensitive and can be partial.
// For example, if a specified value of "sma", objects with the named attribute value of "Small", "small" are both matched.
AttributeValue string `json:"attribute_value" url:"attribute_value"`
// contains filtered or unexported fields
}
The query filter to return the search result by exact match of the specified attribute name and value.
func (*CatalogQueryExact) GetAttributeName ¶
func (c *CatalogQueryExact) GetAttributeName() string
func (*CatalogQueryExact) GetAttributeValue ¶
func (c *CatalogQueryExact) GetAttributeValue() string
func (*CatalogQueryExact) GetExtraProperties ¶
func (c *CatalogQueryExact) GetExtraProperties() map[string]interface{}
func (*CatalogQueryExact) String ¶
func (c *CatalogQueryExact) String() string
func (*CatalogQueryExact) UnmarshalJSON ¶
func (c *CatalogQueryExact) UnmarshalJSON(data []byte) error
type CatalogQueryItemVariationsForItemOptionValues ¶
type CatalogQueryItemVariationsForItemOptionValues struct {
// A set of `CatalogItemOptionValue` IDs to be used to find associated
// `CatalogItemVariation`s. All ItemVariations that contain all of the given
// Item Option Values (in any order) will be returned.
ItemOptionValueIDs []string `json:"item_option_value_ids,omitempty" url:"item_option_value_ids,omitempty"`
// contains filtered or unexported fields
}
The query filter to return the item variations containing the specified item option value IDs.
func (*CatalogQueryItemVariationsForItemOptionValues) GetExtraProperties ¶
func (c *CatalogQueryItemVariationsForItemOptionValues) GetExtraProperties() map[string]interface{}
func (*CatalogQueryItemVariationsForItemOptionValues) GetItemOptionValueIDs ¶
func (c *CatalogQueryItemVariationsForItemOptionValues) GetItemOptionValueIDs() []string
func (*CatalogQueryItemVariationsForItemOptionValues) String ¶
func (c *CatalogQueryItemVariationsForItemOptionValues) String() string
func (*CatalogQueryItemVariationsForItemOptionValues) UnmarshalJSON ¶
func (c *CatalogQueryItemVariationsForItemOptionValues) UnmarshalJSON(data []byte) error
type CatalogQueryItemsForItemOptions ¶
type CatalogQueryItemsForItemOptions struct {
// A set of `CatalogItemOption` IDs to be used to find associated
// `CatalogItem`s. All Items that contain all of the given Item Options (in any order)
// will be returned.
ItemOptionIDs []string `json:"item_option_ids,omitempty" url:"item_option_ids,omitempty"`
// contains filtered or unexported fields
}
The query filter to return the items containing the specified item option IDs.
func (*CatalogQueryItemsForItemOptions) GetExtraProperties ¶
func (c *CatalogQueryItemsForItemOptions) GetExtraProperties() map[string]interface{}
func (*CatalogQueryItemsForItemOptions) GetItemOptionIDs ¶
func (c *CatalogQueryItemsForItemOptions) GetItemOptionIDs() []string
func (*CatalogQueryItemsForItemOptions) String ¶
func (c *CatalogQueryItemsForItemOptions) String() string
func (*CatalogQueryItemsForItemOptions) UnmarshalJSON ¶
func (c *CatalogQueryItemsForItemOptions) UnmarshalJSON(data []byte) error
type CatalogQueryItemsForModifierList ¶
type CatalogQueryItemsForModifierList struct {
// A set of `CatalogModifierList` IDs to be used to find associated `CatalogItem`s.
ModifierListIDs []string `json:"modifier_list_ids,omitempty" url:"modifier_list_ids,omitempty"`
// contains filtered or unexported fields
}
The query filter to return the items containing the specified modifier list IDs.
func (*CatalogQueryItemsForModifierList) GetExtraProperties ¶
func (c *CatalogQueryItemsForModifierList) GetExtraProperties() map[string]interface{}
func (*CatalogQueryItemsForModifierList) GetModifierListIDs ¶
func (c *CatalogQueryItemsForModifierList) GetModifierListIDs() []string
func (*CatalogQueryItemsForModifierList) String ¶
func (c *CatalogQueryItemsForModifierList) String() string
func (*CatalogQueryItemsForModifierList) UnmarshalJSON ¶
func (c *CatalogQueryItemsForModifierList) UnmarshalJSON(data []byte) error
type CatalogQueryItemsForTax ¶
type CatalogQueryItemsForTax struct {
// A set of `CatalogTax` IDs to be used to find associated `CatalogItem`s.
TaxIDs []string `json:"tax_ids,omitempty" url:"tax_ids,omitempty"`
// contains filtered or unexported fields
}
The query filter to return the items containing the specified tax IDs.
func (*CatalogQueryItemsForTax) GetExtraProperties ¶
func (c *CatalogQueryItemsForTax) GetExtraProperties() map[string]interface{}
func (*CatalogQueryItemsForTax) GetTaxIDs ¶
func (c *CatalogQueryItemsForTax) GetTaxIDs() []string
func (*CatalogQueryItemsForTax) String ¶
func (c *CatalogQueryItemsForTax) String() string
func (*CatalogQueryItemsForTax) UnmarshalJSON ¶
func (c *CatalogQueryItemsForTax) UnmarshalJSON(data []byte) error
type CatalogQueryPrefix ¶
type CatalogQueryPrefix struct {
// The name of the attribute to be searched.
AttributeName string `json:"attribute_name" url:"attribute_name"`
// The desired prefix of the search attribute value.
AttributePrefix string `json:"attribute_prefix" url:"attribute_prefix"`
// contains filtered or unexported fields
}
The query filter to return the search result whose named attribute values are prefixed by the specified attribute value.
func (*CatalogQueryPrefix) GetAttributeName ¶
func (c *CatalogQueryPrefix) GetAttributeName() string
func (*CatalogQueryPrefix) GetAttributePrefix ¶
func (c *CatalogQueryPrefix) GetAttributePrefix() string
func (*CatalogQueryPrefix) GetExtraProperties ¶
func (c *CatalogQueryPrefix) GetExtraProperties() map[string]interface{}
func (*CatalogQueryPrefix) String ¶
func (c *CatalogQueryPrefix) String() string
func (*CatalogQueryPrefix) UnmarshalJSON ¶
func (c *CatalogQueryPrefix) UnmarshalJSON(data []byte) error
type CatalogQueryRange ¶
type CatalogQueryRange struct {
// The name of the attribute to be searched.
AttributeName string `json:"attribute_name" url:"attribute_name"`
// The desired minimum value for the search attribute (inclusive).
AttributeMinValue *int64 `json:"attribute_min_value,omitempty" url:"attribute_min_value,omitempty"`
// The desired maximum value for the search attribute (inclusive).
AttributeMaxValue *int64 `json:"attribute_max_value,omitempty" url:"attribute_max_value,omitempty"`
// contains filtered or unexported fields
}
The query filter to return the search result whose named attribute values fall between the specified range.
func (*CatalogQueryRange) GetAttributeMaxValue ¶
func (c *CatalogQueryRange) GetAttributeMaxValue() *int64
func (*CatalogQueryRange) GetAttributeMinValue ¶
func (c *CatalogQueryRange) GetAttributeMinValue() *int64
func (*CatalogQueryRange) GetAttributeName ¶
func (c *CatalogQueryRange) GetAttributeName() string
func (*CatalogQueryRange) GetExtraProperties ¶
func (c *CatalogQueryRange) GetExtraProperties() map[string]interface{}
func (*CatalogQueryRange) String ¶
func (c *CatalogQueryRange) String() string
func (*CatalogQueryRange) UnmarshalJSON ¶
func (c *CatalogQueryRange) UnmarshalJSON(data []byte) error
type CatalogQuerySet ¶
type CatalogQuerySet struct {
// The name of the attribute to be searched. Matching of the attribute name is exact.
AttributeName string `json:"attribute_name" url:"attribute_name"`
// The desired values of the search attribute. Matching of the attribute values is exact and case insensitive.
// A maximum of 250 values may be searched in a request.
AttributeValues []string `json:"attribute_values,omitempty" url:"attribute_values,omitempty"`
// contains filtered or unexported fields
}
The query filter to return the search result(s) by exact match of the specified `attribute_name` and any of the `attribute_values`.
func (*CatalogQuerySet) GetAttributeName ¶
func (c *CatalogQuerySet) GetAttributeName() string
func (*CatalogQuerySet) GetAttributeValues ¶
func (c *CatalogQuerySet) GetAttributeValues() []string
func (*CatalogQuerySet) GetExtraProperties ¶
func (c *CatalogQuerySet) GetExtraProperties() map[string]interface{}
func (*CatalogQuerySet) String ¶
func (c *CatalogQuerySet) String() string
func (*CatalogQuerySet) UnmarshalJSON ¶
func (c *CatalogQuerySet) UnmarshalJSON(data []byte) error
type CatalogQuerySortedAttribute ¶
type CatalogQuerySortedAttribute struct {
// The attribute whose value is used as the sort key.
AttributeName string `json:"attribute_name" url:"attribute_name"`
// The first attribute value to be returned by the query. Ascending sorts will return only
// objects with this value or greater, while descending sorts will return only objects with this value
// or less. If unset, start at the beginning (for ascending sorts) or end (for descending sorts).
InitialAttributeValue *string `json:"initial_attribute_value,omitempty" url:"initial_attribute_value,omitempty"`
// The desired sort order, `"ASC"` (ascending) or `"DESC"` (descending).
// See [SortOrder](#type-sortorder) for possible values
SortOrder *SortOrder `json:"sort_order,omitempty" url:"sort_order,omitempty"`
// contains filtered or unexported fields
}
The query expression to specify the key to sort search results.
func (*CatalogQuerySortedAttribute) GetAttributeName ¶
func (c *CatalogQuerySortedAttribute) GetAttributeName() string
func (*CatalogQuerySortedAttribute) GetExtraProperties ¶
func (c *CatalogQuerySortedAttribute) GetExtraProperties() map[string]interface{}
func (*CatalogQuerySortedAttribute) GetInitialAttributeValue ¶
func (c *CatalogQuerySortedAttribute) GetInitialAttributeValue() *string
func (*CatalogQuerySortedAttribute) GetSortOrder ¶
func (c *CatalogQuerySortedAttribute) GetSortOrder() *SortOrder
func (*CatalogQuerySortedAttribute) String ¶
func (c *CatalogQuerySortedAttribute) String() string
func (*CatalogQuerySortedAttribute) UnmarshalJSON ¶
func (c *CatalogQuerySortedAttribute) UnmarshalJSON(data []byte) error
type CatalogQueryText ¶
type CatalogQueryText struct {
// A list of 1, 2, or 3 search keywords. Keywords with fewer than 3 alphanumeric characters are ignored.
Keywords []string `json:"keywords,omitempty" url:"keywords,omitempty"`
// contains filtered or unexported fields
}
The query filter to return the search result whose searchable attribute values contain all of the specified keywords or tokens, independent of the token order or case.
func (*CatalogQueryText) GetExtraProperties ¶
func (c *CatalogQueryText) GetExtraProperties() map[string]interface{}
func (*CatalogQueryText) GetKeywords ¶
func (c *CatalogQueryText) GetKeywords() []string
func (*CatalogQueryText) String ¶
func (c *CatalogQueryText) String() string
func (*CatalogQueryText) UnmarshalJSON ¶
func (c *CatalogQueryText) UnmarshalJSON(data []byte) error
type CatalogQuickAmount ¶
type CatalogQuickAmount struct {
// Represents the type of the Quick Amount.
// See [CatalogQuickAmountType](#type-catalogquickamounttype) for possible values
Type CatalogQuickAmountType `json:"type" url:"type"`
// Represents the actual amount of the Quick Amount with Money type.
Amount *Money `json:"amount,omitempty" url:"amount,omitempty"`
// Describes the ranking of the Quick Amount provided by machine learning model, in the range [0, 100].
// MANUAL type amount will always have score = 100.
Score *int64 `json:"score,omitempty" url:"score,omitempty"`
// The order in which this Quick Amount should be displayed.
Ordinal *int64 `json:"ordinal,omitempty" url:"ordinal,omitempty"`
// contains filtered or unexported fields
}
Represents a Quick Amount in the Catalog.
func (*CatalogQuickAmount) GetAmount ¶
func (c *CatalogQuickAmount) GetAmount() *Money
func (*CatalogQuickAmount) GetExtraProperties ¶
func (c *CatalogQuickAmount) GetExtraProperties() map[string]interface{}
func (*CatalogQuickAmount) GetOrdinal ¶
func (c *CatalogQuickAmount) GetOrdinal() *int64
func (*CatalogQuickAmount) GetScore ¶
func (c *CatalogQuickAmount) GetScore() *int64
func (*CatalogQuickAmount) GetType ¶
func (c *CatalogQuickAmount) GetType() CatalogQuickAmountType
func (*CatalogQuickAmount) String ¶
func (c *CatalogQuickAmount) String() string
func (*CatalogQuickAmount) UnmarshalJSON ¶
func (c *CatalogQuickAmount) UnmarshalJSON(data []byte) error
type CatalogQuickAmountType ¶
type CatalogQuickAmountType string
Determines the type of a specific Quick Amount.
const ( CatalogQuickAmountTypeQuickAmountTypeManual CatalogQuickAmountType = "QUICK_AMOUNT_TYPE_MANUAL" CatalogQuickAmountTypeQuickAmountTypeAuto CatalogQuickAmountType = "QUICK_AMOUNT_TYPE_AUTO" )
func NewCatalogQuickAmountTypeFromString ¶
func NewCatalogQuickAmountTypeFromString(s string) (CatalogQuickAmountType, error)
func (CatalogQuickAmountType) Ptr ¶
func (c CatalogQuickAmountType) Ptr() *CatalogQuickAmountType
type CatalogQuickAmountsSettings ¶
type CatalogQuickAmountsSettings struct {
// Represents the option seller currently uses on Quick Amounts.
// See [CatalogQuickAmountsSettingsOption](#type-catalogquickamountssettingsoption) for possible values
Option CatalogQuickAmountsSettingsOption `json:"option" url:"option"`
// Represents location's eligibility for auto amounts
// The boolean should be consistent with whether there are AUTO amounts in the `amounts`.
EligibleForAutoAmounts *bool `json:"eligible_for_auto_amounts,omitempty" url:"eligible_for_auto_amounts,omitempty"`
// Represents a set of Quick Amounts at this location.
Amounts []*CatalogQuickAmount `json:"amounts,omitempty" url:"amounts,omitempty"`
// contains filtered or unexported fields
}
A parent Catalog Object model represents a set of Quick Amounts and the settings control the amounts.
func (*CatalogQuickAmountsSettings) GetAmounts ¶
func (c *CatalogQuickAmountsSettings) GetAmounts() []*CatalogQuickAmount
func (*CatalogQuickAmountsSettings) GetEligibleForAutoAmounts ¶
func (c *CatalogQuickAmountsSettings) GetEligibleForAutoAmounts() *bool
func (*CatalogQuickAmountsSettings) GetExtraProperties ¶
func (c *CatalogQuickAmountsSettings) GetExtraProperties() map[string]interface{}
func (*CatalogQuickAmountsSettings) GetOption ¶
func (c *CatalogQuickAmountsSettings) GetOption() CatalogQuickAmountsSettingsOption
func (*CatalogQuickAmountsSettings) String ¶
func (c *CatalogQuickAmountsSettings) String() string
func (*CatalogQuickAmountsSettings) UnmarshalJSON ¶
func (c *CatalogQuickAmountsSettings) UnmarshalJSON(data []byte) error
type CatalogQuickAmountsSettingsOption ¶
type CatalogQuickAmountsSettingsOption string
Determines a seller's option on Quick Amounts feature.
const ( CatalogQuickAmountsSettingsOptionDisabled CatalogQuickAmountsSettingsOption = "DISABLED" CatalogQuickAmountsSettingsOptionManual CatalogQuickAmountsSettingsOption = "MANUAL" CatalogQuickAmountsSettingsOptionAuto CatalogQuickAmountsSettingsOption = "AUTO" )
func NewCatalogQuickAmountsSettingsOptionFromString ¶
func NewCatalogQuickAmountsSettingsOptionFromString(s string) (CatalogQuickAmountsSettingsOption, error)
func (CatalogQuickAmountsSettingsOption) Ptr ¶
func (c CatalogQuickAmountsSettingsOption) Ptr() *CatalogQuickAmountsSettingsOption
type CatalogStockConversion ¶
type CatalogStockConversion struct {
// References to the stockable [CatalogItemVariation](entity:CatalogItemVariation)
// for this stock conversion. Selling, receiving or recounting the non-stockable `CatalogItemVariation`
// defined with a stock conversion results in adjustments of this stockable `CatalogItemVariation`.
// This immutable field must reference a stockable `CatalogItemVariation`
// that shares the parent [CatalogItem](entity:CatalogItem) of the converted `CatalogItemVariation.`
StockableItemVariationID string `json:"stockable_item_variation_id" url:"stockable_item_variation_id"`
// The quantity of the stockable item variation (as identified by `stockable_item_variation_id`)
// equivalent to the non-stockable item variation quantity (as specified in `nonstockable_quantity`)
// as defined by this stock conversion. It accepts a decimal number in a string format that can take
// up to 10 digits before the decimal point and up to 5 digits after the decimal point.
StockableQuantity string `json:"stockable_quantity" url:"stockable_quantity"`
// The converted equivalent quantity of the non-stockable [CatalogItemVariation](entity:CatalogItemVariation)
// in its measurement unit. The `stockable_quantity` value and this `nonstockable_quantity` value together
// define the conversion ratio between stockable item variation and the non-stockable item variation.
// It accepts a decimal number in a string format that can take up to 10 digits before the decimal point
// and up to 5 digits after the decimal point.
NonstockableQuantity string `json:"nonstockable_quantity" url:"nonstockable_quantity"`
// contains filtered or unexported fields
}
Represents the rule of conversion between a stockable CatalogItemVariation(entity:CatalogItemVariation) and a non-stockable sell-by or receive-by `CatalogItemVariation` that share the same underlying stock.
func (*CatalogStockConversion) GetExtraProperties ¶
func (c *CatalogStockConversion) GetExtraProperties() map[string]interface{}
func (*CatalogStockConversion) GetNonstockableQuantity ¶
func (c *CatalogStockConversion) GetNonstockableQuantity() string
func (*CatalogStockConversion) GetStockableItemVariationID ¶
func (c *CatalogStockConversion) GetStockableItemVariationID() string
func (*CatalogStockConversion) GetStockableQuantity ¶
func (c *CatalogStockConversion) GetStockableQuantity() string
func (*CatalogStockConversion) String ¶
func (c *CatalogStockConversion) String() string
func (*CatalogStockConversion) UnmarshalJSON ¶
func (c *CatalogStockConversion) UnmarshalJSON(data []byte) error
type CatalogSubscriptionPlan ¶
type CatalogSubscriptionPlan struct {
// The name of the plan.
Name string `json:"name" url:"name"`
// A list of SubscriptionPhase containing the [SubscriptionPhase](entity:SubscriptionPhase) for this plan.
// This field it required. Not including this field will throw a REQUIRED_FIELD_MISSING error
Phases []*SubscriptionPhase `json:"phases,omitempty" url:"phases,omitempty"`
// The list of subscription plan variations available for this product
SubscriptionPlanVariations []*CatalogObject `json:"subscription_plan_variations,omitempty" url:"subscription_plan_variations,omitempty"`
// The list of IDs of `CatalogItems` that are eligible for subscription by this SubscriptionPlan's variations.
EligibleItemIDs []string `json:"eligible_item_ids,omitempty" url:"eligible_item_ids,omitempty"`
// The list of IDs of `CatalogCategory` that are eligible for subscription by this SubscriptionPlan's variations.
EligibleCategoryIDs []string `json:"eligible_category_ids,omitempty" url:"eligible_category_ids,omitempty"`
// If true, all items in the merchant's catalog are subscribable by this SubscriptionPlan.
AllItems *bool `json:"all_items,omitempty" url:"all_items,omitempty"`
// contains filtered or unexported fields
}
Describes a subscription plan. A subscription plan represents what you want to sell in a subscription model, and includes references to each of the associated subscription plan variations. For more information, see [Subscription Plans and Variations](https://developer.squareup.com/docs/subscriptions-api/plans-and-variations).
func (*CatalogSubscriptionPlan) GetAllItems ¶
func (c *CatalogSubscriptionPlan) GetAllItems() *bool
func (*CatalogSubscriptionPlan) GetEligibleCategoryIDs ¶
func (c *CatalogSubscriptionPlan) GetEligibleCategoryIDs() []string
func (*CatalogSubscriptionPlan) GetEligibleItemIDs ¶
func (c *CatalogSubscriptionPlan) GetEligibleItemIDs() []string
func (*CatalogSubscriptionPlan) GetExtraProperties ¶
func (c *CatalogSubscriptionPlan) GetExtraProperties() map[string]interface{}
func (*CatalogSubscriptionPlan) GetName ¶
func (c *CatalogSubscriptionPlan) GetName() string
func (*CatalogSubscriptionPlan) GetPhases ¶
func (c *CatalogSubscriptionPlan) GetPhases() []*SubscriptionPhase
func (*CatalogSubscriptionPlan) GetSubscriptionPlanVariations ¶
func (c *CatalogSubscriptionPlan) GetSubscriptionPlanVariations() []*CatalogObject
func (*CatalogSubscriptionPlan) String ¶
func (c *CatalogSubscriptionPlan) String() string
func (*CatalogSubscriptionPlan) UnmarshalJSON ¶
func (c *CatalogSubscriptionPlan) UnmarshalJSON(data []byte) error
type CatalogSubscriptionPlanVariation ¶ added in v1.4.0
type CatalogSubscriptionPlanVariation struct {
// The name of the plan variation.
Name string `json:"name" url:"name"`
// A list containing each [SubscriptionPhase](entity:SubscriptionPhase) for this plan variation.
Phases []*SubscriptionPhase `json:"phases,omitempty" url:"phases,omitempty"`
// The id of the subscription plan, if there is one.
SubscriptionPlanID *string `json:"subscription_plan_id,omitempty" url:"subscription_plan_id,omitempty"`
// The day of the month the billing period starts.
MonthlyBillingAnchorDate *int64 `json:"monthly_billing_anchor_date,omitempty" url:"monthly_billing_anchor_date,omitempty"`
// Whether bills for this plan variation can be split for proration.
CanProrate *bool `json:"can_prorate,omitempty" url:"can_prorate,omitempty"`
// The ID of a "successor" plan variation to this one. If the field is set, and this object is disabled at all
// locations, it indicates that this variation is deprecated and the object identified by the successor ID be used in
// its stead.
SuccessorPlanVariationID *string `json:"successor_plan_variation_id,omitempty" url:"successor_plan_variation_id,omitempty"`
// contains filtered or unexported fields
}
Describes a subscription plan variation. A subscription plan variation represents how the subscription for a product or service is sold. For more information, see [Subscription Plans and Variations](https://developer.squareup.com/docs/subscriptions-api/plans-and-variations).
func (*CatalogSubscriptionPlanVariation) GetCanProrate ¶ added in v1.4.0
func (c *CatalogSubscriptionPlanVariation) GetCanProrate() *bool
func (*CatalogSubscriptionPlanVariation) GetExtraProperties ¶ added in v1.4.0
func (c *CatalogSubscriptionPlanVariation) GetExtraProperties() map[string]interface{}
func (*CatalogSubscriptionPlanVariation) GetMonthlyBillingAnchorDate ¶ added in v1.4.0
func (c *CatalogSubscriptionPlanVariation) GetMonthlyBillingAnchorDate() *int64
func (*CatalogSubscriptionPlanVariation) GetName ¶ added in v1.4.0
func (c *CatalogSubscriptionPlanVariation) GetName() string
func (*CatalogSubscriptionPlanVariation) GetPhases ¶ added in v1.4.0
func (c *CatalogSubscriptionPlanVariation) GetPhases() []*SubscriptionPhase
func (*CatalogSubscriptionPlanVariation) GetSubscriptionPlanID ¶ added in v1.4.0
func (c *CatalogSubscriptionPlanVariation) GetSubscriptionPlanID() *string
func (*CatalogSubscriptionPlanVariation) GetSuccessorPlanVariationID ¶ added in v1.4.0
func (c *CatalogSubscriptionPlanVariation) GetSuccessorPlanVariationID() *string
func (*CatalogSubscriptionPlanVariation) String ¶ added in v1.4.0
func (c *CatalogSubscriptionPlanVariation) String() string
func (*CatalogSubscriptionPlanVariation) UnmarshalJSON ¶ added in v1.4.0
func (c *CatalogSubscriptionPlanVariation) UnmarshalJSON(data []byte) error
type CatalogTax ¶
type CatalogTax struct {
// The tax's name. This is a searchable attribute for use in applicable query filters, and its value length is of Unicode code points.
Name *string `json:"name,omitempty" url:"name,omitempty"`
// Whether the tax is calculated based on a payment's subtotal or total.
// See [TaxCalculationPhase](#type-taxcalculationphase) for possible values
CalculationPhase *TaxCalculationPhase `json:"calculation_phase,omitempty" url:"calculation_phase,omitempty"`
// Whether the tax is `ADDITIVE` or `INCLUSIVE`.
// See [TaxInclusionType](#type-taxinclusiontype) for possible values
InclusionType *TaxInclusionType `json:"inclusion_type,omitempty" url:"inclusion_type,omitempty"`
// The percentage of the tax in decimal form, using a `'.'` as the decimal separator and without a `'%'` sign.
// A value of `7.5` corresponds to 7.5%. For a location-specific tax rate, contact the tax authority of the location or a tax consultant.
Percentage *string `json:"percentage,omitempty" url:"percentage,omitempty"`
// If `true`, the fee applies to custom amounts entered into the Square Point of Sale
// app that are not associated with a particular `CatalogItem`.
AppliesToCustomAmounts *bool `json:"applies_to_custom_amounts,omitempty" url:"applies_to_custom_amounts,omitempty"`
// A Boolean flag to indicate whether the tax is displayed as enabled (`true`) in the Square Point of Sale app or not (`false`).
Enabled *bool `json:"enabled,omitempty" url:"enabled,omitempty"`
// The ID of a `CatalogProductSet` object. If set, the tax is applicable to all products in the product set.
AppliesToProductSetID *string `json:"applies_to_product_set_id,omitempty" url:"applies_to_product_set_id,omitempty"`
// contains filtered or unexported fields
}
A tax applicable to an item.
func (*CatalogTax) GetAppliesToCustomAmounts ¶
func (c *CatalogTax) GetAppliesToCustomAmounts() *bool
func (*CatalogTax) GetAppliesToProductSetID ¶
func (c *CatalogTax) GetAppliesToProductSetID() *string
func (*CatalogTax) GetCalculationPhase ¶
func (c *CatalogTax) GetCalculationPhase() *TaxCalculationPhase
func (*CatalogTax) GetEnabled ¶
func (c *CatalogTax) GetEnabled() *bool
func (*CatalogTax) GetExtraProperties ¶
func (c *CatalogTax) GetExtraProperties() map[string]interface{}
func (*CatalogTax) GetInclusionType ¶
func (c *CatalogTax) GetInclusionType() *TaxInclusionType
func (*CatalogTax) GetName ¶
func (c *CatalogTax) GetName() *string
func (*CatalogTax) GetPercentage ¶
func (c *CatalogTax) GetPercentage() *string
func (*CatalogTax) String ¶
func (c *CatalogTax) String() string
func (*CatalogTax) UnmarshalJSON ¶
func (c *CatalogTax) UnmarshalJSON(data []byte) error
type CatalogTimePeriod ¶
type CatalogTimePeriod struct {
// An iCalendar (RFC 5545) [event](https://tools.ietf.org/html/rfc5545#section-3.6.1), which
// specifies the name, timing, duration and recurrence of this time period.
//
// Example:
//
// “`
// DTSTART:20190707T180000
// DURATION:P2H
// RRULE:FREQ=WEEKLY;BYDAY=MO,WE,FR
// “`
//
// Only `SUMMARY`, `DTSTART`, `DURATION` and `RRULE` fields are supported.
// `DTSTART` must be in local (unzoned) time format. Note that while `BEGIN:VEVENT`
// and `END:VEVENT` is not required in the request. The response will always
// include them.
Event *string `json:"event,omitempty" url:"event,omitempty"`
// contains filtered or unexported fields
}
Represents a time period - either a single period or a repeating period.
func (*CatalogTimePeriod) GetEvent ¶
func (c *CatalogTimePeriod) GetEvent() *string
func (*CatalogTimePeriod) GetExtraProperties ¶
func (c *CatalogTimePeriod) GetExtraProperties() map[string]interface{}
func (*CatalogTimePeriod) String ¶
func (c *CatalogTimePeriod) String() string
func (*CatalogTimePeriod) UnmarshalJSON ¶
func (c *CatalogTimePeriod) UnmarshalJSON(data []byte) error
type CatalogV1ID ¶
type CatalogV1ID struct {
// The ID for an object used in the Square API V1, if the object ID differs from the Square API V2 object ID.
CatalogV1ID *string `json:"catalog_v1_id,omitempty" url:"catalog_v1_id,omitempty"`
// The ID of the `Location` this Connect V1 ID is associated with.
LocationID *string `json:"location_id,omitempty" url:"location_id,omitempty"`
// contains filtered or unexported fields
}
A Square API V1 identifier of an item, including the object ID and its associated location ID.
func (*CatalogV1ID) GetCatalogV1ID ¶
func (c *CatalogV1ID) GetCatalogV1ID() *string
func (*CatalogV1ID) GetExtraProperties ¶
func (c *CatalogV1ID) GetExtraProperties() map[string]interface{}
func (*CatalogV1ID) GetLocationID ¶
func (c *CatalogV1ID) GetLocationID() *string
func (*CatalogV1ID) String ¶
func (c *CatalogV1ID) String() string
func (*CatalogV1ID) UnmarshalJSON ¶
func (c *CatalogV1ID) UnmarshalJSON(data []byte) error
type CategoryPathToRootNode ¶
type CategoryPathToRootNode struct {
// The category's ID.
CategoryID *string `json:"category_id,omitempty" url:"category_id,omitempty"`
// The category's name.
CategoryName *string `json:"category_name,omitempty" url:"category_name,omitempty"`
// contains filtered or unexported fields
}
A node in the path from a retrieved category to its root node.
func (*CategoryPathToRootNode) GetCategoryID ¶
func (c *CategoryPathToRootNode) GetCategoryID() *string
func (*CategoryPathToRootNode) GetCategoryName ¶
func (c *CategoryPathToRootNode) GetCategoryName() *string
func (*CategoryPathToRootNode) GetExtraProperties ¶
func (c *CategoryPathToRootNode) GetExtraProperties() map[string]interface{}
func (*CategoryPathToRootNode) String ¶
func (c *CategoryPathToRootNode) String() string
func (*CategoryPathToRootNode) UnmarshalJSON ¶
func (c *CategoryPathToRootNode) UnmarshalJSON(data []byte) error
type ChangeBillingAnchorDateRequest ¶
type ChangeBillingAnchorDateRequest struct {
// The ID of the subscription to update the billing anchor date.
SubscriptionID string `json:"-" url:"-"`
// The anchor day for the billing cycle.
MonthlyBillingAnchorDate *int `json:"monthly_billing_anchor_date,omitempty" url:"-"`
// The `YYYY-MM-DD`-formatted date when the scheduled `BILLING_ANCHOR_CHANGE` action takes
// place on the subscription.
//
// When this date is unspecified or falls within the current billing cycle, the billing anchor date
// is changed immediately.
EffectiveDate *string `json:"effective_date,omitempty" url:"-"`
}
type ChangeBillingAnchorDateResponse ¶
type ChangeBillingAnchorDateResponse struct {
// Errors encountered during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// The specified subscription for updating billing anchor date.
Subscription *Subscription `json:"subscription,omitempty" url:"subscription,omitempty"`
// A list of a single billing anchor date change for the subscription.
Actions []*SubscriptionAction `json:"actions,omitempty" url:"actions,omitempty"`
// contains filtered or unexported fields
}
Defines output parameters in a request to the [ChangeBillingAnchorDate](api-endpoint:Subscriptions-ChangeBillingAnchorDate) endpoint.
func (*ChangeBillingAnchorDateResponse) GetActions ¶
func (c *ChangeBillingAnchorDateResponse) GetActions() []*SubscriptionAction
func (*ChangeBillingAnchorDateResponse) GetErrors ¶
func (c *ChangeBillingAnchorDateResponse) GetErrors() []*Error
func (*ChangeBillingAnchorDateResponse) GetExtraProperties ¶
func (c *ChangeBillingAnchorDateResponse) GetExtraProperties() map[string]interface{}
func (*ChangeBillingAnchorDateResponse) GetSubscription ¶
func (c *ChangeBillingAnchorDateResponse) GetSubscription() *Subscription
func (*ChangeBillingAnchorDateResponse) String ¶
func (c *ChangeBillingAnchorDateResponse) String() string
func (*ChangeBillingAnchorDateResponse) UnmarshalJSON ¶
func (c *ChangeBillingAnchorDateResponse) UnmarshalJSON(data []byte) error
type ChangeTiming ¶
type ChangeTiming string
Supported timings when a pending change, as an action, takes place to a subscription.
const ( ChangeTimingImmediate ChangeTiming = "IMMEDIATE" ChangeTimingEndOfBillingCycle ChangeTiming = "END_OF_BILLING_CYCLE" )
func NewChangeTimingFromString ¶
func NewChangeTimingFromString(s string) (ChangeTiming, error)
func (ChangeTiming) Ptr ¶
func (c ChangeTiming) Ptr() *ChangeTiming
type ChangesInventoryRequest ¶ added in v1.2.0
type ChangesInventoryRequest struct {
// ID of the [CatalogObject](entity:CatalogObject) to retrieve.
CatalogObjectID string `json:"-" url:"-"`
// The [Location](entity:Location) IDs to look up as a comma-separated
// list. An empty list queries all locations.
LocationIDs *string `json:"-" url:"location_ids,omitempty"`
// A pagination cursor returned by a previous call to this endpoint.
// Provide this to retrieve the next set of results for the original query.
//
// See the [Pagination](https://developer.squareup.com/docs/working-with-apis/pagination) guide for more information.
Cursor *string `json:"-" url:"cursor,omitempty"`
}
type ChargeRequestAdditionalRecipient ¶
type ChargeRequestAdditionalRecipient struct {
// The location ID for a recipient (other than the merchant) receiving a portion of the tender.
LocationID string `json:"location_id" url:"location_id"`
// The description of the additional recipient.
Description string `json:"description" url:"description"`
// The amount of money distributed to the recipient.
AmountMoney *Money `json:"amount_money,omitempty" url:"amount_money,omitempty"`
// contains filtered or unexported fields
}
Represents an additional recipient (other than the merchant) entitled to a portion of the tender. Support is currently limited to USD, CAD and GBP currencies
func (*ChargeRequestAdditionalRecipient) GetAmountMoney ¶
func (c *ChargeRequestAdditionalRecipient) GetAmountMoney() *Money
func (*ChargeRequestAdditionalRecipient) GetDescription ¶
func (c *ChargeRequestAdditionalRecipient) GetDescription() string
func (*ChargeRequestAdditionalRecipient) GetExtraProperties ¶
func (c *ChargeRequestAdditionalRecipient) GetExtraProperties() map[string]interface{}
func (*ChargeRequestAdditionalRecipient) GetLocationID ¶
func (c *ChargeRequestAdditionalRecipient) GetLocationID() string
func (*ChargeRequestAdditionalRecipient) String ¶
func (c *ChargeRequestAdditionalRecipient) String() string
func (*ChargeRequestAdditionalRecipient) UnmarshalJSON ¶
func (c *ChargeRequestAdditionalRecipient) UnmarshalJSON(data []byte) error
type Checkout ¶
type Checkout struct {
// ID generated by Square Checkout when a new checkout is requested.
ID *string `json:"id,omitempty" url:"id,omitempty"`
// The URL that the buyer's browser should be redirected to after the
// checkout is completed.
CheckoutPageURL *string `json:"checkout_page_url,omitempty" url:"checkout_page_url,omitempty"`
// If `true`, Square Checkout will collect shipping information on your
// behalf and store that information with the transaction information in your
// Square Dashboard.
//
// Default: `false`.
AskForShippingAddress *bool `json:"ask_for_shipping_address,omitempty" url:"ask_for_shipping_address,omitempty"`
// The email address to display on the Square Checkout confirmation page
// and confirmation email that the buyer can use to contact the merchant.
//
// If this value is not set, the confirmation page and email will display the
// primary email address associated with the merchant's Square account.
//
// Default: none; only exists if explicitly set.
MerchantSupportEmail *string `json:"merchant_support_email,omitempty" url:"merchant_support_email,omitempty"`
// If provided, the buyer's email is pre-populated on the checkout page
// as an editable text field.
//
// Default: none; only exists if explicitly set.
PrePopulateBuyerEmail *string `json:"pre_populate_buyer_email,omitempty" url:"pre_populate_buyer_email,omitempty"`
// If provided, the buyer's shipping info is pre-populated on the
// checkout page as editable text fields.
//
// Default: none; only exists if explicitly set.
PrePopulateShippingAddress *Address `json:"pre_populate_shipping_address,omitempty" url:"pre_populate_shipping_address,omitempty"`
// The URL to redirect to after checkout is completed with `checkoutId`,
// Square's `orderId`, `transactionId`, and `referenceId` appended as URL
// parameters. For example, if the provided redirect_url is
// `http://www.example.com/order-complete`, a successful transaction redirects
// the customer to:
//
// <pre><code>http://www.example.com/order-complete?checkoutId=xxxxxx&orderId=xxxxxx&referenceId=xxxxxx&transactionId=xxxxxx</code></pre>
//
// If you do not provide a redirect URL, Square Checkout will display an order
// confirmation page on your behalf; however Square strongly recommends that
// you provide a redirect URL so you can verify the transaction results and
// finalize the order through your existing/normal confirmation workflow.
RedirectURL *string `json:"redirect_url,omitempty" url:"redirect_url,omitempty"`
// Order to be checked out.
Order *Order `json:"order,omitempty" url:"order,omitempty"`
// The time when the checkout was created, in RFC 3339 format.
CreatedAt *string `json:"created_at,omitempty" url:"created_at,omitempty"`
// Additional recipients (other than the merchant) receiving a portion of this checkout.
// For example, fees assessed on the purchase by a third party integration.
AdditionalRecipients []*AdditionalRecipient `json:"additional_recipients,omitempty" url:"additional_recipients,omitempty"`
// contains filtered or unexported fields
}
Square Checkout lets merchants accept online payments for supported payment types using a checkout workflow hosted on squareup.com.
func (*Checkout) GetAdditionalRecipients ¶
func (c *Checkout) GetAdditionalRecipients() []*AdditionalRecipient
func (*Checkout) GetAskForShippingAddress ¶
func (*Checkout) GetCheckoutPageURL ¶
func (*Checkout) GetCreatedAt ¶
func (*Checkout) GetExtraProperties ¶
func (*Checkout) GetMerchantSupportEmail ¶
func (*Checkout) GetPrePopulateBuyerEmail ¶
func (*Checkout) GetPrePopulateShippingAddress ¶
func (*Checkout) GetRedirectURL ¶
func (*Checkout) UnmarshalJSON ¶
type CheckoutLocationSettings ¶
type CheckoutLocationSettings struct {
// The ID of the location that these settings apply to.
LocationID *string `json:"location_id,omitempty" url:"location_id,omitempty"`
// Indicates whether customers are allowed to leave notes at checkout.
CustomerNotesEnabled *bool `json:"customer_notes_enabled,omitempty" url:"customer_notes_enabled,omitempty"`
// Policy information is displayed at the bottom of the checkout pages.
// You can set a maximum of two policies.
Policies []*CheckoutLocationSettingsPolicy `json:"policies,omitempty" url:"policies,omitempty"`
// The branding settings for this location.
Branding *CheckoutLocationSettingsBranding `json:"branding,omitempty" url:"branding,omitempty"`
// The tip settings for this location.
Tipping *CheckoutLocationSettingsTipping `json:"tipping,omitempty" url:"tipping,omitempty"`
// The coupon settings for this location.
Coupons *CheckoutLocationSettingsCoupons `json:"coupons,omitempty" url:"coupons,omitempty"`
// The timestamp when the settings were last updated, in RFC 3339 format.
// Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:
// UTC: 2020-01-26T02:25:34Z
// Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// contains filtered or unexported fields
}
func (*CheckoutLocationSettings) GetBranding ¶
func (c *CheckoutLocationSettings) GetBranding() *CheckoutLocationSettingsBranding
func (*CheckoutLocationSettings) GetCoupons ¶
func (c *CheckoutLocationSettings) GetCoupons() *CheckoutLocationSettingsCoupons
func (*CheckoutLocationSettings) GetCustomerNotesEnabled ¶
func (c *CheckoutLocationSettings) GetCustomerNotesEnabled() *bool
func (*CheckoutLocationSettings) GetExtraProperties ¶
func (c *CheckoutLocationSettings) GetExtraProperties() map[string]interface{}
func (*CheckoutLocationSettings) GetLocationID ¶
func (c *CheckoutLocationSettings) GetLocationID() *string
func (*CheckoutLocationSettings) GetPolicies ¶
func (c *CheckoutLocationSettings) GetPolicies() []*CheckoutLocationSettingsPolicy
func (*CheckoutLocationSettings) GetTipping ¶
func (c *CheckoutLocationSettings) GetTipping() *CheckoutLocationSettingsTipping
func (*CheckoutLocationSettings) GetUpdatedAt ¶
func (c *CheckoutLocationSettings) GetUpdatedAt() *string
func (*CheckoutLocationSettings) String ¶
func (c *CheckoutLocationSettings) String() string
func (*CheckoutLocationSettings) UnmarshalJSON ¶
func (c *CheckoutLocationSettings) UnmarshalJSON(data []byte) error
type CheckoutLocationSettingsBranding ¶
type CheckoutLocationSettingsBranding struct {
// Show the location logo on the checkout page.
// See [HeaderType](#type-headertype) for possible values
HeaderType *CheckoutLocationSettingsBrandingHeaderType `json:"header_type,omitempty" url:"header_type,omitempty"`
// The HTML-supported hex color for the button on the checkout page (for example, "#FFFFFF").
ButtonColor *string `json:"button_color,omitempty" url:"button_color,omitempty"`
// The shape of the button on the checkout page.
// See [ButtonShape](#type-buttonshape) for possible values
ButtonShape *CheckoutLocationSettingsBrandingButtonShape `json:"button_shape,omitempty" url:"button_shape,omitempty"`
// contains filtered or unexported fields
}
func (*CheckoutLocationSettingsBranding) GetButtonColor ¶
func (c *CheckoutLocationSettingsBranding) GetButtonColor() *string
func (*CheckoutLocationSettingsBranding) GetButtonShape ¶
func (c *CheckoutLocationSettingsBranding) GetButtonShape() *CheckoutLocationSettingsBrandingButtonShape
func (*CheckoutLocationSettingsBranding) GetExtraProperties ¶
func (c *CheckoutLocationSettingsBranding) GetExtraProperties() map[string]interface{}
func (*CheckoutLocationSettingsBranding) GetHeaderType ¶
func (c *CheckoutLocationSettingsBranding) GetHeaderType() *CheckoutLocationSettingsBrandingHeaderType
func (*CheckoutLocationSettingsBranding) String ¶
func (c *CheckoutLocationSettingsBranding) String() string
func (*CheckoutLocationSettingsBranding) UnmarshalJSON ¶
func (c *CheckoutLocationSettingsBranding) UnmarshalJSON(data []byte) error
type CheckoutLocationSettingsBrandingButtonShape ¶
type CheckoutLocationSettingsBrandingButtonShape string
const ( CheckoutLocationSettingsBrandingButtonShapeSquared CheckoutLocationSettingsBrandingButtonShape = "SQUARED" CheckoutLocationSettingsBrandingButtonShapeRounded CheckoutLocationSettingsBrandingButtonShape = "ROUNDED" CheckoutLocationSettingsBrandingButtonShapePill CheckoutLocationSettingsBrandingButtonShape = "PILL" )
func NewCheckoutLocationSettingsBrandingButtonShapeFromString ¶
func NewCheckoutLocationSettingsBrandingButtonShapeFromString(s string) (CheckoutLocationSettingsBrandingButtonShape, error)
type CheckoutLocationSettingsBrandingHeaderType ¶
type CheckoutLocationSettingsBrandingHeaderType string
const ( CheckoutLocationSettingsBrandingHeaderTypeBusinessName CheckoutLocationSettingsBrandingHeaderType = "BUSINESS_NAME" CheckoutLocationSettingsBrandingHeaderTypeFramedLogo CheckoutLocationSettingsBrandingHeaderType = "FRAMED_LOGO" CheckoutLocationSettingsBrandingHeaderTypeFullWidthLogo CheckoutLocationSettingsBrandingHeaderType = "FULL_WIDTH_LOGO" )
func NewCheckoutLocationSettingsBrandingHeaderTypeFromString ¶
func NewCheckoutLocationSettingsBrandingHeaderTypeFromString(s string) (CheckoutLocationSettingsBrandingHeaderType, error)
type CheckoutLocationSettingsCoupons ¶
type CheckoutLocationSettingsCoupons struct {
// Indicates whether coupons are enabled for this location.
Enabled *bool `json:"enabled,omitempty" url:"enabled,omitempty"`
// contains filtered or unexported fields
}
func (*CheckoutLocationSettingsCoupons) GetEnabled ¶
func (c *CheckoutLocationSettingsCoupons) GetEnabled() *bool
func (*CheckoutLocationSettingsCoupons) GetExtraProperties ¶
func (c *CheckoutLocationSettingsCoupons) GetExtraProperties() map[string]interface{}
func (*CheckoutLocationSettingsCoupons) String ¶
func (c *CheckoutLocationSettingsCoupons) String() string
func (*CheckoutLocationSettingsCoupons) UnmarshalJSON ¶
func (c *CheckoutLocationSettingsCoupons) UnmarshalJSON(data []byte) error
type CheckoutLocationSettingsPolicy ¶
type CheckoutLocationSettingsPolicy struct {
// A unique ID to identify the policy when making changes. You must set the UID for policy updates, but it’s optional when setting new policies.
UID *string `json:"uid,omitempty" url:"uid,omitempty"`
// The title of the policy. This is required when setting the description, though you can update it in a different request.
Title *string `json:"title,omitempty" url:"title,omitempty"`
// The description of the policy.
Description *string `json:"description,omitempty" url:"description,omitempty"`
// contains filtered or unexported fields
}
func (*CheckoutLocationSettingsPolicy) GetDescription ¶
func (c *CheckoutLocationSettingsPolicy) GetDescription() *string
func (*CheckoutLocationSettingsPolicy) GetExtraProperties ¶
func (c *CheckoutLocationSettingsPolicy) GetExtraProperties() map[string]interface{}
func (*CheckoutLocationSettingsPolicy) GetTitle ¶
func (c *CheckoutLocationSettingsPolicy) GetTitle() *string
func (*CheckoutLocationSettingsPolicy) GetUID ¶
func (c *CheckoutLocationSettingsPolicy) GetUID() *string
func (*CheckoutLocationSettingsPolicy) String ¶
func (c *CheckoutLocationSettingsPolicy) String() string
func (*CheckoutLocationSettingsPolicy) UnmarshalJSON ¶
func (c *CheckoutLocationSettingsPolicy) UnmarshalJSON(data []byte) error
type CheckoutLocationSettingsTipping ¶
type CheckoutLocationSettingsTipping struct {
// Set three custom percentage amounts that buyers can select at checkout. If Smart Tip is enabled, this only applies to transactions totaling $10 or more.
Percentages []int `json:"percentages,omitempty" url:"percentages,omitempty"`
// Enables Smart Tip Amounts. If Smart Tip Amounts is enabled, tipping works as follows:
// If a transaction is less than $10, the available tipping options include No Tip, $1, $2, or $3.
// If a transaction is $10 or more, the available tipping options include No Tip, 15%, 20%, or 25%.
// You can set custom percentage amounts with the `percentages` field.
SmartTippingEnabled *bool `json:"smart_tipping_enabled,omitempty" url:"smart_tipping_enabled,omitempty"`
// Set the pre-selected percentage amounts that appear at checkout. If Smart Tip is enabled, this only applies to transactions totaling $10 or more.
DefaultPercent *int `json:"default_percent,omitempty" url:"default_percent,omitempty"`
// Show the Smart Tip Amounts for this location.
SmartTips []*Money `json:"smart_tips,omitempty" url:"smart_tips,omitempty"`
// Set the pre-selected whole amount that appears at checkout when Smart Tip is enabled and the transaction amount is less than $10.
DefaultSmartTip *Money `json:"default_smart_tip,omitempty" url:"default_smart_tip,omitempty"`
// contains filtered or unexported fields
}
func (*CheckoutLocationSettingsTipping) GetDefaultPercent ¶
func (c *CheckoutLocationSettingsTipping) GetDefaultPercent() *int
func (*CheckoutLocationSettingsTipping) GetDefaultSmartTip ¶
func (c *CheckoutLocationSettingsTipping) GetDefaultSmartTip() *Money
func (*CheckoutLocationSettingsTipping) GetExtraProperties ¶
func (c *CheckoutLocationSettingsTipping) GetExtraProperties() map[string]interface{}
func (*CheckoutLocationSettingsTipping) GetPercentages ¶
func (c *CheckoutLocationSettingsTipping) GetPercentages() []int
func (*CheckoutLocationSettingsTipping) GetSmartTippingEnabled ¶
func (c *CheckoutLocationSettingsTipping) GetSmartTippingEnabled() *bool
func (*CheckoutLocationSettingsTipping) GetSmartTips ¶
func (c *CheckoutLocationSettingsTipping) GetSmartTips() []*Money
func (*CheckoutLocationSettingsTipping) String ¶
func (c *CheckoutLocationSettingsTipping) String() string
func (*CheckoutLocationSettingsTipping) UnmarshalJSON ¶
func (c *CheckoutLocationSettingsTipping) UnmarshalJSON(data []byte) error
type CheckoutMerchantSettings ¶
type CheckoutMerchantSettings struct {
// The set of payment methods accepted for the merchant's account.
PaymentMethods *CheckoutMerchantSettingsPaymentMethods `json:"payment_methods,omitempty" url:"payment_methods,omitempty"`
// The timestamp when the settings were last updated, in RFC 3339 format.
// Examples for January 25th, 2020 6:25:34pm Pacific Standard Time:
// UTC: 2020-01-26T02:25:34Z
// Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00
UpdatedAt *string `json:"updated_at,omitempty" url:"updated_at,omitempty"`
// contains filtered or unexported fields
}
func (*CheckoutMerchantSettings) GetExtraProperties ¶
func (c *CheckoutMerchantSettings) GetExtraProperties() map[string]interface{}
func (*CheckoutMerchantSettings) GetPaymentMethods ¶
func (c *CheckoutMerchantSettings) GetPaymentMethods() *CheckoutMerchantSettingsPaymentMethods
func (*CheckoutMerchantSettings) GetUpdatedAt ¶
func (c *CheckoutMerchantSettings) GetUpdatedAt() *string
func (*CheckoutMerchantSettings) String ¶
func (c *CheckoutMerchantSettings) String() string
func (*CheckoutMerchantSettings) UnmarshalJSON ¶
func (c *CheckoutMerchantSettings) UnmarshalJSON(data []byte) error
type CheckoutMerchantSettingsPaymentMethods ¶
type CheckoutMerchantSettingsPaymentMethods struct {
ApplePay *CheckoutMerchantSettingsPaymentMethodsPaymentMethod `json:"apple_pay,omitempty" url:"apple_pay,omitempty"`
GooglePay *CheckoutMerchantSettingsPaymentMethodsPaymentMethod `json:"google_pay,omitempty" url:"google_pay,omitempty"`
CashApp *CheckoutMerchantSettingsPaymentMethodsPaymentMethod `json:"cash_app,omitempty" url:"cash_app,omitempty"`
AfterpayClearpay *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay `json:"afterpay_clearpay,omitempty" url:"afterpay_clearpay,omitempty"`
// contains filtered or unexported fields
}
func (*CheckoutMerchantSettingsPaymentMethods) GetAfterpayClearpay ¶
func (c *CheckoutMerchantSettingsPaymentMethods) GetAfterpayClearpay() *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay
func (*CheckoutMerchantSettingsPaymentMethods) GetApplePay ¶
func (c *CheckoutMerchantSettingsPaymentMethods) GetApplePay() *CheckoutMerchantSettingsPaymentMethodsPaymentMethod
func (*CheckoutMerchantSettingsPaymentMethods) GetCashApp ¶
func (c *CheckoutMerchantSettingsPaymentMethods) GetCashApp() *CheckoutMerchantSettingsPaymentMethodsPaymentMethod
func (*CheckoutMerchantSettingsPaymentMethods) GetExtraProperties ¶
func (c *CheckoutMerchantSettingsPaymentMethods) GetExtraProperties() map[string]interface{}
func (*CheckoutMerchantSettingsPaymentMethods) GetGooglePay ¶
func (c *CheckoutMerchantSettingsPaymentMethods) GetGooglePay() *CheckoutMerchantSettingsPaymentMethodsPaymentMethod
func (*CheckoutMerchantSettingsPaymentMethods) String ¶
func (c *CheckoutMerchantSettingsPaymentMethods) String() string
func (*CheckoutMerchantSettingsPaymentMethods) UnmarshalJSON ¶
func (c *CheckoutMerchantSettingsPaymentMethods) UnmarshalJSON(data []byte) error
type CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay ¶
type CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay struct {
// Afterpay is shown as an option for order totals falling within the configured range.
OrderEligibilityRange *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange `json:"order_eligibility_range,omitempty" url:"order_eligibility_range,omitempty"`
// Afterpay is shown as an option for item totals falling within the configured range.
ItemEligibilityRange *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange `json:"item_eligibility_range,omitempty" url:"item_eligibility_range,omitempty"`
// Indicates whether the payment method is enabled for the account.
Enabled *bool `json:"enabled,omitempty" url:"enabled,omitempty"`
// contains filtered or unexported fields
}
The settings allowed for AfterpayClearpay.
func (*CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay) GetEnabled ¶
func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay) GetEnabled() *bool
func (*CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay) GetExtraProperties ¶
func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay) GetExtraProperties() map[string]interface{}
func (*CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay) GetItemEligibilityRange ¶
func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay) GetItemEligibilityRange() *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange
func (*CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay) GetOrderEligibilityRange ¶
func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay) GetOrderEligibilityRange() *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange
func (*CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay) String ¶
func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay) String() string
func (*CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay) UnmarshalJSON ¶
func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay) UnmarshalJSON(data []byte) error
type CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange ¶
type CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange struct {
Min *Money `json:"min,omitempty" url:"min,omitempty"`
Max *Money `json:"max,omitempty" url:"max,omitempty"`
// contains filtered or unexported fields
}
A range of purchase price that qualifies.
func (*CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange) GetExtraProperties ¶
func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange) GetExtraProperties() map[string]interface{}
func (*CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange) GetMax ¶
func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange) GetMax() *Money
func (*CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange) GetMin ¶
func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange) GetMin() *Money
func (*CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange) String ¶
func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange) String() string
func (*CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange) UnmarshalJSON ¶
func (c *CheckoutMerchantSettingsPaymentMethodsAfterpayClearpayEligibilityRange) UnmarshalJSON(data []byte) error
type CheckoutMerchantSettingsPaymentMethodsPaymentMethod ¶
type CheckoutMerchantSettingsPaymentMethodsPaymentMethod struct {
// Indicates whether the payment method is enabled for the account.
Enabled *bool `json:"enabled,omitempty" url:"enabled,omitempty"`
// contains filtered or unexported fields
}
The settings allowed for a payment method.
func (*CheckoutMerchantSettingsPaymentMethodsPaymentMethod) GetEnabled ¶
func (c *CheckoutMerchantSettingsPaymentMethodsPaymentMethod) GetEnabled() *bool
func (*CheckoutMerchantSettingsPaymentMethodsPaymentMethod) GetExtraProperties ¶
func (c *CheckoutMerchantSettingsPaymentMethodsPaymentMethod) GetExtraProperties() map[string]interface{}
func (*CheckoutMerchantSettingsPaymentMethodsPaymentMethod) String ¶
func (c *CheckoutMerchantSettingsPaymentMethodsPaymentMethod) String() string
func (*CheckoutMerchantSettingsPaymentMethodsPaymentMethod) UnmarshalJSON ¶
func (c *CheckoutMerchantSettingsPaymentMethodsPaymentMethod) UnmarshalJSON(data []byte) error
type CheckoutOptions ¶
type CheckoutOptions struct {
// Indicates whether the payment allows tipping.
AllowTipping *bool `json:"allow_tipping,omitempty" url:"allow_tipping,omitempty"`
// The custom fields requesting information from the buyer.
CustomFields []*CustomField `json:"custom_fields,omitempty" url:"custom_fields,omitempty"`
// The ID of the subscription plan for the buyer to pay and subscribe.
// For more information, see [Subscription Plan Checkout](https://developer.squareup.com/docs/checkout-api/subscription-plan-checkout).
SubscriptionPlanID *string `json:"subscription_plan_id,omitempty" url:"subscription_plan_id,omitempty"`
// The confirmation page URL to redirect the buyer to after Square processes the payment.
RedirectURL *string `json:"redirect_url,omitempty" url:"redirect_url,omitempty"`
// The email address that buyers can use to contact the seller.
MerchantSupportEmail *string `json:"merchant_support_email,omitempty" url:"merchant_support_email,omitempty"`
// Indicates whether to include the address fields in the payment form.
AskForShippingAddress *bool `json:"ask_for_shipping_address,omitempty" url:"ask_for_shipping_address,omitempty"`
// The methods allowed for buyers during checkout.
AcceptedPaymentMethods *AcceptedPaymentMethods `json:"accepted_payment_methods,omitempty" url:"accepted_payment_methods,omitempty"`
// The amount of money that the developer is taking as a fee for facilitating the payment on behalf of the seller.
//
// The amount cannot be more than 90% of the total amount of the payment.
//
// The amount must be specified in the smallest denomination of the applicable currency (for example, US dollar amounts are specified in cents). For more information, see [Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/common-data-types/working-with-monetary-amounts).
//
// The fee currency code must match the currency associated with the seller that is accepting the payment. The application must be from a developer account in the same country and using the same currency code as the seller. For more information about the application fee scenario, see [Take Payments and Collect Fees](https://developer.squareup.com/docs/payments-api/take-payments-and-collect-fees).
//
// To set this field, `PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS` OAuth permission is required. For more information, see [Permissions](https://developer.squareup.com/docs/payments-api/collect-fees/additional-considerations#permissions).
AppFeeMoney *Money `json:"app_fee_money,omitempty" url:"app_fee_money,omitempty"`
// The fee associated with shipping to be applied to the `Order` as a service charge.
ShippingFee *ShippingFee `json:"shipping_fee,omitempty" url:"shipping_fee,omitempty"`
// Indicates whether to include the `Add coupon` section for the buyer to provide a Square marketing coupon in the payment form.
EnableCoupon *bool `json:"enable_coupon,omitempty" url:"enable_coupon,omitempty"`
// Indicates whether to include the `REWARDS` section for the buyer to opt in to loyalty, redeem rewards in the payment form, or both.
EnableLoyalty *bool `json:"enable_loyalty,omitempty" url:"enable_loyalty,omitempty"`
// contains filtered or unexported fields
}
func (*CheckoutOptions) GetAcceptedPaymentMethods ¶
func (c *CheckoutOptions) GetAcceptedPaymentMethods() *AcceptedPaymentMethods
func (*CheckoutOptions) GetAllowTipping ¶
func (c *CheckoutOptions) GetAllowTipping() *bool
func (*CheckoutOptions) GetAppFeeMoney ¶
func (c *CheckoutOptions) GetAppFeeMoney() *Money
func (*CheckoutOptions) GetAskForShippingAddress ¶
func (c *CheckoutOptions) GetAskForShippingAddress() *bool
func (*CheckoutOptions) GetCustomFields ¶
func (c *CheckoutOptions) GetCustomFields() []*CustomField
func (*CheckoutOptions) GetEnableCoupon ¶
func (c *CheckoutOptions) GetEnableCoupon() *bool
func (*CheckoutOptions) GetEnableLoyalty ¶
func (c *CheckoutOptions) GetEnableLoyalty() *bool
func (*CheckoutOptions) GetExtraProperties ¶
func (c *CheckoutOptions) GetExtraProperties() map[string]interface{}
func (*CheckoutOptions) GetMerchantSupportEmail ¶
func (c *CheckoutOptions) GetMerchantSupportEmail() *string
func (*CheckoutOptions) GetRedirectURL ¶
func (c *CheckoutOptions) GetRedirectURL() *string
func (*CheckoutOptions) GetShippingFee ¶
func (c *CheckoutOptions) GetShippingFee() *ShippingFee
func (*CheckoutOptions) GetSubscriptionPlanID ¶
func (c *CheckoutOptions) GetSubscriptionPlanID() *string
func (*CheckoutOptions) String ¶
func (c *CheckoutOptions) String() string
func (*CheckoutOptions) UnmarshalJSON ¶
func (c *CheckoutOptions) UnmarshalJSON(data []byte) error
type CheckoutOptionsPaymentType ¶
type CheckoutOptionsPaymentType string
const ( CheckoutOptionsPaymentTypeCardPresent CheckoutOptionsPaymentType = "CARD_PRESENT" CheckoutOptionsPaymentTypeManualCardEntry CheckoutOptionsPaymentType = "MANUAL_CARD_ENTRY" CheckoutOptionsPaymentTypeFelicaID CheckoutOptionsPaymentType = "FELICA_ID" CheckoutOptionsPaymentTypeFelicaQuicpay CheckoutOptionsPaymentType = "FELICA_QUICPAY" CheckoutOptionsPaymentTypeFelicaTransportationGroup CheckoutOptionsPaymentType = "FELICA_TRANSPORTATION_GROUP" CheckoutOptionsPaymentTypeFelicaAll CheckoutOptionsPaymentType = "FELICA_ALL" CheckoutOptionsPaymentTypePaypay CheckoutOptionsPaymentType = "PAYPAY" CheckoutOptionsPaymentTypeQrCode CheckoutOptionsPaymentType = "QR_CODE" )
func NewCheckoutOptionsPaymentTypeFromString ¶
func NewCheckoutOptionsPaymentTypeFromString(s string) (CheckoutOptionsPaymentType, error)
func (CheckoutOptionsPaymentType) Ptr ¶
func (c CheckoutOptionsPaymentType) Ptr() *CheckoutOptionsPaymentType
type ClearpayDetails ¶
type ClearpayDetails struct {
// Email address on the buyer's Clearpay account.
EmailAddress *string `json:"email_address,omitempty" url:"email_address,omitempty"`
// contains filtered or unexported fields
}
Additional details about Clearpay payments.
func (*ClearpayDetails) GetEmailAddress ¶
func (c *ClearpayDetails) GetEmailAddress() *string
func (*ClearpayDetails) GetExtraProperties ¶
func (c *ClearpayDetails) GetExtraProperties() map[string]interface{}
func (*ClearpayDetails) String ¶
func (c *ClearpayDetails) String() string
func (*ClearpayDetails) UnmarshalJSON ¶
func (c *ClearpayDetails) UnmarshalJSON(data []byte) error
type CloneOrderRequest ¶
type CloneOrderRequest struct {
// The ID of the order to clone.
OrderID string `json:"order_id" url:"-"`
// An optional order version for concurrency protection.
//
// If a version is provided, it must match the latest stored version of the order to clone.
// If a version is not provided, the API clones the latest version.
Version *int `json:"version,omitempty" url:"-"`
// A value you specify that uniquely identifies this clone request.
//
// If you are unsure whether a particular order was cloned successfully,
// you can reattempt the call with the same idempotency key without
// worrying about creating duplicate cloned orders.
// The originally cloned order is returned.
//
// For more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).
IdempotencyKey *string `json:"idempotency_key,omitempty" url:"-"`
}
type CloneOrderResponse ¶
type CloneOrderResponse struct {
// The cloned order.
Order *Order `json:"order,omitempty" url:"order,omitempty"`
// Any errors that occurred during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
Defines the fields that are included in the response body of a request to the [CloneOrder](api-endpoint:Orders-CloneOrder) endpoint.
func (*CloneOrderResponse) GetErrors ¶
func (c *CloneOrderResponse) GetErrors() []*Error
func (*CloneOrderResponse) GetExtraProperties ¶
func (c *CloneOrderResponse) GetExtraProperties() map[string]interface{}
func (*CloneOrderResponse) GetOrder ¶
func (c *CloneOrderResponse) GetOrder() *Order
func (*CloneOrderResponse) String ¶
func (c *CloneOrderResponse) String() string
func (*CloneOrderResponse) UnmarshalJSON ¶
func (c *CloneOrderResponse) UnmarshalJSON(data []byte) error
type CollectedData ¶
type CollectedData struct {
// The buyer's input text.
InputText *string `json:"input_text,omitempty" url:"input_text,omitempty"`
// contains filtered or unexported fields
}
func (*CollectedData) GetExtraProperties ¶
func (c *CollectedData) GetExtraProperties() map[string]interface{}
func (*CollectedData) GetInputText ¶
func (c *CollectedData) GetInputText() *string
func (*CollectedData) String ¶
func (c *CollectedData) String() string
func (*CollectedData) UnmarshalJSON ¶
func (c *CollectedData) UnmarshalJSON(data []byte) error
type CompletePaymentRequest ¶
type CompletePaymentRequest struct {
// The unique ID identifying the payment to be completed.
PaymentID string `json:"-" url:"-"`
// Used for optimistic concurrency. This opaque token identifies the current `Payment`
// version that the caller expects. If the server has a different version of the Payment,
// the update fails and a response with a VERSION_MISMATCH error is returned.
VersionToken *string `json:"version_token,omitempty" url:"-"`
}
type CompletePaymentResponse ¶
type CompletePaymentResponse struct {
// Information about errors encountered during the request.
Errors []*Error `json:"errors,omitempty" url:"errors,omitempty"`
// The successfully completed payment.
Payment *Payment `json:"payment,omitempty" url:"payment,omitempty"`
// contains filtered or unexported fields
}
Defines the response returned by[CompletePayment](api-endpoint:Payments-CompletePayment).
func (*CompletePaymentResponse) GetErrors ¶
func (c *CompletePaymentResponse) GetErrors() []*Error
func (*CompletePaymentResponse) GetExtraProperties ¶
func (c *CompletePaymentResponse) GetExtraProperties() map[string]interface{}
func (*CompletePaymentResponse) GetPayment ¶
func (c *CompletePaymentResponse) GetPayment() *Payment
func (*CompletePaymentResponse) String ¶
func (c *CompletePaymentResponse) String() string
func (*CompletePaymentResponse) UnmarshalJSON ¶
func (c *CompletePaymentResponse) UnmarshalJSON(data []byte) error
type Component ¶
type Component struct {
// The type of this component. Each component type has expected properties expressed
// in a structured format within its corresponding `*_details` field.
// See [ComponentType](#type-componenttype) for possible values
Type ComponentComponentType `json:"type" url:"type"`
// Structured data for an `Application`, set for Components of type `APPLICATION`.
ApplicationDetails *DeviceComponentDetailsApplicationDetails `json:"application_details,omitempty" url:"application_details,omitempty"`
// Structured data for a `CardReader`, set for Components of type `CARD_READER`.
CardReaderDetails *DeviceComponentDetailsCardReaderDetails `json:"card_reader_details,omitempty" url:"card_reader_details,omitempty"`
// Structured data for a `Battery`, set for Components of type `BATTERY`.
BatteryDetails *DeviceComponentDetailsBatteryDetails `json:"battery_details,omitempty" url:"battery_details,omitempty"`
// Structured data for a `WiFi` interface, set for Components of type `WIFI`.
WifiDetails *DeviceComponentDetailsWiFiDetails `json:"wifi_details,omitempty" url:"wifi_details,omitempty"`
// Structured data for an `Ethernet` interface, set for Components of type `ETHERNET`.
EthernetDetails *DeviceComponentDetailsEthernetDetails `json:"ethernet_details,omitempty" url:"ethernet_details,omitempty"`
// contains filtered or unexported fields
}
The wrapper object for the component entries of a given component type.
func (*Component) GetApplicationDetails ¶
func (c *Component) GetApplicationDetails() *DeviceComponentDetailsApplicationDetails
func (*Component) GetBatteryDetails ¶
func (c *Component) GetBatteryDetails() *DeviceComponentDetailsBatteryDetails
func (*Component) GetCardReaderDetails ¶
func (c *Component) GetCardReaderDetails() *DeviceComponentDetailsCardReaderDetails
func (*Component) GetEthernetDetails ¶
func (c *Component) GetEthernetDetails() *DeviceComponentDetailsEthernetDetails
func (*Component) GetExtraProperties ¶
func (*Component) GetType ¶
func (c *Component) GetType() ComponentComponentType
func (*Component) GetWifiDetails ¶
func (c *Component) GetWifiDetails() *DeviceComponentDetailsWiFiDetails
func (*Component) UnmarshalJSON ¶
type ComponentComponentType ¶
type ComponentComponentType string
An enum for ComponentType.
const ( ComponentComponentTypeApplication ComponentComponentType = "APPLICATION" ComponentComponentTypeCardReader ComponentComponentType = "CARD_READER" ComponentComponentTypeBattery ComponentComponentType = "BATTERY" ComponentComponentTypeWifi ComponentComponentType = "WIFI" ComponentComponentTypeEthernet ComponentComponentType = "ETHERNET" ComponentComponentTypePrinter ComponentComponentType = "PRINTER" )
func NewComponentComponentTypeFromString ¶
func NewComponentComponentTypeFromString(s string) (ComponentComponentType, error)
func (ComponentComponentType) Ptr ¶
func (c ComponentComponentType) Ptr() *ComponentComponentType
type ConfirmationDecision ¶
type ConfirmationDecision struct {
// The buyer's decision to the displayed terms.
HasAgreed *bool `json:"has_agreed,omitempty" url:"has_agreed,omitempty"`
// contains filtered or unexported fields
}
func (*ConfirmationDecision) GetExtraProperties ¶
func (c *ConfirmationDecision) GetExtraProperties() map[string]interface{}
func (*ConfirmationDecision) GetHasAgreed ¶
func (c *ConfirmationDecision) GetHasAgreed() *bool
func (*ConfirmationDecision) String ¶
func (c *ConfirmationDecision) String() string
func (*ConfirmationDecision) UnmarshalJSON ¶
func (c *ConfirmationDecision) UnmarshalJSON(data []byte) error
type ConfirmationOptions ¶
type ConfirmationOptions struct {
// The title text to display in the confirmation screen flow on the Terminal.
Title string `json:"title" url:"title"`
// The agreement details to display in the confirmation flow on the Terminal.
Body string `json:"body" url:"body"`
// The button text to display indicating the customer agrees to the displayed terms.
AgreeButtonText string `json:"agree_button_text" url:"agree_button_text"`
// The button text to display indicating the customer does not agree to the displayed terms.
DisagreeButtonText *string `json:"disagree_button_text,omitempty" url:"disagree_button_text,omitempty"`
// The result of the buyer’s actions when presented with the confirmation screen.
Decision *ConfirmationDecision `json:"decision,omitempty" url:"decision,omitempty"`
// contains filtered or unexported fields
}
func (*ConfirmationOptions) GetAgreeButtonText ¶
func (c *ConfirmationOptions) GetAgreeButtonText() string