Package com.onslip360
Class API.Payment
- java.lang.Object
-
- com.onslip360.Onslip360Object<API.Payment>
-
- com.onslip360.API.Payment
-
- All Implemented Interfaces:
Cloneable
,Comparable<Onslip360Object<API.Payment>>
- Enclosing class:
- API
public static class API.Payment extends Onslip360Object<API.Payment>
-
-
Constructor Summary
Constructors Constructor Description Payment(Double amount, API.PaymentMethod.Type method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
amount()
API.Payment
amount(Double amount)
Optional<Double>
foreignAmount()
API.Payment
foreignAmount(Double foreignAmount)
Optional<Double>
gratuity()
API.Payment
gratuity(Double gratuity)
Optional<API.Metadata>
metadata()
API.Payment
metadata(API.Metadata metadata)
API.PaymentMethod.Type
method()
API.Payment
method(API.PaymentMethod.Type method)
Optional<String>
name()
API.Payment
name(String name)
Optional<Long>
paymentMethod()
API.Payment
paymentMethod(Long paymentMethod)
Optional<Double>
vatAmount()
API.Payment
vatAmount(Double vatAmount)
Optional<Float>
vatRate()
API.Payment
vatRate(Float vatRate)
-
Methods inherited from class com.onslip360.Onslip360Object
clone, compareTo, equals, fromJson, fromJson, fromJsonArray, fromJsonArray, fromList, fromMap, fromObject, getExtended, hashCode, setExtended, setExtended, toJson, toJson, toJson, toJson, toList, toMap, toString
-
-
-
-
Constructor Detail
-
Payment
public Payment(Double amount, API.PaymentMethod.Type method)
-
-
Method Detail
-
amount
@Nonnull public Double amount()
-
metadata
@Nonnull public Optional<API.Metadata> metadata()
-
method
@Nonnull public API.PaymentMethod.Type method()
-
amount
@Nonnull public API.Payment amount(Double amount)
-
foreignAmount
@Nonnull public API.Payment foreignAmount(@Nullable Double foreignAmount)
-
gratuity
@Nonnull public API.Payment gratuity(@Nullable Double gratuity)
-
metadata
@Nonnull public API.Payment metadata(@Nullable API.Metadata metadata)
-
method
@Nonnull public API.Payment method(API.PaymentMethod.Type method)
-
name
@Nonnull public API.Payment name(@Nullable String name)
-
paymentMethod
@Nonnull public API.Payment paymentMethod(@Nullable Long paymentMethod)
-
vatAmount
@Nonnull public API.Payment vatAmount(@Nullable Double vatAmount)
-
vatRate
@Nonnull public API.Payment vatRate(@Nullable Float vatRate)
-
-