2022-03-23 02:12:54 +00:00
|
|
|
package appier
|
|
|
|
|
|
|
|
// Pull ...
|
|
|
|
type Pull struct{}
|
|
|
|
|
|
|
|
// ProductUpsert ...
|
2022-03-23 03:24:37 +00:00
|
|
|
func (Pull) ProductUpsert(payload []byte) (bool, error) {
|
|
|
|
return publishWithJetStream(JetStreamAppierService, SubjectPullProductUpsert, payload)
|
2022-03-23 02:12:54 +00:00
|
|
|
}
|
2022-03-23 03:36:14 +00:00
|
|
|
|
|
|
|
// BrandUpsert ...
|
|
|
|
func (Pull) BrandUpsert(payload []byte) (bool, error) {
|
|
|
|
return publishWithJetStream(JetStreamAppierService, SubjectPullBrandUpsert, payload)
|
|
|
|
}
|
2022-03-23 10:03:44 +00:00
|
|
|
|
|
|
|
// CategoryUpsert ...
|
|
|
|
func (Pull) CategoryUpsert(payload []byte) (bool, error) {
|
|
|
|
return publishWithJetStream(JetStreamAppierService, SubjectPullCategoryUpsert, payload)
|
|
|
|
}
|
|
|
|
|
|
|
|
// SubCategoryUpsert ...
|
|
|
|
func (Pull) SubCategoryUpsert(payload []byte) (bool, error) {
|
|
|
|
return publishWithJetStream(JetStreamAppierService, SubjectPullSubCategoryUpsert, payload)
|
|
|
|
}
|
|
|
|
|
|
|
|
// SupplierUpsert ...
|
|
|
|
func (Pull) SupplierUpsert(payload []byte) (bool, error) {
|
|
|
|
return publishWithJetStream(JetStreamAppierService, SubjectPullSupplierUpsert, payload)
|
|
|
|
}
|
|
|
|
|
|
|
|
// InventoryUpsert ...
|
|
|
|
func (Pull) InventoryUpsert(payload []byte) (bool, error) {
|
|
|
|
return publishWithJetStream(JetStreamAppierService, SubjectPullInventoryUpsert, payload)
|
|
|
|
}
|
|
|
|
|
|
|
|
// SKUUpsert ...
|
|
|
|
func (Pull) SKUUpsert(payload []byte) (bool, error) {
|
|
|
|
return publishWithJetStream(JetStreamAppierService, SubjectPullSKUUpsert, payload)
|
|
|
|
}
|
|
|
|
|
|
|
|
// PropertyUpsert ...
|
|
|
|
func (Pull) PropertyUpsert(payload []byte) (bool, error) {
|
|
|
|
return publishWithJetStream(JetStreamAppierService, SubjectPullPropertyUpsert, payload)
|
|
|
|
}
|
|
|
|
|
|
|
|
// PropertyValueUpsert ...
|
|
|
|
func (Pull) PropertyValueUpsert(payload []byte) (bool, error) {
|
|
|
|
return publishWithJetStream(JetStreamAppierService, SubjectPullPropertyValueUpsert, payload)
|
|
|
|
}
|