jaseci 1.4.2.2__py3-none-any.whl → 1.4.2.4__py3-none-any.whl

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.

Potentially problematic release.


This version of jaseci might be problematic. Click here for more details.

jaseci/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.2.2
1
+ 1.4.2.4
@@ -67,6 +67,13 @@ def customer_retrieve(customer_id: str, **kwargs):
67
67
  return stripe().Customer.retrieve(customer_id, **kwargs)
68
68
 
69
69
 
70
+ @jaseci_action()
71
+ def customer_delete(customer_id: str, **kwargs):
72
+ """delete customer"""
73
+
74
+ return stripe().Customer.delete(customer_id, **kwargs)
75
+
76
+
70
77
  @jaseci_action()
71
78
  def payment_method_attach(payment_method_id: str, customer_id: str, **kwargs):
72
79
  """retrieve customer list of invoices"""
@@ -187,6 +194,13 @@ def subscription_item_create_usage_record(
187
194
  )
188
195
 
189
196
 
197
+ @jaseci_action()
198
+ def subscription_item_retrieve(subscription_item_id: str, **kwargs):
199
+ """retrieve subscription item"""
200
+
201
+ return stripe().SubscriptionItem.retrieve(subscription_item_id, **kwargs)
202
+
203
+
190
204
  @jaseci_action()
191
205
  def checkout_session_create(success_url: str, mode: str, **kwargs):
192
206
  return stripe().checkout.Session.create(
jaseci/prim/node.py CHANGED
@@ -52,9 +52,12 @@ class Node(Element, Anchored):
52
52
  for k in self.fast_edges.keys():
53
53
  for v in self.fast_edges[k]:
54
54
  link_order = [v[0], self.jid] if v[1] == FROM else [self.jid, v[0]]
55
- if self._h.has_obj(v[2]):
55
+ if len(v) > 2 and self._h.has_obj(v[2]):
56
56
  edge = self._h.get_obj(self._m_id, v[2])
57
- v[3] = edge.context
57
+ if len(v) > 3:
58
+ v[3] = edge.context
59
+ else:
60
+ v.append(edge.context)
58
61
  else:
59
62
  edge = Edge(
60
63
  m_id=self._m_id, h=self._h, kind="edge", name=k, auto_save=False
@@ -26,6 +26,7 @@ class StripeTests(CoreTest):
26
26
  stripe.Product.list = Mock()
27
27
  stripe.Customer.create = Mock()
28
28
  stripe.Customer.retrieve = Mock()
29
+ stripe.Customer.delete = Mock()
29
30
  stripe.PaymentMethod.list = Mock()
30
31
  stripe.PaymentMethod.attach = Mock()
31
32
  stripe.PaymentMethod.detach = Mock()
@@ -43,6 +44,7 @@ class StripeTests(CoreTest):
43
44
  stripe.Invoice.retrieve = Mock()
44
45
  stripe.SubscriptionItem.create_usage_record = Mock()
45
46
  stripe.SubscriptionItem.list_usage_record_summaries = Mock()
47
+ stripe.SubscriptionItem.retrieve = Mock()
46
48
  stripe.checkout.Session.create = Mock()
47
49
  stripe.billing_portal.Session.create = Mock()
48
50
 
@@ -78,6 +80,10 @@ class StripeTests(CoreTest):
78
80
  def test_stripe_get_customer(self, ret):
79
81
  stripe.Customer.retrieve.assert_called_once_with("cus_NBsqL1C1GrrHYM")
80
82
 
83
+ @jac_testcase("stripe.jac", "delete_customer")
84
+ def test_stripe_delete_customer(self, ret):
85
+ stripe.Customer.delete.assert_called_once_with("cus_NBsqL1C1GrrHYM")
86
+
81
87
  @jac_testcase("stripe.jac", "attach_payment_method")
82
88
  def test_stripe_attach_payment_method(self, ret):
83
89
  stripe.PaymentMethod.list.assert_called_once_with(customer="cus_NBsqL1C1GrrHYM")
@@ -199,6 +205,10 @@ class StripeTests(CoreTest):
199
205
  def test_stripe_list_usage_report(self, ret):
200
206
  stripe.SubscriptionItem.list_usage_record_summaries.assert_called()
201
207
 
208
+ @jac_testcase("stripe.jac", "subscription_item_retrieve")
209
+ def test_stripe_subscription_item_retrieve(self, ret):
210
+ stripe.SubscriptionItem.retrieve.assert_called()
211
+
202
212
  @jac_testcase("stripe.jac", "create_checkout_session")
203
213
  def test_stripe_create_checkout_session(self, ret):
204
214
  stripe.checkout.Session.create.assert_called_once_with(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: jaseci
3
- Version: 1.4.2.2
3
+ Version: 1.4.2.4
4
4
  Home-page: https://github.com/Jaseci-Labs/jaseci
5
5
  Author: Jason Mars
6
6
  Author-email: jason@jaseci.org
@@ -26,7 +26,7 @@ Requires-Dist: pytest-xdist
26
26
  Requires-Dist: pytest-cov
27
27
  Requires-Dist: validators ==0.21.2
28
28
  Requires-Dist: psycopg2-binary ==2.9.5
29
- Requires-Dist: pygls
29
+ Requires-Dist: pygls ==1.0.2
30
30
  Requires-Dist: mock
31
31
  Requires-Dist: beautifulsoup4 <4.13.0,>=4.12.2
32
32
  Requires-Dist: lxml <4.10.0,>=4.9.2
@@ -1,4 +1,4 @@
1
- jaseci/VERSION,sha256=VIR8FMH--0ie5Y3OH08vbxx46iwK3KDFtZcq591bjOI,8
1
+ jaseci/VERSION,sha256=jb7Q5Lft1vzgPwZl738BEu-mxemfeweG3QKnWHSYbBk,8
2
2
  jaseci/__init__.py,sha256=tFVuF0i901L-YymidhuSjyE24IWOhIiJA5G18DuAP2g,1246
3
3
  jaseci/cli_tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  jaseci/cli_tools/book_tools.py,sha256=4xeNRhKufKJgAaKI5miPTezdBDWeA-iB_H5F5cqyIB8,16103
@@ -21,7 +21,7 @@ jaseci/extens/act_lib/regex.py,sha256=bY8cpdNf-uYknQwAP2B4EBv9pvtnbhmdd5jBlB3QHQ
21
21
  jaseci/extens/act_lib/request.py,sha256=ORxgNBgp2-O-b4pRO1dGjm1R3xjjJj4k9D-iSGzU2Ck,3953
22
22
  jaseci/extens/act_lib/std.py,sha256=oXyPvlLAKRFuVM0i5Xt3eoguhBmNGh6L1zIHAZgtRPs,5915
23
23
  jaseci/extens/act_lib/storage.py,sha256=pxHm71nxR_tWSCsDG7midc9hDuy4vsg8JRkcLy9y3hg,1330
24
- jaseci/extens/act_lib/stripe.py,sha256=mlfUeDR76wJETqUoSzshOdU8iG_iiw7RjeqhlKsOagw,7832
24
+ jaseci/extens/act_lib/stripe.py,sha256=Vs7oPo2PSpgm42t-Moy_mmuoRyUEzsXdCpVnKR9lioA,8190
25
25
  jaseci/extens/act_lib/task.py,sha256=rTg6qHvliMbkJh54_zVxiae-HcgLcqSvzX3BMktrJRY,376
26
26
  jaseci/extens/act_lib/url.py,sha256=8ancdLY1N7f9vGGGLYVlKlf_AMuE-c7a6vAdt9aCpss,1851
27
27
  jaseci/extens/act_lib/vector.py,sha256=ekTtYx3sHP6j23m1otVeKfqWynfLNsGg6271IIvfE-I,4636
@@ -147,7 +147,7 @@ jaseci/prim/edge.py,sha256=GzKLZVio28sCF65zfDzFDHyjDPlfcTbQA5L3RkItcR0,5169
147
147
  jaseci/prim/element.py,sha256=XFGw0vVFdIe-KkBMILYWI-KkaltASdo6nm9NHLPYfSo,7669
148
148
  jaseci/prim/graph.py,sha256=uZZLyq9jmQilCrAMUKpSwDXqrhVR8JGlIcu8bmPbCjY,596
149
149
  jaseci/prim/master.py,sha256=WCfMqWJ9D1V_6Zny96it_6FcDcia3iUZp9qRwYa2Vs0,1835
150
- jaseci/prim/node.py,sha256=Ol2piCfYJ4ClRYGvZV31vbQWwC6yzT7QWKwic8MG-jM,18160
150
+ jaseci/prim/node.py,sha256=hpSP0TbMwoe8bTyQBLSEGY535dP_OvB5D0eOQcYqjKU,18287
151
151
  jaseci/prim/obj_mixins.py,sha256=BNvNzUGjWKtJ2jJSizPdvELW-TEupsueGA7VMr-tU8A,7286
152
152
  jaseci/prim/sentinel.py,sha256=ERWM-7p9xVRj1oAvQlv6gvMeudS0qqlhRi_06VD7uMs,9531
153
153
  jaseci/prim/super_master.py,sha256=KHSD1YoF1OKWw3ob8qdS9Amxf38N0FpYfCkT1mk_DDQ,852
@@ -162,7 +162,7 @@ jaseci/tests/test_jac.py,sha256=bE6FLhLV0-TnxLlS7HdPxe65wMj65Pa_qGLySpuVIJA,3275
162
162
  jaseci/tests/test_node.py,sha256=tXnRbc3lHGPidzE45BIF1LiTkC5aB5idxbyzRj06Ufs,3710
163
163
  jaseci/tests/test_progs.py,sha256=bnShoB-aFVf6hxCqH771vAR0XQvZwALeHBVD6UVd0dM,25398
164
164
  jaseci/tests/test_stack.py,sha256=CrNbcRpRA5jhQw44wKsjWwfgbMXodJglY48TyoNYu5U,8453
165
- jaseci/tests/test_stripe.py,sha256=bXq4m7AIRquWu7ZCzzp4Qz99NccuZTt_Tjjg-Kx1isE,8465
165
+ jaseci/tests/test_stripe.py,sha256=c-H4h0nzfDdnvKWHVrXeUNz_RiBAPa9sHWH6RE7JDnc,8911
166
166
  jaseci/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
167
167
  jaseci/utils/file_handler.py,sha256=b1_zCVO37h1eKjaa_P9jKkx0lwJfrsWKRGkv68lYpY8,4797
168
168
  jaseci/utils/gprof2dot.py,sha256=NwoCm318NFS169fvJhfltsIINxzpd6bS7_9b1-Fy4Xg,119142
@@ -175,9 +175,9 @@ jaseci/utils/actions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
175
175
  jaseci/utils/actions/actions_manager.py,sha256=sKfWk9zRpDpkLo3-mKpVMKrqx7kpRG7hRi5tfDTcqb8,8527
176
176
  jaseci/utils/actions/actions_optimizer.py,sha256=ddj6zF6pfcYD3OeLiOBTeDU07764-bLy7RXn7c71JrI,21564
177
177
  jaseci/utils/actions/actions_state.py,sha256=5p080-DtDXS9QUd2FwkrtN6-7LBqT2tmJDOKVKjDEbU,2963
178
- jaseci-1.4.2.2.dist-info/LICENSE,sha256=2b_qOOd7ak6x49HwOzCAmRLSPJehiBJdqj9HDX1Jp7U,1072
179
- jaseci-1.4.2.2.dist-info/METADATA,sha256=7AN0a9J5_YrtdMzb7j9z8HEKPvkgcSshpvhXnAgy2wc,1104
180
- jaseci-1.4.2.2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
181
- jaseci-1.4.2.2.dist-info/entry_points.txt,sha256=nryZyKQLUJzlTOcA9knRGoXHGmNUCQxvvuDIEj5ePyg,88
182
- jaseci-1.4.2.2.dist-info/top_level.txt,sha256=0WZh7RF_ruiaZHQSi8IWOiLRUvKKDlhcnLe-by6EyFc,7
183
- jaseci-1.4.2.2.dist-info/RECORD,,
178
+ jaseci-1.4.2.4.dist-info/LICENSE,sha256=2b_qOOd7ak6x49HwOzCAmRLSPJehiBJdqj9HDX1Jp7U,1072
179
+ jaseci-1.4.2.4.dist-info/METADATA,sha256=DVd_7Aha7L8IILSg3RVqsFJIqCEoxwzlyNL43DgjrAs,1112
180
+ jaseci-1.4.2.4.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
181
+ jaseci-1.4.2.4.dist-info/entry_points.txt,sha256=nryZyKQLUJzlTOcA9knRGoXHGmNUCQxvvuDIEj5ePyg,88
182
+ jaseci-1.4.2.4.dist-info/top_level.txt,sha256=0WZh7RF_ruiaZHQSi8IWOiLRUvKKDlhcnLe-by6EyFc,7
183
+ jaseci-1.4.2.4.dist-info/RECORD,,