Feature/seller by #38
			
				
			
		
		
		
	| 
						 | 
					@ -2,7 +2,9 @@ package jsconsumer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Selly ...
 | 
					// Selly ...
 | 
				
			||||||
var Selly = struct {
 | 
					var Selly = struct {
 | 
				
			||||||
	PushNotification string
 | 
						PushNotification      string
 | 
				
			||||||
 | 
						UpdateSellerStatistic string
 | 
				
			||||||
}{
 | 
					}{
 | 
				
			||||||
	PushNotification: "PULL_PUSH_NOTIFICATION",
 | 
						PushNotification:      "PULL_PUSH_NOTIFICATION",
 | 
				
			||||||
 | 
						UpdateSellerStatistic: "PULL_UPDATE_SELLER_STATISTIC",
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -15,3 +15,22 @@ type NotificationOptions struct {
 | 
				
			||||||
	Title   string `json:"title"`
 | 
						Title   string `json:"title"`
 | 
				
			||||||
	Content string `json:"content"`
 | 
						Content string `json:"content"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// PayloadUpdateSellerAffiliateStatistic ...
 | 
				
			||||||
 | 
					type PayloadUpdateSellerAffiliateStatistic struct {
 | 
				
			||||||
 | 
						SellerID  string                   `json:"sellerId"`
 | 
				
			||||||
 | 
						Statistic SellerAffiliateStatistic `json:"statistic"`
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// SellerAffiliateStatistic ...
 | 
				
			||||||
 | 
					type SellerAffiliateStatistic struct {
 | 
				
			||||||
 | 
						TransactionTotal              int     `json:"transactionTotal"`
 | 
				
			||||||
 | 
						TransactionCashback           int     `json:"transactionCashback"`
 | 
				
			||||||
 | 
						TransactionPending            int     `json:"transactionPending"`
 | 
				
			||||||
 | 
						TransactionApproved           int     `json:"transactionApproved"`
 | 
				
			||||||
 | 
						TransactionRejected           int     `json:"transactionRejected"`
 | 
				
			||||||
 | 
						CommissionTransactionTotal    float64 `json:"commissionTransactionTotal"`
 | 
				
			||||||
 | 
						CommissionTransactionCashback float64 `json:"commissionTransactionCashback"`
 | 
				
			||||||
 | 
						CommissionTransactionApproved float64 `json:"commissionTransactionApproved"`
 | 
				
			||||||
 | 
						CommissionTransactionRejected float64 `json:"commissionTransactionRejected"`
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,7 +11,9 @@ func getSellyValue(val string) string {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Selly ...
 | 
					// Selly ...
 | 
				
			||||||
var Selly = struct {
 | 
					var Selly = struct {
 | 
				
			||||||
	PushNotification string
 | 
						PushNotification      string
 | 
				
			||||||
 | 
						UpdateSellerStatistic string
 | 
				
			||||||
}{
 | 
					}{
 | 
				
			||||||
	PushNotification: getSellyValue("push_notifications"),
 | 
						PushNotification:      getSellyValue("push_notifications"),
 | 
				
			||||||
 | 
						UpdateSellerStatistic: getSellyValue("update_seller_statistic"),
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue