File tree Expand file tree Collapse file tree 4 files changed +15
-1
lines changed
accounts/external_subscriptions Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ class ExternalSubscription < Resource
30
30
trial_ends_at
31
31
canceled_at
32
32
in_grace_period
33
+ imported
34
+ test
33
35
)
34
36
35
37
# We do not expose PUT or POST in the v2 API.
@@ -47,5 +49,9 @@ def get_external_payment_phase(external_payment_phase_uuid)
47
49
rescue Recurly ::API ::UnprocessableEntity => e
48
50
raise Invalid , e . message
49
51
end
52
+
53
+ def self . find_by_external_id ( external_id )
54
+ self . find ( "external-id-#{ external_id } " )
55
+ end
50
56
end
51
57
end
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ Content-Type: application/xml; charset=utf-8
20
20
<trial_ends_at nil =" nil" ></trial_ends_at >
21
21
<canceled_at nil =" nil" ></canceled_at >
22
22
<in_grace_period >false</in_grace_period >
23
+ <imported >false</imported >
24
+ <test >false</test >
23
25
<created_at type =" datetime" >2022-11-04T20:33:29Z</created_at >
24
26
<updated_at type =" datetime" >2022-11-04T20:33:29Z</updated_at >
25
27
</external_subscription >
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ Content-Type: application/xml; charset=utf-8
25
25
<trial_ends_at nil =" nil" ></trial_ends_at >
26
26
<canceled_at nil =" nil" ></canceled_at >
27
27
<in_grace_period >false</in_grace_period >
28
+ <imported >false</imported >
29
+ <test >false</test >
28
30
<created_at type =" datetime" >2023-02-08T23:02:30Z</created_at >
29
31
<updated_at type =" datetime" >2023-02-08T23:02:30Z</updated_at >
30
32
</external_subscription >
Original file line number Diff line number Diff line change 24
24
trial_started_at : "2022-11-07 17:08:18" ,
25
25
trial_ends_at : "2022-11-14 17:08:18" ,
26
26
canceled_at : "2022-11-15 17:08:18" ,
27
- in_grace_period : false
27
+ in_grace_period : false ,
28
+ imported : false ,
29
+ test : false
28
30
)
29
31
}
30
32
64
66
<reference_code>reference_code 1</reference_code>\
65
67
<updated_at>2019-08-24T14:15:22Z</updated_at>\
66
68
</external_product_reference>\
69
+ <imported>false</imported>\
67
70
<in_grace_period>false</in_grace_period>\
68
71
<last_purchased>2022-11-07 17:08:18</last_purchased>\
69
72
<quantity>1</quantity>\
70
73
<state>active</state>\
74
+ <test>false</test>\
71
75
<trial_ends_at>2022-11-14 17:08:18</trial_ends_at>\
72
76
<trial_started_at>2022-11-07 17:08:18</trial_started_at>\
73
77
<updated_at>2022-11-07 17:08:18</updated_at>\
You can’t perform that action at this time.
0 commit comments