Documentation ¶
Overview ¶
Package api is a generated protocol buffer package.
It is generated from these files:
api.proto
It has these top-level messages:
ListingReqApi ListingRespApi Inventory
Package contracts is a generated protocol buffer package.
It is generated from these files:
contracts.proto
It has these top-level messages:
RicardianContract Listing Order OrderConfirmation OrderFulfillment Rating Dispute DisputeResolution Refund ID Signatures
Package countrycodes is a generated protocol buffer package.
It is generated from these files:
countrycodes.proto
It has these top-level messages:
Package message is a generated protocol buffer package.
It is generated from these files:
message.proto
It has these top-level messages:
Message Envelope
Package moderator is a generated protocol buffer package.
It is generated from these files:
moderator.proto
It has these top-level messages:
Moderator
Package orders is a generated protocol buffer package.
It is generated from these files:
orders.proto
It has these top-level messages:
Package profile is a generated protocol buffer package.
It is generated from these files:
profile.proto
It has these top-level messages:
Profile
Index ¶
- Variables
- type CountryCode
- type Dispute
- type DisputeResolution
- type Envelope
- type ID
- type ID_Pubkeys
- type Inventory
- type Listing
- func (*Listing) Descriptor() ([]byte, []int)
- func (m *Listing) GetCoupons() []*Listing_Coupon
- func (m *Listing) GetItem() *Listing_Item
- func (m *Listing) GetMetadata() *Listing_Metadata
- func (m *Listing) GetShippingOptions() []*Listing_ShippingOption
- func (m *Listing) GetTaxes() []*Listing_Tax
- func (m *Listing) GetVendorID() *ID
- func (*Listing) ProtoMessage()
- func (m *Listing) Reset()
- func (m *Listing) String() string
- type ListingReqApi
- type ListingRespApi
- type Listing_Coupon
- type Listing_Item
- func (*Listing_Item) Descriptor() ([]byte, []int)
- func (m *Listing_Item) GetImages() []*Listing_Item_Image
- func (m *Listing_Item) GetOptions() []*Listing_Item_Option
- func (m *Listing_Item) GetPrice() *Listing_Price
- func (*Listing_Item) ProtoMessage()
- func (m *Listing_Item) Reset()
- func (m *Listing_Item) String() string
- type Listing_Item_Image
- type Listing_Item_Option
- type Listing_Item_Option_Variants
- func (*Listing_Item_Option_Variants) Descriptor() ([]byte, []int)
- func (m *Listing_Item_Option_Variants) GetImage() *Listing_Item_Image
- func (m *Listing_Item_Option_Variants) GetPriceModifier() *Listing_Price
- func (*Listing_Item_Option_Variants) ProtoMessage()
- func (m *Listing_Item_Option_Variants) Reset()
- func (m *Listing_Item_Option_Variants) String() string
- type Listing_Metadata
- type Listing_Metadata_ContractType
- type Listing_Metadata_ListingType
- type Listing_Price
- type Listing_ShippingOption
- func (*Listing_ShippingOption) Descriptor() ([]byte, []int)
- func (m *Listing_ShippingOption) GetServices() []*Listing_ShippingOption_Service
- func (m *Listing_ShippingOption) GetShippingRules() *Listing_ShippingOption_ShippingRules
- func (*Listing_ShippingOption) ProtoMessage()
- func (m *Listing_ShippingOption) Reset()
- func (m *Listing_ShippingOption) String() string
- type Listing_ShippingOption_Service
- type Listing_ShippingOption_ShippingRules
- func (*Listing_ShippingOption_ShippingRules) Descriptor() ([]byte, []int)
- func (m *Listing_ShippingOption_ShippingRules) GetRules() []*Listing_ShippingOption_ShippingRules_Rule
- func (*Listing_ShippingOption_ShippingRules) ProtoMessage()
- func (m *Listing_ShippingOption_ShippingRules) Reset()
- func (m *Listing_ShippingOption_ShippingRules) String() string
- type Listing_ShippingOption_ShippingRules_Rule
- func (*Listing_ShippingOption_ShippingRules_Rule) Descriptor() ([]byte, []int)
- func (m *Listing_ShippingOption_ShippingRules_Rule) GetPrice() *Listing_Price
- func (*Listing_ShippingOption_ShippingRules_Rule) ProtoMessage()
- func (m *Listing_ShippingOption_ShippingRules_Rule) Reset()
- func (m *Listing_ShippingOption_ShippingRules_Rule) String() string
- type Listing_ShippingOption_ShippingRules_RuleType
- type Listing_ShippingOption_ShippingType
- type Listing_Tax
- type Message
- type Message_MessageType
- type Moderator
- type Moderator_Fee
- type Moderator_Fee_FeeType
- type Moderator_Price
- type Order
- func (*Order) Descriptor() ([]byte, []int)
- func (m *Order) GetBuyerID() *ID
- func (m *Order) GetItems() []*Order_Item
- func (m *Order) GetPayment() *Order_Payment
- func (m *Order) GetShipping() *Order_Shipping
- func (m *Order) GetTimestamp() *google_protobuf.Timestamp
- func (*Order) ProtoMessage()
- func (m *Order) Reset()
- func (m *Order) String() string
- type OrderConfirmation
- type OrderFulfillment
- type OrderState
- type Order_Item
- type Order_Item_Option
- type Order_Item_ShippingOption
- type Order_Payment
- type Order_Payment_Method
- type Order_Shipping
- type Profile
- type Profile_SocialAccount
- type Rating
- type Refund
- type RicardianContract
- func (*RicardianContract) Descriptor() ([]byte, []int)
- func (m *RicardianContract) GetBuyerOrder() *Order
- func (m *RicardianContract) GetBuyerRating() *Rating
- func (m *RicardianContract) GetDispute() *Dispute
- func (m *RicardianContract) GetDisputeResolution() *DisputeResolution
- func (m *RicardianContract) GetRefund() *Refund
- func (m *RicardianContract) GetSignatures() []*Signatures
- func (m *RicardianContract) GetVendorListings() []*Listing
- func (m *RicardianContract) GetVendorOrderConfirmation() *OrderConfirmation
- func (m *RicardianContract) GetVendorOrderFulfillment() *OrderFulfillment
- func (*RicardianContract) ProtoMessage()
- func (m *RicardianContract) Reset()
- func (m *RicardianContract) String() string
- type Signatures
- type Signatures_Section
Constants ¶
This section is empty.
Variables ¶
var CountryCode_name = map[int32]string{}/* 253 elements not displayed */
var CountryCode_value = map[string]int32{}/* 253 elements not displayed */
var Listing_Metadata_ContractType_name = map[int32]string{
0: "UNKNOWN",
1: "PHYSICAL_GOOD",
2: "DIGITAL_GOOD",
3: "SERVICE",
4: "CROWD_FUND",
}
var Listing_Metadata_ContractType_value = map[string]int32{
"UNKNOWN": 0,
"PHYSICAL_GOOD": 1,
"DIGITAL_GOOD": 2,
"SERVICE": 3,
"CROWD_FUND": 4,
}
var Listing_Metadata_ListingType_name = map[int32]string{
0: "NA",
1: "FIXED_PRICE",
2: "AUCTION",
}
var Listing_Metadata_ListingType_value = map[string]int32{
"NA": 0,
"FIXED_PRICE": 1,
"AUCTION": 2,
}
var Listing_ShippingOption_ShippingRules_RuleType_name = map[int32]string{
0: "QUANTITY_DISCOUNT",
1: "FLAT_FEE_QUANTITY_RANGE",
2: "FLAT_FEE_WEIGHT_RANGE",
3: "COMBINED_SHIPPING_ADD",
4: "COMBINED_SHIPPING_SUBTRACT",
}
var Listing_ShippingOption_ShippingRules_RuleType_value = map[string]int32{
"QUANTITY_DISCOUNT": 0,
"FLAT_FEE_QUANTITY_RANGE": 1,
"FLAT_FEE_WEIGHT_RANGE": 2,
"COMBINED_SHIPPING_ADD": 3,
"COMBINED_SHIPPING_SUBTRACT": 4,
}
var Listing_ShippingOption_ShippingType_name = map[int32]string{
0: "LOCAL_PICKUP",
1: "FIXED_PRICE",
}
var Listing_ShippingOption_ShippingType_value = map[string]int32{
"LOCAL_PICKUP": 0,
"FIXED_PRICE": 1,
}
var Message_MessageType_name = map[int32]string{
0: "PING",
1: "MESSAGE",
2: "FOLLOW",
3: "UNFOLLOW",
4: "ORDER",
5: "ORDER_CONFIRMATION",
6: "ORDER_FULFILLMENT",
7: "RATING",
8: "DISPUTE_OPEN",
9: "DISPUTE_CLOSE",
10: "REFUND",
11: "OFFLINE_ACK",
}
var Message_MessageType_value = map[string]int32{
"PING": 0,
"MESSAGE": 1,
"FOLLOW": 2,
"UNFOLLOW": 3,
"ORDER": 4,
"ORDER_CONFIRMATION": 5,
"ORDER_FULFILLMENT": 6,
"RATING": 7,
"DISPUTE_OPEN": 8,
"DISPUTE_CLOSE": 9,
"REFUND": 10,
"OFFLINE_ACK": 11,
}
var Moderator_Fee_FeeType_name = map[int32]string{
0: "FIXED",
1: "PERCENTAGE",
2: "FIXED_PLUS_PERCENTAGE",
}
var Moderator_Fee_FeeType_value = map[string]int32{
"FIXED": 0,
"PERCENTAGE": 1,
"FIXED_PLUS_PERCENTAGE": 2,
}
var OrderState_name = map[int32]string{
0: "PENDING",
1: "CONFIRMED",
2: "FUNDED",
3: "FULFILLED",
4: "COMPLETE",
5: "DISPUTED",
6: "RESOLVED",
7: "REFUNDED",
}
var OrderState_value = map[string]int32{
"PENDING": 0,
"CONFIRMED": 1,
"FUNDED": 2,
"FULFILLED": 3,
"COMPLETE": 4,
"DISPUTED": 5,
"RESOLVED": 6,
"REFUNDED": 7,
}
var Order_Payment_Method_name = map[int32]string{
0: "ADDRESS_REQUEST",
1: "DIRECT",
2: "MODERATED",
}
var Order_Payment_Method_value = map[string]int32{
"ADDRESS_REQUEST": 0,
"DIRECT": 1,
"MODERATED": 2,
}
var Signatures_Section_name = map[int32]string{
0: "NA",
1: "LISTING",
2: "ORDER",
3: "ORDER_ACCEPTANCE",
4: "ORDER_CONFIRMATION",
5: "RATING",
6: "DISPUTE",
7: "DISPUTE_RESOLUTION",
8: "REFUND",
}
var Signatures_Section_value = map[string]int32{
"NA": 0,
"LISTING": 1,
"ORDER": 2,
"ORDER_ACCEPTANCE": 3,
"ORDER_CONFIRMATION": 4,
"RATING": 5,
"DISPUTE": 6,
"DISPUTE_RESOLUTION": 7,
"REFUND": 8,
}
Functions ¶
This section is empty.
Types ¶
type CountryCode ¶
type CountryCode int32
const ( CountryCode_NA CountryCode = 0 CountryCode_ALL CountryCode = 1 CountryCode_NORTH_AMERICA CountryCode = 2 CountryCode_SOUTH_AMERICA CountryCode = 3 CountryCode_EUROPE CountryCode = 4 CountryCode_AFRICA CountryCode = 5 CountryCode_ASIA CountryCode = 6 CountryCode_AFGHANISTAN CountryCode = 7 CountryCode_ALAND_ISLANDS CountryCode = 8 CountryCode_ALBANIA CountryCode = 9 CountryCode_ALGERIA CountryCode = 10 CountryCode_AMERICAN_SAMOA CountryCode = 11 CountryCode_ANDORRA CountryCode = 12 CountryCode_ANGOLA CountryCode = 13 CountryCode_ANGUILLA CountryCode = 14 CountryCode_ANTIGUA CountryCode = 15 CountryCode_ARGENTINA CountryCode = 16 CountryCode_ARMENIA CountryCode = 17 CountryCode_ARUBA CountryCode = 18 CountryCode_AUSTRALIA CountryCode = 19 CountryCode_AUSTRIA CountryCode = 20 CountryCode_AZERBAIJAN CountryCode = 21 CountryCode_BAHAMAS CountryCode = 22 CountryCode_BAHRAIN CountryCode = 23 CountryCode_BANGLADESH CountryCode = 24 CountryCode_BARBADOS CountryCode = 25 CountryCode_BELARUS CountryCode = 26 CountryCode_BELGIUM CountryCode = 27 CountryCode_BELIZE CountryCode = 28 CountryCode_BENIN CountryCode = 29 CountryCode_BERMUDA CountryCode = 30 CountryCode_BHUTAN CountryCode = 31 CountryCode_BOLIVIA CountryCode = 32 CountryCode_BONAIRE_SINT_EUSTATIUS_SABA CountryCode = 33 CountryCode_BOSNIA CountryCode = 34 CountryCode_BOTSWANA CountryCode = 35 CountryCode_BOUVET_ISLAND CountryCode = 36 CountryCode_BRAZIL CountryCode = 37 CountryCode_BRITISH_INDIAN_OCEAN_TERRITORY CountryCode = 38 CountryCode_BRUNEI_DARUSSALAM CountryCode = 39 CountryCode_BULGARIA CountryCode = 40 CountryCode_BURKINA_FASO CountryCode = 41 CountryCode_BURUNDI CountryCode = 42 CountryCode_CABO_VERDE CountryCode = 43 CountryCode_CAMBODIA CountryCode = 44 CountryCode_CAMEROON CountryCode = 45 CountryCode_CANADA CountryCode = 46 CountryCode_CAYMAN_ISLANDS CountryCode = 47 CountryCode_CENTRAL_AFRICAN_REPUBLIC CountryCode = 48 CountryCode_CHAD CountryCode = 49 CountryCode_CHILE CountryCode = 50 CountryCode_CHINA CountryCode = 51 CountryCode_CHRISTMAS_ISLAND CountryCode = 52 CountryCode_COCOS_ISLANDS CountryCode = 53 CountryCode_COLOMBIA CountryCode = 54 CountryCode_COMOROS CountryCode = 55 CountryCode_CONGO_REPUBLIC CountryCode = 56 CountryCode_CONGO CountryCode = 57 CountryCode_COOK_ISLANDS CountryCode = 58 CountryCode_COSTA_RICA CountryCode = 59 CountryCode_COTE_DIVOIRE CountryCode = 60 CountryCode_CROATIA CountryCode = 61 CountryCode_CUBA CountryCode = 62 CountryCode_CURACAO CountryCode = 63 CountryCode_CYPRUS CountryCode = 64 CountryCode_CZECH_REPUBLIC CountryCode = 65 CountryCode_DENMARK CountryCode = 66 CountryCode_DJIBOUTI CountryCode = 67 CountryCode_DOMINICA CountryCode = 68 CountryCode_DOMINICAN_REPUBLIC CountryCode = 69 CountryCode_ECUADOR CountryCode = 70 CountryCode_EGYPT CountryCode = 71 CountryCode_EL_SALVADOR CountryCode = 72 CountryCode_EQUATORIAL_GUINEA CountryCode = 73 CountryCode_ERITREA CountryCode = 74 CountryCode_ESTONIA CountryCode = 75 CountryCode_ETHIOPIA CountryCode = 76 CountryCode_FALKLAND_ISLANDS CountryCode = 77 CountryCode_FAROE_ISLANDS CountryCode = 78 CountryCode_FIJI CountryCode = 79 CountryCode_FINLAND CountryCode = 80 CountryCode_FRANCE CountryCode = 81 CountryCode_FRENCH_GUIANA CountryCode = 82 CountryCode_FRENCH_POLYNESIA CountryCode = 83 CountryCode_FRENCH_SOUTHERN_TERRITORIES CountryCode = 84 CountryCode_GABON CountryCode = 85 CountryCode_GAMBIA CountryCode = 86 CountryCode_GEORGIA CountryCode = 87 CountryCode_GERMANY CountryCode = 88 CountryCode_GHANA CountryCode = 89 CountryCode_GIBRALTAR CountryCode = 90 CountryCode_GREECE CountryCode = 91 CountryCode_GREENLAND CountryCode = 92 CountryCode_GRENADA CountryCode = 93 CountryCode_GUADELOUPE CountryCode = 94 CountryCode_GUAM CountryCode = 95 CountryCode_GUATEMALA CountryCode = 96 CountryCode_GUERNSEY CountryCode = 97 CountryCode_GUINEA CountryCode = 98 CountryCode_GUINEA_BISSAU CountryCode = 99 CountryCode_GUYANA CountryCode = 100 CountryCode_HAITI CountryCode = 101 CountryCode_HEARD_ISLAND CountryCode = 102 CountryCode_HOLY_SEE CountryCode = 103 CountryCode_HONDURAS CountryCode = 104 CountryCode_HONG_KONG CountryCode = 105 CountryCode_HUNGARY CountryCode = 106 CountryCode_ICELAND CountryCode = 107 CountryCode_INDIA CountryCode = 108 CountryCode_INDONESIA CountryCode = 109 CountryCode_IRAN CountryCode = 110 CountryCode_IRAQ CountryCode = 111 CountryCode_IRELAND CountryCode = 112 CountryCode_ISLE_OF_MAN CountryCode = 113 CountryCode_ISRAEL CountryCode = 114 CountryCode_ITALY CountryCode = 115 CountryCode_JAMAICA CountryCode = 116 CountryCode_JAPAN CountryCode = 117 CountryCode_JERSEY CountryCode = 118 CountryCode_JORDAN CountryCode = 119 CountryCode_KAZAKHSTAN CountryCode = 120 CountryCode_KENYA CountryCode = 121 CountryCode_KIRIBATI CountryCode = 122 CountryCode_NORTH_KOREA CountryCode = 123 CountryCode_SOUTH_KOREA CountryCode = 124 CountryCode_KUWAIT CountryCode = 125 CountryCode_KYRGYZSTAN CountryCode = 126 CountryCode_LAO CountryCode = 127 CountryCode_LATVIA CountryCode = 128 CountryCode_LEBANON CountryCode = 129 CountryCode_LESOTHO CountryCode = 130 CountryCode_LIBERIA CountryCode = 131 CountryCode_LIBYA CountryCode = 132 CountryCode_LIECHTENSTEIN CountryCode = 133 CountryCode_LITHUANIA CountryCode = 134 CountryCode_LUXEMBOURG CountryCode = 135 CountryCode_MACAO CountryCode = 136 CountryCode_MACEDONIA CountryCode = 137 CountryCode_MADAGASCAR CountryCode = 138 CountryCode_MALAWI CountryCode = 139 CountryCode_MALAYSIA CountryCode = 140 CountryCode_MALDIVES CountryCode = 141 CountryCode_MALI CountryCode = 142 CountryCode_MALTA CountryCode = 143 CountryCode_MARSHALL_ISLANDS CountryCode = 144 CountryCode_MARTINIQUE CountryCode = 145 CountryCode_MAURITANIA CountryCode = 146 CountryCode_MAURITIUS CountryCode = 147 CountryCode_MAYOTTE CountryCode = 148 CountryCode_MEXICO CountryCode = 149 CountryCode_MICRONESIA CountryCode = 150 CountryCode_MOLDOVA CountryCode = 151 CountryCode_MONACO CountryCode = 152 CountryCode_MONGOLIA CountryCode = 153 CountryCode_MONTENEGRO CountryCode = 154 CountryCode_MONTSERRAT CountryCode = 155 CountryCode_MOROCCO CountryCode = 156 CountryCode_MOZAMBIQUE CountryCode = 157 CountryCode_MYANMAR CountryCode = 158 CountryCode_NAMIBIA CountryCode = 159 CountryCode_NAURU CountryCode = 160 CountryCode_NEPAL CountryCode = 161 CountryCode_NETHERLANDS CountryCode = 162 CountryCode_NEW_CALEDONIA CountryCode = 163 CountryCode_NEW_ZEALAND CountryCode = 164 CountryCode_NICARAGUA CountryCode = 165 CountryCode_NIGER CountryCode = 166 CountryCode_NIGERIA CountryCode = 167 CountryCode_NIUE CountryCode = 168 CountryCode_NORFOLK_ISLAND CountryCode = 169 CountryCode_NORTHERN_MARIANA_ISLANDS CountryCode = 170 CountryCode_NORWAY CountryCode = 171 CountryCode_OMAN CountryCode = 172 CountryCode_PAKISTAN CountryCode = 173 CountryCode_PALAU CountryCode = 174 CountryCode_PANAMA CountryCode = 175 CountryCode_PAPUA_NEW_GUINEA CountryCode = 176 CountryCode_PARAGUAY CountryCode = 177 CountryCode_PERU CountryCode = 178 CountryCode_PHILIPPINES CountryCode = 179 CountryCode_PITCAIRN CountryCode = 180 CountryCode_POLAND CountryCode = 181 CountryCode_PORTUGAL CountryCode = 182 CountryCode_PUERTO_RICO CountryCode = 183 CountryCode_QATAR CountryCode = 184 CountryCode_REUNION CountryCode = 185 CountryCode_ROMANIA CountryCode = 186 CountryCode_RUSSIA CountryCode = 187 CountryCode_RWANDA CountryCode = 188 CountryCode_SAINT_BARTHELEMY CountryCode = 189 CountryCode_SAINT_HELENA CountryCode = 190 CountryCode_SAINT_KITTS CountryCode = 191 CountryCode_SAINT_LUCIA CountryCode = 192 CountryCode_SAINT_MARTIN CountryCode = 193 CountryCode_SAINT_PIERRE CountryCode = 194 CountryCode_SAINT_VINCENT CountryCode = 195 CountryCode_SAMOA CountryCode = 196 CountryCode_SAN_MARINO CountryCode = 197 CountryCode_SAO_TOME CountryCode = 198 CountryCode_SAUDI_ARABIA CountryCode = 199 CountryCode_SENEGAL CountryCode = 200 CountryCode_SERBIA CountryCode = 201 CountryCode_SEYCHELLES CountryCode = 202 CountryCode_SIERRA_LEONE CountryCode = 203 CountryCode_SINGAPORE CountryCode = 204 CountryCode_SINT_MAARTEN CountryCode = 205 CountryCode_SUCRE CountryCode = 206 CountryCode_SLOVAKIA CountryCode = 207 CountryCode_SLOVENIA CountryCode = 208 CountryCode_SOLOMON_ISLANDS CountryCode = 209 CountryCode_SOMALIA CountryCode = 210 CountryCode_SOUTH_AFRICA CountryCode = 211 CountryCode_SOUTH_SUDAN CountryCode = 212 CountryCode_SPAIN CountryCode = 213 CountryCode_SRI_LANKA CountryCode = 214 CountryCode_SUDAN CountryCode = 215 CountryCode_SURINAME CountryCode = 216 CountryCode_SVALBARD CountryCode = 217 CountryCode_SWAZILAND CountryCode = 218 CountryCode_SWEDEN CountryCode = 219 CountryCode_SWITZERLAND CountryCode = 220 CountryCode_SYRIAN_ARAB_REPUBLIC CountryCode = 221 CountryCode_TAIWAN CountryCode = 222 CountryCode_TAJIKISTAN CountryCode = 223 CountryCode_TANZANIA CountryCode = 224 CountryCode_THAILAND CountryCode = 225 CountryCode_TIMOR_LESTE CountryCode = 226 CountryCode_TOGO CountryCode = 227 CountryCode_TOKELAU CountryCode = 228 CountryCode_TONGA CountryCode = 229 CountryCode_TRINIDAD CountryCode = 230 CountryCode_TUNISIA CountryCode = 231 CountryCode_TURKEY CountryCode = 232 CountryCode_TURKMENISTAN CountryCode = 233 CountryCode_TURKS_AND_CAICOS_ISLANDS CountryCode = 234 CountryCode_TUVALU CountryCode = 235 CountryCode_UGANDA CountryCode = 236 CountryCode_UKRAINE CountryCode = 237 CountryCode_UNITED_ARAB_EMIRATES CountryCode = 238 CountryCode_UNITED_KINGDOM CountryCode = 239 CountryCode_UNITED_STATES CountryCode = 240 CountryCode_URUGUAY CountryCode = 241 CountryCode_UZBEKISTAN CountryCode = 242 CountryCode_VANUATU CountryCode = 243 CountryCode_VENEZUELA CountryCode = 244 CountryCode_VIETNAM CountryCode = 245 CountryCode_VIRGIN_ISLANDS_BRITISH CountryCode = 246 CountryCode_VIRGIN_ISLANDS_US CountryCode = 247 CountryCode_WALLIS_AND_FUTUNA CountryCode = 248 CountryCode_WESTERN_SAHARA CountryCode = 249 CountryCode_YEMEN CountryCode = 250 CountryCode_ZAMBIA CountryCode = 251 CountryCode_ZIMBABWE CountryCode = 252 )
func (CountryCode) EnumDescriptor ¶
func (CountryCode) EnumDescriptor() ([]byte, []int)
func (CountryCode) String ¶
func (x CountryCode) String() string
type Dispute ¶
type Dispute struct { }
func (*Dispute) Descriptor ¶
func (*Dispute) ProtoMessage ¶
func (*Dispute) ProtoMessage()
type DisputeResolution ¶
type DisputeResolution struct { }
func (*DisputeResolution) Descriptor ¶
func (*DisputeResolution) Descriptor() ([]byte, []int)
func (*DisputeResolution) ProtoMessage ¶
func (*DisputeResolution) ProtoMessage()
func (*DisputeResolution) Reset ¶
func (m *DisputeResolution) Reset()
func (*DisputeResolution) String ¶
func (m *DisputeResolution) String() string
type Envelope ¶
type Envelope struct { Message *Message `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` PeerID string `protobuf:"bytes,2,opt,name=peerID" json:"peerID,omitempty"` Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` }
func (*Envelope) Descriptor ¶
func (*Envelope) GetMessage ¶
func (*Envelope) ProtoMessage ¶
func (*Envelope) ProtoMessage()
type ID ¶
type ID struct { Guid string `protobuf:"bytes,1,opt,name=guid" json:"guid,omitempty"` BlockchainID string `protobuf:"bytes,2,opt,name=blockchainID" json:"blockchainID,omitempty"` Pubkeys *ID_Pubkeys `protobuf:"bytes,3,opt,name=pubkeys" json:"pubkeys,omitempty"` }
func (*ID) Descriptor ¶
func (*ID) GetPubkeys ¶
func (m *ID) GetPubkeys() *ID_Pubkeys
func (*ID) ProtoMessage ¶
func (*ID) ProtoMessage()
type ID_Pubkeys ¶
type ID_Pubkeys struct { Guid []byte `protobuf:"bytes,1,opt,name=guid,proto3" json:"guid,omitempty"` Bitcoin []byte `protobuf:"bytes,2,opt,name=bitcoin,proto3" json:"bitcoin,omitempty"` }
func (*ID_Pubkeys) Descriptor ¶
func (*ID_Pubkeys) Descriptor() ([]byte, []int)
func (*ID_Pubkeys) ProtoMessage ¶
func (*ID_Pubkeys) ProtoMessage()
func (*ID_Pubkeys) Reset ¶
func (m *ID_Pubkeys) Reset()
func (*ID_Pubkeys) String ¶
func (m *ID_Pubkeys) String() string
type Inventory ¶ added in v0.1.1
type Inventory struct { Item string `protobuf:"bytes,1,opt,name=item" json:"item,omitempty"` Count uint64 `protobuf:"varint,2,opt,name=count" json:"count,omitempty"` }
func (*Inventory) Descriptor ¶ added in v0.1.1
func (*Inventory) ProtoMessage ¶ added in v0.1.1
func (*Inventory) ProtoMessage()
type Listing ¶
type Listing struct { Slug string `protobuf:"bytes,1,opt,name=slug" json:"slug,omitempty"` VendorID *ID `protobuf:"bytes,2,opt,name=vendorID" json:"vendorID,omitempty"` Metadata *Listing_Metadata `protobuf:"bytes,3,opt,name=metadata" json:"metadata,omitempty"` Item *Listing_Item `protobuf:"bytes,4,opt,name=item" json:"item,omitempty"` ShippingOptions []*Listing_ShippingOption `protobuf:"bytes,5,rep,name=shippingOptions" json:"shippingOptions,omitempty"` Taxes []*Listing_Tax `protobuf:"bytes,6,rep,name=taxes" json:"taxes,omitempty"` Coupons []*Listing_Coupon `protobuf:"bytes,7,rep,name=coupons" json:"coupons,omitempty"` Moderators []string `protobuf:"bytes,8,rep,name=moderators" json:"moderators,omitempty"` TermsAndConditions string `protobuf:"bytes,9,opt,name=termsAndConditions" json:"termsAndConditions,omitempty"` RefundPolicy string `protobuf:"bytes,10,opt,name=refundPolicy" json:"refundPolicy,omitempty"` }
func (*Listing) Descriptor ¶
func (*Listing) GetCoupons ¶
func (m *Listing) GetCoupons() []*Listing_Coupon
func (*Listing) GetItem ¶
func (m *Listing) GetItem() *Listing_Item
func (*Listing) GetMetadata ¶
func (m *Listing) GetMetadata() *Listing_Metadata
func (*Listing) GetShippingOptions ¶
func (m *Listing) GetShippingOptions() []*Listing_ShippingOption
func (*Listing) GetTaxes ¶
func (m *Listing) GetTaxes() []*Listing_Tax
func (*Listing) GetVendorID ¶
func (*Listing) ProtoMessage ¶
func (*Listing) ProtoMessage()
type ListingReqApi ¶ added in v0.1.1
type ListingReqApi struct { Listing *Listing `protobuf:"bytes,1,opt,name=listing" json:"listing,omitempty"` Inventory []*Inventory `protobuf:"bytes,2,rep,name=inventory" json:"inventory,omitempty"` CurrentSlug string `protobuf:"bytes,3,opt,name=currentSlug" json:"currentSlug,omitempty"` }
func (*ListingReqApi) Descriptor ¶ added in v0.1.1
func (*ListingReqApi) Descriptor() ([]byte, []int)
func (*ListingReqApi) GetInventory ¶ added in v0.1.1
func (m *ListingReqApi) GetInventory() []*Inventory
func (*ListingReqApi) GetListing ¶ added in v0.1.1
func (m *ListingReqApi) GetListing() *Listing
func (*ListingReqApi) ProtoMessage ¶ added in v0.1.1
func (*ListingReqApi) ProtoMessage()
func (*ListingReqApi) Reset ¶ added in v0.1.1
func (m *ListingReqApi) Reset()
func (*ListingReqApi) String ¶ added in v0.1.1
func (m *ListingReqApi) String() string
type ListingRespApi ¶ added in v0.1.1
type ListingRespApi struct { Contract *RicardianContract `protobuf:"bytes,1,opt,name=contract" json:"contract,omitempty"` Inventory []*Inventory `protobuf:"bytes,2,rep,name=inventory" json:"inventory,omitempty"` }
func (*ListingRespApi) Descriptor ¶ added in v0.1.1
func (*ListingRespApi) Descriptor() ([]byte, []int)
func (*ListingRespApi) GetContract ¶ added in v0.1.1
func (m *ListingRespApi) GetContract() *RicardianContract
func (*ListingRespApi) GetInventory ¶ added in v0.1.1
func (m *ListingRespApi) GetInventory() []*Inventory
func (*ListingRespApi) ProtoMessage ¶ added in v0.1.1
func (*ListingRespApi) ProtoMessage()
func (*ListingRespApi) Reset ¶ added in v0.1.1
func (m *ListingRespApi) Reset()
func (*ListingRespApi) String ¶ added in v0.1.1
func (m *ListingRespApi) String() string
type Listing_Coupon ¶
type Listing_Coupon struct { Title string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` Hash string `protobuf:"bytes,2,opt,name=hash" json:"hash,omitempty"` PercentDiscount float32 `protobuf:"fixed32,3,opt,name=percentDiscount" json:"percentDiscount,omitempty"` PriceDiscount *Listing_Price `protobuf:"bytes,4,opt,name=priceDiscount" json:"priceDiscount,omitempty"` }
func (*Listing_Coupon) Descriptor ¶
func (*Listing_Coupon) Descriptor() ([]byte, []int)
func (*Listing_Coupon) GetPriceDiscount ¶ added in v0.1.1
func (m *Listing_Coupon) GetPriceDiscount() *Listing_Price
func (*Listing_Coupon) ProtoMessage ¶
func (*Listing_Coupon) ProtoMessage()
func (*Listing_Coupon) Reset ¶
func (m *Listing_Coupon) Reset()
func (*Listing_Coupon) String ¶
func (m *Listing_Coupon) String() string
type Listing_Item ¶
type Listing_Item struct { Title string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` ProcessingTime string `protobuf:"bytes,3,opt,name=processingTime" json:"processingTime,omitempty"` Price *Listing_Price `protobuf:"bytes,4,opt,name=price" json:"price,omitempty"` Nsfw bool `protobuf:"varint,5,opt,name=nsfw" json:"nsfw,omitempty"` Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` Images []*Listing_Item_Image `protobuf:"bytes,7,rep,name=images" json:"images,omitempty"` Categories []string `protobuf:"bytes,8,rep,name=categories" json:"categories,omitempty"` Sku string `protobuf:"bytes,9,opt,name=sku" json:"sku,omitempty"` Grams float32 `protobuf:"fixed32,10,opt,name=grams" json:"grams,omitempty"` Condition string `protobuf:"bytes,11,opt,name=condition" json:"condition,omitempty"` Options []*Listing_Item_Option `protobuf:"bytes,12,rep,name=options" json:"options,omitempty"` }
func (*Listing_Item) Descriptor ¶
func (*Listing_Item) Descriptor() ([]byte, []int)
func (*Listing_Item) GetImages ¶
func (m *Listing_Item) GetImages() []*Listing_Item_Image
func (*Listing_Item) GetOptions ¶
func (m *Listing_Item) GetOptions() []*Listing_Item_Option
func (*Listing_Item) GetPrice ¶
func (m *Listing_Item) GetPrice() *Listing_Price
func (*Listing_Item) ProtoMessage ¶
func (*Listing_Item) ProtoMessage()
func (*Listing_Item) Reset ¶
func (m *Listing_Item) Reset()
func (*Listing_Item) String ¶
func (m *Listing_Item) String() string
type Listing_Item_Image ¶
type Listing_Item_Image struct { Hash string `protobuf:"bytes,1,opt,name=hash" json:"hash,omitempty"` FileName string `protobuf:"bytes,2,opt,name=fileName" json:"fileName,omitempty"` }
func (*Listing_Item_Image) Descriptor ¶
func (*Listing_Item_Image) Descriptor() ([]byte, []int)
func (*Listing_Item_Image) ProtoMessage ¶
func (*Listing_Item_Image) ProtoMessage()
func (*Listing_Item_Image) Reset ¶
func (m *Listing_Item_Image) Reset()
func (*Listing_Item_Image) String ¶
func (m *Listing_Item_Image) String() string
type Listing_Item_Option ¶
type Listing_Item_Option struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` Variants []*Listing_Item_Option_Variants `protobuf:"bytes,3,rep,name=variants" json:"variants,omitempty"` }
func (*Listing_Item_Option) Descriptor ¶
func (*Listing_Item_Option) Descriptor() ([]byte, []int)
func (*Listing_Item_Option) GetVariants ¶
func (m *Listing_Item_Option) GetVariants() []*Listing_Item_Option_Variants
func (*Listing_Item_Option) ProtoMessage ¶
func (*Listing_Item_Option) ProtoMessage()
func (*Listing_Item_Option) Reset ¶
func (m *Listing_Item_Option) Reset()
func (*Listing_Item_Option) String ¶
func (m *Listing_Item_Option) String() string
type Listing_Item_Option_Variants ¶
type Listing_Item_Option_Variants struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Image *Listing_Item_Image `protobuf:"bytes,2,opt,name=image" json:"image,omitempty"` PriceModifier *Listing_Price `protobuf:"bytes,3,opt,name=priceModifier" json:"priceModifier,omitempty"` }
func (*Listing_Item_Option_Variants) Descriptor ¶
func (*Listing_Item_Option_Variants) Descriptor() ([]byte, []int)
func (*Listing_Item_Option_Variants) GetImage ¶
func (m *Listing_Item_Option_Variants) GetImage() *Listing_Item_Image
func (*Listing_Item_Option_Variants) GetPriceModifier ¶
func (m *Listing_Item_Option_Variants) GetPriceModifier() *Listing_Price
func (*Listing_Item_Option_Variants) ProtoMessage ¶
func (*Listing_Item_Option_Variants) ProtoMessage()
func (*Listing_Item_Option_Variants) Reset ¶
func (m *Listing_Item_Option_Variants) Reset()
func (*Listing_Item_Option_Variants) String ¶
func (m *Listing_Item_Option_Variants) String() string
type Listing_Metadata ¶
type Listing_Metadata struct { Version uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` ContractType Listing_Metadata_ContractType `protobuf:"varint,2,opt,name=contractType,enum=Listing_Metadata_ContractType" json:"contractType,omitempty"` ListingType Listing_Metadata_ListingType `protobuf:"varint,3,opt,name=listingType,enum=Listing_Metadata_ListingType" json:"listingType,omitempty"` Expiry *google_protobuf.Timestamp `protobuf:"bytes,4,opt,name=expiry" json:"expiry,omitempty"` AcceptedCryptoCurrency string `protobuf:"bytes,5,opt,name=acceptedCryptoCurrency" json:"acceptedCryptoCurrency,omitempty"` }
func (*Listing_Metadata) Descriptor ¶
func (*Listing_Metadata) Descriptor() ([]byte, []int)
func (*Listing_Metadata) GetExpiry ¶ added in v0.1.1
func (m *Listing_Metadata) GetExpiry() *google_protobuf.Timestamp
func (*Listing_Metadata) ProtoMessage ¶
func (*Listing_Metadata) ProtoMessage()
func (*Listing_Metadata) Reset ¶
func (m *Listing_Metadata) Reset()
func (*Listing_Metadata) String ¶
func (m *Listing_Metadata) String() string
type Listing_Metadata_ContractType ¶
type Listing_Metadata_ContractType int32
const ( Listing_Metadata_UNKNOWN Listing_Metadata_ContractType = 0 Listing_Metadata_PHYSICAL_GOOD Listing_Metadata_ContractType = 1 Listing_Metadata_DIGITAL_GOOD Listing_Metadata_ContractType = 2 Listing_Metadata_SERVICE Listing_Metadata_ContractType = 3 Listing_Metadata_CROWD_FUND Listing_Metadata_ContractType = 4 )
func (Listing_Metadata_ContractType) EnumDescriptor ¶
func (Listing_Metadata_ContractType) EnumDescriptor() ([]byte, []int)
func (Listing_Metadata_ContractType) String ¶
func (x Listing_Metadata_ContractType) String() string
type Listing_Metadata_ListingType ¶
type Listing_Metadata_ListingType int32
const ( Listing_Metadata_NA Listing_Metadata_ListingType = 0 Listing_Metadata_FIXED_PRICE Listing_Metadata_ListingType = 1 Listing_Metadata_AUCTION Listing_Metadata_ListingType = 2 )
func (Listing_Metadata_ListingType) EnumDescriptor ¶
func (Listing_Metadata_ListingType) EnumDescriptor() ([]byte, []int)
func (Listing_Metadata_ListingType) String ¶
func (x Listing_Metadata_ListingType) String() string
type Listing_Price ¶
type Listing_Price struct { CurrencyCode string `protobuf:"bytes,1,opt,name=currencyCode" json:"currencyCode,omitempty"` Amount uint64 `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"` }
func (*Listing_Price) Descriptor ¶
func (*Listing_Price) Descriptor() ([]byte, []int)
func (*Listing_Price) ProtoMessage ¶
func (*Listing_Price) ProtoMessage()
func (*Listing_Price) Reset ¶
func (m *Listing_Price) Reset()
func (*Listing_Price) String ¶
func (m *Listing_Price) String() string
type Listing_ShippingOption ¶
type Listing_ShippingOption struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Type Listing_ShippingOption_ShippingType `protobuf:"varint,2,opt,name=type,enum=Listing_ShippingOption_ShippingType" json:"type,omitempty"` Regions []CountryCode `protobuf:"varint,3,rep,name=regions,enum=CountryCode" json:"regions,omitempty"` ShippingRules *Listing_ShippingOption_ShippingRules `protobuf:"bytes,4,opt,name=shippingRules" json:"shippingRules,omitempty"` Services []*Listing_ShippingOption_Service `protobuf:"bytes,5,rep,name=services" json:"services,omitempty"` }
func (*Listing_ShippingOption) Descriptor ¶
func (*Listing_ShippingOption) Descriptor() ([]byte, []int)
func (*Listing_ShippingOption) GetServices ¶ added in v0.1.1
func (m *Listing_ShippingOption) GetServices() []*Listing_ShippingOption_Service
func (*Listing_ShippingOption) GetShippingRules ¶ added in v0.1.1
func (m *Listing_ShippingOption) GetShippingRules() *Listing_ShippingOption_ShippingRules
func (*Listing_ShippingOption) ProtoMessage ¶
func (*Listing_ShippingOption) ProtoMessage()
func (*Listing_ShippingOption) Reset ¶
func (m *Listing_ShippingOption) Reset()
func (*Listing_ShippingOption) String ¶
func (m *Listing_ShippingOption) String() string
type Listing_ShippingOption_Service ¶ added in v0.1.1
type Listing_ShippingOption_Service struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Price *Listing_Price `protobuf:"bytes,2,opt,name=price" json:"price,omitempty"` EstimatedDelivery string `protobuf:"bytes,3,opt,name=estimatedDelivery" json:"estimatedDelivery,omitempty"` }
func (*Listing_ShippingOption_Service) Descriptor ¶ added in v0.1.1
func (*Listing_ShippingOption_Service) Descriptor() ([]byte, []int)
func (*Listing_ShippingOption_Service) GetPrice ¶ added in v0.1.1
func (m *Listing_ShippingOption_Service) GetPrice() *Listing_Price
func (*Listing_ShippingOption_Service) ProtoMessage ¶ added in v0.1.1
func (*Listing_ShippingOption_Service) ProtoMessage()
func (*Listing_ShippingOption_Service) Reset ¶ added in v0.1.1
func (m *Listing_ShippingOption_Service) Reset()
func (*Listing_ShippingOption_Service) String ¶ added in v0.1.1
func (m *Listing_ShippingOption_Service) String() string
type Listing_ShippingOption_ShippingRules ¶ added in v0.1.1
type Listing_ShippingOption_ShippingRules struct { RuleType Listing_ShippingOption_ShippingRules_RuleType `protobuf:"varint,1,opt,name=ruleType,enum=Listing_ShippingOption_ShippingRules_RuleType" json:"ruleType,omitempty"` Rules []*Listing_ShippingOption_ShippingRules_Rule `protobuf:"bytes,2,rep,name=rules" json:"rules,omitempty"` }
func (*Listing_ShippingOption_ShippingRules) Descriptor ¶ added in v0.1.1
func (*Listing_ShippingOption_ShippingRules) Descriptor() ([]byte, []int)
func (*Listing_ShippingOption_ShippingRules) GetRules ¶ added in v0.1.1
func (m *Listing_ShippingOption_ShippingRules) GetRules() []*Listing_ShippingOption_ShippingRules_Rule
func (*Listing_ShippingOption_ShippingRules) ProtoMessage ¶ added in v0.1.1
func (*Listing_ShippingOption_ShippingRules) ProtoMessage()
func (*Listing_ShippingOption_ShippingRules) Reset ¶ added in v0.1.1
func (m *Listing_ShippingOption_ShippingRules) Reset()
func (*Listing_ShippingOption_ShippingRules) String ¶ added in v0.1.1
func (m *Listing_ShippingOption_ShippingRules) String() string
type Listing_ShippingOption_ShippingRules_Rule ¶ added in v0.1.1
type Listing_ShippingOption_ShippingRules_Rule struct { MinRange uint32 `protobuf:"varint,1,opt,name=minRange" json:"minRange,omitempty"` MaxRange uint32 `protobuf:"varint,2,opt,name=maxRange" json:"maxRange,omitempty"` Price *Listing_Price `protobuf:"bytes,3,opt,name=price" json:"price,omitempty"` }
func (*Listing_ShippingOption_ShippingRules_Rule) Descriptor ¶ added in v0.1.1
func (*Listing_ShippingOption_ShippingRules_Rule) Descriptor() ([]byte, []int)
func (*Listing_ShippingOption_ShippingRules_Rule) GetPrice ¶ added in v0.1.1
func (m *Listing_ShippingOption_ShippingRules_Rule) GetPrice() *Listing_Price
func (*Listing_ShippingOption_ShippingRules_Rule) ProtoMessage ¶ added in v0.1.1
func (*Listing_ShippingOption_ShippingRules_Rule) ProtoMessage()
func (*Listing_ShippingOption_ShippingRules_Rule) Reset ¶ added in v0.1.1
func (m *Listing_ShippingOption_ShippingRules_Rule) Reset()
func (*Listing_ShippingOption_ShippingRules_Rule) String ¶ added in v0.1.1
func (m *Listing_ShippingOption_ShippingRules_Rule) String() string
type Listing_ShippingOption_ShippingRules_RuleType ¶ added in v0.1.1
type Listing_ShippingOption_ShippingRules_RuleType int32
const ( Listing_ShippingOption_ShippingRules_QUANTITY_DISCOUNT Listing_ShippingOption_ShippingRules_RuleType = 0 Listing_ShippingOption_ShippingRules_FLAT_FEE_QUANTITY_RANGE Listing_ShippingOption_ShippingRules_RuleType = 1 Listing_ShippingOption_ShippingRules_FLAT_FEE_WEIGHT_RANGE Listing_ShippingOption_ShippingRules_RuleType = 2 Listing_ShippingOption_ShippingRules_COMBINED_SHIPPING_ADD Listing_ShippingOption_ShippingRules_RuleType = 3 Listing_ShippingOption_ShippingRules_COMBINED_SHIPPING_SUBTRACT Listing_ShippingOption_ShippingRules_RuleType = 4 )
func (Listing_ShippingOption_ShippingRules_RuleType) EnumDescriptor ¶ added in v0.1.1
func (Listing_ShippingOption_ShippingRules_RuleType) EnumDescriptor() ([]byte, []int)
func (Listing_ShippingOption_ShippingRules_RuleType) String ¶ added in v0.1.1
func (x Listing_ShippingOption_ShippingRules_RuleType) String() string
type Listing_ShippingOption_ShippingType ¶
type Listing_ShippingOption_ShippingType int32
const ( Listing_ShippingOption_LOCAL_PICKUP Listing_ShippingOption_ShippingType = 0 Listing_ShippingOption_FIXED_PRICE Listing_ShippingOption_ShippingType = 1 )
func (Listing_ShippingOption_ShippingType) EnumDescriptor ¶
func (Listing_ShippingOption_ShippingType) EnumDescriptor() ([]byte, []int)
func (Listing_ShippingOption_ShippingType) String ¶
func (x Listing_ShippingOption_ShippingType) String() string
type Listing_Tax ¶
type Listing_Tax struct { TaxType string `protobuf:"bytes,1,opt,name=taxType" json:"taxType,omitempty"` TaxRegions []CountryCode `protobuf:"varint,2,rep,name=taxRegions,enum=CountryCode" json:"taxRegions,omitempty"` TaxShipping bool `protobuf:"varint,3,opt,name=taxShipping" json:"taxShipping,omitempty"` Percentage float32 `protobuf:"fixed32,4,opt,name=percentage" json:"percentage,omitempty"` }
func (*Listing_Tax) Descriptor ¶
func (*Listing_Tax) Descriptor() ([]byte, []int)
func (*Listing_Tax) ProtoMessage ¶
func (*Listing_Tax) ProtoMessage()
func (*Listing_Tax) Reset ¶
func (m *Listing_Tax) Reset()
func (*Listing_Tax) String ¶
func (m *Listing_Tax) String() string
type Message ¶
type Message struct { MessageType Message_MessageType `protobuf:"varint,1,opt,name=messageType,enum=Message_MessageType" json:"messageType,omitempty"` Payload *google_protobuf.Any `protobuf:"bytes,2,opt,name=payload" json:"payload,omitempty"` }
func (*Message) Descriptor ¶
func (*Message) GetPayload ¶
func (m *Message) GetPayload() *google_protobuf.Any
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
type Message_MessageType ¶
type Message_MessageType int32
const ( Message_PING Message_MessageType = 0 Message_MESSAGE Message_MessageType = 1 Message_FOLLOW Message_MessageType = 2 Message_UNFOLLOW Message_MessageType = 3 Message_ORDER Message_MessageType = 4 Message_ORDER_CONFIRMATION Message_MessageType = 5 Message_ORDER_FULFILLMENT Message_MessageType = 6 Message_RATING Message_MessageType = 7 Message_DISPUTE_OPEN Message_MessageType = 8 Message_DISPUTE_CLOSE Message_MessageType = 9 Message_REFUND Message_MessageType = 10 Message_OFFLINE_ACK Message_MessageType = 11 )
func (Message_MessageType) EnumDescriptor ¶
func (Message_MessageType) EnumDescriptor() ([]byte, []int)
func (Message_MessageType) String ¶
func (x Message_MessageType) String() string
type Moderator ¶ added in v0.1.1
type Moderator struct { Description string `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"` TermsAndConditions string `protobuf:"bytes,2,opt,name=termsAndConditions" json:"termsAndConditions,omitempty"` Languages []string `protobuf:"bytes,3,rep,name=languages" json:"languages,omitempty"` Fee *Moderator_Fee `protobuf:"bytes,4,opt,name=fee" json:"fee,omitempty"` PubKey []byte `protobuf:"bytes,5,opt,name=pubKey,proto3" json:"pubKey,omitempty"` }
func (*Moderator) Descriptor ¶ added in v0.1.1
func (*Moderator) GetFee ¶ added in v0.1.1
func (m *Moderator) GetFee() *Moderator_Fee
func (*Moderator) ProtoMessage ¶ added in v0.1.1
func (*Moderator) ProtoMessage()
type Moderator_Fee ¶ added in v0.1.1
type Moderator_Fee struct { FixedFee *Moderator_Price `protobuf:"bytes,1,opt,name=fixedFee" json:"fixedFee,omitempty"` Percentage float32 `protobuf:"fixed32,2,opt,name=percentage" json:"percentage,omitempty"` FeeType Moderator_Fee_FeeType `protobuf:"varint,3,opt,name=feeType,enum=Moderator_Fee_FeeType" json:"feeType,omitempty"` }
func (*Moderator_Fee) Descriptor ¶ added in v0.1.1
func (*Moderator_Fee) Descriptor() ([]byte, []int)
func (*Moderator_Fee) GetFixedFee ¶ added in v0.1.1
func (m *Moderator_Fee) GetFixedFee() *Moderator_Price
func (*Moderator_Fee) ProtoMessage ¶ added in v0.1.1
func (*Moderator_Fee) ProtoMessage()
func (*Moderator_Fee) Reset ¶ added in v0.1.1
func (m *Moderator_Fee) Reset()
func (*Moderator_Fee) String ¶ added in v0.1.1
func (m *Moderator_Fee) String() string
type Moderator_Fee_FeeType ¶ added in v0.1.1
type Moderator_Fee_FeeType int32
const ( Moderator_Fee_FIXED Moderator_Fee_FeeType = 0 Moderator_Fee_PERCENTAGE Moderator_Fee_FeeType = 1 Moderator_Fee_FIXED_PLUS_PERCENTAGE Moderator_Fee_FeeType = 2 )
func (Moderator_Fee_FeeType) EnumDescriptor ¶ added in v0.1.1
func (Moderator_Fee_FeeType) EnumDescriptor() ([]byte, []int)
func (Moderator_Fee_FeeType) String ¶ added in v0.1.1
func (x Moderator_Fee_FeeType) String() string
type Moderator_Price ¶ added in v0.1.1
type Moderator_Price struct { CurrencyCode string `protobuf:"bytes,1,opt,name=currencyCode" json:"currencyCode,omitempty"` Amount uint64 `protobuf:"varint,2,opt,name=amount" json:"amount,omitempty"` }
func (*Moderator_Price) Descriptor ¶ added in v0.1.1
func (*Moderator_Price) Descriptor() ([]byte, []int)
func (*Moderator_Price) ProtoMessage ¶ added in v0.1.1
func (*Moderator_Price) ProtoMessage()
func (*Moderator_Price) Reset ¶ added in v0.1.1
func (m *Moderator_Price) Reset()
func (*Moderator_Price) String ¶ added in v0.1.1
func (m *Moderator_Price) String() string
type Order ¶
type Order struct { RefundAddress string `protobuf:"bytes,1,opt,name=refundAddress" json:"refundAddress,omitempty"` Shipping *Order_Shipping `protobuf:"bytes,2,opt,name=shipping" json:"shipping,omitempty"` BuyerID *ID `protobuf:"bytes,3,opt,name=buyerID" json:"buyerID,omitempty"` Timestamp *google_protobuf.Timestamp `protobuf:"bytes,4,opt,name=timestamp" json:"timestamp,omitempty"` Items []*Order_Item `protobuf:"bytes,5,rep,name=items" json:"items,omitempty"` Payment *Order_Payment `protobuf:"bytes,6,opt,name=payment" json:"payment,omitempty"` RatingKey []byte `protobuf:"bytes,7,opt,name=ratingKey,proto3" json:"ratingKey,omitempty"` AlternateContactInfo string `protobuf:"bytes,8,opt,name=alternateContactInfo" json:"alternateContactInfo,omitempty"` }
func (*Order) Descriptor ¶
func (*Order) GetBuyerID ¶
func (*Order) GetItems ¶
func (m *Order) GetItems() []*Order_Item
func (*Order) GetPayment ¶
func (m *Order) GetPayment() *Order_Payment
func (*Order) GetShipping ¶
func (m *Order) GetShipping() *Order_Shipping
func (*Order) GetTimestamp ¶ added in v0.1.1
func (m *Order) GetTimestamp() *google_protobuf.Timestamp
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
type OrderConfirmation ¶
type OrderConfirmation struct { OrderID string `protobuf:"bytes,1,opt,name=orderID" json:"orderID,omitempty"` OutputScript []byte `protobuf:"bytes,2,opt,name=outputScript,proto3" json:"outputScript,omitempty"` RequestedAmount uint64 `protobuf:"varint,3,opt,name=requestedAmount" json:"requestedAmount,omitempty"` RatingSignature []byte `protobuf:"bytes,4,opt,name=ratingSignature,proto3" json:"ratingSignature,omitempty"` }
func (*OrderConfirmation) Descriptor ¶
func (*OrderConfirmation) Descriptor() ([]byte, []int)
func (*OrderConfirmation) ProtoMessage ¶
func (*OrderConfirmation) ProtoMessage()
func (*OrderConfirmation) Reset ¶
func (m *OrderConfirmation) Reset()
func (*OrderConfirmation) String ¶
func (m *OrderConfirmation) String() string
type OrderFulfillment ¶ added in v0.1.1
type OrderFulfillment struct { }
TODO: complete other messages
func (*OrderFulfillment) Descriptor ¶ added in v0.1.1
func (*OrderFulfillment) Descriptor() ([]byte, []int)
func (*OrderFulfillment) ProtoMessage ¶ added in v0.1.1
func (*OrderFulfillment) ProtoMessage()
func (*OrderFulfillment) Reset ¶ added in v0.1.1
func (m *OrderFulfillment) Reset()
func (*OrderFulfillment) String ¶ added in v0.1.1
func (m *OrderFulfillment) String() string
type OrderState ¶ added in v0.1.2
type OrderState int32
const ( // New order, has not yet been accepted by the vendor OrderState_PENDING OrderState = 0 // Vendor has accepted the order and is awaiting payment OrderState_CONFIRMED OrderState = 1 // Buyer has funded the order OrderState_FUNDED OrderState = 2 // Vendor has shipped the item/sent the digitial good OrderState_FULFILLED OrderState = 3 // Buyer has completed the order, released the funds, and left a review OrderState_COMPLETE OrderState = 4 // Contract is under active dispute OrderState_DISPUTED OrderState = 5 // The moderator has resolved the dispute and we are waiting for the winning party to // accept the payout. After the payout is accepted the state will be set to COMPLETE OrderState_RESOLVED OrderState = 6 // The vendor refunded the order OrderState_REFUNDED OrderState = 7 )
func (OrderState) EnumDescriptor ¶ added in v0.1.2
func (OrderState) EnumDescriptor() ([]byte, []int)
func (OrderState) String ¶ added in v0.1.2
func (x OrderState) String() string
type Order_Item ¶
type Order_Item struct { ListingHash string `protobuf:"bytes,1,opt,name=listingHash" json:"listingHash,omitempty"` Quantity uint32 `protobuf:"varint,2,opt,name=quantity" json:"quantity,omitempty"` Options []*Order_Item_Option `protobuf:"bytes,3,rep,name=options" json:"options,omitempty"` ShippingOption *Order_Item_ShippingOption `protobuf:"bytes,4,opt,name=shippingOption" json:"shippingOption,omitempty"` Memo string `protobuf:"bytes,5,opt,name=memo" json:"memo,omitempty"` CouponCodes []string `protobuf:"bytes,6,rep,name=couponCodes" json:"couponCodes,omitempty"` }
func (*Order_Item) Descriptor ¶
func (*Order_Item) Descriptor() ([]byte, []int)
func (*Order_Item) GetOptions ¶
func (m *Order_Item) GetOptions() []*Order_Item_Option
func (*Order_Item) GetShippingOption ¶
func (m *Order_Item) GetShippingOption() *Order_Item_ShippingOption
func (*Order_Item) ProtoMessage ¶
func (*Order_Item) ProtoMessage()
func (*Order_Item) Reset ¶
func (m *Order_Item) Reset()
func (*Order_Item) String ¶
func (m *Order_Item) String() string
type Order_Item_Option ¶
type Order_Item_Option struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` }
func (*Order_Item_Option) Descriptor ¶
func (*Order_Item_Option) Descriptor() ([]byte, []int)
func (*Order_Item_Option) ProtoMessage ¶
func (*Order_Item_Option) ProtoMessage()
func (*Order_Item_Option) Reset ¶
func (m *Order_Item_Option) Reset()
func (*Order_Item_Option) String ¶
func (m *Order_Item_Option) String() string
type Order_Item_ShippingOption ¶
type Order_Item_ShippingOption struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Service string `protobuf:"bytes,2,opt,name=service" json:"service,omitempty"` }
func (*Order_Item_ShippingOption) Descriptor ¶
func (*Order_Item_ShippingOption) Descriptor() ([]byte, []int)
func (*Order_Item_ShippingOption) ProtoMessage ¶
func (*Order_Item_ShippingOption) ProtoMessage()
func (*Order_Item_ShippingOption) Reset ¶
func (m *Order_Item_ShippingOption) Reset()
func (*Order_Item_ShippingOption) String ¶
func (m *Order_Item_ShippingOption) String() string
type Order_Payment ¶
type Order_Payment struct { Method Order_Payment_Method `protobuf:"varint,1,opt,name=method,enum=Order_Payment_Method" json:"method,omitempty"` Moderator string `protobuf:"bytes,2,opt,name=moderator" json:"moderator,omitempty"` Amount uint64 `protobuf:"varint,3,opt,name=amount" json:"amount,omitempty"` Chaincode string `protobuf:"bytes,4,opt,name=chaincode" json:"chaincode,omitempty"` Address string `protobuf:"bytes,5,opt,name=address" json:"address,omitempty"` RedeemScript string `protobuf:"bytes,6,opt,name=redeemScript" json:"redeemScript,omitempty"` }
func (*Order_Payment) Descriptor ¶
func (*Order_Payment) Descriptor() ([]byte, []int)
func (*Order_Payment) ProtoMessage ¶
func (*Order_Payment) ProtoMessage()
func (*Order_Payment) Reset ¶
func (m *Order_Payment) Reset()
func (*Order_Payment) String ¶
func (m *Order_Payment) String() string
type Order_Payment_Method ¶
type Order_Payment_Method int32
const ( Order_Payment_ADDRESS_REQUEST Order_Payment_Method = 0 Order_Payment_DIRECT Order_Payment_Method = 1 Order_Payment_MODERATED Order_Payment_Method = 2 )
func (Order_Payment_Method) EnumDescriptor ¶
func (Order_Payment_Method) EnumDescriptor() ([]byte, []int)
func (Order_Payment_Method) String ¶
func (x Order_Payment_Method) String() string
type Order_Shipping ¶
type Order_Shipping struct { ShipTo string `protobuf:"bytes,1,opt,name=shipTo" json:"shipTo,omitempty"` Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"` City string `protobuf:"bytes,3,opt,name=city" json:"city,omitempty"` State string `protobuf:"bytes,4,opt,name=state" json:"state,omitempty"` PostalCode string `protobuf:"bytes,5,opt,name=postalCode" json:"postalCode,omitempty"` Country CountryCode `protobuf:"varint,6,opt,name=country,enum=CountryCode" json:"country,omitempty"` AddressNotes string `protobuf:"bytes,7,opt,name=addressNotes" json:"addressNotes,omitempty"` }
func (*Order_Shipping) Descriptor ¶
func (*Order_Shipping) Descriptor() ([]byte, []int)
func (*Order_Shipping) ProtoMessage ¶
func (*Order_Shipping) ProtoMessage()
func (*Order_Shipping) Reset ¶
func (m *Order_Shipping) Reset()
func (*Order_Shipping) String ¶
func (m *Order_Shipping) String() string
type Profile ¶
type Profile struct { Handle string `protobuf:"bytes,1,opt,name=handle" json:"handle,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Location string `protobuf:"bytes,3,opt,name=location" json:"location,omitempty"` About string `protobuf:"bytes,4,opt,name=about" json:"about,omitempty"` ShortDescription string `protobuf:"bytes,5,opt,name=shortDescription" json:"shortDescription,omitempty"` Website string `protobuf:"bytes,6,opt,name=website" json:"website,omitempty"` Email string `protobuf:"bytes,7,opt,name=email" json:"email,omitempty"` PhoneNumber string `protobuf:"bytes,8,opt,name=phoneNumber" json:"phoneNumber,omitempty"` Social []*Profile_SocialAccount `protobuf:"bytes,9,rep,name=social" json:"social,omitempty"` Nsfw bool `protobuf:"varint,10,opt,name=nsfw" json:"nsfw,omitempty"` Vendor bool `protobuf:"varint,11,opt,name=vendor" json:"vendor,omitempty"` Moderator bool `protobuf:"varint,12,opt,name=moderator" json:"moderator,omitempty"` PrimaryColor string `protobuf:"bytes,13,opt,name=primaryColor" json:"primaryColor,omitempty"` SecondaryColor string `protobuf:"bytes,14,opt,name=secondaryColor" json:"secondaryColor,omitempty"` TextColor string `protobuf:"bytes,15,opt,name=textColor" json:"textColor,omitempty"` AvatarHash string `protobuf:"bytes,16,opt,name=avatarHash" json:"avatarHash,omitempty"` HeaderHash string `protobuf:"bytes,17,opt,name=headerHash" json:"headerHash,omitempty"` FollowerCount uint32 `protobuf:"varint,18,opt,name=followerCount" json:"followerCount,omitempty"` FollowingCount uint32 `protobuf:"varint,19,opt,name=followingCount" json:"followingCount,omitempty"` ListingCount uint32 `protobuf:"varint,20,opt,name=listingCount" json:"listingCount,omitempty"` LastModified uint32 `protobuf:"varint,21,opt,name=lastModified" json:"lastModified,omitempty"` }
func (*Profile) Descriptor ¶
func (*Profile) GetSocial ¶
func (m *Profile) GetSocial() []*Profile_SocialAccount
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
type Profile_SocialAccount ¶
type Profile_SocialAccount struct { Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` Username string `protobuf:"bytes,2,opt,name=username" json:"username,omitempty"` Proof string `protobuf:"bytes,3,opt,name=proof" json:"proof,omitempty"` }
func (*Profile_SocialAccount) Descriptor ¶
func (*Profile_SocialAccount) Descriptor() ([]byte, []int)
func (*Profile_SocialAccount) ProtoMessage ¶
func (*Profile_SocialAccount) ProtoMessage()
func (*Profile_SocialAccount) Reset ¶
func (m *Profile_SocialAccount) Reset()
func (*Profile_SocialAccount) String ¶
func (m *Profile_SocialAccount) String() string
type Rating ¶
type Rating struct { }
func (*Rating) Descriptor ¶
func (*Rating) ProtoMessage ¶
func (*Rating) ProtoMessage()
type Refund ¶
type Refund struct { }
func (*Refund) Descriptor ¶
func (*Refund) ProtoMessage ¶
func (*Refund) ProtoMessage()
type RicardianContract ¶
type RicardianContract struct { VendorListings []*Listing `protobuf:"bytes,1,rep,name=vendorListings" json:"vendorListings,omitempty"` BuyerOrder *Order `protobuf:"bytes,2,opt,name=buyerOrder" json:"buyerOrder,omitempty"` VendorOrderConfirmation *OrderConfirmation `protobuf:"bytes,3,opt,name=vendorOrderConfirmation" json:"vendorOrderConfirmation,omitempty"` VendorOrderFulfillment *OrderFulfillment `protobuf:"bytes,4,opt,name=vendorOrderFulfillment" json:"vendorOrderFulfillment,omitempty"` BuyerRating *Rating `protobuf:"bytes,5,opt,name=buyerRating" json:"buyerRating,omitempty"` Dispute *Dispute `protobuf:"bytes,6,opt,name=dispute" json:"dispute,omitempty"` DisputeResolution *DisputeResolution `protobuf:"bytes,7,opt,name=disputeResolution" json:"disputeResolution,omitempty"` Refund *Refund `protobuf:"bytes,8,opt,name=refund" json:"refund,omitempty"` Signatures []*Signatures `protobuf:"bytes,9,rep,name=signatures" json:"signatures,omitempty"` }
func (*RicardianContract) Descriptor ¶
func (*RicardianContract) Descriptor() ([]byte, []int)
func (*RicardianContract) GetBuyerOrder ¶
func (m *RicardianContract) GetBuyerOrder() *Order
func (*RicardianContract) GetBuyerRating ¶
func (m *RicardianContract) GetBuyerRating() *Rating
func (*RicardianContract) GetDispute ¶
func (m *RicardianContract) GetDispute() *Dispute
func (*RicardianContract) GetDisputeResolution ¶
func (m *RicardianContract) GetDisputeResolution() *DisputeResolution
func (*RicardianContract) GetRefund ¶
func (m *RicardianContract) GetRefund() *Refund
func (*RicardianContract) GetSignatures ¶
func (m *RicardianContract) GetSignatures() []*Signatures
func (*RicardianContract) GetVendorListings ¶
func (m *RicardianContract) GetVendorListings() []*Listing
func (*RicardianContract) GetVendorOrderConfirmation ¶
func (m *RicardianContract) GetVendorOrderConfirmation() *OrderConfirmation
func (*RicardianContract) GetVendorOrderFulfillment ¶ added in v0.1.1
func (m *RicardianContract) GetVendorOrderFulfillment() *OrderFulfillment
func (*RicardianContract) ProtoMessage ¶
func (*RicardianContract) ProtoMessage()
func (*RicardianContract) Reset ¶
func (m *RicardianContract) Reset()
func (*RicardianContract) String ¶
func (m *RicardianContract) String() string
type Signatures ¶
type Signatures struct { Section Signatures_Section `protobuf:"varint,1,opt,name=section,enum=Signatures_Section" json:"section,omitempty"` Guid []byte `protobuf:"bytes,2,opt,name=guid,proto3" json:"guid,omitempty"` Bitcoin []byte `protobuf:"bytes,3,opt,name=bitcoin,proto3" json:"bitcoin,omitempty"` }
func (*Signatures) Descriptor ¶
func (*Signatures) Descriptor() ([]byte, []int)
func (*Signatures) ProtoMessage ¶
func (*Signatures) ProtoMessage()
func (*Signatures) Reset ¶
func (m *Signatures) Reset()
func (*Signatures) String ¶
func (m *Signatures) String() string
type Signatures_Section ¶
type Signatures_Section int32
const ( Signatures_NA Signatures_Section = 0 Signatures_LISTING Signatures_Section = 1 Signatures_ORDER Signatures_Section = 2 Signatures_ORDER_ACCEPTANCE Signatures_Section = 3 Signatures_ORDER_CONFIRMATION Signatures_Section = 4 Signatures_RATING Signatures_Section = 5 Signatures_DISPUTE Signatures_Section = 6 Signatures_DISPUTE_RESOLUTION Signatures_Section = 7 Signatures_REFUND Signatures_Section = 8 )
func (Signatures_Section) EnumDescriptor ¶
func (Signatures_Section) EnumDescriptor() ([]byte, []int)
func (Signatures_Section) String ¶
func (x Signatures_Section) String() string