POST api/PaymentSchemes/PaymentSchemesWithDetails
Request Information
URI Parameters
None.
Body Parameters
PaymentSchemeWithDetailsBindingModelName | Description | Type | Additional information |
---|---|---|---|
Type | string |
Required String length: inclusive between 0 and 10 |
|
Description | string |
String length: inclusive between 0 and 100 |
|
PaymentSchemeDetail | Collection of PaymentSchemeDetailBindingModel |
None. |
|
IsLock | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "Type": "sample string 1", "Description": "sample string 2", "PaymentSchemeDetail": [ { "IntervalDays": 1, "Percentage": 2.0, "Sequence": 3, "isLockGuest": true, "Description": "sample string 5", "PaymentSchemeId": 6, "IsAfterBookingBased": true }, { "IntervalDays": 1, "Percentage": 2.0, "Sequence": 3, "isLockGuest": true, "Description": "sample string 5", "PaymentSchemeId": 6, "IsAfterBookingBased": true } ], "IsLock": true }
application/xml, text/xml
Sample:
<PaymentSchemeWithDetailsBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO"> <Description>sample string 2</Description> <IsLock>true</IsLock> <PaymentSchemeDetail> <PaymentSchemeDetailBindingModel> <Description>sample string 5</Description> <IntervalDays>1</IntervalDays> <IsAfterBookingBased>true</IsAfterBookingBased> <PaymentSchemeId>6</PaymentSchemeId> <Percentage>2</Percentage> <Sequence>3</Sequence> <isLockGuest>true</isLockGuest> </PaymentSchemeDetailBindingModel> <PaymentSchemeDetailBindingModel> <Description>sample string 5</Description> <IntervalDays>1</IntervalDays> <IsAfterBookingBased>true</IsAfterBookingBased> <PaymentSchemeId>6</PaymentSchemeId> <Percentage>2</Percentage> <Sequence>3</Sequence> <isLockGuest>true</isLockGuest> </PaymentSchemeDetailBindingModel> </PaymentSchemeDetail> <Type>sample string 1</Type> </PaymentSchemeWithDetailsBindingModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PaymentSchemeWithDetailsBindingModelName | Description | Type | Additional information |
---|---|---|---|
Type | string |
Required String length: inclusive between 0 and 10 |
|
Description | string |
String length: inclusive between 0 and 100 |
|
PaymentSchemeDetail | Collection of PaymentSchemeDetailBindingModel |
None. |
|
IsLock | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "Type": "sample string 1", "Description": "sample string 2", "PaymentSchemeDetail": [ { "IntervalDays": 1, "Percentage": 2.0, "Sequence": 3, "isLockGuest": true, "Description": "sample string 5", "PaymentSchemeId": 6, "IsAfterBookingBased": true }, { "IntervalDays": 1, "Percentage": 2.0, "Sequence": 3, "isLockGuest": true, "Description": "sample string 5", "PaymentSchemeId": 6, "IsAfterBookingBased": true } ], "IsLock": true }
application/xml, text/xml
Sample:
<PaymentSchemeWithDetailsBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO"> <Description>sample string 2</Description> <IsLock>true</IsLock> <PaymentSchemeDetail> <PaymentSchemeDetailBindingModel> <Description>sample string 5</Description> <IntervalDays>1</IntervalDays> <IsAfterBookingBased>true</IsAfterBookingBased> <PaymentSchemeId>6</PaymentSchemeId> <Percentage>2</Percentage> <Sequence>3</Sequence> <isLockGuest>true</isLockGuest> </PaymentSchemeDetailBindingModel> <PaymentSchemeDetailBindingModel> <Description>sample string 5</Description> <IntervalDays>1</IntervalDays> <IsAfterBookingBased>true</IsAfterBookingBased> <PaymentSchemeId>6</PaymentSchemeId> <Percentage>2</Percentage> <Sequence>3</Sequence> <isLockGuest>true</isLockGuest> </PaymentSchemeDetailBindingModel> </PaymentSchemeDetail> <Type>sample string 1</Type> </PaymentSchemeWithDetailsBindingModel>