├── .formatter.exs ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .tool-versions ├── CHANGELOG.md ├── LICENSE ├── README.md ├── config └── config.exs ├── lib └── lemon_ex │ ├── checkouts │ ├── checkout.ex │ ├── checkout_data.ex │ ├── checkout_options.ex │ ├── checkouts.ex │ ├── preview.ex │ └── product_options.ex │ ├── customers │ ├── customer.ex │ └── customers.ex │ ├── discount_redemptions │ ├── discount_redemption.ex │ └── discount_redemptions.ex │ ├── discounts │ ├── discount.ex │ └── discounts.ex │ ├── files │ ├── file.ex │ └── files.ex │ ├── license_keys │ ├── license_key.ex │ └── license_keys.ex │ ├── order_items │ ├── order_item.ex │ └── order_items.ex │ ├── orders │ ├── order.ex │ └── orders.ex │ ├── products │ ├── product.ex │ └── products.ex │ ├── request.ex │ ├── responses │ └── paginated_response.ex │ ├── stores │ ├── store.ex │ └── stores.ex │ ├── subscription_invoices │ ├── subscription_invoice.ex │ └── subscription_invoices.ex │ ├── subscriptions │ ├── subscription.ex │ └── subscriptions.ex │ ├── usage_records │ ├── usage_record.ex │ └── usage_records.ex │ ├── users │ ├── user.ex │ └── users.ex │ ├── variants │ ├── variant.ex │ └── variants.ex │ └── webhooks │ ├── event.ex │ ├── event_parser.ex │ ├── handler.ex │ ├── plug.ex │ └── webhooks.ex ├── mix.exs ├── mix.lock ├── test ├── lemon_ex │ ├── customers │ │ └── customers_test.exs │ ├── subscriptions │ │ └── subscriptions_test.exs │ └── webhooks │ │ ├── event_parser_test.exs │ │ └── plug_test.exs ├── support │ ├── conn_case.ex │ └── fixtures │ │ ├── api │ │ └── v1 │ │ │ ├── customers_get.json │ │ │ ├── customers_list.json │ │ │ ├── subscriptions_get.json │ │ │ └── subscriptions_list.json │ │ ├── fixtures.ex │ │ ├── order_created_event.json │ │ └── subscription_created_event.json └── test_helper.exs └── testing.livemd /.formatter.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/.formatter.exs -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/.gitignore -------------------------------------------------------------------------------- /.tool-versions: -------------------------------------------------------------------------------- 1 | elixir 1.17.1-otp-27 2 | erlang 27.0 3 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/README.md -------------------------------------------------------------------------------- /config/config.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/config/config.exs -------------------------------------------------------------------------------- /lib/lemon_ex/checkouts/checkout.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/checkouts/checkout.ex -------------------------------------------------------------------------------- /lib/lemon_ex/checkouts/checkout_data.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/checkouts/checkout_data.ex -------------------------------------------------------------------------------- /lib/lemon_ex/checkouts/checkout_options.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/checkouts/checkout_options.ex -------------------------------------------------------------------------------- /lib/lemon_ex/checkouts/checkouts.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/checkouts/checkouts.ex -------------------------------------------------------------------------------- /lib/lemon_ex/checkouts/preview.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/checkouts/preview.ex -------------------------------------------------------------------------------- /lib/lemon_ex/checkouts/product_options.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/checkouts/product_options.ex -------------------------------------------------------------------------------- /lib/lemon_ex/customers/customer.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/customers/customer.ex -------------------------------------------------------------------------------- /lib/lemon_ex/customers/customers.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/customers/customers.ex -------------------------------------------------------------------------------- /lib/lemon_ex/discount_redemptions/discount_redemption.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/discount_redemptions/discount_redemption.ex -------------------------------------------------------------------------------- /lib/lemon_ex/discount_redemptions/discount_redemptions.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/discount_redemptions/discount_redemptions.ex -------------------------------------------------------------------------------- /lib/lemon_ex/discounts/discount.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/discounts/discount.ex -------------------------------------------------------------------------------- /lib/lemon_ex/discounts/discounts.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/discounts/discounts.ex -------------------------------------------------------------------------------- /lib/lemon_ex/files/file.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/files/file.ex -------------------------------------------------------------------------------- /lib/lemon_ex/files/files.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/files/files.ex -------------------------------------------------------------------------------- /lib/lemon_ex/license_keys/license_key.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/license_keys/license_key.ex -------------------------------------------------------------------------------- /lib/lemon_ex/license_keys/license_keys.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/license_keys/license_keys.ex -------------------------------------------------------------------------------- /lib/lemon_ex/order_items/order_item.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/order_items/order_item.ex -------------------------------------------------------------------------------- /lib/lemon_ex/order_items/order_items.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/order_items/order_items.ex -------------------------------------------------------------------------------- /lib/lemon_ex/orders/order.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/orders/order.ex -------------------------------------------------------------------------------- /lib/lemon_ex/orders/orders.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/orders/orders.ex -------------------------------------------------------------------------------- /lib/lemon_ex/products/product.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/products/product.ex -------------------------------------------------------------------------------- /lib/lemon_ex/products/products.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/products/products.ex -------------------------------------------------------------------------------- /lib/lemon_ex/request.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/request.ex -------------------------------------------------------------------------------- /lib/lemon_ex/responses/paginated_response.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/responses/paginated_response.ex -------------------------------------------------------------------------------- /lib/lemon_ex/stores/store.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/stores/store.ex -------------------------------------------------------------------------------- /lib/lemon_ex/stores/stores.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/stores/stores.ex -------------------------------------------------------------------------------- /lib/lemon_ex/subscription_invoices/subscription_invoice.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/subscription_invoices/subscription_invoice.ex -------------------------------------------------------------------------------- /lib/lemon_ex/subscription_invoices/subscription_invoices.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/subscription_invoices/subscription_invoices.ex -------------------------------------------------------------------------------- /lib/lemon_ex/subscriptions/subscription.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/subscriptions/subscription.ex -------------------------------------------------------------------------------- /lib/lemon_ex/subscriptions/subscriptions.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/subscriptions/subscriptions.ex -------------------------------------------------------------------------------- /lib/lemon_ex/usage_records/usage_record.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/usage_records/usage_record.ex -------------------------------------------------------------------------------- /lib/lemon_ex/usage_records/usage_records.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/usage_records/usage_records.ex -------------------------------------------------------------------------------- /lib/lemon_ex/users/user.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/users/user.ex -------------------------------------------------------------------------------- /lib/lemon_ex/users/users.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/users/users.ex -------------------------------------------------------------------------------- /lib/lemon_ex/variants/variant.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/variants/variant.ex -------------------------------------------------------------------------------- /lib/lemon_ex/variants/variants.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/variants/variants.ex -------------------------------------------------------------------------------- /lib/lemon_ex/webhooks/event.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/webhooks/event.ex -------------------------------------------------------------------------------- /lib/lemon_ex/webhooks/event_parser.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/webhooks/event_parser.ex -------------------------------------------------------------------------------- /lib/lemon_ex/webhooks/handler.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/webhooks/handler.ex -------------------------------------------------------------------------------- /lib/lemon_ex/webhooks/plug.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/webhooks/plug.ex -------------------------------------------------------------------------------- /lib/lemon_ex/webhooks/webhooks.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/lib/lemon_ex/webhooks/webhooks.ex -------------------------------------------------------------------------------- /mix.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/mix.exs -------------------------------------------------------------------------------- /mix.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/mix.lock -------------------------------------------------------------------------------- /test/lemon_ex/customers/customers_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/test/lemon_ex/customers/customers_test.exs -------------------------------------------------------------------------------- /test/lemon_ex/subscriptions/subscriptions_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/test/lemon_ex/subscriptions/subscriptions_test.exs -------------------------------------------------------------------------------- /test/lemon_ex/webhooks/event_parser_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/test/lemon_ex/webhooks/event_parser_test.exs -------------------------------------------------------------------------------- /test/lemon_ex/webhooks/plug_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/test/lemon_ex/webhooks/plug_test.exs -------------------------------------------------------------------------------- /test/support/conn_case.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/test/support/conn_case.ex -------------------------------------------------------------------------------- /test/support/fixtures/api/v1/customers_get.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/test/support/fixtures/api/v1/customers_get.json -------------------------------------------------------------------------------- /test/support/fixtures/api/v1/customers_list.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/test/support/fixtures/api/v1/customers_list.json -------------------------------------------------------------------------------- /test/support/fixtures/api/v1/subscriptions_get.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/test/support/fixtures/api/v1/subscriptions_get.json -------------------------------------------------------------------------------- /test/support/fixtures/api/v1/subscriptions_list.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/test/support/fixtures/api/v1/subscriptions_list.json -------------------------------------------------------------------------------- /test/support/fixtures/fixtures.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/test/support/fixtures/fixtures.ex -------------------------------------------------------------------------------- /test/support/fixtures/order_created_event.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/test/support/fixtures/order_created_event.json -------------------------------------------------------------------------------- /test/support/fixtures/subscription_created_event.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/test/support/fixtures/subscription_created_event.json -------------------------------------------------------------------------------- /test/test_helper.exs: -------------------------------------------------------------------------------- 1 | ExUnit.start() 2 | -------------------------------------------------------------------------------- /testing.livemd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PJUllrich/lemon_ex/HEAD/testing.livemd --------------------------------------------------------------------------------