A JSON object reflects the real money the merchant receives. Only applicable for Dine out STO case. null if not applicable. Only present in submitOrder webhook. Not present in ListOrder response.
| Name | Type | Description | Notes |
|---|---|---|---|
| revenue | int | The revenue of merchant should receive. revenue = price.eaterpayment - mexfunddiscount | [optional] |
| net_earning | int | The netEarning of merchant should receive. netEarning = revenue - commission | [optional] |
| mex_fund_discount | int | The mexFundDiscount that user applied from grab app in this payment | [optional] |
| commission | int | The commission that grab need charge from this pay merchant transaction. | [optional] |
from grabfood.models.merchant_earning import MerchantEarning
# TODO update the JSON string below
json = "{}"
# create an instance of MerchantEarning from a JSON string
merchant_earning_instance = MerchantEarning.from_json(json)
# print the JSON string representation of the object
print(MerchantEarning.to_json())
# convert the object into a dict
merchant_earning_dict = merchant_earning_instance.to_dict()
# create an instance of MerchantEarning from a dict
merchant_earning_from_dict = MerchantEarning.from_dict(merchant_earning_dict)