fdx-api-sdk-ruby 1.0.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 +125 -0
- data/lib/fdx_api/api_helper.rb +10 -0
- data/lib/fdx_api/client.rb +187 -0
- data/lib/fdx_api/configuration.rb +133 -0
- data/lib/fdx_api/controllers/account_information_controller.rb +135 -0
- data/lib/fdx_api/controllers/account_statements_controller.rb +132 -0
- data/lib/fdx_api/controllers/account_transactions_controller.rb +126 -0
- data/lib/fdx_api/controllers/base_controller.rb +65 -0
- data/lib/fdx_api/controllers/event_notifications_controller.rb +274 -0
- data/lib/fdx_api/controllers/fraud_notification_controller.rb +37 -0
- data/lib/fdx_api/controllers/internal_transfers_controller.rb +206 -0
- data/lib/fdx_api/controllers/meta_controller.rb +105 -0
- data/lib/fdx_api/controllers/money_movement_controller.rb +92 -0
- data/lib/fdx_api/controllers/payee_management_controller.rb +257 -0
- data/lib/fdx_api/controllers/payment_initiation_parties_controller.rb +439 -0
- data/lib/fdx_api/controllers/payments_controller.rb +280 -0
- data/lib/fdx_api/controllers/payroll_information_controller.rb +117 -0
- data/lib/fdx_api/controllers/personal_information_controller.rb +155 -0
- data/lib/fdx_api/controllers/recipients_controller.rb +197 -0
- data/lib/fdx_api/controllers/recurring_payments_controller.rb +339 -0
- data/lib/fdx_api/controllers/resource_information_controller.rb +121 -0
- data/lib/fdx_api/controllers/reward_program_categories_controller.rb +64 -0
- data/lib/fdx_api/controllers/reward_program_information_controller.rb +88 -0
- data/lib/fdx_api/controllers/submit_tax_forms_controller.rb +106 -0
- data/lib/fdx_api/controllers/tax_forms_controller.rb +190 -0
- data/lib/fdx_api/controllers/user_consent_controller.rb +125 -0
- data/lib/fdx_api/exceptions/api_exception.rb +21 -0
- data/lib/fdx_api/exceptions/error_exception.rb +65 -0
- data/lib/fdx_api/exceptions/payee_entity_error_exception.rb +48 -0
- data/lib/fdx_api/exceptions/payment_entity_error_exception.rb +160 -0
- data/lib/fdx_api/exceptions/recurring_payment_entity_error_exception.rb +140 -0
- data/lib/fdx_api/http/api_response.rb +19 -0
- data/lib/fdx_api/http/auth/bearer_auth.rb +43 -0
- data/lib/fdx_api/http/auth/tax_basic_auth.rb +50 -0
- data/lib/fdx_api/http/http_call_back.rb +10 -0
- data/lib/fdx_api/http/http_method_enum.rb +10 -0
- data/lib/fdx_api/http/http_request.rb +10 -0
- data/lib/fdx_api/http/http_response.rb +10 -0
- data/lib/fdx_api/http/proxy_settings.rb +13 -0
- data/lib/fdx_api/logging/configuration/api_logging_configuration.rb +114 -0
- data/lib/fdx_api/logging/sdk_logger.rb +17 -0
- data/lib/fdx_api/models/account_bill_pay_status.rb +32 -0
- data/lib/fdx_api/models/account_bill_pay_status2.rb +29 -0
- data/lib/fdx_api/models/account_category_type.rb +41 -0
- data/lib/fdx_api/models/account_contact_entity.rb +132 -0
- data/lib/fdx_api/models/account_contact_entity2.rb +142 -0
- data/lib/fdx_api/models/account_descriptor_entity.rb +253 -0
- data/lib/fdx_api/models/account_entity.rb +380 -0
- data/lib/fdx_api/models/account_holder_entity.rb +263 -0
- data/lib/fdx_api/models/account_holder_relationship.rb +79 -0
- data/lib/fdx_api/models/account_holder_relationship1.rb +79 -0
- data/lib/fdx_api/models/account_status.rb +41 -0
- data/lib/fdx_api/models/account_status2.rb +42 -0
- data/lib/fdx_api/models/account_type.rb +240 -0
- data/lib/fdx_api/models/accounts_entity.rb +109 -0
- data/lib/fdx_api/models/active_inactive_status.rb +23 -0
- data/lib/fdx_api/models/active_inactive_status2.rb +23 -0
- data/lib/fdx_api/models/address.rb +151 -0
- data/lib/fdx_api/models/an_array_of_statements.rb +105 -0
- data/lib/fdx_api/models/annuity_account_entity.rb +347 -0
- data/lib/fdx_api/models/array_of_account_payment_networks.rb +104 -0
- data/lib/fdx_api/models/asset_class.rb +38 -0
- data/lib/fdx_api/models/asset_class2.rb +38 -0
- data/lib/fdx_api/models/asset_transfer_network.rb +134 -0
- data/lib/fdx_api/models/asset_transfer_network_list.rb +85 -0
- data/lib/fdx_api/models/asset_transfer_type.rb +26 -0
- data/lib/fdx_api/models/asset_transfer_type2.rb +26 -0
- data/lib/fdx_api/models/availability_entity.rb +115 -0
- data/lib/fdx_api/models/availability_entity1.rb +115 -0
- data/lib/fdx_api/models/availability_list_entity.rb +85 -0
- data/lib/fdx_api/models/availability_status.rb +29 -0
- data/lib/fdx_api/models/availability_status1.rb +29 -0
- data/lib/fdx_api/models/availability_status3.rb +29 -0
- data/lib/fdx_api/models/balance_type.rb +25 -0
- data/lib/fdx_api/models/balance_type2.rb +24 -0
- data/lib/fdx_api/models/base_model.rb +110 -0
- data/lib/fdx_api/models/base_payroll_rate.rb +82 -0
- data/lib/fdx_api/models/base_payroll_rate1.rb +82 -0
- data/lib/fdx_api/models/basic_auth_credentials.rb +105 -0
- data/lib/fdx_api/models/basic_auth_credentials1.rb +105 -0
- data/lib/fdx_api/models/basic_auth_for_qr.rb +96 -0
- data/lib/fdx_api/models/bills_entity.rb +201 -0
- data/lib/fdx_api/models/branch_entity.rb +116 -0
- data/lib/fdx_api/models/branch_entity1.rb +126 -0
- data/lib/fdx_api/models/business_customer_entity.rb +136 -0
- data/lib/fdx_api/models/business_income_statement.rb +604 -0
- data/lib/fdx_api/models/business_name.rb +85 -0
- data/lib/fdx_api/models/business_or_consumer_type.rb +23 -0
- data/lib/fdx_api/models/business_or_consumer_type1.rb +23 -0
- data/lib/fdx_api/models/call_type.rb +29 -0
- data/lib/fdx_api/models/call_type2.rb +29 -0
- data/lib/fdx_api/models/capability_entity.rb +139 -0
- data/lib/fdx_api/models/card_art_entity.rb +91 -0
- data/lib/fdx_api/models/card_art_entity2.rb +101 -0
- data/lib/fdx_api/models/certification_metric_entity.rb +172 -0
- data/lib/fdx_api/models/certification_metrics_entity.rb +84 -0
- data/lib/fdx_api/models/code_and_amount.rb +85 -0
- data/lib/fdx_api/models/commercial_account_entity.rb +457 -0
- data/lib/fdx_api/models/commercial_balance_entity.rb +106 -0
- data/lib/fdx_api/models/commercial_code_entity.rb +91 -0
- data/lib/fdx_api/models/commercial_code_entity1.rb +96 -0
- data/lib/fdx_api/models/commercial_transaction_entity.rb +286 -0
- data/lib/fdx_api/models/compounding_period.rb +38 -0
- data/lib/fdx_api/models/compounding_period2.rb +38 -0
- data/lib/fdx_api/models/consent_duration_type.rb +26 -0
- data/lib/fdx_api/models/consent_grant_entity.rb +232 -0
- data/lib/fdx_api/models/consent_grant_resource_entity.rb +92 -0
- data/lib/fdx_api/models/consent_grant_status.rb +26 -0
- data/lib/fdx_api/models/consent_grant_status1.rb +26 -0
- data/lib/fdx_api/models/consent_grant_status3.rb +26 -0
- data/lib/fdx_api/models/consent_request_entity.rb +121 -0
- data/lib/fdx_api/models/consent_requested_resource_entity.rb +82 -0
- data/lib/fdx_api/models/consent_resource_type.rb +27 -0
- data/lib/fdx_api/models/consent_resource_type1.rb +26 -0
- data/lib/fdx_api/models/consent_resource_type3.rb +26 -0
- data/lib/fdx_api/models/consent_revocation_entity.rb +114 -0
- data/lib/fdx_api/models/consent_revocation_list_entity.rb +85 -0
- data/lib/fdx_api/models/consent_revocation_request_entity.rb +85 -0
- data/lib/fdx_api/models/consent_update_reason.rb +23 -0
- data/lib/fdx_api/models/consent_update_reason1.rb +23 -0
- data/lib/fdx_api/models/contact_preferences_type.rb +32 -0
- data/lib/fdx_api/models/contact_preferences_type2.rb +32 -0
- data/lib/fdx_api/models/contacts_entity.rb +113 -0
- data/lib/fdx_api/models/content_types.rb +38 -0
- data/lib/fdx_api/models/contribution_entity.rb +275 -0
- data/lib/fdx_api/models/coupon_mature_frequency.rb +32 -0
- data/lib/fdx_api/models/coupon_mature_frequency2.rb +32 -0
- data/lib/fdx_api/models/coverage_month.rb +56 -0
- data/lib/fdx_api/models/coverage_month1.rb +56 -0
- data/lib/fdx_api/models/coverage_month3.rb +56 -0
- data/lib/fdx_api/models/cryptocurrency_tax_statement_list.rb +239 -0
- data/lib/fdx_api/models/cryptocurrency_tax_statement_list1.rb +239 -0
- data/lib/fdx_api/models/currency_entity.rb +98 -0
- data/lib/fdx_api/models/currency_entity1.rb +108 -0
- data/lib/fdx_api/models/currency_entity2.rb +108 -0
- data/lib/fdx_api/models/currency_entity4.rb +108 -0
- data/lib/fdx_api/models/customer_entity.rb +241 -0
- data/lib/fdx_api/models/customer_name_entity.rb +134 -0
- data/lib/fdx_api/models/customer_name_entity1.rb +134 -0
- data/lib/fdx_api/models/customer_to_account_relationship_entity.rb +114 -0
- data/lib/fdx_api/models/customers_entity.rb +104 -0
- data/lib/fdx_api/models/data_cluster.rb +63 -0
- data/lib/fdx_api/models/date_and_amount.rb +95 -0
- data/lib/fdx_api/models/debit_credit_memo.rb +26 -0
- data/lib/fdx_api/models/debit_credit_memo2.rb +26 -0
- data/lib/fdx_api/models/debt_class.rb +29 -0
- data/lib/fdx_api/models/debt_class2.rb +29 -0
- data/lib/fdx_api/models/debt_security_entity.rb +209 -0
- data/lib/fdx_api/models/debt_type.rb +23 -0
- data/lib/fdx_api/models/debt_type2.rb +23 -0
- data/lib/fdx_api/models/delivery_address.rb +160 -0
- data/lib/fdx_api/models/delivery_address1.rb +150 -0
- data/lib/fdx_api/models/delivery_address_type.rb +29 -0
- data/lib/fdx_api/models/deposit_account_entity.rb +335 -0
- data/lib/fdx_api/models/deposit_transaction_entity.rb +223 -0
- data/lib/fdx_api/models/deposit_transaction_type.rb +59 -0
- data/lib/fdx_api/models/deposit_transaction_type2.rb +61 -0
- data/lib/fdx_api/models/description_and_amount.rb +85 -0
- data/lib/fdx_api/models/digital_wallet_account_entity.rb +316 -0
- data/lib/fdx_api/models/digital_wallet_transaction_entity.rb +213 -0
- data/lib/fdx_api/models/digital_wallet_transaction_type.rb +59 -0
- data/lib/fdx_api/models/digital_wallet_transaction_type2.rb +61 -0
- data/lib/fdx_api/models/direct_deposit_entity.rb +98 -0
- data/lib/fdx_api/models/document_status.rb +26 -0
- data/lib/fdx_api/models/document_status2.rb +26 -0
- data/lib/fdx_api/models/domicile_entity.rb +95 -0
- data/lib/fdx_api/models/domicile_entity1.rb +95 -0
- data/lib/fdx_api/models/electronic_address_entity.rb +87 -0
- data/lib/fdx_api/models/employee_entity.rb +175 -0
- data/lib/fdx_api/models/employee_entity1.rb +175 -0
- data/lib/fdx_api/models/employer_entity.rb +125 -0
- data/lib/fdx_api/models/employer_entity1.rb +125 -0
- data/lib/fdx_api/models/employment.rb +149 -0
- data/lib/fdx_api/models/employment1.rb +149 -0
- data/lib/fdx_api/models/employment_type.rb +36 -0
- data/lib/fdx_api/models/employment_type2.rb +36 -0
- data/lib/fdx_api/models/error1.rb +113 -0
- data/lib/fdx_api/models/expired_option_type.rb +23 -0
- data/lib/fdx_api/models/expired_option_type2.rb +24 -0
- data/lib/fdx_api/models/external_account_id_scheme_entity.rb +85 -0
- data/lib/fdx_api/models/external_financial_institution_id_scheme_entity.rb +85 -0
- data/lib/fdx_api/models/farm_income_statement.rb +628 -0
- data/lib/fdx_api/models/farm_rental_income_statement.rb +586 -0
- data/lib/fdx_api/models/fdx_api_actor_type.rb +24 -0
- data/lib/fdx_api/models/fdx_jwt_profile.rb +171 -0
- data/lib/fdx_api/models/fdx_oauth_token_introspection_response.rb +180 -0
- data/lib/fdx_api/models/fdx_resource_operation_id.rb +227 -0
- data/lib/fdx_api/models/fdx_resource_operation_id1.rb +227 -0
- data/lib/fdx_api/models/fdx_resource_operation_id3.rb +227 -0
- data/lib/fdx_api/models/fdx_version.rb +119 -0
- data/lib/fdx_api/models/fi_attribute_entity.rb +95 -0
- data/lib/fdx_api/models/fi_portion_entity.rb +95 -0
- data/lib/fdx_api/models/financial_institution_entity.rb +116 -0
- data/lib/fdx_api/models/financial_institution_entity2.rb +116 -0
- data/lib/fdx_api/models/form1041_k1.rb +572 -0
- data/lib/fdx_api/models/form1041_k11.rb +570 -0
- data/lib/fdx_api/models/form1042_s.rb +541 -0
- data/lib/fdx_api/models/form1042_s1.rb +539 -0
- data/lib/fdx_api/models/form1042_s_agent.rb +207 -0
- data/lib/fdx_api/models/form1042_s_agent1.rb +196 -0
- data/lib/fdx_api/models/form1042_s_agent2.rb +196 -0
- data/lib/fdx_api/models/form1042_s_agent3.rb +196 -0
- data/lib/fdx_api/models/form1042_s_agent4.rb +196 -0
- data/lib/fdx_api/models/form1042_s_recipient.rb +216 -0
- data/lib/fdx_api/models/form1042_s_recipient1.rb +216 -0
- data/lib/fdx_api/models/form1065_k1.rb +1177 -0
- data/lib/fdx_api/models/form1065_k11.rb +1176 -0
- data/lib/fdx_api/models/form1095_a.rb +364 -0
- data/lib/fdx_api/models/form1095_a1.rb +364 -0
- data/lib/fdx_api/models/form1095_b.rb +281 -0
- data/lib/fdx_api/models/form1095_b1.rb +280 -0
- data/lib/fdx_api/models/form1095_c.rb +294 -0
- data/lib/fdx_api/models/form1095_c1.rb +293 -0
- data/lib/fdx_api/models/form1097_btc.rb +314 -0
- data/lib/fdx_api/models/form1097_btc1.rb +313 -0
- data/lib/fdx_api/models/form1098.rb +388 -0
- data/lib/fdx_api/models/form10981.rb +387 -0
- data/lib/fdx_api/models/form1098_c.rb +421 -0
- data/lib/fdx_api/models/form1098_c1.rb +420 -0
- data/lib/fdx_api/models/form1098_e.rb +255 -0
- data/lib/fdx_api/models/form1098_e1.rb +254 -0
- data/lib/fdx_api/models/form1098_ma.rb +276 -0
- data/lib/fdx_api/models/form1098_ma1.rb +275 -0
- data/lib/fdx_api/models/form1098_q.rb +338 -0
- data/lib/fdx_api/models/form1098_q1.rb +337 -0
- data/lib/fdx_api/models/form1098_t.rb +338 -0
- data/lib/fdx_api/models/form1098_t1.rb +337 -0
- data/lib/fdx_api/models/form1099_a.rb +289 -0
- data/lib/fdx_api/models/form1099_a1.rb +288 -0
- data/lib/fdx_api/models/form1099_b.rb +368 -0
- data/lib/fdx_api/models/form1099_b1.rb +367 -0
- data/lib/fdx_api/models/form1099_c.rb +310 -0
- data/lib/fdx_api/models/form1099_c1.rb +309 -0
- data/lib/fdx_api/models/form1099_cap.rb +274 -0
- data/lib/fdx_api/models/form1099_cap1.rb +273 -0
- data/lib/fdx_api/models/form1099_consolidated_statement.rb +327 -0
- data/lib/fdx_api/models/form1099_consolidated_statement1.rb +325 -0
- data/lib/fdx_api/models/form1099_div.rb +538 -0
- data/lib/fdx_api/models/form1099_div1.rb +537 -0
- data/lib/fdx_api/models/form1099_g.rb +363 -0
- data/lib/fdx_api/models/form1099_g1.rb +362 -0
- data/lib/fdx_api/models/form1099_h.rb +263 -0
- data/lib/fdx_api/models/form1099_h1.rb +262 -0
- data/lib/fdx_api/models/form1099_int.rb +488 -0
- data/lib/fdx_api/models/form1099_int1.rb +487 -0
- data/lib/fdx_api/models/form1099_k.rb +413 -0
- data/lib/fdx_api/models/form1099_k1.rb +412 -0
- data/lib/fdx_api/models/form1099_ls.rb +274 -0
- data/lib/fdx_api/models/form1099_ls1.rb +273 -0
- data/lib/fdx_api/models/form1099_ltc.rb +339 -0
- data/lib/fdx_api/models/form1099_ltc1.rb +338 -0
- data/lib/fdx_api/models/form1099_misc.rb +438 -0
- data/lib/fdx_api/models/form1099_misc1.rb +437 -0
- data/lib/fdx_api/models/form1099_nec.rb +301 -0
- data/lib/fdx_api/models/form1099_nec1.rb +300 -0
- data/lib/fdx_api/models/form1099_oid.rb +431 -0
- data/lib/fdx_api/models/form1099_oid1.rb +430 -0
- data/lib/fdx_api/models/form1099_patr.rb +421 -0
- data/lib/fdx_api/models/form1099_patr1.rb +420 -0
- data/lib/fdx_api/models/form1099_q.rb +335 -0
- data/lib/fdx_api/models/form1099_q1.rb +334 -0
- data/lib/fdx_api/models/form1099_qa.rb +295 -0
- data/lib/fdx_api/models/form1099_qa1.rb +294 -0
- data/lib/fdx_api/models/form1099_r.rb +475 -0
- data/lib/fdx_api/models/form1099_r1.rb +474 -0
- data/lib/fdx_api/models/form1099_s.rb +306 -0
- data/lib/fdx_api/models/form1099_s1.rb +305 -0
- data/lib/fdx_api/models/form1099_sa.rb +306 -0
- data/lib/fdx_api/models/form1099_sa1.rb +305 -0
- data/lib/fdx_api/models/form1099_sb.rb +267 -0
- data/lib/fdx_api/models/form1099_sb1.rb +266 -0
- data/lib/fdx_api/models/form1120_sk1.rb +670 -0
- data/lib/fdx_api/models/form1120_sk11.rb +669 -0
- data/lib/fdx_api/models/form2439.rb +306 -0
- data/lib/fdx_api/models/form24391.rb +305 -0
- data/lib/fdx_api/models/form3921.rb +298 -0
- data/lib/fdx_api/models/form39211.rb +297 -0
- data/lib/fdx_api/models/form3922.rb +327 -0
- data/lib/fdx_api/models/form39221.rb +326 -0
- data/lib/fdx_api/models/form5498.rb +486 -0
- data/lib/fdx_api/models/form54981.rb +485 -0
- data/lib/fdx_api/models/form5498_esa.rb +258 -0
- data/lib/fdx_api/models/form5498_esa1.rb +257 -0
- data/lib/fdx_api/models/form5498_qa.rb +311 -0
- data/lib/fdx_api/models/form5498_qa1.rb +310 -0
- data/lib/fdx_api/models/form5498_sa.rb +321 -0
- data/lib/fdx_api/models/form5498_sa1.rb +320 -0
- data/lib/fdx_api/models/form_w2.rb +459 -0
- data/lib/fdx_api/models/form_w21.rb +458 -0
- data/lib/fdx_api/models/form_w22.rb +458 -0
- data/lib/fdx_api/models/form_w24.rb +458 -0
- data/lib/fdx_api/models/form_w2_c.rb +276 -0
- data/lib/fdx_api/models/form_w2_c2.rb +275 -0
- data/lib/fdx_api/models/form_w2_g.rb +354 -0
- data/lib/fdx_api/models/form_w2_g2.rb +353 -0
- data/lib/fdx_api/models/gain_or_loss_from_cryptocurrency_transaction.rb +173 -0
- data/lib/fdx_api/models/generic_account_identification_entity.rb +107 -0
- data/lib/fdx_api/models/generic_financial_institution_id_entity.rb +107 -0
- data/lib/fdx_api/models/government_issued_id_type.rb +23 -0
- data/lib/fdx_api/models/government_issued_id_type2.rb +23 -0
- data/lib/fdx_api/models/government_issued_party_identification_entity.rb +118 -0
- data/lib/fdx_api/models/hateoas_link.rb +119 -0
- data/lib/fdx_api/models/health_insurance_coverage.rb +115 -0
- data/lib/fdx_api/models/health_insurance_covered_individual.rb +118 -0
- data/lib/fdx_api/models/health_insurance_marketplace_covered_individual.rb +119 -0
- data/lib/fdx_api/models/held_in_account.rb +29 -0
- data/lib/fdx_api/models/held_in_account2.rb +29 -0
- data/lib/fdx_api/models/holding_entity.rb +448 -0
- data/lib/fdx_api/models/holding_sub_type.rb +23 -0
- data/lib/fdx_api/models/holding_sub_type2.rb +23 -0
- data/lib/fdx_api/models/holding_type.rb +51 -0
- data/lib/fdx_api/models/holding_type2.rb +41 -0
- data/lib/fdx_api/models/http_action_type.rb +32 -0
- data/lib/fdx_api/models/iban2007_identifier_entity.rb +86 -0
- data/lib/fdx_api/models/income.rb +124 -0
- data/lib/fdx_api/models/income_type.rb +26 -0
- data/lib/fdx_api/models/income_type2.rb +27 -0
- data/lib/fdx_api/models/incoming_and_outgoing_transfer_limits.rb +85 -0
- data/lib/fdx_api/models/incoming_and_outgoing_transfer_limits2.rb +85 -0
- data/lib/fdx_api/models/individual_name.rb +115 -0
- data/lib/fdx_api/models/industry_classification_system.rb +38 -0
- data/lib/fdx_api/models/industry_code.rb +95 -0
- data/lib/fdx_api/models/insurance_account_entity.rb +326 -0
- data/lib/fdx_api/models/insurance_transaction_entity.rb +201 -0
- data/lib/fdx_api/models/insurance_transaction_type.rb +29 -0
- data/lib/fdx_api/models/interest_rate_type.rb +23 -0
- data/lib/fdx_api/models/interest_rate_type2.rb +23 -0
- data/lib/fdx_api/models/intermediary.rb +139 -0
- data/lib/fdx_api/models/investment401_k_source_type.rb +38 -0
- data/lib/fdx_api/models/investment401_k_source_type1.rb +40 -0
- data/lib/fdx_api/models/investment401_k_source_type2.rb +39 -0
- data/lib/fdx_api/models/investment401_k_source_type4.rb +39 -0
- data/lib/fdx_api/models/investment_account_entity.rb +548 -0
- data/lib/fdx_api/models/investment_balance_entity.rb +138 -0
- data/lib/fdx_api/models/investment_balance_type.rb +23 -0
- data/lib/fdx_api/models/investment_balance_type2.rb +23 -0
- data/lib/fdx_api/models/investment_loan_entity.rb +261 -0
- data/lib/fdx_api/models/investment_sale_type.rb +38 -0
- data/lib/fdx_api/models/investment_transaction_entity.rb +669 -0
- data/lib/fdx_api/models/investment_transaction_type.rb +155 -0
- data/lib/fdx_api/models/investment_transaction_type2.rb +161 -0
- data/lib/fdx_api/models/investment_transfer_action_direction.rb +23 -0
- data/lib/fdx_api/models/investment_transfer_action_direction2.rb +23 -0
- data/lib/fdx_api/models/iso3166_country_code.rb +764 -0
- data/lib/fdx_api/models/iso3166_country_code1.rb +764 -0
- data/lib/fdx_api/models/iso3166_country_code2.rb +764 -0
- data/lib/fdx_api/models/iso4217_currency_code.rb +560 -0
- data/lib/fdx_api/models/iso4217_currency_code1.rb +560 -0
- data/lib/fdx_api/models/iso4217_currency_code2.rb +560 -0
- data/lib/fdx_api/models/iso93622014_business_identifier_code_entity.rb +93 -0
- data/lib/fdx_api/models/iso93622022_business_identifier_code_entity.rb +91 -0
- data/lib/fdx_api/models/line_item_entity.rb +156 -0
- data/lib/fdx_api/models/line_of_credit_account_entity.rb +474 -0
- data/lib/fdx_api/models/line_of_credit_transaction_entity.rb +223 -0
- data/lib/fdx_api/models/line_of_credit_transaction_type.rb +38 -0
- data/lib/fdx_api/models/line_of_credit_transaction_type2.rb +38 -0
- data/lib/fdx_api/models/loan_account_entity.rb +432 -0
- data/lib/fdx_api/models/loan_payment_frequency.rb +47 -0
- data/lib/fdx_api/models/loan_payment_frequency2.rb +48 -0
- data/lib/fdx_api/models/loan_transaction_entity.rb +212 -0
- data/lib/fdx_api/models/loan_transaction_type.rb +49 -0
- data/lib/fdx_api/models/loan_transaction_type2.rb +41 -0
- data/lib/fdx_api/models/local_tax_withholding.rb +96 -0
- data/lib/fdx_api/models/local_tax_withholding1.rb +96 -0
- data/lib/fdx_api/models/merchant_entity.rb +159 -0
- data/lib/fdx_api/models/merchant_entity1.rb +159 -0
- data/lib/fdx_api/models/merchant_for_update_entity.rb +118 -0
- data/lib/fdx_api/models/merchant_for_update_entity1.rb +118 -0
- data/lib/fdx_api/models/message_format.rb +20 -0
- data/lib/fdx_api/models/message_format2.rb +20 -0
- data/lib/fdx_api/models/monetary_amount.rb +84 -0
- data/lib/fdx_api/models/monetary_amount1.rb +84 -0
- data/lib/fdx_api/models/monetary_amount2.rb +84 -0
- data/lib/fdx_api/models/monetary_amount3.rb +84 -0
- data/lib/fdx_api/models/monetary_amount4.rb +84 -0
- data/lib/fdx_api/models/monetary_amount5.rb +84 -0
- data/lib/fdx_api/models/monetary_amount6.rb +84 -0
- data/lib/fdx_api/models/month_abbreviation.rb +53 -0
- data/lib/fdx_api/models/month_abbreviation1.rb +53 -0
- data/lib/fdx_api/models/month_and_amount.rb +85 -0
- data/lib/fdx_api/models/mutual_fund_security_entity.rb +161 -0
- data/lib/fdx_api/models/mutual_fund_type.rb +26 -0
- data/lib/fdx_api/models/mutual_fund_type2.rb +26 -0
- data/lib/fdx_api/models/name_address_and_phone.rb +171 -0
- data/lib/fdx_api/models/name_address_and_phone1.rb +171 -0
- data/lib/fdx_api/models/name_and_address.rb +159 -0
- data/lib/fdx_api/models/notification_category.rb +32 -0
- data/lib/fdx_api/models/notification_category1.rb +32 -0
- data/lib/fdx_api/models/notification_entity.rb +169 -0
- data/lib/fdx_api/models/notification_payload_entity.rb +95 -0
- data/lib/fdx_api/models/notification_payload_entity2.rb +95 -0
- data/lib/fdx_api/models/notification_payload_id_type.rb +32 -0
- data/lib/fdx_api/models/notification_payload_id_type2.rb +32 -0
- data/lib/fdx_api/models/notification_priority.rb +26 -0
- data/lib/fdx_api/models/notification_priority2.rb +26 -0
- data/lib/fdx_api/models/notification_severity.rb +32 -0
- data/lib/fdx_api/models/notification_severity2.rb +32 -0
- data/lib/fdx_api/models/notification_subscription_entity.rb +123 -0
- data/lib/fdx_api/models/notification_type.rb +38 -0
- data/lib/fdx_api/models/notifications_entity.rb +104 -0
- data/lib/fdx_api/models/occurrence_based_limits_for_a_payment_network.rb +95 -0
- data/lib/fdx_api/models/occurrence_based_limits_for_a_payment_network2.rb +94 -0
- data/lib/fdx_api/models/offer_of_health_insurance_coverage.rb +119 -0
- data/lib/fdx_api/models/open_order_entity.rb +231 -0
- data/lib/fdx_api/models/operation_entity.rb +150 -0
- data/lib/fdx_api/models/option_security_entity.rb +135 -0
- data/lib/fdx_api/models/option_type.rb +23 -0
- data/lib/fdx_api/models/option_type2.rb +23 -0
- data/lib/fdx_api/models/order_duration.rb +26 -0
- data/lib/fdx_api/models/order_duration2.rb +26 -0
- data/lib/fdx_api/models/order_type.rb +41 -0
- data/lib/fdx_api/models/order_type2.rb +42 -0
- data/lib/fdx_api/models/organization_name_entity.rb +87 -0
- data/lib/fdx_api/models/other_monetary_amount.rb +94 -0
- data/lib/fdx_api/models/other_security_entity.rb +94 -0
- data/lib/fdx_api/models/page_metadata.rb +108 -0
- data/lib/fdx_api/models/page_metadata_links.rb +95 -0
- data/lib/fdx_api/models/page_metadata_links1.rb +85 -0
- data/lib/fdx_api/models/party_entity.rb +139 -0
- data/lib/fdx_api/models/party_group_entity.rb +86 -0
- data/lib/fdx_api/models/party_status.rb +33 -0
- data/lib/fdx_api/models/party_status1.rb +29 -0
- data/lib/fdx_api/models/party_status3.rb +29 -0
- data/lib/fdx_api/models/party_type.rb +35 -0
- data/lib/fdx_api/models/party_type1.rb +35 -0
- data/lib/fdx_api/models/party_type2.rb +35 -0
- data/lib/fdx_api/models/payee_entity.rb +75 -0
- data/lib/fdx_api/models/payee_for_update_entity.rb +74 -0
- data/lib/fdx_api/models/payee_for_update_entity1.rb +74 -0
- data/lib/fdx_api/models/payees_entity.rb +113 -0
- data/lib/fdx_api/models/payment_amounts.rb +133 -0
- data/lib/fdx_api/models/payment_amounts1.rb +92 -0
- data/lib/fdx_api/models/payment_amounts2.rb +133 -0
- data/lib/fdx_api/models/payment_amounts3.rb +92 -0
- data/lib/fdx_api/models/payment_delivery_address_entity.rb +99 -0
- data/lib/fdx_api/models/payment_details_entity.rb +142 -0
- data/lib/fdx_api/models/payment_entity.rb +262 -0
- data/lib/fdx_api/models/payment_for_update_entity.rb +113 -0
- data/lib/fdx_api/models/payment_for_update_entity1.rb +113 -0
- data/lib/fdx_api/models/payment_for_update_entity2.rb +113 -0
- data/lib/fdx_api/models/payment_frequency.rb +38 -0
- data/lib/fdx_api/models/payment_frequency1.rb +38 -0
- data/lib/fdx_api/models/payment_frequency3.rb +38 -0
- data/lib/fdx_api/models/payment_generic_account_entity.rb +138 -0
- data/lib/fdx_api/models/payment_generic_account_entity1.rb +138 -0
- data/lib/fdx_api/models/payment_generic_account_entity2.rb +138 -0
- data/lib/fdx_api/models/payment_initiation_parties_entity.rb +108 -0
- data/lib/fdx_api/models/payment_initiation_party_contact_method_entity.rb +97 -0
- data/lib/fdx_api/models/payment_initiation_party_create_response_entity.rb +85 -0
- data/lib/fdx_api/models/payment_initiation_party_entity.rb +292 -0
- data/lib/fdx_api/models/payment_initiation_party_method_create_response_entity.rb +78 -0
- data/lib/fdx_api/models/payment_initiation_party_name_entity.rb +98 -0
- data/lib/fdx_api/models/payment_initiation_party_name_entity1.rb +97 -0
- data/lib/fdx_api/models/payment_initiation_party_name_entity3.rb +97 -0
- data/lib/fdx_api/models/payment_initiation_party_summary_entity.rb +90 -0
- data/lib/fdx_api/models/payment_initiation_party_to_payment_method_entity.rb +130 -0
- data/lib/fdx_api/models/payment_method_credit_account_entity.rb +111 -0
- data/lib/fdx_api/models/payment_method_debit_account_entity.rb +100 -0
- data/lib/fdx_api/models/payment_method_entity.rb +139 -0
- data/lib/fdx_api/models/payment_method_entity2.rb +149 -0
- data/lib/fdx_api/models/payment_method_id.rb +96 -0
- data/lib/fdx_api/models/payment_method_system_code.rb +90 -0
- data/lib/fdx_api/models/payment_method_system_proprietary.rb +85 -0
- data/lib/fdx_api/models/payment_network_identifier_type.rb +23 -0
- data/lib/fdx_api/models/payment_network_identifier_type1.rb +23 -0
- data/lib/fdx_api/models/payment_network_identifier_type3.rb +23 -0
- data/lib/fdx_api/models/payment_network_supported_by_account.rb +161 -0
- data/lib/fdx_api/models/payment_network_type.rb +43 -0
- data/lib/fdx_api/models/payment_network_type2.rb +39 -0
- data/lib/fdx_api/models/payment_status.rb +41 -0
- data/lib/fdx_api/models/payment_status1.rb +35 -0
- data/lib/fdx_api/models/payment_status3.rb +35 -0
- data/lib/fdx_api/models/payments_entity.rb +113 -0
- data/lib/fdx_api/models/payout_mode.rb +41 -0
- data/lib/fdx_api/models/payout_mode2.rb +38 -0
- data/lib/fdx_api/models/payout_type.rb +26 -0
- data/lib/fdx_api/models/payout_type2.rb +23 -0
- data/lib/fdx_api/models/payroll_frequency_type.rb +50 -0
- data/lib/fdx_api/models/payroll_frequency_type2.rb +50 -0
- data/lib/fdx_api/models/payroll_rate_type.rb +29 -0
- data/lib/fdx_api/models/payroll_rate_type2.rb +29 -0
- data/lib/fdx_api/models/payroll_report_entity.rb +162 -0
- data/lib/fdx_api/models/payroll_report_list_entity.rb +103 -0
- data/lib/fdx_api/models/payroll_report_summary_entity.rb +160 -0
- data/lib/fdx_api/models/payroll_report_type.rb +24 -0
- data/lib/fdx_api/models/payroll_report_type1.rb +23 -0
- data/lib/fdx_api/models/pension_source_entity.rb +136 -0
- data/lib/fdx_api/models/period_certain_type.rb +36 -0
- data/lib/fdx_api/models/period_certain_type2.rb +33 -0
- data/lib/fdx_api/models/planned_availability_entity.rb +122 -0
- data/lib/fdx_api/models/policy_premium_term_type.rb +23 -0
- data/lib/fdx_api/models/policy_premium_term_type2.rb +23 -0
- data/lib/fdx_api/models/policy_product_type.rb +26 -0
- data/lib/fdx_api/models/policy_product_type2.rb +23 -0
- data/lib/fdx_api/models/policy_status.rb +52 -0
- data/lib/fdx_api/models/policy_status2.rb +41 -0
- data/lib/fdx_api/models/portion_entity.rb +95 -0
- data/lib/fdx_api/models/position_type.rb +23 -0
- data/lib/fdx_api/models/position_type1.rb +23 -0
- data/lib/fdx_api/models/proprietary_account_id_scheme_entity.rb +88 -0
- data/lib/fdx_api/models/proprietary_financial_institution_id_scheme_entity.rb +86 -0
- data/lib/fdx_api/models/recipient_provider.rb +293 -0
- data/lib/fdx_api/models/recipient_record_at_ecosystem_registry.rb +223 -0
- data/lib/fdx_api/models/recipient_records_at_ecosystem_registry.rb +105 -0
- data/lib/fdx_api/models/recipient_request.rb +214 -0
- data/lib/fdx_api/models/recurring_payment_duration_entity.rb +86 -0
- data/lib/fdx_api/models/recurring_payment_duration_entity2.rb +86 -0
- data/lib/fdx_api/models/recurring_payment_duration_type.rb +24 -0
- data/lib/fdx_api/models/recurring_payment_duration_type2.rb +23 -0
- data/lib/fdx_api/models/recurring_payment_entity.rb +231 -0
- data/lib/fdx_api/models/recurring_payment_for_update_entity.rb +133 -0
- data/lib/fdx_api/models/recurring_payment_for_update_entity1.rb +132 -0
- data/lib/fdx_api/models/recurring_payment_for_update_entity2.rb +132 -0
- data/lib/fdx_api/models/recurring_payment_frequency.rb +46 -0
- data/lib/fdx_api/models/recurring_payment_frequency2.rb +44 -0
- data/lib/fdx_api/models/recurring_payment_status.rb +33 -0
- data/lib/fdx_api/models/recurring_payment_status2.rb +29 -0
- data/lib/fdx_api/models/recurring_payments_entity.rb +113 -0
- data/lib/fdx_api/models/registry.rb +30 -0
- data/lib/fdx_api/models/registry_reference.rb +102 -0
- data/lib/fdx_api/models/rental_income_statement.rb +424 -0
- data/lib/fdx_api/models/resource_entity.rb +114 -0
- data/lib/fdx_api/models/resource_list_entity.rb +104 -0
- data/lib/fdx_api/models/resource_status.rb +26 -0
- data/lib/fdx_api/models/resource_status2.rb +26 -0
- data/lib/fdx_api/models/result_type.rb +26 -0
- data/lib/fdx_api/models/reward_balance_entity.rb +144 -0
- data/lib/fdx_api/models/reward_categories_entity.rb +104 -0
- data/lib/fdx_api/models/reward_category_entity.rb +136 -0
- data/lib/fdx_api/models/reward_program_entity.rb +136 -0
- data/lib/fdx_api/models/reward_program_membership_entity.rb +147 -0
- data/lib/fdx_api/models/reward_programs_entity.rb +104 -0
- data/lib/fdx_api/models/reward_type.rb +30 -0
- data/lib/fdx_api/models/reward_type2.rb +26 -0
- data/lib/fdx_api/models/royalty_income_statement.rb +424 -0
- data/lib/fdx_api/models/sale_proceeds_type.rb +23 -0
- data/lib/fdx_api/models/sale_proceeds_type2.rb +23 -0
- data/lib/fdx_api/models/secured.rb +23 -0
- data/lib/fdx_api/models/secured2.rb +23 -0
- data/lib/fdx_api/models/security_category.rb +35 -0
- data/lib/fdx_api/models/security_detail_irs_form1099_b.rb +390 -0
- data/lib/fdx_api/models/security_entity.rb +96 -0
- data/lib/fdx_api/models/security_id_entity.rb +95 -0
- data/lib/fdx_api/models/security_id_type.rb +60 -0
- data/lib/fdx_api/models/security_id_type1.rb +50 -0
- data/lib/fdx_api/models/security_type.rb +51 -0
- data/lib/fdx_api/models/security_type2.rb +41 -0
- data/lib/fdx_api/models/state_and_local_tax_withholding.rb +95 -0
- data/lib/fdx_api/models/state_and_local_tax_withholding1.rb +95 -0
- data/lib/fdx_api/models/state_and_local_tax_withholding2.rb +95 -0
- data/lib/fdx_api/models/state_code.rb +203 -0
- data/lib/fdx_api/models/state_tax_withholding.rb +95 -0
- data/lib/fdx_api/models/state_tax_withholding2.rb +95 -0
- data/lib/fdx_api/models/statement_entity.rb +135 -0
- data/lib/fdx_api/models/stock_security_entity.rb +147 -0
- data/lib/fdx_api/models/stock_type.rb +29 -0
- data/lib/fdx_api/models/stock_type2.rb +29 -0
- data/lib/fdx_api/models/sub_account_type.rb +29 -0
- data/lib/fdx_api/models/sub_account_type1.rb +29 -0
- data/lib/fdx_api/models/sub_account_type2.rb +29 -0
- data/lib/fdx_api/models/sub_account_type4.rb +29 -0
- data/lib/fdx_api/models/supplemental_status.rb +44 -0
- data/lib/fdx_api/models/supplemental_status2.rb +44 -0
- data/lib/fdx_api/models/suspected_fraud_incident_entity.rb +133 -0
- data/lib/fdx_api/models/sweep_security_entity.rb +135 -0
- data/lib/fdx_api/models/synchronizable_array_entity.rb +96 -0
- data/lib/fdx_api/models/synchronizable_array_links_entity.rb +95 -0
- data/lib/fdx_api/models/synchronizable_array_links_entity2.rb +95 -0
- data/lib/fdx_api/models/tax.rb +218 -0
- data/lib/fdx_api/models/tax_data.rb +653 -0
- data/lib/fdx_api/models/tax_data_for_qr.rb +675 -0
- data/lib/fdx_api/models/tax_form_attribute.rb +106 -0
- data/lib/fdx_api/models/tax_lot_entity.rb +140 -0
- data/lib/fdx_api/models/tax_party.rb +138 -0
- data/lib/fdx_api/models/tax_party1.rb +140 -0
- data/lib/fdx_api/models/tax_party2.rb +138 -0
- data/lib/fdx_api/models/tax_party3.rb +138 -0
- data/lib/fdx_api/models/tax_party4.rb +139 -0
- data/lib/fdx_api/models/tax_party6.rb +140 -0
- data/lib/fdx_api/models/tax_party7.rb +140 -0
- data/lib/fdx_api/models/tax_party8.rb +139 -0
- data/lib/fdx_api/models/tax_party_type.rb +23 -0
- data/lib/fdx_api/models/tax_party_type2.rb +24 -0
- data/lib/fdx_api/models/tax_refund_direct_deposit.rb +108 -0
- data/lib/fdx_api/models/tax_refund_direct_deposit2.rb +108 -0
- data/lib/fdx_api/models/tax_statement.rb +174 -0
- data/lib/fdx_api/models/tax_statement1.rb +175 -0
- data/lib/fdx_api/models/tax_statement2.rb +175 -0
- data/lib/fdx_api/models/tax_statement4.rb +175 -0
- data/lib/fdx_api/models/tax_statement6.rb +175 -0
- data/lib/fdx_api/models/tax_statement_list.rb +85 -0
- data/lib/fdx_api/models/telephone_number.rb +105 -0
- data/lib/fdx_api/models/telephone_number_plus_extension.rb +105 -0
- data/lib/fdx_api/models/telephone_number_plus_extension1.rb +105 -0
- data/lib/fdx_api/models/telephone_number_plus_extension2.rb +105 -0
- data/lib/fdx_api/models/telephone_number_type.rb +29 -0
- data/lib/fdx_api/models/time_and_occurrence_based_transfer_limits.rb +115 -0
- data/lib/fdx_api/models/time_and_occurrence_based_transfer_limits1.rb +115 -0
- data/lib/fdx_api/models/time_and_occurrence_based_transfer_limits3.rb +115 -0
- data/lib/fdx_api/models/timeframe_based_limits_for_a_payment_network.rb +139 -0
- data/lib/fdx_api/models/timeframe_based_limits_for_a_payment_network1.rb +138 -0
- data/lib/fdx_api/models/timeframe_based_limits_for_a_payment_network2.rb +138 -0
- data/lib/fdx_api/models/timeframe_based_limits_for_a_payment_network3.rb +138 -0
- data/lib/fdx_api/models/timeframe_based_limits_for_a_payment_network5.rb +138 -0
- data/lib/fdx_api/models/transaction.rb +357 -0
- data/lib/fdx_api/models/transaction_reason.rb +26 -0
- data/lib/fdx_api/models/transaction_reason2.rb +27 -0
- data/lib/fdx_api/models/transaction_reward_entity.rb +97 -0
- data/lib/fdx_api/models/transaction_reward_entity2.rb +107 -0
- data/lib/fdx_api/models/transaction_status.rb +29 -0
- data/lib/fdx_api/models/transaction_status2.rb +29 -0
- data/lib/fdx_api/models/transactions_entity.rb +109 -0
- data/lib/fdx_api/models/transfer_entity.rb +169 -0
- data/lib/fdx_api/models/transfer_for_create_entity.rb +129 -0
- data/lib/fdx_api/models/transfer_for_create_entity1.rb +129 -0
- data/lib/fdx_api/models/transfers_entity.rb +113 -0
- data/lib/fdx_api/models/treasury_management_type.rb +30 -0
- data/lib/fdx_api/models/type_data_type.rb +26 -0
- data/lib/fdx_api/models/type_data_type2.rb +24 -0
- data/lib/fdx_api/models/type_form_type.rb +176 -0
- data/lib/fdx_api/models/type_form_type1.rb +176 -0
- data/lib/fdx_api/models/unit_type.rb +23 -0
- data/lib/fdx_api/models/unit_type1.rb +23 -0
- data/lib/fdx_api/models/unit_type3.rb +23 -0
- data/lib/fdx_api/models/updates_metadata_entity.rb +77 -0
- data/lib/fdx_api/models/updates_metadata_entity2.rb +77 -0
- data/lib/fdx_api/models/vesting_entity.rb +186 -0
- data/lib/fdx_api/utilities/date_time_helper.rb +11 -0
- data/lib/fdx_api/utilities/file_wrapper.rb +28 -0
- data/lib/fdx_api/utilities/union_type_lookup.rb +240 -0
- data/lib/fdx_api.rb +661 -0
- metadata +717 -0
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
# fdx_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module FdxApi
|
|
7
|
+
# RecipientsController
|
|
8
|
+
class RecipientsController < BaseController
|
|
9
|
+
# Request to Register Recipient by Creating a Recipient Record
|
|
10
|
+
# @param [UUID | String] x_fapi_interaction_id Required parameter: Unique
|
|
11
|
+
# identifier for this interaction
|
|
12
|
+
# @param [FdxApiActorType] fdx_api_actor_type Optional parameter: Identifies
|
|
13
|
+
# whether the customer is present (USER) or it is a BATCH operation
|
|
14
|
+
# @param [RecipientRequest] body Optional parameter: TODO: type description
|
|
15
|
+
# here
|
|
16
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
17
|
+
def create_recipient(x_fapi_interaction_id,
|
|
18
|
+
fdx_api_actor_type: nil,
|
|
19
|
+
body: nil)
|
|
20
|
+
@api_call
|
|
21
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
22
|
+
'/register',
|
|
23
|
+
Server::RECIPIENTREGISTRATION)
|
|
24
|
+
.header_param(new_parameter(x_fapi_interaction_id, key: 'x-fapi-interaction-id')
|
|
25
|
+
.is_required(true))
|
|
26
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
27
|
+
.header_param(new_parameter(fdx_api_actor_type, key: 'FDX-API-Actor-Type'))
|
|
28
|
+
.body_param(new_parameter(body))
|
|
29
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
30
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
31
|
+
.auth(Single.new('bearerAuth')))
|
|
32
|
+
.response(new_response_handler
|
|
33
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
34
|
+
.deserialize_into(RecipientProvider.method(:from_hash))
|
|
35
|
+
.is_api_response(true))
|
|
36
|
+
.execute
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Get a specific recipient data identified with clientId
|
|
40
|
+
# @param [UUID | String] x_fapi_interaction_id Required parameter: Unique
|
|
41
|
+
# identifier for this interaction
|
|
42
|
+
# @param [String] client_id Required parameter: Client Identifier. Uniquely
|
|
43
|
+
# identifies a Client
|
|
44
|
+
# @param [FdxApiActorType] fdx_api_actor_type Optional parameter: Identifies
|
|
45
|
+
# whether the customer is present (USER) or it is a BATCH operation
|
|
46
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
47
|
+
def get_recipient(x_fapi_interaction_id,
|
|
48
|
+
client_id,
|
|
49
|
+
fdx_api_actor_type: nil)
|
|
50
|
+
@api_call
|
|
51
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
52
|
+
'/register/{clientId}',
|
|
53
|
+
Server::RECIPIENTREGISTRATION)
|
|
54
|
+
.header_param(new_parameter(x_fapi_interaction_id, key: 'x-fapi-interaction-id')
|
|
55
|
+
.is_required(true))
|
|
56
|
+
.template_param(new_parameter(client_id, key: 'clientId')
|
|
57
|
+
.is_required(true)
|
|
58
|
+
.should_encode(true))
|
|
59
|
+
.header_param(new_parameter(fdx_api_actor_type, key: 'FDX-API-Actor-Type'))
|
|
60
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
61
|
+
.auth(Single.new('bearerAuth')))
|
|
62
|
+
.response(new_response_handler
|
|
63
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
64
|
+
.deserialize_into(RecipientProvider.method(:from_hash))
|
|
65
|
+
.is_api_response(true))
|
|
66
|
+
.execute
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Update data for a specific recipient identified with clientId
|
|
70
|
+
# @param [UUID | String] x_fapi_interaction_id Required parameter: Unique
|
|
71
|
+
# identifier for this interaction
|
|
72
|
+
# @param [String] client_id Required parameter: Client Identifier. Uniquely
|
|
73
|
+
# identifies a Client
|
|
74
|
+
# @param [FdxApiActorType] fdx_api_actor_type Optional parameter: Identifies
|
|
75
|
+
# whether the customer is present (USER) or it is a BATCH operation
|
|
76
|
+
# @param [RecipientRequest] body Optional parameter: TODO: type description
|
|
77
|
+
# here
|
|
78
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
79
|
+
def update_recipient(x_fapi_interaction_id,
|
|
80
|
+
client_id,
|
|
81
|
+
fdx_api_actor_type: nil,
|
|
82
|
+
body: nil)
|
|
83
|
+
@api_call
|
|
84
|
+
.request(new_request_builder(HttpMethodEnum::PUT,
|
|
85
|
+
'/register/{clientId}',
|
|
86
|
+
Server::RECIPIENTREGISTRATION)
|
|
87
|
+
.header_param(new_parameter(x_fapi_interaction_id, key: 'x-fapi-interaction-id')
|
|
88
|
+
.is_required(true))
|
|
89
|
+
.template_param(new_parameter(client_id, key: 'clientId')
|
|
90
|
+
.is_required(true)
|
|
91
|
+
.should_encode(true))
|
|
92
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
93
|
+
.header_param(new_parameter(fdx_api_actor_type, key: 'FDX-API-Actor-Type'))
|
|
94
|
+
.body_param(new_parameter(body))
|
|
95
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
96
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
97
|
+
.auth(Single.new('bearerAuth')))
|
|
98
|
+
.response(new_response_handler
|
|
99
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
100
|
+
.deserialize_into(RecipientProvider.method(:from_hash))
|
|
101
|
+
.is_api_response(true))
|
|
102
|
+
.execute
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Delete data for a specific recipient identified with clientId
|
|
106
|
+
# @param [UUID | String] x_fapi_interaction_id Required parameter: Unique
|
|
107
|
+
# identifier for this interaction
|
|
108
|
+
# @param [String] client_id Required parameter: Client Identifier. Uniquely
|
|
109
|
+
# identifies a Client
|
|
110
|
+
# @param [FdxApiActorType] fdx_api_actor_type Optional parameter: Identifies
|
|
111
|
+
# whether the customer is present (USER) or it is a BATCH operation
|
|
112
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
113
|
+
def delete_recipient(x_fapi_interaction_id,
|
|
114
|
+
client_id,
|
|
115
|
+
fdx_api_actor_type: nil)
|
|
116
|
+
@api_call
|
|
117
|
+
.request(new_request_builder(HttpMethodEnum::DELETE,
|
|
118
|
+
'/register/{clientId}',
|
|
119
|
+
Server::RECIPIENTREGISTRATION)
|
|
120
|
+
.header_param(new_parameter(x_fapi_interaction_id, key: 'x-fapi-interaction-id')
|
|
121
|
+
.is_required(true))
|
|
122
|
+
.template_param(new_parameter(client_id, key: 'clientId')
|
|
123
|
+
.is_required(true)
|
|
124
|
+
.should_encode(true))
|
|
125
|
+
.header_param(new_parameter(fdx_api_actor_type, key: 'FDX-API-Actor-Type'))
|
|
126
|
+
.auth(Single.new('bearerAuth')))
|
|
127
|
+
.response(new_response_handler
|
|
128
|
+
.is_response_void(true)
|
|
129
|
+
.is_api_response(true))
|
|
130
|
+
.execute
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Get recipients
|
|
134
|
+
# @param [UUID | String] x_fapi_interaction_id Required parameter: Unique
|
|
135
|
+
# identifier for this interaction
|
|
136
|
+
# @param [FdxApiActorType] fdx_api_actor_type Optional parameter: Identifies
|
|
137
|
+
# whether the customer is present (USER) or it is a BATCH operation
|
|
138
|
+
# @param [String] offset Optional parameter: Opaque cursor used by the
|
|
139
|
+
# provider to send the next set of records
|
|
140
|
+
# @param [Integer] limit Optional parameter: Number of elements that the
|
|
141
|
+
# consumer wishes to receive. Providers should implement reasonable
|
|
142
|
+
# default/maximum/minimum values based on their internal architecture and
|
|
143
|
+
# update their documentation accordingly
|
|
144
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
145
|
+
def get_registry_recipients(x_fapi_interaction_id,
|
|
146
|
+
fdx_api_actor_type: nil,
|
|
147
|
+
offset: nil,
|
|
148
|
+
limit: nil)
|
|
149
|
+
@api_call
|
|
150
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
151
|
+
'/recipients',
|
|
152
|
+
Server::REGISTRY)
|
|
153
|
+
.header_param(new_parameter(x_fapi_interaction_id, key: 'x-fapi-interaction-id')
|
|
154
|
+
.is_required(true))
|
|
155
|
+
.header_param(new_parameter(fdx_api_actor_type, key: 'FDX-API-Actor-Type'))
|
|
156
|
+
.query_param(new_parameter(offset, key: 'offset'))
|
|
157
|
+
.query_param(new_parameter(limit, key: 'limit'))
|
|
158
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
159
|
+
.auth(Single.new('bearerAuth')))
|
|
160
|
+
.response(new_response_handler
|
|
161
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
162
|
+
.deserialize_into(RecipientRecordsAtEcosystemRegistry.method(:from_hash))
|
|
163
|
+
.is_api_response(true))
|
|
164
|
+
.execute
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Get a specific recipient
|
|
168
|
+
# @param [UUID | String] x_fapi_interaction_id Required parameter: Unique
|
|
169
|
+
# identifier for this interaction
|
|
170
|
+
# @param [String] recipient_id Required parameter: Recipient Identifier.
|
|
171
|
+
# Uniquely identifies a Recipient
|
|
172
|
+
# @param [FdxApiActorType] fdx_api_actor_type Optional parameter: Identifies
|
|
173
|
+
# whether the customer is present (USER) or it is a BATCH operation
|
|
174
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
175
|
+
def get_registry_recipient(x_fapi_interaction_id,
|
|
176
|
+
recipient_id,
|
|
177
|
+
fdx_api_actor_type: nil)
|
|
178
|
+
@api_call
|
|
179
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
180
|
+
'/recipients/{recipientId}',
|
|
181
|
+
Server::REGISTRY)
|
|
182
|
+
.header_param(new_parameter(x_fapi_interaction_id, key: 'x-fapi-interaction-id')
|
|
183
|
+
.is_required(true))
|
|
184
|
+
.template_param(new_parameter(recipient_id, key: 'recipientId')
|
|
185
|
+
.is_required(true)
|
|
186
|
+
.should_encode(true))
|
|
187
|
+
.header_param(new_parameter(fdx_api_actor_type, key: 'FDX-API-Actor-Type'))
|
|
188
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
189
|
+
.auth(Single.new('bearerAuth')))
|
|
190
|
+
.response(new_response_handler
|
|
191
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
192
|
+
.deserialize_into(RecipientRecordAtEcosystemRegistry.method(:from_hash))
|
|
193
|
+
.is_api_response(true))
|
|
194
|
+
.execute
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
end
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
# fdx_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module FdxApi
|
|
7
|
+
# RecurringPaymentsController
|
|
8
|
+
class RecurringPaymentsController < BaseController
|
|
9
|
+
# Search for recurring payments
|
|
10
|
+
# @param [UUID | String] x_fapi_interaction_id Required parameter: Unique
|
|
11
|
+
# identifier for this interaction
|
|
12
|
+
# @param [FdxApiActorType] fdx_api_actor_type Optional parameter: Identifies
|
|
13
|
+
# whether the customer is present (USER) or it is a BATCH operation
|
|
14
|
+
# @param [String] updated_since Optional parameter: Return items that have
|
|
15
|
+
# been created or updated since the nextUpdateId
|
|
16
|
+
# @param [String] offset Optional parameter: Opaque cursor used by the
|
|
17
|
+
# provider to send the next set of records
|
|
18
|
+
# @param [Integer] limit Optional parameter: Number of elements that the
|
|
19
|
+
# consumer wishes to receive. Providers should implement reasonable
|
|
20
|
+
# default/maximum/minimum values based on their internal architecture and
|
|
21
|
+
# update their documentation accordingly
|
|
22
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
23
|
+
def search_for_recurring_payments(x_fapi_interaction_id,
|
|
24
|
+
fdx_api_actor_type: nil,
|
|
25
|
+
updated_since: nil,
|
|
26
|
+
offset: nil,
|
|
27
|
+
limit: nil)
|
|
28
|
+
@api_call
|
|
29
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
30
|
+
'/recurring-payments',
|
|
31
|
+
Server::MONEYMOVEMENT)
|
|
32
|
+
.header_param(new_parameter(x_fapi_interaction_id, key: 'x-fapi-interaction-id')
|
|
33
|
+
.is_required(true))
|
|
34
|
+
.header_param(new_parameter(fdx_api_actor_type, key: 'FDX-API-Actor-Type'))
|
|
35
|
+
.query_param(new_parameter(updated_since, key: 'updatedSince'))
|
|
36
|
+
.query_param(new_parameter(offset, key: 'offset'))
|
|
37
|
+
.query_param(new_parameter(limit, key: 'limit'))
|
|
38
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
39
|
+
.auth(Single.new('bearerAuth')))
|
|
40
|
+
.response(new_response_handler
|
|
41
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
42
|
+
.deserialize_into(RecurringPaymentsEntity.method(:from_hash))
|
|
43
|
+
.is_api_response(true)
|
|
44
|
+
.local_error('404',
|
|
45
|
+
'Data not found for request parameters',
|
|
46
|
+
ErrorException)
|
|
47
|
+
.local_error('500',
|
|
48
|
+
'Catch-all exception where request was not processed due to an'\
|
|
49
|
+
' internal outage/issue. Consider other more specific errors'\
|
|
50
|
+
' before using this error',
|
|
51
|
+
ErrorException)
|
|
52
|
+
.local_error('501',
|
|
53
|
+
'Error when FdxVersion in Header is not one of those'\
|
|
54
|
+
' implemented at backend',
|
|
55
|
+
ErrorException)
|
|
56
|
+
.local_error('503',
|
|
57
|
+
'System is down for maintenance',
|
|
58
|
+
ErrorException))
|
|
59
|
+
.execute
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Schedule a recurring payment
|
|
63
|
+
# @param [UUID | String] x_fapi_interaction_id Required parameter: Unique
|
|
64
|
+
# identifier for this interaction
|
|
65
|
+
# @param [String] idempotency_key Required parameter: Used to de-duplicate
|
|
66
|
+
# requests
|
|
67
|
+
# @param [FdxApiActorType] fdx_api_actor_type Optional parameter: Identifies
|
|
68
|
+
# whether the customer is present (USER) or it is a BATCH operation
|
|
69
|
+
# @param [RecurringPaymentForUpdateEntity1] body Optional parameter: TODO:
|
|
70
|
+
# type description here
|
|
71
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
72
|
+
def schedule_recurring_payment(x_fapi_interaction_id,
|
|
73
|
+
idempotency_key,
|
|
74
|
+
fdx_api_actor_type: nil,
|
|
75
|
+
body: nil)
|
|
76
|
+
@api_call
|
|
77
|
+
.request(new_request_builder(HttpMethodEnum::POST,
|
|
78
|
+
'/recurring-payments',
|
|
79
|
+
Server::MONEYMOVEMENT)
|
|
80
|
+
.header_param(new_parameter(x_fapi_interaction_id, key: 'x-fapi-interaction-id')
|
|
81
|
+
.is_required(true))
|
|
82
|
+
.header_param(new_parameter(idempotency_key, key: 'idempotency-key')
|
|
83
|
+
.is_required(true))
|
|
84
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
85
|
+
.header_param(new_parameter(fdx_api_actor_type, key: 'FDX-API-Actor-Type'))
|
|
86
|
+
.body_param(new_parameter(body))
|
|
87
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
88
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
89
|
+
.auth(Single.new('bearerAuth')))
|
|
90
|
+
.response(new_response_handler
|
|
91
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
92
|
+
.deserialize_into(RecurringPaymentEntity.method(:from_hash))
|
|
93
|
+
.is_api_response(true)
|
|
94
|
+
.local_error('400',
|
|
95
|
+
'Request is invalid',
|
|
96
|
+
ErrorException)
|
|
97
|
+
.local_error('404',
|
|
98
|
+
'Requested payment is invalid',
|
|
99
|
+
ErrorException)
|
|
100
|
+
.local_error('409',
|
|
101
|
+
'Duplicate Request',
|
|
102
|
+
RecurringPaymentEntityErrorException)
|
|
103
|
+
.local_error('422',
|
|
104
|
+
'Account type not supported',
|
|
105
|
+
ErrorException)
|
|
106
|
+
.local_error('500',
|
|
107
|
+
'Catch-all exception where request was not processed due to an'\
|
|
108
|
+
' internal outage/issue. Consider other more specific errors'\
|
|
109
|
+
' before using this error',
|
|
110
|
+
ErrorException)
|
|
111
|
+
.local_error('501',
|
|
112
|
+
'Error when FdxVersion in Header is not one of those'\
|
|
113
|
+
' implemented at backend',
|
|
114
|
+
ErrorException)
|
|
115
|
+
.local_error('503',
|
|
116
|
+
'System is down for maintenance',
|
|
117
|
+
ErrorException))
|
|
118
|
+
.execute
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Get a recurring payment
|
|
122
|
+
# @param [UUID | String] x_fapi_interaction_id Required parameter: Unique
|
|
123
|
+
# identifier for this interaction
|
|
124
|
+
# @param [String] recurring_payment_id Required parameter: Recurring Payment
|
|
125
|
+
# Identifier. Uniquely identifies a recurring payment
|
|
126
|
+
# @param [FdxApiActorType] fdx_api_actor_type Optional parameter: Identifies
|
|
127
|
+
# whether the customer is present (USER) or it is a BATCH operation
|
|
128
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
129
|
+
def get_recurring_payment(x_fapi_interaction_id,
|
|
130
|
+
recurring_payment_id,
|
|
131
|
+
fdx_api_actor_type: nil)
|
|
132
|
+
@api_call
|
|
133
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
134
|
+
'/recurring-payments/{recurringPaymentId}',
|
|
135
|
+
Server::MONEYMOVEMENT)
|
|
136
|
+
.header_param(new_parameter(x_fapi_interaction_id, key: 'x-fapi-interaction-id')
|
|
137
|
+
.is_required(true))
|
|
138
|
+
.template_param(new_parameter(recurring_payment_id, key: 'recurringPaymentId')
|
|
139
|
+
.is_required(true)
|
|
140
|
+
.should_encode(true))
|
|
141
|
+
.header_param(new_parameter(fdx_api_actor_type, key: 'FDX-API-Actor-Type'))
|
|
142
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
143
|
+
.auth(Single.new('bearerAuth')))
|
|
144
|
+
.response(new_response_handler
|
|
145
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
146
|
+
.deserialize_into(RecurringPaymentEntity.method(:from_hash))
|
|
147
|
+
.is_api_response(true)
|
|
148
|
+
.local_error('404',
|
|
149
|
+
'A recurring payment with provided ID was not found',
|
|
150
|
+
ErrorException)
|
|
151
|
+
.local_error('500',
|
|
152
|
+
'Catch-all exception where request was not processed due to an'\
|
|
153
|
+
' internal outage/issue. Consider other more specific errors'\
|
|
154
|
+
' before using this error',
|
|
155
|
+
ErrorException)
|
|
156
|
+
.local_error('501',
|
|
157
|
+
'Error when FdxVersion in Header is not one of those'\
|
|
158
|
+
' implemented at backend',
|
|
159
|
+
ErrorException)
|
|
160
|
+
.local_error('503',
|
|
161
|
+
'System is down for maintenance',
|
|
162
|
+
ErrorException))
|
|
163
|
+
.execute
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Update a recurring payment
|
|
167
|
+
# @param [UUID | String] x_fapi_interaction_id Required parameter: Unique
|
|
168
|
+
# identifier for this interaction
|
|
169
|
+
# @param [String] recurring_payment_id Required parameter: Recurring Payment
|
|
170
|
+
# Identifier. Uniquely identifies a recurring payment
|
|
171
|
+
# @param [String] idempotency_key Required parameter: Used to de-duplicate
|
|
172
|
+
# requests
|
|
173
|
+
# @param [FdxApiActorType] fdx_api_actor_type Optional parameter: Identifies
|
|
174
|
+
# whether the customer is present (USER) or it is a BATCH operation
|
|
175
|
+
# @param [RecurringPaymentForUpdateEntity2] body Optional parameter: TODO:
|
|
176
|
+
# type description here
|
|
177
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
178
|
+
def update_recurring_payment(x_fapi_interaction_id,
|
|
179
|
+
recurring_payment_id,
|
|
180
|
+
idempotency_key,
|
|
181
|
+
fdx_api_actor_type: nil,
|
|
182
|
+
body: nil)
|
|
183
|
+
@api_call
|
|
184
|
+
.request(new_request_builder(HttpMethodEnum::PATCH,
|
|
185
|
+
'/recurring-payments/{recurringPaymentId}',
|
|
186
|
+
Server::MONEYMOVEMENT)
|
|
187
|
+
.header_param(new_parameter(x_fapi_interaction_id, key: 'x-fapi-interaction-id')
|
|
188
|
+
.is_required(true))
|
|
189
|
+
.template_param(new_parameter(recurring_payment_id, key: 'recurringPaymentId')
|
|
190
|
+
.is_required(true)
|
|
191
|
+
.should_encode(true))
|
|
192
|
+
.header_param(new_parameter(idempotency_key, key: 'idempotency-key')
|
|
193
|
+
.is_required(true))
|
|
194
|
+
.header_param(new_parameter('application/json', key: 'Content-Type'))
|
|
195
|
+
.header_param(new_parameter(fdx_api_actor_type, key: 'FDX-API-Actor-Type'))
|
|
196
|
+
.body_param(new_parameter(body))
|
|
197
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
198
|
+
.body_serializer(proc do |param| param.to_json unless param.nil? end)
|
|
199
|
+
.auth(Single.new('bearerAuth')))
|
|
200
|
+
.response(new_response_handler
|
|
201
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
202
|
+
.deserialize_into(RecurringPaymentEntity.method(:from_hash))
|
|
203
|
+
.is_api_response(true)
|
|
204
|
+
.local_error('400',
|
|
205
|
+
'Request is invalid',
|
|
206
|
+
ErrorException)
|
|
207
|
+
.local_error('404',
|
|
208
|
+
'Requested recurring payment change is invalid',
|
|
209
|
+
ErrorException)
|
|
210
|
+
.local_error('409',
|
|
211
|
+
'Duplicate Request',
|
|
212
|
+
RecurringPaymentEntityErrorException)
|
|
213
|
+
.local_error('422',
|
|
214
|
+
'Account type not supported',
|
|
215
|
+
ErrorException)
|
|
216
|
+
.local_error('500',
|
|
217
|
+
'Catch-all exception where request was not processed due to an'\
|
|
218
|
+
' internal outage/issue. Consider other more specific errors'\
|
|
219
|
+
' before using this error',
|
|
220
|
+
ErrorException)
|
|
221
|
+
.local_error('501',
|
|
222
|
+
'Error when FdxVersion in Header is not one of those'\
|
|
223
|
+
' implemented at backend',
|
|
224
|
+
ErrorException)
|
|
225
|
+
.local_error('503',
|
|
226
|
+
'System is down for maintenance',
|
|
227
|
+
ErrorException))
|
|
228
|
+
.execute
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# Cancel a recurring payment
|
|
232
|
+
# @param [UUID | String] x_fapi_interaction_id Required parameter: Unique
|
|
233
|
+
# identifier for this interaction
|
|
234
|
+
# @param [String] recurring_payment_id Required parameter: Recurring Payment
|
|
235
|
+
# Identifier. Uniquely identifies a recurring payment
|
|
236
|
+
# @param [FdxApiActorType] fdx_api_actor_type Optional parameter: Identifies
|
|
237
|
+
# whether the customer is present (USER) or it is a BATCH operation
|
|
238
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
239
|
+
def cancel_recurring_payment(x_fapi_interaction_id,
|
|
240
|
+
recurring_payment_id,
|
|
241
|
+
fdx_api_actor_type: nil)
|
|
242
|
+
@api_call
|
|
243
|
+
.request(new_request_builder(HttpMethodEnum::DELETE,
|
|
244
|
+
'/recurring-payments/{recurringPaymentId}',
|
|
245
|
+
Server::MONEYMOVEMENT)
|
|
246
|
+
.header_param(new_parameter(x_fapi_interaction_id, key: 'x-fapi-interaction-id')
|
|
247
|
+
.is_required(true))
|
|
248
|
+
.template_param(new_parameter(recurring_payment_id, key: 'recurringPaymentId')
|
|
249
|
+
.is_required(true)
|
|
250
|
+
.should_encode(true))
|
|
251
|
+
.header_param(new_parameter(fdx_api_actor_type, key: 'FDX-API-Actor-Type'))
|
|
252
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
253
|
+
.auth(Single.new('bearerAuth')))
|
|
254
|
+
.response(new_response_handler
|
|
255
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
256
|
+
.deserialize_into(RecurringPaymentEntity.method(:from_hash))
|
|
257
|
+
.is_api_response(true)
|
|
258
|
+
.local_error('400',
|
|
259
|
+
'Recurring payment cannot be modified or cancelled at this time'\
|
|
260
|
+
'. Likely due to the state that it is in',
|
|
261
|
+
ErrorException)
|
|
262
|
+
.local_error('404',
|
|
263
|
+
'A recurring payment with provided ID was not found',
|
|
264
|
+
ErrorException)
|
|
265
|
+
.local_error('500',
|
|
266
|
+
'Catch-all exception where request was not processed due to an'\
|
|
267
|
+
' internal outage/issue. Consider other more specific errors'\
|
|
268
|
+
' before using this error',
|
|
269
|
+
ErrorException)
|
|
270
|
+
.local_error('501',
|
|
271
|
+
'Error when FdxVersion in Header is not one of those'\
|
|
272
|
+
' implemented at backend',
|
|
273
|
+
ErrorException)
|
|
274
|
+
.local_error('503',
|
|
275
|
+
'System is down for maintenance',
|
|
276
|
+
ErrorException))
|
|
277
|
+
.execute
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
# Search for payments associated with the recurring payment
|
|
281
|
+
# @param [UUID | String] x_fapi_interaction_id Required parameter: Unique
|
|
282
|
+
# identifier for this interaction
|
|
283
|
+
# @param [String] recurring_payment_id Required parameter: Recurring Payment
|
|
284
|
+
# Identifier. Uniquely identifies a recurring payment
|
|
285
|
+
# @param [FdxApiActorType] fdx_api_actor_type Optional parameter: Identifies
|
|
286
|
+
# whether the customer is present (USER) or it is a BATCH operation
|
|
287
|
+
# @param [String] updated_since Optional parameter: Return items that have
|
|
288
|
+
# been created or updated since the nextUpdateId
|
|
289
|
+
# @param [String] offset Optional parameter: Opaque cursor used by the
|
|
290
|
+
# provider to send the next set of records
|
|
291
|
+
# @param [Integer] limit Optional parameter: Number of elements that the
|
|
292
|
+
# consumer wishes to receive. Providers should implement reasonable
|
|
293
|
+
# default/maximum/minimum values based on their internal architecture and
|
|
294
|
+
# update their documentation accordingly
|
|
295
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
296
|
+
def get_payments_for_recurring_payment(x_fapi_interaction_id,
|
|
297
|
+
recurring_payment_id,
|
|
298
|
+
fdx_api_actor_type: nil,
|
|
299
|
+
updated_since: nil,
|
|
300
|
+
offset: nil,
|
|
301
|
+
limit: nil)
|
|
302
|
+
@api_call
|
|
303
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
304
|
+
'/recurring-payments/{recurringPaymentId}/payments',
|
|
305
|
+
Server::MONEYMOVEMENT)
|
|
306
|
+
.header_param(new_parameter(x_fapi_interaction_id, key: 'x-fapi-interaction-id')
|
|
307
|
+
.is_required(true))
|
|
308
|
+
.template_param(new_parameter(recurring_payment_id, key: 'recurringPaymentId')
|
|
309
|
+
.is_required(true)
|
|
310
|
+
.should_encode(true))
|
|
311
|
+
.header_param(new_parameter(fdx_api_actor_type, key: 'FDX-API-Actor-Type'))
|
|
312
|
+
.query_param(new_parameter(updated_since, key: 'updatedSince'))
|
|
313
|
+
.query_param(new_parameter(offset, key: 'offset'))
|
|
314
|
+
.query_param(new_parameter(limit, key: 'limit'))
|
|
315
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
316
|
+
.auth(Single.new('bearerAuth')))
|
|
317
|
+
.response(new_response_handler
|
|
318
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
319
|
+
.deserialize_into(PaymentsEntity.method(:from_hash))
|
|
320
|
+
.is_api_response(true)
|
|
321
|
+
.local_error('404',
|
|
322
|
+
'A recurring payment with provided ID was not found',
|
|
323
|
+
ErrorException)
|
|
324
|
+
.local_error('500',
|
|
325
|
+
'Catch-all exception where request was not processed due to an'\
|
|
326
|
+
' internal outage/issue. Consider other more specific errors'\
|
|
327
|
+
' before using this error',
|
|
328
|
+
ErrorException)
|
|
329
|
+
.local_error('501',
|
|
330
|
+
'Error when FdxVersion in Header is not one of those'\
|
|
331
|
+
' implemented at backend',
|
|
332
|
+
ErrorException)
|
|
333
|
+
.local_error('503',
|
|
334
|
+
'System is down for maintenance',
|
|
335
|
+
ErrorException))
|
|
336
|
+
.execute
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
end
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# fdx_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module FdxApi
|
|
7
|
+
# ResourceInformationController
|
|
8
|
+
class ResourceInformationController < BaseController
|
|
9
|
+
# Retrieve all the resources
|
|
10
|
+
# @param [UUID | String] x_fapi_interaction_id Required parameter: Unique
|
|
11
|
+
# identifier for this interaction
|
|
12
|
+
# @param [FdxApiActorType] fdx_api_actor_type Optional parameter: Identifies
|
|
13
|
+
# whether the customer is present (USER) or it is a BATCH operation
|
|
14
|
+
# @param [ResultType] result_type Optional parameter: Flag to indicate if
|
|
15
|
+
# you want a lightweight array of metadata (AccountDescriptor or Tax or
|
|
16
|
+
# Operations) or full item details (Account or a Tax subclass or
|
|
17
|
+
# Availability details). If set to 'lightweight', should only return the
|
|
18
|
+
# fields associated with the metadata entity. This field is not required,
|
|
19
|
+
# defaults to lightweight
|
|
20
|
+
# @param [String] offset Optional parameter: Opaque cursor used by the
|
|
21
|
+
# provider to send the next set of records
|
|
22
|
+
# @param [Integer] limit Optional parameter: Number of elements that the
|
|
23
|
+
# consumer wishes to receive. Providers should implement reasonable
|
|
24
|
+
# default/maximum/minimum values based on their internal architecture and
|
|
25
|
+
# update their documentation accordingly
|
|
26
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
27
|
+
def get_resources(x_fapi_interaction_id,
|
|
28
|
+
fdx_api_actor_type: nil,
|
|
29
|
+
result_type: ResultType::LIGHTWEIGHT,
|
|
30
|
+
offset: nil,
|
|
31
|
+
limit: nil)
|
|
32
|
+
@api_call
|
|
33
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
34
|
+
'/resources',
|
|
35
|
+
Server::RESOURCE)
|
|
36
|
+
.header_param(new_parameter(x_fapi_interaction_id, key: 'x-fapi-interaction-id')
|
|
37
|
+
.is_required(true))
|
|
38
|
+
.header_param(new_parameter(fdx_api_actor_type, key: 'FDX-API-Actor-Type'))
|
|
39
|
+
.query_param(new_parameter(result_type, key: 'resultType'))
|
|
40
|
+
.query_param(new_parameter(offset, key: 'offset'))
|
|
41
|
+
.query_param(new_parameter(limit, key: 'limit'))
|
|
42
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
43
|
+
.auth(Single.new('bearerAuth')))
|
|
44
|
+
.response(new_response_handler
|
|
45
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
46
|
+
.deserialize_into(ResourceListEntity.method(:from_hash))
|
|
47
|
+
.is_api_response(true)
|
|
48
|
+
.local_error('400',
|
|
49
|
+
'Input sent by client does not satisfy API specification',
|
|
50
|
+
ErrorException)
|
|
51
|
+
.local_error('401',
|
|
52
|
+
'Request lacks valid authentication credentials for the target'\
|
|
53
|
+
' resource',
|
|
54
|
+
ErrorException)
|
|
55
|
+
.local_error('404',
|
|
56
|
+
'Data not found for request parameters',
|
|
57
|
+
ErrorException)
|
|
58
|
+
.local_error('500',
|
|
59
|
+
'Catch-all exception where request was not processed due to an'\
|
|
60
|
+
' internal outage/issue. Consider other more specific errors'\
|
|
61
|
+
' before using this error',
|
|
62
|
+
ErrorException)
|
|
63
|
+
.local_error('501',
|
|
64
|
+
'Error when FdxVersion in Header is not one of those'\
|
|
65
|
+
' implemented at backend',
|
|
66
|
+
ErrorException)
|
|
67
|
+
.local_error('503',
|
|
68
|
+
'System is down for maintenance',
|
|
69
|
+
ErrorException))
|
|
70
|
+
.execute
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Retrieve the details of the identified resource
|
|
74
|
+
# @param [String] resource_id Required parameter: Specific resourceId for
|
|
75
|
+
# which to retrieve details
|
|
76
|
+
# @param [UUID | String] x_fapi_interaction_id Required parameter: Unique
|
|
77
|
+
# identifier for this interaction
|
|
78
|
+
# @param [FdxApiActorType] fdx_api_actor_type Optional parameter: Identifies
|
|
79
|
+
# whether the customer is present (USER) or it is a BATCH operation
|
|
80
|
+
# @return [ApiResponse] Complete http response with raw body and status code.
|
|
81
|
+
def get_resource(resource_id,
|
|
82
|
+
x_fapi_interaction_id,
|
|
83
|
+
fdx_api_actor_type: nil)
|
|
84
|
+
@api_call
|
|
85
|
+
.request(new_request_builder(HttpMethodEnum::GET,
|
|
86
|
+
'/resources/{resourceId}',
|
|
87
|
+
Server::RESOURCE)
|
|
88
|
+
.template_param(new_parameter(resource_id, key: 'resourceId')
|
|
89
|
+
.is_required(true)
|
|
90
|
+
.should_encode(true))
|
|
91
|
+
.header_param(new_parameter(x_fapi_interaction_id, key: 'x-fapi-interaction-id')
|
|
92
|
+
.is_required(true))
|
|
93
|
+
.header_param(new_parameter(fdx_api_actor_type, key: 'FDX-API-Actor-Type'))
|
|
94
|
+
.header_param(new_parameter('application/json', key: 'accept'))
|
|
95
|
+
.auth(Single.new('bearerAuth')))
|
|
96
|
+
.response(new_response_handler
|
|
97
|
+
.deserializer(APIHelper.method(:custom_type_deserializer))
|
|
98
|
+
.deserialize_into(ResourceEntity.method(:from_hash))
|
|
99
|
+
.is_api_response(true)
|
|
100
|
+
.local_error('400',
|
|
101
|
+
'Required input data not sent',
|
|
102
|
+
ErrorException)
|
|
103
|
+
.local_error('404',
|
|
104
|
+
'Resource with provided ID was not found',
|
|
105
|
+
ErrorException)
|
|
106
|
+
.local_error('500',
|
|
107
|
+
'Catch-all exception where request was not processed due to an'\
|
|
108
|
+
' internal outage/issue. Consider other more specific errors'\
|
|
109
|
+
' before using this error',
|
|
110
|
+
ErrorException)
|
|
111
|
+
.local_error('501',
|
|
112
|
+
'Error when FdxVersion in Header is not one of those'\
|
|
113
|
+
' implemented at backend',
|
|
114
|
+
ErrorException)
|
|
115
|
+
.local_error('503',
|
|
116
|
+
'System is down for maintenance',
|
|
117
|
+
ErrorException))
|
|
118
|
+
.execute
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
end
|