Class RegisterPaymentDetails
java.lang.Object
com.skava.core.validation.InputModel
com.skava.paymentapp.model.request.RegisterPaymentDetails
- All Implemented Interfaces:
Serializable
public class RegisterPaymentDetails
extends com.skava.core.validation.InputModel
This class represents the details required to register a payment or transaction in the payment service.
It contains all the necessary information such as service id, channel id, payment type, amount, currency,
request option, primary payment flag, properties, user info, billing address, and items.
Field explanations:
- serviceId (String): A unique identifier for the service.
- channelId (String): A unique identifier for the channel.
- paymentType (String): The type of payment (e.g., BRAINTREE).
- amount (Double): The total amount to be paid.
- currency (String): The currency of the payment (e.g., USD).
- requestFor (String): The purpose of the request (e.g., PROFILE).
- primaryPayment (Boolean): Indicates if this is the primary payment method.
- properties (Array of Objects): Additional properties for the payment.
- name (String): The name of the property.
- value (String): The value of the property.
- userInfo (Object): Information about the user.
- userId (String): A unique identifier for the user.
- email (String): The email address of the user.
- billingAddress (Object): The billing address for the payment.
- street (String): The street of the billing address.
- city (String): The city of the billing address.
- state (String): The state of the billing address.
- zip (String): The zip code of the billing address.
- country (String): The country of the billing address.
- items (Array of Objects): The items included in the payment.
- itemId (String): A unique identifier for the item.
- quantity (Integer): The quantity of the item.
- price (Double): The price of the item.
- serviceId (String): A unique identifier for the service.
- channelId (String): A unique identifier for the channel.
- paymentType (String): The type of payment (e.g., BRAINTREE).
- amount (Double): The total amount to be paid.
- currency (String): The currency of the payment (e.g., USD).
- requestFor (String): The purpose of the request (e.g., PROFILE).
- primaryPayment (Boolean): Indicates if this is the primary payment method.
- properties (Array of Objects): Additional properties for the payment.
- name (String): The name of the property.
- value (String): The value of the property.
- userInfo (Object): Information about the user.
- userId (String): A unique identifier for the user.
- email (String): The email address of the user.
- billingAddress (Object): The billing address for the payment.
- street (String): The street of the billing address.
- city (String): The city of the billing address.
- state (String): The state of the billing address.
- zip (String): The zip code of the billing address.
- country (String): The country of the billing address.
- items (Array of Objects): The items included in the payment.
- itemId (String): A unique identifier for the item.
- quantity (Integer): The quantity of the item.
- price (Double): The price of the item.
Example JSON request payload:
{
"serviceId": "87654321",
"channelId": "12344",
"paymentType": "BRAINTREE",
"amount": 100.00,
"currency": "USD",
"requestFor": "PROFILE",
"primaryPayment": true,
"properties": [
{
"name": "property1",
"value": "value1"
},
{
"name": "property2",
"value": "value2"
}
],
"userInfo": {
"userId": "USER123",
"email": "user@example.com"
},
"billingAddress": {
"street": "123 Main St",
"city": "Anytown",
"state": "CA",
"zip": "12345",
"country": "US"
},
"items": [
{
"itemId": "ITEM123",
"quantity": 1,
"price": 100.00
}
]
}
- Author:
- Infosys Equinox
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RegisterPaymentDetails
public RegisterPaymentDetails()
-