Class: STP::Structs::PaymentOrder
- Inherits:
-
Object
- Object
- STP::Structs::PaymentOrder
- Defined in:
- lib/stp/structs/payment_order.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
a - Institución contraparte.
-
#beneficiary_account ⇒ Object
a - Institución contraparte.
-
#beneficiary_account_type ⇒ Object
a - Institución contraparte.
-
#beneficiary_email ⇒ Object
a - Institución contraparte.
-
#beneficiary_name ⇒ Object
a - Institución contraparte.
-
#beneficiary_rfc ⇒ Object
a - Institución contraparte.
-
#collection_reference ⇒ Object
a - Institución contraparte.
-
#company ⇒ Object
a - Institución contraparte.
-
#counterpart_institution ⇒ Object
a - Institución contraparte.
-
#delivery_method ⇒ Object
a - Institución contraparte.
-
#folio ⇒ Object
a - Institución contraparte.
-
#iva ⇒ Object
a - Institución contraparte.
-
#number_reference ⇒ Object
a - Institución contraparte.
-
#operant_institution ⇒ Object
a - Institución contraparte.
-
#operation_date ⇒ Object
a - Institución contraparte.
-
#operation_type ⇒ Object
a - Institución contraparte.
-
#original_chain ⇒ Object
a - Institución contraparte.
-
#payer_account ⇒ Object
a - Institución contraparte.
-
#payer_account_type ⇒ Object
a - Institución contraparte.
-
#payer_name ⇒ Object
a - Institución contraparte.
-
#payer_rfc ⇒ Object
a - Institución contraparte.
-
#payment_concept ⇒ Object
a - Institución contraparte.
-
#payment_key ⇒ Object
a - Institución contraparte.
-
#payment_secondary_concept ⇒ Object
a - Institución contraparte.
-
#payment_type ⇒ Object
a - Institución contraparte.
-
#priority ⇒ Object
a - Institución contraparte.
-
#secondary_beneficiary_account ⇒ Object
a - Institución contraparte.
-
#secondary_beneficiary_account_type ⇒ Object
a - Institución contraparte.
-
#secondary_beneficiary_name ⇒ Object
a - Institución contraparte.
-
#secondary_beneficiary_rfc ⇒ Object
a - Institución contraparte.
-
#secondary_user_catalog_key ⇒ Object
a - Institución contraparte.
-
#signature ⇒ Object
a - Institución contraparte.
-
#topology ⇒ Object
a - Institución contraparte.
-
#tracking_key ⇒ Object
a - Institución contraparte.
-
#user ⇒ Object
a - Institución contraparte.
-
#user_catalog_key ⇒ Object
a - Institución contraparte.
Instance Method Summary collapse
- #as_json(_options = {}) ⇒ Object
-
#initialize ⇒ PaymentOrder
constructor
A new instance of PaymentOrder.
- #to_json(*options) ⇒ Object
Constructor Details
#initialize ⇒ PaymentOrder
Returns a new instance of PaymentOrder.
41 42 43 |
# File 'lib/stp/structs/payment_order.rb', line 41 def initialize @company = STP.company end |
Instance Attribute Details
#amount ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def amount @amount end |
#beneficiary_account ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def beneficiary_account @beneficiary_account end |
#beneficiary_account_type ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def beneficiary_account_type @beneficiary_account_type end |
#beneficiary_email ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def beneficiary_email @beneficiary_email end |
#beneficiary_name ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def beneficiary_name @beneficiary_name end |
#beneficiary_rfc ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def beneficiary_rfc @beneficiary_rfc end |
#collection_reference ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def collection_reference @collection_reference end |
#company ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def company @company end |
#counterpart_institution ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def counterpart_institution @counterpart_institution end |
#delivery_method ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def delivery_method @delivery_method end |
#folio ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def folio @folio end |
#iva ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def iva @iva end |
#number_reference ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def number_reference @number_reference end |
#operant_institution ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def operant_institution @operant_institution end |
#operation_date ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def operation_date @operation_date end |
#operation_type ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def operation_type @operation_type end |
#original_chain ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def original_chain @original_chain end |
#payer_account ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def payer_account @payer_account end |
#payer_account_type ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def payer_account_type @payer_account_type end |
#payer_name ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def payer_name @payer_name end |
#payer_rfc ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def payer_rfc @payer_rfc end |
#payment_concept ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def payment_concept @payment_concept end |
#payment_key ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def payment_key @payment_key end |
#payment_secondary_concept ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def payment_secondary_concept @payment_secondary_concept end |
#payment_type ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def payment_type @payment_type end |
#priority ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def priority @priority end |
#secondary_beneficiary_account ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def secondary_beneficiary_account @secondary_beneficiary_account end |
#secondary_beneficiary_account_type ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def secondary_beneficiary_account_type @secondary_beneficiary_account_type end |
#secondary_beneficiary_name ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def secondary_beneficiary_name @secondary_beneficiary_name end |
#secondary_beneficiary_rfc ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def secondary_beneficiary_rfc @secondary_beneficiary_rfc end |
#secondary_user_catalog_key ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def secondary_user_catalog_key @secondary_user_catalog_key end |
#signature ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def signature @signature end |
#topology ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def topology @topology end |
#tracking_key ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def tracking_key @tracking_key end |
#user ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def user @user end |
#user_catalog_key ⇒ Object
a - Institución contraparte
4 5 6 |
# File 'lib/stp/structs/payment_order.rb', line 4 def user_catalog_key @user_catalog_key end |
Instance Method Details
#as_json(_options = {}) ⇒ Object
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/stp/structs/payment_order.rb', line 82 def as_json( = {}) { claveRastreo: @tracking_key, conceptoPago: @payment_concept, cuentaBeneficiario: @beneficiary_account, cuentaOrdenante: @payer_account, empresa: @company, fechaOperacion: @operation_date, firma: @signature, folioOrigen: @folio, institucionContraparte: @counterpart_institution, institucionOperante: @operant_institution, monto: @amount, nombreBeneficiario: @beneficiary_name, nombreOrdenante: @payer_name, referenciaNumerica: @number_reference, rfcCurpBeneficiario: @beneficiary_rfc, rfcCurpOrdenante: @payer_rfc, tipoCuentaBeneficiario: @beneficiary_account_type, tipoCuentaOrdenante: @payer_account_type, tipoPago: @payment_type, }.compact end |
#to_json(*options) ⇒ Object
106 107 108 |
# File 'lib/stp/structs/payment_order.rb', line 106 def to_json(*) as_json(*).to_json(*) end |