pensio_api 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +13 -5
- data/.rspec +2 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +83 -0
- data/Guardfile +23 -0
- data/LICENSE +24 -0
- data/README.md +77 -0
- data/lib/pensio_api/billing_address.rb +15 -0
- data/lib/pensio_api/callback.rb +30 -0
- data/lib/pensio_api/credentials.rb +7 -0
- data/lib/pensio_api/ecommerce.rb +13 -0
- data/lib/pensio_api/errors/bad_request.rb +15 -0
- data/lib/pensio_api/errors/gateway_error.rb +21 -0
- data/lib/pensio_api/errors/no_credentials.rb +9 -0
- data/lib/pensio_api/funding_list.rb +30 -0
- data/lib/pensio_api/funding_list_request.rb +15 -0
- data/lib/pensio_api/mixins/has_transactions.rb +36 -0
- data/lib/pensio_api/mixins/id.rb +9 -0
- data/lib/pensio_api/mixins/method_missing.rb +9 -0
- data/lib/pensio_api/mixins/request_defaults.rb +50 -0
- data/lib/pensio_api/mixins/timestamps.rb +13 -0
- data/lib/pensio_api/request.rb +18 -0
- data/lib/pensio_api/reservation.rb +28 -0
- data/lib/pensio_api/responses/base.rb +32 -0
- data/lib/pensio_api/responses/funding_list.rb +43 -0
- data/lib/pensio_api/responses/gateway_url.rb +13 -0
- data/lib/pensio_api/responses/refund.rb +17 -0
- data/lib/pensio_api/responses/reservation.rb +15 -0
- data/lib/pensio_api/responses/reservation_capture.rb +14 -0
- data/lib/pensio_api/responses/reservation_release.rb +6 -0
- data/lib/pensio_api/responses/subscription_charge.rb +21 -0
- data/lib/pensio_api/responses/subscription_failure_callback.rb +21 -0
- data/lib/pensio_api/responses/success_callback.rb +21 -0
- data/lib/pensio_api/responses/terminal.rb +41 -0
- data/lib/pensio_api/responses/transaction.rb +13 -0
- data/lib/pensio_api/subscription.rb +30 -0
- data/lib/pensio_api/terminal.rb +17 -0
- data/lib/pensio_api/transaction.rb +84 -0
- data/lib/pensio_api.rb +36 -0
- data/pensio_api.gemspec +20 -0
- data/spec/lib/pensio_api/billing_address_spec.rb +40 -0
- data/spec/lib/pensio_api/callback_spec.rb +21 -0
- data/spec/lib/pensio_api/ecommerce_spec.rb +22 -0
- data/spec/lib/pensio_api/errors/bad_request_spec.rb +31 -0
- data/spec/lib/pensio_api/errors/gateway_error_spec.rb +38 -0
- data/spec/lib/pensio_api/funding_list_request_spec.rb +17 -0
- data/spec/lib/pensio_api/funding_list_spec.rb +38 -0
- data/spec/lib/pensio_api/request_spec.rb +122 -0
- data/spec/lib/pensio_api/reservation_spec.rb +32 -0
- data/spec/lib/pensio_api/responses/base_spec.rb +68 -0
- data/spec/lib/pensio_api/responses/funding_list_spec.rb +23 -0
- data/spec/lib/pensio_api/responses/gateway_url_spec.rb +17 -0
- data/spec/lib/pensio_api/responses/refund_spec.rb +18 -0
- data/spec/lib/pensio_api/responses/reservation_capture_spec.rb +18 -0
- data/spec/lib/pensio_api/responses/reservation_release_spec.rb +12 -0
- data/spec/lib/pensio_api/responses/reservation_spec.rb +15 -0
- data/spec/lib/pensio_api/responses/subscription_charge_spec.rb +56 -0
- data/spec/lib/pensio_api/responses/subscription_failure_callback_spec.rb +48 -0
- data/spec/lib/pensio_api/responses/success_callback_spec.rb +45 -0
- data/spec/lib/pensio_api/responses/terminal_spec.rb +55 -0
- data/spec/lib/pensio_api/responses/transaction_spec.rb +56 -0
- data/spec/lib/pensio_api/subscription_spec.rb +37 -0
- data/spec/lib/pensio_api/terminal_spec.rb +18 -0
- data/spec/lib/pensio_api/transaction_spec.rb +101 -0
- data/spec/spec_helper.rb +26 -0
- data/spec/support/fixtures/bad_request_error.xml +10 -0
- data/spec/support/fixtures/capture_reservation.xml +84 -0
- data/spec/support/fixtures/charge_subscription.xml +89 -0
- data/spec/support/fixtures/create_multi_payment_request.xml +13 -0
- data/spec/support/fixtures/create_payment_request.xml +13 -0
- data/spec/support/fixtures/failure_callback.xml +76 -0
- data/spec/support/fixtures/funding_download.csv +6 -0
- data/spec/support/fixtures/funding_list.xml +43 -0
- data/spec/support/fixtures/get_terminals.xml +38 -0
- data/spec/support/fixtures/get_terminals_none.xml +12 -0
- data/spec/support/fixtures/get_terminals_single.xml +28 -0
- data/spec/support/fixtures/multiple_payments.xml +146 -0
- data/spec/support/fixtures/payments.xml +80 -0
- data/spec/support/fixtures/payments_none.xml +13 -0
- data/spec/support/fixtures/pensio_error.xml +48 -0
- data/spec/support/fixtures/refund_captured_reservation.xml +88 -0
- data/spec/support/fixtures/release_reservation.xml +72 -0
- data/spec/support/fixtures/reservation_of_fixed_amount.xml +46 -0
- data/spec/support/fixtures/reserve_subscription_charge.xml +86 -0
- data/spec/support/fixtures/setup_subscription.xml +46 -0
- data/spec/support/fixtures/subscription_failure_callback.xml +132 -0
- data/spec/support/fixtures/success_callback.xml +119 -0
- data/spec/support/helpers.rb +38 -0
- metadata +150 -15
@@ -0,0 +1,132 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<APIResponse version="20130430">
|
3
|
+
<Header>
|
4
|
+
<Date>2014-01-17T18:42:50+01:00</Date>
|
5
|
+
<Path>API/reservationOfFixedAmount</Path>
|
6
|
+
<ErrorCode>0</ErrorCode>
|
7
|
+
<ErrorMessage/>
|
8
|
+
</Header>
|
9
|
+
<Body>
|
10
|
+
<Result>Success</Result>
|
11
|
+
<Transactions>
|
12
|
+
<Transaction>
|
13
|
+
<TransactionId>542651</TransactionId>
|
14
|
+
<AuthType>subscriptionAndCharge</AuthType>
|
15
|
+
<CardStatus>Valid</CardStatus>
|
16
|
+
<CreditCardExpiry>
|
17
|
+
<Year>2024</Year>
|
18
|
+
<Month>06</Month>
|
19
|
+
</CreditCardExpiry>
|
20
|
+
<CreditCardToken>16af2bf3185e5aab2574fc0b76237815080de66b</CreditCardToken>
|
21
|
+
<CreditCardMaskedPan>412000******1369</CreditCardMaskedPan>
|
22
|
+
<ThreeDSecureResult>Not_Applicable</ThreeDSecureResult>
|
23
|
+
<CVVCheckResult>Not_Applicable</CVVCheckResult>
|
24
|
+
<BlacklistToken>499673181bc707d524d1dd99f39753b86abb8d4e</BlacklistToken>
|
25
|
+
<ShopOrderId>usd_annual_959448_5928780257214eef3fe7255cb4ee83da8952ad524a3fdb6e1b9e5e7ed493c513</ShopOrderId>
|
26
|
+
<Shop>A Small World</Shop>
|
27
|
+
<Terminal>A Small World Test Terminal</Terminal>
|
28
|
+
<TransactionStatus>released</TransactionStatus>
|
29
|
+
<MerchantCurrency>840</MerchantCurrency>
|
30
|
+
<CardHolderCurrency>840</CardHolderCurrency>
|
31
|
+
<ReservedAmount>13.69</ReservedAmount>
|
32
|
+
<CapturedAmount>0.00</CapturedAmount>
|
33
|
+
<RefundedAmount>0.00</RefundedAmount>
|
34
|
+
<RecurringDefaultAmount>13.69</RecurringDefaultAmount>
|
35
|
+
<CreatedDate>2014-01-17 18:42:47</CreatedDate>
|
36
|
+
<UpdatedDate>2014-01-17 18:42:49</UpdatedDate>
|
37
|
+
<PaymentNature>CreditCard</PaymentNature>
|
38
|
+
<PaymentSchemeName>Visa</PaymentSchemeName>
|
39
|
+
<PaymentNatureService name="SoapTestAcquirer">
|
40
|
+
<SupportsRefunds>true</SupportsRefunds>
|
41
|
+
<SupportsRelease>true</SupportsRelease>
|
42
|
+
<SupportsMultipleCaptures>true</SupportsMultipleCaptures>
|
43
|
+
<SupportsMultipleRefunds>true</SupportsMultipleRefunds>
|
44
|
+
</PaymentNatureService>
|
45
|
+
<ChargebackEvents/>
|
46
|
+
<PaymentInfos/>
|
47
|
+
<CustomerInfo>
|
48
|
+
<UserAgent>Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:26.0) Gecko/20100101 Firefox/26.0</UserAgent>
|
49
|
+
<IpAddress>78.32.186.32</IpAddress>
|
50
|
+
<Email/>
|
51
|
+
<Username/>
|
52
|
+
<CustomerPhone/>
|
53
|
+
<OrganisationNumber/>
|
54
|
+
<CountryOfOrigin>
|
55
|
+
<Country>US</Country>
|
56
|
+
<Source>CardNumber</Source>
|
57
|
+
</CountryOfOrigin>
|
58
|
+
<BillingAddress>
|
59
|
+
<Firstname/>
|
60
|
+
<Lastname/>
|
61
|
+
<Address><![CDATA[123 Monkey Road, Anytown]]></Address>
|
62
|
+
<City><![CDATA[New York City]]></City>
|
63
|
+
<Region><![CDATA[NY]]></Region>
|
64
|
+
<Country><![CDATA[US]]></Country>
|
65
|
+
<PostalCode><![CDATA[12345678]]></PostalCode>
|
66
|
+
</BillingAddress>
|
67
|
+
</CustomerInfo>
|
68
|
+
<ReconciliationIdentifiers/>
|
69
|
+
</Transaction>
|
70
|
+
<Transaction>
|
71
|
+
<TransactionId>542661</TransactionId>
|
72
|
+
<AuthType>subscription_payment</AuthType>
|
73
|
+
<CardStatus>Valid</CardStatus>
|
74
|
+
<CreditCardExpiry>
|
75
|
+
<Year>2024</Year>
|
76
|
+
<Month>06</Month>
|
77
|
+
</CreditCardExpiry>
|
78
|
+
<CreditCardToken>16af2bf3185e5aab2574fc0b76237815080de66b</CreditCardToken>
|
79
|
+
<CreditCardMaskedPan>412000******1369</CreditCardMaskedPan>
|
80
|
+
<ThreeDSecureResult>Not_Applicable</ThreeDSecureResult>
|
81
|
+
<CVVCheckResult>Not_Applicable</CVVCheckResult>
|
82
|
+
<BlacklistToken>499673181bc707d524d1dd99f39753b86abb8d4e</BlacklistToken>
|
83
|
+
<ShopOrderId>usd_annual_959448_5928780257214eef3fe7255cb4ee83da8952ad524a3fdb6e1b9e5e7ed493c513</ShopOrderId>
|
84
|
+
<Shop>A Small World</Shop>
|
85
|
+
<Terminal>A Small World Test Terminal</Terminal>
|
86
|
+
<TransactionStatus>captured_failed</TransactionStatus>
|
87
|
+
<MerchantCurrency>840</MerchantCurrency>
|
88
|
+
<CardHolderCurrency>840</CardHolderCurrency>
|
89
|
+
<ReservedAmount>0.00</ReservedAmount>
|
90
|
+
<CapturedAmount>0.00</CapturedAmount>
|
91
|
+
<RefundedAmount>0.00</RefundedAmount>
|
92
|
+
<RecurringDefaultAmount>0.00</RecurringDefaultAmount>
|
93
|
+
<CreatedDate>2014-01-17 18:42:49</CreatedDate>
|
94
|
+
<UpdatedDate>2014-01-17 18:42:50</UpdatedDate>
|
95
|
+
<PaymentNature>CreditCard</PaymentNature>
|
96
|
+
<PaymentSchemeName>Visa</PaymentSchemeName>
|
97
|
+
<PaymentNatureService name="SoapTestAcquirer">
|
98
|
+
<SupportsRefunds>true</SupportsRefunds>
|
99
|
+
<SupportsRelease>true</SupportsRelease>
|
100
|
+
<SupportsMultipleCaptures>true</SupportsMultipleCaptures>
|
101
|
+
<SupportsMultipleRefunds>true</SupportsMultipleRefunds>
|
102
|
+
</PaymentNatureService>
|
103
|
+
<AddressVerification>1</AddressVerification>
|
104
|
+
<AddressVerificationDescription>Invalid address verification response code</AddressVerificationDescription>
|
105
|
+
<ChargebackEvents/>
|
106
|
+
<PaymentInfos/>
|
107
|
+
<CustomerInfo>
|
108
|
+
<UserAgent>Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:26.0) Gecko/20100101 Firefox/26.0</UserAgent>
|
109
|
+
<IpAddress>78.32.186.32</IpAddress>
|
110
|
+
<Email/>
|
111
|
+
<Username/>
|
112
|
+
<CustomerPhone/>
|
113
|
+
<OrganisationNumber/>
|
114
|
+
<CountryOfOrigin>
|
115
|
+
<Country>US</Country>
|
116
|
+
<Source>CardNumber</Source>
|
117
|
+
</CountryOfOrigin>
|
118
|
+
<BillingAddress>
|
119
|
+
<Firstname/>
|
120
|
+
<Lastname/>
|
121
|
+
<Address><![CDATA[123 Monkey Road, Anytown]]></Address>
|
122
|
+
<City><![CDATA[New York City]]></City>
|
123
|
+
<Region><![CDATA[NY]]></Region>
|
124
|
+
<Country><![CDATA[US]]></Country>
|
125
|
+
<PostalCode><![CDATA[12345678]]></PostalCode>
|
126
|
+
</BillingAddress>
|
127
|
+
</CustomerInfo>
|
128
|
+
<ReconciliationIdentifiers/>
|
129
|
+
</Transaction>
|
130
|
+
</Transactions>
|
131
|
+
</Body>
|
132
|
+
</APIResponse>
|
@@ -0,0 +1,119 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<APIResponse version="20130430">
|
3
|
+
<Header>
|
4
|
+
<Date>2014-01-16T15:58:53+01:00</Date>
|
5
|
+
<Path>API/reservationOfFixedAmount</Path>
|
6
|
+
<ErrorCode>0</ErrorCode>
|
7
|
+
<ErrorMessage/>
|
8
|
+
</Header>
|
9
|
+
<Body>
|
10
|
+
<Result>Success</Result>
|
11
|
+
<Transactions>
|
12
|
+
<Transaction>
|
13
|
+
<TransactionId>539101</TransactionId>
|
14
|
+
<AuthType>subscriptionAndCharge</AuthType>
|
15
|
+
<CardStatus>InvalidLuhn</CardStatus>
|
16
|
+
<CreditCardExpiry>
|
17
|
+
<Year>2020</Year>
|
18
|
+
<Month>05</Month>
|
19
|
+
</CreditCardExpiry>
|
20
|
+
<CreditCardToken>805f59195a3d21a250e4b66508a0ae3be7fb3534</CreditCardToken>
|
21
|
+
<CreditCardMaskedPan>123456778</CreditCardMaskedPan>
|
22
|
+
<ThreeDSecureResult>Not_Attempted</ThreeDSecureResult>
|
23
|
+
<CVVCheckResult>Not_Attempted</CVVCheckResult>
|
24
|
+
<BlacklistToken>4aef4cea310e8470f81e7fa041d20ce8abdf130c</BlacklistToken>
|
25
|
+
<ShopOrderId>eur_annual_6e40cd78e24072d1</ShopOrderId>
|
26
|
+
<Shop>A Small World</Shop>
|
27
|
+
<Terminal>Pensio Test Terminal</Terminal>
|
28
|
+
<TransactionStatus>recurring_confirmed</TransactionStatus>
|
29
|
+
<MerchantCurrency>978</MerchantCurrency>
|
30
|
+
<CardHolderCurrency>978</CardHolderCurrency>
|
31
|
+
<ReservedAmount>85.00</ReservedAmount>
|
32
|
+
<CapturedAmount>0.00</CapturedAmount>
|
33
|
+
<RefundedAmount>0.00</RefundedAmount>
|
34
|
+
<RecurringDefaultAmount>85.00</RecurringDefaultAmount>
|
35
|
+
<CreatedDate>2014-01-16 15:58:51</CreatedDate>
|
36
|
+
<UpdatedDate>2014-01-16 15:58:52</UpdatedDate>
|
37
|
+
<PaymentNature>CreditCard</PaymentNature>
|
38
|
+
<PaymentSchemeName>Unknown Card</PaymentSchemeName>
|
39
|
+
<PaymentNatureService name="SoapTestAcquirer">
|
40
|
+
<SupportsRefunds>true</SupportsRefunds>
|
41
|
+
<SupportsRelease>true</SupportsRelease>
|
42
|
+
<SupportsMultipleCaptures>true</SupportsMultipleCaptures>
|
43
|
+
<SupportsMultipleRefunds>true</SupportsMultipleRefunds>
|
44
|
+
</PaymentNatureService>
|
45
|
+
<ChargebackEvents/>
|
46
|
+
<PaymentInfos/>
|
47
|
+
<CustomerInfo>
|
48
|
+
<UserAgent>Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0</UserAgent>
|
49
|
+
<IpAddress>146.90.11.97</IpAddress>
|
50
|
+
<Email/>
|
51
|
+
<Username/>
|
52
|
+
<CustomerPhone/>
|
53
|
+
<OrganisationNumber/>
|
54
|
+
<CountryOfOrigin>
|
55
|
+
<Country/>
|
56
|
+
<Source>NotSet</Source>
|
57
|
+
</CountryOfOrigin>
|
58
|
+
</CustomerInfo>
|
59
|
+
<ReconciliationIdentifiers/>
|
60
|
+
</Transaction>
|
61
|
+
<Transaction>
|
62
|
+
<TransactionId>539111</TransactionId>
|
63
|
+
<AuthType>subscription_payment</AuthType>
|
64
|
+
<CardStatus>InvalidLuhn</CardStatus>
|
65
|
+
<CreditCardExpiry>
|
66
|
+
<Year>2020</Year>
|
67
|
+
<Month>05</Month>
|
68
|
+
</CreditCardExpiry>
|
69
|
+
<CreditCardToken>805f59195a3d21a250e4b66508a0ae3be7fb3534</CreditCardToken>
|
70
|
+
<CreditCardMaskedPan>123456778</CreditCardMaskedPan>
|
71
|
+
<ThreeDSecureResult>Not_Applicable</ThreeDSecureResult>
|
72
|
+
<CVVCheckResult>Not_Applicable</CVVCheckResult>
|
73
|
+
<BlacklistToken>4aef4cea310e8470f81e7fa041d20ce8abdf130c</BlacklistToken>
|
74
|
+
<ShopOrderId>eur_annual_6e40cd78e24072d1</ShopOrderId>
|
75
|
+
<Shop>A Small World</Shop>
|
76
|
+
<Terminal>Pensio Test Terminal</Terminal>
|
77
|
+
<TransactionStatus>captured</TransactionStatus>
|
78
|
+
<MerchantCurrency>978</MerchantCurrency>
|
79
|
+
<CardHolderCurrency>978</CardHolderCurrency>
|
80
|
+
<ReservedAmount>85.00</ReservedAmount>
|
81
|
+
<CapturedAmount>85.00</CapturedAmount>
|
82
|
+
<RefundedAmount>0.00</RefundedAmount>
|
83
|
+
<RecurringDefaultAmount>0.00</RecurringDefaultAmount>
|
84
|
+
<CreatedDate>2014-01-16 15:58:52</CreatedDate>
|
85
|
+
<UpdatedDate>2014-01-16 15:58:53</UpdatedDate>
|
86
|
+
<PaymentNature>CreditCard</PaymentNature>
|
87
|
+
<PaymentSchemeName>Unknown Card</PaymentSchemeName>
|
88
|
+
<PaymentNatureService name="SoapTestAcquirer">
|
89
|
+
<SupportsRefunds>true</SupportsRefunds>
|
90
|
+
<SupportsRelease>true</SupportsRelease>
|
91
|
+
<SupportsMultipleCaptures>true</SupportsMultipleCaptures>
|
92
|
+
<SupportsMultipleRefunds>true</SupportsMultipleRefunds>
|
93
|
+
</PaymentNatureService>
|
94
|
+
<ChargebackEvents/>
|
95
|
+
<PaymentInfos/>
|
96
|
+
<CustomerInfo>
|
97
|
+
<UserAgent>Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0</UserAgent>
|
98
|
+
<IpAddress>146.90.11.97</IpAddress>
|
99
|
+
<Email/>
|
100
|
+
<Username/>
|
101
|
+
<CustomerPhone/>
|
102
|
+
<OrganisationNumber/>
|
103
|
+
<CountryOfOrigin>
|
104
|
+
<Country/>
|
105
|
+
<Source>NotSet</Source>
|
106
|
+
</CountryOfOrigin>
|
107
|
+
</CustomerInfo>
|
108
|
+
<ReconciliationIdentifiers>
|
109
|
+
<ReconciliationIdentifier>
|
110
|
+
<Id>ad38fa3b-5e3a-43ec-aaa1-aefc7aa03fa3</Id>
|
111
|
+
<Amount currency="978">85.00</Amount>
|
112
|
+
<Type>captured</Type>
|
113
|
+
<Date>2014-01-16T15:58:53+01:00</Date>
|
114
|
+
</ReconciliationIdentifier>
|
115
|
+
</ReconciliationIdentifiers>
|
116
|
+
</Transaction>
|
117
|
+
</Transactions>
|
118
|
+
</Body>
|
119
|
+
</APIResponse>
|
@@ -0,0 +1,38 @@
|
|
1
|
+
module Helpers
|
2
|
+
def file_fixture(filename)
|
3
|
+
open(File.join(File.dirname(__FILE__), 'fixtures', "#{filename.to_s}")).read
|
4
|
+
end
|
5
|
+
|
6
|
+
def stub_pensio_response(path, fixture, options={})
|
7
|
+
file_ext = options[:file_ext] || 'xml'
|
8
|
+
mime_type = options[:mime_type] || 'application/xml'
|
9
|
+
base_url = options[:base_url] || 'https://test_user:password@testgateway.pensio.com'
|
10
|
+
stub_request(:post, "#{base_url}#{path}")
|
11
|
+
.to_return(
|
12
|
+
body: file_fixture("#{fixture}.#{file_ext}"),
|
13
|
+
status: 200,
|
14
|
+
headers: {
|
15
|
+
'Content-Type' => mime_type
|
16
|
+
}
|
17
|
+
)
|
18
|
+
end
|
19
|
+
|
20
|
+
def construct_response(hash)
|
21
|
+
OpenStruct.new(
|
22
|
+
parsed_response: {
|
23
|
+
'APIResponse' => {
|
24
|
+
'Body' => hash
|
25
|
+
}
|
26
|
+
}
|
27
|
+
)
|
28
|
+
end
|
29
|
+
|
30
|
+
def reservation_arguments
|
31
|
+
{
|
32
|
+
terminal: 'Pensio Test Terminal',
|
33
|
+
shop_orderid: 'Test Payment',
|
34
|
+
amount: 123.45,
|
35
|
+
currency: 'eur'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pensio_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Sell
|
@@ -9,20 +9,20 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-04-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - '>='
|
18
|
+
- - ! '>='
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '2.14'
|
21
21
|
type: :development
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- - '>='
|
25
|
+
- - ! '>='
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '2.14'
|
28
28
|
- !ruby/object:Gem::Dependency
|
@@ -71,42 +71,42 @@ dependencies:
|
|
71
71
|
name: httparty
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- - '>='
|
74
|
+
- - ! '>='
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 0.12.0
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- - '>='
|
81
|
+
- - ! '>='
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: 0.12.0
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: activesupport
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- - '>='
|
88
|
+
- - ! '>='
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '3.2'
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- - '>='
|
95
|
+
- - ! '>='
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '3.2'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: multi_xml
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- - '>='
|
102
|
+
- - ! '>='
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: 0.5.2
|
105
105
|
type: :runtime
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- - '>='
|
109
|
+
- - ! '>='
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: 0.5.2
|
112
112
|
description:
|
@@ -114,7 +114,94 @@ email: michael@asw.com
|
|
114
114
|
executables: []
|
115
115
|
extensions: []
|
116
116
|
extra_rdoc_files: []
|
117
|
-
files:
|
117
|
+
files:
|
118
|
+
- .rspec
|
119
|
+
- Gemfile
|
120
|
+
- Gemfile.lock
|
121
|
+
- Guardfile
|
122
|
+
- LICENSE
|
123
|
+
- README.md
|
124
|
+
- lib/pensio_api.rb
|
125
|
+
- lib/pensio_api/billing_address.rb
|
126
|
+
- lib/pensio_api/callback.rb
|
127
|
+
- lib/pensio_api/credentials.rb
|
128
|
+
- lib/pensio_api/ecommerce.rb
|
129
|
+
- lib/pensio_api/errors/bad_request.rb
|
130
|
+
- lib/pensio_api/errors/gateway_error.rb
|
131
|
+
- lib/pensio_api/errors/no_credentials.rb
|
132
|
+
- lib/pensio_api/funding_list.rb
|
133
|
+
- lib/pensio_api/funding_list_request.rb
|
134
|
+
- lib/pensio_api/mixins/has_transactions.rb
|
135
|
+
- lib/pensio_api/mixins/id.rb
|
136
|
+
- lib/pensio_api/mixins/method_missing.rb
|
137
|
+
- lib/pensio_api/mixins/request_defaults.rb
|
138
|
+
- lib/pensio_api/mixins/timestamps.rb
|
139
|
+
- lib/pensio_api/request.rb
|
140
|
+
- lib/pensio_api/reservation.rb
|
141
|
+
- lib/pensio_api/responses/base.rb
|
142
|
+
- lib/pensio_api/responses/funding_list.rb
|
143
|
+
- lib/pensio_api/responses/gateway_url.rb
|
144
|
+
- lib/pensio_api/responses/refund.rb
|
145
|
+
- lib/pensio_api/responses/reservation.rb
|
146
|
+
- lib/pensio_api/responses/reservation_capture.rb
|
147
|
+
- lib/pensio_api/responses/reservation_release.rb
|
148
|
+
- lib/pensio_api/responses/subscription_charge.rb
|
149
|
+
- lib/pensio_api/responses/subscription_failure_callback.rb
|
150
|
+
- lib/pensio_api/responses/success_callback.rb
|
151
|
+
- lib/pensio_api/responses/terminal.rb
|
152
|
+
- lib/pensio_api/responses/transaction.rb
|
153
|
+
- lib/pensio_api/subscription.rb
|
154
|
+
- lib/pensio_api/terminal.rb
|
155
|
+
- lib/pensio_api/transaction.rb
|
156
|
+
- pensio_api.gemspec
|
157
|
+
- spec/lib/pensio_api/billing_address_spec.rb
|
158
|
+
- spec/lib/pensio_api/callback_spec.rb
|
159
|
+
- spec/lib/pensio_api/ecommerce_spec.rb
|
160
|
+
- spec/lib/pensio_api/errors/bad_request_spec.rb
|
161
|
+
- spec/lib/pensio_api/errors/gateway_error_spec.rb
|
162
|
+
- spec/lib/pensio_api/funding_list_request_spec.rb
|
163
|
+
- spec/lib/pensio_api/funding_list_spec.rb
|
164
|
+
- spec/lib/pensio_api/request_spec.rb
|
165
|
+
- spec/lib/pensio_api/reservation_spec.rb
|
166
|
+
- spec/lib/pensio_api/responses/base_spec.rb
|
167
|
+
- spec/lib/pensio_api/responses/funding_list_spec.rb
|
168
|
+
- spec/lib/pensio_api/responses/gateway_url_spec.rb
|
169
|
+
- spec/lib/pensio_api/responses/refund_spec.rb
|
170
|
+
- spec/lib/pensio_api/responses/reservation_capture_spec.rb
|
171
|
+
- spec/lib/pensio_api/responses/reservation_release_spec.rb
|
172
|
+
- spec/lib/pensio_api/responses/reservation_spec.rb
|
173
|
+
- spec/lib/pensio_api/responses/subscription_charge_spec.rb
|
174
|
+
- spec/lib/pensio_api/responses/subscription_failure_callback_spec.rb
|
175
|
+
- spec/lib/pensio_api/responses/success_callback_spec.rb
|
176
|
+
- spec/lib/pensio_api/responses/terminal_spec.rb
|
177
|
+
- spec/lib/pensio_api/responses/transaction_spec.rb
|
178
|
+
- spec/lib/pensio_api/subscription_spec.rb
|
179
|
+
- spec/lib/pensio_api/terminal_spec.rb
|
180
|
+
- spec/lib/pensio_api/transaction_spec.rb
|
181
|
+
- spec/spec_helper.rb
|
182
|
+
- spec/support/fixtures/bad_request_error.xml
|
183
|
+
- spec/support/fixtures/capture_reservation.xml
|
184
|
+
- spec/support/fixtures/charge_subscription.xml
|
185
|
+
- spec/support/fixtures/create_multi_payment_request.xml
|
186
|
+
- spec/support/fixtures/create_payment_request.xml
|
187
|
+
- spec/support/fixtures/failure_callback.xml
|
188
|
+
- spec/support/fixtures/funding_download.csv
|
189
|
+
- spec/support/fixtures/funding_list.xml
|
190
|
+
- spec/support/fixtures/get_terminals.xml
|
191
|
+
- spec/support/fixtures/get_terminals_none.xml
|
192
|
+
- spec/support/fixtures/get_terminals_single.xml
|
193
|
+
- spec/support/fixtures/multiple_payments.xml
|
194
|
+
- spec/support/fixtures/payments.xml
|
195
|
+
- spec/support/fixtures/payments_none.xml
|
196
|
+
- spec/support/fixtures/pensio_error.xml
|
197
|
+
- spec/support/fixtures/refund_captured_reservation.xml
|
198
|
+
- spec/support/fixtures/release_reservation.xml
|
199
|
+
- spec/support/fixtures/reservation_of_fixed_amount.xml
|
200
|
+
- spec/support/fixtures/reserve_subscription_charge.xml
|
201
|
+
- spec/support/fixtures/setup_subscription.xml
|
202
|
+
- spec/support/fixtures/subscription_failure_callback.xml
|
203
|
+
- spec/support/fixtures/success_callback.xml
|
204
|
+
- spec/support/helpers.rb
|
118
205
|
homepage:
|
119
206
|
licenses:
|
120
207
|
- BSD-3-Clause
|
@@ -125,18 +212,66 @@ require_paths:
|
|
125
212
|
- lib
|
126
213
|
required_ruby_version: !ruby/object:Gem::Requirement
|
127
214
|
requirements:
|
128
|
-
- - '>='
|
215
|
+
- - ! '>='
|
129
216
|
- !ruby/object:Gem::Version
|
130
217
|
version: '0'
|
131
218
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
219
|
requirements:
|
133
|
-
- - '>='
|
220
|
+
- - ! '>='
|
134
221
|
- !ruby/object:Gem::Version
|
135
222
|
version: '0'
|
136
223
|
requirements: []
|
137
224
|
rubyforge_project:
|
138
|
-
rubygems_version: 2.
|
225
|
+
rubygems_version: 2.2.2
|
139
226
|
signing_key:
|
140
227
|
specification_version: 4
|
141
228
|
summary: Provides integration for the Pensio Merchant API
|
142
|
-
test_files:
|
229
|
+
test_files:
|
230
|
+
- spec/lib/pensio_api/billing_address_spec.rb
|
231
|
+
- spec/lib/pensio_api/callback_spec.rb
|
232
|
+
- spec/lib/pensio_api/ecommerce_spec.rb
|
233
|
+
- spec/lib/pensio_api/errors/bad_request_spec.rb
|
234
|
+
- spec/lib/pensio_api/errors/gateway_error_spec.rb
|
235
|
+
- spec/lib/pensio_api/funding_list_request_spec.rb
|
236
|
+
- spec/lib/pensio_api/funding_list_spec.rb
|
237
|
+
- spec/lib/pensio_api/request_spec.rb
|
238
|
+
- spec/lib/pensio_api/reservation_spec.rb
|
239
|
+
- spec/lib/pensio_api/responses/base_spec.rb
|
240
|
+
- spec/lib/pensio_api/responses/funding_list_spec.rb
|
241
|
+
- spec/lib/pensio_api/responses/gateway_url_spec.rb
|
242
|
+
- spec/lib/pensio_api/responses/refund_spec.rb
|
243
|
+
- spec/lib/pensio_api/responses/reservation_capture_spec.rb
|
244
|
+
- spec/lib/pensio_api/responses/reservation_release_spec.rb
|
245
|
+
- spec/lib/pensio_api/responses/reservation_spec.rb
|
246
|
+
- spec/lib/pensio_api/responses/subscription_charge_spec.rb
|
247
|
+
- spec/lib/pensio_api/responses/subscription_failure_callback_spec.rb
|
248
|
+
- spec/lib/pensio_api/responses/success_callback_spec.rb
|
249
|
+
- spec/lib/pensio_api/responses/terminal_spec.rb
|
250
|
+
- spec/lib/pensio_api/responses/transaction_spec.rb
|
251
|
+
- spec/lib/pensio_api/subscription_spec.rb
|
252
|
+
- spec/lib/pensio_api/terminal_spec.rb
|
253
|
+
- spec/lib/pensio_api/transaction_spec.rb
|
254
|
+
- spec/spec_helper.rb
|
255
|
+
- spec/support/fixtures/bad_request_error.xml
|
256
|
+
- spec/support/fixtures/capture_reservation.xml
|
257
|
+
- spec/support/fixtures/charge_subscription.xml
|
258
|
+
- spec/support/fixtures/create_multi_payment_request.xml
|
259
|
+
- spec/support/fixtures/create_payment_request.xml
|
260
|
+
- spec/support/fixtures/failure_callback.xml
|
261
|
+
- spec/support/fixtures/funding_download.csv
|
262
|
+
- spec/support/fixtures/funding_list.xml
|
263
|
+
- spec/support/fixtures/get_terminals.xml
|
264
|
+
- spec/support/fixtures/get_terminals_none.xml
|
265
|
+
- spec/support/fixtures/get_terminals_single.xml
|
266
|
+
- spec/support/fixtures/multiple_payments.xml
|
267
|
+
- spec/support/fixtures/payments.xml
|
268
|
+
- spec/support/fixtures/payments_none.xml
|
269
|
+
- spec/support/fixtures/pensio_error.xml
|
270
|
+
- spec/support/fixtures/refund_captured_reservation.xml
|
271
|
+
- spec/support/fixtures/release_reservation.xml
|
272
|
+
- spec/support/fixtures/reservation_of_fixed_amount.xml
|
273
|
+
- spec/support/fixtures/reserve_subscription_charge.xml
|
274
|
+
- spec/support/fixtures/setup_subscription.xml
|
275
|
+
- spec/support/fixtures/subscription_failure_callback.xml
|
276
|
+
- spec/support/fixtures/success_callback.xml
|
277
|
+
- spec/support/helpers.rb
|