↳ Payment
↳ Purchase
- amount
- config
- created
- description
- id
- initiatingSystemUserAgent
- instrument
- language
- number
- operations
- payerReference
- paymentOrder
- remainingCancellationAmount
- remainingCaptureAmount
- remainingReversalAmount
- state
- updated
- userAgent
+ new Purchase(config
: MerchantConfig, response
: object):
Purchase
Inherited from Payment.constructor
Overrides SwedbankBase.constructor
Parameters:
▪ config: MerchantConfig
▪ response: object
Name | Type |
---|---|
operations |
Operation[] |
payment |
PaymentProperties |
Returns: Purchase
• amount: number
• config: MerchantConfig
Inherited from SwedbankBase.config
Overrides SwedbankBase.config
• created: Date
Inherited from Payment.created
• description: string
Inherited from Payment.description
Overrides Payment.description
• id: string
• initiatingSystemUserAgent: string
Inherited from Payment.initiatingSystemUserAgent
Overrides Payment.initiatingSystemUserAgent
• instrument: string
Inherited from Payment.instrument
Overrides Payment.instrument
• language: string
Inherited from Payment.language
• number: number
• operations: Operation[]
Inherited from PaymentOrderResponse.operations
• payerReference: string
Inherited from Payment.payerReference
Overrides Payment.payerReference
• paymentOrder: PaymentOrderProperties
Inherited from PaymentOrderResponse.paymentOrder
• remainingCancellationAmount: number
Inherited from Payment.remainingCancellationAmount
Overrides Payment.remainingCancellationAmount
• remainingCaptureAmount: number
Inherited from Payment.remainingCaptureAmount
Overrides Payment.remainingCaptureAmount
• remainingReversalAmount: number
Inherited from Payment.remainingReversalAmount
Overrides Payment.remainingReversalAmount
• state: string
• updated: Date
Inherited from Payment.updated
• userAgent: string
Inherited from Payment.userAgent
▸ GenericResource‹T›(id?
: string): Promise‹T›
Inherited from SwedbankBase.GenericResource
Overrides SwedbankBase.GenericResource
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
id? |
string |
Returns: Promise‹T›
▸ getOperations(): Operation[]
Inherited from Payment.getOperations
Overrides Payment.getOperations
Returns: Operation[]
▸ getPrices(): Promise‹Price[]›
Inherited from Payment.getPrices
Returns: Promise‹Price[]›
▸ getRedirectAuthorization(): string
Returns: string
▸ getUrl(env?
: 'test' | 'prod'): string
Inherited from SwedbankBase.getUrl
Overrides SwedbankBase.getUrl
Parameters:
Name | Type |
---|---|
env? |
'test' | 'prod' |
Returns: string
URL to API
▸ request‹T›(path
: string, body?
: object, method?
: Method):
Promise‹Response‹T››
Inherited from SwedbankBase.request
Overrides SwedbankBase.request
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
path |
string |
body? |
object |
method? |
Method |
Returns: Promise‹Response‹T››
▸ runOperation‹T›(url
: string, body?
: object, method?
: Method):
Promise‹Response‹T››
Inherited from SwedbankBase.runOperation
Overrides SwedbankBase.runOperation
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
url |
string |
body? |
object |
method? |
Method |
Returns: Promise‹Response‹T››