hippo-fw 0.9.8 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/client/hippo/access/subscription-choice-layer.jsx +170 -0
- data/client/hippo/access/subscription-choice-layer/cancel-subscription.jsx +111 -0
- data/client/hippo/access/subscription-choice-layer/payment-form.jsx +154 -0
- data/client/hippo/access/subscription-choice-layer/subscription-choice.scss +29 -0
- data/client/hippo/boot.jsx +1 -1
- data/client/hippo/components/asset.jsx +1 -1
- data/client/hippo/components/asset.scss +1 -0
- data/client/hippo/components/data-table.jsx +36 -38
- data/client/hippo/components/date-time.jsx +25 -9
- data/client/hippo/components/form/api.js +1 -0
- data/client/hippo/components/form/fields.jsx +3 -2
- data/client/hippo/components/form/fields/checkbox-wrapper.jsx +1 -1
- data/client/hippo/components/form/fields/date-wrapper.jsx +1 -1
- data/client/hippo/components/form/fields/email-wrapper.jsx +31 -0
- data/client/hippo/components/form/fields/form-field.scss +8 -0
- data/client/hippo/components/form/fields/label.jsx +5 -7
- data/client/hippo/components/form/fields/select-wrapper.jsx +1 -1
- data/client/hippo/components/form/fields/tags-wrapper.jsx +1 -1
- data/client/hippo/components/form/fields/text-wrapper.jsx +1 -1
- data/client/hippo/components/form/fields/textarea-wrapper.jsx +1 -1
- data/client/hippo/components/form/wrapper.jsx +1 -1
- data/client/hippo/components/grid.js +1 -0
- data/client/hippo/components/master-detail.jsx +1 -1
- data/client/hippo/components/network-activity-overlay.jsx +6 -6
- data/client/hippo/components/payments/field.jsx +64 -0
- data/client/hippo/components/payments/field.scss +18 -0
- data/client/hippo/components/popout-window.jsx +1 -1
- data/client/hippo/components/query-builder.jsx +1 -1
- data/client/hippo/components/query-builder/boolean-picker.jsx +1 -1
- data/client/hippo/components/query-builder/clause-filter.jsx +2 -2
- data/client/hippo/components/query-builder/clause.jsx +16 -10
- data/client/hippo/components/query-builder/date-picker.jsx +1 -1
- data/client/hippo/components/query-builder/query-builder.scss +23 -2
- data/client/hippo/components/record-finder.jsx +5 -2
- data/client/hippo/components/record-finder/query-layer.jsx +1 -1
- data/client/hippo/components/save-button.jsx +1 -1
- data/client/hippo/components/screen.jsx +1 -1
- data/client/hippo/components/text-editor.jsx +82 -40
- data/client/hippo/components/text-editor/renderer.jsx +15 -35
- data/client/hippo/components/text-editor/renderer.scss +15 -0
- data/client/hippo/components/text-editor/text-editor.scss +2 -15
- data/client/hippo/components/text-editor/upload-adapter.js +66 -0
- data/client/hippo/components/time-zone-select.jsx +1 -1
- data/client/hippo/components/tool-tip.jsx +9 -14
- data/client/hippo/components/toolbar.jsx +16 -0
- data/client/hippo/components/warning-notification.jsx +1 -1
- data/client/hippo/extensions/base.js +3 -2
- data/client/hippo/extensions/index.js +1 -1
- data/client/hippo/lib/action_cable.js +8 -0
- data/client/hippo/lib/action_cable/cable.js +47 -0
- data/client/hippo/lib/action_cable/connection.js +192 -0
- data/client/hippo/lib/action_cable/connection_monitor.js +135 -0
- data/client/hippo/lib/action_cable/consumer.js +56 -0
- data/client/hippo/lib/action_cable/subscription.js +98 -0
- data/client/hippo/lib/action_cable/subscriptions.js +129 -0
- data/client/hippo/lib/date-range.js +22 -5
- data/client/hippo/lib/lazy-getter.js +31 -0
- data/client/hippo/lib/util.js +6 -1
- data/client/hippo/models/base.js +8 -3
- data/client/hippo/models/config.js +7 -2
- data/client/hippo/models/date-type.js +14 -0
- data/client/hippo/models/decorators.js +5 -5
- data/client/hippo/models/pub_sub.js +1 -1
- data/client/hippo/models/query/array-result.js +4 -1
- data/client/hippo/models/subscription.js +35 -0
- data/client/hippo/models/sync.js +1 -1
- data/client/hippo/models/tenant.js +14 -1
- data/client/hippo/react/component-not-found.jsx +14 -18
- data/client/hippo/screens/async-loading.jsx +46 -0
- data/client/hippo/screens/definition.js +2 -1
- data/client/hippo/screens/preferences.jsx +57 -0
- data/client/hippo/screens/system-settings.jsx +4 -6
- data/client/hippo/screens/system-settings/mailer-config.jsx +1 -1
- data/client/hippo/screens/system-settings/tenant.jsx +57 -4
- data/client/hippo/screens/user-management.jsx +2 -2
- data/client/hippo/screens/user-management/edit-form.jsx +1 -1
- data/client/hippo/styles/global/fancy-header.scss +2 -1
- data/client/hippo/styles/global/mixins.scss +14 -1
- data/client/hippo/testing/index.js +7 -0
- data/client/hippo/user.js +9 -2
- data/client/hippo/workspace/index.jsx +29 -8
- data/client/hippo/workspace/menu-group.jsx +1 -1
- data/client/hippo/workspace/menu-option.jsx +2 -0
- data/client/hippo/workspace/menu.jsx +30 -6
- data/client/hippo/workspace/screen.jsx +5 -1
- data/client/hippo/workspace/styles.scss +22 -3
- data/command-reference-files/initial/Gemfile +1 -1
- data/config/routes.rb +6 -0
- data/config/screens.rb +9 -17
- data/db/migrate/20171129024737_create_subscriptions.rb +12 -0
- data/fixtures/vcr_cassettes/Tenant_changes/sends_email_when_tenant_identifier_changes.yml +72 -0
- data/fixtures/vcr_cassettes/Tenant_isoloation/disallows_using_a_user_s_token_on_incorrect_domain.yml +141 -0
- data/fixtures/vcr_cassettes/Tenant_isoloation/isolates_bar_s_tenant_data_from_foo.yml +141 -0
- data/fixtures/vcr_cassettes/Tenant_isoloation/isolates_foo_s_tenant_data_from_bar.yml +141 -0
- data/hippo-fw.gemspec +4 -3
- data/lib/hippo.rb +1 -0
- data/lib/hippo/access/roles/basic_user.rb +1 -0
- data/lib/hippo/api/authentication_provider.rb +4 -5
- data/lib/hippo/api/handlers/asset.rb +9 -4
- data/lib/hippo/api/handlers/subscription.rb +39 -0
- data/lib/hippo/api/handlers/user_session.rb +0 -1
- data/lib/hippo/api/helper_methods.rb +8 -4
- data/lib/hippo/api/request_wrapper.rb +12 -1
- data/lib/hippo/command/console.rb +3 -3
- data/lib/hippo/concerns/asset_uploader.rb +8 -2
- data/lib/hippo/concerns/pub_sub.rb +8 -8
- data/lib/hippo/configuration.rb +6 -4
- data/lib/hippo/extension.rb +3 -2
- data/lib/hippo/model.rb +1 -0
- data/lib/hippo/models/subscription.rb +7 -0
- data/lib/hippo/payments.rb +129 -0
- data/lib/hippo/screen.rb +4 -2
- data/lib/hippo/screen/definition.rb +4 -0
- data/lib/hippo/spec_helper.rb +4 -4
- data/lib/hippo/templates/liquid/precision.rb +9 -0
- data/lib/hippo/tenant.rb +4 -5
- data/lib/hippo/user.rb +5 -5
- data/lib/hippo/version.rb +1 -1
- data/lib/hippo/webpack.rb +5 -1
- data/package-lock.json +437 -881
- data/package.json +19 -5
- data/spec/client/components/__snapshots__/query-builder.spec.jsx.snap +34 -1
- data/spec/client/components/__snapshots__/record-finder.spec.jsx.snap +1 -0
- data/spec/client/models/base.spec.js +7 -0
- data/spec/client/models/subscription.spec.js +8 -0
- data/spec/client/screens/__snapshots__/preferences.spec.jsx.snap +223 -0
- data/spec/client/screens/preferences.spec.jsx +10 -0
- data/spec/client/test-models.js +1 -1
- data/spec/client/workspace/__snapshots__/menu.spec.jsx.snap +12 -0
- data/spec/factories/subscription.rb +6 -0
- data/spec/factories/tenant.rb +1 -1
- data/spec/factories/user.rb +1 -1
- data/spec/server/api/tenant_change_spec.rb +11 -8
- data/spec/server/api/tenant_isolation_spec.rb +11 -8
- data/spec/server/api/user_sessions_spec.rb +10 -7
- data/spec/server/api/user_spec.rb +45 -0
- data/spec/server/models/subscription_spec.rb +10 -0
- data/spec/server/payment_helpers.rb +13 -0
- data/spec/server/print/form_spec.rb +1 -1
- data/spec/server/spec_helper.rb +3 -11
- data/templates/js/screen-definitions.js +4 -1
- data/templates/spec/factories/model.rb +1 -1
- data/views/hippo_root_view.erb +5 -5
- metadata +84 -25
- data/client/hippo/components/grid/config.json +0 -3
- data/client/hippo/components/grid/editors.scss +0 -78
- data/client/hippo/components/grid/index.js +0 -2
- data/client/hippo/components/grid/row-editor.scss +0 -74
- data/client/hippo/components/grid/styles.scss +0 -118
- data/client/hippo/components/text-editor/display-modes/Button.jsx +0 -20
- data/client/hippo/components/text-editor/display-modes/ToggleEdit.jsx +0 -23
- data/client/hippo/components/text-editor/display-modes/ToggleInsert.jsx +0 -22
- data/client/hippo/components/text-editor/display-modes/ToggleLayout.jsx +0 -22
- data/client/hippo/components/text-editor/display-modes/TogglePreview.jsx +0 -22
- data/client/hippo/components/text-editor/display-modes/ToggleResize.jsx +0 -22
- data/client/hippo/components/text-editor/display-modes/index.css +0 -0
- data/client/hippo/components/text-editor/display-modes/index.js +0 -30
- data/client/hippo/components/text-editor/image-plugin/Component/Display/index.js +0 -82
- data/client/hippo/components/text-editor/image-plugin/Component/Form/index.js +0 -42
- data/client/hippo/components/text-editor/image-plugin/Component/index.js +0 -16
- data/client/hippo/components/text-editor/image-plugin/Component/index.scss +0 -0
- data/client/hippo/components/text-editor/image-plugin/index.js +0 -32
- data/client/hippo/components/text-editor/image-plugin/index.scss +0 -25
- data/client/hippo/components/toolbar/changes-notification.scss +0 -63
- data/client/hippo/components/toolbar/index.js +0 -3
- data/client/hippo/components/toolbar/styles.scss +0 -74
data/config/routes.rb
CHANGED
@@ -24,10 +24,16 @@ module Hippo::API
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
+
get 'user/current.json' do
|
28
|
+
with_user {|user| { success: true, data: user } }
|
29
|
+
end
|
30
|
+
|
27
31
|
resources Hippo::User
|
28
32
|
resources Hippo::Tenant,
|
29
33
|
controller: Hippo::API::Handlers::Tenant,
|
30
34
|
cors: '*', public: true
|
35
|
+
resources Hippo::Subscription,
|
36
|
+
controller: Hippo::API::Handlers::Subscription
|
31
37
|
end
|
32
38
|
|
33
39
|
routes.draw do
|
data/config/screens.rb
CHANGED
@@ -5,23 +5,20 @@ Hippo::Screen.define_group "system-settings" do | group |
|
|
5
5
|
end
|
6
6
|
|
7
7
|
Hippo::Screen.for_extension 'hippo' do | screens |
|
8
|
+
screens.define "preferences" do | screen |
|
9
|
+
screen.title = "Preferences"
|
10
|
+
screen.description = "User Preferences"
|
11
|
+
screen.icon = "heartbeat"
|
12
|
+
screen.group_id = "system-settings"
|
13
|
+
screen.asset = 'hippo/screens/preferences'
|
14
|
+
end
|
8
15
|
|
9
|
-
# screens.define "user-preferences" do | screen |
|
10
|
-
# screen.title = "User Preferences"
|
11
|
-
# screen.description = "Modify User Profile"
|
12
|
-
# screen.icon = "user-secret"
|
13
|
-
# screen.group_id = "system-settings"
|
14
|
-
# screen.model_class = "User"
|
15
|
-
# screen.view_class = "UserPreferences"
|
16
|
-
# screen.asset = 'user'
|
17
|
-
# end
|
18
16
|
screens.define "user-management" do | screen |
|
19
17
|
screen.title = "User Management"
|
20
18
|
screen.description = "Add/Remove/Modify User Accounts"
|
21
19
|
screen.icon = "group"
|
22
20
|
screen.group_id = "system-settings"
|
23
|
-
screen.
|
24
|
-
screen.view_class = "UserManagement"
|
21
|
+
screen.roles = ['administrator']
|
25
22
|
screen.asset = 'hippo/screens/user-management'
|
26
23
|
end
|
27
24
|
|
@@ -30,13 +27,8 @@ Hippo::Screen.for_extension 'hippo' do | screens |
|
|
30
27
|
screen.description = "Update System Settings"
|
31
28
|
screen.icon = "cogs"
|
32
29
|
screen.group_id = "system-settings"
|
33
|
-
screen.
|
30
|
+
screen.roles = ['administrator']
|
34
31
|
screen.asset = 'hippo/screens/system-settings'
|
35
32
|
end
|
36
33
|
|
37
|
-
# screens.define "workspace-layout" do | screen |
|
38
|
-
# screen.url_prefix = 'hippo/workspace'
|
39
|
-
# screen.js = 'index.jsx'
|
40
|
-
# # screen.css = 'styles.scss'
|
41
|
-
# end
|
42
34
|
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
class CreateSubscriptions < ActiveRecord::Migration[5.0]
|
2
|
+
def change
|
3
|
+
create_table :subscriptions do |t|
|
4
|
+
t.string :subscription_id, index: { unique: true }
|
5
|
+
t.string :name, :description, null: false
|
6
|
+
t.decimal :price, precision: 10, scale: 2, null: false
|
7
|
+
t.integer :trial_duration, default: 0
|
8
|
+
end
|
9
|
+
add_column :tenants, :metadata, :jsonb, default: {}, null: false
|
10
|
+
add_reference :tenants, :subscription, foreign_key: true
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.sandbox.braintreegateway.com/merchants/dshtky2jcjpr96z3/customers
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: |
|
9
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
10
|
+
<customer>
|
11
|
+
<company>Reichert Group</company>
|
12
|
+
<email>zander.wuckert@larson.info</email>
|
13
|
+
<phone>(219) 762-7882 x5075</phone>
|
14
|
+
</customer>
|
15
|
+
headers:
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip
|
18
|
+
Accept:
|
19
|
+
- application/xml
|
20
|
+
User-Agent:
|
21
|
+
- Braintree Ruby Gem 2.80.1
|
22
|
+
X-Apiversion:
|
23
|
+
- '4'
|
24
|
+
Authorization:
|
25
|
+
- Basic aG03bjZ2Yzg0amJyOTYydzo0MTNjYjNjOGFmMjliM2MzYmEzNDBjZmI3MTVmNDUzMg==
|
26
|
+
Content-Type:
|
27
|
+
- application/xml
|
28
|
+
response:
|
29
|
+
status:
|
30
|
+
code: 201
|
31
|
+
message: Created
|
32
|
+
headers:
|
33
|
+
Date:
|
34
|
+
- Sun, 17 Dec 2017 19:57:40 GMT
|
35
|
+
Content-Type:
|
36
|
+
- application/xml; charset=utf-8
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
X-Frame-Options:
|
40
|
+
- SAMEORIGIN
|
41
|
+
- SAMEORIGIN
|
42
|
+
X-Xss-Protection:
|
43
|
+
- 1; mode=block
|
44
|
+
X-Content-Type-Options:
|
45
|
+
- nosniff
|
46
|
+
X-Authentication:
|
47
|
+
- basic_auth
|
48
|
+
X-User:
|
49
|
+
- 4y6kf87m57f2bcq7
|
50
|
+
Vary:
|
51
|
+
- Accept-Encoding
|
52
|
+
Content-Encoding:
|
53
|
+
- gzip
|
54
|
+
Etag:
|
55
|
+
- W/"5a4262df33f9a0ff82ff080443dfdf4b"
|
56
|
+
Cache-Control:
|
57
|
+
- max-age=0, private, must-revalidate
|
58
|
+
X-Request-Id:
|
59
|
+
- 4ebc847c-b566-43c2-8598-db9baf57c5c8
|
60
|
+
X-Runtime:
|
61
|
+
- '0.184468'
|
62
|
+
Content-Security-Policy:
|
63
|
+
- frame-ancestors 'self'
|
64
|
+
Strict-Transport-Security:
|
65
|
+
- max-age=31536000; includeSubDomains
|
66
|
+
body:
|
67
|
+
encoding: ASCII-8BIT
|
68
|
+
string: !binary |-
|
69
|
+
H4sIADTMNloAA5SRsU7DMBRF936F5QkGN42rNHHlpEywo7KwGfuFuE3syHZo068nSUtBKgyM75177SM9vjk2NfoA57U1OY7nC4zASKu0ec/xy/aRZHhTzLjsfLANuGKGENeqSChLEpoxxqNhGpcDlJUwgQyz8lXY93Qnd61jq9OSRz/pmC6184EY0QAyus5xcB3gaEK1+ItI27TC9MUzaFmBC+jJ2a7l0dd+zEAjdF2chFHg5odO7ofcQy2ct2auTWl5dE6M2bayBoo7GrN7lK4oSbOMomOySBMendmkKo43Jgd48zr8YuhABFBEBBT6FnKshjHoBnBBF3FKYkridBuzdZKul+x1UL8Wpn7Xqv/1vwvn/6czkVJDrfxVSelApHDKXx4Vzon+YiyUcuA93LDB7XrzTwAAAP//AwBs5CzBJgIAAA==
|
70
|
+
http_version:
|
71
|
+
recorded_at: Sun, 17 Dec 2017 19:57:40 GMT
|
72
|
+
recorded_with: VCR 3.0.3
|
data/fixtures/vcr_cassettes/Tenant_isoloation/disallows_using_a_user_s_token_on_incorrect_domain.yml
ADDED
@@ -0,0 +1,141 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.sandbox.braintreegateway.com/merchants/dshtky2jcjpr96z3/customers
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: |
|
9
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
10
|
+
<customer>
|
11
|
+
<company>Bernhard, Bergnaum and Doyle</company>
|
12
|
+
<email>kayli@weinat.name</email>
|
13
|
+
<phone>866.651.9137 x604</phone>
|
14
|
+
</customer>
|
15
|
+
headers:
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip
|
18
|
+
Accept:
|
19
|
+
- application/xml
|
20
|
+
User-Agent:
|
21
|
+
- Braintree Ruby Gem 2.80.1
|
22
|
+
X-Apiversion:
|
23
|
+
- '4'
|
24
|
+
Authorization:
|
25
|
+
- Basic aG03bjZ2Yzg0amJyOTYydzo0MTNjYjNjOGFmMjliM2MzYmEzNDBjZmI3MTVmNDUzMg==
|
26
|
+
Content-Type:
|
27
|
+
- application/xml
|
28
|
+
response:
|
29
|
+
status:
|
30
|
+
code: 201
|
31
|
+
message: Created
|
32
|
+
headers:
|
33
|
+
Date:
|
34
|
+
- Sun, 17 Dec 2017 20:00:51 GMT
|
35
|
+
Content-Type:
|
36
|
+
- application/xml; charset=utf-8
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
X-Frame-Options:
|
40
|
+
- SAMEORIGIN
|
41
|
+
- SAMEORIGIN
|
42
|
+
X-Xss-Protection:
|
43
|
+
- 1; mode=block
|
44
|
+
X-Content-Type-Options:
|
45
|
+
- nosniff
|
46
|
+
X-Authentication:
|
47
|
+
- basic_auth
|
48
|
+
X-User:
|
49
|
+
- 4y6kf87m57f2bcq7
|
50
|
+
Vary:
|
51
|
+
- Accept-Encoding
|
52
|
+
Content-Encoding:
|
53
|
+
- gzip
|
54
|
+
Etag:
|
55
|
+
- W/"368f718e7f8619b638cd262b5982a24e"
|
56
|
+
Cache-Control:
|
57
|
+
- max-age=0, private, must-revalidate
|
58
|
+
X-Request-Id:
|
59
|
+
- 8e76f507-7c1f-4e7c-a937-e661966ade63
|
60
|
+
X-Runtime:
|
61
|
+
- '0.113085'
|
62
|
+
Content-Security-Policy:
|
63
|
+
- frame-ancestors 'self'
|
64
|
+
Strict-Transport-Security:
|
65
|
+
- max-age=31536000; includeSubDomains
|
66
|
+
body:
|
67
|
+
encoding: ASCII-8BIT
|
68
|
+
string: !binary |-
|
69
|
+
H4sIAPPMNloAA5SRwVKDMBCG732KTM4GCLWh7QB1HMcnqBdvK9mWtBCYJFjw6Q20VmeqB2/ZfPsnX7Lppq8r8o7GqkZnlAcRJaiLRiq9z+jL9pkt6SafpUVnXVOjyWeEpErmPI7jRCTiPg19NW56WJSgHfO1tKU7DvGhOLRmJT7mafiTjt07ZaxjGmokWlUZdaZDGk6ogr9I0dQt6CF/RKNLMPKO+NVeQ1cT0JI8NUOFafjVNSawBlXlRxgq9XBCpcEF48lpeAZjS1s2GvOlEIFY8GDF5wnpReTfdQaTLPQ3Lid8s8r94mgQHEoGjrihxYxKXzpVI83jiCeMx4wn2zhaR9F6wV+97jUw5btW/i//HTjfPw2K7RRW0l6VpHKs8D9mL4eCMTBcjEFKg9biDfNu16l/AgAA//8DADnMnjooAgAA
|
70
|
+
http_version:
|
71
|
+
recorded_at: Sun, 17 Dec 2017 20:00:51 GMT
|
72
|
+
- request:
|
73
|
+
method: post
|
74
|
+
uri: https://api.sandbox.braintreegateway.com/merchants/dshtky2jcjpr96z3/customers
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
string: |
|
78
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
79
|
+
<customer>
|
80
|
+
<company>Miller and Sons</company>
|
81
|
+
<email>trever_armstrong@jaskolskierdman.com</email>
|
82
|
+
<phone>(585) 295-0335 x28594</phone>
|
83
|
+
</customer>
|
84
|
+
headers:
|
85
|
+
Accept-Encoding:
|
86
|
+
- gzip
|
87
|
+
Accept:
|
88
|
+
- application/xml
|
89
|
+
User-Agent:
|
90
|
+
- Braintree Ruby Gem 2.80.1
|
91
|
+
X-Apiversion:
|
92
|
+
- '4'
|
93
|
+
Authorization:
|
94
|
+
- Basic aG03bjZ2Yzg0amJyOTYydzo0MTNjYjNjOGFmMjliM2MzYmEzNDBjZmI3MTVmNDUzMg==
|
95
|
+
Content-Type:
|
96
|
+
- application/xml
|
97
|
+
response:
|
98
|
+
status:
|
99
|
+
code: 201
|
100
|
+
message: Created
|
101
|
+
headers:
|
102
|
+
Date:
|
103
|
+
- Sun, 17 Dec 2017 20:00:51 GMT
|
104
|
+
Content-Type:
|
105
|
+
- application/xml; charset=utf-8
|
106
|
+
Transfer-Encoding:
|
107
|
+
- chunked
|
108
|
+
X-Frame-Options:
|
109
|
+
- SAMEORIGIN
|
110
|
+
- SAMEORIGIN
|
111
|
+
X-Xss-Protection:
|
112
|
+
- 1; mode=block
|
113
|
+
X-Content-Type-Options:
|
114
|
+
- nosniff
|
115
|
+
X-Authentication:
|
116
|
+
- basic_auth
|
117
|
+
X-User:
|
118
|
+
- 4y6kf87m57f2bcq7
|
119
|
+
Vary:
|
120
|
+
- Accept-Encoding
|
121
|
+
Content-Encoding:
|
122
|
+
- gzip
|
123
|
+
Etag:
|
124
|
+
- W/"8e77c60b21743bbf65bb3dce3aecf8f8"
|
125
|
+
Cache-Control:
|
126
|
+
- max-age=0, private, must-revalidate
|
127
|
+
X-Request-Id:
|
128
|
+
- 250cdfe6-c82b-45c2-a507-08522a619963
|
129
|
+
X-Runtime:
|
130
|
+
- '0.186711'
|
131
|
+
Content-Security-Policy:
|
132
|
+
- frame-ancestors 'self'
|
133
|
+
Strict-Transport-Security:
|
134
|
+
- max-age=31536000; includeSubDomains
|
135
|
+
body:
|
136
|
+
encoding: ASCII-8BIT
|
137
|
+
string: !binary |-
|
138
|
+
H4sIAPPMNloAA5SRS1PCMBSF9/yKTFa6CH1AoTBtceXOlbhx41ybCwTy6CRBqb/etGB1Bl24PPc7Jzl3brE6KUne0DphdEmTcUwJ6tpwobclfVrfs5yuqlFRH503Cm01IqQQvEqT2TSf5vGkiILqhgHWO9CeBc3dzh/adF/vG7uYfQTTT9q5N8I6zzQoJFrIknp7RBr1SMJfpDaqAd1WD0JKtAQ0J49GuyL6Ap0JFQhZeYthqRewynlr9PZuD+5gpDsItFyBHodIEZ29XarZGY3VTZZntyRdZCyeTDJySvNsMS2iM+xrw+mq1Tu+OuF/aWsRPHIGnvi2wZLyIL1QSKs0TuYsSVkyX6fxMo6XWfIcthgCff7Y8P/lvwPn//uTsY1Ayd1QiQvParDcXR4Fa6G9NAbOLTqHVyx0G+7/CQAA//8DAKaeDDEyAgAA
|
139
|
+
http_version:
|
140
|
+
recorded_at: Sun, 17 Dec 2017 20:00:51 GMT
|
141
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,141 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.sandbox.braintreegateway.com/merchants/dshtky2jcjpr96z3/customers
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: |
|
9
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
10
|
+
<customer>
|
11
|
+
<company>Beier-Hirthe</company>
|
12
|
+
<email>stevie.quigley@kuhic.info</email>
|
13
|
+
<phone>325-349-9191</phone>
|
14
|
+
</customer>
|
15
|
+
headers:
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip
|
18
|
+
Accept:
|
19
|
+
- application/xml
|
20
|
+
User-Agent:
|
21
|
+
- Braintree Ruby Gem 2.80.1
|
22
|
+
X-Apiversion:
|
23
|
+
- '4'
|
24
|
+
Authorization:
|
25
|
+
- Basic aG03bjZ2Yzg0amJyOTYydzo0MTNjYjNjOGFmMjliM2MzYmEzNDBjZmI3MTVmNDUzMg==
|
26
|
+
Content-Type:
|
27
|
+
- application/xml
|
28
|
+
response:
|
29
|
+
status:
|
30
|
+
code: 201
|
31
|
+
message: Created
|
32
|
+
headers:
|
33
|
+
Date:
|
34
|
+
- Sun, 17 Dec 2017 20:00:50 GMT
|
35
|
+
Content-Type:
|
36
|
+
- application/xml; charset=utf-8
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
X-Frame-Options:
|
40
|
+
- SAMEORIGIN
|
41
|
+
- SAMEORIGIN
|
42
|
+
X-Xss-Protection:
|
43
|
+
- 1; mode=block
|
44
|
+
X-Content-Type-Options:
|
45
|
+
- nosniff
|
46
|
+
X-Authentication:
|
47
|
+
- basic_auth
|
48
|
+
X-User:
|
49
|
+
- 4y6kf87m57f2bcq7
|
50
|
+
Vary:
|
51
|
+
- Accept-Encoding
|
52
|
+
Content-Encoding:
|
53
|
+
- gzip
|
54
|
+
Etag:
|
55
|
+
- W/"5b2d90d8cac0a94878e42c9de6dc3b29"
|
56
|
+
Cache-Control:
|
57
|
+
- max-age=0, private, must-revalidate
|
58
|
+
X-Request-Id:
|
59
|
+
- 3d637d8b-0bb2-43e8-8c98-d2622d5dd199
|
60
|
+
X-Runtime:
|
61
|
+
- '0.111553'
|
62
|
+
Content-Security-Policy:
|
63
|
+
- frame-ancestors 'self'
|
64
|
+
Strict-Transport-Security:
|
65
|
+
- max-age=31536000; includeSubDomains
|
66
|
+
body:
|
67
|
+
encoding: ASCII-8BIT
|
68
|
+
string: !binary |-
|
69
|
+
H4sIAPLMNloAA5SRzVLCMBDH7zxFJ/fQJhWwTBocD44PgBdvMVnoQpvWJEXq09sWRGbQg8f9f+z+ZlasjlUZHcB5rG1O2DQhEVhdG7TbnLysn+g9WcmJ0K0PdQVOTqJIoJGcL3g6T1km4n4axN7UhbKB9rPxRdh3fKd3jcvmn6mIr90hvUHnA7WqgshimZPgWiDxaJXqL0fXVaNsJx8BwdFndKEAEX+rQwIqhaX0AQ4I0/cWtyV0D/u2QD1Fu6lFfAoM0aaoLciUz2h6l9GMZUzEJ23kU8eb8x/w5jH8guVABTBUhSh0DeTE9GPACojkCVtQxilbrHmyTJLlLHntiS+Fsd825n/9n8Lp/vgbukEojb8gGQxUK2f8ealyTnVnYmWMA+/hxuvZLo/+AgAA//8DAOZ6Vz0bAgAA
|
70
|
+
http_version:
|
71
|
+
recorded_at: Sun, 17 Dec 2017 20:00:50 GMT
|
72
|
+
- request:
|
73
|
+
method: post
|
74
|
+
uri: https://api.sandbox.braintreegateway.com/merchants/dshtky2jcjpr96z3/customers
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
string: |
|
78
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
79
|
+
<customer>
|
80
|
+
<company>Walker-Zulauf</company>
|
81
|
+
<email>mellie@powlowski.biz</email>
|
82
|
+
<phone>(846) 429-4094 x162</phone>
|
83
|
+
</customer>
|
84
|
+
headers:
|
85
|
+
Accept-Encoding:
|
86
|
+
- gzip
|
87
|
+
Accept:
|
88
|
+
- application/xml
|
89
|
+
User-Agent:
|
90
|
+
- Braintree Ruby Gem 2.80.1
|
91
|
+
X-Apiversion:
|
92
|
+
- '4'
|
93
|
+
Authorization:
|
94
|
+
- Basic aG03bjZ2Yzg0amJyOTYydzo0MTNjYjNjOGFmMjliM2MzYmEzNDBjZmI3MTVmNDUzMg==
|
95
|
+
Content-Type:
|
96
|
+
- application/xml
|
97
|
+
response:
|
98
|
+
status:
|
99
|
+
code: 201
|
100
|
+
message: Created
|
101
|
+
headers:
|
102
|
+
Date:
|
103
|
+
- Sun, 17 Dec 2017 20:00:50 GMT
|
104
|
+
Content-Type:
|
105
|
+
- application/xml; charset=utf-8
|
106
|
+
Transfer-Encoding:
|
107
|
+
- chunked
|
108
|
+
X-Frame-Options:
|
109
|
+
- SAMEORIGIN
|
110
|
+
- SAMEORIGIN
|
111
|
+
X-Xss-Protection:
|
112
|
+
- 1; mode=block
|
113
|
+
X-Content-Type-Options:
|
114
|
+
- nosniff
|
115
|
+
X-Authentication:
|
116
|
+
- basic_auth
|
117
|
+
X-User:
|
118
|
+
- 4y6kf87m57f2bcq7
|
119
|
+
Vary:
|
120
|
+
- Accept-Encoding
|
121
|
+
Content-Encoding:
|
122
|
+
- gzip
|
123
|
+
Etag:
|
124
|
+
- W/"1071c82a00961f8008fd2fb4b360d724"
|
125
|
+
Cache-Control:
|
126
|
+
- max-age=0, private, must-revalidate
|
127
|
+
X-Request-Id:
|
128
|
+
- 63884d09-e810-4e59-83c0-b6deccba34a3
|
129
|
+
X-Runtime:
|
130
|
+
- '0.132362'
|
131
|
+
Content-Security-Policy:
|
132
|
+
- frame-ancestors 'self'
|
133
|
+
Strict-Transport-Security:
|
134
|
+
- max-age=31536000; includeSubDomains
|
135
|
+
body:
|
136
|
+
encoding: ASCII-8BIT
|
137
|
+
string: !binary |-
|
138
|
+
H4sIAPLMNloAA5SRQW7CMBBF95zC8qpdmDhpgICc0FVPQFWJ3RAPxeDYke0UwumbBEor0S66/PPm208asTxVmnyg88qanMZjTgma0kpl3nP6unphGV0WI1E2PtgKXTEiRChZZHE2SWZpFouoS/2wg+UOTGBdln4XDm2yL/e1m0/PTyL6SfvtrXI+MAMVEqN0ToNrkEYD0vAXKW1Vg2mLN9AHdGzdaGi2Ivoa9ytYgdJFhVorfK7tUdujP6jxRp1FdGH9Vr2zBouHLJ0+kjSZs5TPU3KKp4mILmhQhNOdwRE3XoVfzBxCQMkgkNDWmFPZxaAqpEXC4xmLExbPVglfcL6Y8HXnfCsM/aaW/+t/Fy7/D+dhW4Va+puSVIGV4KS/PgrOQXs1Bikdeo93rHO73foTAAD//wMAPEk8iR4CAAA=
|
139
|
+
http_version:
|
140
|
+
recorded_at: Sun, 17 Dec 2017 20:00:50 GMT
|
141
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,141 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.sandbox.braintreegateway.com/merchants/dshtky2jcjpr96z3/customers
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: |
|
9
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
10
|
+
<customer>
|
11
|
+
<company>Altenwerth, Flatley and Lebsack</company>
|
12
|
+
<email>althea.jenkins@langworth.co</email>
|
13
|
+
<phone>901.229.7135</phone>
|
14
|
+
</customer>
|
15
|
+
headers:
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip
|
18
|
+
Accept:
|
19
|
+
- application/xml
|
20
|
+
User-Agent:
|
21
|
+
- Braintree Ruby Gem 2.80.1
|
22
|
+
X-Apiversion:
|
23
|
+
- '4'
|
24
|
+
Authorization:
|
25
|
+
- Basic aG03bjZ2Yzg0amJyOTYydzo0MTNjYjNjOGFmMjliM2MzYmEzNDBjZmI3MTVmNDUzMg==
|
26
|
+
Content-Type:
|
27
|
+
- application/xml
|
28
|
+
response:
|
29
|
+
status:
|
30
|
+
code: 201
|
31
|
+
message: Created
|
32
|
+
headers:
|
33
|
+
Date:
|
34
|
+
- Sun, 17 Dec 2017 20:00:49 GMT
|
35
|
+
Content-Type:
|
36
|
+
- application/xml; charset=utf-8
|
37
|
+
Transfer-Encoding:
|
38
|
+
- chunked
|
39
|
+
X-Frame-Options:
|
40
|
+
- SAMEORIGIN
|
41
|
+
- SAMEORIGIN
|
42
|
+
X-Xss-Protection:
|
43
|
+
- 1; mode=block
|
44
|
+
X-Content-Type-Options:
|
45
|
+
- nosniff
|
46
|
+
X-Authentication:
|
47
|
+
- basic_auth
|
48
|
+
X-User:
|
49
|
+
- 4y6kf87m57f2bcq7
|
50
|
+
Vary:
|
51
|
+
- Accept-Encoding
|
52
|
+
Content-Encoding:
|
53
|
+
- gzip
|
54
|
+
Etag:
|
55
|
+
- W/"481c9a6e931d5ec7983630679c06472e"
|
56
|
+
Cache-Control:
|
57
|
+
- max-age=0, private, must-revalidate
|
58
|
+
X-Request-Id:
|
59
|
+
- 5244ff1e-802f-4911-b5c9-e00c93730eda
|
60
|
+
X-Runtime:
|
61
|
+
- '0.108009'
|
62
|
+
Content-Security-Policy:
|
63
|
+
- frame-ancestors 'self'
|
64
|
+
Strict-Transport-Security:
|
65
|
+
- max-age=31536000; includeSubDomains
|
66
|
+
body:
|
67
|
+
encoding: ASCII-8BIT
|
68
|
+
string: !binary |-
|
69
|
+
H4sIAPHMNloAA5SRO3PCMBCEe36FRnXkF6+YkU3SUKUkTbqLdGCBLHskEXB+fWRDCDMkRcq93b37Zo4vT7UmH2idakxB0yihBI1opDLbgr6uV+yRLssRFwfnmxptOSKEK1nO0ul0Nk4mEx4H1Q+DKSowngUtXeX3XbYTu9bms88xj2/dPr1R1nlmoEZilC6otwek8WBp+MsRTd2C6cpn7dEc0frqgaw0eI0dASPJC747EHsefwf7EtagdAnaVwjRDs1eGfekwWyPTVgQiYbH50gfbqvGYJknaZRleTRPx1Men2cDNJzumI7hpvK/sFoEj5KBJ75rsaAySK9qpGWWpHOWZiydr7NkkSSLSf4WmK+FoX9o5f/6P4Xz/eFhbKNQS3dFksozAVa6y1KwFroLMUhp0Tm88wLb9ftfAAAA//8DANfHN48wAgAA
|
70
|
+
http_version:
|
71
|
+
recorded_at: Sun, 17 Dec 2017 20:00:49 GMT
|
72
|
+
- request:
|
73
|
+
method: post
|
74
|
+
uri: https://api.sandbox.braintreegateway.com/merchants/dshtky2jcjpr96z3/customers
|
75
|
+
body:
|
76
|
+
encoding: UTF-8
|
77
|
+
string: |
|
78
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
79
|
+
<customer>
|
80
|
+
<company>Brekke Inc</company>
|
81
|
+
<email>andre@pfeffer.net</email>
|
82
|
+
<phone>1-155-491-3807</phone>
|
83
|
+
</customer>
|
84
|
+
headers:
|
85
|
+
Accept-Encoding:
|
86
|
+
- gzip
|
87
|
+
Accept:
|
88
|
+
- application/xml
|
89
|
+
User-Agent:
|
90
|
+
- Braintree Ruby Gem 2.80.1
|
91
|
+
X-Apiversion:
|
92
|
+
- '4'
|
93
|
+
Authorization:
|
94
|
+
- Basic aG03bjZ2Yzg0amJyOTYydzo0MTNjYjNjOGFmMjliM2MzYmEzNDBjZmI3MTVmNDUzMg==
|
95
|
+
Content-Type:
|
96
|
+
- application/xml
|
97
|
+
response:
|
98
|
+
status:
|
99
|
+
code: 201
|
100
|
+
message: Created
|
101
|
+
headers:
|
102
|
+
Date:
|
103
|
+
- Sun, 17 Dec 2017 20:00:49 GMT
|
104
|
+
Content-Type:
|
105
|
+
- application/xml; charset=utf-8
|
106
|
+
Transfer-Encoding:
|
107
|
+
- chunked
|
108
|
+
X-Frame-Options:
|
109
|
+
- SAMEORIGIN
|
110
|
+
- SAMEORIGIN
|
111
|
+
X-Xss-Protection:
|
112
|
+
- 1; mode=block
|
113
|
+
X-Content-Type-Options:
|
114
|
+
- nosniff
|
115
|
+
X-Authentication:
|
116
|
+
- basic_auth
|
117
|
+
X-User:
|
118
|
+
- 4y6kf87m57f2bcq7
|
119
|
+
Vary:
|
120
|
+
- Accept-Encoding
|
121
|
+
Content-Encoding:
|
122
|
+
- gzip
|
123
|
+
Etag:
|
124
|
+
- W/"5fcbe5c04439b87d30c948588aa4fd98"
|
125
|
+
Cache-Control:
|
126
|
+
- max-age=0, private, must-revalidate
|
127
|
+
X-Request-Id:
|
128
|
+
- 85b7a18c-705d-43f7-93f4-ffa740cb007b
|
129
|
+
X-Runtime:
|
130
|
+
- '0.189263'
|
131
|
+
Content-Security-Policy:
|
132
|
+
- frame-ancestors 'self'
|
133
|
+
Strict-Transport-Security:
|
134
|
+
- max-age=31536000; includeSubDomains
|
135
|
+
body:
|
136
|
+
encoding: ASCII-8BIT
|
137
|
+
string: !binary |-
|
138
|
+
H4sIAPHMNloAA5SRQVPDIBCF7/0VDHcaSFuTdAh1PDjjvV68IWwMbUIyQLXx10vSWp1pPXh879vHvmH55tg26B2cN50tMZtTjMCqThv7VuLn7SPJ8UbMuDr40LXgxAwhbrRgBc0ZzTPGk6hGM0JVSxtI1NrXYT+kO7XrXXH3ueDJbzpOV8b5QKxsAVnTlDi4A+BkQo38i6iu7aUdxIOD/R7Qk1U8+fZGDq00jZBWO7jvK6gqcHMLgScnMI70dWdBMMJWK7IsGFnkNOPJyZ16yePV2g949SbcqONABtBEBhSGHkqsowymBSxSyjLCUsKybUrXlK6XxUvseglM+UOv/5f/CZz2TzchlYFG+0slbQJR0ml/flQ6J4dzY6nj13gPVyx2uxz4CwAA//8DALggHT0TAgAA
|
139
|
+
http_version:
|
140
|
+
recorded_at: Sun, 17 Dec 2017 20:00:49 GMT
|
141
|
+
recorded_with: VCR 3.0.3
|