Class: MobileB2CResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/AfricasTalking/Payments.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provider_, phoneNumber_, providerChannel_, transactionFee_, status_, value_, transactionId_, errorMessage_) ⇒ MobileB2CResponse

Returns a new instance of MobileB2CResponse.



477
478
479
480
481
482
483
484
485
486
# File 'lib/AfricasTalking/Payments.rb', line 477

def initialize provider_, phoneNumber_, providerChannel_, transactionFee_, status_, value_, transactionId_, errorMessage_
    @provider        = provider_
    @phoneNumber     = phoneNumber_
    @providerChannel = providerChannel_
    @transactionFee  = transactionFee_
    @status          = status_
    @value           = value_
    @transactionId   = transactionId_
    @errorMessage   = errorMessage_
end

Instance Attribute Details

#errorMessageObject (readonly)

Returns the value of attribute errorMessage.



475
476
477
# File 'lib/AfricasTalking/Payments.rb', line 475

def errorMessage
  @errorMessage
end

#phoneNumberObject (readonly)

Returns the value of attribute phoneNumber.



475
476
477
# File 'lib/AfricasTalking/Payments.rb', line 475

def phoneNumber
  @phoneNumber
end

#providerObject (readonly)

Returns the value of attribute provider.



475
476
477
# File 'lib/AfricasTalking/Payments.rb', line 475

def provider
  @provider
end

#providerChannelObject (readonly)

Returns the value of attribute providerChannel.



475
476
477
# File 'lib/AfricasTalking/Payments.rb', line 475

def providerChannel
  @providerChannel
end

#statusObject (readonly)

Returns the value of attribute status.



475
476
477
# File 'lib/AfricasTalking/Payments.rb', line 475

def status
  @status
end

#transactionFeeObject (readonly)

Returns the value of attribute transactionFee.



475
476
477
# File 'lib/AfricasTalking/Payments.rb', line 475

def transactionFee
  @transactionFee
end

#transactionIdObject (readonly)

Returns the value of attribute transactionId.



475
476
477
# File 'lib/AfricasTalking/Payments.rb', line 475

def transactionId
  @transactionId
end

#valueObject (readonly)

Returns the value of attribute value.



475
476
477
# File 'lib/AfricasTalking/Payments.rb', line 475

def value
  @value
end