Class: ShellCardManagementApIs::DeleteBundleRequest
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- ShellCardManagementApIs::DeleteBundleRequest
- Defined in:
- lib/shell_card_management_ap_is/models/delete_bundle_request.rb
Overview
DeleteBundleRequest Model.
Instance Attribute Summary collapse
-
#account_id ⇒ Integer
Account ID of the customer.
-
#account_number ⇒ String
Account Number of the customer.
-
#bundle_id ⇒ String
Identifier of the card bundle in Gateway.
-
#col_co_code ⇒ Integer
Collecting Company Code (Shell Code) of the selected payer.
-
#col_co_id ⇒ Integer
Collecting Company Code (Shell Code) of the selected payer.
-
#payer_id ⇒ Integer
Payer Id of the selected payer.
-
#payer_number ⇒ String
Payer Number of the selected payer.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
-
#initialize(bundle_id = nil, col_co_code = SKIP, col_co_id = SKIP, payer_number = SKIP, payer_id = SKIP, account_id = SKIP, account_number = SKIP) ⇒ DeleteBundleRequest
constructor
A new instance of DeleteBundleRequest.
Methods inherited from BaseModel
Constructor Details
#initialize(bundle_id = nil, col_co_code = SKIP, col_co_id = SKIP, payer_number = SKIP, payer_id = SKIP, account_id = SKIP, account_number = SKIP) ⇒ DeleteBundleRequest
Returns a new instance of DeleteBundleRequest.
89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/shell_card_management_ap_is/models/delete_bundle_request.rb', line 89 def initialize(bundle_id = nil, col_co_code = SKIP, col_co_id = SKIP, payer_number = SKIP, payer_id = SKIP, account_id = SKIP, account_number = SKIP) @col_co_code = col_co_code unless col_co_code == SKIP @col_co_id = col_co_id unless col_co_id == SKIP @payer_number = payer_number unless payer_number == SKIP @payer_id = payer_id unless payer_id == SKIP @account_id = account_id unless account_id == SKIP @account_number = account_number unless account_number == SKIP @bundle_id = bundle_id end |
Instance Attribute Details
#account_id ⇒ Integer
Account ID of the customer. Either AccountId or AccountNumber or both must be passed. Example: 123456
46 47 48 |
# File 'lib/shell_card_management_ap_is/models/delete_bundle_request.rb', line 46 def account_id @account_id end |
#account_number ⇒ String
Account Number of the customer. Either AccountId or AccountNumber or both must be passed. Example: GB000000123
52 53 54 |
# File 'lib/shell_card_management_ap_is/models/delete_bundle_request.rb', line 52 def account_number @account_number end |
#bundle_id ⇒ String
Identifier of the card bundle in Gateway. Mandatory
57 58 59 |
# File 'lib/shell_card_management_ap_is/models/delete_bundle_request.rb', line 57 def bundle_id @bundle_id end |
#col_co_code ⇒ Integer
Collecting Company Code (Shell Code) of the selected payer. Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia, Ukraine etc. It is optional for other countries if ColCoID is provided. Example: 86 for Philippines 5 for UK
19 20 21 |
# File 'lib/shell_card_management_ap_is/models/delete_bundle_request.rb', line 19 def col_co_code @col_co_code end |
#col_co_id ⇒ Integer
Collecting Company Code (Shell Code) of the selected payer. Mandatory for serviced OUs such as Romania, Latvia, Lithuania, Estonia, Ukraine etc. It is optional for other countries if ColCoID is provided. Example: 86 for Philippines 5 for UK
28 29 30 |
# File 'lib/shell_card_management_ap_is/models/delete_bundle_request.rb', line 28 def col_co_id @col_co_id end |
#payer_id ⇒ Integer
Payer Id of the selected payer. Either PayerId or PayerNumber or both must be passed. Example: 123456
40 41 42 |
# File 'lib/shell_card_management_ap_is/models/delete_bundle_request.rb', line 40 def payer_id @payer_id end |
#payer_number ⇒ String
Payer Number of the selected payer. Either PayerId or PayerNumber or both must be passed. Example: GB000000123
34 35 36 |
# File 'lib/shell_card_management_ap_is/models/delete_bundle_request.rb', line 34 def payer_number @payer_number end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/shell_card_management_ap_is/models/delete_bundle_request.rb', line 102 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. bundle_id = hash.key?('BundleId') ? hash['BundleId'] : nil col_co_code = hash.key?('ColCoCode') ? hash['ColCoCode'] : SKIP col_co_id = hash.key?('ColCoId') ? hash['ColCoId'] : SKIP payer_number = hash.key?('PayerNumber') ? hash['PayerNumber'] : SKIP payer_id = hash.key?('PayerId') ? hash['PayerId'] : SKIP account_id = hash.key?('AccountId') ? hash['AccountId'] : SKIP account_number = hash.key?('AccountNumber') ? hash['AccountNumber'] : SKIP # Create object from extracted values. DeleteBundleRequest.new(bundle_id, col_co_code, col_co_id, payer_number, payer_id, account_id, account_number) end |
.names ⇒ Object
A mapping from model property names to API property names.
60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/shell_card_management_ap_is/models/delete_bundle_request.rb', line 60 def self.names @_hash = {} if @_hash.nil? @_hash['col_co_code'] = 'ColCoCode' @_hash['col_co_id'] = 'ColCoId' @_hash['payer_number'] = 'PayerNumber' @_hash['payer_id'] = 'PayerId' @_hash['account_id'] = 'AccountId' @_hash['account_number'] = 'AccountNumber' @_hash['bundle_id'] = 'BundleId' @_hash end |
.nullables ⇒ Object
An array for nullable fields
85 86 87 |
# File 'lib/shell_card_management_ap_is/models/delete_bundle_request.rb', line 85 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
73 74 75 76 77 78 79 80 81 82 |
# File 'lib/shell_card_management_ap_is/models/delete_bundle_request.rb', line 73 def self.optionals %w[ col_co_code col_co_id payer_number payer_id account_id account_number ] end |