Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

digital_femsa

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

digital_femsa

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

digital_femsa

DigitalFemsa - the Ruby gem for the Femsa API

Femsa sdk

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 2.1.0
  • Package version: 1.0.0
  • Build date: 2024-05-17T18:56:22.613554008Z[Etc/UTC]
  • Generator version: 7.5.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit https://github.com/digitalfemsa/openapi/issues

Installation

Build a gem

To build the Ruby code into a gem:

gem build digital_femsa.gemspec

Then either install the gem locally:

gem install ./digital_femsa-1.0.0.gem

(for development, run gem install --dev ./digital_femsa-1.0.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'digital_femsa', '~> 1.0.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/digitalfemsa/digitalfemsa-ruby, then add the following in the Gemfile:

gem 'digital_femsa', :git => 'https://github.com/digitalfemsa/digitalfemsa-ruby.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'digital_femsa'

# Setup authorization
DigitalFemsa.configure do |config|
  # Configure Bearer authorization: bearerAuth
  config.access_token = 'YOUR_BEARER_TOKEN'
  # Configure a proc to get access tokens in lieu of the static access_token configuration
  config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' } 
  # Configure faraday connection
  config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' }
end

api_instance = DigitalFemsa::ApiKeysApi.new
api_key_request = DigitalFemsa::ApiKeyRequest.new({role: 'private'}) # ApiKeyRequest | requested field for a api keys
opts = {
  accept_language: 'es', # String | Use for knowing which language to use
  x_child_company_id: '6441b6376b60c3a638da80af' # String | In the case of a holding company, the company id of the child company to which will process the request.
}

begin
  #Create Api Key
  result = api_instance.create_api_key(api_key_request, opts)
  p result
rescue DigitalFemsa::ApiError => e
  puts "Exception when calling ApiKeysApi->create_api_key: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://api.digitalfemsa.io

ClassMethodHTTP requestDescription
DigitalFemsa::ApiKeysApicreate_api_keyPOST /api_keysCreate Api Key
DigitalFemsa::ApiKeysApidelete_api_keyDELETE /api_keys/{id}Delete Api Key
DigitalFemsa::ApiKeysApiget_api_keyGET /api_keys/{id}Get Api Key
DigitalFemsa::ApiKeysApiget_api_keysGET /api_keysGet list of Api Keys
DigitalFemsa::ApiKeysApiupdate_api_keyPUT /api_keys/{id}Update Api Key
DigitalFemsa::BalancesApiget_balanceGET /balanceGet a company's balance
DigitalFemsa::ChargesApiget_chargesGET /chargesGet A List of Charges
DigitalFemsa::ChargesApiorders_create_chargePOST /orders/{id}/chargesCreate charge
DigitalFemsa::ChargesApiupdate_chargePUT /charges/{id}Update a charge
DigitalFemsa::CompaniesApiget_companiesGET /companiesGet List of Companies
DigitalFemsa::CompaniesApiget_companyGET /companies/{id}Get Company
DigitalFemsa::CustomersApicreate_customerPOST /customersCreate customer
DigitalFemsa::CustomersApicreate_customer_fiscal_entitiesPOST /customers/{id}/fiscal_entitiesCreate Fiscal Entity
DigitalFemsa::CustomersApidelete_customer_by_idDELETE /customers/{id}Delete Customer
DigitalFemsa::CustomersApiget_customer_by_idGET /customers/{id}Get Customer
DigitalFemsa::CustomersApiget_customersGET /customersGet a list of customers
DigitalFemsa::CustomersApiupdate_customerPUT /customers/{id}Update customer
DigitalFemsa::CustomersApiupdate_customer_fiscal_entitiesPUT /customers/{id}/fiscal_entities/{fiscal_entities_id}Update Fiscal Entity
DigitalFemsa::DiscountsApiorders_create_discount_linePOST /orders/{id}/discount_linesCreate Discount
DigitalFemsa::DiscountsApiorders_delete_discount_linesDELETE /orders/{id}/discount_lines/{discount_lines_id}Delete Discount
DigitalFemsa::DiscountsApiorders_get_discount_lineGET /orders/{id}/discount_lines/{discount_lines_id}Get Discount
DigitalFemsa::DiscountsApiorders_get_discount_linesGET /orders/{id}/discount_linesGet a List of Discount
DigitalFemsa::DiscountsApiorders_update_discount_linesPUT /orders/{id}/discount_lines/{discount_lines_id}Update Discount
DigitalFemsa::EventsApiget_eventGET /events/{id}Get Event
DigitalFemsa::EventsApiget_eventsGET /eventsGet list of Events
DigitalFemsa::EventsApiresend_eventPOST /events/{event_id}/webhook_logs/{webhook_log_id}/resendResend Event
DigitalFemsa::LogsApiget_log_by_idGET /logs/{id}Get Log
DigitalFemsa::LogsApiget_logsGET /logsGet List Of Logs
DigitalFemsa::OrdersApicancel_orderPOST /orders/{id}/cancelCancel Order
DigitalFemsa::OrdersApicreate_orderPOST /ordersCreate order
DigitalFemsa::OrdersApiget_order_by_idGET /orders/{id}Get Order
DigitalFemsa::OrdersApiget_ordersGET /ordersGet a list of Orders
DigitalFemsa::OrdersApiorder_cancel_refundDELETE /orders/{id}/refunds/{refund_id}Cancel Refund
DigitalFemsa::OrdersApiorder_refundPOST /orders/{id}/refundsRefund Order
DigitalFemsa::OrdersApiorders_create_capturePOST /orders/{id}/captureCapture Order
DigitalFemsa::OrdersApiupdate_orderPUT /orders/{id}Update Order
DigitalFemsa::PaymentLinkApicancel_checkoutPUT /checkouts/{id}/cancelCancel Payment Link
DigitalFemsa::PaymentLinkApicreate_checkoutPOST /checkoutsCreate Unique Payment Link
DigitalFemsa::PaymentLinkApiemail_checkoutPOST /checkouts/{id}/emailSend an email
DigitalFemsa::PaymentLinkApiget_checkoutGET /checkouts/{id}Get a payment link by ID
DigitalFemsa::PaymentLinkApiget_checkoutsGET /checkoutsGet a list of payment links
DigitalFemsa::PaymentLinkApisms_checkoutPOST /checkouts/{id}/smsSend an sms
DigitalFemsa::PaymentMethodsApicreate_customer_payment_methodsPOST /customers/{id}/payment_sourcesCreate Payment Method
DigitalFemsa::PaymentMethodsApidelete_customer_payment_methodsDELETE /customers/{id}/payment_sources/{payment_method_id}Delete Payment Method
DigitalFemsa::PaymentMethodsApiget_customer_payment_methodsGET /customers/{id}/payment_sourcesGet Payment Methods
DigitalFemsa::PaymentMethodsApiupdate_customer_payment_methodsPUT /customers/{id}/payment_sources/{payment_method_id}Update Payment Method
DigitalFemsa::ProductsApiorders_create_productPOST /orders/{id}/line_itemsCreate Product
DigitalFemsa::ProductsApiorders_delete_productDELETE /orders/{id}/line_items/{line_item_id}Delete Product
DigitalFemsa::ProductsApiorders_update_productPUT /orders/{id}/line_items/{line_item_id}Update Product
DigitalFemsa::ShippingContactsApicreate_customer_shipping_contactsPOST /customers/{id}/shipping_contactsCreate a shipping contacts
DigitalFemsa::ShippingContactsApidelete_customer_shipping_contactsDELETE /customers/{id}/shipping_contacts/{shipping_contacts_id}Delete shipping contacts
DigitalFemsa::ShippingContactsApiupdate_customer_shipping_contactsPUT /customers/{id}/shipping_contacts/{shipping_contacts_id}Update shipping contacts
DigitalFemsa::ShippingsApiorders_create_shippingPOST /orders/{id}/shipping_linesCreate Shipping
DigitalFemsa::ShippingsApiorders_delete_shippingDELETE /orders/{id}/shipping_lines/{shipping_id}Delete Shipping
DigitalFemsa::ShippingsApiorders_update_shippingPUT /orders/{id}/shipping_lines/{shipping_id}Update Shipping
DigitalFemsa::TaxesApiorders_create_taxesPOST /orders/{id}/tax_linesCreate Tax
DigitalFemsa::TaxesApiorders_delete_taxesDELETE /orders/{id}/tax_lines/{tax_id}Delete Tax
DigitalFemsa::TaxesApiorders_update_taxesPUT /orders/{id}/tax_lines/{tax_id}Update Tax
DigitalFemsa::TransactionsApiget_transactionGET /transactions/{id}Get transaction
DigitalFemsa::TransactionsApiget_transactionsGET /transactionsGet List transactions
DigitalFemsa::TransfersApiget_transferGET /transfers/{id}Get Transfer
DigitalFemsa::TransfersApiget_transfersGET /transfersGet a list of transfers
DigitalFemsa::WebhookKeysApicreate_webhook_keyPOST /webhook_keysCreate Webhook Key
DigitalFemsa::WebhookKeysApidelete_webhook_keyDELETE /webhook_keys/{id}Delete Webhook key
DigitalFemsa::WebhookKeysApiget_webhook_keyGET /webhook_keys/{id}Get Webhook Key
DigitalFemsa::WebhookKeysApiget_webhook_keysGET /webhook_keysGet List of Webhook Keys
DigitalFemsa::WebhookKeysApiupdate_webhook_keyPUT /webhook_keys/{id}Update Webhook Key
DigitalFemsa::WebhooksApicreate_webhookPOST /webhooksCreate Webhook
DigitalFemsa::WebhooksApidelete_webhookDELETE /webhooks/{id}Delete Webhook
DigitalFemsa::WebhooksApiget_webhookGET /webhooks/{id}Get Webhook
DigitalFemsa::WebhooksApiget_webhooksGET /webhooksGet List of Webhooks
DigitalFemsa::WebhooksApitest_webhookPOST /webhooks/{id}/testTest Webhook
DigitalFemsa::WebhooksApiupdate_webhookPUT /webhooks/{id}Update Webhook

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication

FAQs

Package last updated on 13 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc