Skip to content

Create Organization #6

@n0um3n4

Description

@n0um3n4

Is your feature request related to a problem? Please describe.
The lib has enough code to start adding more layers of complexity. The ExFacturapi.Organizations.create(map()) is working already:

ExFacturapi.Organizations.create(%{name: "Test"})
{:ok,
 %{
   "certificate" => %{
     "expires_at" => nil,
     "has_certificate" => false,
     "updated_at" => nil
   },
   "created_at" => "2021-08-08T20:50:40.164Z",
   "customization" => %{
     "color" => "75A4FF",
     "has_logo" => true,
     "next_folio_number" => 1,
     "pdf_extra" => %{"codes" => true, "product_key" => true}
   },
   "id" => "611043a0593f73002614630c",
   "is_production_ready" => false,
   "legal" => %{
     "address" => %{
       "city" => "",
       "country" => "MEX",
       "exterior" => "",
       "interior" => "",
       "municipality" => "",
       "neighborhood" => "",
       "neighborhood_code" => "",
       "state" => "",
       "street" => "",
       "zip" => "06010"
     },
     "legal_name" => "Test",
     "name" => "Test",
     "tax_id" => "AAA010101AAA",
     "tax_system" => "601"
   },
   "logo_url" => "https://storage.googleapis.com/cdn.facturapi.io/organization/5b178548b2795450fce1845588731e98349cb103/logo.jpg",
   "pending_steps" => [
     %{"description" => "Introduce tus datos fiscales", "type" => "legal"},
     %{
       "description" => "Sube tu Certificado de Sello Digital (CSD)",
       "type" => "certificate"
     }
   ],
   "receipts" => %{
     "ask_address" => "optional",
     "duration_days" => 0,
     "invoicing_period" => "month",
     "next_folio_number" => 1
   }
 }}

Describe the solution you'd like
We need to

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:choreInternal Improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions