models

package
v0.0.0-...-eac6ddc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var (
	MerchantAccountState_name = map[int32]string{
		0: "ActiveAndOnboarded",
		1: "PendingOnboardingCompletion",
	}
	MerchantAccountState_value = map[string]int32{
		"ActiveAndOnboarded":          0,
		"PendingOnboardingCompletion": 1,
	}
)

Enum value maps for MerchantAccountState.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var File_internal_merchant_merchant_proto protoreflect.FileDescriptor

Functions

func DatabaseModels

func DatabaseModels() []interface{}

func DefaultDeleteAddress

func DefaultDeleteAddress(ctx context.Context, in *Address, db *gorm.DB) error

func DefaultDeleteAddressSet

func DefaultDeleteAddressSet(ctx context.Context, in []*Address, db *gorm.DB) error

func DefaultDeleteItemSold

func DefaultDeleteItemSold(ctx context.Context, in *ItemSold, db *gorm.DB) error

func DefaultDeleteItemSoldSet

func DefaultDeleteItemSoldSet(ctx context.Context, in []*ItemSold, db *gorm.DB) error

func DefaultDeleteMerchantAccount

func DefaultDeleteMerchantAccount(ctx context.Context, in *MerchantAccount, db *gorm.DB) error

func DefaultDeleteMerchantAccountSet

func DefaultDeleteMerchantAccountSet(ctx context.Context, in []*MerchantAccount, db *gorm.DB) error

func DefaultDeleteOwner

func DefaultDeleteOwner(ctx context.Context, in *Owner, db *gorm.DB) error

func DefaultDeleteOwnerSet

func DefaultDeleteOwnerSet(ctx context.Context, in []*Owner, db *gorm.DB) error

func DefaultDeleteSettings

func DefaultDeleteSettings(ctx context.Context, in *Settings, db *gorm.DB) error

func DefaultDeleteSettingsSet

func DefaultDeleteSettingsSet(ctx context.Context, in []*Settings, db *gorm.DB) error

func DefaultDeleteTags

func DefaultDeleteTags(ctx context.Context, in *Tags, db *gorm.DB) error

func DefaultDeleteTagsSet

func DefaultDeleteTagsSet(ctx context.Context, in []*Tags, db *gorm.DB) error

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

func DefaultCreateAddress(ctx context.Context, in *Address, db *gorm.DB) (*Address, error)

DefaultCreateAddress executes a basic gorm create call

func DefaultListAddress

func DefaultListAddress(ctx context.Context, db *gorm.DB) ([]*Address, error)

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 DefaultReadAddress(ctx context.Context, in *Address, db *gorm.DB) (*Address, error)

func DefaultStrictUpdateAddress

func DefaultStrictUpdateAddress(ctx context.Context, in *Address, db *gorm.DB) (*Address, error)

DefaultStrictUpdateAddress clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Address) Descriptor deprecated

func (*Address) Descriptor() ([]byte, []int)

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetAddress

func (x *Address) GetAddress() string

func (*Address) GetCity

func (x *Address) GetCity() string

func (*Address) GetId

func (x *Address) GetId() uint64

func (*Address) GetLattitude

func (x *Address) GetLattitude() string

func (*Address) GetLongitude

func (x *Address) GetLongitude() string

func (*Address) GetState

func (x *Address) GetState() string

func (*Address) GetUnit

func (x *Address) GetUnit() string

func (*Address) GetZipCode

func (x *Address) GetZipCode() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

func (x *Address) ProtoReflect() protoreflect.Message

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

func (*Address) ToORM

func (m *Address) ToORM(ctx context.Context) (AddressORM, 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 (*Address) Validate

func (this *Address) Validate() error

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

func (*AddressORM) ToPB

func (m *AddressORM) ToPB(ctx context.Context) (Address, 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 AddressORMWithAfterCreate_

type AddressORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type AddressORMWithAfterDeleteSet

type AddressORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Address, *gorm.DB) error
}

type AddressORMWithAfterDelete_

type AddressORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type AddressORMWithAfterListFind

type AddressORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]AddressORM) error
}

type AddressORMWithAfterReadFind

type AddressORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type AddressORMWithAfterStrictUpdateSave

type AddressORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type AddressORMWithBeforeCreate_

type AddressORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeDeleteSet

type AddressORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Address, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeDelete_

type AddressORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeListApplyQuery

type AddressORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeListFind

type AddressORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeReadApplyQuery

type AddressORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeReadFind

type AddressORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeStrictUpdateCleanup

type AddressORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeStrictUpdateSave

type AddressORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressWithAfterPatchSave

type AddressWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Address, *field_mask.FieldMask, *gorm.DB) error
}

type AddressWithAfterToORM

type AddressWithAfterToORM interface {
	AfterToORM(context.Context, *AddressORM) error
}

AddressAfterToORM called after default ToORM code

type AddressWithAfterToPB

type AddressWithAfterToPB interface {
	AfterToPB(context.Context, *Address) error
}

AddressAfterToPB called after default ToPB code

type AddressWithBeforePatchApplyFieldMask

type AddressWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Address, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type AddressWithBeforePatchRead

type AddressWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Address, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type AddressWithBeforePatchSave

type AddressWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Address, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type AddressWithBeforeToORM

type AddressWithBeforeToORM interface {
	BeforeToORM(context.Context, *AddressORM) error
}

AddressBeforeToORM called before default ToORM code

type AddressWithBeforeToPB

type AddressWithBeforeToPB interface {
	BeforeToPB(context.Context, *Address) error
}

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) Enum

func (x Causes) Enum() *Causes

func (Causes) EnumDescriptor deprecated

func (Causes) EnumDescriptor() ([]byte, []int)

Deprecated: Use Causes.Descriptor instead.

func (Causes) Number

func (x Causes) Number() protoreflect.EnumNumber

func (Causes) String

func (x Causes) String() string

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) Enum

func (FulfillmentOptions) EnumDescriptor deprecated

func (FulfillmentOptions) EnumDescriptor() ([]byte, []int)

Deprecated: Use FulfillmentOptions.Descriptor instead.

func (FulfillmentOptions) Number

func (FulfillmentOptions) String

func (x FulfillmentOptions) String() string

func (FulfillmentOptions) Type

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

func DefaultCreateItemSold(ctx context.Context, in *ItemSold, db *gorm.DB) (*ItemSold, error)

DefaultCreateItemSold executes a basic gorm create call

func DefaultListItemSold

func DefaultListItemSold(ctx context.Context, db *gorm.DB) ([]*ItemSold, error)

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 DefaultReadItemSold(ctx context.Context, in *ItemSold, db *gorm.DB) (*ItemSold, error)

func DefaultStrictUpdateItemSold

func DefaultStrictUpdateItemSold(ctx context.Context, in *ItemSold, db *gorm.DB) (*ItemSold, error)

DefaultStrictUpdateItemSold clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*ItemSold) Descriptor deprecated

func (*ItemSold) Descriptor() ([]byte, []int)

Deprecated: Use ItemSold.ProtoReflect.Descriptor instead.

func (*ItemSold) GetId

func (x *ItemSold) GetId() uint64

func (*ItemSold) GetType

func (x *ItemSold) GetType() ItemSold_ItemsType

func (*ItemSold) ProtoMessage

func (*ItemSold) ProtoMessage()

func (*ItemSold) ProtoReflect

func (x *ItemSold) ProtoReflect() protoreflect.Message

func (*ItemSold) Reset

func (x *ItemSold) Reset()

func (*ItemSold) String

func (x *ItemSold) String() string

func (*ItemSold) ToORM

func (m *ItemSold) ToORM(ctx context.Context) (ItemSoldORM, 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 (*ItemSold) Validate

func (this *ItemSold) Validate() error

type ItemSoldORM

type ItemSoldORM struct {
	Id                uint64
	MerchantAccountId *uint64
	Type              int32
}

func (ItemSoldORM) TableName

func (ItemSoldORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*ItemSoldORM) ToPB

func (m *ItemSoldORM) ToPB(ctx context.Context) (ItemSold, 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 ItemSoldORMWithAfterCreate_

type ItemSoldORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type ItemSoldORMWithAfterDeleteSet

type ItemSoldORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*ItemSold, *gorm.DB) error
}

type ItemSoldORMWithAfterDelete_

type ItemSoldORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type ItemSoldORMWithAfterListFind

type ItemSoldORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]ItemSoldORM) error
}

type ItemSoldORMWithAfterReadFind

type ItemSoldORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type ItemSoldORMWithAfterStrictUpdateSave

type ItemSoldORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type ItemSoldORMWithBeforeCreate_

type ItemSoldORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ItemSoldORMWithBeforeDeleteSet

type ItemSoldORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*ItemSold, *gorm.DB) (*gorm.DB, error)
}

type ItemSoldORMWithBeforeDelete_

type ItemSoldORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ItemSoldORMWithBeforeListApplyQuery

type ItemSoldORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ItemSoldORMWithBeforeListFind

type ItemSoldORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ItemSoldORMWithBeforeReadApplyQuery

type ItemSoldORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ItemSoldORMWithBeforeReadFind

type ItemSoldORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ItemSoldORMWithBeforeStrictUpdateCleanup

type ItemSoldORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ItemSoldORMWithBeforeStrictUpdateSave

type ItemSoldORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ItemSoldWithAfterPatchSave

type ItemSoldWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *ItemSold, *field_mask.FieldMask, *gorm.DB) error
}

type ItemSoldWithAfterToORM

type ItemSoldWithAfterToORM interface {
	AfterToORM(context.Context, *ItemSoldORM) error
}

ItemSoldAfterToORM called after default ToORM code

type ItemSoldWithAfterToPB

type ItemSoldWithAfterToPB interface {
	AfterToPB(context.Context, *ItemSold) error
}

ItemSoldAfterToPB called after default ToPB code

type ItemSoldWithBeforePatchApplyFieldMask

type ItemSoldWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *ItemSold, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type ItemSoldWithBeforePatchRead

type ItemSoldWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *ItemSold, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type ItemSoldWithBeforePatchSave

type ItemSoldWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *ItemSold, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type ItemSoldWithBeforeToORM

type ItemSoldWithBeforeToORM interface {
	BeforeToORM(context.Context, *ItemSoldORM) error
}

ItemSoldBeforeToORM called before default ToORM code

type ItemSoldWithBeforeToPB

type ItemSoldWithBeforeToPB interface {
	BeforeToPB(context.Context, *ItemSold) error
}

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) Enum

func (ItemSold_ItemsType) EnumDescriptor deprecated

func (ItemSold_ItemsType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ItemSold_ItemsType.Descriptor instead.

func (ItemSold_ItemsType) Number

func (ItemSold_ItemsType) String

func (x ItemSold_ItemsType) String() string

func (ItemSold_ItemsType) Type

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

func DefaultListMerchantAccount(ctx context.Context, db *gorm.DB) ([]*MerchantAccount, error)

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

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

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 MerchantAccountORMWithAfterCreate_

type MerchantAccountORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type MerchantAccountORMWithAfterDeleteSet

type MerchantAccountORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*MerchantAccount, *gorm.DB) error
}

type MerchantAccountORMWithAfterDelete_

type MerchantAccountORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type MerchantAccountORMWithAfterListFind

type MerchantAccountORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]MerchantAccountORM) error
}

type MerchantAccountORMWithAfterReadFind

type MerchantAccountORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type MerchantAccountORMWithAfterStrictUpdateSave

type MerchantAccountORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type MerchantAccountORMWithBeforeCreate_

type MerchantAccountORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type MerchantAccountORMWithBeforeDeleteSet

type MerchantAccountORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*MerchantAccount, *gorm.DB) (*gorm.DB, error)
}

type MerchantAccountORMWithBeforeDelete_

type MerchantAccountORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type MerchantAccountORMWithBeforeListApplyQuery

type MerchantAccountORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type MerchantAccountORMWithBeforeListFind

type MerchantAccountORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type MerchantAccountORMWithBeforeReadApplyQuery

type MerchantAccountORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type MerchantAccountORMWithBeforeReadFind

type MerchantAccountORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type MerchantAccountORMWithBeforeStrictUpdateCleanup

type MerchantAccountORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type MerchantAccountORMWithBeforeStrictUpdateSave

type MerchantAccountORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

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) Enum

func (MerchantAccountState) EnumDescriptor deprecated

func (MerchantAccountState) EnumDescriptor() ([]byte, []int)

Deprecated: Use MerchantAccountState.Descriptor instead.

func (MerchantAccountState) Number

func (MerchantAccountState) String

func (x MerchantAccountState) String() string

func (MerchantAccountState) Type

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) Enum

func (MerchantAccountType) EnumDescriptor deprecated

func (MerchantAccountType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MerchantAccountType.Descriptor instead.

func (MerchantAccountType) Number

func (MerchantAccountType) String

func (x MerchantAccountType) String() string

func (MerchantAccountType) Type

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) Enum

func (OnboardingStatus) EnumDescriptor deprecated

func (OnboardingStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use OnboardingStatus.Descriptor instead.

func (OnboardingStatus) Number

func (OnboardingStatus) String

func (x OnboardingStatus) String() string

func (OnboardingStatus) Type

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

func DefaultCreateOwner(ctx context.Context, in *Owner, db *gorm.DB) (*Owner, error)

DefaultCreateOwner executes a basic gorm create call

func DefaultListOwner

func DefaultListOwner(ctx context.Context, db *gorm.DB) ([]*Owner, error)

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 DefaultReadOwner(ctx context.Context, in *Owner, db *gorm.DB) (*Owner, error)

func DefaultStrictUpdateOwner

func DefaultStrictUpdateOwner(ctx context.Context, in *Owner, db *gorm.DB) (*Owner, error)

DefaultStrictUpdateOwner clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Owner) Descriptor deprecated

func (*Owner) Descriptor() ([]byte, []int)

Deprecated: Use Owner.ProtoReflect.Descriptor instead.

func (*Owner) GetCountry

func (x *Owner) GetCountry() string

func (*Owner) GetEmail

func (x *Owner) GetEmail() string

func (*Owner) GetFirstName

func (x *Owner) GetFirstName() string

func (*Owner) GetId

func (x *Owner) GetId() uint64

func (*Owner) GetLastName

func (x *Owner) GetLastName() string

func (*Owner) ProtoMessage

func (*Owner) ProtoMessage()

func (*Owner) ProtoReflect

func (x *Owner) ProtoReflect() protoreflect.Message

func (*Owner) Reset

func (x *Owner) Reset()

func (*Owner) String

func (x *Owner) String() string

func (*Owner) ToORM

func (m *Owner) ToORM(ctx context.Context) (OwnerORM, 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 (*Owner) Validate

func (this *Owner) Validate() error

type OwnerORM

type OwnerORM struct {
	Country           string
	Email             string
	FirstName         string
	Id                uint64
	LastName          string
	MerchantAccountId *uint64
}

func (OwnerORM) TableName

func (OwnerORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*OwnerORM) ToPB

func (m *OwnerORM) ToPB(ctx context.Context) (Owner, 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 OwnerORMWithAfterCreate_

type OwnerORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type OwnerORMWithAfterDeleteSet

type OwnerORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Owner, *gorm.DB) error
}

type OwnerORMWithAfterDelete_

type OwnerORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type OwnerORMWithAfterListFind

type OwnerORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]OwnerORM) error
}

type OwnerORMWithAfterReadFind

type OwnerORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type OwnerORMWithAfterStrictUpdateSave

type OwnerORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type OwnerORMWithBeforeCreate_

type OwnerORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type OwnerORMWithBeforeDeleteSet

type OwnerORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Owner, *gorm.DB) (*gorm.DB, error)
}

type OwnerORMWithBeforeDelete_

type OwnerORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type OwnerORMWithBeforeListApplyQuery

type OwnerORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type OwnerORMWithBeforeListFind

type OwnerORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type OwnerORMWithBeforeReadApplyQuery

type OwnerORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type OwnerORMWithBeforeReadFind

type OwnerORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type OwnerORMWithBeforeStrictUpdateCleanup

type OwnerORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type OwnerORMWithBeforeStrictUpdateSave

type OwnerORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type OwnerWithAfterPatchSave

type OwnerWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Owner, *field_mask.FieldMask, *gorm.DB) error
}

type OwnerWithAfterToORM

type OwnerWithAfterToORM interface {
	AfterToORM(context.Context, *OwnerORM) error
}

OwnerAfterToORM called after default ToORM code

type OwnerWithAfterToPB

type OwnerWithAfterToPB interface {
	AfterToPB(context.Context, *Owner) error
}

OwnerAfterToPB called after default ToPB code

type OwnerWithBeforePatchApplyFieldMask

type OwnerWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Owner, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type OwnerWithBeforePatchRead

type OwnerWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Owner, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type OwnerWithBeforePatchSave

type OwnerWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Owner, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type OwnerWithBeforeToORM

type OwnerWithBeforeToORM interface {
	BeforeToORM(context.Context, *OwnerORM) error
}

OwnerBeforeToORM called before default ToORM code

type OwnerWithBeforeToPB

type OwnerWithBeforeToPB interface {
	BeforeToPB(context.Context, *Owner) error
}

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) Descriptor() ([]byte, []int)

Deprecated: Use Policy.ProtoReflect.Descriptor instead.

func (*Policy) GetBody

func (x *Policy) GetBody() string

func (*Policy) GetHandle

func (x *Policy) GetHandle() string

func (*Policy) GetId

func (x *Policy) GetId() uint64

func (*Policy) GetTags

func (x *Policy) GetTags() []*Tags

func (*Policy) GetTitle

func (x *Policy) GetTitle() string

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) ProtoReflect

func (x *Policy) ProtoReflect() protoreflect.Message

func (*Policy) Reset

func (x *Policy) Reset()

func (*Policy) String

func (x *Policy) String() string

func (*Policy) Validate

func (this *Policy) Validate() error

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) Enum

func (Policy_PolicyType) EnumDescriptor deprecated

func (Policy_PolicyType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Policy_PolicyType.Descriptor instead.

func (Policy_PolicyType) Number

func (Policy_PolicyType) String

func (x Policy_PolicyType) String() string

func (Policy_PolicyType) Type

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

func DefaultCreateSettings(ctx context.Context, in *Settings, db *gorm.DB) (*Settings, error)

DefaultCreateSettings executes a basic gorm create call

func DefaultListSettings

func DefaultListSettings(ctx context.Context, db *gorm.DB) ([]*Settings, error)

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 DefaultReadSettings(ctx context.Context, in *Settings, db *gorm.DB) (*Settings, error)

func DefaultStrictUpdateSettings

func DefaultStrictUpdateSettings(ctx context.Context, in *Settings, db *gorm.DB) (*Settings, error)

DefaultStrictUpdateSettings clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Settings) Descriptor deprecated

func (*Settings) Descriptor() ([]byte, []int)

Deprecated: Use Settings.ProtoReflect.Descriptor instead.

func (*Settings) GetId

func (x *Settings) GetId() uint64

func (*Settings) GetPaymentDetails

func (x *Settings) GetPaymentDetails() *Settings_PaymentDetails

func (*Settings) GetPrivacyPolicy

func (x *Settings) GetPrivacyPolicy() []*Policy

func (*Settings) GetReturnPolicy

func (x *Settings) GetReturnPolicy() *ReturnPolicy

func (*Settings) GetShippingPolicy

func (x *Settings) GetShippingPolicy() *ShippingPolicy

func (*Settings) GetShopPolicy

func (x *Settings) GetShopPolicy() []*Policy

func (*Settings) ProtoMessage

func (*Settings) ProtoMessage()

func (*Settings) ProtoReflect

func (x *Settings) ProtoReflect() protoreflect.Message

func (*Settings) Reset

func (x *Settings) Reset()

func (*Settings) String

func (x *Settings) String() string

func (*Settings) ToORM

func (m *Settings) ToORM(ctx context.Context) (SettingsORM, 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 (*Settings) Validate

func (this *Settings) Validate() error

type SettingsORM

type SettingsORM struct {
	Id                uint64
	MerchantAccountId *uint64
}

func (SettingsORM) TableName

func (SettingsORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*SettingsORM) ToPB

func (m *SettingsORM) ToPB(ctx context.Context) (Settings, 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 SettingsORMWithAfterCreate_

type SettingsORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type SettingsORMWithAfterDeleteSet

type SettingsORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Settings, *gorm.DB) error
}

type SettingsORMWithAfterDelete_

type SettingsORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type SettingsORMWithAfterListFind

type SettingsORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]SettingsORM) error
}

type SettingsORMWithAfterReadFind

type SettingsORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type SettingsORMWithAfterStrictUpdateSave

type SettingsORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type SettingsORMWithBeforeCreate_

type SettingsORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type SettingsORMWithBeforeDeleteSet

type SettingsORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Settings, *gorm.DB) (*gorm.DB, error)
}

type SettingsORMWithBeforeDelete_

type SettingsORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type SettingsORMWithBeforeListApplyQuery

type SettingsORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type SettingsORMWithBeforeListFind

type SettingsORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type SettingsORMWithBeforeReadApplyQuery

type SettingsORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type SettingsORMWithBeforeReadFind

type SettingsORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type SettingsORMWithBeforeStrictUpdateCleanup

type SettingsORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type SettingsORMWithBeforeStrictUpdateSave

type SettingsORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type SettingsWithAfterPatchSave

type SettingsWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Settings, *field_mask.FieldMask, *gorm.DB) error
}

type SettingsWithAfterToORM

type SettingsWithAfterToORM interface {
	AfterToORM(context.Context, *SettingsORM) error
}

SettingsAfterToORM called after default ToORM code

type SettingsWithAfterToPB

type SettingsWithAfterToPB interface {
	AfterToPB(context.Context, *Settings) error
}

SettingsAfterToPB called after default ToPB code

type SettingsWithBeforePatchApplyFieldMask

type SettingsWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Settings, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type SettingsWithBeforePatchRead

type SettingsWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Settings, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type SettingsWithBeforePatchSave

type SettingsWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Settings, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type SettingsWithBeforeToORM

type SettingsWithBeforeToORM interface {
	BeforeToORM(context.Context, *SettingsORM) error
}

SettingsBeforeToORM called before default ToORM code

type SettingsWithBeforeToPB

type SettingsWithBeforeToPB interface {
	BeforeToPB(context.Context, *Settings) error
}

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 (*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) Enum

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 (Settings_PaymentDetails_CreditCardBrand) String

func (Settings_PaymentDetails_CreditCardBrand) Type

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) Enum

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 (Settings_PaymentDetails_CurrencyCode) String

func (Settings_PaymentDetails_CurrencyCode) Type

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) Enum

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 (Settings_PaymentDetails_DigitalWallets) String

func (Settings_PaymentDetails_DigitalWallets) Type

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) Enum

func (ShippingPolicy_PostalService) EnumDescriptor deprecated

func (ShippingPolicy_PostalService) EnumDescriptor() ([]byte, []int)

Deprecated: Use ShippingPolicy_PostalService.Descriptor instead.

func (ShippingPolicy_PostalService) Number

func (ShippingPolicy_PostalService) String

func (ShippingPolicy_PostalService) Type

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

func DefaultCreateTags(ctx context.Context, in *Tags, db *gorm.DB) (*Tags, error)

DefaultCreateTags executes a basic gorm create call

func DefaultListTags

func DefaultListTags(ctx context.Context, db *gorm.DB) ([]*Tags, error)

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 DefaultReadTags(ctx context.Context, in *Tags, db *gorm.DB) (*Tags, error)

func DefaultStrictUpdateTags

func DefaultStrictUpdateTags(ctx context.Context, in *Tags, db *gorm.DB) (*Tags, error)

DefaultStrictUpdateTags clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Tags) Descriptor deprecated

func (*Tags) Descriptor() ([]byte, []int)

Deprecated: Use Tags.ProtoReflect.Descriptor instead.

func (*Tags) GetId

func (x *Tags) GetId() uint64

func (*Tags) GetMetadata

func (x *Tags) GetMetadata() []string

func (*Tags) GetTagDescription

func (x *Tags) GetTagDescription() string

func (*Tags) GetTagName

func (x *Tags) GetTagName() string

func (*Tags) ProtoMessage

func (*Tags) ProtoMessage()

func (*Tags) ProtoReflect

func (x *Tags) ProtoReflect() protoreflect.Message

func (*Tags) Reset

func (x *Tags) Reset()

func (*Tags) String

func (x *Tags) String() string

func (*Tags) ToORM

func (m *Tags) ToORM(ctx context.Context) (TagsORM, 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 (*Tags) Validate

func (this *Tags) Validate() error

type TagsORM

type TagsORM struct {
	Id                uint64
	MerchantAccountId *uint64
	Metadata          pq.StringArray `gorm:"type:text[]"`
	TagDescription    string
	TagName           string
}

func (TagsORM) TableName

func (TagsORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*TagsORM) ToPB

func (m *TagsORM) ToPB(ctx context.Context) (Tags, 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 TagsORMWithAfterCreate_

type TagsORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type TagsORMWithAfterDeleteSet

type TagsORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Tags, *gorm.DB) error
}

type TagsORMWithAfterDelete_

type TagsORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type TagsORMWithAfterListFind

type TagsORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]TagsORM) error
}

type TagsORMWithAfterReadFind

type TagsORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type TagsORMWithAfterStrictUpdateSave

type TagsORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type TagsORMWithBeforeCreate_

type TagsORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TagsORMWithBeforeDeleteSet

type TagsORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Tags, *gorm.DB) (*gorm.DB, error)
}

type TagsORMWithBeforeDelete_

type TagsORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TagsORMWithBeforeListApplyQuery

type TagsORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TagsORMWithBeforeListFind

type TagsORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TagsORMWithBeforeReadApplyQuery

type TagsORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TagsORMWithBeforeReadFind

type TagsORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TagsORMWithBeforeStrictUpdateCleanup

type TagsORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TagsORMWithBeforeStrictUpdateSave

type TagsORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TagsWithAfterPatchSave

type TagsWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Tags, *field_mask.FieldMask, *gorm.DB) error
}

type TagsWithAfterToORM

type TagsWithAfterToORM interface {
	AfterToORM(context.Context, *TagsORM) error
}

TagsAfterToORM called after default ToORM code

type TagsWithAfterToPB

type TagsWithAfterToPB interface {
	AfterToPB(context.Context, *Tags) error
}

TagsAfterToPB called after default ToPB code

type TagsWithBeforePatchApplyFieldMask

type TagsWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Tags, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TagsWithBeforePatchRead

type TagsWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Tags, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TagsWithBeforePatchSave

type TagsWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Tags, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TagsWithBeforeToORM

type TagsWithBeforeToORM interface {
	BeforeToORM(context.Context, *TagsORM) error
}

TagsBeforeToORM called before default ToORM code

type TagsWithBeforeToPB

type TagsWithBeforeToPB interface {
	BeforeToPB(context.Context, *Tags) error
}

TagsBeforeToPB called before default ToPB code

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL