stone_ecommerce 1.2.3 → 1.2.4
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 +4 -4
- data/LICENSE +202 -202
- data/README.md +58 -58
- data/lib/gateway/Address/billing_address.rb +33 -33
- data/lib/gateway/Address/buyer_address.rb +38 -38
- data/lib/gateway/Address/delivery_address.rb +34 -34
- data/lib/gateway/BoletoTransaction/boleto_transaction.rb +40 -40
- data/lib/gateway/BoletoTransaction/boleto_transaction_options.rb +16 -16
- data/lib/gateway/BoletoTransaction/boleto_transaction_report_file.rb +22 -22
- data/lib/gateway/CreditCardTransaction/credit_card.rb +30 -30
- data/lib/gateway/CreditCardTransaction/credit_card_transaction.rb +33 -33
- data/lib/gateway/CreditCardTransaction/credit_card_transaction_options.rb +28 -28
- data/lib/gateway/CreditCardTransaction/credit_card_transaction_report_file.rb +31 -31
- data/lib/gateway/CreditCardTransaction/manage_credit_card_transaction.rb +14 -14
- data/lib/gateway/CreditCardTransaction/retry_sale_credit_card_transaction.rb +14 -14
- data/lib/gateway/Gateway.rb +621 -621
- data/lib/gateway/InstantBuyData/create_instant_buy_data_request.rb +30 -30
- data/lib/gateway/InstantBuyData/update_instant_buy_data_request.rb +10 -10
- data/lib/gateway/Merchant/merchant.rb +12 -12
- data/lib/gateway/OnlineDebit/online_debit_transaction_report_file.rb +21 -21
- data/lib/gateway/Order/order.rb +13 -13
- data/lib/gateway/Order/order_transaction_report_file.rb +8 -8
- data/lib/gateway/Parsers/boleto_transaction_parser.rb +33 -33
- data/lib/gateway/Parsers/credit_card_transaction_parser.rb +42 -42
- data/lib/gateway/Parsers/header_parser.rb +16 -16
- data/lib/gateway/Parsers/online_debit_transaction_parser.rb +32 -32
- data/lib/gateway/Parsers/trailer_parser.rb +16 -16
- data/lib/gateway/Person/buyer.rb +32 -32
- data/lib/gateway/Person/create_buyer_request.rb +22 -22
- data/lib/gateway/Person/person.rb +48 -48
- data/lib/gateway/Recurrency/recurrency.rb +24 -24
- data/lib/gateway/Sale/create_sale_request.rb +37 -37
- data/lib/gateway/Sale/manage_sale_request.rb +18 -18
- data/lib/gateway/Sale/query_sale_request.rb +37 -37
- data/lib/gateway/Sale/request_data.rb +21 -21
- data/lib/gateway/Sale/retry_sale_options.rb +15 -15
- data/lib/gateway/Sale/retry_sale_request.rb +23 -23
- data/lib/gateway/Sale/sale_data.rb +30 -30
- data/lib/gateway/Sale/sale_order_data.rb +18 -18
- data/lib/gateway/SalesOption.rb +18 -18
- data/lib/gateway/ShoppingCart/shopping_cart.rb +27 -27
- data/lib/gateway/ShoppingCart/shopping_cart_item.rb +24 -24
- data/lib/gateway/Trailer.rb +8 -8
- data/lib/gateway/header.rb +7 -7
- data/lib/gateway/post_notification.rb +31 -31
- data/lib/gateway/transaction_report_file.rb +47 -47
- data/lib/stone_ecommerce.rb +61 -62
- data/spec/integration/gateway_spec.rb +1024 -1024
- data/spec/integration/test_helper.rb +68 -68
- data/stone_ecommerce.gemspec +20 -19
- metadata +27 -24
@@ -1,39 +1,39 @@
|
|
1
|
-
module Gateway
|
2
|
-
|
3
|
-
class BuyerAddress
|
4
|
-
# País. Opções: Brazil, USA, Argentina, Bolivia, Chile, Colombia, Uruguay, Mexico, Paraguay
|
5
|
-
attr_accessor :Country
|
6
|
-
|
7
|
-
# Estado
|
8
|
-
attr_accessor :State
|
9
|
-
|
10
|
-
# Cidade
|
11
|
-
attr_accessor :City
|
12
|
-
|
13
|
-
# Distrito
|
14
|
-
attr_accessor :District
|
15
|
-
|
16
|
-
# Logradouro
|
17
|
-
attr_accessor :Street
|
18
|
-
|
19
|
-
# Número
|
20
|
-
attr_accessor :Number
|
21
|
-
|
22
|
-
# Complemento
|
23
|
-
attr_accessor :Complement
|
24
|
-
|
25
|
-
# CEP
|
26
|
-
attr_accessor :ZipCode
|
27
|
-
|
28
|
-
# Tipo de endereço
|
29
|
-
attr_accessor :AddressType
|
30
|
-
|
31
|
-
|
32
|
-
def to_json
|
33
|
-
hash = {}
|
34
|
-
instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
|
35
|
-
hash
|
36
|
-
end
|
37
|
-
|
38
|
-
end
|
1
|
+
module Gateway
|
2
|
+
|
3
|
+
class BuyerAddress
|
4
|
+
# País. Opções: Brazil, USA, Argentina, Bolivia, Chile, Colombia, Uruguay, Mexico, Paraguay
|
5
|
+
attr_accessor :Country
|
6
|
+
|
7
|
+
# Estado
|
8
|
+
attr_accessor :State
|
9
|
+
|
10
|
+
# Cidade
|
11
|
+
attr_accessor :City
|
12
|
+
|
13
|
+
# Distrito
|
14
|
+
attr_accessor :District
|
15
|
+
|
16
|
+
# Logradouro
|
17
|
+
attr_accessor :Street
|
18
|
+
|
19
|
+
# Número
|
20
|
+
attr_accessor :Number
|
21
|
+
|
22
|
+
# Complemento
|
23
|
+
attr_accessor :Complement
|
24
|
+
|
25
|
+
# CEP
|
26
|
+
attr_accessor :ZipCode
|
27
|
+
|
28
|
+
# Tipo de endereço
|
29
|
+
attr_accessor :AddressType
|
30
|
+
|
31
|
+
|
32
|
+
def to_json
|
33
|
+
hash = {}
|
34
|
+
instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
|
35
|
+
hash
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
39
|
end
|
@@ -1,34 +1,34 @@
|
|
1
|
-
module Gateway
|
2
|
-
|
3
|
-
class DeliveryAddress
|
4
|
-
# País. Opções: Brazil, USA, Argentina, Bolivia, Chile, Colombia, Uruguay, Mexico, Paraguay
|
5
|
-
attr_accessor :Country
|
6
|
-
|
7
|
-
# Estado
|
8
|
-
attr_accessor :State
|
9
|
-
|
10
|
-
# Cidade
|
11
|
-
attr_accessor :City
|
12
|
-
|
13
|
-
# Distrito
|
14
|
-
attr_accessor :District
|
15
|
-
|
16
|
-
# Logradouro
|
17
|
-
attr_accessor :Street
|
18
|
-
|
19
|
-
# Número
|
20
|
-
attr_accessor :Number
|
21
|
-
|
22
|
-
# Complemento
|
23
|
-
attr_accessor :Complement
|
24
|
-
|
25
|
-
# zip code
|
26
|
-
attr_accessor :ZipCode
|
27
|
-
|
28
|
-
def to_json
|
29
|
-
hash = {}
|
30
|
-
instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
|
31
|
-
hash
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
1
|
+
module Gateway
|
2
|
+
|
3
|
+
class DeliveryAddress
|
4
|
+
# País. Opções: Brazil, USA, Argentina, Bolivia, Chile, Colombia, Uruguay, Mexico, Paraguay
|
5
|
+
attr_accessor :Country
|
6
|
+
|
7
|
+
# Estado
|
8
|
+
attr_accessor :State
|
9
|
+
|
10
|
+
# Cidade
|
11
|
+
attr_accessor :City
|
12
|
+
|
13
|
+
# Distrito
|
14
|
+
attr_accessor :District
|
15
|
+
|
16
|
+
# Logradouro
|
17
|
+
attr_accessor :Street
|
18
|
+
|
19
|
+
# Número
|
20
|
+
attr_accessor :Number
|
21
|
+
|
22
|
+
# Complemento
|
23
|
+
attr_accessor :Complement
|
24
|
+
|
25
|
+
# zip code
|
26
|
+
attr_accessor :ZipCode
|
27
|
+
|
28
|
+
def to_json
|
29
|
+
hash = {}
|
30
|
+
instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
|
31
|
+
hash
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -1,41 +1,41 @@
|
|
1
|
-
require 'json'
|
2
|
-
module Gateway
|
3
|
-
|
4
|
-
class BoletoTransaction
|
5
|
-
|
6
|
-
# Valor do boleto em centavos
|
7
|
-
attr_accessor :AmountInCents
|
8
|
-
|
9
|
-
# Número do banco
|
10
|
-
attr_accessor :BankNumber
|
11
|
-
|
12
|
-
# Instruções a serem impressas no boleto
|
13
|
-
attr_accessor :Instructions
|
14
|
-
|
15
|
-
# Número do documento
|
16
|
-
attr_accessor :DocumentNumber
|
17
|
-
|
18
|
-
# Indentificador da transação no sistema da loja
|
19
|
-
attr_accessor :TransactionReference
|
20
|
-
|
21
|
-
# Data da criação da transação no sistema da loja
|
22
|
-
attr_accessor :TransactionDateInMerchant
|
23
|
-
|
24
|
-
# Opções da transação de boleto
|
25
|
-
attr_accessor :Options
|
26
|
-
|
27
|
-
# Endereço de cobrança
|
28
|
-
attr_accessor :BillingAddress
|
29
|
-
|
30
|
-
def initialize
|
31
|
-
@Options = BoletoTransactionOptions.new
|
32
|
-
@BillingAddress = BillingAddress.new
|
33
|
-
end
|
34
|
-
|
35
|
-
def to_json
|
36
|
-
hash = {}
|
37
|
-
instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
|
38
|
-
hash
|
39
|
-
end
|
40
|
-
end
|
1
|
+
require 'json'
|
2
|
+
module Gateway
|
3
|
+
|
4
|
+
class BoletoTransaction
|
5
|
+
|
6
|
+
# Valor do boleto em centavos
|
7
|
+
attr_accessor :AmountInCents
|
8
|
+
|
9
|
+
# Número do banco
|
10
|
+
attr_accessor :BankNumber
|
11
|
+
|
12
|
+
# Instruções a serem impressas no boleto
|
13
|
+
attr_accessor :Instructions
|
14
|
+
|
15
|
+
# Número do documento
|
16
|
+
attr_accessor :DocumentNumber
|
17
|
+
|
18
|
+
# Indentificador da transação no sistema da loja
|
19
|
+
attr_accessor :TransactionReference
|
20
|
+
|
21
|
+
# Data da criação da transação no sistema da loja
|
22
|
+
attr_accessor :TransactionDateInMerchant
|
23
|
+
|
24
|
+
# Opções da transação de boleto
|
25
|
+
attr_accessor :Options
|
26
|
+
|
27
|
+
# Endereço de cobrança
|
28
|
+
attr_accessor :BillingAddress
|
29
|
+
|
30
|
+
def initialize
|
31
|
+
@Options = BoletoTransactionOptions.new
|
32
|
+
@BillingAddress = BillingAddress.new
|
33
|
+
end
|
34
|
+
|
35
|
+
def to_json
|
36
|
+
hash = {}
|
37
|
+
instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
|
38
|
+
hash
|
39
|
+
end
|
40
|
+
end
|
41
41
|
end
|
@@ -1,17 +1,17 @@
|
|
1
|
-
module Gateway
|
2
|
-
|
3
|
-
class BoletoTransactionOptions
|
4
|
-
# Total de dias para expirar o boleto
|
5
|
-
attr_accessor :DaysToAddInBoletoExpirationDate
|
6
|
-
|
7
|
-
# Moeda. Opções: BRL, EUR, USD, ARS, BOB, CLP, COP, UYU, MXN, PYG
|
8
|
-
attr_accessor :CurrencyIso
|
9
|
-
|
10
|
-
def to_json
|
11
|
-
hash = {}
|
12
|
-
instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
|
13
|
-
hash
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
1
|
+
module Gateway
|
2
|
+
|
3
|
+
class BoletoTransactionOptions
|
4
|
+
# Total de dias para expirar o boleto
|
5
|
+
attr_accessor :DaysToAddInBoletoExpirationDate
|
6
|
+
|
7
|
+
# Moeda. Opções: BRL, EUR, USD, ARS, BOB, CLP, COP, UYU, MXN, PYG
|
8
|
+
attr_accessor :CurrencyIso
|
9
|
+
|
10
|
+
def to_json
|
11
|
+
hash = {}
|
12
|
+
instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
|
13
|
+
hash
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
17
|
end
|
@@ -1,23 +1,23 @@
|
|
1
|
-
module Gateway
|
2
|
-
|
3
|
-
class BoletoTransactionReportFile
|
4
|
-
attr_accessor :Order
|
5
|
-
attr_accessor :TransactionKey
|
6
|
-
attr_accessor :TransactionReference
|
7
|
-
attr_accessor :Status
|
8
|
-
attr_accessor :NossoNumero
|
9
|
-
attr_accessor :BankNumber
|
10
|
-
attr_accessor :Agency
|
11
|
-
attr_accessor :Account
|
12
|
-
attr_accessor :BarCode
|
13
|
-
attr_accessor :ExpirationDate
|
14
|
-
attr_accessor :AmountInCents
|
15
|
-
attr_accessor :AmountPaidInCents
|
16
|
-
attr_accessor :PaymentDate
|
17
|
-
attr_accessor :CreditDate
|
18
|
-
|
19
|
-
def initialize
|
20
|
-
@Order = OrderTransactionReportFile.new
|
21
|
-
end
|
22
|
-
end
|
1
|
+
module Gateway
|
2
|
+
|
3
|
+
class BoletoTransactionReportFile
|
4
|
+
attr_accessor :Order
|
5
|
+
attr_accessor :TransactionKey
|
6
|
+
attr_accessor :TransactionReference
|
7
|
+
attr_accessor :Status
|
8
|
+
attr_accessor :NossoNumero
|
9
|
+
attr_accessor :BankNumber
|
10
|
+
attr_accessor :Agency
|
11
|
+
attr_accessor :Account
|
12
|
+
attr_accessor :BarCode
|
13
|
+
attr_accessor :ExpirationDate
|
14
|
+
attr_accessor :AmountInCents
|
15
|
+
attr_accessor :AmountPaidInCents
|
16
|
+
attr_accessor :PaymentDate
|
17
|
+
attr_accessor :CreditDate
|
18
|
+
|
19
|
+
def initialize
|
20
|
+
@Order = OrderTransactionReportFile.new
|
21
|
+
end
|
22
|
+
end
|
23
23
|
end
|
@@ -1,31 +1,31 @@
|
|
1
|
-
module Gateway
|
2
|
-
|
3
|
-
class CreditCard
|
4
|
-
|
5
|
-
attr_accessor :InstantBuyKey
|
6
|
-
|
7
|
-
attr_accessor :CreditCardNumber
|
8
|
-
|
9
|
-
attr_accessor :HolderName
|
10
|
-
|
11
|
-
attr_accessor :SecurityCode
|
12
|
-
|
13
|
-
attr_accessor :ExpMonth
|
14
|
-
|
15
|
-
attr_accessor :ExpYear
|
16
|
-
|
17
|
-
attr_accessor :CreditCardBrand
|
18
|
-
|
19
|
-
attr_accessor :BillingAddress
|
20
|
-
|
21
|
-
def initialize
|
22
|
-
@BillingAddress = BillingAddress.new
|
23
|
-
end
|
24
|
-
|
25
|
-
def to_json
|
26
|
-
hash = {}
|
27
|
-
instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
|
28
|
-
hash
|
29
|
-
end
|
30
|
-
end
|
1
|
+
module Gateway
|
2
|
+
|
3
|
+
class CreditCard
|
4
|
+
|
5
|
+
attr_accessor :InstantBuyKey
|
6
|
+
|
7
|
+
attr_accessor :CreditCardNumber
|
8
|
+
|
9
|
+
attr_accessor :HolderName
|
10
|
+
|
11
|
+
attr_accessor :SecurityCode
|
12
|
+
|
13
|
+
attr_accessor :ExpMonth
|
14
|
+
|
15
|
+
attr_accessor :ExpYear
|
16
|
+
|
17
|
+
attr_accessor :CreditCardBrand
|
18
|
+
|
19
|
+
attr_accessor :BillingAddress
|
20
|
+
|
21
|
+
def initialize
|
22
|
+
@BillingAddress = BillingAddress.new
|
23
|
+
end
|
24
|
+
|
25
|
+
def to_json
|
26
|
+
hash = {}
|
27
|
+
instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
|
28
|
+
hash
|
29
|
+
end
|
30
|
+
end
|
31
31
|
end
|
@@ -1,34 +1,34 @@
|
|
1
|
-
module Gateway
|
2
|
-
|
3
|
-
class CreditCardTransaction
|
4
|
-
|
5
|
-
attr_accessor :CreditCard
|
6
|
-
|
7
|
-
attr_accessor :Options
|
8
|
-
|
9
|
-
attr_accessor :Recurrency
|
10
|
-
|
11
|
-
attr_accessor :AmountInCents
|
12
|
-
|
13
|
-
attr_accessor :InstallmentCount
|
14
|
-
|
15
|
-
attr_accessor :CreditCardOperation
|
16
|
-
|
17
|
-
attr_accessor :TransactionReference
|
18
|
-
|
19
|
-
attr_accessor :TransactionDateInMerchant
|
20
|
-
|
21
|
-
|
22
|
-
def initialize
|
23
|
-
@Options = CreditCardTransactionOptions.new
|
24
|
-
@Recurrency = Recurrency.new
|
25
|
-
@CreditCard = CreditCard.new
|
26
|
-
end
|
27
|
-
|
28
|
-
def to_json
|
29
|
-
hash = {}
|
30
|
-
instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
|
31
|
-
hash
|
32
|
-
end
|
33
|
-
end
|
1
|
+
module Gateway
|
2
|
+
|
3
|
+
class CreditCardTransaction
|
4
|
+
|
5
|
+
attr_accessor :CreditCard
|
6
|
+
|
7
|
+
attr_accessor :Options
|
8
|
+
|
9
|
+
attr_accessor :Recurrency
|
10
|
+
|
11
|
+
attr_accessor :AmountInCents
|
12
|
+
|
13
|
+
attr_accessor :InstallmentCount
|
14
|
+
|
15
|
+
attr_accessor :CreditCardOperation
|
16
|
+
|
17
|
+
attr_accessor :TransactionReference
|
18
|
+
|
19
|
+
attr_accessor :TransactionDateInMerchant
|
20
|
+
|
21
|
+
|
22
|
+
def initialize
|
23
|
+
@Options = CreditCardTransactionOptions.new
|
24
|
+
@Recurrency = Recurrency.new
|
25
|
+
@CreditCard = CreditCard.new
|
26
|
+
end
|
27
|
+
|
28
|
+
def to_json
|
29
|
+
hash = {}
|
30
|
+
instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
|
31
|
+
hash
|
32
|
+
end
|
33
|
+
end
|
34
34
|
end
|
@@ -1,29 +1,29 @@
|
|
1
|
-
module Gateway
|
2
|
-
|
3
|
-
class CreditCardTransactionOptions
|
4
|
-
|
5
|
-
attr_accessor :PaymentMethodCode
|
6
|
-
|
7
|
-
attr_accessor :CurrencyIso
|
8
|
-
|
9
|
-
attr_accessor :IataAmountInCents
|
10
|
-
|
11
|
-
attr_accessor :CaptureDelayInMinutes
|
12
|
-
|
13
|
-
attr_accessor :MerchantCategoryCode
|
14
|
-
|
15
|
-
attr_accessor :SoftDescriptorText
|
16
|
-
|
17
|
-
attr_accessor :InterestRate
|
18
|
-
|
19
|
-
attr_accessor :ExtendedLimitEnabled
|
20
|
-
|
21
|
-
attr_accessor :ExtendedLimitCode
|
22
|
-
|
23
|
-
def to_json
|
24
|
-
hash = {}
|
25
|
-
instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
|
26
|
-
hash
|
27
|
-
end
|
28
|
-
end
|
1
|
+
module Gateway
|
2
|
+
|
3
|
+
class CreditCardTransactionOptions
|
4
|
+
|
5
|
+
attr_accessor :PaymentMethodCode
|
6
|
+
|
7
|
+
attr_accessor :CurrencyIso
|
8
|
+
|
9
|
+
attr_accessor :IataAmountInCents
|
10
|
+
|
11
|
+
attr_accessor :CaptureDelayInMinutes
|
12
|
+
|
13
|
+
attr_accessor :MerchantCategoryCode
|
14
|
+
|
15
|
+
attr_accessor :SoftDescriptorText
|
16
|
+
|
17
|
+
attr_accessor :InterestRate
|
18
|
+
|
19
|
+
attr_accessor :ExtendedLimitEnabled
|
20
|
+
|
21
|
+
attr_accessor :ExtendedLimitCode
|
22
|
+
|
23
|
+
def to_json
|
24
|
+
hash = {}
|
25
|
+
instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
|
26
|
+
hash
|
27
|
+
end
|
28
|
+
end
|
29
29
|
end
|
@@ -1,32 +1,32 @@
|
|
1
|
-
module Gateway
|
2
|
-
|
3
|
-
class CreditCardTransactionReportFile
|
4
|
-
attr_accessor :Order
|
5
|
-
attr_accessor :TransactionKey
|
6
|
-
attr_accessor :TransactionKeyToAcquirer
|
7
|
-
attr_accessor :CreditCardTransactionReference
|
8
|
-
attr_accessor :CreditCardBrand
|
9
|
-
attr_accessor :CreditCardNumber
|
10
|
-
attr_accessor :InstallmentCount
|
11
|
-
attr_accessor :AcquirerName
|
12
|
-
attr_accessor :Status
|
13
|
-
attr_accessor :AmountInCents
|
14
|
-
attr_accessor :IataAmountInCents
|
15
|
-
attr_accessor :AuthorizationCode
|
16
|
-
attr_accessor :TransactionIdentifier
|
17
|
-
attr_accessor :UniqueSequentialNumber
|
18
|
-
attr_accessor :AuthorizedAmountInCents
|
19
|
-
attr_accessor :CapturedAmountInCents
|
20
|
-
attr_accessor :VoidedAmountInCents
|
21
|
-
attr_accessor :RefundedAmountInCents
|
22
|
-
attr_accessor :AcquirerAuthorizationReturnCode
|
23
|
-
attr_accessor :AuthorizedDate
|
24
|
-
attr_accessor :CapturedDate
|
25
|
-
attr_accessor :VoidedDate
|
26
|
-
attr_accessor :LastProbeDate
|
27
|
-
|
28
|
-
def initialize
|
29
|
-
@Order = OrderTransactionReportFile.new
|
30
|
-
end
|
31
|
-
end
|
1
|
+
module Gateway
|
2
|
+
|
3
|
+
class CreditCardTransactionReportFile
|
4
|
+
attr_accessor :Order
|
5
|
+
attr_accessor :TransactionKey
|
6
|
+
attr_accessor :TransactionKeyToAcquirer
|
7
|
+
attr_accessor :CreditCardTransactionReference
|
8
|
+
attr_accessor :CreditCardBrand
|
9
|
+
attr_accessor :CreditCardNumber
|
10
|
+
attr_accessor :InstallmentCount
|
11
|
+
attr_accessor :AcquirerName
|
12
|
+
attr_accessor :Status
|
13
|
+
attr_accessor :AmountInCents
|
14
|
+
attr_accessor :IataAmountInCents
|
15
|
+
attr_accessor :AuthorizationCode
|
16
|
+
attr_accessor :TransactionIdentifier
|
17
|
+
attr_accessor :UniqueSequentialNumber
|
18
|
+
attr_accessor :AuthorizedAmountInCents
|
19
|
+
attr_accessor :CapturedAmountInCents
|
20
|
+
attr_accessor :VoidedAmountInCents
|
21
|
+
attr_accessor :RefundedAmountInCents
|
22
|
+
attr_accessor :AcquirerAuthorizationReturnCode
|
23
|
+
attr_accessor :AuthorizedDate
|
24
|
+
attr_accessor :CapturedDate
|
25
|
+
attr_accessor :VoidedDate
|
26
|
+
attr_accessor :LastProbeDate
|
27
|
+
|
28
|
+
def initialize
|
29
|
+
@Order = OrderTransactionReportFile.new
|
30
|
+
end
|
31
|
+
end
|
32
32
|
end
|
@@ -1,15 +1,15 @@
|
|
1
|
-
module Gateway
|
2
|
-
|
3
|
-
# classe para usar nos metodos de cancel e capture
|
4
|
-
class ManageCreditCardTransaction
|
5
|
-
attr_accessor :AmountInCents
|
6
|
-
attr_accessor :TransactionKey
|
7
|
-
attr_accessor :TransactionReference
|
8
|
-
|
9
|
-
def to_json
|
10
|
-
hash = {}
|
11
|
-
instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
|
12
|
-
hash
|
13
|
-
end
|
14
|
-
end
|
1
|
+
module Gateway
|
2
|
+
|
3
|
+
# classe para usar nos metodos de cancel e capture
|
4
|
+
class ManageCreditCardTransaction
|
5
|
+
attr_accessor :AmountInCents
|
6
|
+
attr_accessor :TransactionKey
|
7
|
+
attr_accessor :TransactionReference
|
8
|
+
|
9
|
+
def to_json
|
10
|
+
hash = {}
|
11
|
+
instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
|
12
|
+
hash
|
13
|
+
end
|
14
|
+
end
|
15
15
|
end
|
@@ -1,15 +1,15 @@
|
|
1
|
-
module Gateway
|
2
|
-
|
3
|
-
class RetrySaleCreditCardTransaction
|
4
|
-
|
5
|
-
attr_accessor :TransactionKey
|
6
|
-
|
7
|
-
attr_accessor :SecurityCode
|
8
|
-
|
9
|
-
def to_json
|
10
|
-
hash = {}
|
11
|
-
instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
|
12
|
-
hash
|
13
|
-
end
|
14
|
-
end
|
1
|
+
module Gateway
|
2
|
+
|
3
|
+
class RetrySaleCreditCardTransaction
|
4
|
+
|
5
|
+
attr_accessor :TransactionKey
|
6
|
+
|
7
|
+
attr_accessor :SecurityCode
|
8
|
+
|
9
|
+
def to_json
|
10
|
+
hash = {}
|
11
|
+
instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
|
12
|
+
hash
|
13
|
+
end
|
14
|
+
end
|
15
15
|
end
|