Documentation ¶
Index ¶
- Variables
- func DatabaseModels() []interface{}
- func DefaultDeleteAddress(ctx context.Context, in *Address, db *gorm.DB) error
- func DefaultDeleteAddressSet(ctx context.Context, in []*Address, db *gorm.DB) error
- func DefaultDeleteItemSold(ctx context.Context, in *ItemSold, db *gorm.DB) error
- func DefaultDeleteItemSoldSet(ctx context.Context, in []*ItemSold, db *gorm.DB) error
- func DefaultDeleteMerchantAccount(ctx context.Context, in *MerchantAccount, db *gorm.DB) error
- func DefaultDeleteMerchantAccountSet(ctx context.Context, in []*MerchantAccount, db *gorm.DB) error
- func DefaultDeleteOwner(ctx context.Context, in *Owner, db *gorm.DB) error
- func DefaultDeleteOwnerSet(ctx context.Context, in []*Owner, db *gorm.DB) error
- func DefaultDeleteSettings(ctx context.Context, in *Settings, db *gorm.DB) error
- func DefaultDeleteSettingsSet(ctx context.Context, in []*Settings, db *gorm.DB) error
- func DefaultDeleteTags(ctx context.Context, in *Tags, db *gorm.DB) error
- func DefaultDeleteTagsSet(ctx context.Context, in []*Tags, db *gorm.DB) error
- type Address
- func DefaultApplyFieldMaskAddress(ctx context.Context, patchee *Address, patcher *Address, ...) (*Address, error)
- func DefaultCreateAddress(ctx context.Context, in *Address, db *gorm.DB) (*Address, error)
- func DefaultListAddress(ctx context.Context, db *gorm.DB) ([]*Address, error)
- func DefaultPatchAddress(ctx context.Context, in *Address, updateMask *field_mask.FieldMask, ...) (*Address, error)
- func DefaultPatchSetAddress(ctx context.Context, objects []*Address, updateMasks []*field_mask.FieldMask, ...) ([]*Address, error)
- func DefaultReadAddress(ctx context.Context, in *Address, db *gorm.DB) (*Address, error)
- func DefaultStrictUpdateAddress(ctx context.Context, in *Address, db *gorm.DB) (*Address, error)
- func (*Address) Descriptor() ([]byte, []int)deprecated
- func (x *Address) GetAddress() string
- func (x *Address) GetCity() string
- func (x *Address) GetId() uint64
- func (x *Address) GetLattitude() string
- func (x *Address) GetLongitude() string
- func (x *Address) GetState() string
- func (x *Address) GetUnit() string
- func (x *Address) GetZipCode() string
- func (*Address) ProtoMessage()
- func (x *Address) ProtoReflect() protoreflect.Message
- func (x *Address) Reset()
- func (x *Address) String() string
- func (m *Address) ToORM(ctx context.Context) (AddressORM, error)
- func (this *Address) Validate() error
- type AddressORM
- type AddressORMWithAfterCreate_
- type AddressORMWithAfterDeleteSet
- type AddressORMWithAfterDelete_
- type AddressORMWithAfterListFind
- type AddressORMWithAfterReadFind
- type AddressORMWithAfterStrictUpdateSave
- type AddressORMWithBeforeCreate_
- type AddressORMWithBeforeDeleteSet
- type AddressORMWithBeforeDelete_
- type AddressORMWithBeforeListApplyQuery
- type AddressORMWithBeforeListFind
- type AddressORMWithBeforeReadApplyQuery
- type AddressORMWithBeforeReadFind
- type AddressORMWithBeforeStrictUpdateCleanup
- type AddressORMWithBeforeStrictUpdateSave
- type AddressWithAfterPatchSave
- type AddressWithAfterToORM
- type AddressWithAfterToPB
- type AddressWithBeforePatchApplyFieldMask
- type AddressWithBeforePatchRead
- type AddressWithBeforePatchSave
- type AddressWithBeforeToORM
- type AddressWithBeforeToPB
- type Causes
- type FulfillmentOptions
- func (FulfillmentOptions) Descriptor() protoreflect.EnumDescriptor
- func (x FulfillmentOptions) Enum() *FulfillmentOptions
- func (FulfillmentOptions) EnumDescriptor() ([]byte, []int)deprecated
- func (x FulfillmentOptions) Number() protoreflect.EnumNumber
- func (x FulfillmentOptions) String() string
- func (FulfillmentOptions) Type() protoreflect.EnumType
- type ItemSold
- func DefaultApplyFieldMaskItemSold(ctx context.Context, patchee *ItemSold, patcher *ItemSold, ...) (*ItemSold, error)
- func DefaultCreateItemSold(ctx context.Context, in *ItemSold, db *gorm.DB) (*ItemSold, error)
- func DefaultListItemSold(ctx context.Context, db *gorm.DB) ([]*ItemSold, error)
- func DefaultPatchItemSold(ctx context.Context, in *ItemSold, updateMask *field_mask.FieldMask, ...) (*ItemSold, error)
- func DefaultPatchSetItemSold(ctx context.Context, objects []*ItemSold, updateMasks []*field_mask.FieldMask, ...) ([]*ItemSold, error)
- func DefaultReadItemSold(ctx context.Context, in *ItemSold, db *gorm.DB) (*ItemSold, error)
- func DefaultStrictUpdateItemSold(ctx context.Context, in *ItemSold, db *gorm.DB) (*ItemSold, error)
- func (*ItemSold) Descriptor() ([]byte, []int)deprecated
- func (x *ItemSold) GetId() uint64
- func (x *ItemSold) GetType() ItemSold_ItemsType
- func (*ItemSold) ProtoMessage()
- func (x *ItemSold) ProtoReflect() protoreflect.Message
- func (x *ItemSold) Reset()
- func (x *ItemSold) String() string
- func (m *ItemSold) ToORM(ctx context.Context) (ItemSoldORM, error)
- func (this *ItemSold) Validate() error
- type ItemSoldORM
- type ItemSoldORMWithAfterCreate_
- type ItemSoldORMWithAfterDeleteSet
- type ItemSoldORMWithAfterDelete_
- type ItemSoldORMWithAfterListFind
- type ItemSoldORMWithAfterReadFind
- type ItemSoldORMWithAfterStrictUpdateSave
- type ItemSoldORMWithBeforeCreate_
- type ItemSoldORMWithBeforeDeleteSet
- type ItemSoldORMWithBeforeDelete_
- type ItemSoldORMWithBeforeListApplyQuery
- type ItemSoldORMWithBeforeListFind
- type ItemSoldORMWithBeforeReadApplyQuery
- type ItemSoldORMWithBeforeReadFind
- type ItemSoldORMWithBeforeStrictUpdateCleanup
- type ItemSoldORMWithBeforeStrictUpdateSave
- type ItemSoldWithAfterPatchSave
- type ItemSoldWithAfterToORM
- type ItemSoldWithAfterToPB
- type ItemSoldWithBeforePatchApplyFieldMask
- type ItemSoldWithBeforePatchRead
- type ItemSoldWithBeforePatchSave
- type ItemSoldWithBeforeToORM
- type ItemSoldWithBeforeToPB
- type ItemSold_ItemsType
- func (ItemSold_ItemsType) Descriptor() protoreflect.EnumDescriptor
- func (x ItemSold_ItemsType) Enum() *ItemSold_ItemsType
- func (ItemSold_ItemsType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ItemSold_ItemsType) Number() protoreflect.EnumNumber
- func (x ItemSold_ItemsType) String() string
- func (ItemSold_ItemsType) Type() protoreflect.EnumType
- type MerchantAccount
- func DefaultApplyFieldMaskMerchantAccount(ctx context.Context, patchee *MerchantAccount, patcher *MerchantAccount, ...) (*MerchantAccount, error)
- func DefaultCreateMerchantAccount(ctx context.Context, in *MerchantAccount, db *gorm.DB) (*MerchantAccount, error)
- func DefaultListMerchantAccount(ctx context.Context, db *gorm.DB) ([]*MerchantAccount, error)
- func DefaultPatchMerchantAccount(ctx context.Context, in *MerchantAccount, updateMask *field_mask.FieldMask, ...) (*MerchantAccount, error)
- func DefaultPatchSetMerchantAccount(ctx context.Context, objects []*MerchantAccount, ...) ([]*MerchantAccount, error)
- func DefaultReadMerchantAccount(ctx context.Context, in *MerchantAccount, db *gorm.DB) (*MerchantAccount, error)
- func DefaultStrictUpdateMerchantAccount(ctx context.Context, in *MerchantAccount, db *gorm.DB) (*MerchantAccount, error)
- func (*MerchantAccount) Descriptor() ([]byte, []int)deprecated
- func (x *MerchantAccount) GetAccountOnboardingDetails() OnboardingStatus
- func (x *MerchantAccount) GetAccountOnboardingState() MerchantAccountState
- func (x *MerchantAccount) GetAccountType() MerchantAccountType
- func (x *MerchantAccount) GetAddress() *Address
- func (x *MerchantAccount) GetAuthnAccountId() uint64
- func (x *MerchantAccount) GetBio() string
- func (x *MerchantAccount) GetBusinessEmail() string
- func (x *MerchantAccount) GetBusinessName() string
- func (x *MerchantAccount) GetBusinessType() string
- func (x *MerchantAccount) GetCountry() string
- func (x *MerchantAccount) GetDefaultCurrency() string
- func (x *MerchantAccount) GetEmployerId() uint64
- func (x *MerchantAccount) GetEstimateAnnualRevenue() string
- func (x *MerchantAccount) GetFulfillmentOptions() []FulfillmentOptions
- func (x *MerchantAccount) GetHeadline() string
- func (x *MerchantAccount) GetId() uint64
- func (x *MerchantAccount) GetIsActive() bool
- func (x *MerchantAccount) GetItemsOrServicesSold() []*ItemSold
- func (x *MerchantAccount) GetOwners() []*Owner
- func (x *MerchantAccount) GetPhoneNumber() string
- func (x *MerchantAccount) GetShopSettings() *Settings
- func (x *MerchantAccount) GetStripeAccountId() uint64
- func (x *MerchantAccount) GetStripeConnectedAccountId() string
- func (x *MerchantAccount) GetSupportedCauses() []Causes
- func (x *MerchantAccount) GetTags() []*Tags
- func (*MerchantAccount) ProtoMessage()
- func (x *MerchantAccount) ProtoReflect() protoreflect.Message
- func (x *MerchantAccount) Reset()
- func (x *MerchantAccount) String() string
- func (m *MerchantAccount) ToORM(ctx context.Context) (MerchantAccountORM, error)
- func (this *MerchantAccount) Validate() error
- type MerchantAccountORM
- type MerchantAccountORMWithAfterCreate_
- type MerchantAccountORMWithAfterDeleteSet
- type MerchantAccountORMWithAfterDelete_
- type MerchantAccountORMWithAfterListFind
- type MerchantAccountORMWithAfterReadFind
- type MerchantAccountORMWithAfterStrictUpdateSave
- type MerchantAccountORMWithBeforeCreate_
- type MerchantAccountORMWithBeforeDeleteSet
- type MerchantAccountORMWithBeforeDelete_
- type MerchantAccountORMWithBeforeListApplyQuery
- type MerchantAccountORMWithBeforeListFind
- type MerchantAccountORMWithBeforeReadApplyQuery
- type MerchantAccountORMWithBeforeReadFind
- type MerchantAccountORMWithBeforeStrictUpdateCleanup
- type MerchantAccountORMWithBeforeStrictUpdateSave
- type MerchantAccountState
- func (MerchantAccountState) Descriptor() protoreflect.EnumDescriptor
- func (x MerchantAccountState) Enum() *MerchantAccountState
- func (MerchantAccountState) EnumDescriptor() ([]byte, []int)deprecated
- func (x MerchantAccountState) Number() protoreflect.EnumNumber
- func (x MerchantAccountState) String() string
- func (MerchantAccountState) Type() protoreflect.EnumType
- type MerchantAccountType
- func (MerchantAccountType) Descriptor() protoreflect.EnumDescriptor
- func (x MerchantAccountType) Enum() *MerchantAccountType
- func (MerchantAccountType) EnumDescriptor() ([]byte, []int)deprecated
- func (x MerchantAccountType) Number() protoreflect.EnumNumber
- func (x MerchantAccountType) String() string
- func (MerchantAccountType) Type() protoreflect.EnumType
- type MerchantAccountWithAfterPatchSave
- type MerchantAccountWithAfterToORM
- type MerchantAccountWithAfterToPB
- type MerchantAccountWithBeforePatchApplyFieldMask
- type MerchantAccountWithBeforePatchRead
- type MerchantAccountWithBeforePatchSave
- type MerchantAccountWithBeforeToORM
- type MerchantAccountWithBeforeToPB
- type OnboardingStatus
- func (OnboardingStatus) Descriptor() protoreflect.EnumDescriptor
- func (x OnboardingStatus) Enum() *OnboardingStatus
- func (OnboardingStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x OnboardingStatus) Number() protoreflect.EnumNumber
- func (x OnboardingStatus) String() string
- func (OnboardingStatus) Type() protoreflect.EnumType
- type Owner
- func DefaultApplyFieldMaskOwner(ctx context.Context, patchee *Owner, patcher *Owner, ...) (*Owner, error)
- func DefaultCreateOwner(ctx context.Context, in *Owner, db *gorm.DB) (*Owner, error)
- func DefaultListOwner(ctx context.Context, db *gorm.DB) ([]*Owner, error)
- func DefaultPatchOwner(ctx context.Context, in *Owner, updateMask *field_mask.FieldMask, db *gorm.DB) (*Owner, error)
- func DefaultPatchSetOwner(ctx context.Context, objects []*Owner, updateMasks []*field_mask.FieldMask, ...) ([]*Owner, error)
- func DefaultReadOwner(ctx context.Context, in *Owner, db *gorm.DB) (*Owner, error)
- func DefaultStrictUpdateOwner(ctx context.Context, in *Owner, db *gorm.DB) (*Owner, error)
- func (*Owner) Descriptor() ([]byte, []int)deprecated
- func (x *Owner) GetCountry() string
- func (x *Owner) GetEmail() string
- func (x *Owner) GetFirstName() string
- func (x *Owner) GetId() uint64
- func (x *Owner) GetLastName() string
- func (*Owner) ProtoMessage()
- func (x *Owner) ProtoReflect() protoreflect.Message
- func (x *Owner) Reset()
- func (x *Owner) String() string
- func (m *Owner) ToORM(ctx context.Context) (OwnerORM, error)
- func (this *Owner) Validate() error
- type OwnerORM
- type OwnerORMWithAfterCreate_
- type OwnerORMWithAfterDeleteSet
- type OwnerORMWithAfterDelete_
- type OwnerORMWithAfterListFind
- type OwnerORMWithAfterReadFind
- type OwnerORMWithAfterStrictUpdateSave
- type OwnerORMWithBeforeCreate_
- type OwnerORMWithBeforeDeleteSet
- type OwnerORMWithBeforeDelete_
- type OwnerORMWithBeforeListApplyQuery
- type OwnerORMWithBeforeListFind
- type OwnerORMWithBeforeReadApplyQuery
- type OwnerORMWithBeforeReadFind
- type OwnerORMWithBeforeStrictUpdateCleanup
- type OwnerORMWithBeforeStrictUpdateSave
- type OwnerWithAfterPatchSave
- type OwnerWithAfterToORM
- type OwnerWithAfterToPB
- type OwnerWithBeforePatchApplyFieldMask
- type OwnerWithBeforePatchRead
- type OwnerWithBeforePatchSave
- type OwnerWithBeforeToORM
- type OwnerWithBeforeToPB
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)deprecated
- func (x *Policy) GetBody() string
- func (x *Policy) GetHandle() string
- func (x *Policy) GetId() uint64
- func (x *Policy) GetTags() []*Tags
- func (x *Policy) GetTitle() string
- func (*Policy) ProtoMessage()
- func (x *Policy) ProtoReflect() protoreflect.Message
- func (x *Policy) Reset()
- func (x *Policy) String() string
- func (this *Policy) Validate() error
- type Policy_PolicyType
- func (Policy_PolicyType) Descriptor() protoreflect.EnumDescriptor
- func (x Policy_PolicyType) Enum() *Policy_PolicyType
- func (Policy_PolicyType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Policy_PolicyType) Number() protoreflect.EnumNumber
- func (x Policy_PolicyType) String() string
- func (Policy_PolicyType) Type() protoreflect.EnumType
- type ReturnPolicy
- func (*ReturnPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *ReturnPolicy) GetConditionsOfReturn() []string
- func (x *ReturnPolicy) GetContactWithinDaysOfDelivery() uint32
- func (x *ReturnPolicy) GetDetails() string
- func (x *ReturnPolicy) GetId() uint64
- func (x *ReturnPolicy) GetItemsNotToBeReturned() []string
- func (x *ReturnPolicy) GetPolicyMeta() *Policy
- func (x *ReturnPolicy) GetRequestCancellationWithinDaysOfDelivery() uint32
- func (x *ReturnPolicy) GetShipWithDaysOfDelivery() uint32
- func (*ReturnPolicy) ProtoMessage()
- func (x *ReturnPolicy) ProtoReflect() protoreflect.Message
- func (x *ReturnPolicy) Reset()
- func (x *ReturnPolicy) String() string
- func (this *ReturnPolicy) Validate() error
- type Settings
- func DefaultApplyFieldMaskSettings(ctx context.Context, patchee *Settings, patcher *Settings, ...) (*Settings, error)
- func DefaultCreateSettings(ctx context.Context, in *Settings, db *gorm.DB) (*Settings, error)
- func DefaultListSettings(ctx context.Context, db *gorm.DB) ([]*Settings, error)
- func DefaultPatchSetSettings(ctx context.Context, objects []*Settings, updateMasks []*field_mask.FieldMask, ...) ([]*Settings, error)
- func DefaultPatchSettings(ctx context.Context, in *Settings, updateMask *field_mask.FieldMask, ...) (*Settings, error)
- func DefaultReadSettings(ctx context.Context, in *Settings, db *gorm.DB) (*Settings, error)
- func DefaultStrictUpdateSettings(ctx context.Context, in *Settings, db *gorm.DB) (*Settings, error)
- func (*Settings) Descriptor() ([]byte, []int)deprecated
- func (x *Settings) GetId() uint64
- func (x *Settings) GetPaymentDetails() *Settings_PaymentDetails
- func (x *Settings) GetPrivacyPolicy() []*Policy
- func (x *Settings) GetReturnPolicy() *ReturnPolicy
- func (x *Settings) GetShippingPolicy() *ShippingPolicy
- func (x *Settings) GetShopPolicy() []*Policy
- func (*Settings) ProtoMessage()
- func (x *Settings) ProtoReflect() protoreflect.Message
- func (x *Settings) Reset()
- func (x *Settings) String() string
- func (m *Settings) ToORM(ctx context.Context) (SettingsORM, error)
- func (this *Settings) Validate() error
- type SettingsORM
- type SettingsORMWithAfterCreate_
- type SettingsORMWithAfterDeleteSet
- type SettingsORMWithAfterDelete_
- type SettingsORMWithAfterListFind
- type SettingsORMWithAfterReadFind
- type SettingsORMWithAfterStrictUpdateSave
- type SettingsORMWithBeforeCreate_
- type SettingsORMWithBeforeDeleteSet
- type SettingsORMWithBeforeDelete_
- type SettingsORMWithBeforeListApplyQuery
- type SettingsORMWithBeforeListFind
- type SettingsORMWithBeforeReadApplyQuery
- type SettingsORMWithBeforeReadFind
- type SettingsORMWithBeforeStrictUpdateCleanup
- type SettingsORMWithBeforeStrictUpdateSave
- type SettingsWithAfterPatchSave
- type SettingsWithAfterToORM
- type SettingsWithAfterToPB
- type SettingsWithBeforePatchApplyFieldMask
- type SettingsWithBeforePatchRead
- type SettingsWithBeforePatchSave
- type SettingsWithBeforeToORM
- type SettingsWithBeforeToPB
- type Settings_PaymentDetails
- func (*Settings_PaymentDetails) Descriptor() ([]byte, []int)deprecated
- func (x *Settings_PaymentDetails) GetAcceptableCreditCardTypes() []Settings_PaymentDetails_CreditCardBrand
- func (x *Settings_PaymentDetails) GetEnabledCurrencyCodes() []Settings_PaymentDetails_CurrencyCode
- func (x *Settings_PaymentDetails) GetId() uint64
- func (x *Settings_PaymentDetails) GetPrimaryCurrencyCode() Settings_PaymentDetails_CurrencyCode
- func (x *Settings_PaymentDetails) GetSupportedDigitalWallets() []Settings_PaymentDetails_DigitalWallets
- func (*Settings_PaymentDetails) ProtoMessage()
- func (x *Settings_PaymentDetails) ProtoReflect() protoreflect.Message
- func (x *Settings_PaymentDetails) Reset()
- func (x *Settings_PaymentDetails) String() string
- func (this *Settings_PaymentDetails) Validate() error
- type Settings_PaymentDetails_CreditCardBrand
- func (Settings_PaymentDetails_CreditCardBrand) Descriptor() protoreflect.EnumDescriptor
- func (x Settings_PaymentDetails_CreditCardBrand) Enum() *Settings_PaymentDetails_CreditCardBrand
- func (Settings_PaymentDetails_CreditCardBrand) EnumDescriptor() ([]byte, []int)deprecated
- func (x Settings_PaymentDetails_CreditCardBrand) Number() protoreflect.EnumNumber
- func (x Settings_PaymentDetails_CreditCardBrand) String() string
- func (Settings_PaymentDetails_CreditCardBrand) Type() protoreflect.EnumType
- type Settings_PaymentDetails_CurrencyCode
- func (Settings_PaymentDetails_CurrencyCode) Descriptor() protoreflect.EnumDescriptor
- func (x Settings_PaymentDetails_CurrencyCode) Enum() *Settings_PaymentDetails_CurrencyCode
- func (Settings_PaymentDetails_CurrencyCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x Settings_PaymentDetails_CurrencyCode) Number() protoreflect.EnumNumber
- func (x Settings_PaymentDetails_CurrencyCode) String() string
- func (Settings_PaymentDetails_CurrencyCode) Type() protoreflect.EnumType
- type Settings_PaymentDetails_DigitalWallets
- func (Settings_PaymentDetails_DigitalWallets) Descriptor() protoreflect.EnumDescriptor
- func (x Settings_PaymentDetails_DigitalWallets) Enum() *Settings_PaymentDetails_DigitalWallets
- func (Settings_PaymentDetails_DigitalWallets) EnumDescriptor() ([]byte, []int)deprecated
- func (x Settings_PaymentDetails_DigitalWallets) Number() protoreflect.EnumNumber
- func (x Settings_PaymentDetails_DigitalWallets) String() string
- func (Settings_PaymentDetails_DigitalWallets) Type() protoreflect.EnumType
- type ShippingPolicy
- func (*ShippingPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *ShippingPolicy) GetDaysOrderShipsIn() uint32
- func (x *ShippingPolicy) GetDetails() string
- func (x *ShippingPolicy) GetId() uint64
- func (x *ShippingPolicy) GetPolicyMeta() *Policy
- func (x *ShippingPolicy) GetPostalService() ShippingPolicy_PostalService
- func (*ShippingPolicy) ProtoMessage()
- func (x *ShippingPolicy) ProtoReflect() protoreflect.Message
- func (x *ShippingPolicy) Reset()
- func (x *ShippingPolicy) String() string
- func (this *ShippingPolicy) Validate() error
- type ShippingPolicy_PostalService
- func (ShippingPolicy_PostalService) Descriptor() protoreflect.EnumDescriptor
- func (x ShippingPolicy_PostalService) Enum() *ShippingPolicy_PostalService
- func (ShippingPolicy_PostalService) EnumDescriptor() ([]byte, []int)deprecated
- func (x ShippingPolicy_PostalService) Number() protoreflect.EnumNumber
- func (x ShippingPolicy_PostalService) String() string
- func (ShippingPolicy_PostalService) Type() protoreflect.EnumType
- type Tags
- func DefaultApplyFieldMaskTags(ctx context.Context, patchee *Tags, patcher *Tags, ...) (*Tags, error)
- func DefaultCreateTags(ctx context.Context, in *Tags, db *gorm.DB) (*Tags, error)
- func DefaultListTags(ctx context.Context, db *gorm.DB) ([]*Tags, error)
- func DefaultPatchSetTags(ctx context.Context, objects []*Tags, updateMasks []*field_mask.FieldMask, ...) ([]*Tags, error)
- func DefaultPatchTags(ctx context.Context, in *Tags, updateMask *field_mask.FieldMask, db *gorm.DB) (*Tags, error)
- func DefaultReadTags(ctx context.Context, in *Tags, db *gorm.DB) (*Tags, error)
- func DefaultStrictUpdateTags(ctx context.Context, in *Tags, db *gorm.DB) (*Tags, error)
- func (*Tags) Descriptor() ([]byte, []int)deprecated
- func (x *Tags) GetId() uint64
- func (x *Tags) GetMetadata() []string
- func (x *Tags) GetTagDescription() string
- func (x *Tags) GetTagName() string
- func (*Tags) ProtoMessage()
- func (x *Tags) ProtoReflect() protoreflect.Message
- func (x *Tags) Reset()
- func (x *Tags) String() string
- func (m *Tags) ToORM(ctx context.Context) (TagsORM, error)
- func (this *Tags) Validate() error
- type TagsORM
- type TagsORMWithAfterCreate_
- type TagsORMWithAfterDeleteSet
- type TagsORMWithAfterDelete_
- type TagsORMWithAfterListFind
- type TagsORMWithAfterReadFind
- type TagsORMWithAfterStrictUpdateSave
- type TagsORMWithBeforeCreate_
- type TagsORMWithBeforeDeleteSet
- type TagsORMWithBeforeDelete_
- type TagsORMWithBeforeListApplyQuery
- type TagsORMWithBeforeListFind
- type TagsORMWithBeforeReadApplyQuery
- type TagsORMWithBeforeReadFind
- type TagsORMWithBeforeStrictUpdateCleanup
- type TagsORMWithBeforeStrictUpdateSave
- type TagsWithAfterPatchSave
- type TagsWithAfterToORM
- type TagsWithAfterToPB
- type TagsWithBeforePatchApplyFieldMask
- type TagsWithBeforePatchRead
- type TagsWithBeforePatchSave
- type TagsWithBeforeToORM
- type TagsWithBeforeToPB
Constants ¶
This section is empty.
Variables ¶
var ( MerchantAccountType_name = map[int32]string{ 0: "Individual", 1: "Company", 2: "NonProfit", 3: "GovernmentEntity", } MerchantAccountType_value = map[string]int32{ "Individual": 0, "Company": 1, "NonProfit": 2, "GovernmentEntity": 3, } )
Enum value maps for MerchantAccountType.
var ( MerchantAccountState_name = map[int32]string{ 0: "ActiveAndOnboarded", 1: "PendingOnboardingCompletion", } MerchantAccountState_value = map[string]int32{ "ActiveAndOnboarded": 0, "PendingOnboardingCompletion": 1, } )
Enum value maps for MerchantAccountState.
var ( FulfillmentOptions_name = map[int32]string{ 0: "SHIP_ITEMS", 1: "ALLOW_PICKUP", 2: "ALLOW_DELIVERY", 3: "ALLOW_SELF_SERVICE", } FulfillmentOptions_value = map[string]int32{ "SHIP_ITEMS": 0, "ALLOW_PICKUP": 1, "ALLOW_DELIVERY": 2, "ALLOW_SELF_SERVICE": 3, } )
Enum value maps for FulfillmentOptions.
var ( OnboardingStatus_name = map[int32]string{ 0: "OnboardingNotStarted", 1: "FeelGuudOnboardingStarted", 2: "FeelGuudOnboardingCompleted", 3: "StripeOnboardingStarted", 4: "StripeOnboardingCompleted", 5: "CatalogueOnboardingStarted", 6: "CatalogueOnboardingCompleted", 7: "BCorpOnboardingStarted", 8: "BCorpOnboardingCompleted", } OnboardingStatus_value = map[string]int32{ "OnboardingNotStarted": 0, "FeelGuudOnboardingStarted": 1, "FeelGuudOnboardingCompleted": 2, "StripeOnboardingStarted": 3, "StripeOnboardingCompleted": 4, "CatalogueOnboardingStarted": 5, "CatalogueOnboardingCompleted": 6, "BCorpOnboardingStarted": 7, "BCorpOnboardingCompleted": 8, } )
Enum value maps for OnboardingStatus.
var ( Causes_name = map[int32]string{ 0: "VOTING_RIGHTS", 1: "CLIMATE_JUSTICE", 2: "HEALTHCARE", 3: "REFUGEE_CRISIS", 4: "RACIAL_JUSTICE", 5: "INCOME_GAP", 6: "GUN_VIOLENCE", 7: "HUNGER_FOOD_INSECURITY", 8: "EQUALITY", 9: "LBGTQ", 10: "EDUCATION", 11: "FORCED_CHILD_LABOR", 12: "CHILD_ABUSE_NEGLECT", 13: "CIVIL_RIGHTS", 14: "POVERTY", } Causes_value = map[string]int32{ "VOTING_RIGHTS": 0, "CLIMATE_JUSTICE": 1, "HEALTHCARE": 2, "REFUGEE_CRISIS": 3, "RACIAL_JUSTICE": 4, "INCOME_GAP": 5, "GUN_VIOLENCE": 6, "HUNGER_FOOD_INSECURITY": 7, "EQUALITY": 8, "LBGTQ": 9, "EDUCATION": 10, "FORCED_CHILD_LABOR": 11, "CHILD_ABUSE_NEGLECT": 12, "CIVIL_RIGHTS": 13, "POVERTY": 14, } )
Enum value maps for Causes.
var ( Settings_PaymentDetails_CreditCardBrand_name = map[int32]string{ 0: "VISA", 1: "MASTERCARD", 2: "DISCOVER", } Settings_PaymentDetails_CreditCardBrand_value = map[string]int32{ "VISA": 0, "MASTERCARD": 1, "DISCOVER": 2, } )
Enum value maps for Settings_PaymentDetails_CreditCardBrand.
var ( Settings_PaymentDetails_CurrencyCode_name = map[int32]string{ 0: "USD", 1: "GBP", } Settings_PaymentDetails_CurrencyCode_value = map[string]int32{ "USD": 0, "GBP": 1, } )
Enum value maps for Settings_PaymentDetails_CurrencyCode.
var ( Settings_PaymentDetails_DigitalWallets_name = map[int32]string{ 0: "ANDROID_PAY", 1: "APPLE_PAY", 2: "GOOGLE_PAY", 3: "SHOPIFY_PAY", } Settings_PaymentDetails_DigitalWallets_value = map[string]int32{ "ANDROID_PAY": 0, "APPLE_PAY": 1, "GOOGLE_PAY": 2, "SHOPIFY_PAY": 3, } )
Enum value maps for Settings_PaymentDetails_DigitalWallets.
var ( ItemSold_ItemsType_name = map[int32]string{ 0: "PHYSICAL_ITEMS", 1: "MENU_ITEMS", 2: "DONATIONS", 3: "TICKETS", 4: "MEMBERSHIPS", 5: "SERVICES", } ItemSold_ItemsType_value = map[string]int32{ "PHYSICAL_ITEMS": 0, "MENU_ITEMS": 1, "DONATIONS": 2, "TICKETS": 3, "MEMBERSHIPS": 4, "SERVICES": 5, } )
Enum value maps for ItemSold_ItemsType.
var ( Policy_PolicyType_name = map[int32]string{ 0: "SHIPPING_POLICY", 1: "RETURN_POLICY", } Policy_PolicyType_value = map[string]int32{ "SHIPPING_POLICY": 0, "RETURN_POLICY": 1, } )
Enum value maps for Policy_PolicyType.
var ( ShippingPolicy_PostalService_name = map[int32]string{ 0: "USPS", 1: "FEDEX", 2: "DHL", 3: "UPS", 4: "BLUE_DART", } ShippingPolicy_PostalService_value = map[string]int32{ "USPS": 0, "FEDEX": 1, "DHL": 2, "UPS": 3, "BLUE_DART": 4, } )
Enum value maps for ShippingPolicy_PostalService.
var File_internal_merchant_merchant_proto protoreflect.FileDescriptor
Functions ¶
func DatabaseModels ¶
func DatabaseModels() []interface{}
func DefaultDeleteAddress ¶
func DefaultDeleteAddressSet ¶
func DefaultDeleteItemSold ¶
func DefaultDeleteOwner ¶
func DefaultDeleteOwnerSet ¶
func DefaultDeleteSettings ¶
Types ¶
type Address ¶
type Address struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // the address field Address string `protobuf:"bytes,2,opt,name=Address,proto3" json:"Address,omitempty"` // the unit if the address is an apartment Unit string `protobuf:"bytes,3,opt,name=Unit,proto3" json:"Unit,omitempty"` // the address zipcode ZipCode string `protobuf:"bytes,4,opt,name=ZipCode,proto3" json:"ZipCode,omitempty"` // the city City string `protobuf:"bytes,5,opt,name=City,proto3" json:"City,omitempty"` // the state/municipality State string `protobuf:"bytes,6,opt,name=State,proto3" json:"State,omitempty"` // longitude Longitude string `protobuf:"bytes,7,opt,name=longitude,proto3" json:"longitude,omitempty"` // latittude Lattitude string `protobuf:"bytes,8,opt,name=lattitude,proto3" json:"lattitude,omitempty"` // contains filtered or unexported fields }
business address
func DefaultApplyFieldMaskAddress ¶
func DefaultApplyFieldMaskAddress(ctx context.Context, patchee *Address, patcher *Address, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Address, error)
DefaultApplyFieldMaskAddress patches an pbObject with patcher according to a field mask.
func DefaultCreateAddress ¶
DefaultCreateAddress executes a basic gorm create call
func DefaultListAddress ¶
DefaultListAddress executes a gorm list call
func DefaultPatchAddress ¶
func DefaultPatchAddress(ctx context.Context, in *Address, updateMask *field_mask.FieldMask, db *gorm.DB) (*Address, error)
DefaultPatchAddress executes a basic gorm update call with patch behavior
func DefaultPatchSetAddress ¶
func DefaultPatchSetAddress(ctx context.Context, objects []*Address, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Address, error)
DefaultPatchSetAddress executes a bulk gorm update call with patch behavior
func DefaultReadAddress ¶
func DefaultStrictUpdateAddress ¶
DefaultStrictUpdateAddress clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Address) Descriptor
deprecated
func (*Address) GetAddress ¶
func (*Address) GetLattitude ¶
func (*Address) GetLongitude ¶
func (*Address) GetZipCode ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
type AddressORM ¶
type AddressORM struct { Address string City string Id uint64 Lattitude string Longitude string MerchantAccountId *uint64 State string Unit string ZipCode string }
func (AddressORM) TableName ¶
func (AddressORM) TableName() string
TableName overrides the default tablename generated by GORM
type AddressWithAfterToORM ¶
type AddressWithAfterToORM interface {
AfterToORM(context.Context, *AddressORM) error
}
AddressAfterToORM called after default ToORM code
type AddressWithAfterToPB ¶
AddressAfterToPB called after default ToPB code
type AddressWithBeforeToORM ¶
type AddressWithBeforeToORM interface {
BeforeToORM(context.Context, *AddressORM) error
}
AddressBeforeToORM called before default ToORM code
type AddressWithBeforeToPB ¶
AddressBeforeToPB called before default ToPB code
type Causes ¶
type Causes int32
set of causes a merchant may opt to support
const ( Causes_VOTING_RIGHTS Causes = 0 Causes_CLIMATE_JUSTICE Causes = 1 Causes_HEALTHCARE Causes = 2 Causes_REFUGEE_CRISIS Causes = 3 Causes_RACIAL_JUSTICE Causes = 4 Causes_INCOME_GAP Causes = 5 Causes_GUN_VIOLENCE Causes = 6 Causes_HUNGER_FOOD_INSECURITY Causes = 7 Causes_EQUALITY Causes = 8 Causes_LBGTQ Causes = 9 Causes_EDUCATION Causes = 10 Causes_FORCED_CHILD_LABOR Causes = 11 Causes_CHILD_ABUSE_NEGLECT Causes = 12 Causes_CIVIL_RIGHTS Causes = 13 Causes_POVERTY Causes = 14 )
func (Causes) Descriptor ¶
func (Causes) Descriptor() protoreflect.EnumDescriptor
func (Causes) EnumDescriptor
deprecated
func (Causes) Number ¶
func (x Causes) Number() protoreflect.EnumNumber
func (Causes) Type ¶
func (Causes) Type() protoreflect.EnumType
type FulfillmentOptions ¶
type FulfillmentOptions int32
Represents the manner in which merchant accounts will deliver their service offerings to customers
const ( FulfillmentOptions_SHIP_ITEMS FulfillmentOptions = 0 FulfillmentOptions_ALLOW_PICKUP FulfillmentOptions = 1 FulfillmentOptions_ALLOW_DELIVERY FulfillmentOptions = 2 FulfillmentOptions_ALLOW_SELF_SERVICE FulfillmentOptions = 3 )
func (FulfillmentOptions) Descriptor ¶
func (FulfillmentOptions) Descriptor() protoreflect.EnumDescriptor
func (FulfillmentOptions) Enum ¶
func (x FulfillmentOptions) Enum() *FulfillmentOptions
func (FulfillmentOptions) EnumDescriptor
deprecated
func (FulfillmentOptions) EnumDescriptor() ([]byte, []int)
Deprecated: Use FulfillmentOptions.Descriptor instead.
func (FulfillmentOptions) Number ¶
func (x FulfillmentOptions) Number() protoreflect.EnumNumber
func (FulfillmentOptions) String ¶
func (x FulfillmentOptions) String() string
func (FulfillmentOptions) Type ¶
func (FulfillmentOptions) Type() protoreflect.EnumType
type ItemSold ¶
type ItemSold struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Type ItemSold_ItemsType `protobuf:"varint,2,opt,name=type,proto3,enum=ItemSold_ItemsType" json:"type,omitempty"` // contains filtered or unexported fields }
Represents the types of items a merchant account sells
func DefaultApplyFieldMaskItemSold ¶
func DefaultApplyFieldMaskItemSold(ctx context.Context, patchee *ItemSold, patcher *ItemSold, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*ItemSold, error)
DefaultApplyFieldMaskItemSold patches an pbObject with patcher according to a field mask.
func DefaultCreateItemSold ¶
DefaultCreateItemSold executes a basic gorm create call
func DefaultListItemSold ¶
DefaultListItemSold executes a gorm list call
func DefaultPatchItemSold ¶
func DefaultPatchItemSold(ctx context.Context, in *ItemSold, updateMask *field_mask.FieldMask, db *gorm.DB) (*ItemSold, error)
DefaultPatchItemSold executes a basic gorm update call with patch behavior
func DefaultPatchSetItemSold ¶
func DefaultPatchSetItemSold(ctx context.Context, objects []*ItemSold, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*ItemSold, error)
DefaultPatchSetItemSold executes a bulk gorm update call with patch behavior
func DefaultReadItemSold ¶
func DefaultStrictUpdateItemSold ¶
DefaultStrictUpdateItemSold clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*ItemSold) Descriptor
deprecated
func (*ItemSold) GetType ¶
func (x *ItemSold) GetType() ItemSold_ItemsType
func (*ItemSold) ProtoMessage ¶
func (*ItemSold) ProtoMessage()
func (*ItemSold) ProtoReflect ¶
func (x *ItemSold) ProtoReflect() protoreflect.Message
type ItemSoldORM ¶
func (ItemSoldORM) TableName ¶
func (ItemSoldORM) TableName() string
TableName overrides the default tablename generated by GORM
type ItemSoldWithAfterToORM ¶
type ItemSoldWithAfterToORM interface {
AfterToORM(context.Context, *ItemSoldORM) error
}
ItemSoldAfterToORM called after default ToORM code
type ItemSoldWithAfterToPB ¶
ItemSoldAfterToPB called after default ToPB code
type ItemSoldWithBeforeToORM ¶
type ItemSoldWithBeforeToORM interface {
BeforeToORM(context.Context, *ItemSoldORM) error
}
ItemSoldBeforeToORM called before default ToORM code
type ItemSoldWithBeforeToPB ¶
ItemSoldBeforeToPB called before default ToPB code
type ItemSold_ItemsType ¶
type ItemSold_ItemsType int32
Represents the types of services/items the merchant account will sell to customers
const ( ItemSold_PHYSICAL_ITEMS ItemSold_ItemsType = 0 ItemSold_MENU_ITEMS ItemSold_ItemsType = 1 ItemSold_DONATIONS ItemSold_ItemsType = 2 ItemSold_TICKETS ItemSold_ItemsType = 3 ItemSold_MEMBERSHIPS ItemSold_ItemsType = 4 ItemSold_SERVICES ItemSold_ItemsType = 5 )
func (ItemSold_ItemsType) Descriptor ¶
func (ItemSold_ItemsType) Descriptor() protoreflect.EnumDescriptor
func (ItemSold_ItemsType) Enum ¶
func (x ItemSold_ItemsType) Enum() *ItemSold_ItemsType
func (ItemSold_ItemsType) EnumDescriptor
deprecated
func (ItemSold_ItemsType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ItemSold_ItemsType.Descriptor instead.
func (ItemSold_ItemsType) Number ¶
func (x ItemSold_ItemsType) Number() protoreflect.EnumNumber
func (ItemSold_ItemsType) String ¶
func (x ItemSold_ItemsType) String() string
func (ItemSold_ItemsType) Type ¶
func (ItemSold_ItemsType) Type() protoreflect.EnumType
type MerchantAccount ¶
type MerchantAccount struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // set of owners who are responsible for this merchant account Owners []*Owner `protobuf:"bytes,2,rep,name=owners,proto3" json:"owners,omitempty"` // business name of the merchant account BusinessName string `protobuf:"bytes,3,opt,name=business_name,json=businessName,proto3" json:"business_name,omitempty"` // business email of the merchant account BusinessEmail string `protobuf:"bytes,4,opt,name=business_email,json=businessEmail,proto3" json:"business_email,omitempty"` // employer identification number EmployerId uint64 `protobuf:"varint,5,opt,name=employer_id,json=employerId,proto3" json:"employer_id,omitempty"` // estimated annual revenue pre-tax of the merchant account EstimateAnnualRevenue string `` /* 126-byte string literal not displayed */ // merchant account address Address *Address `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"` // types of item this merchant is selling ItemsOrServicesSold []*ItemSold `protobuf:"bytes,8,rep,name=items_or_services_sold,json=itemsOrServicesSold,proto3" json:"items_or_services_sold,omitempty"` // ways in which the merchant aims to fulfill purchases FulfillmentOptions []FulfillmentOptions `` /* 147-byte string literal not displayed */ // shop settings ShopSettings *Settings `protobuf:"bytes,10,opt,name=ShopSettings,proto3" json:"ShopSettings,omitempty"` // set of supported causes the merchant adheres to SupportedCauses []Causes `` /* 127-byte string literal not displayed */ // merchant account bio Bio string `protobuf:"bytes,12,opt,name=bio,proto3" json:"bio,omitempty"` // merchant account headline Headline string `protobuf:"bytes,13,opt,name=headline,proto3" json:"headline,omitempty"` // merchant account phone number PhoneNumber string `protobuf:"bytes,14,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` // set of tags associated with a merchant Tags []*Tags `protobuf:"bytes,15,rep,name=tags,proto3" json:"tags,omitempty"` // stripe connect account id StripeConnectedAccountId string `` /* 138-byte string literal not displayed */ // id of the associated stripe account this merchant account is tied to StripeAccountId uint64 `protobuf:"varint,17,opt,name=stripe_account_id,json=stripeAccountId,proto3" json:"stripe_account_id,omitempty"` // id of the merchant account from the context of the auth service AuthnAccountId uint64 `protobuf:"varint,18,opt,name=authn_account_id,json=authnAccountId,proto3" json:"authn_account_id,omitempty"` // merchant account onboarding step AccountOnboardingDetails OnboardingStatus `` /* 159-byte string literal not displayed */ // merchant account state AccountOnboardingState MerchantAccountState `` /* 157-byte string literal not displayed */ // type of merchant account AccountType MerchantAccountType `protobuf:"varint,21,opt,name=account_type,json=accountType,proto3,enum=MerchantAccountType" json:"account_type,omitempty"` IsActive bool `protobuf:"varint,22,opt,name=isActive,proto3" json:"isActive,omitempty"` BusinessType string `protobuf:"bytes,23,opt,name=businessType,proto3" json:"businessType,omitempty"` Country string `protobuf:"bytes,24,opt,name=country,proto3" json:"country,omitempty"` DefaultCurrency string `protobuf:"bytes,25,opt,name=defaultCurrency,proto3" json:"defaultCurrency,omitempty"` // contains filtered or unexported fields }
MerchantAccount represents a business account in the context of feelguuds
func DefaultApplyFieldMaskMerchantAccount ¶
func DefaultApplyFieldMaskMerchantAccount(ctx context.Context, patchee *MerchantAccount, patcher *MerchantAccount, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*MerchantAccount, error)
DefaultApplyFieldMaskMerchantAccount patches an pbObject with patcher according to a field mask.
func DefaultCreateMerchantAccount ¶
func DefaultCreateMerchantAccount(ctx context.Context, in *MerchantAccount, db *gorm.DB) (*MerchantAccount, error)
DefaultCreateMerchantAccount executes a basic gorm create call
func DefaultListMerchantAccount ¶
DefaultListMerchantAccount executes a gorm list call
func DefaultPatchMerchantAccount ¶
func DefaultPatchMerchantAccount(ctx context.Context, in *MerchantAccount, updateMask *field_mask.FieldMask, db *gorm.DB) (*MerchantAccount, error)
DefaultPatchMerchantAccount executes a basic gorm update call with patch behavior
func DefaultPatchSetMerchantAccount ¶
func DefaultPatchSetMerchantAccount(ctx context.Context, objects []*MerchantAccount, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*MerchantAccount, error)
DefaultPatchSetMerchantAccount executes a bulk gorm update call with patch behavior
func DefaultReadMerchantAccount ¶
func DefaultReadMerchantAccount(ctx context.Context, in *MerchantAccount, db *gorm.DB) (*MerchantAccount, error)
func DefaultStrictUpdateMerchantAccount ¶
func DefaultStrictUpdateMerchantAccount(ctx context.Context, in *MerchantAccount, db *gorm.DB) (*MerchantAccount, error)
DefaultStrictUpdateMerchantAccount clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*MerchantAccount) Descriptor
deprecated
func (*MerchantAccount) Descriptor() ([]byte, []int)
Deprecated: Use MerchantAccount.ProtoReflect.Descriptor instead.
func (*MerchantAccount) GetAccountOnboardingDetails ¶
func (x *MerchantAccount) GetAccountOnboardingDetails() OnboardingStatus
func (*MerchantAccount) GetAccountOnboardingState ¶
func (x *MerchantAccount) GetAccountOnboardingState() MerchantAccountState
func (*MerchantAccount) GetAccountType ¶
func (x *MerchantAccount) GetAccountType() MerchantAccountType
func (*MerchantAccount) GetAddress ¶
func (x *MerchantAccount) GetAddress() *Address
func (*MerchantAccount) GetAuthnAccountId ¶
func (x *MerchantAccount) GetAuthnAccountId() uint64
func (*MerchantAccount) GetBio ¶
func (x *MerchantAccount) GetBio() string
func (*MerchantAccount) GetBusinessEmail ¶
func (x *MerchantAccount) GetBusinessEmail() string
func (*MerchantAccount) GetBusinessName ¶
func (x *MerchantAccount) GetBusinessName() string
func (*MerchantAccount) GetBusinessType ¶
func (x *MerchantAccount) GetBusinessType() string
func (*MerchantAccount) GetCountry ¶
func (x *MerchantAccount) GetCountry() string
func (*MerchantAccount) GetDefaultCurrency ¶
func (x *MerchantAccount) GetDefaultCurrency() string
func (*MerchantAccount) GetEmployerId ¶
func (x *MerchantAccount) GetEmployerId() uint64
func (*MerchantAccount) GetEstimateAnnualRevenue ¶
func (x *MerchantAccount) GetEstimateAnnualRevenue() string
func (*MerchantAccount) GetFulfillmentOptions ¶
func (x *MerchantAccount) GetFulfillmentOptions() []FulfillmentOptions
func (*MerchantAccount) GetHeadline ¶
func (x *MerchantAccount) GetHeadline() string
func (*MerchantAccount) GetId ¶
func (x *MerchantAccount) GetId() uint64
func (*MerchantAccount) GetIsActive ¶
func (x *MerchantAccount) GetIsActive() bool
func (*MerchantAccount) GetItemsOrServicesSold ¶
func (x *MerchantAccount) GetItemsOrServicesSold() []*ItemSold
func (*MerchantAccount) GetOwners ¶
func (x *MerchantAccount) GetOwners() []*Owner
func (*MerchantAccount) GetPhoneNumber ¶
func (x *MerchantAccount) GetPhoneNumber() string
func (*MerchantAccount) GetShopSettings ¶
func (x *MerchantAccount) GetShopSettings() *Settings
func (*MerchantAccount) GetStripeAccountId ¶
func (x *MerchantAccount) GetStripeAccountId() uint64
func (*MerchantAccount) GetStripeConnectedAccountId ¶
func (x *MerchantAccount) GetStripeConnectedAccountId() string
func (*MerchantAccount) GetSupportedCauses ¶
func (x *MerchantAccount) GetSupportedCauses() []Causes
func (*MerchantAccount) GetTags ¶
func (x *MerchantAccount) GetTags() []*Tags
func (*MerchantAccount) ProtoMessage ¶
func (*MerchantAccount) ProtoMessage()
func (*MerchantAccount) ProtoReflect ¶
func (x *MerchantAccount) ProtoReflect() protoreflect.Message
func (*MerchantAccount) Reset ¶
func (x *MerchantAccount) Reset()
func (*MerchantAccount) String ¶
func (x *MerchantAccount) String() string
func (*MerchantAccount) ToORM ¶
func (m *MerchantAccount) ToORM(ctx context.Context) (MerchantAccountORM, error)
ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object
func (*MerchantAccount) Validate ¶
func (this *MerchantAccount) Validate() error
type MerchantAccountORM ¶
type MerchantAccountORM struct { AccountOnboardingDetails int32 AccountOnboardingState int32 AccountType int32 Address *AddressORM `gorm:"foreignkey:MerchantAccountId;association_foreignkey:Id;preload:true"` AuthnAccountId uint64 Bio string BusinessEmail string BusinessName string BusinessType string Country string DefaultCurrency string EmployerId uint64 EstimateAnnualRevenue string Headline string Id uint64 IsActive bool ItemsOrServicesSold []*ItemSoldORM `gorm:"foreignkey:MerchantAccountId;association_foreignkey:Id;preload:true"` Owners []*OwnerORM `gorm:"foreignkey:MerchantAccountId;association_foreignkey:Id;preload:true"` PhoneNumber string ShopSettings *SettingsORM `gorm:"foreignkey:MerchantAccountId;association_foreignkey:Id;preload:true"` StripeAccountId uint64 StripeConnectedAccountId string Tags []*TagsORM `gorm:"foreignkey:MerchantAccountId;association_foreignkey:Id;preload:true"` }
func (MerchantAccountORM) TableName ¶
func (MerchantAccountORM) TableName() string
TableName overrides the default tablename generated by GORM
func (*MerchantAccountORM) ToPB ¶
func (m *MerchantAccountORM) ToPB(ctx context.Context) (MerchantAccount, error)
ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object
type MerchantAccountState ¶
type MerchantAccountState int32
Represents the state of the merchant account
const ( MerchantAccountState_ActiveAndOnboarded MerchantAccountState = 0 MerchantAccountState_PendingOnboardingCompletion MerchantAccountState = 1 )
func (MerchantAccountState) Descriptor ¶
func (MerchantAccountState) Descriptor() protoreflect.EnumDescriptor
func (MerchantAccountState) Enum ¶
func (x MerchantAccountState) Enum() *MerchantAccountState
func (MerchantAccountState) EnumDescriptor
deprecated
func (MerchantAccountState) EnumDescriptor() ([]byte, []int)
Deprecated: Use MerchantAccountState.Descriptor instead.
func (MerchantAccountState) Number ¶
func (x MerchantAccountState) Number() protoreflect.EnumNumber
func (MerchantAccountState) String ¶
func (x MerchantAccountState) String() string
func (MerchantAccountState) Type ¶
func (MerchantAccountState) Type() protoreflect.EnumType
type MerchantAccountType ¶
type MerchantAccountType int32
represents the type of merchant account
const ( MerchantAccountType_Individual MerchantAccountType = 0 MerchantAccountType_Company MerchantAccountType = 1 MerchantAccountType_NonProfit MerchantAccountType = 2 MerchantAccountType_GovernmentEntity MerchantAccountType = 3 )
func (MerchantAccountType) Descriptor ¶
func (MerchantAccountType) Descriptor() protoreflect.EnumDescriptor
func (MerchantAccountType) Enum ¶
func (x MerchantAccountType) Enum() *MerchantAccountType
func (MerchantAccountType) EnumDescriptor
deprecated
func (MerchantAccountType) EnumDescriptor() ([]byte, []int)
Deprecated: Use MerchantAccountType.Descriptor instead.
func (MerchantAccountType) Number ¶
func (x MerchantAccountType) Number() protoreflect.EnumNumber
func (MerchantAccountType) String ¶
func (x MerchantAccountType) String() string
func (MerchantAccountType) Type ¶
func (MerchantAccountType) Type() protoreflect.EnumType
type MerchantAccountWithAfterPatchSave ¶
type MerchantAccountWithAfterPatchSave interface {
AfterPatchSave(context.Context, *MerchantAccount, *field_mask.FieldMask, *gorm.DB) error
}
type MerchantAccountWithAfterToORM ¶
type MerchantAccountWithAfterToORM interface {
AfterToORM(context.Context, *MerchantAccountORM) error
}
MerchantAccountAfterToORM called after default ToORM code
type MerchantAccountWithAfterToPB ¶
type MerchantAccountWithAfterToPB interface {
AfterToPB(context.Context, *MerchantAccount) error
}
MerchantAccountAfterToPB called after default ToPB code
type MerchantAccountWithBeforePatchApplyFieldMask ¶
type MerchantAccountWithBeforePatchApplyFieldMask interface {
BeforePatchApplyFieldMask(context.Context, *MerchantAccount, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}
type MerchantAccountWithBeforePatchRead ¶
type MerchantAccountWithBeforePatchRead interface {
BeforePatchRead(context.Context, *MerchantAccount, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}
type MerchantAccountWithBeforePatchSave ¶
type MerchantAccountWithBeforePatchSave interface {
BeforePatchSave(context.Context, *MerchantAccount, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}
type MerchantAccountWithBeforeToORM ¶
type MerchantAccountWithBeforeToORM interface {
BeforeToORM(context.Context, *MerchantAccountORM) error
}
MerchantAccountBeforeToORM called before default ToORM code
type MerchantAccountWithBeforeToPB ¶
type MerchantAccountWithBeforeToPB interface {
BeforeToPB(context.Context, *MerchantAccount) error
}
MerchantAccountBeforeToPB called before default ToPB code
type OnboardingStatus ¶
type OnboardingStatus int32
represents the stage in the onboarding flow the merchant account is in
const ( OnboardingStatus_OnboardingNotStarted OnboardingStatus = 0 OnboardingStatus_FeelGuudOnboardingStarted OnboardingStatus = 1 OnboardingStatus_FeelGuudOnboardingCompleted OnboardingStatus = 2 OnboardingStatus_StripeOnboardingStarted OnboardingStatus = 3 OnboardingStatus_StripeOnboardingCompleted OnboardingStatus = 4 OnboardingStatus_CatalogueOnboardingStarted OnboardingStatus = 5 OnboardingStatus_CatalogueOnboardingCompleted OnboardingStatus = 6 OnboardingStatus_BCorpOnboardingStarted OnboardingStatus = 7 OnboardingStatus_BCorpOnboardingCompleted OnboardingStatus = 8 )
func (OnboardingStatus) Descriptor ¶
func (OnboardingStatus) Descriptor() protoreflect.EnumDescriptor
func (OnboardingStatus) Enum ¶
func (x OnboardingStatus) Enum() *OnboardingStatus
func (OnboardingStatus) EnumDescriptor
deprecated
func (OnboardingStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use OnboardingStatus.Descriptor instead.
func (OnboardingStatus) Number ¶
func (x OnboardingStatus) Number() protoreflect.EnumNumber
func (OnboardingStatus) String ¶
func (x OnboardingStatus) String() string
func (OnboardingStatus) Type ¶
func (OnboardingStatus) Type() protoreflect.EnumType
type Owner ¶
type Owner struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` FirstName string `protobuf:"bytes,2,opt,name=FirstName,proto3" json:"FirstName,omitempty"` LastName string `protobuf:"bytes,3,opt,name=LastName,proto3" json:"LastName,omitempty"` Email string `protobuf:"bytes,4,opt,name=Email,proto3" json:"Email,omitempty"` Country string `protobuf:"bytes,5,opt,name=Country,proto3" json:"Country,omitempty"` // contains filtered or unexported fields }
Represents the merchant account owner
func DefaultApplyFieldMaskOwner ¶
func DefaultApplyFieldMaskOwner(ctx context.Context, patchee *Owner, patcher *Owner, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Owner, error)
DefaultApplyFieldMaskOwner patches an pbObject with patcher according to a field mask.
func DefaultCreateOwner ¶
DefaultCreateOwner executes a basic gorm create call
func DefaultListOwner ¶
DefaultListOwner executes a gorm list call
func DefaultPatchOwner ¶
func DefaultPatchOwner(ctx context.Context, in *Owner, updateMask *field_mask.FieldMask, db *gorm.DB) (*Owner, error)
DefaultPatchOwner executes a basic gorm update call with patch behavior
func DefaultPatchSetOwner ¶
func DefaultPatchSetOwner(ctx context.Context, objects []*Owner, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Owner, error)
DefaultPatchSetOwner executes a bulk gorm update call with patch behavior
func DefaultReadOwner ¶
func DefaultStrictUpdateOwner ¶
DefaultStrictUpdateOwner clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Owner) Descriptor
deprecated
func (*Owner) GetCountry ¶
func (*Owner) GetFirstName ¶
func (*Owner) GetLastName ¶
func (*Owner) ProtoMessage ¶
func (*Owner) ProtoMessage()
func (*Owner) ProtoReflect ¶
func (x *Owner) ProtoReflect() protoreflect.Message
type OwnerORM ¶
type OwnerORM struct { Country string Email string FirstName string Id uint64 LastName string MerchantAccountId *uint64 }
type OwnerWithAfterPatchSave ¶
type OwnerWithAfterToORM ¶
OwnerAfterToORM called after default ToORM code
type OwnerWithAfterToPB ¶
OwnerAfterToPB called after default ToPB code
type OwnerWithBeforeToORM ¶
OwnerBeforeToORM called before default ToORM code
type OwnerWithBeforeToPB ¶
OwnerBeforeToPB called before default ToPB code
type Policy ¶
type Policy struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Body string `protobuf:"bytes,2,opt,name=Body,proto3" json:"Body,omitempty"` Handle string `protobuf:"bytes,3,opt,name=Handle,proto3" json:"Handle,omitempty"` Title string `protobuf:"bytes,4,opt,name=Title,proto3" json:"Title,omitempty"` Tags []*Tags `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
Represents various policies a merchant account can declare for various use cases
func (*Policy) Descriptor
deprecated
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
func (*Policy) ProtoReflect ¶
func (x *Policy) ProtoReflect() protoreflect.Message
type Policy_PolicyType ¶
type Policy_PolicyType int32
const ( Policy_SHIPPING_POLICY Policy_PolicyType = 0 Policy_RETURN_POLICY Policy_PolicyType = 1 )
func (Policy_PolicyType) Descriptor ¶
func (Policy_PolicyType) Descriptor() protoreflect.EnumDescriptor
func (Policy_PolicyType) Enum ¶
func (x Policy_PolicyType) Enum() *Policy_PolicyType
func (Policy_PolicyType) EnumDescriptor
deprecated
func (Policy_PolicyType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Policy_PolicyType.Descriptor instead.
func (Policy_PolicyType) Number ¶
func (x Policy_PolicyType) Number() protoreflect.EnumNumber
func (Policy_PolicyType) String ¶
func (x Policy_PolicyType) String() string
func (Policy_PolicyType) Type ¶
func (Policy_PolicyType) Type() protoreflect.EnumType
type ReturnPolicy ¶
type ReturnPolicy struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` PolicyMeta *Policy `protobuf:"bytes,2,opt,name=policy_meta,json=policyMeta,proto3" json:"policy_meta,omitempty"` ContactWithinDaysOfDelivery uint32 `` /* 149-byte string literal not displayed */ ShipWithDaysOfDelivery uint32 `` /* 134-byte string literal not displayed */ RequestCancellationWithinDaysOfDelivery uint32 `` /* 187-byte string literal not displayed */ ItemsNotToBeReturned []string `` /* 127-byte string literal not displayed */ ConditionsOfReturn []string `protobuf:"bytes,7,rep,name=conditions_of_return,json=conditionsOfReturn,proto3" json:"conditions_of_return,omitempty"` Details string `protobuf:"bytes,8,opt,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
ReturnPolicy represent a sample shop return policy
func (*ReturnPolicy) Descriptor
deprecated
func (*ReturnPolicy) Descriptor() ([]byte, []int)
Deprecated: Use ReturnPolicy.ProtoReflect.Descriptor instead.
func (*ReturnPolicy) GetConditionsOfReturn ¶
func (x *ReturnPolicy) GetConditionsOfReturn() []string
func (*ReturnPolicy) GetContactWithinDaysOfDelivery ¶
func (x *ReturnPolicy) GetContactWithinDaysOfDelivery() uint32
func (*ReturnPolicy) GetDetails ¶
func (x *ReturnPolicy) GetDetails() string
func (*ReturnPolicy) GetId ¶
func (x *ReturnPolicy) GetId() uint64
func (*ReturnPolicy) GetItemsNotToBeReturned ¶
func (x *ReturnPolicy) GetItemsNotToBeReturned() []string
func (*ReturnPolicy) GetPolicyMeta ¶
func (x *ReturnPolicy) GetPolicyMeta() *Policy
func (*ReturnPolicy) GetRequestCancellationWithinDaysOfDelivery ¶
func (x *ReturnPolicy) GetRequestCancellationWithinDaysOfDelivery() uint32
func (*ReturnPolicy) GetShipWithDaysOfDelivery ¶
func (x *ReturnPolicy) GetShipWithDaysOfDelivery() uint32
func (*ReturnPolicy) ProtoMessage ¶
func (*ReturnPolicy) ProtoMessage()
func (*ReturnPolicy) ProtoReflect ¶
func (x *ReturnPolicy) ProtoReflect() protoreflect.Message
func (*ReturnPolicy) Reset ¶
func (x *ReturnPolicy) Reset()
func (*ReturnPolicy) String ¶
func (x *ReturnPolicy) String() string
func (*ReturnPolicy) Validate ¶
func (this *ReturnPolicy) Validate() error
type Settings ¶
type Settings struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // merchant account payment details PaymentDetails *Settings_PaymentDetails `protobuf:"bytes,2,opt,name=payment_details,json=paymentDetails,proto3" json:"payment_details,omitempty"` // set of policies a merchant account can define on it's shop profile ShopPolicy []*Policy `protobuf:"bytes,3,rep,name=ShopPolicy,proto3" json:"ShopPolicy,omitempty"` // set of policies a merchant account can define with respect to privacy on it's shop profile PrivacyPolicy []*Policy `protobuf:"bytes,4,rep,name=PrivacyPolicy,proto3" json:"PrivacyPolicy,omitempty"` // set of return policies a merchant account can define with respect to issuing refunds on its shop profile ReturnPolicy *ReturnPolicy `protobuf:"bytes,5,opt,name=ReturnPolicy,proto3" json:"ReturnPolicy,omitempty"` // set of shipping policies a merchant account can define on to its shop profile ShippingPolicy *ShippingPolicy `protobuf:"bytes,6,opt,name=ShippingPolicy,proto3" json:"ShippingPolicy,omitempty"` // contains filtered or unexported fields }
Represents all configurable settings for a given merchant account
func DefaultApplyFieldMaskSettings ¶
func DefaultApplyFieldMaskSettings(ctx context.Context, patchee *Settings, patcher *Settings, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Settings, error)
DefaultApplyFieldMaskSettings patches an pbObject with patcher according to a field mask.
func DefaultCreateSettings ¶
DefaultCreateSettings executes a basic gorm create call
func DefaultListSettings ¶
DefaultListSettings executes a gorm list call
func DefaultPatchSetSettings ¶
func DefaultPatchSetSettings(ctx context.Context, objects []*Settings, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Settings, error)
DefaultPatchSetSettings executes a bulk gorm update call with patch behavior
func DefaultPatchSettings ¶
func DefaultPatchSettings(ctx context.Context, in *Settings, updateMask *field_mask.FieldMask, db *gorm.DB) (*Settings, error)
DefaultPatchSettings executes a basic gorm update call with patch behavior
func DefaultReadSettings ¶
func DefaultStrictUpdateSettings ¶
DefaultStrictUpdateSettings clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Settings) Descriptor
deprecated
func (*Settings) GetPaymentDetails ¶
func (x *Settings) GetPaymentDetails() *Settings_PaymentDetails
func (*Settings) GetPrivacyPolicy ¶
func (*Settings) GetReturnPolicy ¶
func (x *Settings) GetReturnPolicy() *ReturnPolicy
func (*Settings) GetShippingPolicy ¶
func (x *Settings) GetShippingPolicy() *ShippingPolicy
func (*Settings) GetShopPolicy ¶
func (*Settings) ProtoMessage ¶
func (*Settings) ProtoMessage()
func (*Settings) ProtoReflect ¶
func (x *Settings) ProtoReflect() protoreflect.Message
type SettingsORM ¶
func (SettingsORM) TableName ¶
func (SettingsORM) TableName() string
TableName overrides the default tablename generated by GORM
type SettingsWithAfterToORM ¶
type SettingsWithAfterToORM interface {
AfterToORM(context.Context, *SettingsORM) error
}
SettingsAfterToORM called after default ToORM code
type SettingsWithAfterToPB ¶
SettingsAfterToPB called after default ToPB code
type SettingsWithBeforeToORM ¶
type SettingsWithBeforeToORM interface {
BeforeToORM(context.Context, *SettingsORM) error
}
SettingsBeforeToORM called before default ToORM code
type SettingsWithBeforeToPB ¶
SettingsBeforeToPB called before default ToPB code
type Settings_PaymentDetails ¶
type Settings_PaymentDetails struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // set of acceptable credit card types AcceptableCreditCardTypes []Settings_PaymentDetails_CreditCardBrand `` /* 193-byte string literal not displayed */ // primary currency this business aims to transact in PrimaryCurrencyCode Settings_PaymentDetails_CurrencyCode `` /* 163-byte string literal not displayed */ // set of currencies the merchant can support EnabledCurrencyCodes []Settings_PaymentDetails_CurrencyCode `` /* 173-byte string literal not displayed */ // set of supported digital wallets SupportedDigitalWallets []Settings_PaymentDetails_DigitalWallets `` /* 184-byte string literal not displayed */ // contains filtered or unexported fields }
Represents the various details associated with a payment type
func (*Settings_PaymentDetails) Descriptor
deprecated
func (*Settings_PaymentDetails) Descriptor() ([]byte, []int)
Deprecated: Use Settings_PaymentDetails.ProtoReflect.Descriptor instead.
func (*Settings_PaymentDetails) GetAcceptableCreditCardTypes ¶
func (x *Settings_PaymentDetails) GetAcceptableCreditCardTypes() []Settings_PaymentDetails_CreditCardBrand
func (*Settings_PaymentDetails) GetEnabledCurrencyCodes ¶
func (x *Settings_PaymentDetails) GetEnabledCurrencyCodes() []Settings_PaymentDetails_CurrencyCode
func (*Settings_PaymentDetails) GetId ¶
func (x *Settings_PaymentDetails) GetId() uint64
func (*Settings_PaymentDetails) GetPrimaryCurrencyCode ¶
func (x *Settings_PaymentDetails) GetPrimaryCurrencyCode() Settings_PaymentDetails_CurrencyCode
func (*Settings_PaymentDetails) GetSupportedDigitalWallets ¶
func (x *Settings_PaymentDetails) GetSupportedDigitalWallets() []Settings_PaymentDetails_DigitalWallets
func (*Settings_PaymentDetails) ProtoMessage ¶
func (*Settings_PaymentDetails) ProtoMessage()
func (*Settings_PaymentDetails) ProtoReflect ¶
func (x *Settings_PaymentDetails) ProtoReflect() protoreflect.Message
func (*Settings_PaymentDetails) Reset ¶
func (x *Settings_PaymentDetails) Reset()
func (*Settings_PaymentDetails) String ¶
func (x *Settings_PaymentDetails) String() string
func (*Settings_PaymentDetails) Validate ¶
func (this *Settings_PaymentDetails) Validate() error
type Settings_PaymentDetails_CreditCardBrand ¶
type Settings_PaymentDetails_CreditCardBrand int32
Credit card type
const ( Settings_PaymentDetails_VISA Settings_PaymentDetails_CreditCardBrand = 0 Settings_PaymentDetails_MASTERCARD Settings_PaymentDetails_CreditCardBrand = 1 Settings_PaymentDetails_DISCOVER Settings_PaymentDetails_CreditCardBrand = 2 )
func (Settings_PaymentDetails_CreditCardBrand) Descriptor ¶
func (Settings_PaymentDetails_CreditCardBrand) Descriptor() protoreflect.EnumDescriptor
func (Settings_PaymentDetails_CreditCardBrand) EnumDescriptor
deprecated
func (Settings_PaymentDetails_CreditCardBrand) EnumDescriptor() ([]byte, []int)
Deprecated: Use Settings_PaymentDetails_CreditCardBrand.Descriptor instead.
func (Settings_PaymentDetails_CreditCardBrand) Number ¶
func (x Settings_PaymentDetails_CreditCardBrand) Number() protoreflect.EnumNumber
func (Settings_PaymentDetails_CreditCardBrand) String ¶
func (x Settings_PaymentDetails_CreditCardBrand) String() string
func (Settings_PaymentDetails_CreditCardBrand) Type ¶
func (Settings_PaymentDetails_CreditCardBrand) Type() protoreflect.EnumType
type Settings_PaymentDetails_CurrencyCode ¶
type Settings_PaymentDetails_CurrencyCode int32
currency in which this business aims to transact
const ( Settings_PaymentDetails_USD Settings_PaymentDetails_CurrencyCode = 0 Settings_PaymentDetails_GBP Settings_PaymentDetails_CurrencyCode = 1 )
func (Settings_PaymentDetails_CurrencyCode) Descriptor ¶
func (Settings_PaymentDetails_CurrencyCode) Descriptor() protoreflect.EnumDescriptor
func (Settings_PaymentDetails_CurrencyCode) Enum ¶
func (x Settings_PaymentDetails_CurrencyCode) Enum() *Settings_PaymentDetails_CurrencyCode
func (Settings_PaymentDetails_CurrencyCode) EnumDescriptor
deprecated
func (Settings_PaymentDetails_CurrencyCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use Settings_PaymentDetails_CurrencyCode.Descriptor instead.
func (Settings_PaymentDetails_CurrencyCode) Number ¶
func (x Settings_PaymentDetails_CurrencyCode) Number() protoreflect.EnumNumber
func (Settings_PaymentDetails_CurrencyCode) String ¶
func (x Settings_PaymentDetails_CurrencyCode) String() string
func (Settings_PaymentDetails_CurrencyCode) Type ¶
func (Settings_PaymentDetails_CurrencyCode) Type() protoreflect.EnumType
type Settings_PaymentDetails_DigitalWallets ¶
type Settings_PaymentDetails_DigitalWallets int32
Represents the set of supported digital wallets
const ( Settings_PaymentDetails_ANDROID_PAY Settings_PaymentDetails_DigitalWallets = 0 Settings_PaymentDetails_APPLE_PAY Settings_PaymentDetails_DigitalWallets = 1 Settings_PaymentDetails_GOOGLE_PAY Settings_PaymentDetails_DigitalWallets = 2 Settings_PaymentDetails_SHOPIFY_PAY Settings_PaymentDetails_DigitalWallets = 3 )
func (Settings_PaymentDetails_DigitalWallets) Descriptor ¶
func (Settings_PaymentDetails_DigitalWallets) Descriptor() protoreflect.EnumDescriptor
func (Settings_PaymentDetails_DigitalWallets) EnumDescriptor
deprecated
func (Settings_PaymentDetails_DigitalWallets) EnumDescriptor() ([]byte, []int)
Deprecated: Use Settings_PaymentDetails_DigitalWallets.Descriptor instead.
func (Settings_PaymentDetails_DigitalWallets) Number ¶
func (x Settings_PaymentDetails_DigitalWallets) Number() protoreflect.EnumNumber
func (Settings_PaymentDetails_DigitalWallets) String ¶
func (x Settings_PaymentDetails_DigitalWallets) String() string
func (Settings_PaymentDetails_DigitalWallets) Type ¶
func (Settings_PaymentDetails_DigitalWallets) Type() protoreflect.EnumType
type ShippingPolicy ¶
type ShippingPolicy struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` PolicyMeta *Policy `protobuf:"bytes,2,opt,name=policy_meta,json=policyMeta,proto3" json:"policy_meta,omitempty"` PostalService ShippingPolicy_PostalService `` /* 135-byte string literal not displayed */ DaysOrderShipsIn uint32 `protobuf:"varint,4,opt,name=days_order_ships_in,json=daysOrderShipsIn,proto3" json:"days_order_ships_in,omitempty"` Details string `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"` // contains filtered or unexported fields }
ShippingPolicy represents a sample shop shipping policy
func (*ShippingPolicy) Descriptor
deprecated
func (*ShippingPolicy) Descriptor() ([]byte, []int)
Deprecated: Use ShippingPolicy.ProtoReflect.Descriptor instead.
func (*ShippingPolicy) GetDaysOrderShipsIn ¶
func (x *ShippingPolicy) GetDaysOrderShipsIn() uint32
func (*ShippingPolicy) GetDetails ¶
func (x *ShippingPolicy) GetDetails() string
func (*ShippingPolicy) GetId ¶
func (x *ShippingPolicy) GetId() uint64
func (*ShippingPolicy) GetPolicyMeta ¶
func (x *ShippingPolicy) GetPolicyMeta() *Policy
func (*ShippingPolicy) GetPostalService ¶
func (x *ShippingPolicy) GetPostalService() ShippingPolicy_PostalService
func (*ShippingPolicy) ProtoMessage ¶
func (*ShippingPolicy) ProtoMessage()
func (*ShippingPolicy) ProtoReflect ¶
func (x *ShippingPolicy) ProtoReflect() protoreflect.Message
func (*ShippingPolicy) Reset ¶
func (x *ShippingPolicy) Reset()
func (*ShippingPolicy) String ¶
func (x *ShippingPolicy) String() string
func (*ShippingPolicy) Validate ¶
func (this *ShippingPolicy) Validate() error
type ShippingPolicy_PostalService ¶
type ShippingPolicy_PostalService int32
const ( ShippingPolicy_USPS ShippingPolicy_PostalService = 0 ShippingPolicy_FEDEX ShippingPolicy_PostalService = 1 ShippingPolicy_DHL ShippingPolicy_PostalService = 2 ShippingPolicy_UPS ShippingPolicy_PostalService = 3 ShippingPolicy_BLUE_DART ShippingPolicy_PostalService = 4 )
func (ShippingPolicy_PostalService) Descriptor ¶
func (ShippingPolicy_PostalService) Descriptor() protoreflect.EnumDescriptor
func (ShippingPolicy_PostalService) Enum ¶
func (x ShippingPolicy_PostalService) Enum() *ShippingPolicy_PostalService
func (ShippingPolicy_PostalService) EnumDescriptor
deprecated
func (ShippingPolicy_PostalService) EnumDescriptor() ([]byte, []int)
Deprecated: Use ShippingPolicy_PostalService.Descriptor instead.
func (ShippingPolicy_PostalService) Number ¶
func (x ShippingPolicy_PostalService) Number() protoreflect.EnumNumber
func (ShippingPolicy_PostalService) String ¶
func (x ShippingPolicy_PostalService) String() string
func (ShippingPolicy_PostalService) Type ¶
func (ShippingPolicy_PostalService) Type() protoreflect.EnumType
type Tags ¶
type Tags struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` TagName string `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` TagDescription string `protobuf:"bytes,3,opt,name=tag_description,json=tagDescription,proto3" json:"tag_description,omitempty"` Metadata []string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
represents a sample tag
func DefaultApplyFieldMaskTags ¶
func DefaultApplyFieldMaskTags(ctx context.Context, patchee *Tags, patcher *Tags, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Tags, error)
DefaultApplyFieldMaskTags patches an pbObject with patcher according to a field mask.
func DefaultCreateTags ¶
DefaultCreateTags executes a basic gorm create call
func DefaultListTags ¶
DefaultListTags executes a gorm list call
func DefaultPatchSetTags ¶
func DefaultPatchSetTags(ctx context.Context, objects []*Tags, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Tags, error)
DefaultPatchSetTags executes a bulk gorm update call with patch behavior
func DefaultPatchTags ¶
func DefaultPatchTags(ctx context.Context, in *Tags, updateMask *field_mask.FieldMask, db *gorm.DB) (*Tags, error)
DefaultPatchTags executes a basic gorm update call with patch behavior
func DefaultReadTags ¶
func DefaultStrictUpdateTags ¶
DefaultStrictUpdateTags clears / replaces / appends first level 1:many children and then executes a gorm update call
func (*Tags) Descriptor
deprecated
func (*Tags) GetMetadata ¶
func (*Tags) GetTagDescription ¶
func (*Tags) GetTagName ¶
func (*Tags) ProtoMessage ¶
func (*Tags) ProtoMessage()
func (*Tags) ProtoReflect ¶
func (x *Tags) ProtoReflect() protoreflect.Message
type TagsORM ¶
type TagsORM struct { Id uint64 MerchantAccountId *uint64 Metadata pq.StringArray `gorm:"type:text[]"` TagDescription string TagName string }
type TagsORMWithAfterCreate_ ¶
type TagsORMWithAfterDelete_ ¶
type TagsWithAfterPatchSave ¶
type TagsWithAfterToORM ¶
TagsAfterToORM called after default ToORM code
type TagsWithAfterToPB ¶
TagsAfterToPB called after default ToPB code
type TagsWithBeforePatchRead ¶
type TagsWithBeforePatchSave ¶
type TagsWithBeforeToORM ¶
TagsBeforeToORM called before default ToORM code