{"action":"created","comment":{"url":"https://api.github.com/repos/crdschurch/crds-embed/pulls/comments/90676059","pull_request_review_id":11195732,"id":90676059,"diff_hunk":"@@ -1,111 +1,70 @@\n import { Injectable } from '@angular/core';\n import { Response } from '@angular/http';\n import { Observable } from 'rxjs/Observable';\n-import { Resolve } from '@angular/router';\n-import { HttpClientService } from './http-client.service';\n-import { UserSessionService } from './user-session.service';\n-import { PaymentService } from './payment.service';\n-import { GiftService } from './gift.service';\n import { CustomerBank } from '../models/customer-bank';\n import { CustomerCard} from '../models/customer-card';\n+import { GiftService } from './gift.service';\n+import { HttpClientService } from './http-client.service';\n+import { RecurringGiftDto } from '../models/recurring-gift-dto';\n+import { StripeService } from './stripe.service';\n \n import 'rxjs/add/operator/catch';\n import 'rxjs/add/operator/map';\n \n @Injectable()\n-export class DonationService implements Resolve<number> {\n-\n-  private transactionUrl: string = process.env.CRDS_API_ENDPOINT;\n+export class DonationService {\n \n-  private bank: any;\n-  private card: any;\n+  private baseUrl: string = process.env.CRDS_API_ENDPOINT;\n \n-  constructor(private http: HttpClientService,\n-    private userSessionService: UserSessionService,\n-    private paymentService: PaymentService,\n-    private giftService: GiftService) { }\n+  constructor(private gift: GiftService,\n+              private http: HttpClientService,\n+              private stripe: StripeService) { }\n \n+  getTokenAndPostRecurringGift (pmtInfo: CustomerBank | CustomerCard, stripeApiMethodName: string) {\n \n-  submitTransactionInfo(giveForm) {\n+    let recurrenceDate: string = this.gift.start_date.toISOString().slice(0, 10);","path":"src/app/services/donation.service.ts","position":40,"original_position":40,"commit_id":"efd4f9d323abddef3cae9cbe7f65338a54fb1663","original_commit_id":"efd4f9d323abddef3cae9cbe7f65338a54fb1663","user":{"login":"vchtelmakh","id":22355063,"avatar_url":"https://avatars.githubusercontent.com/u/22355063?v=3","gravatar_id":"","url":"https://api.github.com/users/vchtelmakh","html_url":"https://github.com/vchtelmakh","followers_url":"https://api.github.com/users/vchtelmakh/followers","following_url":"https://api.github.com/users/vchtelmakh/following{/other_user}","gists_url":"https://api.github.com/users/vchtelmakh/gists{/gist_id}","starred_url":"https://api.github.com/users/vchtelmakh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vchtelmakh/subscriptions","organizations_url":"https://api.github.com/users/vchtelmakh/orgs","repos_url":"https://api.github.com/users/vchtelmakh/repos","events_url":"https://api.github.com/users/vchtelmakh/events{/privacy}","received_events_url":"https://api.github.com/users/vchtelmakh/received_events","type":"User","site_admin":false},"body":"No, because start date is always a JS Date as an iso string, which adds leading zeroes. \r\n\r\nhttps://plnkr.co/edit/KLnDpGFaqJgKdpSzNZGe?p=preview","created_at":"2016-12-02T16:41:43Z","updated_at":"2016-12-02T16:41:43Z","html_url":"https://github.com/crdschurch/crds-embed/pull/134#discussion_r90676059","pull_request_url":"https://api.github.com/repos/crdschurch/crds-embed/pulls/134","_links":{"self":{"href":"https://api.github.com/repos/crdschurch/crds-embed/pulls/comments/90676059"},"html":{"href":"https://github.com/crdschurch/crds-embed/pull/134#discussion_r90676059"},"pull_request":{"href":"https://api.github.com/repos/crdschurch/crds-embed/pulls/134"}}},"pull_request":{"url":"https://api.github.com/repos/crdschurch/crds-embed/pulls/134","id":96299674,"html_url":"https://github.com/crdschurch/crds-embed/pull/134","diff_url":"https://github.com/crdschurch/crds-embed/pull/134.diff","patch_url":"https://github.com/crdschurch/crds-embed/pull/134.patch","issue_url":"https://api.github.com/repos/crdschurch/crds-embed/issues/134","number":134,"state":"open","locked":false,"title":"Feature/us5721 submit donation - one time ","user":{"login":"vchtelmakh","id":22355063,"avatar_url":"https://avatars.githubusercontent.com/u/22355063?v=3","gravatar_id":"","url":"https://api.github.com/users/vchtelmakh","html_url":"https://github.com/vchtelmakh","followers_url":"https://api.github.com/users/vchtelmakh/followers","following_url":"https://api.github.com/users/vchtelmakh/following{/other_user}","gists_url":"https://api.github.com/users/vchtelmakh/gists{/gist_id}","starred_url":"https://api.github.com/users/vchtelmakh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vchtelmakh/subscriptions","organizations_url":"https://api.github.com/users/vchtelmakh/orgs","repos_url":"https://api.github.com/users/vchtelmakh/repos","events_url":"https://api.github.com/users/vchtelmakh/events{/privacy}","received_events_url":"https://api.github.com/users/vchtelmakh/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-02T15:31:51Z","updated_at":"2016-12-02T16:41:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ded7be9624b654a34685ade45c89f5a1fc97adf","assignee":{"login":"sseissiger","id":16137024,"avatar_url":"https://avatars.githubusercontent.com/u/16137024?v=3","gravatar_id":"","url":"https://api.github.com/users/sseissiger","html_url":"https://github.com/sseissiger","followers_url":"https://api.github.com/users/sseissiger/followers","following_url":"https://api.github.com/users/sseissiger/following{/other_user}","gists_url":"https://api.github.com/users/sseissiger/gists{/gist_id}","starred_url":"https://api.github.com/users/sseissiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sseissiger/subscriptions","organizations_url":"https://api.github.com/users/sseissiger/orgs","repos_url":"https://api.github.com/users/sseissiger/repos","events_url":"https://api.github.com/users/sseissiger/events{/privacy}","received_events_url":"https://api.github.com/users/sseissiger/received_events","type":"User","site_admin":false},"assignees":[{"login":"sseissiger","id":16137024,"avatar_url":"https://avatars.githubusercontent.com/u/16137024?v=3","gravatar_id":"","url":"https://api.github.com/users/sseissiger","html_url":"https://github.com/sseissiger","followers_url":"https://api.github.com/users/sseissiger/followers","following_url":"https://api.github.com/users/sseissiger/following{/other_user}","gists_url":"https://api.github.com/users/sseissiger/gists{/gist_id}","starred_url":"https://api.github.com/users/sseissiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sseissiger/subscriptions","organizations_url":"https://api.github.com/users/sseissiger/orgs","repos_url":"https://api.github.com/users/sseissiger/repos","events_url":"https://api.github.com/users/sseissiger/events{/privacy}","received_events_url":"https://api.github.com/users/sseissiger/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/crdschurch/crds-embed/pulls/134/commits","review_comments_url":"https://api.github.com/repos/crdschurch/crds-embed/pulls/134/comments","review_comment_url":"https://api.github.com/repos/crdschurch/crds-embed/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crdschurch/crds-embed/issues/134/comments","statuses_url":"https://api.github.com/repos/crdschurch/crds-embed/statuses/efd4f9d323abddef3cae9cbe7f65338a54fb1663","head":{"label":"crdschurch:feature/us5721-submit-donation","ref":"feature/us5721-submit-donation","sha":"efd4f9d323abddef3cae9cbe7f65338a54fb1663","user":{"login":"crdschurch","id":1843144,"avatar_url":"https://avatars.githubusercontent.com/u/1843144?v=3","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"repo":{"id":66670785,"name":"crds-embed","full_name":"crdschurch/crds-embed","owner":{"login":"crdschurch","id":1843144,"avatar_url":"https://avatars.githubusercontent.com/u/1843144?v=3","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crdschurch/crds-embed","description":"A repo for embeddable components made by Crossroads.","fork":false,"url":"https://api.github.com/repos/crdschurch/crds-embed","forks_url":"https://api.github.com/repos/crdschurch/crds-embed/forks","keys_url":"https://api.github.com/repos/crdschurch/crds-embed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crdschurch/crds-embed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crdschurch/crds-embed/teams","hooks_url":"https://api.github.com/repos/crdschurch/crds-embed/hooks","issue_events_url":"https://api.github.com/repos/crdschurch/crds-embed/issues/events{/number}","events_url":"https://api.github.com/repos/crdschurch/crds-embed/events","assignees_url":"https://api.github.com/repos/crdschurch/crds-embed/assignees{/user}","branches_url":"https://api.github.com/repos/crdschurch/crds-embed/branches{/branch}","tags_url":"https://api.github.com/repos/crdschurch/crds-embed/tags","blobs_url":"https://api.github.com/repos/crdschurch/crds-embed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crdschurch/crds-embed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crdschurch/crds-embed/git/refs{/sha}","trees_url":"https://api.github.com/repos/crdschurch/crds-embed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crdschurch/crds-embed/statuses/{sha}","languages_url":"https://api.github.com/repos/crdschurch/crds-embed/languages","stargazers_url":"https://api.github.com/repos/crdschurch/crds-embed/stargazers","contributors_url":"https://api.github.com/repos/crdschurch/crds-embed/contributors","subscribers_url":"https://api.github.com/repos/crdschurch/crds-embed/subscribers","subscription_url":"https://api.github.com/repos/crdschurch/crds-embed/subscription","commits_url":"https://api.github.com/repos/crdschurch/crds-embed/commits{/sha}","git_commits_url":"https://api.github.com/repos/crdschurch/crds-embed/git/commits{/sha}","comments_url":"https://api.github.com/repos/crdschurch/crds-embed/comments{/number}","issue_comment_url":"https://api.github.com/repos/crdschurch/crds-embed/issues/comments{/number}","contents_url":"https://api.github.com/repos/crdschurch/crds-embed/contents/{+path}","compare_url":"https://api.github.com/repos/crdschurch/crds-embed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crdschurch/crds-embed/merges","archive_url":"https://api.github.com/repos/crdschurch/crds-embed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crdschurch/crds-embed/downloads","issues_url":"https://api.github.com/repos/crdschurch/crds-embed/issues{/number}","pulls_url":"https://api.github.com/repos/crdschurch/crds-embed/pulls{/number}","milestones_url":"https://api.github.com/repos/crdschurch/crds-embed/milestones{/number}","notifications_url":"https://api.github.com/repos/crdschurch/crds-embed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crdschurch/crds-embed/labels{/name}","releases_url":"https://api.github.com/repos/crdschurch/crds-embed/releases{/id}","deployments_url":"https://api.github.com/repos/crdschurch/crds-embed/deployments","created_at":"2016-08-26T18:34:24Z","updated_at":"2016-11-30T20:06:44Z","pushed_at":"2016-12-02T16:17:23Z","git_url":"git://github.com/crdschurch/crds-embed.git","ssh_url":"git@github.com:crdschurch/crds-embed.git","clone_url":"https://github.com/crdschurch/crds-embed.git","svn_url":"https://github.com/crdschurch/crds-embed","homepage":null,"size":1360,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"development"}},"base":{"label":"crdschurch:development","ref":"development","sha":"387a10becb6f76125c2c5a268d133e0e25116256","user":{"login":"crdschurch","id":1843144,"avatar_url":"https://avatars.githubusercontent.com/u/1843144?v=3","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"repo":{"id":66670785,"name":"crds-embed","full_name":"crdschurch/crds-embed","owner":{"login":"crdschurch","id":1843144,"avatar_url":"https://avatars.githubusercontent.com/u/1843144?v=3","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crdschurch/crds-embed","description":"A repo for embeddable components made by Crossroads.","fork":false,"url":"https://api.github.com/repos/crdschurch/crds-embed","forks_url":"https://api.github.com/repos/crdschurch/crds-embed/forks","keys_url":"https://api.github.com/repos/crdschurch/crds-embed/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crdschurch/crds-embed/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crdschurch/crds-embed/teams","hooks_url":"https://api.github.com/repos/crdschurch/crds-embed/hooks","issue_events_url":"https://api.github.com/repos/crdschurch/crds-embed/issues/events{/number}","events_url":"https://api.github.com/repos/crdschurch/crds-embed/events","assignees_url":"https://api.github.com/repos/crdschurch/crds-embed/assignees{/user}","branches_url":"https://api.github.com/repos/crdschurch/crds-embed/branches{/branch}","tags_url":"https://api.github.com/repos/crdschurch/crds-embed/tags","blobs_url":"https://api.github.com/repos/crdschurch/crds-embed/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crdschurch/crds-embed/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crdschurch/crds-embed/git/refs{/sha}","trees_url":"https://api.github.com/repos/crdschurch/crds-embed/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crdschurch/crds-embed/statuses/{sha}","languages_url":"https://api.github.com/repos/crdschurch/crds-embed/languages","stargazers_url":"https://api.github.com/repos/crdschurch/crds-embed/stargazers","contributors_url":"https://api.github.com/repos/crdschurch/crds-embed/contributors","subscribers_url":"https://api.github.com/repos/crdschurch/crds-embed/subscribers","subscription_url":"https://api.github.com/repos/crdschurch/crds-embed/subscription","commits_url":"https://api.github.com/repos/crdschurch/crds-embed/commits{/sha}","git_commits_url":"https://api.github.com/repos/crdschurch/crds-embed/git/commits{/sha}","comments_url":"https://api.github.com/repos/crdschurch/crds-embed/comments{/number}","issue_comment_url":"https://api.github.com/repos/crdschurch/crds-embed/issues/comments{/number}","contents_url":"https://api.github.com/repos/crdschurch/crds-embed/contents/{+path}","compare_url":"https://api.github.com/repos/crdschurch/crds-embed/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crdschurch/crds-embed/merges","archive_url":"https://api.github.com/repos/crdschurch/crds-embed/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crdschurch/crds-embed/downloads","issues_url":"https://api.github.com/repos/crdschurch/crds-embed/issues{/number}","pulls_url":"https://api.github.com/repos/crdschurch/crds-embed/pulls{/number}","milestones_url":"https://api.github.com/repos/crdschurch/crds-embed/milestones{/number}","notifications_url":"https://api.github.com/repos/crdschurch/crds-embed/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crdschurch/crds-embed/labels{/name}","releases_url":"https://api.github.com/repos/crdschurch/crds-embed/releases{/id}","deployments_url":"https://api.github.com/repos/crdschurch/crds-embed/deployments","created_at":"2016-08-26T18:34:24Z","updated_at":"2016-11-30T20:06:44Z","pushed_at":"2016-12-02T16:17:23Z","git_url":"git://github.com/crdschurch/crds-embed.git","ssh_url":"git@github.com:crdschurch/crds-embed.git","clone_url":"https://github.com/crdschurch/crds-embed.git","svn_url":"https://github.com/crdschurch/crds-embed","homepage":null,"size":1360,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/crdschurch/crds-embed/pulls/134"},"html":{"href":"https://github.com/crdschurch/crds-embed/pull/134"},"issue":{"href":"https://api.github.com/repos/crdschurch/crds-embed/issues/134"},"comments":{"href":"https://api.github.com/repos/crdschurch/crds-embed/issues/134/comments"},"review_comments":{"href":"https://api.github.com/repos/crdschurch/crds-embed/pulls/134/comments"},"review_comment":{"href":"https://api.github.com/repos/crdschurch/crds-embed/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crdschurch/crds-embed/pulls/134/commits"},"statuses":{"href":"https://api.github.com/repos/crdschurch/crds-embed/statuses/efd4f9d323abddef3cae9cbe7f65338a54fb1663"}}}}
{"actor":{"display_login":"vchtelmakh"}}