saving campaign #153
			
				
			
		
		
		
	| 
						 | 
				
			
			@ -2,11 +2,13 @@ package jsconsumer
 | 
			
		|||
 | 
			
		||||
// Selly ...
 | 
			
		||||
var Selly = struct {
 | 
			
		||||
	PushNotification               string
 | 
			
		||||
	UpdateSellerAffiliateStatistic string
 | 
			
		||||
	CheckAnDInsertCashflowBySeller string
 | 
			
		||||
	PushNotification                    string
 | 
			
		||||
	UpdateSellerAffiliateStatistic      string
 | 
			
		||||
	CheckAnDInsertCashflowBySeller      string
 | 
			
		||||
	UpdateSellerSavingCampaignStatistic string
 | 
			
		||||
}{
 | 
			
		||||
	PushNotification:               "PULL_PUSH_NOTIFICATION",
 | 
			
		||||
	UpdateSellerAffiliateStatistic: "PULL_UPDATE_SELLER_AFFILIATE_STATISTIC",
 | 
			
		||||
	CheckAnDInsertCashflowBySeller: "PULL_CHECK_AND_INSERT_CASHFLOW_BY_SELLER",
 | 
			
		||||
	PushNotification:                    "PULL_PUSH_NOTIFICATION",
 | 
			
		||||
	UpdateSellerAffiliateStatistic:      "PULL_UPDATE_SELLER_AFFILIATE_STATISTIC",
 | 
			
		||||
	CheckAnDInsertCashflowBySeller:      "PULL_CHECK_AND_INSERT_CASHFLOW_BY_SELLER",
 | 
			
		||||
	UpdateSellerSavingCampaignStatistic: "PULL_UPDATE_SELLER_SAVING_CAMPAIGN_STATISTIC",
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -70,3 +70,15 @@ type CashFlowOptions struct {
 | 
			
		|||
	SavingCampaignItemID   string `json:"savingCampaignItemId,omitempty"`
 | 
			
		||||
	SavingCampaignItemName string `json:"savingCampaignItemName,omitempty"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// PayloadUpdateSellerSavingCampaignStatistic ...
 | 
			
		||||
type PayloadUpdateSellerSavingCampaignStatistic struct {
 | 
			
		||||
	SellerID  string                        `json:"sellerId"`
 | 
			
		||||
	Statistic SellerSavingCampaignStatistic `json:"statistic"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// SellerSavingCampaignStatistic ...
 | 
			
		||||
type SellerSavingCampaignStatistic struct {
 | 
			
		||||
	SavingCampaignCashPending   float64 `json:"savingCampaignCashPending"`
 | 
			
		||||
	SavingCampaignCashCompleted float64 `json:"savingCampaignCashCompleted"`
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,11 +11,13 @@ func getSellyValue(val string) string {
 | 
			
		|||
 | 
			
		||||
// Selly ...
 | 
			
		||||
var Selly = struct {
 | 
			
		||||
	PushNotification               string
 | 
			
		||||
	UpdateSellerAffiliateStatistic string
 | 
			
		||||
	CheckAnDInsertCashflowBySeller string
 | 
			
		||||
	PushNotification                    string
 | 
			
		||||
	UpdateSellerAffiliateStatistic      string
 | 
			
		||||
	CheckAnDInsertCashflowBySeller      string
 | 
			
		||||
	UpdateSellerSavingCampaignStatistic string
 | 
			
		||||
}{
 | 
			
		||||
	PushNotification:               getSellyValue("push_notifications"),
 | 
			
		||||
	UpdateSellerAffiliateStatistic: getSellyValue("update_seller_affiliate_statistic"),
 | 
			
		||||
	CheckAnDInsertCashflowBySeller: getSellyValue("check_and_insert_cashflow_statistic"),
 | 
			
		||||
	PushNotification:                    getSellyValue("push_notifications"),
 | 
			
		||||
	UpdateSellerAffiliateStatistic:      getSellyValue("update_seller_affiliate_statistic"),
 | 
			
		||||
	CheckAnDInsertCashflowBySeller:      getSellyValue("check_and_insert_cashflow_statistic"),
 | 
			
		||||
	UpdateSellerSavingCampaignStatistic: getSellyValue("update_seller_saving_campaign_statistic"),
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue