beyond_api 0.8.1.pre → 0.9.0.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cafbee9a1f17b5eaf7a78134ec10df1c4ff63a4cef567ecdc1f235d8aa3ebd17
4
- data.tar.gz: 16f1c1588bc245b4696eca49230d5be56b6e4354e35811aa5fa4ba4e370c01b5
3
+ metadata.gz: 8eb69d55a6ff81113a94022f031b7c09c6dd0e51a4337d48dc698d5aa6a79153
4
+ data.tar.gz: 3b782cea11e4d0533827192fc8141519b487d034bf194657f05e01c04895458c
5
5
  SHA512:
6
- metadata.gz: be41a3f5211e81d24bcb40f356a1f7dde53ef2ae2ada80c23236aa2ac63c723486499394377bf4f6071a198405858b876932cf91c823a19b3aef8a42347c2358
7
- data.tar.gz: 0d01edc9aee0110011f571139a6fdb2429b45e13f2e7c2ba050245673caf92f11db3ae220991e791c15bc704a3a2dc370bf6969054bc4d928ec32661abad035e
6
+ metadata.gz: 705ebbe6fb68e9a8e4b456978d9d05af02ed03cf96c5002ad384037cda169a9074a99aa71e57e3e83a9e9651aa2662d21eeb7b2a11ac4c60e53a97fe7d35b59e
7
+ data.tar.gz: fbba10e64cdb172ee326d1092841c2212683377a3f8325b3bcce1340cf76e149edb8ab2dfe0f9a3e5ea158b3dedc64915c19cf6ff8fe71293bdc3e89321fc19c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### v0.9.0.pre
2
+
3
+ * bug-fixes
4
+ * Fix typo
5
+
6
+ * features
7
+ * Add optional `paginated: false` parameter to `session.products.all(paginated: false)`
8
+
1
9
  ### v0.8.1.pre
2
10
 
3
11
  * bug-fixes
data/GETTING_STARTED.md CHANGED
@@ -1,20 +1,5 @@
1
1
  # Getting started
2
2
 
3
- ## Get your credentials
4
-
5
- ### Sign up for a developer test shop
6
-
7
- First you will need to sign up for a Beyond test shop.
8
- Visit [our sign up form](https://signup.beyondshop.cloud), fill out the form with your data, and click the **Sign up** button.
9
-
10
- ### Create a custom app
11
-
12
- Log in to the cockpit of your test shop, navigate to **Apps > Custom apps** and click **Add custom app**.
13
- Fill out the form with the **App name**, **Application Callback URL** and **App scopes**.
14
- Save your app.
15
-
16
- You will then receive your `client_id` and `client_secret`.
17
-
18
3
  ## Authenticating a shop (the session object)
19
4
 
20
5
  ### Obtaining a token from an authentication code
@@ -42,192 +27,194 @@ Check the [_rubydoc_ documentation](https://rubydoc.info/github/ePages-de/beyond
42
27
  Here you can find a list with all available methods:
43
28
 
44
29
  * Carts
45
- * `session.carts.add_line_item(cart_id, body)`
46
- * `session.carts.create(body)`
47
- * `session.carts.create_order(cart_id, body)`
48
- * `session.carts.create_payment(cart_id, body)`
49
- * `session.carts.create_payment_and_order(cart_id, body)`
50
- * `session.carts.delete(cart_id)`
51
- * `session.carts.delete_line_item(cart_id, line_item_id)`
52
- * `session.carts.delete_shipping_address(cart_id)`
53
- * `session.carts.find(cart_id)`
54
- * `session.carts.payment_method(cart_id)`
55
- * `session.carts.payment_methods(cart_id)`
56
- * `session.carts.replace_line_item(cart_id, line_item_id, body)`
57
- * `session.carts.replace_line_items(cart_id, body)`
58
- * `session.carts.set_billing_address(cart_id, body)`
59
- * `session.carts.set_payment_method(cart_id, payment_method_id)`
60
- * `session.carts.set_payment_method_to_default(cart_id)`
61
- * `session.carts.set_shipping_address(cart_id, body)`
62
- * `session.carts.set_shipping_method(cart_id, shipping_zone_id, shipping_method_id)`
63
- * `session.carts.set_shipping_method_to_default(cart_id)`
64
- * `session.carts.shipping_method(cart_id)`
65
- * `session.carts.shipping_methods(cart_id)`
66
- * Categories View
67
- * `session.categories_view.all(params = {})`
68
- * `session.categories_view.find(category_id)`
69
- * `session.categories_view.products(category_id, params = {})`
70
- * `session.categories_view.search_by_label(label)`
71
- * `session.categories_view.search_by_product(body, params = {})`
72
- * `session.categories_view.search_by_product_id(product_id, params = {})`
30
+ * [`session.carts.add_line_item(cart_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#add_line_item-instance_method)
31
+ * [`session.carts.create`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#create-instance_method)
32
+ * [`session.carts.create_order(cart_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#create_order-instance_method)
33
+ * [`session.carts.create_payment(cart_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#create_payment-instance_method)
34
+ * [`session.carts.create_payment_and_order(cart_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#create_payment_and_order-instance_method)
35
+ * [`session.carts.delete(cart_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#delete-instance_method)
36
+ * [`session.carts.delete_line_item(cart_id, line_item_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#delete_line_item-instance_method)
37
+ * [`session.carts.delete_shipping_address(cart_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#delete_shipping_address-instance_method)
38
+ * [`session.carts.find(cart_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#find-instance_method)
39
+ * [`session.carts.payment_method(cart_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#payment_method-instance_method)
40
+ * [`session.carts.payment_methods(cart_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#payment_methods-instance_method)
41
+ * [`session.carts.replace_line_item(cart_id, line_item_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#replace_line_item-instance_method)
42
+ * [`session.carts.replace_line_items(cart_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#replace_line_items-instance_method)
43
+ * [`session.carts.set_billing_address(cart_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#set_billing_address-instance_method)
44
+ * [`session.carts.set_payment_method(cart_id, payment_method_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#set_payment_method-instance_method)
45
+ * [`session.carts.set_payment_method_to_default(cart_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#set_payment_method_to_default-instance_method)
46
+ * [`session.carts.set_shipping_address(cart_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#set_shipping_address-instance_method)
47
+ * [`session.carts.set_shipping_method(cart_id, shipping_zone_id, shipping_method_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#set_shipping_method-instance_method)
48
+ * [`session.carts.set_shipping_method_to_default(cart_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#set_shipping_method_to_default-instance_method)
49
+ * [`session.carts.shipping_method(cart_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#shipping_method-instance_method)
50
+ * [`session.carts.shipping_methods(cart_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Carts#shipping_methods-instance_method)
51
+ * Categories view
52
+ * [`session.categories_view.all(params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/CategoriesView#all-instance_method)
53
+ * [`session.categories_view.find(category_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/CategoriesView#find-instance_method)
54
+ * [`session.categories_view.products(category_id, params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/CategoriesView#products-instance_method)
55
+ * [`session.categories_view.search_by_label(label)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/CategoriesView#search_by_label-instance_method)
56
+ * [`session.categories_view.search_by_product(body, params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/CategoriesView#search_by_product-instance_method)
57
+ * [`session.categories_view.search_by_product_id(product_id, params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/CategoriesView#search_by_product_id-instance_method)
73
58
  * Categories
74
- * `session.categories.all(params = {})`
75
- * `session.categories.create(body)`
76
- * `session.categories.delete(category_id)`
77
- * `session.categories.find(category_id)`
78
- * `session.categories.patch(category_id, body)`
79
- * `session.categories.update(category_id, body)`
80
- * Checkout Settings
81
- * `session.checkout_settings.all`
82
- * `session.checkout_settings.update(body)`
83
- * Newsletter Target
84
- * `session.newsletter_target.create(submit_url)`
85
- * `session.newsletter_target.delete`
86
- * `session.newsletter_target.find`
87
- * `session.newsletter_target.update(submit_url)`
88
- * Order Settings
89
- * `session.order_settings.all(params = {})`
90
- * `session.order_settings.update(order_settings, body)`
59
+ * [`session.categories.all(params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Categories#all-instance_method)
60
+ * [`session.categories.create(body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Categories#create-instance_method)
61
+ * [`session.categories.delete(category_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Categories#delete-instance_method)
62
+ * [`session.categories.find(category_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Categories#find-instance_method)
63
+ * [`session.categories.patch(category_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Categories#patch-instance_method)
64
+ * [`session.categories.update(category_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Categories#update-instance_method)
65
+ * Checkout settings
66
+ * [`session.checkout_settings.all`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/CheckoutSettings#all-instance_method)
67
+ * [`session.checkout_settings.update(body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/CheckoutSettings#update-instance_method)
68
+ * Token
69
+ * [`session.token.client_credentials`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Token#client_credentials-instance_method)
70
+ * [`session.token.create(code)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Token#create-instance_method)
71
+ * [`session.token.refresh`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Token#refresh-instance_method)
72
+ * [`session.token.session`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Token#session-instance_method)
73
+ * Customers
74
+ * [`session.customers.all(params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Customers#all-instance_method)
75
+ * [`session.customers.create(body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Customers#create-instance_method)
76
+ * [`session.customers.delete(customer_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Customers#delete-instance_method)
77
+ * [`session.customers.find(customer_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Customers#find-instance_method)
78
+ * [`session.customers.update(customer_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Customers#update-instance_method)
79
+ * Newsletter target
80
+ * [`session.newsletter_target.create(submit_url)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/NewsletterTarget#create-instance_method)
81
+ * [`session.newsletter_target.delete`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/NewsletterTarget#delete-instance_method)
82
+ * [`session.newsletter_target.find`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/NewsletterTarget#find-instance_method)
83
+ * [`session.newsletter_target.update(submit_url)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/NewsletterTarget#update-instance_method)
84
+ * Order settings
85
+ * [`session.order_settings.all`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/OrderSettings#all-instance_method)
86
+ * [`session.order_settings.update(body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/OrderSettings#update-instance_method)
91
87
  * Orders
92
- * `session.orders.active_payment_process(order_id)`
93
- * `session.orders.active_refund_process(order_id)`
94
- * `session.orders.all(params = {})`
95
- * `session.orders.cancel(order_id, body)`
96
- * `session.orders.cancelation_process(order_id, cancelation_id)`
97
- * `session.orders.cancelation_processes(order_id, params = {})`
98
- * `session.orders.capture_payment_process(order_id, payment_id)`
99
- * `session.orders.create_cancelation_process(order_id, body)`
100
- * `session.orders.create_invoice(order_id, body)`
101
- * `session.orders.create_return_process(order_id, body)`
102
- * `session.orders.create_shipping_process(order_id, body)`
103
- * `session.orders.events(order_id, params = {})`
104
- * `session.orders.find(order_id)`
105
- * `session.orders.mark_payment_process_as_paid(order_id, payment_id, body)`
106
- * `session.orders.mark_payment_process_as_voided(order_id, payment_id, body)`
107
- * `session.orders.mark_refund_process_as_paid(order_id)`
108
- * `session.orders.mark_shipping_process_as_delivered(order_id, shipping_process_id, body)`
109
- * `session.orders.mark_shipping_process_as_shipped(order_id, shipping_id, body)`
110
- * `session.orders.payment_process(order_id, payment_id)`
111
- * `session.orders.payment_processes(order_id, params = {})`
112
- * `session.orders.processes(order_id)`
113
- * `session.orders.refund_process(order_id, refund_id)`
114
- * `session.orders.refund_processes(order_id, params = {})`
115
- * `session.orders.return_process(order_id, return_process_id)`
116
- * `session.orders.return_processes(order_id, params = {})`
117
- * `session.orders.search_by_cart_id(cart_id)`
118
- * `session.orders.search_order_number_by_cart_id(cart_id)`
119
- * `session.orders.send_invoice(order_id)`
120
- * `session.orders.shipping_process(order_id, shipping_process_id)`
121
- * `session.orders.shipping_processes(order_id, params = {})`
122
- * `session.orders.update_billing_address(order_id, body)`
123
- * `session.orders.update_order_note(order_id, body)`
124
- * `session.orders.update_shipping_address(order_id, body)`
125
- * Payment Methods
126
- * `session.payment_methods.activate(payment_method_id)`
127
- * `session.payment_methods.all(params = {})`
128
- * `session.payment_methods.deactivate(payment_method_id)`
129
- * `session.payment_methods.find(payment_method_id)`
130
- * `session.payment_methods.sort(payment_method_ids)`
131
- * `session.payment_methods.update(payment_method_id, body)`
132
- * Product Attribute Definitions
133
- * `session.product_attribute_definitions.all(params = {})`
134
- * `session.product_attribute_definitions.create(product_attribute_name)`
135
- * `session.product_attribute_definitions.delete(product_attribute_name)`
136
- * `session.product_attribute_definitions.find(product_attribute_name)`
137
- * Product Settings
138
- * `session.product_settings.all`
139
- * Products View
140
- * `session.products_view.all(params = {})`
141
- * `session.products_view.available_tags`
142
- * `session.products_view.find(product_id)`
143
- * `session.products_view.search_by_query(query)`
144
- * `session.products_view.search_by_tag(tag, params = {})`
145
- * `session.products_view.search_by_term(term, params = {})`
88
+ * [`session.orders.active_payment_process(order_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#active_payment_process-instance_method)
89
+ * [`session.orders.active_refund_process(order_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#active_refund_process-instance_method)
90
+ * [`session.orders.all(params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#all-instance_method)
91
+ * [`session.orders.cancel(order_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#cancel-instance_method)
92
+ * [`session.orders.cancelation_process(order_id, cancelation_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#cancelation_process-instance_method)
93
+ * [`session.orders.cancelation_processes(order_id, params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#cancelation_processes-instance_method)
94
+ * [`session.orders.capture_payment_process(order_id, payment_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#capture_payment_process-instance_method)
95
+ * [`session.orders.create_cancelation_process(order_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#create_cancelation_process-instance_method)
96
+ * [`session.orders.create_invoice(order_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#create_invoice-instance_method)
97
+ * [`session.orders.create_return_process(order_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#create_return_process-instance_method)
98
+ * [`session.orders.create_shipping_process(order_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#create_shipping_process-instance_method)
99
+ * [`session.orders.events(order_id, params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#events-instance_method)
100
+ * [`session.orders.find(order_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#find-instance_method)
101
+ * [`session.orders.mark_payment_process_as_paid(order_id, payment_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#mark_payment_process_as_paid-instance_method)
102
+ * [`session.orders.mark_payment_process_as_voided(order_id, payment_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#mark_payment_process_as_voided-instance_method)
103
+ * [`session.orders.mark_refund_process_as_paid(order_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#mark_refund_process_as_paid-instance_method)
104
+ * [`session.orders.mark_shipping_process_as_delivered(order_id, shipping_process_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#mark_shipping_process_as_delivered-instance_method)
105
+ * [`session.orders.mark_shipping_process_as_shipped(order_id, shipping_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#mark_shipping_process_as_shipped-instance_method)
106
+ * [`session.orders.payment_process(order_id, payment_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#payment_process-instance_method)
107
+ * [`session.orders.payment_processes(order_id, params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#payment_processes-instance_method)
108
+ * [`session.orders.processes(order_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#processes-instance_method)
109
+ * [`session.orders.refund_process(order_id, refund_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#refund_process-instance_method)
110
+ * [`session.orders.refund_processes(order_id, params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#refund_processes-instance_method)
111
+ * [`session.orders.return_process(order_id, return_process_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#return_process-instance_method)
112
+ * [`session.orders.return_processes(order_id, params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#return_processes-instance_method)
113
+ * [`session.orders.search_by_cart_id(cart_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#search_by_cart_id-instance_method)
114
+ * [`session.orders.search_order_number_by_cart_id(cart_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#search_order_number_by_cart_id-instance_method)
115
+ * [`session.orders.send_order_document(order_id, order_document_uri)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#send_order_document-instance_method)
116
+ * [`session.orders.shipping_process(order_id, shipping_process_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#shipping_process-instance_method)
117
+ * [`session.orders.shipping_processes(order_id, params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#shipping_processes-instance_method)
118
+ * [`session.orders.update_billing_address(order_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#update_billing_address-instance_method)
119
+ * [`session.orders.update_order_note(order_id, order_note)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#update_order_note-instance_method)
120
+ * [`session.orders.update_shipping_address(order_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Orders#update_shipping_address-instance_method)
121
+ * Payment methods
122
+ * [`session.payment_methods.activate(payment_method_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/PaymentMethods#activate-instance_method)
123
+ * [`session.payment_methods.all(params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/PaymentMethods#all-instance_method)
124
+ * [`session.payment_methods.deactivate(payment_method_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/PaymentMethods#deactivate-instance_method)
125
+ * [`session.payment_methods.find(payment_method_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/PaymentMethods#find-instance_method)
126
+ * [`session.payment_methods.sort(payment_method_ids)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/PaymentMethods#sort-instance_method)
127
+ * [`session.payment_methods.update(payment_method_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/PaymentMethods#update-instance_method)
128
+ * Product attribute definitions
129
+ * [`session.product_attribute_definitions.all(params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ProductAttributeDefinitions#all-instance_method)
130
+ * [`session.product_attribute_definitions.create(body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ProductAttributeDefinitions#create-instance_method)
131
+ * [`session.product_attribute_definitions.delete(product_attribute_name)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ProductAttributeDefinitions#delete-instance_method)
132
+ * [`session.product_attribute_definitions.find(product_attribute_name)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ProductAttributeDefinitions#find-instance_method)
133
+ * Products view
134
+ * [`session.products_view.all(params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ProductsView#all-instance_method)
135
+ * [`session.products_view.available_tags`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ProductsView#available_tags-instance_method)
136
+ * [`session.products_view.find(product_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ProductsView#find-instance_method)
137
+ * [`session.products_view.search_by_tag(tag, params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ProductsView#search_by_tag-instance_method)
138
+ * [`session.products_view.search_by_term(term, params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ProductsView#search_by_term-instance_method)
146
139
  * Products
147
- * `session.products.all(params = {})`
148
- * `session.products.create(body)`
149
- * `session.products.create_variation(body)`
150
- * `session.products.delete(product_id)`
151
- * `session.products.find(product_id)`
152
- * `session.products.find_variation(product_id)`
153
- * `session.products.update(product_id, body)`
154
- * `session.products.update_variation(product_id, body)`
155
- * Scopes
156
- * `session.scopes.all(params = {})`
157
- * Script Tags
158
- * `session.script_tags.all(params = {})`
159
- * `session.script_tags.create(script_tag_url)`
160
- * `session.script_tags.delete(script_tag_id)`
161
- * `session.script_tags.find(script_tag_id)`
162
- * `session.script_tags.update(script_tag_id, script_tag_url)`
163
- * Shipping Zones
164
- * `session.shipping_zones.all(params = {})`
165
- * `session.shipping_zones.create(body)`
166
- * `session.shipping_zones.create_shipping_method(shipping_zone_id, body)`
167
- * `session.shipping_zones.delete(shipping_zone_id)`
168
- * `session.shipping_zones.delete_shipping_method(shipping_zone_id, shipping_method_id)`
169
- * `session.shipping_zones.find(shipping_zone_id)`
170
- * `session.shipping_zones.find_serviceable_countries`
171
- * `session.shipping_zones.shipping_method(shipping_zone_id, shipping_method_id)`
172
- * `session.shipping_zones.shipping_methods(shipping_zone_id, params = {})`
173
- * `session.shipping_zones.sort(shipping_zone_ids)`
174
- * `session.shipping_zones.sort_shipping_methods(shipping_zone_id)`
175
- * `session.shipping_zones.update(shipping_zone_id, body)`
140
+ * [`session.products.all(params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Products#all-instance_method)
141
+ * [`session.products.assign_variation_images_differentiator(product_id, differentiator)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Products#assign_variation_images_differentiator-instance_method)
142
+ * [`session.products.create(body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Products#create-instance_method)
143
+ * [`session.products.create_variation(body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Products#create_variation-instance_method)
144
+ * [`session.products.delete(product_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Products#delete-instance_method)
145
+ * [`session.products.find(product_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Products#find-instance_method)
146
+ * [`session.products.find_variation(product_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Products#find_variation-instance_method)
147
+ * [`session.products.update(product_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Products#update-instance_method)
148
+ * [`session.products.update_variation(product_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Products#update_variation-instance_method)
149
+ * Script tags
150
+ * [`session.script_tags.all(params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ScriptTags#all-instance_method)
151
+ * [`session.script_tags.create(script_tag_url)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ScriptTags#create-instance_method)
152
+ * [`session.script_tags.delete(script_tag_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ScriptTags#delete-instance_method)
153
+ * [`session.script_tags.find(script_tag_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ScriptTags#find-instance_method)
154
+ * [`session.script_tags.update(script_tag_id, script_tag_url)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ScriptTags#update-instance_method)
155
+ * Shipping zones
156
+ * [`session.shipping_zones.all(params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ShippingZones#all-instance_method)
157
+ * [`session.shipping_zones.create(body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ShippingZones#create-instance_method)
158
+ * [`session.shipping_zones.create_shipping_method(shipping_zone_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ShippingZones#create_shipping_method-instance_method)
159
+ * [`session.shipping_zones.delete(shipping_zone_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ShippingZones#delete-instance_method)
160
+ * [`session.shipping_zones.delete_shipping_method(shipping_zone_id, shipping_method_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ShippingZones#delete_shipping_method-instance_method)
161
+ * [`session.shipping_zones.find(shipping_zone_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ShippingZones#find-instance_method)
162
+ * [`session.shipping_zones.find_serviceable_countries`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ShippingZones#find_serviceable_countries-instance_method)
163
+ * [`session.shipping_zones.shipping_method(shipping_zone_id, shipping_method_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ShippingZones#shipping_method-instance_method)
164
+ * [`session.shipping_zones.shipping_methods(shipping_zone_id, params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ShippingZones#shipping_methods-instance_method)
165
+ * [`session.shipping_zones.sort(shipping_zone_ids)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ShippingZones#sort-instance_method)
166
+ * [`session.shipping_zones.sort_shipping_methods(shipping_zone_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ShippingZones#sort_shipping_methods-instance_method)
167
+ * [`session.shipping_zones.update(shipping_zone_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/ShippingZones#update-instance_method)
176
168
  * Shop
177
- * `session.shop.address`
178
- * `session.shop.attribute(attribute_name)`
179
- * `session.shop.attributes(params = {})`
180
- * `session.shop.close`
181
- * `session.shop.create_attribute(body)`
182
- * `session.shop.create_image(body)`
183
- * `session.shop.current`
184
- * `session.shop.delete_attribute(attribute_name)`
185
- * `session.shop.delete_image(image_id)`
186
- * `session.shop.image(image_id)`
187
- * `session.shop.images(params = {})`
188
- * `session.shop.legal_content(legal_content_type)`
189
- * `session.shop.legal_contents(params = {})`
190
- * `session.shop.legal_details`
191
- * `session.shop.open`
192
- * `session.shop.search_images_by_label(label)`
193
- * `session.shop.update(body)`
194
- * `session.shop.update_address(body)`
195
- * `session.shop.update_attribute(attribute_name, body)`
196
- * `session.shop.update_legal_content(body)`
197
- * `session.shop.update_legal_details(body)`
198
- * `session.shop.upload_image(image_path, image_name, label)`
169
+ * [`session.shop.address`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#address-instance_method)
170
+ * [`session.shop.attribute(attribute_name)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#attribute-instance_method)
171
+ * [`session.shop.attributes(params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#attributes-instance_method)
172
+ * [`session.shop.create_attribute(body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#create_attribute-instance_method)
173
+ * [`session.shop.create_image(body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#create_image-instance_method)
174
+ * [`session.shop.current`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#current-instance_method)
175
+ * [`session.shop.delete_attribute(attribute_name)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#delete_attribute-instance_method)
176
+ * [`session.shop.delete_image(image_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#delete_image-instance_method)
177
+ * [`session.shop.image(image_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#image-instance_method)
178
+ * [`session.shop.images(params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#images-instance_method)
179
+ * [`session.shop.legal_content(legal_content_type)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#legal_content-instance_method)
180
+ * [`session.shop.legal_contents(params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#legal_contents-instance_method)
181
+ * [`session.shop.legal_details`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#legal_details-instance_method)
182
+ * [`session.shop.search_images_by_label(label)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#search_images_by_label-instance_method)
183
+ * [`session.shop.update(body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#update-instance_method)
184
+ * [`session.shop.update_address(body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#update_address-instance_method)
185
+ * [`session.shop.update_attribute(attribute_name, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#update_attribute-instance_method)
186
+ * [`session.shop.update_legal_content(body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#update_legal_content-instance_method)
187
+ * [`session.shop.update_legal_details(body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#update_legal_details-instance_method)
188
+ * [`session.shop.upload_image(image_path, image_name, label)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Shop#upload_image-instance_method)
199
189
  * Signers
200
- * `session.signers.all`
201
- * `session.signers.create`
202
- * `session.signers.delete(signer_id)`
203
- * Token
204
- * `session.token.create(code)`
205
- * `session.token.refresh`
190
+ * [`session.signers.all`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Signers#all-instance_method)
191
+ * [`session.signers.create`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Signers#create-instance_method)
192
+ * [`session.signers.delete(signer_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Signers#delete-instance_method)
206
193
  * Users
207
- * `session.users.add_roles(user_id, body)`
208
- * `session.users.all(params = {})`
209
- * `session.users.change_password(user_id, current_password, new_password)`
210
- * `session.users.change_username(user_id, new_username, current_password)`
211
- * `session.users.create(body)`
212
- * `session.users.disable_support_access`
213
- * `session.users.enable_support_access`
214
- * `session.users.find(user_id)`
215
- * `session.users.roles(user_id)`
216
- * `session.users.search_by_username(username)`
217
- * `session.users.send_email_address_change(user_id, new_email, current_password, locale)`
218
- * `session.users.send_reset_password_email(email, locale)`
219
- * `session.users.set_roles(user_id, body)`
220
- * `session.users.support_access`
221
- * `session.users.verify_password(password)`
194
+ * [`session.users.add_roles(user_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Users#add_roles-instance_method)
195
+ * [`session.users.all(params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Users#all-instance_method)
196
+ * [`session.users.change_password(user_id, current_password, new_password)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Users#change_password-instance_method)
197
+ * [`session.users.change_username(user_id, new_username, current_password)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Users#change_username-instance_method)
198
+ * [`session.users.create(body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Users#create-instance_method)
199
+ * [`session.users.disable_support_access`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Users#disable_support_access-instance_method)
200
+ * [`session.users.enable_support_access`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Users#enable_support_access-instance_method)
201
+ * [`session.users.find(user_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Users#find-instance_method)
202
+ * [`session.users.roles(user_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Users#roles-instance_method)
203
+ * [`session.users.search_by_username(username)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Users#search_by_username-instance_method)
204
+ * [`session.users.send_email_address_change(user_id, new_email, current_password, locale)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Users#send_email_address_change-instance_method)
205
+ * [`session.users.send_reset_password_email(email, locale)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Users#send_reset_password_email-instance_method)
206
+ * [`session.users.set_roles(user_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Users#set_roles-instance_method)
207
+ * [`session.users.support_access`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Users#support_access-instance_method)
208
+ * [`session.users.verify_password(password, user_role)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Users#verify_password-instance_method)
222
209
  * Variations
223
- * `session.variations.all(product_id, params = {})`
224
- * `session.variations.find(product_id, variation_id)`
225
- * `session.variations.update(product_id, variation_id, body)`
226
- * Webhook Subscriptions
227
- * `session.webhook_subscriptions.activate(webhook_subscription_id)`
228
- * `session.webhook_subscriptions.all(params = {})`
229
- * `session.webhook_subscriptions.create(body)`
230
- * `session.webhook_subscriptions.deactivate(webhook_subscription_id)`
231
- * `session.webhook_subscriptions.delete(webhook_subscription_id)`
232
- * `session.webhook_subscriptions.find(webhook_subscription_id)`
233
- * `session.webhook_subscriptions.update(webhook_subscription_id, body)`
210
+ * [`session.variations.all(product_id, params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Variations#all-instance_method)
211
+ * [`session.variations.find(product_id, variation_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Variations#find-instance_method)
212
+ * [`session.variations.update(product_id, variation_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/Variations#update-instance_method)
213
+ * Webhook subscriptions
214
+ * [`session.webhook_subscriptions.activate(webhook_subscription_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/WebhookSubscriptions#activate-instance_method)
215
+ * [`session.webhook_subscriptions.all(params = {})`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/WebhookSubscriptions#all-instance_method)
216
+ * [`session.webhook_subscriptions.create(body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/WebhookSubscriptions#create-instance_method)
217
+ * [`session.webhook_subscriptions.deactivate(webhook_subscription_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/WebhookSubscriptions#deactivate-instance_method)
218
+ * [`session.webhook_subscriptions.delete(webhook_subscription_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/WebhookSubscriptions#delete-instance_method)
219
+ * [`session.webhook_subscriptions.find(webhook_subscription_id)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/WebhookSubscriptions#find-instance_method)
220
+ * [`session.webhook_subscriptions.update(webhook_subscription_id, body)`](https://rubydoc.info/github/ePages-de/beyond_api-ruby_client/BeyondApi/WebhookSubscriptions#update-instance_method)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- beyond_api (0.8.1.pre)
4
+ beyond_api (0.9.0.pre)
5
5
  faraday (~> 0.15)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -5,6 +5,21 @@
5
5
  [![Maintainability](https://api.codeclimate.com/v1/badges/1d173fa0b393e8eaf2a2/maintainability)](https://codeclimate.com/github/ePages-de/beyond_api-ruby_client/maintainability)
6
6
  ![License](https://img.shields.io/github/license/ePages-de/beyond_api-ruby_client)
7
7
 
8
+ ## Get your credentials
9
+
10
+ ### Sign up for a developer test shop
11
+
12
+ First you will need to sign up for a Beyond test shop.
13
+ Visit [our sign up form](https://signup.beyondshop.cloud), fill out the form with your data, and click the **Sign up** button.
14
+
15
+ ### Create a custom app
16
+
17
+ Log in to the cockpit of your test shop, navigate to **Apps > Custom apps** and click **Add custom app**.
18
+ Fill out the form with the **App name**, **Application Callback URL** and **App scopes**.
19
+ Save your app.
20
+
21
+ You will then receive your `client_id` and `client_secret`.
22
+
8
23
  ## Installation
9
24
 
10
25
  Add this line to your application's Gemfile:
@@ -14,9 +14,9 @@ module BeyondApi
14
14
  #
15
15
  # @beyond_api.scopes +prad:r+
16
16
  #
17
- # @option param [Boolean] :paginated
18
- # @option param [Integer] :size the page size
19
- # @option param [Integer] :page the page number
17
+ # @option params [Boolean] :paginated
18
+ # @option params [Integer] :size the page size
19
+ # @option params [Integer] :page the page number
20
20
  #
21
21
  # @return [OpenStruct]
22
22
  #
@@ -32,6 +32,7 @@ module BeyondApi
32
32
  end
33
33
 
34
34
  result.is_a?(Hash) ? result.delete(:page) : result.delete_field(:page)
35
+
35
36
  result
36
37
  else
37
38
  all_paginated(params)
@@ -32,6 +32,7 @@ module BeyondApi
32
32
  #
33
33
  # @beyond_api.scopes +prod:r+
34
34
  #
35
+ # @option params [Boolean] :paginated
35
36
  # @option params [Integer] :size the page size
36
37
  # @option params [Integer] :page the page number
37
38
  #
@@ -41,9 +42,19 @@ module BeyondApi
41
42
  # @products = session.products.all(size: 100, page: 0)
42
43
  #
43
44
  def all(params = {})
44
- response, status = BeyondApi::Request.get(@session, "/products", params)
45
+ if params[:paginated] == false
46
+ result = all_paginated(page: 0, size: 1000)
45
47
 
46
- handle_response(response, status)
48
+ (1..result[:page][:total_pages] - 1).each do |page|
49
+ result[:embedded][:products].concat(all_paginated(page: page, size: 1000)[:embedded][:products])
50
+ end
51
+
52
+ result.is_a?(Hash) ? result.delete(:page) : result.delete_field(:page)
53
+
54
+ result
55
+ else
56
+ all_paginated(params)
57
+ end
47
58
  end
48
59
 
49
60
  #
@@ -282,5 +293,13 @@ module BeyondApi
282
293
  alias_method :create_variation, :create
283
294
  alias_method :find_variation, :find
284
295
  alias_method :update_variation, :update
296
+
297
+ private
298
+
299
+ def all_paginated(params = {})
300
+ response, status = BeyondApi::Request.get(@session, "/products", params)
301
+
302
+ handle_response(response, status)
303
+ end
285
304
  end
286
305
  end
@@ -1,3 +1,3 @@
1
1
  module BeyondApi
2
- VERSION = "0.8.1.pre".freeze
2
+ VERSION = "0.9.0.pre".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beyond_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1.pre
4
+ version: 0.9.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Unai Abrisketa
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2020-03-25 00:00:00.000000000 Z
13
+ date: 2020-05-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler