braintree 2.29.0 → 2.30.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/braintree.rb +1 -0
- data/lib/braintree/dispute.rb +45 -0
- data/lib/braintree/transaction.rb +2 -0
- data/lib/braintree/transaction_search.rb +1 -1
- data/lib/braintree/version.rb +1 -1
- data/spec/httpsd.pid +1 -1
- data/spec/integration/braintree/transaction_search_spec.rb +110 -0
- data/spec/integration/braintree/transaction_spec.rb +31 -0
- data/spec/unit/braintree/dispute_spec.rb +15 -0
- metadata +121 -115
- checksums.yaml +0 -7
data/lib/braintree.rb
CHANGED
@@ -39,6 +39,7 @@ require "braintree/descriptor"
|
|
39
39
|
require "braintree/digest"
|
40
40
|
require "braintree/discount"
|
41
41
|
require "braintree/discount_gateway"
|
42
|
+
require "braintree/dispute"
|
42
43
|
require "braintree/error_codes"
|
43
44
|
require "braintree/error_result"
|
44
45
|
require "braintree/errors"
|
@@ -0,0 +1,45 @@
|
|
1
|
+
module Braintree
|
2
|
+
class Dispute # :nodoc:
|
3
|
+
include BaseModule
|
4
|
+
|
5
|
+
attr_reader :amount
|
6
|
+
attr_reader :received_date
|
7
|
+
attr_reader :reply_by_date
|
8
|
+
attr_reader :status
|
9
|
+
attr_reader :reason
|
10
|
+
attr_reader :currency_iso_code
|
11
|
+
|
12
|
+
module Status
|
13
|
+
Open = "open"
|
14
|
+
Lost = "lost"
|
15
|
+
Won = "won"
|
16
|
+
end
|
17
|
+
|
18
|
+
module Reason
|
19
|
+
CancelledRecurringTransaction = "cancelled_recurring_transaction"
|
20
|
+
CreditNotProcessed = "credit_not_processed"
|
21
|
+
Duplicate = "duplicate"
|
22
|
+
Fraud = "fraud"
|
23
|
+
General = "general"
|
24
|
+
InvalidAccount = "invalid_account"
|
25
|
+
NotRecognized = "not_recognized"
|
26
|
+
ProductNotReceived = "product_not_received"
|
27
|
+
ProductUnsatisfactory = "product_unsatisfactory"
|
28
|
+
TransactionAmountDiffers = "transaction_amount_differs"
|
29
|
+
end
|
30
|
+
|
31
|
+
class << self
|
32
|
+
protected :new
|
33
|
+
def _new(*args) # :nodoc:
|
34
|
+
self.new *args
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
def initialize(attributes) # :nodoc:
|
39
|
+
set_instance_variables_from_hash(attributes)
|
40
|
+
@received_date = Date.parse(received_date)
|
41
|
+
@reply_by_date = Date.parse(reply_by_date) unless reply_by_date.nil?
|
42
|
+
@amount = Util.to_big_decimal(amount)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -63,6 +63,7 @@ module Braintree
|
|
63
63
|
attr_reader :custom_fields
|
64
64
|
attr_reader :cvv_response_code
|
65
65
|
attr_reader :disbursement_details
|
66
|
+
attr_reader :disputes
|
66
67
|
attr_reader :descriptor
|
67
68
|
attr_reader :escrow_status
|
68
69
|
attr_reader :gateway_rejection_reason
|
@@ -223,6 +224,7 @@ module Braintree
|
|
223
224
|
@status_history = attributes[:status_history] ? attributes[:status_history].map { |s| StatusDetails.new(s) } : []
|
224
225
|
@tax_amount = Util.to_big_decimal(tax_amount)
|
225
226
|
@descriptor = Descriptor.new(@descriptor)
|
227
|
+
disputes.map! { |attrs| Dispute._new(attrs) } if disputes
|
226
228
|
@custom_fields = attributes[:custom_fields].is_a?(Hash) ? attributes[:custom_fields] : {}
|
227
229
|
add_ons.map! { |attrs| AddOn._new(attrs) } if add_ons
|
228
230
|
discounts.map! { |attrs| Discount._new(attrs) } if discounts
|
@@ -63,6 +63,6 @@ module Braintree
|
|
63
63
|
range_fields :amount, :created_at, :authorization_expired_at, :authorized_at,
|
64
64
|
:failed_at, :gateway_rejected_at, :processor_declined_at,
|
65
65
|
:settled_at, :submitted_for_settlement_at, :voided_at,
|
66
|
-
:disbursement_date
|
66
|
+
:disbursement_date, :dispute_date
|
67
67
|
end
|
68
68
|
end
|
data/lib/braintree/version.rb
CHANGED
data/spec/httpsd.pid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
15069
|
@@ -693,6 +693,116 @@ describe Braintree::Transaction, "search" do
|
|
693
693
|
end
|
694
694
|
end
|
695
695
|
|
696
|
+
context "dispute_date" do
|
697
|
+
it "searches on dispute_date in UTC" do
|
698
|
+
disputed_time = Time.parse("2014-03-01 00:00:00 UTC")
|
699
|
+
transaction_id = "disputedtransaction"
|
700
|
+
|
701
|
+
collection = Braintree::Transaction.search do |search|
|
702
|
+
search.id.is transaction_id
|
703
|
+
search.dispute_date.between(
|
704
|
+
disputed_time - 60,
|
705
|
+
disputed_time + 60
|
706
|
+
)
|
707
|
+
end
|
708
|
+
|
709
|
+
collection.maximum_size.should == 1
|
710
|
+
collection.first.id.should == transaction_id
|
711
|
+
|
712
|
+
collection = Braintree::Transaction.search do |search|
|
713
|
+
search.id.is transaction_id
|
714
|
+
search.dispute_date >= disputed_time - 1
|
715
|
+
end
|
716
|
+
|
717
|
+
collection.maximum_size.should == 2
|
718
|
+
collection.first.id.should == transaction_id
|
719
|
+
|
720
|
+
collection = Braintree::Transaction.search do |search|
|
721
|
+
search.id.is transaction_id
|
722
|
+
search.dispute_date <= disputed_time + 1
|
723
|
+
end
|
724
|
+
|
725
|
+
collection.maximum_size.should == 1
|
726
|
+
collection.first.id.should == transaction_id
|
727
|
+
|
728
|
+
collection = Braintree::Transaction.search do |search|
|
729
|
+
search.id.is transaction_id
|
730
|
+
search.disbursement_date.between(
|
731
|
+
disputed_time - 300,
|
732
|
+
disputed_time - 100
|
733
|
+
)
|
734
|
+
end
|
735
|
+
|
736
|
+
collection.maximum_size.should == 0
|
737
|
+
|
738
|
+
collection = Braintree::Transaction.search do |search|
|
739
|
+
search.id.is transaction_id
|
740
|
+
search.dispute_date.is disputed_time
|
741
|
+
end
|
742
|
+
|
743
|
+
collection.maximum_size.should == 1
|
744
|
+
collection.first.id.should == transaction_id
|
745
|
+
end
|
746
|
+
|
747
|
+
it "searches on dispute_date in local time" do
|
748
|
+
now = Time.parse("2014-03-01 18:00:00 CST")
|
749
|
+
transaction_id = "disputedtransaction"
|
750
|
+
|
751
|
+
collection = Braintree::Transaction.search do |search|
|
752
|
+
search.id.is transaction_id
|
753
|
+
search.dispute_date.between(
|
754
|
+
now - 60,
|
755
|
+
now + 60
|
756
|
+
)
|
757
|
+
end
|
758
|
+
|
759
|
+
collection.maximum_size.should == 1
|
760
|
+
collection.first.id.should == transaction_id
|
761
|
+
|
762
|
+
collection = Braintree::Transaction.search do |search|
|
763
|
+
search.id.is transaction_id
|
764
|
+
search.dispute_date >= now - 60
|
765
|
+
end
|
766
|
+
|
767
|
+
collection.maximum_size.should == 2
|
768
|
+
collection.first.id.should == transaction_id
|
769
|
+
|
770
|
+
collection = Braintree::Transaction.search do |search|
|
771
|
+
search.id.is transaction_id
|
772
|
+
search.dispute_date <= now + 60
|
773
|
+
end
|
774
|
+
|
775
|
+
collection.maximum_size.should == 1
|
776
|
+
collection.first.id.should == transaction_id
|
777
|
+
|
778
|
+
collection = Braintree::Transaction.search do |search|
|
779
|
+
search.id.is transaction_id
|
780
|
+
search.dispute_date.between(
|
781
|
+
now + 100,
|
782
|
+
now + 300
|
783
|
+
)
|
784
|
+
end
|
785
|
+
|
786
|
+
collection.maximum_size.should == 0
|
787
|
+
end
|
788
|
+
|
789
|
+
it "searches on dispute_date with date ranges" do
|
790
|
+
disputed_date = Date.new(2014, 3, 1)
|
791
|
+
transaction_id = "disputedtransaction"
|
792
|
+
|
793
|
+
collection = Braintree::Transaction.search do |search|
|
794
|
+
search.id.is transaction_id
|
795
|
+
search.dispute_date.between(
|
796
|
+
disputed_date - 1,
|
797
|
+
disputed_date + 1
|
798
|
+
)
|
799
|
+
end
|
800
|
+
|
801
|
+
collection.maximum_size.should == 1
|
802
|
+
collection.first.id.should == transaction_id
|
803
|
+
end
|
804
|
+
end
|
805
|
+
|
696
806
|
context "status date ranges" do
|
697
807
|
it "finds transactions authorized in a given range" do
|
698
808
|
transaction = Braintree::Transaction.sale!(
|
@@ -2074,6 +2074,37 @@ describe Braintree::Transaction do
|
|
2074
2074
|
created_transaction.disbursed?.should == false
|
2075
2075
|
end
|
2076
2076
|
end
|
2077
|
+
|
2078
|
+
context "disputes" do
|
2079
|
+
it "includes disputes on found transactions" do
|
2080
|
+
found_transaction = Braintree::Transaction.find("disputedtransaction")
|
2081
|
+
|
2082
|
+
found_transaction.disputes.count.should == 2
|
2083
|
+
|
2084
|
+
dispute = found_transaction.disputes.first
|
2085
|
+
dispute.received_date.should == Date.new(2014, 3, 1)
|
2086
|
+
dispute.reply_by_date.should == Date.new(2014, 3, 21)
|
2087
|
+
dispute.amount.should == Braintree::Util.to_big_decimal("250.00")
|
2088
|
+
dispute.currency_iso_code.should == "USD"
|
2089
|
+
dispute.reason.should == Braintree::Dispute::Reason::Fraud
|
2090
|
+
dispute.status.should == Braintree::Dispute::Status::Won
|
2091
|
+
end
|
2092
|
+
|
2093
|
+
it "is not disputed" do
|
2094
|
+
result = Braintree::Transaction.create(
|
2095
|
+
:type => "sale",
|
2096
|
+
:amount => Braintree::Test::TransactionAmounts::Authorize,
|
2097
|
+
:credit_card => {
|
2098
|
+
:number => Braintree::Test::CreditCardNumbers::Visa,
|
2099
|
+
:expiration_date => "05/2009"
|
2100
|
+
}
|
2101
|
+
)
|
2102
|
+
result.success?.should == true
|
2103
|
+
created_transaction = result.transaction
|
2104
|
+
|
2105
|
+
created_transaction.disputes.should == []
|
2106
|
+
end
|
2107
|
+
end
|
2077
2108
|
end
|
2078
2109
|
|
2079
2110
|
describe "self.hold_in_escrow" do
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + "/../spec_helper")
|
2
|
+
|
3
|
+
describe Braintree::Dispute do
|
4
|
+
describe "initialize" do
|
5
|
+
it "handles nil reply_by_date" do
|
6
|
+
dispute = Braintree::Dispute._new(
|
7
|
+
:amount => "500.00",
|
8
|
+
:received_date => "2014-03-01",
|
9
|
+
:reply_by_date => nil
|
10
|
+
)
|
11
|
+
|
12
|
+
dispute.reply_by_date.should == nil
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,27 +1,30 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: braintree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.30.0
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Braintree
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
12
|
+
date: 2014-03-31 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: builder
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- - '>='
|
19
|
+
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: 2.0.0
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- - '>='
|
27
|
+
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 2.0.0
|
27
30
|
description: Ruby library for integrating with the Braintree Gateway
|
@@ -33,168 +36,171 @@ files:
|
|
33
36
|
- README.rdoc
|
34
37
|
- LICENSE
|
35
38
|
- lib/braintree.rb
|
36
|
-
- lib/braintree/settlement_batch_summary_gateway.rb
|
37
|
-
- lib/braintree/discount.rb
|
38
|
-
- lib/braintree/base_module.rb
|
39
|
-
- lib/braintree/xml.rb
|
40
|
-
- lib/braintree/customer.rb
|
41
|
-
- lib/braintree/validation_error.rb
|
42
|
-
- lib/braintree/transaction_gateway.rb
|
43
|
-
- lib/braintree/gateway.rb
|
44
|
-
- lib/braintree/exceptions.rb
|
45
39
|
- lib/braintree/customer_gateway.rb
|
46
|
-
- lib/braintree/credit_card_verification.rb
|
47
40
|
- lib/braintree/digest.rb
|
48
|
-
- lib/braintree/credit_card.rb
|
49
41
|
- lib/braintree/discount_gateway.rb
|
50
|
-
- lib/braintree/
|
51
|
-
- lib/braintree/
|
52
|
-
- lib/braintree/
|
53
|
-
- lib/braintree/
|
54
|
-
- lib/braintree/
|
55
|
-
- lib/braintree/
|
56
|
-
- lib/braintree/
|
42
|
+
- lib/braintree/webhook_testing_gateway.rb
|
43
|
+
- lib/braintree/customer_search.rb
|
44
|
+
- lib/braintree/transaction_gateway.rb
|
45
|
+
- lib/braintree/credit_card_verification.rb
|
46
|
+
- lib/braintree/address.rb
|
47
|
+
- lib/braintree/plan_gateway.rb
|
48
|
+
- lib/braintree/customer.rb
|
57
49
|
- lib/braintree/merchant_account_gateway.rb
|
58
|
-
- lib/braintree/
|
59
|
-
- lib/braintree/
|
60
|
-
- lib/braintree/
|
61
|
-
- lib/braintree/
|
62
|
-
- lib/braintree/
|
63
|
-
- lib/braintree/validation_error_collection.rb
|
64
|
-
- lib/braintree/address_gateway.rb
|
65
|
-
- lib/braintree/subscription_gateway.rb
|
50
|
+
- lib/braintree/error_result.rb
|
51
|
+
- lib/braintree/base_module.rb
|
52
|
+
- lib/braintree/modification.rb
|
53
|
+
- lib/braintree/webhook_testing.rb
|
54
|
+
- lib/braintree/errors.rb
|
66
55
|
- lib/braintree/webhook_notification_gateway.rb
|
67
|
-
- lib/braintree/
|
68
|
-
- lib/braintree/
|
56
|
+
- lib/braintree/validation_error.rb
|
57
|
+
- lib/braintree/transaction/disbursement_details.rb
|
58
|
+
- lib/braintree/transaction/customer_details.rb
|
59
|
+
- lib/braintree/transaction/status_details.rb
|
60
|
+
- lib/braintree/transaction/address_details.rb
|
61
|
+
- lib/braintree/transaction/subscription_details.rb
|
62
|
+
- lib/braintree/transaction/credit_card_details.rb
|
63
|
+
- lib/braintree/settlement_batch_summary_gateway.rb
|
64
|
+
- lib/braintree/subscription.rb
|
69
65
|
- lib/braintree/test/transaction_amounts.rb
|
70
|
-
- lib/braintree/test/venmo_sdk.rb
|
71
66
|
- lib/braintree/test/merchant_account.rb
|
67
|
+
- lib/braintree/test/credit_card.rb
|
68
|
+
- lib/braintree/test/venmo_sdk.rb
|
69
|
+
- lib/braintree/merchant_account.rb
|
70
|
+
- lib/braintree/descriptor.rb
|
71
|
+
- lib/braintree/settlement_batch_summary.rb
|
72
|
+
- lib/braintree/configuration.rb
|
73
|
+
- lib/braintree/subscription_gateway.rb
|
74
|
+
- lib/braintree/credit_card_verification_gateway.rb
|
72
75
|
- lib/braintree/xml/rexml.rb
|
73
76
|
- lib/braintree/xml/generator.rb
|
74
77
|
- lib/braintree/xml/libxml.rb
|
75
78
|
- lib/braintree/xml/parser.rb
|
76
79
|
- lib/braintree/transparent_redirect.rb
|
77
|
-
- lib/braintree/plan_gateway.rb
|
78
|
-
- lib/braintree/transaction_search.rb
|
79
|
-
- lib/braintree/customer_search.rb
|
80
|
-
- lib/braintree/transparent_redirect_gateway.rb
|
81
|
-
- lib/braintree/webhook_notification.rb
|
82
|
-
- lib/braintree/webhook_testing_gateway.rb
|
83
|
-
- lib/braintree/webhook_testing.rb
|
84
|
-
- lib/braintree/credit_card_verification_gateway.rb
|
85
|
-
- lib/braintree/descriptor.rb
|
86
|
-
- lib/braintree/modification.rb
|
87
|
-
- lib/braintree/transaction.rb
|
88
|
-
- lib/braintree/merchant_account/individual_details.rb
|
89
|
-
- lib/braintree/merchant_account/address_details.rb
|
90
|
-
- lib/braintree/merchant_account/funding_details.rb
|
91
|
-
- lib/braintree/merchant_account/business_details.rb
|
92
80
|
- lib/braintree/add_on_gateway.rb
|
81
|
+
- lib/braintree/settlement_batch.rb
|
82
|
+
- lib/braintree/util.rb
|
83
|
+
- lib/braintree/resource_collection.rb
|
93
84
|
- lib/braintree/successful_result.rb
|
85
|
+
- lib/braintree/validation_error_collection.rb
|
86
|
+
- lib/braintree/discount.rb
|
87
|
+
- lib/braintree/version.rb
|
88
|
+
- lib/braintree/credit_card.rb
|
89
|
+
- lib/braintree/error_codes.rb
|
94
90
|
- lib/braintree/advanced_search.rb
|
91
|
+
- lib/braintree/transaction.rb
|
92
|
+
- lib/braintree/dispute.rb
|
93
|
+
- lib/braintree/exceptions.rb
|
94
|
+
- lib/braintree/xml.rb
|
95
|
+
- lib/braintree/transaction_search.rb
|
96
|
+
- lib/braintree/webhook_notification.rb
|
95
97
|
- lib/braintree/subscription_search.rb
|
96
|
-
- lib/braintree/
|
97
|
-
- lib/braintree/settlement_batch_summary.rb
|
98
|
-
- lib/braintree/address.rb
|
99
|
-
- lib/braintree/settlement_batch.rb
|
100
|
-
- lib/braintree/transaction/disbursement_details.rb
|
101
|
-
- lib/braintree/transaction/status_details.rb
|
102
|
-
- lib/braintree/transaction/address_details.rb
|
103
|
-
- lib/braintree/transaction/subscription_details.rb
|
104
|
-
- lib/braintree/transaction/customer_details.rb
|
105
|
-
- lib/braintree/transaction/credit_card_details.rb
|
106
|
-
- lib/braintree/errors.rb
|
98
|
+
- lib/braintree/address_gateway.rb
|
107
99
|
- lib/braintree/http.rb
|
108
|
-
- lib/
|
100
|
+
- lib/braintree/plan.rb
|
101
|
+
- lib/braintree/disbursement.rb
|
102
|
+
- lib/braintree/add_on.rb
|
103
|
+
- lib/braintree/credit_card_verification_search.rb
|
104
|
+
- lib/braintree/transparent_redirect_gateway.rb
|
105
|
+
- lib/braintree/merchant_account/individual_details.rb
|
106
|
+
- lib/braintree/merchant_account/funding_details.rb
|
107
|
+
- lib/braintree/merchant_account/business_details.rb
|
108
|
+
- lib/braintree/merchant_account/address_details.rb
|
109
|
+
- lib/braintree/credit_card_gateway.rb
|
110
|
+
- lib/braintree/gateway.rb
|
111
|
+
- lib/braintree/address/country_names.rb
|
109
112
|
- lib/ssl/securetrust_ca.crt
|
110
|
-
- lib/ssl/www_braintreegateway_com.ca.crt
|
111
113
|
- lib/ssl/sandbox_braintreegateway_com.ca.crt
|
114
|
+
- lib/ssl/www_braintreegateway_com.ca.crt
|
115
|
+
- lib/ssl/api_braintreegateway_com.ca.crt
|
112
116
|
- spec/spec.opts
|
117
|
+
- spec/integration/braintree/subscription_spec.rb
|
118
|
+
- spec/integration/braintree/customer_search_spec.rb
|
119
|
+
- spec/integration/braintree/disbursement_spec.rb
|
120
|
+
- spec/integration/braintree/advanced_search_spec.rb
|
121
|
+
- spec/integration/braintree/customer_spec.rb
|
122
|
+
- spec/integration/braintree/transparent_redirect_spec.rb
|
123
|
+
- spec/integration/braintree/test/transaction_amounts_spec.rb
|
124
|
+
- spec/integration/braintree/error_codes_spec.rb
|
125
|
+
- spec/integration/braintree/transaction_search_spec.rb
|
126
|
+
- spec/integration/braintree/credit_card_verification_search_spec.rb
|
127
|
+
- spec/integration/braintree/add_on_spec.rb
|
128
|
+
- spec/integration/braintree/credit_card_verification_spec.rb
|
129
|
+
- spec/integration/braintree/plan_spec.rb
|
130
|
+
- spec/integration/braintree/credit_card_spec.rb
|
131
|
+
- spec/integration/braintree/discount_spec.rb
|
132
|
+
- spec/integration/braintree/http_spec.rb
|
133
|
+
- spec/integration/braintree/merchant_account_spec.rb
|
134
|
+
- spec/integration/braintree/address_spec.rb
|
135
|
+
- spec/integration/braintree/transaction_spec.rb
|
136
|
+
- spec/integration/braintree/settlement_batch_summary_spec.rb
|
137
|
+
- spec/integration/spec_helper.rb
|
113
138
|
- spec/ssl/privateKey.key
|
114
139
|
- spec/ssl/certificate.crt
|
115
140
|
- spec/ssl/geotrust_global.crt
|
116
|
-
- spec/hacks/tcp_socket.rb
|
117
|
-
- spec/script/httpsd.rb
|
118
|
-
- spec/unit/braintree_spec.rb
|
119
|
-
- spec/unit/braintree/credit_card_spec.rb
|
120
|
-
- spec/unit/braintree/errors_spec.rb
|
121
|
-
- spec/unit/braintree/subscription_search_spec.rb
|
122
|
-
- spec/unit/braintree/util_spec.rb
|
123
|
-
- spec/unit/braintree/address_spec.rb
|
124
141
|
- spec/unit/braintree/subscription_spec.rb
|
125
|
-
- spec/unit/braintree/
|
126
|
-
- spec/unit/braintree/transparent_redirect_spec.rb
|
127
|
-
- spec/unit/braintree/resource_collection_spec.rb
|
128
|
-
- spec/unit/braintree/http_spec.rb
|
129
|
-
- spec/unit/braintree/merchant_account_spec.rb
|
130
|
-
- spec/unit/braintree/customer_spec.rb
|
142
|
+
- spec/unit/braintree/base_module_spec.rb
|
131
143
|
- spec/unit/braintree/error_result_spec.rb
|
132
|
-
- spec/unit/braintree/
|
133
|
-
- spec/unit/braintree/
|
144
|
+
- spec/unit/braintree/validation_error_collection_spec.rb
|
145
|
+
- spec/unit/braintree/disbursement_spec.rb
|
146
|
+
- spec/unit/braintree/digest_spec.rb
|
134
147
|
- spec/unit/braintree/validation_error_spec.rb
|
148
|
+
- spec/unit/braintree/resource_collection_spec.rb
|
149
|
+
- spec/unit/braintree/customer_spec.rb
|
150
|
+
- spec/unit/braintree/transaction/deposit_details_spec.rb
|
151
|
+
- spec/unit/braintree/transaction/customer_details_spec.rb
|
152
|
+
- spec/unit/braintree/transaction/credit_card_details_spec.rb
|
153
|
+
- spec/unit/braintree/modification_spec.rb
|
154
|
+
- spec/unit/braintree/transparent_redirect_spec.rb
|
155
|
+
- spec/unit/braintree/transaction_search_spec.rb
|
156
|
+
- spec/unit/braintree/credit_card_verification_search_spec.rb
|
135
157
|
- spec/unit/braintree/xml/parser_spec.rb
|
136
158
|
- spec/unit/braintree/xml/rexml_spec.rb
|
137
159
|
- spec/unit/braintree/xml/libxml_spec.rb
|
138
|
-
- spec/unit/braintree/
|
139
|
-
- spec/unit/braintree/
|
140
|
-
- spec/unit/braintree/
|
160
|
+
- spec/unit/braintree/dispute_spec.rb
|
161
|
+
- spec/unit/braintree/credit_card_verification_spec.rb
|
162
|
+
- spec/unit/braintree/util_spec.rb
|
163
|
+
- spec/unit/braintree/webhook_notification_spec.rb
|
164
|
+
- spec/unit/braintree/errors_spec.rb
|
141
165
|
- spec/unit/braintree/configuration_spec.rb
|
166
|
+
- spec/unit/braintree/credit_card_spec.rb
|
142
167
|
- spec/unit/braintree/xml_spec.rb
|
143
|
-
- spec/unit/braintree/
|
144
|
-
- spec/unit/braintree/
|
145
|
-
- spec/unit/braintree/
|
146
|
-
- spec/unit/braintree/
|
147
|
-
- spec/unit/braintree/
|
148
|
-
- spec/unit/braintree/
|
149
|
-
- spec/unit/braintree/transaction/credit_card_details_spec.rb
|
150
|
-
- spec/unit/braintree/transaction_search_spec.rb
|
168
|
+
- spec/unit/braintree/http_spec.rb
|
169
|
+
- spec/unit/braintree/merchant_account_spec.rb
|
170
|
+
- spec/unit/braintree/subscription_search_spec.rb
|
171
|
+
- spec/unit/braintree/address_spec.rb
|
172
|
+
- spec/unit/braintree/transaction_spec.rb
|
173
|
+
- spec/unit/braintree/successful_result_spec.rb
|
151
174
|
- spec/unit/spec_helper.rb
|
152
|
-
- spec/
|
153
|
-
- spec/
|
154
|
-
- spec/integration/braintree/add_on_spec.rb
|
155
|
-
- spec/integration/braintree/plan_spec.rb
|
156
|
-
- spec/integration/braintree/advanced_search_spec.rb
|
157
|
-
- spec/integration/braintree/error_codes_spec.rb
|
158
|
-
- spec/integration/braintree/address_spec.rb
|
159
|
-
- spec/integration/braintree/subscription_spec.rb
|
160
|
-
- spec/integration/braintree/transparent_redirect_spec.rb
|
161
|
-
- spec/integration/braintree/http_spec.rb
|
162
|
-
- spec/integration/braintree/merchant_account_spec.rb
|
163
|
-
- spec/integration/braintree/customer_spec.rb
|
164
|
-
- spec/integration/braintree/credit_card_verification_spec.rb
|
165
|
-
- spec/integration/braintree/test/transaction_amounts_spec.rb
|
166
|
-
- spec/integration/braintree/settlement_batch_summary_spec.rb
|
167
|
-
- spec/integration/braintree/credit_card_verification_search_spec.rb
|
168
|
-
- spec/integration/braintree/transaction_spec.rb
|
169
|
-
- spec/integration/braintree/customer_search_spec.rb
|
170
|
-
- spec/integration/braintree/discount_spec.rb
|
171
|
-
- spec/integration/braintree/disbursement_spec.rb
|
172
|
-
- spec/integration/braintree/transaction_search_spec.rb
|
173
|
-
- spec/integration/spec_helper.rb
|
175
|
+
- spec/unit/braintree_spec.rb
|
176
|
+
- spec/hacks/tcp_socket.rb
|
174
177
|
- spec/spec_helper.rb
|
178
|
+
- spec/httpsd.pid
|
179
|
+
- spec/script/httpsd.rb
|
175
180
|
- braintree.gemspec
|
176
181
|
homepage: http://www.braintreepayments.com/
|
177
182
|
licenses:
|
178
183
|
- MIT
|
179
|
-
metadata: {}
|
180
184
|
post_install_message:
|
181
185
|
rdoc_options: []
|
182
186
|
require_paths:
|
183
187
|
- lib
|
184
188
|
required_ruby_version: !ruby/object:Gem::Requirement
|
189
|
+
none: false
|
185
190
|
requirements:
|
186
|
-
- - '>='
|
191
|
+
- - ! '>='
|
187
192
|
- !ruby/object:Gem::Version
|
188
193
|
version: '0'
|
189
194
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
195
|
+
none: false
|
190
196
|
requirements:
|
191
|
-
- - '>='
|
197
|
+
- - ! '>='
|
192
198
|
- !ruby/object:Gem::Version
|
193
199
|
version: '0'
|
194
200
|
requirements: []
|
195
201
|
rubyforge_project: braintree
|
196
|
-
rubygems_version:
|
202
|
+
rubygems_version: 1.8.24
|
197
203
|
signing_key:
|
198
|
-
specification_version:
|
204
|
+
specification_version: 3
|
199
205
|
summary: Braintree Gateway Ruby Client Library
|
200
206
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: c4a39949c4ad04830fd50ba8541a0b82f5a1be18
|
4
|
-
data.tar.gz: c32ed9335b5c72c6a6c11efb3bf6f1a0614a2943
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 2a9655094854360aa9aae75db3353f34bc5eb642d0bafe457f12ae2f9566616a1f02687b096e408189a04366989c504442d3409237d66f9349d64bda38328b12
|
7
|
-
data.tar.gz: fa69dfd1f607ced6d96801082fa2313ea4a1019ed69f82d6d6cd9edea06d9c77524279ee0126a69b0baf8b6424d147e8236dad8595ff9d57863823c00c1e2207
|