1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<?php
/**
* This file is part of the Klarna KP module
*
* (c) Klarna Bank AB (publ)
*
* For the full copyright and license information, please view the NOTICE
* and LICENSE files that were distributed with this source code.
*/
namespace Klarna\Kp\Api\Data;
/**
* Interface RequestInterface
*
* @package Klarna\Kp\Api\Data
*/
interface RequestInterface extends ApiObjectInterface
{
/**
* Used for storing merchant's internal order number or other reference (max 255 characters).
*
* @param string $reference
*/
public function setMerchantReference1($reference);
/**
* Used for storing merchant's internal order number or other reference (max 255 characters).
*
* @param string $reference
*/
public function setMerchantReference2($reference);
/**
* @param OptionsInterface $options
*/
public function setOptions(OptionsInterface $options);
/**
* Information about the liable customer of the order.
*
* @param CustomerInterface $customer
*/
public function setCustomer(CustomerInterface $customer);
/**
* @param UrlsInterface $urls
*/
public function setMerchantUrls(UrlsInterface $urls);
/**
* ISO 3166 alpha-2: Purchase country
*
* @param string $purchaseCountry
*/
public function setPurchaseCountry($purchaseCountry);
/**
* ISO 4217: Purchase currency.
*
* @param string $purchaseCurrency
*/
public function setPurchaseCurrency($purchaseCurrency);
/**
* RFC 1766: Customer's locale.
*
* @param string $locale
*/
public function setLocale($locale);
/**
* The billing address.
*
* @param AddressInterface $billingAddress
*/
public function setBillingAddress(AddressInterface $billingAddress);
/**
* The shipping address.
*
* @param AddressInterface $shippingAddress
*/
public function setShippingAddress(AddressInterface $shippingAddress);
/**
* The total tax amount of the order. Implicit decimal (eg 1000 instead of 10.00)
*
* @param int $orderTaxAmount
*/
public function setOrderTaxAmount($orderTaxAmount);
/**
* The applicable order lines.
*
* @param array|OrderlineInterface[] $orderlines
*/
public function setOrderLines(array $orderlines);
/**
* Add an orderline to the request.
*
* @param OrderlineInterface $orderline
*/
public function addOrderLine(OrderlineInterface $orderline);
/**
* Container for optional merchant specific data.
*
* @param AttachmentInterface $attachment
*/
public function setAttachment(AttachmentInterface $attachment);
/**
* Total amount of the order, including tax and any discounts. Implicit decimal (eg 1000 instead of 10.00)
*
* @param int $orderAmount
*/
public function setOrderAmount($orderAmount);
/**
* Used to load a specific design for the credit form
*
* @param string $design
*/
public function setDesign($design);
/**
* An optional list of merchant triggered payment methods
*
* @param array $paymentMethods
*/
public function setCustomPaymentMethods(array $paymentMethods);
/**
* Add a merchant triggered payment method to request
*
* @param string $paymentMethod
*/
public function addCustomPaymentMethods($paymentMethod);
}