phone_com_client 1.0.1
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/Gemfile +7 -0
- data/Gemfile.lock +69 -0
- data/LICENSE +21 -0
- data/README.md +344 -0
- data/Rakefile +8 -0
- data/docs/AccountFull.md +14 -0
- data/docs/AccountSummary.md +9 -0
- data/docs/AccountsApi.md +127 -0
- data/docs/Address.md +13 -0
- data/docs/AddressListContacts.md +13 -0
- data/docs/ApplicationFull.md +9 -0
- data/docs/ApplicationSummary.md +9 -0
- data/docs/ApplicationsApi.md +137 -0
- data/docs/AvailableNumbersApi.md +94 -0
- data/docs/AvailableNumbersFull.md +18 -0
- data/docs/CallDetails.md +12 -0
- data/docs/CallFull.md +8 -0
- data/docs/CallLogFull.md +27 -0
- data/docs/CallLogsApi.md +149 -0
- data/docs/CallNotifications.md +9 -0
- data/docs/CallbackObject.md +13 -0
- data/docs/CallerIdFull.md +10 -0
- data/docs/CallerIdPhoneNumber.md +9 -0
- data/docs/CallerIdsApi.md +82 -0
- data/docs/CallsApi.md +67 -0
- data/docs/ContactAccount.md +14 -0
- data/docs/ContactFull.md +26 -0
- data/docs/ContactResponse.md +14 -0
- data/docs/ContactSummary.md +15 -0
- data/docs/ContactsApi.md +333 -0
- data/docs/CreateCallParams.md +15 -0
- data/docs/CreateContactParams.md +23 -0
- data/docs/CreateDeviceParams.md +9 -0
- data/docs/CreateExtensionParams.md +20 -0
- data/docs/CreateGroupParams.md +8 -0
- data/docs/CreateListenerParams.md +10 -0
- data/docs/CreateMediaParams.md +17 -0
- data/docs/CreateMenuParams.md +14 -0
- data/docs/CreateOauthParams.md +16 -0
- data/docs/CreatePaymentParams.md +11 -0
- data/docs/CreatePhoneNumberParams.md +15 -0
- data/docs/CreatePricingParams.md +10 -0
- data/docs/CreateQueueParams.md +14 -0
- data/docs/CreateRedirectUriParams.md +8 -0
- data/docs/CreateRouteParams.md +10 -0
- data/docs/CreateSmsParams.md +11 -0
- data/docs/CreateSubaccountParams.md +11 -0
- data/docs/CreateTrunkParams.md +14 -0
- data/docs/DefaultApi.md +57 -0
- data/docs/DeleteEntry.md +8 -0
- data/docs/DeviceFull.md +11 -0
- data/docs/DeviceMembership.md +9 -0
- data/docs/DeviceSummary.md +9 -0
- data/docs/DevicesApi.md +316 -0
- data/docs/Email.md +9 -0
- data/docs/ExpressServiceCodeFull.md +10 -0
- data/docs/ExpressServiceCodesApi.md +125 -0
- data/docs/ExtensionFull.md +24 -0
- data/docs/ExtensionSummary.md +10 -0
- data/docs/ExtensionsApi.md +262 -0
- data/docs/FilterCallLogs.md +13 -0
- data/docs/FilterIdArray.md +8 -0
- data/docs/FilterIdDirectionFrom.md +10 -0
- data/docs/FilterIdExtensionNameArray.md +10 -0
- data/docs/FilterIdGroupIdUpdatedAtArray.md +10 -0
- data/docs/FilterIdNameArray.md +9 -0
- data/docs/FilterIdNamePhoneNumberArray.md +10 -0
- data/docs/FilterListAvailableNumbers.md +17 -0
- data/docs/FilterListPhoneNumbersRegions.md +14 -0
- data/docs/FilterNameNumberArray.md +9 -0
- data/docs/FilterVoicemailArray.md +13 -0
- data/docs/FromObject.md +11 -0
- data/docs/GetOauthAccessToken.md +10 -0
- data/docs/Greeting.md +11 -0
- data/docs/GreetingInput.md +11 -0
- data/docs/GroupFull.md +9 -0
- data/docs/GroupListContacts.md +9 -0
- data/docs/GroupSummary.md +9 -0
- data/docs/GroupsApi.md +329 -0
- data/docs/HoldMusic.md +9 -0
- data/docs/Line.md +9 -0
- data/docs/ListAccounts.md +13 -0
- data/docs/ListApplications.md +13 -0
- data/docs/ListAvailableNumbers.md +13 -0
- data/docs/ListCallLogs.md +13 -0
- data/docs/ListCallerIds.md +13 -0
- data/docs/ListContacts.md +13 -0
- data/docs/ListDevices.md +13 -0
- data/docs/ListExpressServiceCodes.md +13 -0
- data/docs/ListExtensions.md +13 -0
- data/docs/ListGroups.md +13 -0
- data/docs/ListListeners.md +13 -0
- data/docs/ListMedia.md +13 -0
- data/docs/ListMenus.md +13 -0
- data/docs/ListOauthClients.md +13 -0
- data/docs/ListOauthClientsRedirectUris.md +12 -0
- data/docs/ListPaymentMethods.md +13 -0
- data/docs/ListPhoneNumbers.md +13 -0
- data/docs/ListPhoneNumbersRegions.md +14 -0
- data/docs/ListPricings.md +13 -0
- data/docs/ListQueues.md +13 -0
- data/docs/ListRoutes.md +13 -0
- data/docs/ListSchedules.md +13 -0
- data/docs/ListSms.md +13 -0
- data/docs/ListTrunks.md +13 -0
- data/docs/ListVoicemail.md +13 -0
- data/docs/ListenerFull.md +14 -0
- data/docs/ListenersApi.md +312 -0
- data/docs/MediaApi.md +441 -0
- data/docs/MediaFull.md +10 -0
- data/docs/MediaSummary.md +9 -0
- data/docs/Member.md +9 -0
- data/docs/MenuFull.md +15 -0
- data/docs/MenuSummary.md +9 -0
- data/docs/MenusApi.md +316 -0
- data/docs/Notification.md +9 -0
- data/docs/NumberRegionsApi.md +98 -0
- data/docs/OauthAccessToken.md +12 -0
- data/docs/OauthApi.md +176 -0
- data/docs/OauthClientFull.md +9 -0
- data/docs/OauthClientRedirectUriFull.md +10 -0
- data/docs/OauthClientsApi.md +191 -0
- data/docs/OauthClientsRedirectUrisApi.md +262 -0
- data/docs/Option.md +9 -0
- data/docs/PatchPaymentParams.md +8 -0
- data/docs/PatchSmsParams.md +8 -0
- data/docs/PatchVoicemailParams.md +8 -0
- data/docs/PaymentFull.md +20 -0
- data/docs/PaymentMethodsApi.md +311 -0
- data/docs/PaymentSummary.md +13 -0
- data/docs/PhoneNumberContact.md +10 -0
- data/docs/PhoneNumberFull.md +16 -0
- data/docs/PhoneNumbersApi.md +262 -0
- data/docs/PhoneNumbersRegionFull.md +15 -0
- data/docs/PingResponse.md +11 -0
- data/docs/PricingFull.md +13 -0
- data/docs/PricingObject.md +9 -0
- data/docs/QueueFull.md +15 -0
- data/docs/QueueSummary.md +9 -0
- data/docs/QueuesApi.md +316 -0
- data/docs/Recipient.md +9 -0
- data/docs/RedirectUriFull.md +10 -0
- data/docs/ReplaceExtensionParams.md +21 -0
- data/docs/ReplaceMenuParams.md +14 -0
- data/docs/ReplacePhoneNumberParams.md +13 -0
- data/docs/RouteFull.md +11 -0
- data/docs/RouteSummary.md +9 -0
- data/docs/RoutesApi.md +316 -0
- data/docs/RuleSet.md +9 -0
- data/docs/RuleSetAction.md +17 -0
- data/docs/RuleSetFilter.md +11 -0
- data/docs/RuleSetForwardItem.md +14 -0
- data/docs/ScheduleFull.md +9 -0
- data/docs/ScheduleSummary.md +9 -0
- data/docs/SchedulesApi.md +137 -0
- data/docs/ScopeDetails.md +8 -0
- data/docs/SipAuthentication.md +11 -0
- data/docs/SmsApi.md +265 -0
- data/docs/SmsForwarding.md +10 -0
- data/docs/SmsForwardingParams.md +10 -0
- data/docs/SmsFull.md +15 -0
- data/docs/SortCallLogs.md +10 -0
- data/docs/SortId.md +8 -0
- data/docs/SortIdCreatedAt.md +9 -0
- data/docs/SortIdExtensionName.md +10 -0
- data/docs/SortIdName.md +9 -0
- data/docs/SortIdNamePhoneNumber.md +10 -0
- data/docs/SortIdUpdatedAt.md +9 -0
- data/docs/SortListAvailableNumbers.md +10 -0
- data/docs/SortListPhoneNumbersRegions.md +14 -0
- data/docs/SortNameNumber.md +9 -0
- data/docs/SubaccountPricingApi.md +261 -0
- data/docs/SubaccountsApi.md +133 -0
- data/docs/TrunkFull.md +15 -0
- data/docs/TrunkSummary.md +9 -0
- data/docs/TrunksApi.md +314 -0
- data/docs/Voicemail.md +13 -0
- data/docs/VoicemailApi.md +207 -0
- data/docs/VoicemailFull.md +16 -0
- data/docs/VoicemailInput.md +13 -0
- data/git_push.sh +55 -0
- data/lib/phone_com_client/api/accounts_api.rb +144 -0
- data/lib/phone_com_client/api/applications_api.rb +166 -0
- data/lib/phone_com_client/api/available_numbers_api.rb +131 -0
- data/lib/phone_com_client/api/call_logs_api.rb +204 -0
- data/lib/phone_com_client/api/caller_ids_api.rb +112 -0
- data/lib/phone_com_client/api/calls_api.rb +79 -0
- data/lib/phone_com_client/api/contacts_api.rb +377 -0
- data/lib/phone_com_client/api/default_api.rb +71 -0
- data/lib/phone_com_client/api/devices_api.rb +344 -0
- data/lib/phone_com_client/api/express_service_codes_api.rb +140 -0
- data/lib/phone_com_client/api/extensions_api.rb +294 -0
- data/lib/phone_com_client/api/groups_api.rb +382 -0
- data/lib/phone_com_client/api/listeners_api.rb +334 -0
- data/lib/phone_com_client/api/media_api.rb +470 -0
- data/lib/phone_com_client/api/menus_api.rb +344 -0
- data/lib/phone_com_client/api/number_regions_api.rb +149 -0
- data/lib/phone_com_client/api/oauth_api.rb +196 -0
- data/lib/phone_com_client/api/oauth_clients_api.rb +216 -0
- data/lib/phone_com_client/api/oauth_clients_redirect_uris_api.rb +296 -0
- data/lib/phone_com_client/api/payment_methods_api.rb +338 -0
- data/lib/phone_com_client/api/phone_numbers_api.rb +294 -0
- data/lib/phone_com_client/api/queues_api.rb +344 -0
- data/lib/phone_com_client/api/routes_api.rb +344 -0
- data/lib/phone_com_client/api/schedules_api.rb +166 -0
- data/lib/phone_com_client/api/sms_api.rb +316 -0
- data/lib/phone_com_client/api/subaccount_pricing_api.rb +300 -0
- data/lib/phone_com_client/api/subaccounts_api.rb +156 -0
- data/lib/phone_com_client/api/trunks_api.rb +352 -0
- data/lib/phone_com_client/api/voicemail_api.rb +252 -0
- data/lib/phone_com_client/api_client.rb +389 -0
- data/lib/phone_com_client/api_error.rb +38 -0
- data/lib/phone_com_client/configuration.rb +209 -0
- data/lib/phone_com_client/models/account_full.rb +245 -0
- data/lib/phone_com_client/models/account_summary.rb +195 -0
- data/lib/phone_com_client/models/address.rb +250 -0
- data/lib/phone_com_client/models/address_list_contacts.rb +234 -0
- data/lib/phone_com_client/models/application_full.rb +195 -0
- data/lib/phone_com_client/models/application_summary.rb +195 -0
- data/lib/phone_com_client/models/available_numbers_full.rb +285 -0
- data/lib/phone_com_client/models/call_details.rb +225 -0
- data/lib/phone_com_client/models/call_full.rb +185 -0
- data/lib/phone_com_client/models/call_log_full.rb +377 -0
- data/lib/phone_com_client/models/call_notifications.rb +197 -0
- data/lib/phone_com_client/models/callback_object.rb +234 -0
- data/lib/phone_com_client/models/caller_id_full.rb +205 -0
- data/lib/phone_com_client/models/caller_id_phone_number.rb +210 -0
- data/lib/phone_com_client/models/contact_account.rb +243 -0
- data/lib/phone_com_client/models/contact_full.rb +370 -0
- data/lib/phone_com_client/models/contact_response.rb +243 -0
- data/lib/phone_com_client/models/contact_summary.rb +255 -0
- data/lib/phone_com_client/models/create_call_params.rb +254 -0
- data/lib/phone_com_client/models/create_contact_params.rb +340 -0
- data/lib/phone_com_client/models/create_device_params.rb +196 -0
- data/lib/phone_com_client/models/create_extension_params.rb +302 -0
- data/lib/phone_com_client/models/create_group_params.rb +184 -0
- data/lib/phone_com_client/models/create_listener_params.rb +206 -0
- data/lib/phone_com_client/models/create_media_params.rb +274 -0
- data/lib/phone_com_client/models/create_menu_params.rb +239 -0
- data/lib/phone_com_client/models/create_oauth_params.rb +264 -0
- data/lib/phone_com_client/models/create_payment_params.rb +214 -0
- data/lib/phone_com_client/models/create_phone_number_params.rb +251 -0
- data/lib/phone_com_client/models/create_pricing_params.rb +204 -0
- data/lib/phone_com_client/models/create_queue_params.rb +246 -0
- data/lib/phone_com_client/models/create_redirect_uri_params.rb +184 -0
- data/lib/phone_com_client/models/create_route_params.rb +206 -0
- data/lib/phone_com_client/models/create_sms_params.rb +229 -0
- data/lib/phone_com_client/models/create_subaccount_params.rb +224 -0
- data/lib/phone_com_client/models/create_trunk_params.rb +246 -0
- data/lib/phone_com_client/models/delete_entry.rb +183 -0
- data/lib/phone_com_client/models/device_full.rb +216 -0
- data/lib/phone_com_client/models/device_membership.rb +195 -0
- data/lib/phone_com_client/models/device_summary.rb +195 -0
- data/lib/phone_com_client/models/email.rb +194 -0
- data/lib/phone_com_client/models/express_service_code_full.rb +207 -0
- data/lib/phone_com_client/models/extension_full.rb +342 -0
- data/lib/phone_com_client/models/extension_summary.rb +205 -0
- data/lib/phone_com_client/models/filter_call_logs.rb +228 -0
- data/lib/phone_com_client/models/filter_id_array.rb +183 -0
- data/lib/phone_com_client/models/filter_id_direction_from.rb +201 -0
- data/lib/phone_com_client/models/filter_id_extension_name_array.rb +201 -0
- data/lib/phone_com_client/models/filter_id_group_id_updated_at_array.rb +201 -0
- data/lib/phone_com_client/models/filter_id_name_array.rb +192 -0
- data/lib/phone_com_client/models/filter_id_name_phone_number_array.rb +201 -0
- data/lib/phone_com_client/models/filter_list_available_numbers.rb +264 -0
- data/lib/phone_com_client/models/filter_list_phone_numbers_regions.rb +237 -0
- data/lib/phone_com_client/models/filter_name_number_array.rb +192 -0
- data/lib/phone_com_client/models/filter_voicemail_array.rb +228 -0
- data/lib/phone_com_client/models/from_object.rb +215 -0
- data/lib/phone_com_client/models/get_oauth_access_token.rb +203 -0
- data/lib/phone_com_client/models/greeting.rb +215 -0
- data/lib/phone_com_client/models/greeting_input.rb +215 -0
- data/lib/phone_com_client/models/group_full.rb +195 -0
- data/lib/phone_com_client/models/group_list_contacts.rb +195 -0
- data/lib/phone_com_client/models/group_summary.rb +195 -0
- data/lib/phone_com_client/models/hold_music.rb +195 -0
- data/lib/phone_com_client/models/line.rb +194 -0
- data/lib/phone_com_client/models/list_accounts.rb +230 -0
- data/lib/phone_com_client/models/list_applications.rb +230 -0
- data/lib/phone_com_client/models/list_available_numbers.rb +230 -0
- data/lib/phone_com_client/models/list_call_logs.rb +230 -0
- data/lib/phone_com_client/models/list_caller_ids.rb +230 -0
- data/lib/phone_com_client/models/list_contacts.rb +230 -0
- data/lib/phone_com_client/models/list_devices.rb +230 -0
- data/lib/phone_com_client/models/list_express_service_codes.rb +232 -0
- data/lib/phone_com_client/models/list_extensions.rb +230 -0
- data/lib/phone_com_client/models/list_groups.rb +230 -0
- data/lib/phone_com_client/models/list_listeners.rb +230 -0
- data/lib/phone_com_client/models/list_media.rb +230 -0
- data/lib/phone_com_client/models/list_menus.rb +230 -0
- data/lib/phone_com_client/models/list_oauth_clients.rb +230 -0
- data/lib/phone_com_client/models/list_oauth_clients_redirect_uris.rb +221 -0
- data/lib/phone_com_client/models/list_payment_methods.rb +230 -0
- data/lib/phone_com_client/models/list_phone_numbers.rb +231 -0
- data/lib/phone_com_client/models/list_phone_numbers_regions.rb +241 -0
- data/lib/phone_com_client/models/list_pricings.rb +230 -0
- data/lib/phone_com_client/models/list_queues.rb +230 -0
- data/lib/phone_com_client/models/list_routes.rb +230 -0
- data/lib/phone_com_client/models/list_schedules.rb +230 -0
- data/lib/phone_com_client/models/list_sms.rb +230 -0
- data/lib/phone_com_client/models/list_trunks.rb +230 -0
- data/lib/phone_com_client/models/list_voicemail.rb +230 -0
- data/lib/phone_com_client/models/listener_full.rb +244 -0
- data/lib/phone_com_client/models/media_full.rb +220 -0
- data/lib/phone_com_client/models/media_summary.rb +195 -0
- data/lib/phone_com_client/models/member.rb +194 -0
- data/lib/phone_com_client/models/menu_full.rb +257 -0
- data/lib/phone_com_client/models/menu_summary.rb +195 -0
- data/lib/phone_com_client/models/notification.rb +197 -0
- data/lib/phone_com_client/models/oauth_access_token.rb +219 -0
- data/lib/phone_com_client/models/oauth_client_full.rb +195 -0
- data/lib/phone_com_client/models/oauth_client_redirect_uri_full.rb +205 -0
- data/lib/phone_com_client/models/option.rb +194 -0
- data/lib/phone_com_client/models/patch_payment_params.rb +184 -0
- data/lib/phone_com_client/models/patch_sms_params.rb +184 -0
- data/lib/phone_com_client/models/patch_voicemail_params.rb +184 -0
- data/lib/phone_com_client/models/payment_full.rb +305 -0
- data/lib/phone_com_client/models/payment_summary.rb +235 -0
- data/lib/phone_com_client/models/phone_number_contact.rb +204 -0
- data/lib/phone_com_client/models/phone_number_full.rb +262 -0
- data/lib/phone_com_client/models/phone_numbers_region_full.rb +255 -0
- data/lib/phone_com_client/models/ping_response.rb +211 -0
- data/lib/phone_com_client/models/pricing_full.rb +235 -0
- data/lib/phone_com_client/models/pricing_object.rb +194 -0
- data/lib/phone_com_client/models/queue_full.rb +266 -0
- data/lib/phone_com_client/models/queue_summary.rb +205 -0
- data/lib/phone_com_client/models/recipient.rb +194 -0
- data/lib/phone_com_client/models/redirect_uri_full.rb +204 -0
- data/lib/phone_com_client/models/replace_extension_params.rb +312 -0
- data/lib/phone_com_client/models/replace_menu_params.rb +239 -0
- data/lib/phone_com_client/models/replace_phone_number_params.rb +251 -0
- data/lib/phone_com_client/models/route_full.rb +217 -0
- data/lib/phone_com_client/models/route_summary.rb +195 -0
- data/lib/phone_com_client/models/rule_set.rb +195 -0
- data/lib/phone_com_client/models/rule_set_action.rb +292 -0
- data/lib/phone_com_client/models/rule_set_filter.rb +230 -0
- data/lib/phone_com_client/models/rule_set_forward_item.rb +294 -0
- data/lib/phone_com_client/models/schedule_full.rb +195 -0
- data/lib/phone_com_client/models/schedule_summary.rb +195 -0
- data/lib/phone_com_client/models/scope_details.rb +183 -0
- data/lib/phone_com_client/models/sip_authentication.rb +215 -0
- data/lib/phone_com_client/models/sms_forwarding.rb +220 -0
- data/lib/phone_com_client/models/sms_forwarding_params.rb +220 -0
- data/lib/phone_com_client/models/sms_full.rb +257 -0
- data/lib/phone_com_client/models/sort_call_logs.rb +201 -0
- data/lib/phone_com_client/models/sort_id.rb +183 -0
- data/lib/phone_com_client/models/sort_id_created_at.rb +192 -0
- data/lib/phone_com_client/models/sort_id_extension_name.rb +201 -0
- data/lib/phone_com_client/models/sort_id_name.rb +192 -0
- data/lib/phone_com_client/models/sort_id_name_phone_number.rb +201 -0
- data/lib/phone_com_client/models/sort_id_updated_at.rb +192 -0
- data/lib/phone_com_client/models/sort_list_available_numbers.rb +201 -0
- data/lib/phone_com_client/models/sort_list_phone_numbers_regions.rb +237 -0
- data/lib/phone_com_client/models/sort_name_number.rb +192 -0
- data/lib/phone_com_client/models/trunk_full.rb +297 -0
- data/lib/phone_com_client/models/trunk_summary.rb +205 -0
- data/lib/phone_com_client/models/voicemail.rb +234 -0
- data/lib/phone_com_client/models/voicemail_full.rb +265 -0
- data/lib/phone_com_client/models/voicemail_input.rb +234 -0
- data/lib/phone_com_client/version.rb +15 -0
- data/lib/phone_com_client.rb +214 -0
- data/phone_com_client.gemspec +45 -0
- data/spec/api/accounts_api_spec.rb +63 -0
- data/spec/api/applications_api_spec.rb +67 -0
- data/spec/api/available_numbers_api_spec.rb +62 -0
- data/spec/api/call_logs_api_spec.rb +73 -0
- data/spec/api/caller_ids_api_spec.rb +55 -0
- data/spec/api/calls_api_spec.rb +48 -0
- data/spec/api/contacts_api_spec.rb +113 -0
- data/spec/api/default_api_spec.rb +46 -0
- data/spec/api/devices_api_spec.rb +107 -0
- data/spec/api/express_service_codes_api_spec.rb +61 -0
- data/spec/api/extensions_api_spec.rb +96 -0
- data/spec/api/groups_api_spec.rb +112 -0
- data/spec/api/listeners_api_spec.rb +105 -0
- data/spec/api/media_api_spec.rb +136 -0
- data/spec/api/menus_api_spec.rb +107 -0
- data/spec/api/number_regions_api_spec.rb +64 -0
- data/spec/api/oauth_api_spec.rb +73 -0
- data/spec/api/oauth_clients_api_spec.rb +78 -0
- data/spec/api/oauth_clients_redirect_uris_api_spec.rb +95 -0
- data/spec/api/payment_methods_api_spec.rb +105 -0
- data/spec/api/phone_numbers_api_spec.rb +96 -0
- data/spec/api/queues_api_spec.rb +107 -0
- data/spec/api/routes_api_spec.rb +107 -0
- data/spec/api/schedules_api_spec.rb +67 -0
- data/spec/api/sms_api_spec.rb +98 -0
- data/spec/api/subaccount_pricing_api_spec.rb +95 -0
- data/spec/api/subaccounts_api_spec.rb +65 -0
- data/spec/api/trunks_api_spec.rb +107 -0
- data/spec/api/voicemail_api_spec.rb +85 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_full_spec.rb +77 -0
- data/spec/models/account_summary_spec.rb +47 -0
- data/spec/models/address_list_contacts_spec.rb +71 -0
- data/spec/models/address_spec.rb +71 -0
- data/spec/models/application_full_spec.rb +47 -0
- data/spec/models/application_summary_spec.rb +47 -0
- data/spec/models/available_numbers_full_spec.rb +101 -0
- data/spec/models/call_details_spec.rb +65 -0
- data/spec/models/call_full_spec.rb +41 -0
- data/spec/models/call_log_full_spec.rb +155 -0
- data/spec/models/call_notifications_spec.rb +47 -0
- data/spec/models/callback_object_spec.rb +71 -0
- data/spec/models/caller_id_full_spec.rb +53 -0
- data/spec/models/caller_id_phone_number_spec.rb +47 -0
- data/spec/models/contact_account_spec.rb +77 -0
- data/spec/models/contact_full_spec.rb +149 -0
- data/spec/models/contact_response_spec.rb +77 -0
- data/spec/models/contact_summary_spec.rb +83 -0
- data/spec/models/create_call_params_spec.rb +83 -0
- data/spec/models/create_contact_params_spec.rb +131 -0
- data/spec/models/create_device_params_spec.rb +47 -0
- data/spec/models/create_extension_params_spec.rb +113 -0
- data/spec/models/create_group_params_spec.rb +41 -0
- data/spec/models/create_listener_params_spec.rb +53 -0
- data/spec/models/create_media_params_spec.rb +95 -0
- data/spec/models/create_menu_params_spec.rb +77 -0
- data/spec/models/create_oauth_params_spec.rb +89 -0
- data/spec/models/create_payment_params_spec.rb +59 -0
- data/spec/models/create_phone_number_params_spec.rb +83 -0
- data/spec/models/create_pricing_params_spec.rb +53 -0
- data/spec/models/create_queue_params_spec.rb +77 -0
- data/spec/models/create_redirect_uri_params_spec.rb +41 -0
- data/spec/models/create_route_params_spec.rb +53 -0
- data/spec/models/create_sms_params_spec.rb +59 -0
- data/spec/models/create_subaccount_params_spec.rb +59 -0
- data/spec/models/create_trunk_params_spec.rb +77 -0
- data/spec/models/delete_entry_spec.rb +41 -0
- data/spec/models/device_full_spec.rb +59 -0
- data/spec/models/device_membership_spec.rb +47 -0
- data/spec/models/device_summary_spec.rb +47 -0
- data/spec/models/email_spec.rb +47 -0
- data/spec/models/express_service_code_full_spec.rb +53 -0
- data/spec/models/extension_full_spec.rb +137 -0
- data/spec/models/extension_summary_spec.rb +53 -0
- data/spec/models/filter_call_logs_spec.rb +71 -0
- data/spec/models/filter_id_array_spec.rb +41 -0
- data/spec/models/filter_id_direction_from_spec.rb +53 -0
- data/spec/models/filter_id_extension_name_array_spec.rb +53 -0
- data/spec/models/filter_id_group_id_updated_at_array_spec.rb +53 -0
- data/spec/models/filter_id_name_array_spec.rb +47 -0
- data/spec/models/filter_id_name_phone_number_array_spec.rb +53 -0
- data/spec/models/filter_list_available_numbers_spec.rb +95 -0
- data/spec/models/filter_list_phone_numbers_regions_spec.rb +77 -0
- data/spec/models/filter_name_number_array_spec.rb +47 -0
- data/spec/models/filter_voicemail_array_spec.rb +71 -0
- data/spec/models/from_object_spec.rb +59 -0
- data/spec/models/get_oauth_access_token_spec.rb +53 -0
- data/spec/models/greeting_input_spec.rb +59 -0
- data/spec/models/greeting_spec.rb +59 -0
- data/spec/models/group_full_spec.rb +47 -0
- data/spec/models/group_list_contacts_spec.rb +47 -0
- data/spec/models/group_summary_spec.rb +47 -0
- data/spec/models/hold_music_spec.rb +47 -0
- data/spec/models/line_spec.rb +47 -0
- data/spec/models/list_accounts_spec.rb +71 -0
- data/spec/models/list_applications_spec.rb +71 -0
- data/spec/models/list_available_numbers_spec.rb +71 -0
- data/spec/models/list_call_logs_spec.rb +71 -0
- data/spec/models/list_caller_ids_spec.rb +71 -0
- data/spec/models/list_contacts_spec.rb +71 -0
- data/spec/models/list_devices_spec.rb +71 -0
- data/spec/models/list_express_service_codes_spec.rb +71 -0
- data/spec/models/list_extensions_spec.rb +71 -0
- data/spec/models/list_groups_spec.rb +71 -0
- data/spec/models/list_listeners_spec.rb +71 -0
- data/spec/models/list_media_spec.rb +71 -0
- data/spec/models/list_menus_spec.rb +71 -0
- data/spec/models/list_oauth_clients_redirect_uris_spec.rb +65 -0
- data/spec/models/list_oauth_clients_spec.rb +71 -0
- data/spec/models/list_payment_methods_spec.rb +71 -0
- data/spec/models/list_phone_numbers_regions_spec.rb +77 -0
- data/spec/models/list_phone_numbers_spec.rb +71 -0
- data/spec/models/list_pricings_spec.rb +71 -0
- data/spec/models/list_queues_spec.rb +71 -0
- data/spec/models/list_routes_spec.rb +71 -0
- data/spec/models/list_schedules_spec.rb +71 -0
- data/spec/models/list_sms_spec.rb +71 -0
- data/spec/models/list_trunks_spec.rb +71 -0
- data/spec/models/list_voicemail_spec.rb +71 -0
- data/spec/models/listener_full_spec.rb +77 -0
- data/spec/models/media_full_spec.rb +53 -0
- data/spec/models/media_summary_spec.rb +47 -0
- data/spec/models/member_spec.rb +47 -0
- data/spec/models/menu_full_spec.rb +83 -0
- data/spec/models/menu_summary_spec.rb +47 -0
- data/spec/models/notification_spec.rb +47 -0
- data/spec/models/oauth_access_token_spec.rb +65 -0
- data/spec/models/oauth_client_full_spec.rb +47 -0
- data/spec/models/oauth_client_redirect_uri_full_spec.rb +53 -0
- data/spec/models/option_spec.rb +47 -0
- data/spec/models/patch_payment_params_spec.rb +41 -0
- data/spec/models/patch_sms_params_spec.rb +41 -0
- data/spec/models/patch_voicemail_params_spec.rb +41 -0
- data/spec/models/payment_full_spec.rb +113 -0
- data/spec/models/payment_summary_spec.rb +71 -0
- data/spec/models/phone_number_contact_spec.rb +53 -0
- data/spec/models/phone_number_full_spec.rb +89 -0
- data/spec/models/phone_numbers_region_full_spec.rb +83 -0
- data/spec/models/ping_response_spec.rb +59 -0
- data/spec/models/pricing_full_spec.rb +71 -0
- data/spec/models/pricing_object_spec.rb +47 -0
- data/spec/models/queue_full_spec.rb +83 -0
- data/spec/models/queue_summary_spec.rb +47 -0
- data/spec/models/recipient_spec.rb +47 -0
- data/spec/models/redirect_uri_full_spec.rb +53 -0
- data/spec/models/replace_extension_params_spec.rb +119 -0
- data/spec/models/replace_menu_params_spec.rb +77 -0
- data/spec/models/replace_phone_number_params_spec.rb +83 -0
- data/spec/models/route_full_spec.rb +59 -0
- data/spec/models/route_summary_spec.rb +47 -0
- data/spec/models/rule_set_action_spec.rb +95 -0
- data/spec/models/rule_set_filter_spec.rb +59 -0
- data/spec/models/rule_set_forward_item_spec.rb +77 -0
- data/spec/models/rule_set_spec.rb +47 -0
- data/spec/models/schedule_full_spec.rb +47 -0
- data/spec/models/schedule_summary_spec.rb +47 -0
- data/spec/models/scope_details_spec.rb +41 -0
- data/spec/models/sip_authentication_spec.rb +59 -0
- data/spec/models/sms_forwarding_params_spec.rb +53 -0
- data/spec/models/sms_forwarding_spec.rb +53 -0
- data/spec/models/sms_full_spec.rb +83 -0
- data/spec/models/sort_call_logs_spec.rb +53 -0
- data/spec/models/sort_id_created_at_spec.rb +47 -0
- data/spec/models/sort_id_extension_name_spec.rb +53 -0
- data/spec/models/sort_id_name_phone_number_spec.rb +53 -0
- data/spec/models/sort_id_name_spec.rb +47 -0
- data/spec/models/sort_id_spec.rb +41 -0
- data/spec/models/sort_id_updated_at_spec.rb +47 -0
- data/spec/models/sort_list_available_numbers_spec.rb +53 -0
- data/spec/models/sort_list_phone_numbers_regions_spec.rb +77 -0
- data/spec/models/sort_name_number_spec.rb +47 -0
- data/spec/models/trunk_full_spec.rb +83 -0
- data/spec/models/trunk_summary_spec.rb +47 -0
- data/spec/models/voicemail_full_spec.rb +89 -0
- data/spec/models/voicemail_input_spec.rb +71 -0
- data/spec/models/voicemail_spec.rb +71 -0
- data/spec/spec_helper.rb +111 -0
- metadata +942 -0
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Phone.com API
|
|
3
|
+
|
|
4
|
+
#This is a Phone.com api PhoneCom definition
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0.0
|
|
7
|
+
Contact: apisupport@phone.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
PhoneCom Codegen version: 2.4.4
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'uri'
|
|
14
|
+
|
|
15
|
+
module PhoneComClient
|
|
16
|
+
class OauthClientsRedirectUrisApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create an OAuth Client Redirect URI record.
|
|
23
|
+
# Create an OAuth Client Redirect URI record.
|
|
24
|
+
# @param account_id Account ID
|
|
25
|
+
# @param client_id Client ID
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @option opts [CreateRedirectUriParams] :data Redirect Uri data
|
|
28
|
+
# @return [OauthClientRedirectUriFull]
|
|
29
|
+
def create_account_oauth_clients_redirect_uri(account_id, client_id, opts = {})
|
|
30
|
+
data, _status_code, _headers = create_account_oauth_clients_redirect_uri_with_http_info(account_id, client_id, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Create an OAuth Client Redirect URI record.
|
|
35
|
+
# Create an OAuth Client Redirect URI record.
|
|
36
|
+
# @param account_id Account ID
|
|
37
|
+
# @param client_id Client ID
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [CreateRedirectUriParams] :data Redirect Uri data
|
|
40
|
+
# @return [Array<(OauthClientRedirectUriFull, Fixnum, Hash)>] OauthClientRedirectUriFull data, response status code and response headers
|
|
41
|
+
def create_account_oauth_clients_redirect_uri_with_http_info(account_id, client_id, opts = {})
|
|
42
|
+
if @api_client.config.debugging
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: OauthClientsRedirectUrisApi.create_account_oauth_clients_redirect_uri ...'
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'account_id' is set
|
|
46
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling OauthClientsRedirectUrisApi.create_account_oauth_clients_redirect_uri"
|
|
48
|
+
end
|
|
49
|
+
# verify the required parameter 'client_id' is set
|
|
50
|
+
if @api_client.config.client_side_validation && client_id.nil?
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'client_id' when calling OauthClientsRedirectUrisApi.create_account_oauth_clients_redirect_uri"
|
|
52
|
+
end
|
|
53
|
+
# resource path
|
|
54
|
+
local_var_path = '/accounts/{account_id}/oauth/clients/{client_id}/redirect-uris'.sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'client_id' + '}', client_id.to_s)
|
|
55
|
+
|
|
56
|
+
# query parameters
|
|
57
|
+
query_params = {}
|
|
58
|
+
|
|
59
|
+
# header parameters
|
|
60
|
+
header_params = {}
|
|
61
|
+
# HTTP header 'Accept' (if needed)
|
|
62
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
63
|
+
# HTTP header 'Content-Type'
|
|
64
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
65
|
+
|
|
66
|
+
# form parameters
|
|
67
|
+
form_params = {}
|
|
68
|
+
|
|
69
|
+
# http body (model)
|
|
70
|
+
post_body = @api_client.object_to_http_body(opts[:'data'])
|
|
71
|
+
auth_names = ['apiKey']
|
|
72
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
73
|
+
:header_params => header_params,
|
|
74
|
+
:query_params => query_params,
|
|
75
|
+
:form_params => form_params,
|
|
76
|
+
:body => post_body,
|
|
77
|
+
:auth_names => auth_names,
|
|
78
|
+
:return_type => 'OauthClientRedirectUriFull')
|
|
79
|
+
if @api_client.config.debugging
|
|
80
|
+
@api_client.config.logger.debug "API called: OauthClientsRedirectUrisApi#create_account_oauth_clients_redirect_uri\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
81
|
+
end
|
|
82
|
+
return data, status_code, headers
|
|
83
|
+
end
|
|
84
|
+
# Delete an OAuth Client Redirect URI record.
|
|
85
|
+
# Delete an OAuth Client Redirect URI record.
|
|
86
|
+
# @param account_id Account ID
|
|
87
|
+
# @param client_id Client ID
|
|
88
|
+
# @param uri_id Redirect URI ID
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [DeleteEntry]
|
|
91
|
+
def delete_account_oauth_clients_redirect_uri(account_id, client_id, uri_id, opts = {})
|
|
92
|
+
data, _status_code, _headers = delete_account_oauth_clients_redirect_uri_with_http_info(account_id, client_id, uri_id, opts)
|
|
93
|
+
data
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Delete an OAuth Client Redirect URI record.
|
|
97
|
+
# Delete an OAuth Client Redirect URI record.
|
|
98
|
+
# @param account_id Account ID
|
|
99
|
+
# @param client_id Client ID
|
|
100
|
+
# @param uri_id Redirect URI ID
|
|
101
|
+
# @param [Hash] opts the optional parameters
|
|
102
|
+
# @return [Array<(DeleteEntry, Fixnum, Hash)>] DeleteEntry data, response status code and response headers
|
|
103
|
+
def delete_account_oauth_clients_redirect_uri_with_http_info(account_id, client_id, uri_id, opts = {})
|
|
104
|
+
if @api_client.config.debugging
|
|
105
|
+
@api_client.config.logger.debug 'Calling API: OauthClientsRedirectUrisApi.delete_account_oauth_clients_redirect_uri ...'
|
|
106
|
+
end
|
|
107
|
+
# verify the required parameter 'account_id' is set
|
|
108
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
|
109
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling OauthClientsRedirectUrisApi.delete_account_oauth_clients_redirect_uri"
|
|
110
|
+
end
|
|
111
|
+
# verify the required parameter 'client_id' is set
|
|
112
|
+
if @api_client.config.client_side_validation && client_id.nil?
|
|
113
|
+
fail ArgumentError, "Missing the required parameter 'client_id' when calling OauthClientsRedirectUrisApi.delete_account_oauth_clients_redirect_uri"
|
|
114
|
+
end
|
|
115
|
+
# verify the required parameter 'uri_id' is set
|
|
116
|
+
if @api_client.config.client_side_validation && uri_id.nil?
|
|
117
|
+
fail ArgumentError, "Missing the required parameter 'uri_id' when calling OauthClientsRedirectUrisApi.delete_account_oauth_clients_redirect_uri"
|
|
118
|
+
end
|
|
119
|
+
# resource path
|
|
120
|
+
local_var_path = '/accounts/{account_id}/oauth/clients/{client_id}/redirect-uris/{uri_id}'.sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'client_id' + '}', client_id.to_s).sub('{' + 'uri_id' + '}', uri_id.to_s)
|
|
121
|
+
|
|
122
|
+
# query parameters
|
|
123
|
+
query_params = {}
|
|
124
|
+
|
|
125
|
+
# header parameters
|
|
126
|
+
header_params = {}
|
|
127
|
+
# HTTP header 'Accept' (if needed)
|
|
128
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
129
|
+
# HTTP header 'Content-Type'
|
|
130
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
131
|
+
|
|
132
|
+
# form parameters
|
|
133
|
+
form_params = {}
|
|
134
|
+
|
|
135
|
+
# http body (model)
|
|
136
|
+
post_body = nil
|
|
137
|
+
auth_names = ['apiKey']
|
|
138
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
139
|
+
:header_params => header_params,
|
|
140
|
+
:query_params => query_params,
|
|
141
|
+
:form_params => form_params,
|
|
142
|
+
:body => post_body,
|
|
143
|
+
:auth_names => auth_names,
|
|
144
|
+
:return_type => 'DeleteEntry')
|
|
145
|
+
if @api_client.config.debugging
|
|
146
|
+
@api_client.config.logger.debug "API called: OauthClientsRedirectUrisApi#delete_account_oauth_clients_redirect_uri\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
147
|
+
end
|
|
148
|
+
return data, status_code, headers
|
|
149
|
+
end
|
|
150
|
+
# Get details of an OAuth Client Redirect URI record.
|
|
151
|
+
# Get details of an OAuth Client Redirect URI record.
|
|
152
|
+
# @param account_id Account ID
|
|
153
|
+
# @param client_id Client ID
|
|
154
|
+
# @param uri_id Redirect URI ID
|
|
155
|
+
# @param [Hash] opts the optional parameters
|
|
156
|
+
# @return [OauthClientRedirectUriFull]
|
|
157
|
+
def get_account_oauth_clients_redirect_uri(account_id, client_id, uri_id, opts = {})
|
|
158
|
+
data, _status_code, _headers = get_account_oauth_clients_redirect_uri_with_http_info(account_id, client_id, uri_id, opts)
|
|
159
|
+
data
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Get details of an OAuth Client Redirect URI record.
|
|
163
|
+
# Get details of an OAuth Client Redirect URI record.
|
|
164
|
+
# @param account_id Account ID
|
|
165
|
+
# @param client_id Client ID
|
|
166
|
+
# @param uri_id Redirect URI ID
|
|
167
|
+
# @param [Hash] opts the optional parameters
|
|
168
|
+
# @return [Array<(OauthClientRedirectUriFull, Fixnum, Hash)>] OauthClientRedirectUriFull data, response status code and response headers
|
|
169
|
+
def get_account_oauth_clients_redirect_uri_with_http_info(account_id, client_id, uri_id, opts = {})
|
|
170
|
+
if @api_client.config.debugging
|
|
171
|
+
@api_client.config.logger.debug 'Calling API: OauthClientsRedirectUrisApi.get_account_oauth_clients_redirect_uri ...'
|
|
172
|
+
end
|
|
173
|
+
# verify the required parameter 'account_id' is set
|
|
174
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
|
175
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling OauthClientsRedirectUrisApi.get_account_oauth_clients_redirect_uri"
|
|
176
|
+
end
|
|
177
|
+
# verify the required parameter 'client_id' is set
|
|
178
|
+
if @api_client.config.client_side_validation && client_id.nil?
|
|
179
|
+
fail ArgumentError, "Missing the required parameter 'client_id' when calling OauthClientsRedirectUrisApi.get_account_oauth_clients_redirect_uri"
|
|
180
|
+
end
|
|
181
|
+
# verify the required parameter 'uri_id' is set
|
|
182
|
+
if @api_client.config.client_side_validation && uri_id.nil?
|
|
183
|
+
fail ArgumentError, "Missing the required parameter 'uri_id' when calling OauthClientsRedirectUrisApi.get_account_oauth_clients_redirect_uri"
|
|
184
|
+
end
|
|
185
|
+
# resource path
|
|
186
|
+
local_var_path = '/accounts/{account_id}/oauth/clients/{client_id}/redirect-uris/{uri_id}'.sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'client_id' + '}', client_id.to_s).sub('{' + 'uri_id' + '}', uri_id.to_s)
|
|
187
|
+
|
|
188
|
+
# query parameters
|
|
189
|
+
query_params = {}
|
|
190
|
+
|
|
191
|
+
# header parameters
|
|
192
|
+
header_params = {}
|
|
193
|
+
# HTTP header 'Accept' (if needed)
|
|
194
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
195
|
+
# HTTP header 'Content-Type'
|
|
196
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
197
|
+
|
|
198
|
+
# form parameters
|
|
199
|
+
form_params = {}
|
|
200
|
+
|
|
201
|
+
# http body (model)
|
|
202
|
+
post_body = nil
|
|
203
|
+
auth_names = ['apiKey']
|
|
204
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
205
|
+
:header_params => header_params,
|
|
206
|
+
:query_params => query_params,
|
|
207
|
+
:form_params => form_params,
|
|
208
|
+
:body => post_body,
|
|
209
|
+
:auth_names => auth_names,
|
|
210
|
+
:return_type => 'OauthClientRedirectUriFull')
|
|
211
|
+
if @api_client.config.debugging
|
|
212
|
+
@api_client.config.logger.debug "API called: OauthClientsRedirectUrisApi#get_account_oauth_clients_redirect_uri\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
213
|
+
end
|
|
214
|
+
return data, status_code, headers
|
|
215
|
+
end
|
|
216
|
+
# Get a list of OAuth Client Redirect URIs for an account.
|
|
217
|
+
# Get a list of OAuth Client Redirect URIs for an account.
|
|
218
|
+
# @param account_id Account ID
|
|
219
|
+
# @param client_id Client ID
|
|
220
|
+
# @param [Hash] opts the optional parameters
|
|
221
|
+
# @option opts [Array<String>] :filters_id ID filter
|
|
222
|
+
# @option opts [String] :sort_id ID sorting
|
|
223
|
+
# @option opts [Integer] :limit Max results
|
|
224
|
+
# @option opts [Integer] :offset Results to skip
|
|
225
|
+
# @option opts [String] :fields Field set
|
|
226
|
+
# @return [ListOauthClientsRedirectUris]
|
|
227
|
+
def list_account_oauth_clients_redirect_uris(account_id, client_id, opts = {})
|
|
228
|
+
data, _status_code, _headers = list_account_oauth_clients_redirect_uris_with_http_info(account_id, client_id, opts)
|
|
229
|
+
data
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Get a list of OAuth Client Redirect URIs for an account.
|
|
233
|
+
# Get a list of OAuth Client Redirect URIs for an account.
|
|
234
|
+
# @param account_id Account ID
|
|
235
|
+
# @param client_id Client ID
|
|
236
|
+
# @param [Hash] opts the optional parameters
|
|
237
|
+
# @option opts [Array<String>] :filters_id ID filter
|
|
238
|
+
# @option opts [String] :sort_id ID sorting
|
|
239
|
+
# @option opts [Integer] :limit Max results
|
|
240
|
+
# @option opts [Integer] :offset Results to skip
|
|
241
|
+
# @option opts [String] :fields Field set
|
|
242
|
+
# @return [Array<(ListOauthClientsRedirectUris, Fixnum, Hash)>] ListOauthClientsRedirectUris data, response status code and response headers
|
|
243
|
+
def list_account_oauth_clients_redirect_uris_with_http_info(account_id, client_id, opts = {})
|
|
244
|
+
if @api_client.config.debugging
|
|
245
|
+
@api_client.config.logger.debug 'Calling API: OauthClientsRedirectUrisApi.list_account_oauth_clients_redirect_uris ...'
|
|
246
|
+
end
|
|
247
|
+
# verify the required parameter 'account_id' is set
|
|
248
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
|
249
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling OauthClientsRedirectUrisApi.list_account_oauth_clients_redirect_uris"
|
|
250
|
+
end
|
|
251
|
+
# verify the required parameter 'client_id' is set
|
|
252
|
+
if @api_client.config.client_side_validation && client_id.nil?
|
|
253
|
+
fail ArgumentError, "Missing the required parameter 'client_id' when calling OauthClientsRedirectUrisApi.list_account_oauth_clients_redirect_uris"
|
|
254
|
+
end
|
|
255
|
+
if @api_client.config.client_side_validation && !opts[:'sort_id'].nil? && opts[:'sort_id'] !~ Regexp.new(/asc|desc/)
|
|
256
|
+
fail ArgumentError, "invalid value for 'opts[:\"sort_id\"]' when calling OauthClientsRedirectUrisApi.list_account_oauth_clients_redirect_uris, must conform to the pattern /asc|desc/."
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# resource path
|
|
260
|
+
local_var_path = '/accounts/{account_id}/oauth/clients/{client_id}/redirect-uris'.sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'client_id' + '}', client_id.to_s)
|
|
261
|
+
|
|
262
|
+
# query parameters
|
|
263
|
+
query_params = {}
|
|
264
|
+
query_params[:'filters[id]'] = @api_client.build_collection_param(opts[:'filters_id'], :multi) if !opts[:'filters_id'].nil?
|
|
265
|
+
query_params[:'sort[id]'] = opts[:'sort_id'] if !opts[:'sort_id'].nil?
|
|
266
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
267
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
268
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
269
|
+
|
|
270
|
+
# header parameters
|
|
271
|
+
header_params = {}
|
|
272
|
+
# HTTP header 'Accept' (if needed)
|
|
273
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
274
|
+
# HTTP header 'Content-Type'
|
|
275
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
276
|
+
|
|
277
|
+
# form parameters
|
|
278
|
+
form_params = {}
|
|
279
|
+
|
|
280
|
+
# http body (model)
|
|
281
|
+
post_body = nil
|
|
282
|
+
auth_names = ['apiKey']
|
|
283
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
284
|
+
:header_params => header_params,
|
|
285
|
+
:query_params => query_params,
|
|
286
|
+
:form_params => form_params,
|
|
287
|
+
:body => post_body,
|
|
288
|
+
:auth_names => auth_names,
|
|
289
|
+
:return_type => 'ListOauthClientsRedirectUris')
|
|
290
|
+
if @api_client.config.debugging
|
|
291
|
+
@api_client.config.logger.debug "API called: OauthClientsRedirectUrisApi#list_account_oauth_clients_redirect_uris\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
292
|
+
end
|
|
293
|
+
return data, status_code, headers
|
|
294
|
+
end
|
|
295
|
+
end
|
|
296
|
+
end
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Phone.com API
|
|
3
|
+
|
|
4
|
+
#This is a Phone.com api PhoneCom definition
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0.0
|
|
7
|
+
Contact: apisupport@phone.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
PhoneCom Codegen version: 2.4.4
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'uri'
|
|
14
|
+
|
|
15
|
+
module PhoneComClient
|
|
16
|
+
class PaymentMethodsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create an individual payment method.
|
|
23
|
+
# Create an individual payment method. See Account Payment Methods for more info on the properties.
|
|
24
|
+
# @param account_id Account ID
|
|
25
|
+
# @param data Payment data
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [PaymentFull]
|
|
28
|
+
def create_account_payment_method(account_id, data, opts = {})
|
|
29
|
+
data, _status_code, _headers = create_account_payment_method_with_http_info(account_id, data, opts)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Create an individual payment method.
|
|
34
|
+
# Create an individual payment method. See Account Payment Methods for more info on the properties.
|
|
35
|
+
# @param account_id Account ID
|
|
36
|
+
# @param data Payment data
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [Array<(PaymentFull, Fixnum, Hash)>] PaymentFull data, response status code and response headers
|
|
39
|
+
def create_account_payment_method_with_http_info(account_id, data, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: PaymentMethodsApi.create_account_payment_method ...'
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'account_id' is set
|
|
44
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling PaymentMethodsApi.create_account_payment_method"
|
|
46
|
+
end
|
|
47
|
+
# verify the required parameter 'data' is set
|
|
48
|
+
if @api_client.config.client_side_validation && data.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling PaymentMethodsApi.create_account_payment_method"
|
|
50
|
+
end
|
|
51
|
+
# resource path
|
|
52
|
+
local_var_path = '/accounts/{account_id}/payment-methods'.sub('{' + 'account_id' + '}', account_id.to_s)
|
|
53
|
+
|
|
54
|
+
# query parameters
|
|
55
|
+
query_params = {}
|
|
56
|
+
|
|
57
|
+
# header parameters
|
|
58
|
+
header_params = {}
|
|
59
|
+
# HTTP header 'Accept' (if needed)
|
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
61
|
+
# HTTP header 'Content-Type'
|
|
62
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
63
|
+
|
|
64
|
+
# form parameters
|
|
65
|
+
form_params = {}
|
|
66
|
+
|
|
67
|
+
# http body (model)
|
|
68
|
+
post_body = @api_client.object_to_http_body(data)
|
|
69
|
+
auth_names = ['apiKey']
|
|
70
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
71
|
+
:header_params => header_params,
|
|
72
|
+
:query_params => query_params,
|
|
73
|
+
:form_params => form_params,
|
|
74
|
+
:body => post_body,
|
|
75
|
+
:auth_names => auth_names,
|
|
76
|
+
:return_type => 'PaymentFull')
|
|
77
|
+
if @api_client.config.debugging
|
|
78
|
+
@api_client.config.logger.debug "API called: PaymentMethodsApi#create_account_payment_method\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
79
|
+
end
|
|
80
|
+
return data, status_code, headers
|
|
81
|
+
end
|
|
82
|
+
# Delete an individual payment method.
|
|
83
|
+
# Delete an individual payment method. See Account Payment Methods for more info on the properties.
|
|
84
|
+
# @param account_id Account ID
|
|
85
|
+
# @param pm_id Payment Method ID
|
|
86
|
+
# @param [Hash] opts the optional parameters
|
|
87
|
+
# @return [DeleteEntry]
|
|
88
|
+
def delete_account_payment_method(account_id, pm_id, opts = {})
|
|
89
|
+
data, _status_code, _headers = delete_account_payment_method_with_http_info(account_id, pm_id, opts)
|
|
90
|
+
data
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Delete an individual payment method.
|
|
94
|
+
# Delete an individual payment method. See Account Payment Methods for more info on the properties.
|
|
95
|
+
# @param account_id Account ID
|
|
96
|
+
# @param pm_id Payment Method ID
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @return [Array<(DeleteEntry, Fixnum, Hash)>] DeleteEntry data, response status code and response headers
|
|
99
|
+
def delete_account_payment_method_with_http_info(account_id, pm_id, opts = {})
|
|
100
|
+
if @api_client.config.debugging
|
|
101
|
+
@api_client.config.logger.debug 'Calling API: PaymentMethodsApi.delete_account_payment_method ...'
|
|
102
|
+
end
|
|
103
|
+
# verify the required parameter 'account_id' is set
|
|
104
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
|
105
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling PaymentMethodsApi.delete_account_payment_method"
|
|
106
|
+
end
|
|
107
|
+
# verify the required parameter 'pm_id' is set
|
|
108
|
+
if @api_client.config.client_side_validation && pm_id.nil?
|
|
109
|
+
fail ArgumentError, "Missing the required parameter 'pm_id' when calling PaymentMethodsApi.delete_account_payment_method"
|
|
110
|
+
end
|
|
111
|
+
# resource path
|
|
112
|
+
local_var_path = '/accounts/{account_id}/payment-methods/{pm_id}'.sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'pm_id' + '}', pm_id.to_s)
|
|
113
|
+
|
|
114
|
+
# query parameters
|
|
115
|
+
query_params = {}
|
|
116
|
+
|
|
117
|
+
# header parameters
|
|
118
|
+
header_params = {}
|
|
119
|
+
# HTTP header 'Accept' (if needed)
|
|
120
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
121
|
+
# HTTP header 'Content-Type'
|
|
122
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
123
|
+
|
|
124
|
+
# form parameters
|
|
125
|
+
form_params = {}
|
|
126
|
+
|
|
127
|
+
# http body (model)
|
|
128
|
+
post_body = nil
|
|
129
|
+
auth_names = ['apiKey']
|
|
130
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
131
|
+
:header_params => header_params,
|
|
132
|
+
:query_params => query_params,
|
|
133
|
+
:form_params => form_params,
|
|
134
|
+
:body => post_body,
|
|
135
|
+
:auth_names => auth_names,
|
|
136
|
+
:return_type => 'DeleteEntry')
|
|
137
|
+
if @api_client.config.debugging
|
|
138
|
+
@api_client.config.logger.debug "API called: PaymentMethodsApi#delete_account_payment_method\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
139
|
+
end
|
|
140
|
+
return data, status_code, headers
|
|
141
|
+
end
|
|
142
|
+
# Show details of an individual payment method.
|
|
143
|
+
# Show details of an individual payment method. See Account Payment Methods for more info on the properties.
|
|
144
|
+
# @param account_id Account ID
|
|
145
|
+
# @param pm_id Payment Method ID
|
|
146
|
+
# @param [Hash] opts the optional parameters
|
|
147
|
+
# @return [PaymentFull]
|
|
148
|
+
def get_account_payment_method(account_id, pm_id, opts = {})
|
|
149
|
+
data, _status_code, _headers = get_account_payment_method_with_http_info(account_id, pm_id, opts)
|
|
150
|
+
data
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Show details of an individual payment method.
|
|
154
|
+
# Show details of an individual payment method. See Account Payment Methods for more info on the properties.
|
|
155
|
+
# @param account_id Account ID
|
|
156
|
+
# @param pm_id Payment Method ID
|
|
157
|
+
# @param [Hash] opts the optional parameters
|
|
158
|
+
# @return [Array<(PaymentFull, Fixnum, Hash)>] PaymentFull data, response status code and response headers
|
|
159
|
+
def get_account_payment_method_with_http_info(account_id, pm_id, opts = {})
|
|
160
|
+
if @api_client.config.debugging
|
|
161
|
+
@api_client.config.logger.debug 'Calling API: PaymentMethodsApi.get_account_payment_method ...'
|
|
162
|
+
end
|
|
163
|
+
# verify the required parameter 'account_id' is set
|
|
164
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
|
165
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling PaymentMethodsApi.get_account_payment_method"
|
|
166
|
+
end
|
|
167
|
+
# verify the required parameter 'pm_id' is set
|
|
168
|
+
if @api_client.config.client_side_validation && pm_id.nil?
|
|
169
|
+
fail ArgumentError, "Missing the required parameter 'pm_id' when calling PaymentMethodsApi.get_account_payment_method"
|
|
170
|
+
end
|
|
171
|
+
# resource path
|
|
172
|
+
local_var_path = '/accounts/{account_id}/payment-methods/{pm_id}'.sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'pm_id' + '}', pm_id.to_s)
|
|
173
|
+
|
|
174
|
+
# query parameters
|
|
175
|
+
query_params = {}
|
|
176
|
+
|
|
177
|
+
# header parameters
|
|
178
|
+
header_params = {}
|
|
179
|
+
# HTTP header 'Accept' (if needed)
|
|
180
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
181
|
+
# HTTP header 'Content-Type'
|
|
182
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
183
|
+
|
|
184
|
+
# form parameters
|
|
185
|
+
form_params = {}
|
|
186
|
+
|
|
187
|
+
# http body (model)
|
|
188
|
+
post_body = nil
|
|
189
|
+
auth_names = ['apiKey']
|
|
190
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
191
|
+
:header_params => header_params,
|
|
192
|
+
:query_params => query_params,
|
|
193
|
+
:form_params => form_params,
|
|
194
|
+
:body => post_body,
|
|
195
|
+
:auth_names => auth_names,
|
|
196
|
+
:return_type => 'PaymentFull')
|
|
197
|
+
if @api_client.config.debugging
|
|
198
|
+
@api_client.config.logger.debug "API called: PaymentMethodsApi#get_account_payment_method\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
199
|
+
end
|
|
200
|
+
return data, status_code, headers
|
|
201
|
+
end
|
|
202
|
+
# Get a list of payment methods for an account.
|
|
203
|
+
# Get a list of payment methods for an account. See Account Payment Methods for more info on the properties.
|
|
204
|
+
# @param account_id Account ID
|
|
205
|
+
# @param [Hash] opts the optional parameters
|
|
206
|
+
# @option opts [Array<String>] :filters_id ID filter
|
|
207
|
+
# @option opts [String] :sort_id ID sorting
|
|
208
|
+
# @option opts [Integer] :limit Max results
|
|
209
|
+
# @option opts [Integer] :offset Results to skip
|
|
210
|
+
# @option opts [String] :fields Field set
|
|
211
|
+
# @return [ListPaymentMethods]
|
|
212
|
+
def list_account_payment_methods(account_id, opts = {})
|
|
213
|
+
data, _status_code, _headers = list_account_payment_methods_with_http_info(account_id, opts)
|
|
214
|
+
data
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Get a list of payment methods for an account.
|
|
218
|
+
# Get a list of payment methods for an account. See Account Payment Methods for more info on the properties.
|
|
219
|
+
# @param account_id Account ID
|
|
220
|
+
# @param [Hash] opts the optional parameters
|
|
221
|
+
# @option opts [Array<String>] :filters_id ID filter
|
|
222
|
+
# @option opts [String] :sort_id ID sorting
|
|
223
|
+
# @option opts [Integer] :limit Max results
|
|
224
|
+
# @option opts [Integer] :offset Results to skip
|
|
225
|
+
# @option opts [String] :fields Field set
|
|
226
|
+
# @return [Array<(ListPaymentMethods, Fixnum, Hash)>] ListPaymentMethods data, response status code and response headers
|
|
227
|
+
def list_account_payment_methods_with_http_info(account_id, opts = {})
|
|
228
|
+
if @api_client.config.debugging
|
|
229
|
+
@api_client.config.logger.debug 'Calling API: PaymentMethodsApi.list_account_payment_methods ...'
|
|
230
|
+
end
|
|
231
|
+
# verify the required parameter 'account_id' is set
|
|
232
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
|
233
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling PaymentMethodsApi.list_account_payment_methods"
|
|
234
|
+
end
|
|
235
|
+
if @api_client.config.client_side_validation && !opts[:'sort_id'].nil? && opts[:'sort_id'] !~ Regexp.new(/asc|desc/)
|
|
236
|
+
fail ArgumentError, "invalid value for 'opts[:\"sort_id\"]' when calling PaymentMethodsApi.list_account_payment_methods, must conform to the pattern /asc|desc/."
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# resource path
|
|
240
|
+
local_var_path = '/accounts/{account_id}/payment-methods'.sub('{' + 'account_id' + '}', account_id.to_s)
|
|
241
|
+
|
|
242
|
+
# query parameters
|
|
243
|
+
query_params = {}
|
|
244
|
+
query_params[:'filters[id]'] = @api_client.build_collection_param(opts[:'filters_id'], :multi) if !opts[:'filters_id'].nil?
|
|
245
|
+
query_params[:'sort[id]'] = opts[:'sort_id'] if !opts[:'sort_id'].nil?
|
|
246
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
247
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
248
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
249
|
+
|
|
250
|
+
# header parameters
|
|
251
|
+
header_params = {}
|
|
252
|
+
# HTTP header 'Accept' (if needed)
|
|
253
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
254
|
+
# HTTP header 'Content-Type'
|
|
255
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
256
|
+
|
|
257
|
+
# form parameters
|
|
258
|
+
form_params = {}
|
|
259
|
+
|
|
260
|
+
# http body (model)
|
|
261
|
+
post_body = nil
|
|
262
|
+
auth_names = ['apiKey']
|
|
263
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
264
|
+
:header_params => header_params,
|
|
265
|
+
:query_params => query_params,
|
|
266
|
+
:form_params => form_params,
|
|
267
|
+
:body => post_body,
|
|
268
|
+
:auth_names => auth_names,
|
|
269
|
+
:return_type => 'ListPaymentMethods')
|
|
270
|
+
if @api_client.config.debugging
|
|
271
|
+
@api_client.config.logger.debug "API called: PaymentMethodsApi#list_account_payment_methods\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
272
|
+
end
|
|
273
|
+
return data, status_code, headers
|
|
274
|
+
end
|
|
275
|
+
# Replace the status of an individual payment method.
|
|
276
|
+
# Replace the status of an individual payment method. See Account Payment Methods for more info on the properties.
|
|
277
|
+
# @param account_id Account ID
|
|
278
|
+
# @param pm_id Payment Method ID
|
|
279
|
+
# @param [Hash] opts the optional parameters
|
|
280
|
+
# @option opts [PatchPaymentParams] :data Payment data
|
|
281
|
+
# @return [PaymentFull]
|
|
282
|
+
def patch_account_payment_method(account_id, pm_id, opts = {})
|
|
283
|
+
data, _status_code, _headers = patch_account_payment_method_with_http_info(account_id, pm_id, opts)
|
|
284
|
+
data
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
# Replace the status of an individual payment method.
|
|
288
|
+
# Replace the status of an individual payment method. See Account Payment Methods for more info on the properties.
|
|
289
|
+
# @param account_id Account ID
|
|
290
|
+
# @param pm_id Payment Method ID
|
|
291
|
+
# @param [Hash] opts the optional parameters
|
|
292
|
+
# @option opts [PatchPaymentParams] :data Payment data
|
|
293
|
+
# @return [Array<(PaymentFull, Fixnum, Hash)>] PaymentFull data, response status code and response headers
|
|
294
|
+
def patch_account_payment_method_with_http_info(account_id, pm_id, opts = {})
|
|
295
|
+
if @api_client.config.debugging
|
|
296
|
+
@api_client.config.logger.debug 'Calling API: PaymentMethodsApi.patch_account_payment_method ...'
|
|
297
|
+
end
|
|
298
|
+
# verify the required parameter 'account_id' is set
|
|
299
|
+
if @api_client.config.client_side_validation && account_id.nil?
|
|
300
|
+
fail ArgumentError, "Missing the required parameter 'account_id' when calling PaymentMethodsApi.patch_account_payment_method"
|
|
301
|
+
end
|
|
302
|
+
# verify the required parameter 'pm_id' is set
|
|
303
|
+
if @api_client.config.client_side_validation && pm_id.nil?
|
|
304
|
+
fail ArgumentError, "Missing the required parameter 'pm_id' when calling PaymentMethodsApi.patch_account_payment_method"
|
|
305
|
+
end
|
|
306
|
+
# resource path
|
|
307
|
+
local_var_path = '/accounts/{account_id}/payment-methods/{pm_id}'.sub('{' + 'account_id' + '}', account_id.to_s).sub('{' + 'pm_id' + '}', pm_id.to_s)
|
|
308
|
+
|
|
309
|
+
# query parameters
|
|
310
|
+
query_params = {}
|
|
311
|
+
|
|
312
|
+
# header parameters
|
|
313
|
+
header_params = {}
|
|
314
|
+
# HTTP header 'Accept' (if needed)
|
|
315
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
316
|
+
# HTTP header 'Content-Type'
|
|
317
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
318
|
+
|
|
319
|
+
# form parameters
|
|
320
|
+
form_params = {}
|
|
321
|
+
|
|
322
|
+
# http body (model)
|
|
323
|
+
post_body = @api_client.object_to_http_body(opts[:'data'])
|
|
324
|
+
auth_names = ['apiKey']
|
|
325
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
|
326
|
+
:header_params => header_params,
|
|
327
|
+
:query_params => query_params,
|
|
328
|
+
:form_params => form_params,
|
|
329
|
+
:body => post_body,
|
|
330
|
+
:auth_names => auth_names,
|
|
331
|
+
:return_type => 'PaymentFull')
|
|
332
|
+
if @api_client.config.debugging
|
|
333
|
+
@api_client.config.logger.debug "API called: PaymentMethodsApi#patch_account_payment_method\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
334
|
+
end
|
|
335
|
+
return data, status_code, headers
|
|
336
|
+
end
|
|
337
|
+
end
|
|
338
|
+
end
|