mundi_api 0.9.0
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 +7 -0
 - data/LICENSE +28 -0
 - data/README.md +2186 -0
 - data/lib/mundi_api.rb +137 -0
 - data/lib/mundi_api/api_helper.rb +209 -0
 - data/lib/mundi_api/configuration.rb +25 -0
 - data/lib/mundi_api/controllers/base_controller.rb +61 -0
 - data/lib/mundi_api/controllers/charges_controller.rb +359 -0
 - data/lib/mundi_api/controllers/customers_controller.rb +758 -0
 - data/lib/mundi_api/controllers/invoices_controller.rb +184 -0
 - data/lib/mundi_api/controllers/orders_controller.rb +171 -0
 - data/lib/mundi_api/controllers/plans_controller.rb +387 -0
 - data/lib/mundi_api/controllers/subscriptions_controller.rb +648 -0
 - data/lib/mundi_api/controllers/tokens_controller.rb +87 -0
 - data/lib/mundi_api/exceptions/api_exception.rb +18 -0
 - data/lib/mundi_api/exceptions/error_exception.rb +37 -0
 - data/lib/mundi_api/http/auth/basic_auth.rb +20 -0
 - data/lib/mundi_api/http/faraday_client.rb +55 -0
 - data/lib/mundi_api/http/http_call_back.rb +22 -0
 - data/lib/mundi_api/http/http_client.rb +92 -0
 - data/lib/mundi_api/http/http_context.rb +18 -0
 - data/lib/mundi_api/http/http_method_enum.rb +11 -0
 - data/lib/mundi_api/http/http_request.rb +48 -0
 - data/lib/mundi_api/http/http_response.rb +21 -0
 - data/lib/mundi_api/models/base_model.rb +34 -0
 - data/lib/mundi_api/models/create_access_token_request.rb +35 -0
 - data/lib/mundi_api/models/create_address_request.rb +108 -0
 - data/lib/mundi_api/models/create_bank_transfer_payment_request.rb +44 -0
 - data/lib/mundi_api/models/create_boleto_payment_request.rb +83 -0
 - data/lib/mundi_api/models/create_cancel_charge_request.rb +35 -0
 - data/lib/mundi_api/models/create_cancel_subscription_request.rb +35 -0
 - data/lib/mundi_api/models/create_capture_charge_request.rb +45 -0
 - data/lib/mundi_api/models/create_card_options_request.rb +36 -0
 - data/lib/mundi_api/models/create_card_request.rb +136 -0
 - data/lib/mundi_api/models/create_card_token_request.rb +80 -0
 - data/lib/mundi_api/models/create_charge_request.rb +92 -0
 - data/lib/mundi_api/models/create_checkout_boleto_payment_request.rb +54 -0
 - data/lib/mundi_api/models/create_checkout_card_installment_option_request.rb +44 -0
 - data/lib/mundi_api/models/create_checkout_card_payment_request.rb +51 -0
 - data/lib/mundi_api/models/create_checkout_payment_request.rb +82 -0
 - data/lib/mundi_api/models/create_credit_card_payment_request.rb +108 -0
 - data/lib/mundi_api/models/create_customer_request.rb +108 -0
 - data/lib/mundi_api/models/create_discount_request.rb +62 -0
 - data/lib/mundi_api/models/create_order_item_request.rb +71 -0
 - data/lib/mundi_api/models/create_order_request.rb +114 -0
 - data/lib/mundi_api/models/create_payment_request.rb +121 -0
 - data/lib/mundi_api/models/create_phone_request.rb +53 -0
 - data/lib/mundi_api/models/create_phones_request.rb +46 -0
 - data/lib/mundi_api/models/create_plan_item_request.rb +81 -0
 - data/lib/mundi_api/models/create_plan_request.rb +199 -0
 - data/lib/mundi_api/models/create_price_bracket_request.rb +62 -0
 - data/lib/mundi_api/models/create_pricing_scheme_request.rb +69 -0
 - data/lib/mundi_api/models/create_seller_request.rb +90 -0
 - data/lib/mundi_api/models/create_setup_request.rb +55 -0
 - data/lib/mundi_api/models/create_shipping_request.rb +81 -0
 - data/lib/mundi_api/models/create_subscription_item_request.rb +106 -0
 - data/lib/mundi_api/models/create_subscription_request.rb +269 -0
 - data/lib/mundi_api/models/create_token_request.rb +44 -0
 - data/lib/mundi_api/models/create_usage_request.rb +54 -0
 - data/lib/mundi_api/models/create_voucher_payment_request.rb +72 -0
 - data/lib/mundi_api/models/get_access_token_response.rb +73 -0
 - data/lib/mundi_api/models/get_address_response.rb +163 -0
 - data/lib/mundi_api/models/get_bank_transfer_transaction_response.rb +118 -0
 - data/lib/mundi_api/models/get_billing_address_response.rb +98 -0
 - data/lib/mundi_api/models/get_boleto_transaction_response.rb +137 -0
 - data/lib/mundi_api/models/get_card_response.rb +164 -0
 - data/lib/mundi_api/models/get_card_token_response.rb +89 -0
 - data/lib/mundi_api/models/get_charge_response.rb +184 -0
 - data/lib/mundi_api/models/get_checkout_payment_settings_response.rb +99 -0
 - data/lib/mundi_api/models/get_credit_card_transaction_response.rb +163 -0
 - data/lib/mundi_api/models/get_customer_response.rb +145 -0
 - data/lib/mundi_api/models/get_discount_response.rb +100 -0
 - data/lib/mundi_api/models/get_invoice_item_response.rb +73 -0
 - data/lib/mundi_api/models/get_invoice_response.rb +210 -0
 - data/lib/mundi_api/models/get_order_item_response.rb +63 -0
 - data/lib/mundi_api/models/get_order_response.rb +167 -0
 - data/lib/mundi_api/models/get_period_response.rb +73 -0
 - data/lib/mundi_api/models/get_phone_response.rb +53 -0
 - data/lib/mundi_api/models/get_phones_response.rb +46 -0
 - data/lib/mundi_api/models/get_plan_item_response.rb +127 -0
 - data/lib/mundi_api/models/get_plan_response.rb +223 -0
 - data/lib/mundi_api/models/get_price_bracket_response.rb +62 -0
 - data/lib/mundi_api/models/get_pricing_scheme_response.rb +69 -0
 - data/lib/mundi_api/models/get_safety_pay_transaction_response.rb +109 -0
 - data/lib/mundi_api/models/get_seller_response.rb +126 -0
 - data/lib/mundi_api/models/get_setup_response.rb +62 -0
 - data/lib/mundi_api/models/get_shipping_response.rb +72 -0
 - data/lib/mundi_api/models/get_subscription_item_response.rb +135 -0
 - data/lib/mundi_api/models/get_subscription_response.rb +261 -0
 - data/lib/mundi_api/models/get_token_response.rb +72 -0
 - data/lib/mundi_api/models/get_transaction_response.rb +136 -0
 - data/lib/mundi_api/models/get_usage_response.rb +82 -0
 - data/lib/mundi_api/models/get_voucher_transaction_response.rb +163 -0
 - data/lib/mundi_api/models/list_access_tokens_response.rb +51 -0
 - data/lib/mundi_api/models/list_addresses_response.rb +51 -0
 - data/lib/mundi_api/models/list_cards_response.rb +51 -0
 - data/lib/mundi_api/models/list_charges_response.rb +51 -0
 - data/lib/mundi_api/models/list_customers_response.rb +51 -0
 - data/lib/mundi_api/models/list_invoices_response.rb +51 -0
 - data/lib/mundi_api/models/list_order_response.rb +51 -0
 - data/lib/mundi_api/models/list_plans_response.rb +51 -0
 - data/lib/mundi_api/models/list_subscription_items_response.rb +51 -0
 - data/lib/mundi_api/models/list_subscriptions_response.rb +51 -0
 - data/lib/mundi_api/models/list_transactions_response.rb +51 -0
 - data/lib/mundi_api/models/list_usages_response.rb +51 -0
 - data/lib/mundi_api/models/paging_response.rb +53 -0
 - data/lib/mundi_api/models/update_address_request.rb +53 -0
 - data/lib/mundi_api/models/update_card_request.rb +81 -0
 - data/lib/mundi_api/models/update_charge_card_request.rb +62 -0
 - data/lib/mundi_api/models/update_charge_due_date_request.rb +36 -0
 - data/lib/mundi_api/models/update_charge_payment_method_request.rb +74 -0
 - data/lib/mundi_api/models/update_customer_request.rb +90 -0
 - data/lib/mundi_api/models/update_metadata_request.rb +35 -0
 - data/lib/mundi_api/models/update_plan_item_request.rb +81 -0
 - data/lib/mundi_api/models/update_plan_request.rb +161 -0
 - data/lib/mundi_api/models/update_price_bracket_request.rb +62 -0
 - data/lib/mundi_api/models/update_pricing_scheme_request.rb +69 -0
 - data/lib/mundi_api/models/update_subscription_billing_date_request.rb +37 -0
 - data/lib/mundi_api/models/update_subscription_card_request.rb +44 -0
 - data/lib/mundi_api/models/update_subscription_item_request.rb +81 -0
 - data/lib/mundi_api/models/update_subscription_payment_method_request.rb +53 -0
 - data/lib/mundi_api/mundi_api_client.rb +63 -0
 - metadata +246 -0
 
| 
         @@ -0,0 +1,51 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # This file was automatically generated by APIMATIC v2.0
         
     | 
| 
      
 2 
     | 
    
         
            +
            # ( https://apimatic.io ).
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            module MundiApi
         
     | 
| 
      
 5 
     | 
    
         
            +
              # Response object for listing cards
         
     | 
| 
      
 6 
     | 
    
         
            +
              class ListCardsResponse < BaseModel
         
     | 
| 
      
 7 
     | 
    
         
            +
                # The card objects
         
     | 
| 
      
 8 
     | 
    
         
            +
                # @return [List of GetCardResponse]
         
     | 
| 
      
 9 
     | 
    
         
            +
                attr_accessor :data
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
                # Paging object
         
     | 
| 
      
 12 
     | 
    
         
            +
                # @return [PagingResponse]
         
     | 
| 
      
 13 
     | 
    
         
            +
                attr_accessor :paging
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
                # A mapping from model property names to API property names.
         
     | 
| 
      
 16 
     | 
    
         
            +
                def self.names
         
     | 
| 
      
 17 
     | 
    
         
            +
                  if @_hash.nil?
         
     | 
| 
      
 18 
     | 
    
         
            +
                    @_hash = {}
         
     | 
| 
      
 19 
     | 
    
         
            +
                    @_hash['data'] = 'data'
         
     | 
| 
      
 20 
     | 
    
         
            +
                    @_hash['paging'] = 'paging'
         
     | 
| 
      
 21 
     | 
    
         
            +
                  end
         
     | 
| 
      
 22 
     | 
    
         
            +
                  @_hash
         
     | 
| 
      
 23 
     | 
    
         
            +
                end
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
                def initialize(data = nil,
         
     | 
| 
      
 26 
     | 
    
         
            +
                               paging = nil)
         
     | 
| 
      
 27 
     | 
    
         
            +
                  @data = data
         
     | 
| 
      
 28 
     | 
    
         
            +
                  @paging = paging
         
     | 
| 
      
 29 
     | 
    
         
            +
                end
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
                # Creates an instance of the object from a hash.
         
     | 
| 
      
 32 
     | 
    
         
            +
                def self.from_hash(hash)
         
     | 
| 
      
 33 
     | 
    
         
            +
                  return nil unless hash
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                  # Extract variables from the hash.
         
     | 
| 
      
 36 
     | 
    
         
            +
                  # Parameter is an array, so we need to iterate through it
         
     | 
| 
      
 37 
     | 
    
         
            +
                  data = nil
         
     | 
| 
      
 38 
     | 
    
         
            +
                  unless hash['data'].nil?
         
     | 
| 
      
 39 
     | 
    
         
            +
                    data = []
         
     | 
| 
      
 40 
     | 
    
         
            +
                    hash['data'].each do |structure|
         
     | 
| 
      
 41 
     | 
    
         
            +
                      data << (GetCardResponse.from_hash(structure) if structure)
         
     | 
| 
      
 42 
     | 
    
         
            +
                    end
         
     | 
| 
      
 43 
     | 
    
         
            +
                  end
         
     | 
| 
      
 44 
     | 
    
         
            +
                  paging = PagingResponse.from_hash(hash['paging']) if hash['paging']
         
     | 
| 
      
 45 
     | 
    
         
            +
             
     | 
| 
      
 46 
     | 
    
         
            +
                  # Create object from extracted values.
         
     | 
| 
      
 47 
     | 
    
         
            +
                  ListCardsResponse.new(data,
         
     | 
| 
      
 48 
     | 
    
         
            +
                                        paging)
         
     | 
| 
      
 49 
     | 
    
         
            +
                end
         
     | 
| 
      
 50 
     | 
    
         
            +
              end
         
     | 
| 
      
 51 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,51 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # This file was automatically generated by APIMATIC v2.0
         
     | 
| 
      
 2 
     | 
    
         
            +
            # ( https://apimatic.io ).
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            module MundiApi
         
     | 
| 
      
 5 
     | 
    
         
            +
              # Response object for listing charges
         
     | 
| 
      
 6 
     | 
    
         
            +
              class ListChargesResponse < BaseModel
         
     | 
| 
      
 7 
     | 
    
         
            +
                # The charge objects
         
     | 
| 
      
 8 
     | 
    
         
            +
                # @return [List of GetChargeResponse]
         
     | 
| 
      
 9 
     | 
    
         
            +
                attr_accessor :data
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
                # Paging object
         
     | 
| 
      
 12 
     | 
    
         
            +
                # @return [PagingResponse]
         
     | 
| 
      
 13 
     | 
    
         
            +
                attr_accessor :paging
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
                # A mapping from model property names to API property names.
         
     | 
| 
      
 16 
     | 
    
         
            +
                def self.names
         
     | 
| 
      
 17 
     | 
    
         
            +
                  if @_hash.nil?
         
     | 
| 
      
 18 
     | 
    
         
            +
                    @_hash = {}
         
     | 
| 
      
 19 
     | 
    
         
            +
                    @_hash['data'] = 'data'
         
     | 
| 
      
 20 
     | 
    
         
            +
                    @_hash['paging'] = 'paging'
         
     | 
| 
      
 21 
     | 
    
         
            +
                  end
         
     | 
| 
      
 22 
     | 
    
         
            +
                  @_hash
         
     | 
| 
      
 23 
     | 
    
         
            +
                end
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
                def initialize(data = nil,
         
     | 
| 
      
 26 
     | 
    
         
            +
                               paging = nil)
         
     | 
| 
      
 27 
     | 
    
         
            +
                  @data = data
         
     | 
| 
      
 28 
     | 
    
         
            +
                  @paging = paging
         
     | 
| 
      
 29 
     | 
    
         
            +
                end
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
                # Creates an instance of the object from a hash.
         
     | 
| 
      
 32 
     | 
    
         
            +
                def self.from_hash(hash)
         
     | 
| 
      
 33 
     | 
    
         
            +
                  return nil unless hash
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                  # Extract variables from the hash.
         
     | 
| 
      
 36 
     | 
    
         
            +
                  # Parameter is an array, so we need to iterate through it
         
     | 
| 
      
 37 
     | 
    
         
            +
                  data = nil
         
     | 
| 
      
 38 
     | 
    
         
            +
                  unless hash['data'].nil?
         
     | 
| 
      
 39 
     | 
    
         
            +
                    data = []
         
     | 
| 
      
 40 
     | 
    
         
            +
                    hash['data'].each do |structure|
         
     | 
| 
      
 41 
     | 
    
         
            +
                      data << (GetChargeResponse.from_hash(structure) if structure)
         
     | 
| 
      
 42 
     | 
    
         
            +
                    end
         
     | 
| 
      
 43 
     | 
    
         
            +
                  end
         
     | 
| 
      
 44 
     | 
    
         
            +
                  paging = PagingResponse.from_hash(hash['paging']) if hash['paging']
         
     | 
| 
      
 45 
     | 
    
         
            +
             
     | 
| 
      
 46 
     | 
    
         
            +
                  # Create object from extracted values.
         
     | 
| 
      
 47 
     | 
    
         
            +
                  ListChargesResponse.new(data,
         
     | 
| 
      
 48 
     | 
    
         
            +
                                          paging)
         
     | 
| 
      
 49 
     | 
    
         
            +
                end
         
     | 
| 
      
 50 
     | 
    
         
            +
              end
         
     | 
| 
      
 51 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,51 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # This file was automatically generated by APIMATIC v2.0
         
     | 
| 
      
 2 
     | 
    
         
            +
            # ( https://apimatic.io ).
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            module MundiApi
         
     | 
| 
      
 5 
     | 
    
         
            +
              # Response for listing the customers
         
     | 
| 
      
 6 
     | 
    
         
            +
              class ListCustomersResponse < BaseModel
         
     | 
| 
      
 7 
     | 
    
         
            +
                # The customer object
         
     | 
| 
      
 8 
     | 
    
         
            +
                # @return [List of GetCustomerResponse]
         
     | 
| 
      
 9 
     | 
    
         
            +
                attr_accessor :data
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
                # Paging object
         
     | 
| 
      
 12 
     | 
    
         
            +
                # @return [PagingResponse]
         
     | 
| 
      
 13 
     | 
    
         
            +
                attr_accessor :paging
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
                # A mapping from model property names to API property names.
         
     | 
| 
      
 16 
     | 
    
         
            +
                def self.names
         
     | 
| 
      
 17 
     | 
    
         
            +
                  if @_hash.nil?
         
     | 
| 
      
 18 
     | 
    
         
            +
                    @_hash = {}
         
     | 
| 
      
 19 
     | 
    
         
            +
                    @_hash['data'] = 'data'
         
     | 
| 
      
 20 
     | 
    
         
            +
                    @_hash['paging'] = 'paging'
         
     | 
| 
      
 21 
     | 
    
         
            +
                  end
         
     | 
| 
      
 22 
     | 
    
         
            +
                  @_hash
         
     | 
| 
      
 23 
     | 
    
         
            +
                end
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
                def initialize(data = nil,
         
     | 
| 
      
 26 
     | 
    
         
            +
                               paging = nil)
         
     | 
| 
      
 27 
     | 
    
         
            +
                  @data = data
         
     | 
| 
      
 28 
     | 
    
         
            +
                  @paging = paging
         
     | 
| 
      
 29 
     | 
    
         
            +
                end
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
                # Creates an instance of the object from a hash.
         
     | 
| 
      
 32 
     | 
    
         
            +
                def self.from_hash(hash)
         
     | 
| 
      
 33 
     | 
    
         
            +
                  return nil unless hash
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                  # Extract variables from the hash.
         
     | 
| 
      
 36 
     | 
    
         
            +
                  # Parameter is an array, so we need to iterate through it
         
     | 
| 
      
 37 
     | 
    
         
            +
                  data = nil
         
     | 
| 
      
 38 
     | 
    
         
            +
                  unless hash['data'].nil?
         
     | 
| 
      
 39 
     | 
    
         
            +
                    data = []
         
     | 
| 
      
 40 
     | 
    
         
            +
                    hash['data'].each do |structure|
         
     | 
| 
      
 41 
     | 
    
         
            +
                      data << (GetCustomerResponse.from_hash(structure) if structure)
         
     | 
| 
      
 42 
     | 
    
         
            +
                    end
         
     | 
| 
      
 43 
     | 
    
         
            +
                  end
         
     | 
| 
      
 44 
     | 
    
         
            +
                  paging = PagingResponse.from_hash(hash['paging']) if hash['paging']
         
     | 
| 
      
 45 
     | 
    
         
            +
             
     | 
| 
      
 46 
     | 
    
         
            +
                  # Create object from extracted values.
         
     | 
| 
      
 47 
     | 
    
         
            +
                  ListCustomersResponse.new(data,
         
     | 
| 
      
 48 
     | 
    
         
            +
                                            paging)
         
     | 
| 
      
 49 
     | 
    
         
            +
                end
         
     | 
| 
      
 50 
     | 
    
         
            +
              end
         
     | 
| 
      
 51 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,51 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # This file was automatically generated by APIMATIC v2.0
         
     | 
| 
      
 2 
     | 
    
         
            +
            # ( https://apimatic.io ).
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            module MundiApi
         
     | 
| 
      
 5 
     | 
    
         
            +
              # Response object for listing invoices
         
     | 
| 
      
 6 
     | 
    
         
            +
              class ListInvoicesResponse < BaseModel
         
     | 
| 
      
 7 
     | 
    
         
            +
                # The Invoice objects
         
     | 
| 
      
 8 
     | 
    
         
            +
                # @return [List of GetInvoiceResponse]
         
     | 
| 
      
 9 
     | 
    
         
            +
                attr_accessor :data
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
                # Paging object
         
     | 
| 
      
 12 
     | 
    
         
            +
                # @return [PagingResponse]
         
     | 
| 
      
 13 
     | 
    
         
            +
                attr_accessor :paging
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
                # A mapping from model property names to API property names.
         
     | 
| 
      
 16 
     | 
    
         
            +
                def self.names
         
     | 
| 
      
 17 
     | 
    
         
            +
                  if @_hash.nil?
         
     | 
| 
      
 18 
     | 
    
         
            +
                    @_hash = {}
         
     | 
| 
      
 19 
     | 
    
         
            +
                    @_hash['data'] = 'data'
         
     | 
| 
      
 20 
     | 
    
         
            +
                    @_hash['paging'] = 'paging'
         
     | 
| 
      
 21 
     | 
    
         
            +
                  end
         
     | 
| 
      
 22 
     | 
    
         
            +
                  @_hash
         
     | 
| 
      
 23 
     | 
    
         
            +
                end
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
                def initialize(data = nil,
         
     | 
| 
      
 26 
     | 
    
         
            +
                               paging = nil)
         
     | 
| 
      
 27 
     | 
    
         
            +
                  @data = data
         
     | 
| 
      
 28 
     | 
    
         
            +
                  @paging = paging
         
     | 
| 
      
 29 
     | 
    
         
            +
                end
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
                # Creates an instance of the object from a hash.
         
     | 
| 
      
 32 
     | 
    
         
            +
                def self.from_hash(hash)
         
     | 
| 
      
 33 
     | 
    
         
            +
                  return nil unless hash
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                  # Extract variables from the hash.
         
     | 
| 
      
 36 
     | 
    
         
            +
                  # Parameter is an array, so we need to iterate through it
         
     | 
| 
      
 37 
     | 
    
         
            +
                  data = nil
         
     | 
| 
      
 38 
     | 
    
         
            +
                  unless hash['data'].nil?
         
     | 
| 
      
 39 
     | 
    
         
            +
                    data = []
         
     | 
| 
      
 40 
     | 
    
         
            +
                    hash['data'].each do |structure|
         
     | 
| 
      
 41 
     | 
    
         
            +
                      data << (GetInvoiceResponse.from_hash(structure) if structure)
         
     | 
| 
      
 42 
     | 
    
         
            +
                    end
         
     | 
| 
      
 43 
     | 
    
         
            +
                  end
         
     | 
| 
      
 44 
     | 
    
         
            +
                  paging = PagingResponse.from_hash(hash['paging']) if hash['paging']
         
     | 
| 
      
 45 
     | 
    
         
            +
             
     | 
| 
      
 46 
     | 
    
         
            +
                  # Create object from extracted values.
         
     | 
| 
      
 47 
     | 
    
         
            +
                  ListInvoicesResponse.new(data,
         
     | 
| 
      
 48 
     | 
    
         
            +
                                           paging)
         
     | 
| 
      
 49 
     | 
    
         
            +
                end
         
     | 
| 
      
 50 
     | 
    
         
            +
              end
         
     | 
| 
      
 51 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,51 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # This file was automatically generated by APIMATIC v2.0
         
     | 
| 
      
 2 
     | 
    
         
            +
            # ( https://apimatic.io ).
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            module MundiApi
         
     | 
| 
      
 5 
     | 
    
         
            +
              # Response object for listing order objects
         
     | 
| 
      
 6 
     | 
    
         
            +
              class ListOrderResponse < BaseModel
         
     | 
| 
      
 7 
     | 
    
         
            +
                # The order object
         
     | 
| 
      
 8 
     | 
    
         
            +
                # @return [List of GetOrderResponse]
         
     | 
| 
      
 9 
     | 
    
         
            +
                attr_accessor :data
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
                # Paging object
         
     | 
| 
      
 12 
     | 
    
         
            +
                # @return [PagingResponse]
         
     | 
| 
      
 13 
     | 
    
         
            +
                attr_accessor :paging
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
                # A mapping from model property names to API property names.
         
     | 
| 
      
 16 
     | 
    
         
            +
                def self.names
         
     | 
| 
      
 17 
     | 
    
         
            +
                  if @_hash.nil?
         
     | 
| 
      
 18 
     | 
    
         
            +
                    @_hash = {}
         
     | 
| 
      
 19 
     | 
    
         
            +
                    @_hash['data'] = 'data'
         
     | 
| 
      
 20 
     | 
    
         
            +
                    @_hash['paging'] = 'paging'
         
     | 
| 
      
 21 
     | 
    
         
            +
                  end
         
     | 
| 
      
 22 
     | 
    
         
            +
                  @_hash
         
     | 
| 
      
 23 
     | 
    
         
            +
                end
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
                def initialize(data = nil,
         
     | 
| 
      
 26 
     | 
    
         
            +
                               paging = nil)
         
     | 
| 
      
 27 
     | 
    
         
            +
                  @data = data
         
     | 
| 
      
 28 
     | 
    
         
            +
                  @paging = paging
         
     | 
| 
      
 29 
     | 
    
         
            +
                end
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
                # Creates an instance of the object from a hash.
         
     | 
| 
      
 32 
     | 
    
         
            +
                def self.from_hash(hash)
         
     | 
| 
      
 33 
     | 
    
         
            +
                  return nil unless hash
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                  # Extract variables from the hash.
         
     | 
| 
      
 36 
     | 
    
         
            +
                  # Parameter is an array, so we need to iterate through it
         
     | 
| 
      
 37 
     | 
    
         
            +
                  data = nil
         
     | 
| 
      
 38 
     | 
    
         
            +
                  unless hash['data'].nil?
         
     | 
| 
      
 39 
     | 
    
         
            +
                    data = []
         
     | 
| 
      
 40 
     | 
    
         
            +
                    hash['data'].each do |structure|
         
     | 
| 
      
 41 
     | 
    
         
            +
                      data << (GetOrderResponse.from_hash(structure) if structure)
         
     | 
| 
      
 42 
     | 
    
         
            +
                    end
         
     | 
| 
      
 43 
     | 
    
         
            +
                  end
         
     | 
| 
      
 44 
     | 
    
         
            +
                  paging = PagingResponse.from_hash(hash['paging']) if hash['paging']
         
     | 
| 
      
 45 
     | 
    
         
            +
             
     | 
| 
      
 46 
     | 
    
         
            +
                  # Create object from extracted values.
         
     | 
| 
      
 47 
     | 
    
         
            +
                  ListOrderResponse.new(data,
         
     | 
| 
      
 48 
     | 
    
         
            +
                                        paging)
         
     | 
| 
      
 49 
     | 
    
         
            +
                end
         
     | 
| 
      
 50 
     | 
    
         
            +
              end
         
     | 
| 
      
 51 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,51 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # This file was automatically generated by APIMATIC v2.0
         
     | 
| 
      
 2 
     | 
    
         
            +
            # ( https://apimatic.io ).
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            module MundiApi
         
     | 
| 
      
 5 
     | 
    
         
            +
              # Response object for listing plans
         
     | 
| 
      
 6 
     | 
    
         
            +
              class ListPlansResponse < BaseModel
         
     | 
| 
      
 7 
     | 
    
         
            +
                # The plan objects
         
     | 
| 
      
 8 
     | 
    
         
            +
                # @return [List of GetPlanResponse]
         
     | 
| 
      
 9 
     | 
    
         
            +
                attr_accessor :data
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
                # Paging object
         
     | 
| 
      
 12 
     | 
    
         
            +
                # @return [PagingResponse]
         
     | 
| 
      
 13 
     | 
    
         
            +
                attr_accessor :paging
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
                # A mapping from model property names to API property names.
         
     | 
| 
      
 16 
     | 
    
         
            +
                def self.names
         
     | 
| 
      
 17 
     | 
    
         
            +
                  if @_hash.nil?
         
     | 
| 
      
 18 
     | 
    
         
            +
                    @_hash = {}
         
     | 
| 
      
 19 
     | 
    
         
            +
                    @_hash['data'] = 'data'
         
     | 
| 
      
 20 
     | 
    
         
            +
                    @_hash['paging'] = 'paging'
         
     | 
| 
      
 21 
     | 
    
         
            +
                  end
         
     | 
| 
      
 22 
     | 
    
         
            +
                  @_hash
         
     | 
| 
      
 23 
     | 
    
         
            +
                end
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
                def initialize(data = nil,
         
     | 
| 
      
 26 
     | 
    
         
            +
                               paging = nil)
         
     | 
| 
      
 27 
     | 
    
         
            +
                  @data = data
         
     | 
| 
      
 28 
     | 
    
         
            +
                  @paging = paging
         
     | 
| 
      
 29 
     | 
    
         
            +
                end
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
                # Creates an instance of the object from a hash.
         
     | 
| 
      
 32 
     | 
    
         
            +
                def self.from_hash(hash)
         
     | 
| 
      
 33 
     | 
    
         
            +
                  return nil unless hash
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                  # Extract variables from the hash.
         
     | 
| 
      
 36 
     | 
    
         
            +
                  # Parameter is an array, so we need to iterate through it
         
     | 
| 
      
 37 
     | 
    
         
            +
                  data = nil
         
     | 
| 
      
 38 
     | 
    
         
            +
                  unless hash['data'].nil?
         
     | 
| 
      
 39 
     | 
    
         
            +
                    data = []
         
     | 
| 
      
 40 
     | 
    
         
            +
                    hash['data'].each do |structure|
         
     | 
| 
      
 41 
     | 
    
         
            +
                      data << (GetPlanResponse.from_hash(structure) if structure)
         
     | 
| 
      
 42 
     | 
    
         
            +
                    end
         
     | 
| 
      
 43 
     | 
    
         
            +
                  end
         
     | 
| 
      
 44 
     | 
    
         
            +
                  paging = PagingResponse.from_hash(hash['paging']) if hash['paging']
         
     | 
| 
      
 45 
     | 
    
         
            +
             
     | 
| 
      
 46 
     | 
    
         
            +
                  # Create object from extracted values.
         
     | 
| 
      
 47 
     | 
    
         
            +
                  ListPlansResponse.new(data,
         
     | 
| 
      
 48 
     | 
    
         
            +
                                        paging)
         
     | 
| 
      
 49 
     | 
    
         
            +
                end
         
     | 
| 
      
 50 
     | 
    
         
            +
              end
         
     | 
| 
      
 51 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,51 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # This file was automatically generated by APIMATIC v2.0
         
     | 
| 
      
 2 
     | 
    
         
            +
            # ( https://apimatic.io ).
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            module MundiApi
         
     | 
| 
      
 5 
     | 
    
         
            +
              # Response model for listing subscription items
         
     | 
| 
      
 6 
     | 
    
         
            +
              class ListSubscriptionItemsResponse < BaseModel
         
     | 
| 
      
 7 
     | 
    
         
            +
                # The subscription items
         
     | 
| 
      
 8 
     | 
    
         
            +
                # @return [List of GetSubscriptionItemResponse]
         
     | 
| 
      
 9 
     | 
    
         
            +
                attr_accessor :data
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
                # Paging object
         
     | 
| 
      
 12 
     | 
    
         
            +
                # @return [PagingResponse]
         
     | 
| 
      
 13 
     | 
    
         
            +
                attr_accessor :paging
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
                # A mapping from model property names to API property names.
         
     | 
| 
      
 16 
     | 
    
         
            +
                def self.names
         
     | 
| 
      
 17 
     | 
    
         
            +
                  if @_hash.nil?
         
     | 
| 
      
 18 
     | 
    
         
            +
                    @_hash = {}
         
     | 
| 
      
 19 
     | 
    
         
            +
                    @_hash['data'] = 'data'
         
     | 
| 
      
 20 
     | 
    
         
            +
                    @_hash['paging'] = 'paging'
         
     | 
| 
      
 21 
     | 
    
         
            +
                  end
         
     | 
| 
      
 22 
     | 
    
         
            +
                  @_hash
         
     | 
| 
      
 23 
     | 
    
         
            +
                end
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
                def initialize(data = nil,
         
     | 
| 
      
 26 
     | 
    
         
            +
                               paging = nil)
         
     | 
| 
      
 27 
     | 
    
         
            +
                  @data = data
         
     | 
| 
      
 28 
     | 
    
         
            +
                  @paging = paging
         
     | 
| 
      
 29 
     | 
    
         
            +
                end
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
                # Creates an instance of the object from a hash.
         
     | 
| 
      
 32 
     | 
    
         
            +
                def self.from_hash(hash)
         
     | 
| 
      
 33 
     | 
    
         
            +
                  return nil unless hash
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                  # Extract variables from the hash.
         
     | 
| 
      
 36 
     | 
    
         
            +
                  # Parameter is an array, so we need to iterate through it
         
     | 
| 
      
 37 
     | 
    
         
            +
                  data = nil
         
     | 
| 
      
 38 
     | 
    
         
            +
                  unless hash['data'].nil?
         
     | 
| 
      
 39 
     | 
    
         
            +
                    data = []
         
     | 
| 
      
 40 
     | 
    
         
            +
                    hash['data'].each do |structure|
         
     | 
| 
      
 41 
     | 
    
         
            +
                      data << (GetSubscriptionItemResponse.from_hash(structure) if structure)
         
     | 
| 
      
 42 
     | 
    
         
            +
                    end
         
     | 
| 
      
 43 
     | 
    
         
            +
                  end
         
     | 
| 
      
 44 
     | 
    
         
            +
                  paging = PagingResponse.from_hash(hash['paging']) if hash['paging']
         
     | 
| 
      
 45 
     | 
    
         
            +
             
     | 
| 
      
 46 
     | 
    
         
            +
                  # Create object from extracted values.
         
     | 
| 
      
 47 
     | 
    
         
            +
                  ListSubscriptionItemsResponse.new(data,
         
     | 
| 
      
 48 
     | 
    
         
            +
                                                    paging)
         
     | 
| 
      
 49 
     | 
    
         
            +
                end
         
     | 
| 
      
 50 
     | 
    
         
            +
              end
         
     | 
| 
      
 51 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,51 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # This file was automatically generated by APIMATIC v2.0
         
     | 
| 
      
 2 
     | 
    
         
            +
            # ( https://apimatic.io ).
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            module MundiApi
         
     | 
| 
      
 5 
     | 
    
         
            +
              # Response object for listing subscriptions
         
     | 
| 
      
 6 
     | 
    
         
            +
              class ListSubscriptionsResponse < BaseModel
         
     | 
| 
      
 7 
     | 
    
         
            +
                # The subscription objects
         
     | 
| 
      
 8 
     | 
    
         
            +
                # @return [List of GetSubscriptionResponse]
         
     | 
| 
      
 9 
     | 
    
         
            +
                attr_accessor :data
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
                # Paging object
         
     | 
| 
      
 12 
     | 
    
         
            +
                # @return [PagingResponse]
         
     | 
| 
      
 13 
     | 
    
         
            +
                attr_accessor :paging
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
                # A mapping from model property names to API property names.
         
     | 
| 
      
 16 
     | 
    
         
            +
                def self.names
         
     | 
| 
      
 17 
     | 
    
         
            +
                  if @_hash.nil?
         
     | 
| 
      
 18 
     | 
    
         
            +
                    @_hash = {}
         
     | 
| 
      
 19 
     | 
    
         
            +
                    @_hash['data'] = 'data'
         
     | 
| 
      
 20 
     | 
    
         
            +
                    @_hash['paging'] = 'paging'
         
     | 
| 
      
 21 
     | 
    
         
            +
                  end
         
     | 
| 
      
 22 
     | 
    
         
            +
                  @_hash
         
     | 
| 
      
 23 
     | 
    
         
            +
                end
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
                def initialize(data = nil,
         
     | 
| 
      
 26 
     | 
    
         
            +
                               paging = nil)
         
     | 
| 
      
 27 
     | 
    
         
            +
                  @data = data
         
     | 
| 
      
 28 
     | 
    
         
            +
                  @paging = paging
         
     | 
| 
      
 29 
     | 
    
         
            +
                end
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
                # Creates an instance of the object from a hash.
         
     | 
| 
      
 32 
     | 
    
         
            +
                def self.from_hash(hash)
         
     | 
| 
      
 33 
     | 
    
         
            +
                  return nil unless hash
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                  # Extract variables from the hash.
         
     | 
| 
      
 36 
     | 
    
         
            +
                  # Parameter is an array, so we need to iterate through it
         
     | 
| 
      
 37 
     | 
    
         
            +
                  data = nil
         
     | 
| 
      
 38 
     | 
    
         
            +
                  unless hash['data'].nil?
         
     | 
| 
      
 39 
     | 
    
         
            +
                    data = []
         
     | 
| 
      
 40 
     | 
    
         
            +
                    hash['data'].each do |structure|
         
     | 
| 
      
 41 
     | 
    
         
            +
                      data << (GetSubscriptionResponse.from_hash(structure) if structure)
         
     | 
| 
      
 42 
     | 
    
         
            +
                    end
         
     | 
| 
      
 43 
     | 
    
         
            +
                  end
         
     | 
| 
      
 44 
     | 
    
         
            +
                  paging = PagingResponse.from_hash(hash['paging']) if hash['paging']
         
     | 
| 
      
 45 
     | 
    
         
            +
             
     | 
| 
      
 46 
     | 
    
         
            +
                  # Create object from extracted values.
         
     | 
| 
      
 47 
     | 
    
         
            +
                  ListSubscriptionsResponse.new(data,
         
     | 
| 
      
 48 
     | 
    
         
            +
                                                paging)
         
     | 
| 
      
 49 
     | 
    
         
            +
                end
         
     | 
| 
      
 50 
     | 
    
         
            +
              end
         
     | 
| 
      
 51 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,51 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # This file was automatically generated by APIMATIC v2.0
         
     | 
| 
      
 2 
     | 
    
         
            +
            # ( https://apimatic.io ).
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            module MundiApi
         
     | 
| 
      
 5 
     | 
    
         
            +
              # Response object for listing transactions
         
     | 
| 
      
 6 
     | 
    
         
            +
              class ListTransactionsResponse < BaseModel
         
     | 
| 
      
 7 
     | 
    
         
            +
                # The transaction objects
         
     | 
| 
      
 8 
     | 
    
         
            +
                # @return [List of GetTransactionResponse]
         
     | 
| 
      
 9 
     | 
    
         
            +
                attr_accessor :data
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
                # Paging object
         
     | 
| 
      
 12 
     | 
    
         
            +
                # @return [PagingResponse]
         
     | 
| 
      
 13 
     | 
    
         
            +
                attr_accessor :paging
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
                # A mapping from model property names to API property names.
         
     | 
| 
      
 16 
     | 
    
         
            +
                def self.names
         
     | 
| 
      
 17 
     | 
    
         
            +
                  if @_hash.nil?
         
     | 
| 
      
 18 
     | 
    
         
            +
                    @_hash = {}
         
     | 
| 
      
 19 
     | 
    
         
            +
                    @_hash['data'] = 'data'
         
     | 
| 
      
 20 
     | 
    
         
            +
                    @_hash['paging'] = 'paging'
         
     | 
| 
      
 21 
     | 
    
         
            +
                  end
         
     | 
| 
      
 22 
     | 
    
         
            +
                  @_hash
         
     | 
| 
      
 23 
     | 
    
         
            +
                end
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
                def initialize(data = nil,
         
     | 
| 
      
 26 
     | 
    
         
            +
                               paging = nil)
         
     | 
| 
      
 27 
     | 
    
         
            +
                  @data = data
         
     | 
| 
      
 28 
     | 
    
         
            +
                  @paging = paging
         
     | 
| 
      
 29 
     | 
    
         
            +
                end
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
                # Creates an instance of the object from a hash.
         
     | 
| 
      
 32 
     | 
    
         
            +
                def self.from_hash(hash)
         
     | 
| 
      
 33 
     | 
    
         
            +
                  return nil unless hash
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                  # Extract variables from the hash.
         
     | 
| 
      
 36 
     | 
    
         
            +
                  # Parameter is an array, so we need to iterate through it
         
     | 
| 
      
 37 
     | 
    
         
            +
                  data = nil
         
     | 
| 
      
 38 
     | 
    
         
            +
                  unless hash['data'].nil?
         
     | 
| 
      
 39 
     | 
    
         
            +
                    data = []
         
     | 
| 
      
 40 
     | 
    
         
            +
                    hash['data'].each do |structure|
         
     | 
| 
      
 41 
     | 
    
         
            +
                      data << (GetTransactionResponse.from_hash(structure) if structure)
         
     | 
| 
      
 42 
     | 
    
         
            +
                    end
         
     | 
| 
      
 43 
     | 
    
         
            +
                  end
         
     | 
| 
      
 44 
     | 
    
         
            +
                  paging = PagingResponse.from_hash(hash['paging']) if hash['paging']
         
     | 
| 
      
 45 
     | 
    
         
            +
             
     | 
| 
      
 46 
     | 
    
         
            +
                  # Create object from extracted values.
         
     | 
| 
      
 47 
     | 
    
         
            +
                  ListTransactionsResponse.new(data,
         
     | 
| 
      
 48 
     | 
    
         
            +
                                               paging)
         
     | 
| 
      
 49 
     | 
    
         
            +
                end
         
     | 
| 
      
 50 
     | 
    
         
            +
              end
         
     | 
| 
      
 51 
     | 
    
         
            +
            end
         
     |