POST api/PaymentMethodRelatedToCountries/Add
Request Information
URI Parameters
None.
Body Parameters
PaymentMethodRTCountryBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| CountryId | string |
None. |
|
| PaymentGateawayChoice | PaymentGatewayChoice |
None. |
Request Formats
application/json, text/json
Sample:
{
"CountryId": "sample string 1",
"PaymentGateawayChoice": 0
}
application/xml, text/xml
Sample:
<PaymentMethodRTCountryBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO"> <CountryId>sample string 1</CountryId> <PaymentGateawayChoice>Deposit</PaymentGateawayChoice> </PaymentMethodRTCountryBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PaymentMethodRTCountryViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Country | ValueTextModel |
None. |
|
| PaymentGateawayChoice | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Country": {
"Value": "sample string 1",
"Text": "sample string 2"
},
"PaymentGateawayChoice": "sample string 1"
}
application/xml, text/xml
Sample:
<PaymentMethodRTCountryViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">
<Country>
<Text>sample string 2</Text>
<Value>sample string 1</Value>
</Country>
<PaymentGateawayChoice>sample string 1</PaymentGateawayChoice>
</PaymentMethodRTCountryViewModel>